"<!DOCTYPE html>\n<html lang=\"zh\" data-theme=\"light\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>fulltext.txt — Vercel Design System</title>\n<link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">\n<link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>\n<link href=\"https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap\" rel=\"stylesheet\">\n<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css\">\n<style>\n\n:root {\n  /* Vercel Palette */\n  --geist-foreground: #171717;\n  --geist-background: #ffffff;\n  --geist-secondary: #4d4d4d;\n  --geist-tertiary: #666666;\n  --geist-quaternary: #808080;\n  --geist-border: #ebebeb;\n  --geist-surface-tint: #fafafa;\n  \n  /* Workflow Accents */\n  --develop-blue: #0a72ef;\n  --preview-pink: #de1d8d;\n  --ship-red: #ff5b4f;\n  \n  /* Interactive & Status */\n  --link-blue: #0072f5;\n  --ds-focus-color: hsla(212, 100%, 48%, 1);\n  --badge-blue-bg: #ebf5ff;\n  --badge-blue-text: #0068d6;\n  \n  /* Shadow-as-Border Philosophy */\n  --shadow-border: rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;\n  --shadow-border-hover: rgba(0, 0, 0, 0.16) 0px 0px 0px 1px;\n  --shadow-card: rgba(0, 0, 0, 0.08) 0px 0px 0px 1px, rgba(0, 0, 0, 0.04) 0px 2px 2px, #fafafa 0px 0px 0px 1px;\n  --shadow-card-hover: rgba(0, 0, 0, 0.12) 0px 0px 0px 1px, rgba(0, 0, 0, 0.06) 0px 4px 6px, #fafafa 0px 0px 0px 1px;\n  --shadow-card-full: rgba(0, 0, 0, 0.08) 0px 0px 0px 1px, rgba(0, 0, 0, 0.04) 0px 2px 2px, rgba(0, 0, 0, 0.04) 0px 8px 8px -8px, #fafafa 0px 0px 0px 1px;\n  --shadow-ring: rgb(235, 235, 235) 0px 0px 0px 1px;\n  \n  /* Radius Scale */\n  --radius-xs: 2px;\n  --radius-sm: 4px;\n  --radius-md: 6px;\n  --radius-lg: 8px;\n  --radius-xl: 12px;\n  --radius-pill: 9999px;\n}\n\n[data-theme=\"dark\"] {\n  --geist-foreground: #ededed;\n  --geist-background: #000000;\n  --geist-secondary: #a1a1a1;\n  --geist-tertiary: #888888;\n  --geist-quaternary: #666666;\n  --geist-border: #222222;\n  --geist-surface-tint: #0a0a0a;\n  \n  --shadow-border: rgba(255, 255, 255, 0.14) 0px 0px 0px 1px;\n  --shadow-border-hover: rgba(255, 255, 255, 0.28) 0px 0px 0px 1px;\n  --shadow-card: rgba(255, 255, 255, 0.12) 0px 0px 0px 1px, rgba(0, 0, 0, 0.4) 0px 2px 4px, #111111 0px 0px 0px 1px;\n  --shadow-card-hover: rgba(255, 255, 255, 0.2) 0px 0px 0px 1px, rgba(0, 0, 0, 0.5) 0px 6px 12px, #111111 0px 0px 0px 1px;\n  --shadow-card-full: rgba(255, 255, 255, 0.12) 0px 0px 0px 1px, rgba(0, 0, 0, 0.5) 0px 8px 16px -4px, #111111 0px 0px 0px 1px;\n  --shadow-ring: rgb(40, 40, 40) 0px 0px 0px 1px;\n  \n  --badge-blue-bg: rgba(10, 114, 239, 0.15);\n  --badge-blue-text: #70b5ff;\n}\n\n* { box-sizing: border-box; }\nhtml { scroll-behavior: smooth; }\nbody {\n  margin: 0;\n  font-family: \"Geist\", Arial, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif;\n  background-color: var(--geist-background);\n  color: var(--geist-foreground);\n  font-feature-settings: \"liga\" 1;\n  -webkit-font-smoothing: antialiased;\n  min-height: 100vh;\n}\n\na {\n  color: inherit;\n  text-decoration: none;\n  transition: color 0.15s ease;\n}\n\n/* 导航栏 (Vercel Clean Sticky Nav) */\n.vercel-nav {\n  position: sticky;\n  top: 0;\n  background-color: var(--geist-background);\n  box-shadow: var(--shadow-border);\n  z-index: 100;\n  padding: 0 24px;\n  height: 64px;\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n}\n.nav-brand {\n  display: flex;\n  align-items: center;\n  gap: 12px;\n}\n.vercel-triangle {\n  width: 22px;\n  height: 19px;\n  fill: var(--geist-foreground);\n}\n.nav-title {\n  font-size: 16px;\n  font-weight: 600;\n  letter-spacing: -0.32px;\n  color: var(--geist-foreground);\n}\n.nav-badge-pill {\n  font-family: \"Geist Mono\", ui-monospace, monospace;\n  font-size: 11px;\n  font-weight: 500;\n  text-transform: uppercase;\n  background: var(--badge-blue-bg);\n  color: var(--badge-blue-text);\n  padding: 2px 8px;\n  border-radius: var(--radius-pill);\n}\n\n.nav-links {\n  display: flex;\n  align-items: center;\n  gap: 24px;\n}\n.nav-link {\n  font-size: 14px;\n  font-weight: 500;\n  color: var(--geist-secondary);\n  text-decoration: none;\n  transition: color 0.15s;\n}\n.nav-link:hover, .nav-link.active {\n  color: var(--geist-foreground);\n}\n.nav-link.active {\n  font-weight: 600;\n}\n\n.nav-actions {\n  display: flex;\n  align-items: center;\n  gap: 12px;\n}\n\n/* 按钮规范 */\n.btn-primary-dark {\n  background: var(--geist-foreground);\n  color: var(--geist-background);\n  border: none;\n  padding: 8px 16px;\n  border-radius: var(--radius-md);\n  font-size: 14px;\n  font-weight: 500;\n  cursor: pointer;\n  text-decoration: none;\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  transition: opacity 0.15s;\n}\n.btn-primary-dark:hover {\n  opacity: 0.9;\n}\n.btn-secondary-white {\n  background: var(--geist-background);\n  color: var(--geist-foreground);\n  box-shadow: var(--shadow-border);\n  border: none;\n  padding: 8px 16px;\n  border-radius: var(--radius-md);\n  font-size: 14px;\n  font-weight: 500;\n  cursor: pointer;\n  text-decoration: none;\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  transition: background 0.15s, box-shadow 0.15s;\n}\n.btn-secondary-white:hover {\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border-hover);\n}\n.theme-toggle-btn {\n  background: transparent;\n  border: none;\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  width: 36px;\n  height: 36px;\n  cursor: pointer;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  color: var(--geist-foreground);\n}\n\n/* 核心容器 */\n.vercel-container {\n  max-width: 1200px;\n  margin: 0 auto;\n  padding: 56px 24px 100px;\n}\n\n/* Hero Section (Gallery Emptiness + Negative Letter-spacing) */\n.vercel-hero {\n  text-align: center;\n  max-width: 860px;\n  margin: 0 auto 56px;\n}\n.hero-stage-badge {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border);\n  padding: 4px 14px;\n  border-radius: var(--radius-pill);\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-secondary);\n  margin-bottom: 24px;\n}\n.stage-dot {\n  width: 7px;\n  height: 7px;\n  border-radius: 50%;\n}\n.vercel-hero h1 {\n  font-size: 48px;\n  font-weight: 600;\n  line-height: 1.05;\n  letter-spacing: -2.4px;\n  color: var(--geist-foreground);\n  margin: 0 0 16px;\n}\n.vercel-hero p {\n  font-size: 20px;\n  font-weight: 400;\n  line-height: 1.80;\n  color: var(--geist-secondary);\n  margin: 0 auto 28px;\n}\n\n/* Workflow Pipeline (Develop -> Preview -> Ship) */\n.workflow-pipeline {\n  display: grid;\n  grid-template-columns: repeat(3, 1fr);\n  gap: 16px;\n  margin-bottom: 48px;\n}\n@media (max-width: 768px) {\n  .workflow-pipeline { grid-template-columns: 1fr; }\n}\n.workflow-step {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 20px 22px;\n  transition: box-shadow 0.2s;\n}\n.workflow-step:hover {\n  box-shadow: var(--shadow-card-hover);\n}\n.step-mono-label {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 12px;\n  font-weight: 500;\n  text-transform: uppercase;\n  letter-spacing: 0.5px;\n  margin-bottom: 8px;\n  display: flex;\n  align-items: center;\n  gap: 6px;\n}\n.step-title {\n  font-size: 20px;\n  font-weight: 600;\n  letter-spacing: -0.96px;\n  color: var(--geist-foreground);\n  margin-bottom: 6px;\n}\n.step-desc {\n  font-size: 14px;\n  color: var(--geist-secondary);\n  line-height: 1.5;\n}\n\n/* Metric Cards (Section 4 Spec) */\n.metric-grid {\n  display: grid;\n  grid-template-columns: repeat(4, 1fr);\n  gap: 16px;\n  margin-bottom: 48px;\n}\n@media (max-width: 900px) {\n  .metric-grid { grid-template-columns: repeat(2, 1fr); }\n}\n.metric-card {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 20px;\n}\n.metric-number {\n  font-size: 40px;\n  font-weight: 600;\n  line-height: 1.0;\n  letter-spacing: -2.4px;\n  color: var(--geist-foreground);\n  margin-bottom: 8px;\n  font-feature-settings: \"tnum\" 1;\n}\n.metric-label {\n  font-size: 14px;\n  color: var(--geist-secondary);\n  line-height: 1.4;\n}\n\n/* VAD 专栏 Banner (Ship Red & Vercel Clean) */\n.vad-showcase {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card-full);\n  border-radius: var(--radius-xl);\n  padding: 32px;\n  margin-bottom: 48px;\n  position: relative;\n}\n.vad-header-row {\n  display: flex;\n  align-items: baseline;\n  justify-content: space-between;\n  flex-wrap: wrap;\n  gap: 12px;\n  margin-bottom: 12px;\n}\n.vad-header-row h2 {\n  font-size: 32px;\n  font-weight: 600;\n  letter-spacing: -1.28px;\n  color: var(--geist-foreground);\n  margin: 0;\n}\n.vad-pillars-grid {\n  display: grid;\n  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));\n  gap: 14px;\n  margin-top: 24px;\n}\n.vad-pillar-item {\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  padding: 14px 16px;\n}\n.vad-pillar-title {\n  font-size: 14px;\n  font-weight: 600;\n  color: var(--ship-red);\n  margin-bottom: 4px;\n}\n.vad-pillar-text {\n  font-size: 13px;\n  color: var(--geist-secondary);\n  line-height: 1.5;\n}\n.vad-filter-bar {\n  display: flex;\n  flex-wrap: wrap;\n  align-items: center;\n  justify-content: space-between;\n  gap: 12px;\n  margin: 24px 0 16px;\n  padding: 12px 16px;\n  background: var(--geist-surface-tint);\n  border-radius: var(--radius-md);\n  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);\n}\n.vad-filter-btn {\n  font-family: 'Geist', sans-serif;\n  font-size: 13px;\n  font-weight: 500;\n  padding: 6px 14px;\n  border-radius: 9999px;\n  border: none;\n  background: transparent;\n  color: var(--geist-secondary);\n  cursor: pointer;\n  transition: all 0.15s ease;\n}\n.vad-filter-btn:hover {\n  color: var(--geist-foreground);\n  background: rgba(0,0,0,0.05);\n}\n.vad-filter-btn.active {\n  background: #171717;\n  color: #ffffff;\n}\n.vad-search-input {\n  font-family: 'Geist', sans-serif;\n  font-size: 13px;\n  padding: 7px 12px;\n  border-radius: 6px;\n  border: 1px solid var(--geist-border);\n  background: #ffffff;\n  color: var(--geist-foreground);\n  width: 280px;\n  outline: none;\n  transition: border-color 0.15s, box-shadow 0.15s;\n}\n.vad-search-input:focus {\n  border-color: #0a72ef;\n  box-shadow: 0 0 0 2px rgba(10, 114, 239, 0.2);\n}\n\n/* 控制栏：搜索、视图、筛选 */\n.control-bar {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  gap: 16px;\n  margin-bottom: 24px;\n  flex-wrap: wrap;\n}\n.search-input-wrap {\n  position: relative;\n  flex: 1;\n  max-width: 480px;\n}\n.search-input {\n  width: 100%;\n  height: 40px;\n  padding: 0 38px 0 14px;\n  font-family: \"Geist\", sans-serif;\n  font-size: 14px;\n  color: var(--geist-foreground);\n  background: var(--geist-background);\n  box-shadow: var(--shadow-border);\n  border: none;\n  border-radius: var(--radius-md);\n  outline: none;\n  transition: box-shadow 0.15s;\n}\n.search-input:focus {\n  outline: 2px solid var(--ds-focus-color);\n  box-shadow: none;\n}\n.search-kbd {\n  position: absolute;\n  right: 12px;\n  top: 50%;\n  transform: translateY(-50%);\n  font-family: \"Geist Mono\", monospace;\n  font-size: 11px;\n  color: var(--geist-quaternary);\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border);\n  padding: 2px 6px;\n  border-radius: var(--radius-sm);\n}\n\n.view-switcher {\n  display: flex;\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  background: var(--geist-background);\n  padding: 2px;\n}\n.view-btn {\n  background: transparent;\n  border: none;\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-tertiary);\n  padding: 6px 12px;\n  border-radius: var(--radius-sm);\n  cursor: pointer;\n  transition: color 0.15s, background 0.15s;\n}\n.view-btn.active {\n  background: var(--geist-surface-tint);\n  color: var(--geist-foreground);\n  font-weight: 600;\n}\n\n/* 筛选芯片行 (Filter Pill Strip) */\n.filter-group-strip {\n  display: flex;\n  flex-direction: column;\n  gap: 12px;\n  margin-bottom: 28px;\n  padding: 16px 20px;\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-lg);\n}\n.filter-row {\n  display: flex;\n  align-items: center;\n  gap: 8px;\n  flex-wrap: wrap;\n}\n.filter-label-mono {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 11px;\n  font-weight: 500;\n  text-transform: uppercase;\n  color: var(--geist-quaternary);\n  min-width: 68px;\n}\n.pill-badge {\n  background: var(--geist-background);\n  color: var(--geist-secondary);\n  box-shadow: var(--shadow-border);\n  border: none;\n  padding: 3px 12px;\n  border-radius: var(--radius-pill);\n  font-size: 12px;\n  font-weight: 500;\n  cursor: pointer;\n  transition: all 0.15s;\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n}\n.pill-badge:hover {\n  color: var(--geist-foreground);\n  box-shadow: var(--shadow-border-hover);\n}\n.pill-badge.active {\n  background: var(--geist-foreground);\n  color: var(--geist-background);\n  font-weight: 600;\n  box-shadow: none;\n}\n.pill-badge.active-blue {\n  background: var(--develop-blue);\n  color: #ffffff;\n  box-shadow: none;\n}\n.pill-badge.active-red {\n  background: var(--ship-red);\n  color: #ffffff;\n  box-shadow: none;\n}\n\n/* Bento Grid Cards (Section 4 & 6 Spec) */\n.card-grid-bento {\n  display: grid;\n  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));\n  gap: 16px;\n}\n.vercel-card {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 20px;\n  display: flex;\n  flex-direction: column;\n  justify-content: space-between;\n  transition: box-shadow 0.2s, transform 0.2s;\n  text-decoration: none;\n  color: inherit;\n  overflow: hidden;\n  min-width: 0;\n  word-break: break-word;\n}\n.vercel-card:hover {\n  box-shadow: var(--shadow-card-hover);\n  transform: translateY(-2px);\n}\n.card-top {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  margin-bottom: 12px;\n  gap: 8px;\n}\n.card-tag-mono {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 11px;\n  font-weight: 500;\n  text-transform: uppercase;\n  color: var(--geist-quaternary);\n  letter-spacing: 0.5px;\n}\n.status-pill-badge {\n  padding: 2px 8px;\n  border-radius: var(--radius-pill);\n  font-size: 11px;\n  font-weight: 500;\n  flex-shrink: 0;\n}\n.pub-accepted { background: #ebfdf2; color: #027a48; }\n.pub-workshop { background: #eff8ff; color: #175cd3; }\n.pub-submitted { background: #fff8e6; color: #b54708; }\n.pub-preprint { background: #f2f4f7; color: #475467; }\n.pub-other { background: #f9f5ff; color: #6941c6; }\n\n[data-theme=\"dark\"] .pub-accepted { background: rgba(2, 122, 72, 0.2); color: #32d583; }\n[data-theme=\"dark\"] .pub-workshop { background: rgba(23, 92, 211, 0.2); color: #84caff; }\n[data-theme=\"dark\"] .pub-submitted { background: rgba(181, 71, 8, 0.2); color: #fec84b; }\n[data-theme=\"dark\"] .pub-preprint { background: rgba(71, 84, 103, 0.2); color: #98a2b3; }\n[data-theme=\"dark\"] .pub-other { background: rgba(105, 65, 198, 0.2); color: #d6bbfb; }\n\n/* 必读标杆徽章 (Vercel Amber Accent) */\n.milestone-badge {\n  display: inline-flex;\n  align-items: center;\n  gap: 3px;\n  padding: 2px 7px;\n  border-radius: var(--radius-pill);\n  font-size: 11px;\n  font-weight: 600;\n  white-space: nowrap;\n  flex-shrink: 0;\n  transition: all 0.15s ease;\n}\n.milestone-badge.ms-idea, .milestone-badge:not([class*=\"ms-\"]) {\n  color: #b54708;\n  background: #fff8e6;\n  border: 1px solid rgba(247, 144, 9, 0.35);\n  box-shadow: 0 1px 2px rgba(181, 71, 8, 0.05);\n}\n[data-theme=\"dark\"] .milestone-badge.ms-idea, [data-theme=\"dark\"] .milestone-badge:not([class*=\"ms-\"]) {\n  color: #fec84b;\n  background: rgba(181, 71, 8, 0.22);\n  border-color: rgba(254, 200, 75, 0.35);\n}\n.milestone-badge.ms-writing {\n  color: #6941c6;\n  background: #f9f5ff;\n  border: 1px solid rgba(105, 65, 198, 0.3);\n  box-shadow: 0 1px 2px rgba(105, 65, 198, 0.05);\n}\n[data-theme=\"dark\"] .milestone-badge.ms-writing {\n  color: #d6bbfb;\n  background: rgba(105, 65, 198, 0.22);\n  border-color: rgba(214, 187, 251, 0.35);\n}\n.milestone-badge.ms-value {\n  color: #027a48;\n  background: #ebfdf2;\n  border: 1px solid rgba(2, 122, 72, 0.3);\n  box-shadow: 0 1px 2px rgba(2, 122, 72, 0.05);\n}\n[data-theme=\"dark\"] .milestone-badge.ms-value {\n  color: #32d583;\n  background: rgba(2, 122, 72, 0.22);\n  border-color: rgba(50, 213, 131, 0.35);\n}\n\n/* 论文正文图表与插图卡片样式 (Geist Design) */\n.paper-figure, .article-body figure {\n  margin: 32px auto;\n  text-align: center;\n  max-width: 100%;\n}\n.paper-figure img, .article-body img {\n  max-width: 96%;\n  height: auto;\n  border-radius: var(--radius-md);\n  border: 1px solid var(--geist-border);\n  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);\n  background: #ffffff;\n  transition: transform 0.2s ease, box-shadow 0.2s ease;\n  display: block;\n  margin: 0 auto;\n}\n.paper-figure img:hover, .article-body img:hover {\n  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);\n}\n.paper-figure figcaption, .article-body figcaption {\n  font-size: 13px;\n  color: var(--geist-secondary);\n  margin-top: 10px;\n  line-height: 1.6;\n  font-style: italic;\n  max-width: 850px;\n  margin-left: auto;\n  margin-right: auto;\n}\n\n/* VAD 视图切换器 View Switcher */\n.vad-view-switcher {\n  display: inline-flex;\n  padding: 3px;\n  background: var(--geist-secondary-bg);\n  border: 1px solid var(--geist-border);\n  border-radius: 8px;\n  margin-bottom: 20px;\n  gap: 2px;\n}\n.view-switch-btn {\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  padding: 6px 14px;\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-secondary);\n  border-radius: 6px;\n  text-decoration: none;\n  transition: all 0.15s ease;\n}\n.view-switch-btn:hover {\n  color: var(--geist-foreground);\n  background: rgba(0, 0, 0, 0.04);\n}\n[data-theme=\"dark\"] .view-switch-btn:hover {\n  background: rgba(255, 255, 255, 0.06);\n}\n.view-switch-btn.active {\n  background: var(--geist-background);\n  color: var(--geist-foreground);\n  font-weight: 600;\n  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n}\n\n/* 关系图谱 Graph View Styles */\n.graph-container {\n  position: relative;\n  width: 100%;\n  height: 720px;\n  background: var(--geist-background);\n  border: 1px solid var(--geist-border);\n  border-radius: var(--radius-lg);\n  overflow: hidden;\n  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);\n  margin-bottom: 40px;\n}\n.graph-toolbar {\n  position: absolute;\n  top: 14px;\n  left: 14px;\n  right: 14px;\n  z-index: 10;\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  background: var(--geist-background);\n  border: 1px solid var(--geist-border);\n  padding: 8px 14px;\n  border-radius: 8px;\n  box-shadow: 0 4px 16px rgba(0,0,0,0.06);\n  flex-wrap: wrap;\n  gap: 8px;\n}\n.graph-tool-title {\n  font-size: 13px;\n  font-weight: 700;\n  display: flex;\n  align-items: center;\n  gap: 6px;\n  color: var(--geist-foreground);\n}\n.graph-filter-group {\n  display: flex;\n  gap: 6px;\n  align-items: center;\n  flex-wrap: wrap;\n}\n.graph-chip {\n  font-size: 11px;\n  padding: 3px 8px;\n  border-radius: 4px;\n  border: 1px solid var(--geist-border);\n  background: var(--geist-background);\n  color: var(--geist-foreground);\n  cursor: pointer;\n  transition: all 0.15s ease;\n}\n.graph-chip:hover { background: var(--geist-secondary-bg); }\n.graph-chip.active {\n  background: var(--geist-foreground);\n  color: var(--geist-background);\n  border-color: var(--geist-foreground);\n}\n.graph-search-input {\n  padding: 3px 8px;\n  font-size: 11px;\n  border-radius: 4px;\n  border: 1px solid var(--geist-border);\n  background: var(--geist-background);\n  color: var(--geist-foreground);\n  outline: none;\n  width: 150px;\n}\n#vad-graph-svg {\n  width: 100%;\n  height: 100%;\n  cursor: grab;\n}\n#vad-graph-svg:active { cursor: grabbing; }\n.graph-legend {\n  position: absolute;\n  bottom: 14px;\n  left: 14px;\n  background: var(--geist-background);\n  border: 1px solid var(--geist-border);\n  border-radius: 8px;\n  padding: 10px 14px;\n  font-size: 11px;\n  box-shadow: 0 4px 16px rgba(0,0,0,0.06);\n  z-index: 10;\n  line-height: 1.6;\n  pointer-events: none;\n}\n.graph-legend-row { display: flex; align-items: center; gap: 8px; }\n.graph-legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }\n.graph-info-drawer {\n  position: absolute;\n  top: 66px;\n  right: 14px;\n  width: 310px;\n  max-height: 620px;\n  background: var(--geist-background);\n  border: 1px solid var(--geist-border);\n  border-radius: 8px;\n  box-shadow: 0 8px 30px rgba(0,0,0,0.12);\n  z-index: 10;\n  padding: 16px;\n  overflow-y: auto;\n  display: none;\n  backdrop-filter: blur(10px);\n  transition: transform 0.2s ease, opacity 0.2s ease;\n}\n.graph-drawer-close {\n  position: absolute;\n  top: 10px;\n  right: 12px;\n  cursor: pointer;\n  font-size: 16px;\n  color: var(--geist-tertiary);\n}\n.graph-drawer-badge {\n  display: inline-block;\n  padding: 2px 6px;\n  border-radius: 4px;\n  font-size: 10px;\n  font-weight: 600;\n  margin-bottom: 6px;\n}\n.graph-drawer-title {\n  font-size: 13px;\n  font-weight: 700;\n  line-height: 1.4;\n  margin-bottom: 8px;\n  color: var(--geist-foreground);\n}\n.graph-drawer-meta {\n  font-size: 11px;\n  color: var(--geist-secondary);\n  margin-bottom: 12px;\n}\n.graph-drawer-core {\n  font-size: 12px;\n  line-height: 1.6;\n  color: var(--geist-foreground);\n  background: var(--geist-secondary-bg);\n  padding: 8px 10px;\n  border-radius: 6px;\n  margin-bottom: 12px;\n  border: 1px solid var(--geist-border);\n}\n.graph-drawer-link {\n  display: block;\n  text-align: center;\n  padding: 7px 12px;\n  background: var(--geist-foreground);\n  color: var(--geist-background);\n  border-radius: 6px;\n  font-size: 12px;\n  font-weight: 600;\n  text-decoration: none;\n  transition: opacity 0.15s ease;\n  margin-bottom: 6px;\n}\n.graph-drawer-link:hover { opacity: 0.85; }\n.graph-drawer-pdf-link {\n  display: block;\n  text-align: center;\n  padding: 6px 12px;\n  background: var(--geist-secondary-bg);\n  color: var(--geist-foreground);\n  border: 1px solid var(--geist-border);\n  border-radius: 6px;\n  font-size: 11px;\n  font-weight: 500;\n  text-decoration: none;\n  transition: all 0.15s ease;\n}\n.graph-drawer-pdf-link:hover { background: var(--geist-border); }\n.node-circle {\n  cursor: pointer;\n  transition: r 0.2s, stroke-width 0.2s;\n}\n.node-label {\n  font-size: 10px;\n  font-weight: 600;\n  fill: var(--geist-foreground);\n  pointer-events: none;\n  text-shadow: 0 1px 2px var(--geist-background);\n}\n.link-line {\n  stroke: var(--geist-border);\n  stroke-opacity: 0.6;\n  stroke-width: 1.2;\n  transition: stroke 0.2s, stroke-width 0.2s, stroke-opacity 0.2s;\n}\n.link-label {\n  font-size: 9px;\n  fill: var(--geist-tertiary);\n  pointer-events: none;\n  text-anchor: middle;\n}\n\n/* 引用框与警示框 Alerts */\n.callout-alert {\n  margin: 20px 0;\n  padding: 14px 18px;\n  border-radius: var(--radius-md);\n  transition: all 0.15s ease;\n}\n.callout-important, .callout-idea {\n  border-left: 4px solid #b54708;\n  background: rgba(181, 71, 8, 0.06);\n  box-shadow: inset 0 0 0 1px rgba(247, 144, 9, 0.3);\n}\n[data-theme=\"dark\"] .callout-important, [data-theme=\"dark\"] .callout-idea {\n  border-left-color: #fec84b;\n  background: rgba(181, 71, 8, 0.18);\n  box-shadow: inset 0 0 0 1px rgba(254, 200, 75, 0.25);\n}\n.callout-writing {\n  border-left: 4px solid #6941c6;\n  background: rgba(105, 65, 198, 0.06);\n  box-shadow: inset 0 0 0 1px rgba(105, 65, 198, 0.3);\n}\n[data-theme=\"dark\"] .callout-writing {\n  border-left-color: #d6bbfb;\n  background: rgba(105, 65, 198, 0.18);\n  box-shadow: inset 0 0 0 1px rgba(214, 187, 251, 0.25);\n}\n.callout-value {\n  border-left: 4px solid #027a48;\n  background: rgba(2, 122, 72, 0.06);\n  box-shadow: inset 0 0 0 1px rgba(2, 122, 72, 0.3);\n}\n[data-theme=\"dark\"] .callout-value {\n  border-left-color: #32d583;\n  background: rgba(2, 122, 72, 0.18);\n  box-shadow: inset 0 0 0 1px rgba(50, 213, 131, 0.25);\n}\n\n.card-title {\n  font-size: 16.5px;\n  font-weight: 600;\n  line-height: 1.42;\n  letter-spacing: -0.4px;\n  color: var(--geist-foreground);\n  margin: 0 0 10px;\n  word-break: break-word;\n  overflow-wrap: anywhere;\n  hyphens: auto;\n}\n.card-title a {\n  color: var(--geist-foreground);\n  text-decoration: none;\n  display: inline;\n  transition: color 0.15s ease;\n}\n.card-title a:hover {\n  color: var(--develop-blue);\n  text-decoration: none;\n}\n.card-id-mono {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-quaternary);\n  margin-right: 5px;\n}\n.card-meta-row {\n  display: flex;\n  gap: 6px;\n  flex-wrap: wrap;\n  margin-bottom: 12px;\n}\n.meta-token {\n  font-size: 12px;\n  color: var(--geist-tertiary);\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-ring);\n  padding: 2px 7px;\n  border-radius: var(--radius-sm);\n  white-space: nowrap;\n}\n.card-body-text {\n  font-size: 13.5px;\n  color: var(--geist-secondary);\n  line-height: 1.6;\n  margin-bottom: 16px;\n  flex-grow: 1;\n  word-break: break-word;\n  overflow-wrap: anywhere;\n}\n.card-body-text strong {\n  color: var(--geist-foreground);\n  font-weight: 600;\n}\n\n.card-footer {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  border-top: 1px solid var(--geist-border);\n  padding-top: 14px;\n}\n.card-link-action {\n  font-size: 13.5px;\n  font-weight: 500;\n  color: var(--link-blue);\n  display: inline-flex;\n  align-items: center;\n  gap: 4px;\n  text-decoration: none;\n  transition: all 0.15s ease;\n}\n.card-link-action:hover {\n  opacity: 0.85;\n  transform: translateX(2px);\n}\na.meta-token {\n  transition: all 0.15s ease;\n  cursor: pointer;\n  text-decoration: none;\n}\na.meta-token:hover {\n  background: var(--geist-selection);\n  color: var(--geist-foreground);\n  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);\n}\n\n/* 紧凑列表视图 (List View) */\n.card-list-view {\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n}\n.list-row-item {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-md);\n  padding: 12px 18px;\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  gap: 16px;\n  transition: box-shadow 0.15s;\n}\n.list-row-item:hover {\n  box-shadow: var(--shadow-card-hover);\n}\n\n/* 阅读详情页 (Report Detail) */\n.reading-container {\n  display: grid;\n  grid-template-columns: minmax(0, 1fr) 260px;\n  gap: 40px;\n  align-items: start;\n}\n@media (max-width: 960px) {\n  .reading-container { grid-template-columns: 1fr; }\n  .reading-sidebar { display: none; }\n}\n\n.report-header-card {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 28px 32px;\n  margin-bottom: 28px;\n}\n.crumb-bar {\n  font-size: 13px;\n  color: var(--geist-tertiary);\n  margin-bottom: 10px;\n}\n.report-title {\n  font-size: 32px;\n  font-weight: 600;\n  letter-spacing: -1.28px;\n  margin: 0 0 16px;\n  color: var(--geist-foreground);\n}\n.report-action-buttons {\n  display: flex;\n  align-items: center;\n  gap: 10px;\n  flex-wrap: wrap;\n  border-top: 1px solid var(--geist-border);\n  padding-top: 16px;\n  margin-top: 16px;\n}\n\n.article-body {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card-full);\n  border-radius: var(--radius-lg);\n  padding: 36px 42px 80px;\n  font-size: 16px;\n  line-height: 1.75;\n  color: var(--geist-foreground);\n}\n.article-body h1, .article-body h2, .article-body h3 {\n  color: var(--geist-foreground);\n  scroll-margin-top: 80px;\n}\n.article-body h1 { font-size: 28px; font-weight: 600; letter-spacing: -1.28px; border-bottom: 1px solid var(--geist-border); padding-bottom: 8px; margin-top: 32px; }\n.article-body h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.96px; border-bottom: 1px solid var(--geist-border); padding-bottom: 6px; margin-top: 36px; }\n.article-body h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.32px; margin-top: 26px; }\n.article-body table {\n  width: 100%;\n  border-collapse: collapse;\n  margin: 24px 0;\n  font-size: 14px;\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  overflow: hidden;\n}\n.article-body th, .article-body td {\n  padding: 10px 14px;\n  text-align: left;\n  border-bottom: 1px solid var(--geist-border);\n}\n.article-body th {\n  background: var(--geist-surface-tint);\n  font-weight: 600;\n  color: var(--geist-foreground);\n}\n.article-body blockquote {\n  border-left: 2px solid var(--geist-foreground);\n  margin: 20px 0;\n  padding: 8px 18px;\n  color: var(--geist-secondary);\n  font-style: normal;\n}\n.article-body code {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 13.5px;\n  box-shadow: var(--shadow-ring);\n  background: var(--geist-surface-tint);\n  padding: 2px 6px;\n  border-radius: var(--radius-sm);\n}\n.article-body pre {\n  position: relative;\n  background: #000000;\n  color: #ededed;\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  padding: 18px;\n  margin: 24px 0;\n  overflow-x: auto;\n}\n.article-body pre code {\n  background: transparent;\n  box-shadow: none;\n  padding: 0;\n  color: inherit;\n  font-size: 13px;\n}\n.copy-code-btn {\n  position: absolute;\n  top: 8px;\n  right: 10px;\n  font-family: \"Geist Mono\", monospace;\n  font-size: 11px;\n  background: #171717;\n  color: #ffffff;\n  border: 1px solid #333333;\n  padding: 3px 8px;\n  border-radius: var(--radius-sm);\n  cursor: pointer;\n}\n\n/* 侧边大纲 (TOC) */\n.reading-sidebar {\n  position: sticky;\n  top: 80px;\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 20px;\n  max-height: calc(100vh - 100px);\n  overflow-y: auto;\n}\n.sidebar-toc-title {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 12px;\n  font-weight: 500;\n  text-transform: uppercase;\n  letter-spacing: 0.5px;\n  color: var(--geist-quaternary);\n  margin-bottom: 12px;\n}\n.reading-sidebar ul {\n  list-style: none;\n  padding-left: 0;\n  margin: 0;\n  font-size: 13px;\n}\n.reading-sidebar li {\n  margin: 6px 0;\n}\n.reading-sidebar ul ul {\n  padding-left: 14px;\n}\n.reading-sidebar a {\n  color: var(--geist-secondary);\n  text-decoration: none;\n  transition: color 0.15s;\n}\n.reading-sidebar a:hover, .reading-sidebar a.active {\n  color: var(--geist-foreground);\n  font-weight: 600;\n}\n\n/* 后台管理 (/admin) */\n.admin-card-container {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card-full);\n  border-radius: var(--radius-lg);\n  padding: 32px;\n  margin-bottom: 32px;\n}\n.form-row-2 {\n  display: grid;\n  grid-template-columns: 1fr 1fr;\n  gap: 16px;\n  margin-bottom: 16px;\n}\n@media (max-width: 600px) {\n  .form-row-2 { grid-template-columns: 1fr; }\n}\n.form-field {\n  display: flex;\n  flex-direction: column;\n  gap: 6px;\n  margin-bottom: 16px;\n}\n.form-field label {\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-foreground);\n}\n.form-field input, .form-field select, .form-field textarea {\n  font-family: \"Geist\", sans-serif;\n  font-size: 14px;\n  padding: 9px 12px;\n  background: var(--geist-background);\n  box-shadow: var(--shadow-border);\n  border: none;\n  border-radius: var(--radius-md);\n  color: var(--geist-foreground);\n  outline: none;\n}\n.form-field input:focus, .form-field select:focus, .form-field textarea:focus {\n  outline: 2px solid var(--ds-focus-color);\n  box-shadow: none;\n}\n\n/* 语法高亮 (Console Blue / Purple / Pink) */\n.codehilite .k, .codehilite .kd, .codehilite .kn { color: #eb367f; font-weight: 500; }\n.codehilite .s, .codehilite .s1, .codehilite .s2 { color: #0070f3; }\n.codehilite .nf, .codehilite .na { color: #7928ca; font-weight: 500; }\n.codehilite .c, .codehilite .c1 { color: #666666; font-style: italic; }\n.codehilite .mi, .codehilite .mf { color: #ff5b4f; }\n\n</style>\n\n</head>\n<body>\n\n    <nav class=\"vercel-nav\">\n      <div class=\"nav-brand\">\n        <a href=\"/\" style=\"display:flex;align-items:center;gap:10px;text-decoration:none\">\n          <svg class=\"vercel-triangle\" viewBox=\"0 0 76 65\" fill=\"none\">\n            <path d=\"M37.5274 0L75.0548 65H0L37.5274 0Z\" fill=\"currentColor\"/>\n          </svg>\n          <span class=\"nav-title\">Agent Harness KB</span>\n        </a>\n        <span class=\"nav-badge-pill\">Geist 2.0</span>\n      </div>\n\n      <div class=\"nav-links\">\n        <a class=\"nav-link \" href=\"/\">全景总览</a>\n        <a class=\"nav-link \" href=\"/vad\" style=\"color:var(--ship-red)\">🎯 VAD 专栏 (144)</a>\n        <a class=\"nav-link\" href=\"https://m0rtzz.github.io/paper-notes/\" target=\"_blank\" rel=\"noopener\">顶会 669 篇 ↗</a>\n        <a class=\"nav-link\" href=\"/download/all\">整库打包</a>\n        \n      </div>\n\n      <div class=\"nav-actions\">\n        \n        <button class=\"theme-toggle-btn\" id=\"theme-toggle-btn\" onclick=\"toggleTheme()\" title=\"切换亮暗主题\">🌙</button>\n      </div>\n    </nav>\n    \n<main class=\"vercel-container\">\n\n        <div class=\"report-header-card\">\n          <div class=\"crumb-bar\"><a href=\"/\">Home</a> / <b>fulltext.txt</b></div>\n          <h1 class=\"report-title\">fulltext.txt</h1>\n          <div class=\"report-action-buttons\">\n            <a class=\"btn-primary-dark\" href=\"?dl=1\">Download Text</a>\n          </div>\n        </div>\n        <article class=\"article-body\"><pre><code>VisualAD: Language-Free Zero-Shot Anomaly Detection via Vision Transformer\nYanning Hou3,2 Peiyuan Li2 Zirui Liu2 Yitong Wang2\nYanran Ruan2 Jianfeng Qiu2 Ke Xu1,2∗\n\n1. Introduction\nAnomaly detection [36, 43, 48, 50] in images plays a central\nrole in safety-critical domains such as industrial inspection\n* Corresponding author.\n\nNormal Features\nAbnormal Features\n\n(b) Our Test method\n\nNormal Text\n\nNormal Text\n\nAbnormal Text\n\nAbnormal Text\n\nText Encoder\nLayer1\n\nText Encoder\nLayer1\n\nLayerM\n\nImage\nEncoder\n\n···\n\nZero-shot anomaly detection (ZSAD) requires detecting and\nlocalizing anomalies without access to target-class anomaly\nsamples. Mainstream methods rely on vision–language\nmodels (VLMs) such as CLIP: they build hand-crafted\nor learned prompt sets for normal and abnormal semantics, then compute image–text similarities for open-set discrimination. While effective, this paradigm depends on a\ntext encoder and cross-modal alignment, which can lead\nto training instability and parameter redundancy. This\nwork revisits the necessity of the text branch in ZSAD\nand presents VisualAD, a purely visual framework built\non Vision Transformers. We introduce two learnable tokens within a frozen backbone to directly encode normality and abnormality. Through multi-layer self-attention,\nthese tokens interact with patch tokens, gradually acquiring high-level notions of normality and anomaly while guiding patches to highlight anomaly-related cues. Additionally, we incorporate a Spatial-Aware Cross-Attention (SCA)\nmodule and a lightweight Self-Alignment Function (SAF):\nSCA injects fine-grained spatial information into the tokens, and SAF recalibrates patch features before anomaly\nscoring. VisualAD achieves state-of-the-art performance\non 13 zero-shot anomaly detection benchmarks spanning\nindustrial and medical domains, and adapts seamlessly to\npretrained vision backbones such as the CLIP image encoder and DINOv2. Our code is publicly available at\nhttps://github.com/7HHHHH/VisualAD.\n\n(a) Existing AnomalyCLIP method\n\nLayerM\n···\n\nAbstract\n\n···\n\narXiv:2603.07952v1 [cs.CV] 9 Mar 2026\n\nState Key Laboratory of Opto-Electronic Information Acquisition and Protection Technology, Anhui\nUniversity, Hefei, China\n2\nSchool of Artificial Intelligence, Anhui University, Hefei, China\n3\nCollege of Intelligence Science and Technology, National University of Defense Technology,\nChangsha, China\n\n···\n\n1\n\nImage\nFeature\nC\n\nC\n\nPerformance\n\nEvaluation Curves\n\nParameters\n5.7M\nAnomalyClip\nOurs-Test\n\nAverage\n-0.33%\n\n99%\n\nAverage\n0.78%\n2*768\n\nFigure 1. Exploratory study motivating this work. (a) AnomalyCLIP derives normal/abnormal prototypes via trainable text\nprompts and a text encoder. (b) A purely visual variant removes\nthe text branch and directly learns two visual prototypes, achieving comparable or slightly better results on VisA and MVTec with\n99% fewer parameters. Radar and line plots show that our variant maintains similar accuracy but with much smoother evaluation\ncurves, whereas AnomalyCLIP oscillates noticeably.\n\nand medical diagnosis. The objective is to identify deviations from expected patterns at either the image or pixel\n\n\flevel, from subtle surface defects on manufactured parts\nto early pathological changes in medical scans. Most established methods follow unsupervised [18, 33, 46, 54] or\nsemi-supervised [30, 59] paradigms that assume access to\ncategory-specific normal images, labeled anomalies, or both\nduring training. In realistic deployments, however, a coldstart situation is common: collecting sufficient, clean normal data for every new product line or disease category is\ncostly and sometimes impractical. As a result, these methods may be difficult to scale to long-tail categories and are\noften brittle under domain shifts between carefully curated\ntraining data and noisy real-world environments. Zero-shot\nanomaly detection (ZSAD) [9, 14, 16, 58] seeks to alleviate\nthese limitations by detecting anomalies in previously unseen categories without using any in-category images for\ntraining, thereby decoupling anomaly detection from the\nper-category data collection burden.\nAgainst this backdrop, large-scale pretrained models [37, 57] offer a practical route to ZSAD. Pretrained\nvision–language models (VLMs) [28, 29, 41] such as\nCLIP [41] exhibit strong transferability by aligning visual\nand textual semantics in a shared embedding space. Leveraging this property, a line of work introduces prompts denoting normality and abnormality into the text encoder and\ncontrasts the resulting text embeddings with image features to perform open-set anomaly detection. Within this\nparadigm, textual prompts are typically divided into two\ncategories. The hand-crafted [10, 11, 21] category, exemplified by WinCLIP [23], relies on fixed templates that combine category context words with state descriptors to express normal and abnormal states; although training-free\nand easy to apply, such designs are sensitive to wording\nchoices and may struggle to cover diverse anomaly patterns.\nThe learnable category [9, 16, 58], exemplified by AnomalyCLIP [58], parameterizes contextual terms as trainable\nvectors and optimizes them on a small auxiliary dataset,\nyielding object-agnostic representations of normality and\nabnormality that can generalize across categories. Despite\ntheir differences, these methods suggest a simple principle:\nanomalies can be described by two sets of reference features\ncorresponding to normality and abnormality.\nHowever, this principle raises a question: if the final decision is governed by only two sets of latent vectors, normal and anomaly, is the language modality truly indispensable? From a purely visual standpoint, anomalies appear as\nstructural or statistical deviations in texture, shape, or color,\nall of which can be captured within the visual domain. To\nprobe this hypothesis, we conducted a small-scale study by\nmodifying AnomalyCLIP [58]: we removed the text encoder and directly optimized two learnable vectors representing normality and abnormality. The resulting detection performance showed negligible degradation, while the\nnumber of trainable parameters dropped by more than 99%.\n\nAs illustrated in Fig. 1, the evaluation curves across training\nepochs reveal a clear difference in generalization behavior:\nour visual-only variant improves steadily and maintains a\nsmooth upward trend, whereas the original AnomalyCLIP\ndisplays pronounced fluctuations across epochs. This finding suggests that, in CLIP-based ZSAD pipelines, textual\nprompts might serve primarily as an indirect route for shaping a pair of discriminative visual prototypes, rather than\nproviding essential semantic grounding.\nMotivated by this observation, we propose VisualAD,\na purely visual framework for zero-shot anomaly detection built on frozen Vision Transformers. Instead of relying on a text encoder, VisualAD introduces two learnable tokens, an anomaly token and a normal token, directly\ninto the ViT token sequence. Through multi-layer selfattention, these tokens interact with patch tokens, gradually acquiring high-level notions of normality and anomaly\nwhile guiding patches to emphasize anomaly-related cues.\nTo align the high-level semantic tokens with fine-grained\nimage features across layers, we employ a Spatial-Aware\nCross-Attention (SCA) module that provides explicit spatial cues and local detail to the tokens, together with a\nlightweight Self-Alignment Function (SAF), implemented\nas a small MLP, that recalibrates patch features before token–patch alignment. Unlike methods that align directly to\npatch-level features, SCA dynamically updates the tokens\nusing fine-grained visual evidence, which improves ZSAD\nperformance. We then synthesize the anomaly map by integrating alignment outcomes between multiple updated tokens and recalibrated patch-level features across layers, and\nobtain the image-level anomaly decision from the top one\npercent of pixels with the highest anomaly scores.\nIn summary, our contributions are as follows:\n• We revisit the necessity of text in zero-shot anomaly detection and show that discriminative anomaly features can\nbe learned purely from visual cues.\n• We introduce VisualAD, a ViT-only framework for zeroshot anomaly detection that injects two learnable tokens\ninto a frozen backbone, allowing them to interact with\npatch tokens through multi-layer self-attention to encode\nnormality and abnormality.\n• We propose the SCA and SAF modules, where SCA injects explicit spatial evidence into the tokens and SAF\nrecalibrates patch features, enabling stable multi-layer\nalignment and improved localization.\n• Extensive experiments across industrial and medical\nbenchmarks demonstrate strong zero-shot generalization\nto unseen categories and datasets.\n\n\f2. Related work\n\nWe follow the zero-shot anomaly detection (ZSAD) protocol. The model is trained with supervision on visible cat-\n\ni = 18\n\ni = 12\n\ni = 24\n\nƑℓ\nSCAℓ\n\nLayerℓ\n\nquery\nanchor\n\nC\n\nSoftmax\nAttention Map\n\nLayerM\n\nMultiplication\nM Maximum\nPatch Token\n\ngate\n\n...\n\n3.1. Problem Setting\n\nClassification Anomaly Score\n\ni=6\n\n...\n\n3. Approach\n\nAbnormal\n\nAnomaly Map\n\nΣ\n\npos\n\nIn industrial anomaly detection, pre-trained vision models [13, 26, 28, 41, 57] show strong generalization and feature extraction. Zero-shot approaches fall into two families. The first is training-free: WinCLIP [23] aligns multigranularity features but needs repeated encodings; SAA [8]\ncouples Grounding DINO [31] with SAM [26] for precise\nlocalization and segmentation at higher computational cost.\nThe second family keeps the target domain zero-shot while\ntraining lightweight modules on auxiliary data to align vision and text. AnomalyCLIP [58] uses object-agnostic\nprompts with glocal optimization but relies on a dual\nbranch; AdaCLIP [9] and VCP-CLIP [39] inject visual cues\ninto text prompts, improving adaptability with added complexity; CLIP-AD [11] and CLIP-SAM [20] further tighten\nalignment or add segmentation priors. AA-CLIP [32]\nadopts a two-stage scheme with anomaly and normal text\nanchors plus lightweight visual adapters; AdaptCLIP [16]\nlearns compact visual, textual, and prompt–query adapters\nfor cross-domain transfer; Bayes-PFL [40] models a distribution over prompts to capture diverse anomaly semantics. In contrast, VisualAD removes the text branch and\nlearns high-level anomaly cues purely from vision, achieving strong zero-shot results.\n\nLayer1\n\n...\n\n2.2. Zero-shot Anomaly Detection.\n\nEmbedding\n\n...\n\nUnsupervised anomaly detection seeks to identify anomalies using only normal training images. Existing methods fall into three categories: embedding-based, discriminative, and reconstruction-based approaches. Embeddingbased methods, such as PaDiM [12], PatchCore [42], and\nCSFlow [44], utilize features from pre-trained models to\ndistinguish anomalies from normal samples. Discriminative methods, like CutPaste [27] and DRAEM [56], introduce synthetic anomalies to convert the task into a supervised problem. Reconstruction-based [15, 52, 53] methods,\nincluding autoencoders [5, 17, 22] and GANs [38, 51, 55],\nassume anomalies yield higher reconstruction errors due\nto their absence in normal data. Recent knowledge distillation and feature reconstruction approaches balance efficiency and performance by aligning a student network with\na pre-trained teacher. However, these methods struggle with\nunseen anomaly types, requiring extensive normal data collection and retraining for new scenarios, which limits their\npractical adaptability.\n\nNormal\n\nM\n\n2.1. Unsupervised Anomaly Detection.\n\nC Cosine Similarity\nSum\nCls Token\n\nΣ Aggregation\n\nƑ SAF Moudle\nAbnormal Token\n\nTraining\nNormal Token\n\nFigure 2. Overview of VisualAD. Two learnable global tokens\n(anomaly and normal) are inserted into a frozen ViT. For intermediate layers ℓ, SCA uses a few anchor queries with positional\nencoding and token-guided gating to aggregate localized spatial\n(ℓ) (ℓ)\nevidence, yielding enhanced tokens t̃a , t̃n . In parallel, each\nlayer’s patch features are recalibrated by a SAF, denoted as Fℓ .\nThe cosine-similarity difference between enhanced tokens and recalibrated patches forms layer-wise anomaly maps, which are upsampled and summed to obtain the final anomaly map; the imagelevel score is the mean of the top-k responses.\n\negories Cs drawn from industrial datasets and is directly\nevaluated on unseen categories Cu collected from other industrial or medical datasets. By definition Cu ∩ Cs = ∅;\nthe auxiliary training and testing categories come from distinct datasets that exhibit substantial domain shifts. This\nsetting evaluates cross-domain generalization without any\ncategory-specific fine-tuning.\nAs illustrated in Fig. 2, we propose VisualAD, a zeroshot anomaly detection framework built upon frozen Vision\nTransformers. Given a backbone such as ViT-L/14@336px,\nwe insert two learnable global tokens, the anomaly token ta\nand the normal token tn , to directly encode abnormality and\nnormality in the visual feature space. The input sequence is\nz0 = [ta , tn , tc , p1 , . . . , pN ],\n\n(1)\n\nwhere tc is the class token, {pi }N\ni=1 are image patch tokens,\nand all tokens are d-dimensional.\nTo capture diverse spatial and semantic cues, we extract\nfeatures from a set of intermediate layers L = {l1 , . . . , lK }\n\n\f(default {6, 12, 18, 24} for ViT-L/14). For each selected\nlayer, we introduce a Spatial-Aware Cross-Attention (SCA)\nmodule that aggregates localized spatial evidence from\npatch features and enhances the token representations. In\nparallel, a lightweight Self-Alignment Function (SAF) recalibrates patch features at layer ℓ. The enhanced tokens\nand the SAF-recalibrated patches jointly produce layer-wise\nanomaly maps that are fused across layers. Pixel-level and\nimage-level anomaly scores are obtained from the fused\nmap. Training and inference share the same computation\npath with no text encoder or cross-modal alignment.\n\nrecalibrated patch features to form the layer-wise anomaly\nmaps. Since attention and gating are recomputed for every\nimage, SCA dynamically adapts the abnormality sensitivity of the global tokens to the local structure of each test\nsample.\n\n3.3. Self-Alignment Function and Anomaly Scoring\nBeyond SCA, we refine patch representations using a learnable Self-Alignment Function (SAF). For each selected\nlayer ℓ, the SAF is implemented as a one-hidden-layer MLP\nwith hidden dimension equal to the input size:\n\n3.2. Spatial-Aware Cross-Attention\n\nP̂ℓ = Fℓ (Pℓ ),\n\nGlobal tokens encode high-level semantics but lack explicit\nspatial grounding. To inject localized evidence while keeping the ViT pipeline intact, we apply a single SCA module at each selected layer ℓ. Given patch features Pℓ ∈\nRB×N ×d , where B is the batch size, N is the number\nof patches, and d is the feature dimension, we first augment them with a layer-specific learnable positional encod(ℓ)\ning Epos :\n(ℓ)\nPpos\n(2)\nℓ = Pℓ + Epos .\nallowing the module to distinguish spatially distinct regions.\nTo aggregate spatial cues efficiently, SCA employs m\nlearnable anchor queries Qanchor ∈ Rm×d with m ≪ N .\nFor clarity, we omit the batch dimension in the following\nN ×d\nand denote Ppos\n. The cross-attention weights and\nℓ ∈ R\nanchor-aggregated features are computed as\n\u0013\n\u0012\nQanchor (Ppos\n)⊤\n√ ℓ\n,\nUℓ = Aℓ Pℓ .\nAℓ = softmax\nd\n(3)\nwhere Aℓ ∈ Rm×N is the spatial attention distribution\nand Uℓ ∈ Rm×d contains the anchor-aggregated features,\nwhose i-th row is denoted by ai .\nNext, SCA adapts the anchor features to each token via a\ntoken-guided gating mechanism. We compute a gate vector\ng(t) = σ(Wg t) ∈ Rm ,\n\n(4)\n\nwhere t ∈ {ta , tn } is a global token before enhancement,\nand Wg is shared across anchors. The enhanced token is\nt̃ℓ = t + α\n\nm\nX\n\ngi (t) ai ,\n\n(5)\n\ni=1\n\nwith α a learnable residual scale and gi (t) the i-th entry of\ng(t). This formulation preserves the semantic role of global\ntokens while selectively injecting spatial information in an\nanchor-specific manner.\nWe instantiate SCA independently for each ℓ ∈ L, pro(ℓ)\n(ℓ)\nducing t̃a and t̃n that are subsequently matched with the\n\n(6)\n\nwhere Fℓ denotes the SAF at layer ℓ. This nonlinear recalibration aligns patch features with the evolving normal and\nanomaly tokens.\nPatch-level anomaly scores are then computed through a\nself-aligned cosine contrast. Using ℓ2 -normalized features\n(x̄ = x/∥x∥2 ), the score of the i-th patch at layer ℓ is\n(ℓ)\n\nsi\n\n¯ (ℓ) , t̄(ℓ) − p̂\n¯ (ℓ) , t̄(ℓ) .\n= p̂\na\nn\ni\ni\n\n(7)\n\nScores are reshaped into spatial maps Hℓ ∈ RH×W and\nupsampled to the input size. Multi-layer fusion yields the\nfinal anomaly map:\nX\nH=\nHℓ .\n(8)\nℓ∈L\n\nThe image-level anomaly score S is computed by averaging the top-k most anomalous pixels, where k =\n⌊0.01 HW ⌉ denotes the floor of 1% of all pixels:\nk\n\nS=\n\n1X\nH(i) ,\nk i=1\n\n(9)\n\nwith H(i) the i-th largest value in H. This completes the\nconstruction of both the anomaly map and the corresponding image-level score in VisualAD.\n\n3.4. Training Objective\nWe jointly optimize image-level classification, pixel-level\nsegmentation, and token contrastive separation under a unified objective, while keeping the ViT backbone frozen;\nonly the anomaly/normal tokens ta , tn , the SCA modules,\nand the per-layer transformations {Fℓ } are updated. For\nimage-level supervision, we apply binary cross-entropy to\nthe score S:\nh\n\u0001i\nLcls = − y log σ(S) + (1 − y) log 1 − σ(S) . (10)\nFor pixel-level supervision, we combine Focal Loss and\nDice Loss on each selected layer map, where M̂(ℓ) =\n\n\fσ(Hℓ ) denotes the predicted mask and M is the binary\nground truth:\n\u0011\nX \u0010 (ℓ)\n(ℓ)\nLfocal + Ldice .\n(11)\nLseg =\nℓ∈L\n\nTo explicitly separate the anomaly and normal tokens,\nwe impose a cosine-margin penalty at the deepest layer index L (the maximum element in L):\n\u0010\n\u0011\n(L)\nLctr = max 0, t̄(L)\n,\nt̄\n+\nτ\n, τ = 0.5,\n(12)\na\nn\nwhich encourages their similarity to fall below −0.5, corresponding to an angular distance greater than 120◦ . The\noverall loss is\nL = Lcls + Lseg + Lctr .\n\n(13)\n\nTraining and inference strictly share the same pipeline, including the layer set L, SCA, the transformations Fℓ , crosslayer fusion, and top-k aggregation, with no text branch or\ncross-modal alignment.\n\n4. Experiments\n4.1. Experimental Setup\nDatasets. To evaluate the zero-shot anomaly detection\n(ZSAD) performance of our model, we conduct experiments on 13 real-world datasets spanning both industrial and medical domains. In the industrial domain, we\nemploy six widely used benchmarks: MVTec-AD [6],\nVisA [60], BTAD [35], KSDD2 [47], DAGM [49], and\nDTD-Synthetic [1]. For the medical domain, we adopt\nOCT17 [25], BrainMRI [45], BrainAD [2, 3, 34], HIS [4],\nCVC-ClinicDB [7], Endo [19], and Kvasir [24], covering\ndiverse imaging modalities and tasks. Specifically, OCT17\ncontains retinal OCT scans for retinal disease classification, BrainMRI and BrainAD provide brain MRI images\nfor brain tumor or lesion classification, and HIS consists of\nhistopathology images for abnormal tissue analysis. CVCClinicDB, Endo, and Kvasir are colonoscopy datasets with\npixel-level annotations for colon polyp segmentation. Following previous works, we train the model on one industrial dataset and directly perform inference on other industrial and medical datasets without further fine-tuning. Since\nVisA contains object categories disjoint from the others, it\nis used as the auxiliary training set. For evaluating VisA\nitself, the model is fine-tuned on MVTec-AD. Detailed descriptions of all datasets are provided in Appendix.\nEvaluation metrics. For classification, we report imagelevel metrics including the Area Under the ROC Curve\n(AUROC), the maximum F1 score over all thresholds (F1 max), and Average Precision (AP). For segmentation, we\n\nevaluate pixel-level AUROC, the maximum F1 score over\nall thresholds (F1 -max), AP, and Per-Region Overlap (PRO)\nto assess the localization capability of the model.\nImplementation Details. We adopt publicly available\nbackbones: CLIP (ViT-L/14@336px) and DINOv2 (ViTL/14). Following standard practice, input images are resized to 518 × 518. From the 24-layer visual encoder, we\nextract patch tokens at layers {6, 12, 18, 24}. The number\nof anchor queries in SCA is set to m = 4 by default. VisualAD is trained with the Adam optimizer, using an initial\nlearning rate of 1 × 10−3 and a batch size of 8. Additional\nimplementation details are provided in Appendix.\nCable\n\nPipe_\nfryum Capsule\n\nWood\n\nHazelnut\n\nColon\n\nSkin\n\nThyroid\n\nInput\n\nWinCLIP\nApril-GAN\nAnomalyCLIP\n\nOurs(CLIP)\nOurs(DINOv2)\nGT\n\nFigure 3. Qualitative comparison of anomaly segmentation results\nfor different ZSAD methods. The first five columns show images\nfrom industrial datasets, while the last three columns correspond\nto medical datasets.\n\n4.2. Performance Comparison with SOTA Method\nIn this study, we compare VisualAD with five state-ofthe-art methods: WinCLIP [23], APRILGAN [10], CLIPAD [11], AnomalyCLIP [58], and AdaCLIP [9]. Since\nour approach can adapt to multiple backbones, we report\nresults using both CLIP’s ViT-L/14@336px and DINOv2\n(ViT-L/14) to demonstrate its flexibility across different visual architectures. Table 1 reports quantitative ZSAD results on industrial and medical benchmarks. Compared\nwith existing methods, VisualAD achieves state-of-the-art\nperformance on almost all datasets at both the image and\npixel levels. On industrial datasets in particular, VisualAD with CLIP ViT-L/14@336px attains the best results\nacross all classification metrics. We further observe that\nCLIP-based and DINOv2-based instances of VisualAD exhibit complementary strengths, with the former slightly favoring image-level classification and the latter delivering\n\n\fTable 1. Comparison of zero-shot anomaly detection methods on industrial and medical benchmarks. For each dataset, we report imagelevel metrics (AUROC, F1 -max, AP) and pixel-level metrics (AUROC, F1 -max, AP, PRO). VisualAD(CLIP) and VisualAD(DINOv2)\ndenote our method instantiated with CLIP and DINOv2 backbones, respectively. The best and second-best results for each metric and\ndataset are highlighted in red and blue.\n\nDomain\n\nMetric\n\nImage-level\n(AUROC, F1 -max,\nAP)\n\nWinCLIP [23]\n\nAPRIL-GAN [10]\n\nCLIP-AD [11]\n\nAnomalyCLIP [58]\n\nAdaCLIP [9]\n\nVisualAD(CLIP [41])\n\nViT-L/14@336px\n\nViT-L/14@336px\n\nViT-L/14@336px\n\nViT-L/14@336px\n\nViT-L/14@336px\n\nViT-L/14@336px\n\nVisualAD(DINOv2 [37])\nViT-L/14\n\nMVTec-AD [6]\n\n(90.4, 92.7, 95.6)\n\n(86.1, 90.4, 93.6)\n\n(74.1, 86.3, 88.1)\n\n(91.6, 92.7, 96.2)\n\n(92.0, 92.7, 96.4)\n\n(92.2, 93.2, 96.7)\n\n(90.1, 92.4, 94.8)\n\nDataset\n\nVisA [60]\n\n(75.6, 78.2, 78.8)\n\n(77.4, 78.6, 80.9)\n\n(66.2, 74.3, 71.4)\n\n(81.0, 80.3, 84.4)\n\n(79.7, 79.63, 83.2)\n\n(84.7, 82.5, 87.6)\n\n(83.1, 81.4, 86.8)\n\nBTAD [35]\n\n(68.2, 67.8, 70.9)\n\n(73.7, 68.7, 69.9)\n\n(66.7, 65.9, 67.3)\n\n(88.7, 86.0, 90.6)\n\n(90.0, 87.2, 91.5)\n\n(94.9, 93.9, 97.0)\n\n(88.2, 84.7, 89.7)\n\nKSDD2 [47]\n\n(93.5, 86.4, 94.2)\n\n(90.4, 82.9, 92.0)\n\n(81.7, 75.0, 85.5)\n\n(91.9, 84.5, 93.4)\n\n(94.9, 90.3, 96.2)\n\n(98.0, 93.9, 98.3)\n\n(97.7, 93.1, 98.1)\n\nDAGM [49]\n\n(91.8, 75.8, 79.5)\n\n(94.4, 80.3, 83.9)\n\n(62.1, 37.1, 32.3)\n\n(98.0, 90.6, 92.4)\n\n(98.3, 91.5, 94.2)\n\n(99.5, 95.0, 97.8)\n\n(93.2, 83.9, 86.1)\n\nDTD-Synthetic [1]\n\n(95.1, 94.1, 97.7)\n\n(85.5, 89.1, 94.0)\n\n(75.1, 86.3, 88.0)\n\n(93.7, 94.3, 97.4)\n\n(92.1, 92.4, 96.3)\n\n(97.5, 96.6, 99.1)\n\n(91.0, 94.4, 97.4)\n\nMVTec-AD [6]\n\n(82.3, 24.8, 18.2, 62.0)\n\n(87.5, 42.3, 39.1, 43.7)\n\n(77.9, 26.3, 21.1, 55.7)\n\n(91.0, 38.9, 34.4, 81.7)\n\n(88.5, 43.9, 41.0, 47.6)\n\n(90.8, 43.9, 41.2, 87.5)\n\n(91.3, 47.4, 45.4, 88.6)\n\nIndustrial\n\nPixel-level\n(AUROC, F1 -max,\nAP, PRO)\n\nImage-level\n(AUROC, F1 -max,\nAP)\n\nVisA [60]\n\n(73.2, 9.0, 5.4, 51.1)\n\n(93.8, 32.6, 26.2, 86.5)\n\n(93.0, 24.1, 17.9, 80.2)\n\n(95.4, 27.6, 20.7, 86.4)\n\n(95.1, 33.8, 29.2, 71.3)\n\n(95.8, 34.6, 28.4, 91.0)\n\n(95.3, 35.2, 29.9, 88.2)\n\nBTAD [35]\n\n(72.7, 18.5, 12.9, 27.3)\n\n(91.3, 40.1, 37.7, 21.0)\n\n(80.9, 24.1, 18.3, 41.4)\n\n(93.0, 47.1, 41.5, 71.0)\n\n(87.7, 42.3, 36.6, 17.1)\n\n(91.1, 49.8, 43.1, 80.4)\n\n(93.4, 42.6, 38.7, 76.7)\n\nKSDD2 [47]\n\n(94.1, 24.6, 17.4, 77.6)\n\n(94.5, 64.2, 66.9, 39.2)\n\n(95.6, 43.0, 39.6, 73.5)\n\n(98.0, 50.6, 43.7, 90.8)\n\n(96.1, 59.2, 58.6, 40.8)\n\n(98.5, 60.9, 62.1, 98.5)\n\n(98.9, 64.0, 66.8, 98.9)\n\nDAGM [49]\n\n(87.6, 12.7, 6.8, 65.7)\n\n(84.4, 35.1, 27.8, 12.7)\n\n(69.1, 20.9, 14.7, 36.1)\n\n(96.9, 56.9, 53.6, 89.2)\n\n(88.6, 48.5, 42.6, 37.6)\n\n(92.2, 57.9, 56.4, 89.3)\n\n(89.5, 54.8, 52.2, 84.5)\n\nDTD-Synthetic [1]\n\n(79.5, 16.1, 9.8, 51.5)\n\n(94.9, 60.4, 61.0, 33.8)\n\n(86.6, 35.8, 31.0, 63.2)\n\n(97.5, 55.8, 52.5, 87.9)\n\n(95.1, 58.4, 56.1, 34.3)\n\n(98.1, 64.3, 65.5, 94.8)\n\n(96.7, 65.8, 67.7, 92.4)\n\nOCT17 [25]\n\n(55.2, 82.7, 81.1)\n\n(30.4, 81.7, 67.0)\n\n(58.1, 83.6, 84.1)\n\n(63.7, 85.7, 86.5)\n\n(77.3, 86.1, 91.8)\n\n(88.9, 88.2, 96.4)\n\n(91.2, 90.3, 97.1)\n\nBrainMR1 [45]\n\n(86.6, 84.1, 91.5)\n\n(89.3, 88.2, 90.9)\n\n(83.0, 81.9, 89.3)\n\n(96.4, 94.7, 97.2)\n\n(94.9, 93.1, 96.8)\n\n(96.7, 94.8, 97.6)\n\n(93.8, 90.3, 95.9)\n\nBrain AD [2]\n\n(72.5, 90.7, 91.6)\n\n(58.8, 90.6, 87.8)\n\n(72.1, 91.3, 91.5)\n\n(69.0, 90.6, 90.1)\n\n(80.0, 90.2, 94.1)\n\n(80.8, 91.8, 94.7)\n\n(87.1, 92.5, 96.7)\n\nHIS [4]\n\n(47.1, 45.6, 40.9)\n\n(59.8, 67.5, 56.5)\n\n(44.7, 66.6, 46.0)\n\n(55.2, 66.8, 56.1)\n\n(59.9, 68.4, 55.8)\n\n(60.1, 68.9, 55.9)\n\n(60.1, 68.7, 56.2)\n\nBrain AD [2]\n\n(87.6, 21.7, 13.3, 59.7)\n\n(83.6, 38.7, 35.0, 45.4)\n\n(94.1, 42.9, 40.5, 74.2)\n\n(95.1, 43.1, 42.3, 71.5)\n\n(95.2, 40.6, 37.0, 36.4)\n\n(95.2, 46.7, 43.7, 79.5)\n\n(96.4, 50.2, 51.9, 83.5)\n\nMedical\nPixel-level\n(AUROC, F1 -max,\nAP, PRO)\n\nCVC-ClinicDB [7]\n\n(70.3, 27.3, 19.4, 32.5)\n\n(82.4, 38.2, 36.4, 53.5)\n\n(76.5, 32.1, 24.6, 52.8)\n\n(84.6, 45.5, 41.7, 69.8)\n\n(84.3, 44.4, 43.3, 63.6)\n\n(85.2, 45.6, 37.8, 70.6)\n\n(85.9, 45.0, 36.2, 67.3)\n\nEndo [19]\n\n(68.2, 32.9, 23.8, 28.3)\n\n(82.7, 46.9, 47.2, 48.3)\n\n(78.1, 41.4, 36.8, 46.4)\n\n(86.5, 53.7, 50.7, 67.1)\n\n(82.9, 47.9, 47.7, 55.8)\n\n(84.9, 52.0, 46.2, 66.3)\n\n(86.8, 54.7, 53.2, 67.8)\n\nKvasir [24]\n\n(69.7, 35.9, 27.8, 24.5)\n\n(77.6, 43.2, 42.5, 40.6)\n\n(73.6, 38.9, 31.1, 30.6)\n\n(82.0, 50.0, 43.2, 44.7)\n\n(80.3, 47.7, 31.0, 27.5)\n\n(80.3, 47.8, 47.6, 50.8)\n\n(82.6, 50.3, 46.4, 40.5)\n\nstronger pixel-wise segmentation performance. Fig. 3 visualizes anomaly maps from representative industrial and\nmedical datasets. Compared with other approaches, VisualAD produces more accurate segmentations and more\ncomplete localization of anomalous regions. The advantage is especially pronounced on medical categories (for example, skin), where our method yields clearer boundaries\nand fewer false positives. These results indicate that highlevel anomaly semantics learned purely in the visual feature\nspace can generalize effectively across domains.\n\nTable 2. Ablation study on different modules and loss components\nusing ViT-L/14@336px. Both Image-level and Pixel-level metrics\nare reported as (AUROC, AP).\nAblation\n\nSCA\n\nSAF\n\nFocal\n\nDice\n\nCtr\n\nImage-level\n\nPixel-level\n\nModule\n\n✗\n✓\n✗\n\n✓\n✗\n✗\n\n✓\n✓\n✓\n\n✓\n✓\n✓\n\n✓\n✓\n✓\n\n(82.3, 85.4)\n(50.5, 58.9)\n(48.0, 56.1)\n\n(95.3, 27.4)\n(87.9, 3.5)\n(38.3, 0.8)\n\nLoss\n\n✓\n✓\n✓\n\n✓\n✓\n✓\n\n✗\n✓\n✓\n\n✓\n✗\n✓\n\n✓\n✓\n✗\n\n(83.5, 86.8)\n(83.4, 86.5)\n(84.2, 87.0)\n\n(95.3, 26.6)\n(95.3, 27.3)\n(95.4, 27.6)\n\nVisualAD\n\n✓\n\n✓\n\n✓\n\n✓\n\n✓\n\n(84.7, 87.6)\n\n(95.8, 28.4)\n\n4.3. Ablation Studies\nIn this section, we use CLIP’s ViT-L/14@336px backbone\nby default and conduct ablation studies on the VisA dataset\nto examine how different settings affect the proposed VisualAD method. We additionally include DINOv2-based\nablations for part of the experiments, with the full results\ndeferred to the appendix.\nEffect of Different Components. We conduct separate\nablations on modules and losses, with results summarized in\nTable 2. For the module ablation, removing any single component consistently degrades performance, indicating that\neach module contributes positively to the framework. Eliminating SCA weakens spatial alignment and fine-grained evidence aggregation, while removing the SAF undermines\nnonlinear recalibration of high-level semantics; dropping\nboth leads to the most pronounced degradation, highlighting\n\ntheir complementary roles. For the loss ablation, excluding\nthe Focal, Dice, or Ctr objective each yields a noticeable decline, suggesting that the hybrid supervision balances classification focus, region consistency, and feature separability.\nOverall, the full model achieves the best image-level and\npixel-level results, validating the effectiveness and synergy\nof all components.\nAblation on different pretrained ViT. We evaluate both\nCLIP and DINO pretrained ViTs from small to large capacities and observe a consistent trend: scaling the backbone\nand input resolution steadily improves pixel- and imagelevel performance, with gains tapering at the largest scales.\nWithin CLIP, moving from ViT-B to ViT-L with 336px inputs yields the strongest overall results, while within DINO\nthe larger variants approach or surpass smaller CLIP mod-\n\n\fTable 3. Ablation on the number of anchor queries using a\nViT-L/14@336px backbone pre-trained with CLIP. Pixel-level and\nimage-level metrics are reported as (AUROC, F1 -max, AP). The\nbest and second-best results are highlighted in bold and underline,\nrespectively.\n\nAnchors\n\nPixel-level\n\nImage-level\n\n1\n2\n4\n8\n16\n32\n\n(95.2, 33.3, 27.0)\n(95.2, 33.4, 27.2)\n(95.8, 34.6, 28.4)\n(95.0, 32.9, 26.8)\n(95.1, 33.5, 26.9)\n(94.6, 32.4, 26.1)\n\n(84.7, 82.2, 87.3)\n(83.8, 81.3, 86.7)\n(84.7, 82.5, 87.6)\n(84.0, 81.7, 86.7)\n(84.9, 83.0, 87.8)\n(84.5, 82.1, 87.6)\n\nTable 4. Ablation on different layer combinations using ViTL/14@336px backbone pre-trained with CLIP. Pixel-level and\nimage-level metrics follow (AUROC, F1 -max, AP).Best and\nsecond-best results are in bold and underline.\n\nLayers\n\nPixel-level\n\nImage-level\n\n{6}\n{12}\n{18}\n{24}\n{6, 12}\n{6, 12, 18}\n{6, 12, 18, 24}\n\n(88.0, 11.9, 8.3)\n(94.7, 28.4, 22.9)\n(95.2, 31.3, 24.6)\n(93.5, 25.9, 19.3)\n(93.7, 29.3, 24.1)\n(95.0, 32.9, 27.1)\n(95.8, 34.6, 28.4)\n\n(67.1, 75.0, 72.7)\n(76.6, 77.3, 81.5)\n(82.4, 80.5, 85.4)\n(79.6, 79.1, 84.0)\n(79.5, 78.5, 83.6)\n(83.4, 80.5, 86.4)\n(84.7, 82.5, 87.6)\n\nF1 -max, and AP, the improvements over m = 4 remain\nwithin one to two percentage points. These findings suggest\nthat a small anchor set is sufficient, and we adopt m = 4 as\nthe default choice, achieving a balanced trade-off between\npixel-level precision and image-level robustness.\n\n(1) CLIP backbone ablation\n\n(2) DINOv2 backbone ablation\n\nFigure 4. Radar plot comparing different pretrained ViT backbones under the ZSAD setting. We evaluate CLIP and DINObased variants from small to large model scales. Larger backbones\nand higher input resolutions generally lead to consistent improvements in both pixel-level and sample-level metrics, with CLIP’s\nViT-L/14@336px giving the strongest sample-level accuracy and\nDINO’s ViT-g/14 delivering the highest pixel-level precision.\n\nels in pixel-level F1 -max and AP. Notably, within the CLIP\nfamily ViT-L/14@336px attains the best sample-level results, whereas within the DINO family ViT-g/14 achieves\nthe best pixel-level precision (highest pixel F1 -max). The\nFig. 4 mirrors these patterns with broadly rising curves\nacross AUROC, F1 -max, and AP.\nInfluence of the number of anchors. Table 3 analyzes\nhow the number of anchor queries in SCA affects model\nperformance. At the pixel level, increasing the anchors from\n1 to 4 yields steady improvements across AUROC, F1 -max,\nand AP, with m = 4 delivering the strongest overall results.\nExpanding the anchor set beyond 4 (e.g., 8–32) introduces\nredundancy and slightly degrades pixel-level accuracy, indicating that an excessively large anchor set dilutes spatial\nfocus rather than enhancing it. Image-level metrics exhibit\na flatter trend: while m = 16 provides the highest AUROC,\n\nInfluence of ensemble of different patch-level image\nlayers. Table 4 examines the effect of aggregating features from different intermediate layers of the frozen image encoder. Using a single layer ({6}, {12}, {18}, or\n{24}) shows that mid-level layers yield stronger representations than shallow or deep ones, with layer {18} achieving the best balance between local detail and global semantics. When combining multiple layers, the performance improves consistently: {6,12,18} already brings clear gains\nin both pixel- and sample-level metrics, and extending to\n{6,12,18,24} further enhances stability and overall accuracy. These results demonstrate that multi-layer feature\nensembles effectively capture complementary information\nacross scales, leading to more robust anomaly localization\nand classification.\nTable 5. Effect of positional modeling in the SCA module on\nVisA. Metrics are reported as (AUROC, F1 -max, AP). Best and\nsecond-best results are highlighted in bold and underline.\nPositional modeling\n\nPixel-level\n\nImage-level\n\nNone (no PE)\n\n(93.0, 29.0, 22.5)\n\n(82.4, 78.1, 84.5)\n\nLearnable 1D Absolute\n\n(95.8, 34.6, 28.4)\n\n(84.7, 82.5, 87.6)\n\nFixed 1D Sinusoidal\n\n(95.2, 33.8, 27.6)\n\n(84.1, 81.9, 86.8)\n\nLearnable 2D Absolute\n\n(95.0, 33.2, 27.0)\n\n(83.8, 81.6, 86.0)\n\nFixed 2D Sinusoidal\n\n(94.6, 32.4, 26.1)\n\n(83.4, 80.8, 85.4)\n\nLearnable 2D Relative Bias\n\n(94.4, 31.9, 25.7)\n\n(83.0, 80.2, 84.9)\n\n\f(1) Original ViT\n\n(2) Add Normal and Abnormal Token\n\n(3) After SAF\n\nFigure 5. PCA visualization of feature distributions under three configurations. From left to right: vanilla CLIP features, CLIP with normal/anomaly tokens, and CLIP with both tokens and the MLP-based transformation. The anomaly cluster (dark) becomes progressively\nmore compact and moves farther from the normal cluster, while the variance concentrates along a single dominant axis, indicating increasingly discriminative representations for anomaly separation.\n\n(1) Layer 12\n\n(2) Layer 24\n\nFigure 6. Layer-wise anchor attention maps on the carpet category. Anchors within the same layer attend to similar regions,\nwhereas attention patterns differ across layers: mid-level layers\nfocus on fine-grained defect boundaries, while deeper layers emphasize broader normal regions. This complementarity between\nlayers provides both local anomaly cues and holistic normal context for accurate localization.\n\n4.4. Visualization\nInfluence of spatial positional modeling. Although we\nre-train the positional encoding associated with the inserted\nglobal tokens, we still observe that their interaction with\npatch tokens tends to blur the underlying spatial geometry and degrade pixel-level localization. To improve spatial\nconsistency, we equip the SCA module with explicit positional modeling and conduct an ablation study comparing\nsix variants: no positional encoding, learnable 1D absolute\nembeddings, fixed 1D sinusoidal encodings, learnable 2D\nabsolute embeddings, fixed 2D sinusoidal encodings, and\n\nlearnable 2D relative positional bias. As summarized in\nTable 5, we report both pixel-level and image-level performance in the format (AUROC, F1 -max, AP). A simple\nlearnable 1D absolute embedding achieves the best overall trade-off across these metrics, while more complex 2D\nor relative formulations offer only marginal gains or even\nharm stability. Therefore, we adopt the learnable 1D absolute variant as the default configuration in the SCA module.\nWe provide visual analyses to illustrate how anchor attention and feature representations evolve within VisualAD.\nFig. 6 shows layer-wise anchor attention on the carpet category. Within each layer, anchors consistently attend to\nnearly identical spatial regions, revealing stable and coherent local evidence. Across layers, the focus shifts in a structured manner: mid-level layers (for example, layer 12) emphasize fine-grained defect boundaries and subtle texture\ndisruptions, whereas deeper layers (for example, layer 24)\nhighlight broader, predominantly normal regions. This progression reflects the hierarchical nature of the frozen ViT\nencoder, where mid-level anchors capture detailed irregularities while high-level anchors encode holistic normal\npatterns, producing complementary cues that strengthen\nanomaly localization. Together with the quantitative ablations, these attention maps clearly demonstrate that the\nanchor-based SCA module leverages multi-layer information rather than relying on a single feature scale.\nTo examine representation evolution, Fig. 5 plots PCA\ndistributions under three configurations. Vanilla CLIP\nfeatures exhibit substantial overlap between normal and\nanomalous samples, with PC1 accounting for only 8.8%,\nsuggesting poor separability. Introducing learnable normal\nand anomaly tokens slightly increases PC1 to 9.0%, indicating a weak emerging discriminative direction. After ap-\n\n\fplying SAF, PC1 rises to 89.1%, with variance concentrated\nalong a dominant axis that cleanly separates the two classes.\nThe anomaly cluster also becomes more compact and shifts\nfarther from the normal cluster, as highlighted by the red circles. These trends show that the tokens provide the initial\ndiscriminative structure, while SAF strengthens intra-class\ncompactness and enlarges the inter-class margin.\n\n5. Conclusion\nVisualAD introduces a purely visual approach to zero-shot\nanomaly detection by inserting two learnable global tokens\n(normal and abnormal) into a frozen Vision Transformer\nand grounding them with spatial evidence via Spatial CrossAttention and a Self-Alignment Function. Trained only\non auxiliary industrial data and without any text branch or\ncross-modal alignment, the method generalizes directly to\nunseen industrial and medical categories, delivering stateof-the-art image- and pixel-level performance. Ablations\nconfirm that token learning, the SCA/SAF design, and\nmulti-layer fusion each contribute indispensably to detection and localization. Future directions include adaptive\nlayer selection, richer structured tokens for finer granularity, and lightweight uncertainty estimation to improve robustness under strong domain shift.\n\n6. Acknowledgments\nThis work was supported in part by the National Natural Science Foundation of China (No. 62576001, No.\n62206003).\n\nReferences\n[1] Toshimichi Aota, Lloyd Teh Tzer Tong, and Takayuki\nOkatani. Zero-shot versus many-shot: Unsupervised texture\nanomaly detection. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pages\n5564–5572, 2023. 5, 6\n[2] Ujjwal Baid, Satyam Ghodasara, and Michel Bilello. The\nrsna-asnr-miccai brats 2021 benchmark on brain tumor\nsegmentation and radiogenomic classification.\nArXiv,\nabs/2107.02314, 2021. 5, 6\n[3] Spyridon Bakas, Hamed Akbari, Aristeidis Sotiras, Michel\nBilello, Martin Rozycki, Justin S. Kirby, John B. Freymann,\nKeyvan Farahani, and Christos Davatzikos. Advancing the\ncancer genome atlas glioma mri collections with expert segmentation labels and radiomic features. Scientific Data, 4,\n2017. 5\n[4] Babak Ehteshami Bejnordi, Mitko Veta, and Paul Johannes\nvan Diest. Diagnostic assessment of deep learning algorithms for detection of lymph node metastases in women\nwith breast cancer. JAMA, 318:2199–2210, 2017. 5, 6\n[5] Yoshua Bengio, L. Yao, Guillaume Alain, and Pascal Vincent. Generalized denoising auto-encoders as generative\nmodels. ArXiv, abs/1305.6663, 2013. 3\n\n[6] Paul Bergmann, Michael Fauser, David Sattlegger, and\nCarsten Steger. Mvtec ad — a comprehensive real-world\ndataset for unsupervised anomaly detection.\nIn 2019\nIEEE/CVF Conference on Computer Vision and Pattern\nRecognition (CVPR), 2019. 5, 6\n[7] Jorge Bernal, Francisco Javier Sánchez, Glòria FernándezEsparrach, Debora Gil, Cristina Rodrı́guez de Miguel, and\nFernando Vilariño. Wm-dova maps for accurate polyp highlighting in colonoscopy: Validation vs. saliency maps from\nphysicians. Computerized medical imaging and graphics :\nthe official journal of the Computerized Medical Imaging Society, 43:99–111, 2015. 5, 6\n[8] Yunkang Cao, Xiaohao Xu, Chen Sun, Yuqi Cheng, Zongwei\nDu, Liang Gao, and Weiming Shen. Segment any anomaly\nwithout training via hybrid prompt regularization. CoRR,\nabs/2305.10724, 2023. 3\n[9] Yunkang Cao, Jiangning Zhang, Luca Frittoli, Yuqi Cheng,\nWeiming Shen, and Giacomo Boracchi. Adaclip: Adapting\nclip with hybrid learnable prompts for zero-shot anomaly detection, 2024. 2, 3, 5, 6\n[10] Xuhai Chen and et al. A zero-/few-shot anomaly classification and segmentation method for CVPR 2023 VAND workshop challenge tracks 1&amp;2: 1st place on zero-shot AD and\n4th place on few-shot AD. CoRR, abs/2305.17382, 2023. 2,\n5, 6\n[11] Xuhai Chen, Jiangning Zhang, Guanzhong Tian, Haoyang\nHe, Wuhao Zhang, Yabiao Wang, Chengjie Wang, Yunsheng\nWu, and Yong Liu. CLIP-AD: A language-guided staged\ndual-path model for zero-shot anomaly detection. CoRR,\nabs/2311.00453, 2023. 2, 3, 5, 6\n[12] Thomas Defard, Aleksandr Setkov, Angélique Loesch, and\nRomaric Audigier. Padim: a patch distribution modeling\nframework for anomaly detection and localization. In ICPR\nWorkshops, 2020. 3\n[13] Alexey Dosovitskiy, Lucas Beyer, and Alexander\nKolesnikov. An image is worth 16x16 words: Transformers for image recognition at scale. In 9th International\nConference on Learning Representations, ICLR, 2021. 3\n[14] Bin-Bin Gao. Metauas: Universal anomaly segmentation\nwith one-prompt meta-learning. ArXiv, abs/2505.09265,\n2025. 2\n[15] Bin-Bin Gao. Learning to detect multi-class anomalies with\njust one normal image prompt. In European Conference on\nComputer Vision, 2025. 3\n[16] Bin-Bin Gao, Yue Zhou, Jiangtao Yan, Yuezhi Cai, Weixi\nZhang, Meng Wang, Jun Liu, Yong Liu, Lei Wang, and\nChengjie Wang. Adaptclip: Adapting clip for universal visual anomaly detection. ArXiv, abs/2505.09926, 2025. 2,\n3\n[17] Dong Gong, Lingqiao Liu, Vuong Le, Budhaditya Saha,\nMoussa Reda Mansour, Svetha Venkatesh, and Anton\nvan den Hengel. Memorizing normality to detect anomaly:\nMemory-augmented deep autoencoder for unsupervised\nanomaly detection. 2019 IEEE/CVF International Conference on Computer Vision (ICCV), pages 1705–1714, 2019.\n3\n[18] Dong Gong, Lingqiao Liu, Vuong Le, Budhaditya Saha,\nMoussa Reda Mansour, Svetha Venkatesh, and Anton\n\n\fvan den Hengel. Memorizing normality to detect anomaly:\nMemory-augmented deep autoencoder for unsupervised\nanomaly detection. In IEEE/CVF International Conference\non Computer Vision, ICCV, pages 1705–1714. IEEE, 2019.\n2\n[19] Steven Hicks, Debesh Jha, Vajira Lasantha Thambawita, P.\nHalvorsen, Hugo Lewi Hammer, and M. Riegler. The endotect 2020 challenge: Evaluation and comparison of classification, segmentation and inference time for endoscopy. In\nICPR Workshops, 2020. 5, 6\n[20] Yanning Hou, Ke Xu, Junfa Li, Yanran Ruan, and Jianfeng\nQiu. Enhancing zero-shot anomaly detection: Clip-sam collaboration with cascaded prompts. In Chinese Conference on\nPattern Recognition and Computer Vision, 2024. 3\n[21] Yanning Hou, Yanran Ruan, Junfa Li, Shanshan Wang, Jianfeng Qiu, and Ke Xu. Stackclip: Clustering-driven stacked\nprompt in zero-shot industrial anomaly detection. ArXiv,\nabs/2506.23577, 2025. 2\n[22] Yanning Hou, Sihang Zhou, Ke Liang, Lingyuan Meng, Xiaoshu Chen, Ke Xu, Siwei Wang, Xinwang Liu, and Jian\nHuang. Soft reasoning paths for knowledge graph completion. In International Joint Conference on Artificial Intelligence, 2025. 3\n[23] Jongheon Jeong, Yang Zou, Taewan Kim, Dongqing Zhang,\nAvinash Ravichandran, and Onkar Dabeer. Winclip: Zero/few-shot anomaly classification and segmentation. In\nIEEE/CVF Conference on Computer Vision and Pattern\nRecognition, CVPR, pages 19606–19616. IEEE, 2023. 2, 3,\n5, 6\n[24] Debesh Jha, Pia Helen Smedsrud, M. Riegler, P. Halvorsen,\nThomas de Lange, Dag Johansen, and Haavard D. Johansen.\nKvasir-seg: A segmented polyp dataset. In Conference on\nMultimedia Modeling, 2019. 5, 6\n[25] Daniel S. Kermany, Michael H. Goldbaum, and et al. Identifying medical diagnoses and treatable diseases by imagebased deep learning. Cell, 172:1122–1131.e9, 2018. 5, 6\n[26] Muhammad Uzair Khattak, Syed Talal Wasim, Muzammal Naseer, Salman Khan, Ming-Hsuan Yang, and Fahad Shahbaz Khan. Self-regulating prompts: Foundational\nmodel adaptation without forgetting. In IEEE/CVF International Conference on Computer Vision, ICCV, pages 15144–\n15154, 2023. 3\n[27] Chun-Liang Li, Kihyuk Sohn, Jinsung Yoon, and Tomas Pfister. Cutpaste: Self-supervised learning for anomaly detection and localization. 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 9659–\n9669, 2021. 3\n[28] Junnan Li, Dongxu Li, Caiming Xiong, and Steven C. H.\nHoi. BLIP: bootstrapping language-image pre-training for\nunified vision-language understanding and generation. In\nInternational Conference on Machine Learning, ICML 2022,\n17-23 July 2022, Baltimore, Maryland, USA, pages 12888–\n12900, 2022. 2, 3\n[29] Junnan Li, Dongxu Li, Silvio Savarese, and Steven C. H.\nHoi. BLIP-2: bootstrapping language-image pre-training\nwith frozen image encoders and large language models. In\nInternational Conference on Machine Learning, ICML 2023,\n\n23-29 July 2023, Honolulu, Hawaii, USA, pages 19730–\n19742, 2023. 2\n[30] Xiaofan Li, Zhizhong Zhang, Xin Tan, Chengwei Chen,\nYanyun Qu, Yuan Xie, and Lizhuang Ma. Promptad: Learning prompts with only normal samples for few-shot anomaly\ndetection. In Proceedings of the IEEE/CVF Conference on\nComputer Vision and Pattern Recognition (CVPR), pages\n16838–16848, 2024. 2\n[31] Shilong Liu, Zhaoyang Zeng, Tianhe Ren, Feng Li, Hao\nZhang, Jie Yang, Chunyuan Li, Jianwei Yang, Hang Su, Jun\nZhu, and Lei Zhang. Grounding DINO: marrying DINO with\ngrounded pre-training for open-set object detection. CoRR,\n2023. 3\n[32] Wenxin Ma, Xu Zhang, Qingsong Yao, Fenghe Tang, Chenxu\nWu, Yingtai Li, Rui Yan, Zihang Jiang, and S.Kevin Zhou. Aaclip: Enhancing zero-shot anomaly detection via anomalyaware clip. 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 4744–4754,\n2025. 3\n[33] Fabio Valerio Massoli, Fabrizio Falchi, Alperen Kantarci,\nSeymanur Akti, Hazim Kemal Ekenel, and Giuseppe Amato.\nMOCCA: multilayer one-class classification for anomaly detection. IEEE Trans. Neural Networks Learn. Syst., 33(6):\n2313–2323, 2022. 2\n[34] Bjoern H Menze, András Jakab, Stefan Bauer, and et al.\nThe multimodal brain tumor image segmentation benchmark\n(brats). IEEE Transactions on Medical Imaging, 34:1993–\n2024, 2015. 5\n[35] Pankaj Mishra, Riccardo Verk, Daniele Fornasier, Claudio\nPiciarelli, and Gian Luca Foresti. VT-ADL: A vision transformer network for image anomaly detection and localization. In 30th IEEE International Symposium on Industrial\nElectronics, ISIE 2021, Kyoto, Japan, June 20-23, 2021,\npages 1–6, 2021. 5, 6\n[36] Shancong Mou, Xiaoyi Gu, Meng Cao, Haoping Bai, Ping\nHuang, Jiulong Shan, and Jianjun Shi. RGI: robust ganinversion for mask-free image inpainting and unsupervised\npixel-wise anomaly detection. In The Eleventh International\nConference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023, 2023. 1\n[37] Maxime Oquab, Timothée Darcet, Théo Moutakanni, Huy\nVo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez,\nDaniel Haziza, Francisco Massa, Alaaeldin El-Nouby, Mahmoud Assran, Nicolas Ballas, Wojciech Galuba, Russell Howes, Po-Yao Huang, Shang-Wen Li, Ishan Misra,\nMichael G. Rabbat, Vasu Sharma, Gabriel Synnaeve, Hu Xu,\nHervé Jégou, Julien Mairal, Patrick Labatut, Armand Joulin,\nand Piotr Bojanowski. Dinov2: Learning robust visual features without supervision. CoRR, 2023. 2, 6\n[38] Pramuditha Perera, Ramesh Nallapati, and Bing Xiang.\nOcgan: One-class novelty detection using gans with constrained latent representations. 2019 IEEE/CVF Conference\non Computer Vision and Pattern Recognition (CVPR), pages\n2893–2901, 2019. 3\n[39] Zhen Qu, Xian Tao, Mukesh Prasad, Fei Shen, Zhengtao\nZhang, Xinyi Gong, and Guiguang Ding. Vcp-clip: A visual\ncontext prompting model for zero-shot anomaly segmenta-\n\n\ftion. In European Conference on Computer Vision, 2024.\n3\n[40] Zhen Qu, Xian Tao, Xinyi Gong, Shichen Qu, Qiyu Chen,\nZhengtao Zhang, Xingang Wang, and Guiguang Ding.\nBayesian prompt flow learning for zero-shot anomaly detection. 2025 IEEE/CVF Conference on Computer Vision and\nPattern Recognition (CVPR), pages 30398–30408, 2025. 3\n[41] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya\nRamesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry,\nAmanda Askell, Pamela Mishkin, Jack Clark, Gretchen\nKrueger, and Ilya Sutskever. Learning transferable visual\nmodels from natural language supervision. In Proceedings\nof the 38th International Conference on Machine Learning,\nICML, pages 8748–8763, 2021. 2, 3, 6\n[42] Karsten Roth, Latha Pemula, Joaquin Zepeda, Bernhard\nScholkopf, Thomas Brox, and Peter Gehler. Towards total recall in industrial anomaly detection. 2022 IEEE/CVF\nConference on Computer Vision and Pattern Recognition\n(CVPR), pages 14298–14308, 2021. 3\n[43] Karsten Roth, Latha Pemula, Joaquin Zepeda, Bernhard\nSchölkopf, Thomas Brox, and Peter V. Gehler. Towards total\nrecall in industrial anomaly detection. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, CVPR\n2022, New Orleans, LA, USA, June 18-24, 2022, 2022. 1\n[44] Marco Rudolph, Tom Wehrbein, Bodo Rosenhahn, and Bastian Wandt. Fully convolutional cross-scale-flows for imagebased defect detection. 2022 IEEE/CVF Winter Conference\non Applications of Computer Vision (WACV), pages 1829–\n1838, 2021. 3\n[45] Mohammadreza Salehi, Niousha Sadjadi, Soroosh\nBaselizadeh, Mohammad Hossein Rohban, and Hamid R.\nRabiee. Multiresolution knowledge distillation for anomaly\ndetection. 2021 IEEE/CVF Conference on Computer Vision\nand Pattern Recognition (CVPR), pages 14897–14907,\n2020. 5, 6\n[46] Kihyuk Sohn, Chun-Liang Li, Jinsung Yoon, Minho Jin, and\nTomas Pfister. Learning and evaluating representations for\ndeep one-class classification. In International Conference on\nLearning Representations, ICLR, 2021. 2\n[47] Domen Tabernik, Samo Sela, Jure Skvarc, and Danijel\nSkocaj. Segmentation-based deep-learning approach for\nsurface-defect detection. J. Intell. Manuf., 31, 2020. 5, 6\n[48] Yue Wang, Jinlong Peng, Jiangning Zhang, Ran Yi, Yabiao\nWang, and Chengjie Wang. Multimodal industrial anomaly\ndetection via hybrid fusion. In IEEE/CVF Conference on\nComputer Vision and Pattern Recognition, CVPR 2023, Vancouver, BC, Canada, June 17-24, 2023, 2023. 1\n[49] Matthias Wieler and Tobias Hahn. Weakly supervised learning for industrial optical inspection. In DAGM symposium\nin, page 11, 2007. 5, 6\n[50] Guoyang Xie, Jinbao Wang, Jiaqi Liu, Yaochu Jin, and Feng\nZheng. Pushing the limits of fewshot anomaly detection in\nindustry vision: Graphcore. In The Eleventh International\nConference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023, 2023. 1\n[51] Xudong Yan, Huaidong Zhang, Xuemiao Xu, Xiaowei Hu,\nand Pheng-Ann Heng. Learning semantic context from nor-\n\nmal samples for unsupervised anomaly detection. In AAAI\nConference on Artificial Intelligence, 2021. 3\n[52] Haiming Yao, Yunkang Cao, Wei Luo, Weihang Zhang,\nWenyong Yu, and Weiming Shen. Prior normality prompt\ntransformer for multiclass industrial image anomaly detection. IEEE Transactions on Industrial Informatics, 20:\n11866–11876, 2024. 3\n[53] Xincheng Yao, Ruoqing Li, Zefeng Qian, Yan Luo, and\nChongyang Zhang. Focus the discrepancy: Intra- and intercorrelation learning for image anomaly detection. 2023\nIEEE/CVF International Conference on Computer Vision\n(ICCV), pages 6780–6790, 2023. 3\n[54] Jihun Yi and Sungroh Yoon. Patch SVDD: patch-level SVDD\nfor anomaly detection and segmentation. In 15th Asian Conference on Computer Vision ACCV, pages 375–390, 2020.\n2\n[55] M. Zaheer, Jin ha Lee, M. Astrid, and Seung-Ik Lee. Old\nis gold: Redefining the adversarially learned one-class classifier training paradigm. 2020 IEEE/CVF Conference on\nComputer Vision and Pattern Recognition (CVPR), pages\n14171–14181, 2020. 3\n[56] Vitjan Zavrtanik, Matej Kristan, and Danijel Skovcaj.\nDraem – a discriminatively trained reconstruction embedding for surface anomaly detection. 2021 IEEE/CVF International Conference on Computer Vision (ICCV), pages\n8310–8319, 2021. 3\n[57] Hao Zhang, Feng Li, Shilong Liu, Lei Zhang, Hang Su, Jun\nZhu, Lionel M. Ni, and Heung-Yeung Shum. DINO: DETR\nwith improved denoising anchor boxes for end-to-end object detection. In The Eleventh International Conference on\nLearning Representations, ICLR, 2023. 2, 3\n[58] Qihang Zhou, Guansong Pang, Yu Tian, Shibo He, and Jiming Chen. Anomalyclip: Object-agnostic prompt learning for\nzero-shot anomaly detection. In The Twelfth International\nConference on Learning Representations (ICLR), pages 1–\n33, 2024. 2, 3, 5, 6\n[59] Jiawen Zhu and Guansong Pang.\nToward generalist\nanomaly detection via in-context residual learning with fewshot sample prompts. 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 17826–\n17836, 2024. 2\n[60] Yang Zou, Jongheon Jeong, Latha Pemula, Dongqing Zhang,\nand Onkar Dabeer. Spot-the-difference self-supervised pretraining for anomaly detection and segmentation. In Computer Vision - ECCV 2022 - 17th European Conference, Tel\nAviv, pages 392–408, 2022. 5, 6\n\n\f</code></pre></article>\n        \n</main>\n\n<script src=\"https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.js\"></script>\n<script src=\"https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/contrib/auto-render.min.js\"></script>\n<script>\n\nfunction initTheme() {\n  const saved = localStorage.getItem('kb-theme') || 'light';\n  document.documentElement.setAttribute('data-theme', saved);\n  updateThemeIcon(saved);\n}\nfunction toggleTheme() {\n  const cur = document.documentElement.getAttribute('data-theme') || 'light';\n  const next = cur === 'light' ? 'dark' : 'light';\n  document.documentElement.setAttribute('data-theme', next);\n  localStorage.setItem('kb-theme', next);\n  updateThemeIcon(next);\n}\nfunction updateThemeIcon(t) {\n  const btn = document.getElementById('theme-toggle-btn');\n  if (btn) btn.innerHTML = t === 'dark' ? '☀️' : '🌙';\n}\ndocument.addEventListener('DOMContentLoaded', initTheme);\n\nfunction setViewMode(m) {\n  const grid = document.getElementById('bento-grid-view');\n  const list = document.getElementById('list-table-view');\n  const bGrid = document.getElementById('view-grid-btn');\n  const bList = document.getElementById('view-list-btn');\n  if (m === 'list') {\n    if (grid) grid.style.display = 'none';\n    if (list) list.style.display = 'flex';\n    if (bGrid) bGrid.classList.remove('active');\n    if (bList) bList.classList.add('active');\n  } else {\n    if (grid) grid.style.display = 'grid';\n    if (list) list.style.display = 'none';\n    if (bGrid) bGrid.classList.add('active');\n    if (bList) bList.classList.remove('active');\n  }\n  localStorage.setItem('kb-view', m);\n}\ndocument.addEventListener('DOMContentLoaded', () => {\n  const s = localStorage.getItem('kb-view') || 'grid';\n  setViewMode(s);\n});\n\ndocument.addEventListener('DOMContentLoaded', () => {\n  document.querySelectorAll('pre').forEach(pre => {\n    const b = document.createElement('button');\n    b.className = 'copy-code-btn';\n    b.innerText = 'Copy';\n    b.onclick = () => {\n      const c = pre.querySelector('code') ? pre.querySelector('code').innerText : pre.innerText;\n      navigator.clipboard.writeText(c).then(() => {\n        b.innerText = 'Copied!';\n        setTimeout(() => { b.innerText = 'Copy'; }, 2000);\n      });\n    };\n    pre.appendChild(b);\n  });\n});\n\nwindow.addEventListener('keydown', (e) => {\n  if ((e.key === '/' || (e.metaKey && e.key === 'k')) && document.activeElement.tagName !== 'INPUT' && document.activeElement.tagName !== 'TEXTAREA') {\n    e.preventDefault();\n    const q = document.getElementById('global-search-input');\n    if (q) q.focus();\n  }\n});\n\n// Scrollspy for TOC\nwindow.addEventListener('scroll', () => {\n  const headers = document.querySelectorAll('.article-body h1, .article-body h2, .article-body h3');\n  const scrollPos = window.scrollY + 100;\n  headers.forEach(h => {\n    if (h.offsetTop <= scrollPos) {\n      const id = h.getAttribute('id');\n      if (id) {\n        document.querySelectorAll('.reading-sidebar a').forEach(a => {\n          a.classList.toggle('active', a.getAttribute('href') === '#' + id);\n        });\n      }\n    }\n  });\n});\n\ndocument.addEventListener(\"DOMContentLoaded\", function() {\n  if (window.renderMathInElement) {\n    renderMathInElement(document.body, {\n      delimiters: [\n        {left: '$$', right: '$$', display: true},\n        {left: '$', right: '$', display: false},\n      ],\n      throwOnError : false\n    });\n  }\n});\n</script>\n\n</body>\n</html>\n"