"<!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>Foundation Visual Encoders Are Secretly Few-Shot\nAnomaly Detectors\nGuangyao Zhai1,2 ∗ Yue Zhou1,2 ∗ Xinyan Deng1 Lars Heckler1,3\nNassir Navab1,2 Benjamin Busam1,2\n\narXiv:2510.01934v1 [cs.CV] 2 Oct 2025\n\n1\n\nTechnical University of Munich 2 Munich Center for Machine Learning 3 MVTec Software GmbH\n{firstname.lastname,b.busam}@tum.de lars.heckler@mvtec.com\n\nAbstract–Few-shot anomaly detection streamlines and simplifies industrial safety\ninspection. However, limited samples make accurate differentiation between normal and abnormal features challenging, and even more so under category-agnostic\nconditions. Large-scale pre-training of foundation visual encoders has advanced\nmany fields, as the enormous quantity of data helps to learn the general distribution of normal images. We observe that the anomaly amount in an image directly\ncorrelates with the difference in the learnt embeddings and utilize this to design\na few-shot anomaly detector termed F OUNDAD. This is done by learning a nonlinear projection operator onto the natural image manifold. The simple operator\nacts as an effective tool for anomaly detection to characterize and identify out-ofdistribution regions in an image. Extensive experiments show that our approach\nsupports multi-class detection and achieves competitive performance while using substantially fewer parameters than prior methods. Backed up by evaluations\nwith multiple foundation encoders, including fresh DINOv3, we believe this idea\nbroadens the perspective on foundation features and advances the field of few-shot\nanomaly detection. Our code is at https://github.com/ymxlzgy/FoundAD.\n\n1\n\nIntroduction\n\nThe variability of images is large. Understanding general concepts from pixel data is\ntherefore by design a very complex problem.\nFoundation models (Zagoruyko &amp; Komodakis,\n2016; Caron et al., 2021; Zhai et al., 2023b)\nhave provided a significant leap forward to\nimage understanding in generalized contexts\nacross many tasks. The design of training\nparadigms and the advances in computational\nresources enabled the computer vision commuPre-trained\nNatural Image Manifold\nnity to learn powerful visual encoders whose\nfeature embeddings are adjustable to many\nFigure 1: Manifold Projection. Large training sets\ndownstream tasks (Oquab et al., 2024). These enable foundation models to learn the manifold of natfoundation visual encoders are trained to en- ural images (illustrated schematically as a 2D surface),\ncode samples from the core distribution of nor- which lies in a higher-dimensional feature space. Normal natural images as illustrated by the natu- mal images such as Ir are embedded onto this maniral image manifold in Figure 1. For some vi- fold. Images with anomalies (Is1 , Is2 ) lie further\naway\n\u0001\nsion tasks, specifically the tail end of this dis- from this manifold. The distance D fsi , fr correlates\ntribution away from the heavy core is impor- with the pixel amount of the anomaly in the image. We\ntant (Bergmann et al., 2019; Zou et al., 2022). learn a non-linear projection operator ϕ that projects the\nimage Ia onto its corIndustrial inspection, for instance, demands ro- embedding fa of an anomalous\n∗\nbust anomaly detection techniques that can op- responding normal feature fa . Feature comparison enables few-shot anomaly detection Ih .\nerate effectively even when limited annotated\ndata is available, as collecting large datasets in production is not only costly, but also impractical.\n∗\n\nThe first two authors contribute equally.\n\n1\n\n\fFeature Distance\n\nSigLIP\n\nReal Normality Synthetic Anomaly\n\nReal Anomaly\n\nDINOv2\n\nSynthetic Anomaly Area (pixels)\n\nReal Normality Synthetic Anomaly\n\nReal Anomaly\n\nFigure 2: Correlation of Anomaly Area with Feature Distance. Two foundation encoders under different\nparadigms are shown. Upper left/right: Real images with corresponding synthetic and real anomalies. Lower\nleft/right: Coloured PCA visualizations of their embedded features using SigLIP (Zhai et al., 2023b) (left) and\nDINOv2 (Oquab et al., 2024) (right). Center: L2-feature distance of embeddings for synthetic anomalies of\nincreasing pixel amount on a real image. A clear correlation is visible for both foundation models.\n\nThis applies especially to defective samples, where the types of defects that might potentially occur\nare unknown prior to the launch of production. For these setups, unsupervised few-shot anomaly\ndetection is a highly attractive approach, since it only requires a small amount of defect-free samples\nfor training. However, the scarcity of anomalous samples generally hampers the possibility to learn\ncomprehensive representations (Chen et al., 2020), such that traditional methods face the challenge\nof distinguishing subtle differences between normal and abnormal features.\nStudying the embedding structure of foundation models in light of this task reveals an interesting\nproperty: The amount of anomalous area in an image directly corresponds to the feature distance\nin the embedding space as shown in Figure 2. This shows that foundation encoders distinguish\nanomaly from normality, i.e., they “secretly detect” the defective regions. We attribute this to the\nlearning signal from natural images that stipulates the creation of a natural image manifold in the\nembedding space of a foundation model. Moving away from this structure correlates to shifting\ntowards the tail end or outside the general distribution of normal images.\nWe leverage this observation in our work to design F OUNDAD, a few-shot anomaly detector that\nutilizes the image embeddings of a foundation visual encoder. We utilize foundational models to\nencode both anomalous and normal features, where structural anomalies are primitively synthesized\nby CutPaste (Li et al., 2021). The encoder is frozen to bootstrap the learning process by reusing\nthe strong semantic and geometric understanding. Then, we employ a nonlinear projector to learn\nthe necessary feature mapping with only a minimal few-shot demonstrations, such as a single sample. We validate F OUNDAD on multiple foundation visual encoders, including DINO series (Caron\net al., 2021; Oquab et al., 2024; Siméoni et al., 2025), vision branches of vision-language models\n(VLMs) (Zhai et al., 2023b; Radford et al., 2021), and a pre-trained convolutional neural network\n(CNN) (Zagoruyko &amp; Komodakis, 2016). The experiments show that F OUNDAD with DINOv3\nachieves the best performance, and even it is trained on multiple classes with compact parameters,\nit is superior to methods that particularly focus on each class Li et al. (2024), and it performs competitively among large-scale few-shot anomaly detectors Lv et al. (2025); Zhang et al. (2025b).\nConceptually, F OUNDAD is inspired by predictive embedding approaches such as JEPA (LeCun,\n2022; Assran et al., 2023) and SimSiam (Chen &amp; He, 2021), which capture representation dependencies between paired inputs by operating purely in latent space, eschewing the need for pixel-level\nobservation reconstruction. In contrast to these methods actively training encoders, we keep the\nfoundation encoders frozen to enjoy the natural image manifold, and instead solely train a simple\nnetwork to adapt and project the pretrained embeddings exclusively and effectively for the few-shot\nanomaly detection (cf. Figure 1). The entire pipeline is fast, lightweight, and easy to train. More\nimportantly, our findings suggest that rethinking the use of foundational visual encoders can extend\ntheir applicability to complex anomaly detection tasks without additional design complexity, such\nas conventional textual prompts for assistance (Li et al., 2024; Lv et al., 2025; Zhang et al., 2025b).\nIn summary, the contributions of our work are threefold: (i) We reveal the correlation of embedding\ndistance and anomaly amount in images for foundation visual encoders. (ii) Based on point (i), we\nintroduce a feature projection method to efficiently discriminate between anomaly and normality\nin the embedding space. The nonlinear projector is lightweight and can be trained with minimal\ndemonstrations. (iii) Comprehensive experiments demonstrate that the performance of our pipeline\n2\n\n\fEncoder\n\nProjector\n\nEncoder\nUpsampling\n\nGradient\nSynthesis\nTop-K\nScores\n\nA. Training\n\nAnomaly\n...\n\nProjector\n\nEncoder\n\nNormality\n\nB. Inference\n\nFigure 3: A. Training pipeline. Normal training images Ir are first processed by the anomaly synthesis\nmodule to generate augmented samples Is . Feature embeddings of the augmented image and the original image\nare extracted by the Anomaly-Aware Encoder θa and the Reference Encoder θb , respectively (θa = θb = θ).\nThe Manifold Projector ϕ is trained to map the feature embeddings fs of the synthesized anomalous image\ntowards the normal feature fr . The training objective is to minimize the distance D (fr∗ , fr ) between the\nprojected feature fr∗ and the reference feature fr . B. Inference pipeline. During inference, an input image\nis processed by AE to extract feature embeddings fa , which are then projected by the Projector to fa∗ . The\nanomaly score D (fa∗ , fa ) for each patch is computed. We aggregate the Top-K highest patch-level anomaly\nscores and generate an anomaly heatmap Ih by upsampling to the original image resolution.\nsurpasses state-of-the-art multi-class methods. More importantly, it reveals that foundation visual\nfeatures without textual assistance suffice for few-shot anomaly detection.\n\n2\n\nMethodology\n\nThe overall architecture is illustrated in Figure 3. The network is designed to project the latent\nrepresentation of either an abnormal image or a normal image to the natural image manifold learned\nby a foundation model. The projected representation is compared to the original representation,\nwhere large differences indicate the occurrence of anomalies. The key components of the framework\ninclude an anomaly synthesis module, two identical encoders, and a projector.\n2.1\n\nAnomaly Synthesis\n\nTo train the framework in an unsupervised setting, we utilize a structural anomaly synthesis module\ninspired by CutPaste (Li et al., 2021). As shown in Figure 2, synthesized anomalies exhibit noticeable differences from real anomalies at the pixel level, but these differences become less pronounced\nin the latent space. This suggests that a simple synthesis strategy is sufficient to drive anomalous\nfeatures away from the natural image manifold, aligning with our projector’s training objective.\nTo enhance the reality of synthetic anomaly, we constrain anomalies to foreground regions using\nadaptive threshold-based binarization (Zhang et al., 2024; Yang et al., 2023).\n2.2\n\nVisual Manifold Projection\n\nOur framework starts with two foundation visual encoders to extract latent representations from\ninput images, as shown in Figure 3: the Anomaly-Aware Encoder (AE), which processes synthesized\nabnormal images Is , and the Reference Encoder (RE), which processes original normal images Ir .\nBoth encoders share the same parameters θ, ensuring consistency in feature extraction and aligning\nembeddings within the same latent space. This design keeps normal patches in synthesized images\nclose to their counterparts in normal images, while highlighting discrepancies in anomalous regions.\nOn top of these representations, we introduce the Manifold Projector, a nonlinear module applied after AE that maps the anomaly-aware features toward the natural image manifold with\nonly few-shot supervision. Since the features are tokenized, we implement the projector using\n3\n\n\fa self-attention Vision Transformer (ViT). Each transformer block employs residual connections,\nxout = Attn(xin ) + xin , to stabilize training and preserve input information. Given an anomaly\nimage Is , the encoder yields an embedding fs = θ(Is ), which deviates from the normal embedding\nfr . The projector ϕ then produces a corrected embedding fr∗ that aligns with the normal feature fr\non the natural image manifold. Unlike reconstruction-based approaches such as (Yan et al., 2024),\nour method operates entirely in latent space, substantially reducing computational complexity.\n2.3\n\nTraining\n\nThe training process follows the pipeline illustrated in Figure 3. During training, given an original\nnormal image Ir in each iteration, we independently gate anomaly synthesis with a threshold σ. Let\nz ∼ Bernoulli(1 − σ), and then Is = (1 − z) Ir + z Syn(Ir ), where Syn denotes the synthesis\noperation described Sec. 2.1. We obtain feature embeddings using θ: fs = θ(Is ), fr = θ(Ir ).\nThen the projector ϕ maps the synthesized anomaly feature fs to the estimated normal feature:\nfr∗ = ϕ(fs ). The training objective is to minimize the discrepancy between the projected feature\nand the reference normal feature via:\nN\n\nL = D(fr∗ , fr ) =\n\n1 X ∗\n(f − fr,i )2 ,\nN i=1 r,i\n\n(1)\n\nwhere L is the L2 loss, and N is the number of embedded patches.\n2.4\n\nInference\n\nGiven a test image Ia , its feature embedding is extracted using AE as fa = θ(Ia ). The projector\nϕ is then applied to map the extracted feature embedding to the estimated feature on the natural\nimage manifold fa∗ = ϕ(fa ). We compute the patch-level anomaly score as the squared L2 distance\nbetween the extracted feature and its projected counterpart, turning Equation 1 to:\nN\n\nSpatch = D(fa∗ , fa ) =\n\n1 X ∗\n(f − fa,i )2 .\nN i=1 a,i\n\n(2)\n\nFor image-level anomaly detection, we compute the average of the Top-K patch anomaly scores:\nK\n\nSimage =\n\n1 X\nSpatch,i .\nK i=1\n\n(3)\n\nFinally, to generate pixel-level anomaly maps, the patch-level scores are upsampled to the original\nimage resolution, highlighting regions with the most significant deviations.\n\n3\n\nExperiments\n\n3.1\n\nExperimental Setup\n\nDatasets Following the protocol in IIPAD (Lv et al., 2025), we evaluate F OUNDAD with various\nfoundation encoders on two popular industrial anomaly detection datasets: MVTec-AD (Bergmann\net al., 2019) and VisA (Zou et al., 2022). MVTec-AD consists of 5, 354 high-resolution images\nacross five texture and ten object categories, with 1, 725 for testing, covering various real-world\ndefects such as contamination and structural deformations. VisA includes twelve object categories\nwith 10, 821 images, featuring 9, 621 normal samples and 1, 200 anomalous images. It presents additional challenges due to complex structures, multi-instance objects, and diverse anomaly patterns,\nrequiring models to generalize across varying levels of complexity.\nEvaluation Metrics To comprehensively assess anomaly detection and localization performance,\nwe employ three standard metrics: (1) Area Under the Receiver Operating Characteristic Curve\n(AUROC), which evaluates the model’s ability to distinguish normal and anomalous samples at both\nimage and pixel levels; (2) Area Under the Precision-Recall Curve (AUPR), which is particularly\n4\n\n\feffective for imbalanced datasets by emphasizing precision-recall trade-offs; and (3)Per-RegionOverlap (PRO), which measures region-level anomaly localization by computing the overlap between predicted and ground-truth anomalous regions. Curve areas involving the false positive rate\nare calculated only up to an FPR of 0.3 (Bergmann et al., 2019). These metrics collectively ensure\na robust evaluation of both detection accuracy and localization effectiveness.\nBaseline We evaluate the method against state-of-the-art anomaly detection methods across\nmulti/one-class settings. For few-shot and multi-class scenarios, we compare with FastRecon (Fang\net al., 2023), AnomalySD (Yan et al., 2024), and IIPAD (Lv et al., 2025). Additionally, we include\none-class methods such as WinCLIP (Jeong et al., 2023), InCTRL (Zhu &amp; Pang, 2024), AnomalyCLIP (Zhou et al., 2024), PromptAD (Li et al., 2024), and LogSAD (Zhang et al., 2025b), as well as\nclassical models like SPADE (Cohen &amp; Hoshen, 2020) and PatchCore (Roth et al., 2022), referring\nto results reported in IIPAD.\nImplementation Details F OUNDAD is compatible with various encoders, and we report the one\nbacked by a pretrained DINOv3 ViT-B (Siméoni et al., 2025) here. For details about more encoders,\nplease refer to the Supplementary Material A. The input images from MVTec-AD and VisA are\nresized to 512 × 512 × 3 for consistency across experiments. The projector is implemented as a\nViT with a depth of 6 layers. For stable and efficient optimization, we utilize the Adam optimizer\nwith a weight decay of 1 × 10−4 . The learning rate is set to 0.001, empirically chosen to ensure\nconvergence. All experiments are conducted on a single RTX 3090 GPU with a batch size of 8.\nDuring training, we set the synthesis threshold σ as 0.5. For inference, the image-level anomaly\nscore is computed based on the Top-K highest patch anomaly scores, where K is set to 10 for\nMVTec-AD and 6 for VisA.\n3.2\n\nExperimental Results\n\nFor each few-shot setting, we conduct three different sample combinations, each drawn under a\nrandom seed. The averaged results on the MVTec-AD and VisA datasets across different few-shot\nsettings are reported in Table 1. Some one-class-one-model full-shot methods (e.g., SPADE, PatchCore) from IIPAD are adapted to the multi-class-one-model few-shot setting for fair comparison. To\nfurther demonstrate the competitiveness of F OUNDAD, Table 2 presents results under the one-classone-model paradigm. Detailed numbers of each run are provided in Supplementary Material B.1.\nWe also conduct ablation studies with different foundation visual encoders as backbones in Table 3,\nwith different DINOv3 layers in Figure 6, and with different projector designs in Table 4. Finally,\nwe show some typical failure cases in Figure 7 to illustrate the limitations of F OUNDAD.\nQuantitative Comparison with Multi-Class Baselines As shown in Table 1, F OUNDAD consistently achieves the best performance across both image-level classification and pixel-level segmentation metrics. Classical few-shot methods such as SPADE, PatchCore, and FastRecon suffer from\nsevere performance degradation when extended to the multi-class setting, highlighting the difficulty\nof adapting them to various categories. In contrast, F OUNDAD handles multi-class adaptation effectively with its simple projector architecture, even under limited training data. Notably, F OUNDAD\nachieves strong results without relying on text prompts, distinguishing it from recent prompt-based\nbaselines. On MVTec-AD, F OUNDAD shows a clear advantage under the low-shot regime. For\ninstance, in the 1-shot case, it surpasses the second-best method IIPAD by 1.9% in I-AUROC and\n3.0% in PRO. On VisA, F OUNDAD delivers nearly perfect localization, with pixel-level AUROC\nreaching 99.7% consistently across all few-shot settings, outperforming IIPAD by up to 2.8%. As\nthe number of shots increases to 2 and 4, F OUNDAD not only maintains competitive image-level\naccuracy but also further strengthens its lead in localization metrics. These results highlight the\nrobustness and strong generalization ability of F OUNDAD in the challenging multi-class few-shot\nanomaly detection scenario.\nQuantitative Comparison with One-Class Baselines As shown in Table 2, even against few-shot\nbaselines specialized for the one-class-one-model setting, F OUNDAD consistently achieves top performance on both MVTec-AD and VisA. In the 1-shot setting, our method already surpasses strong\nbaselines PromptAD and the previous state-of-the-art LogSAD, with a particularly large margin on\nVisA by 2.2% in P-AUROC and 9.8% in PRO over LogSAD. In the 4-shot scenario on MVTec5\n\n\fTable 1: Comparison of results on MVTec-AD and VisA against various multi-class-one-model few-shot\nmethods. Metrics include image-level AUROC (%), AUPR (%), and pixel-level AUROC (%), PRO (%). We\ncolor the best and the second in the k-shot setting.\nShot\n\n1\n\n2\n\n4\n\nMethod\n\nMVTec-AD\n\nw/o Texts\n\nVisA\n\nI-AUROC\n\nAUPR\n\nP-AUROC\n\nPRO\n\nI-AUROC\n\nAUPR\n\nP-AUROC\n\nPRO\n\nSPADE\nPatchCore\nFastRecon\nWinCLIP\nPromptAD\nAnomalySD\nIIPAD\nF OUNDAD (Ours)\n\n✓\n✓\n✓\n✗\n✗\n✗\n✗\n✓\n\n58.8\n63.7\n51.2\n92.8\n86.3\n93.6\n94.2\n96.1\n\n63.7\n81.2\n72.6\n96.5\n93.4\n96.9\n97.2\n97.9\n\n60.4\n83.9\n62.1\n92.4\n91.8\n94.8\n96.4\n96.8\n\n53.1\n72.7\n60.3\n83.5\n83.6\n89.2\n89.8\n92.8\n\n61.3\n58.9\n55.0\n83.1\n80.8\n86.1\n85.4\n92.6\n\n68.2\n62.8\n72.8\n85.1\n83.2\n89.1\n87.5\n92.0\n\n69.0\n76.7\n70.7\n94.6\n96.3\n96.5\n96.9\n99.7\n\n57.2\n64.3\n58.2\n80.9\n82.2\n93.9\n87.3\n98.0\n\nSPADE\nPatchCore\nFastRecon\nWinCLIP\nPromptAD\nAnomalySD\nIIPAD\nF OUNDAD (Ours)\n\n✓\n✓\n✓\n✗\n✗\n✗\n✗\n✓\n\n68.4\n72.4\n51.7\n92.7\n89.2\n94.8\n95.7\n96.8\n\n84.2\n86.2\n74.9\n96.3\n94.8\n97.0\n97.9\n98.3\n\n61.2\n89.6\n62.4\n92.4\n92.2\n95.8\n96.7\n97.0\n\n54.7\n74.2\n59.9\n83.9\n84.3\n90.4\n90.3\n93.3\n\n66.8\n60.2\n58.2\n83.7\n84.3\n87.4\n86.7\n93.5\n\n72.0\n64.3\n74.6\n84.9\n87.8\n90.1\n88.6\n93.0\n\n71.3\n82.4\n79.6\n95.1\n96.9\n96.8\n97.2\n99.7\n\n59.6\n68.1\n63.5\n81.8\n84.7\n94.1\n87.9\n98.0\n\nSPADE\nPatchCore\nFastRecon\nWinCLIP\nPromptAD\nAnomalySD\nIIPAD\nF OUNDAD (Ours)\n\n✓\n✓\n✓\n✗\n✗\n✗\n✗\n✓\n\n76.6\n74.9\n50.8\n94.0\n90.6\n95.6\n96.1\n97.1\n\n88.8\n88.8\n73.1\n96.9\n96.5\n97.6\n98.1\n98.6\n\n62.8\n92.6\n65.0\n92.9\n92.4\n96.2\n97.0\n97.2\n\n55.6\n80.8\n62.8\n84.4\n84.6\n90.8\n91.2\n93.5\n\n73.0\n62.6\n57.6\n84.1\n85.7\n88.9\n88.3\n94.4\n\n76.6\n69.9\n73.7\n86.1\n88.8\n90.9\n89.6\n94.0\n\n72.1\n85.4\n78.8\n95.2\n97.2\n97.5\n97.4\n99.7\n\n60.9\n70.6\n62.9\n82.1\n84.7\n94.3\n88.3\n98.4\n\nThe multi-class and few-shot results of SPADE (Cohen &amp; Hoshen, 2020), PatchCore (Roth et al., 2022), FastRecon (Fang et al., 2023),\nWinCLIP, and PromptAD are from IIPAD (Lv et al., 2025).\n\nTable 2: Comparison of results on MVTec-AD and VisA against various one-class-one-model few-shot methods. Ours remains the multi-class-one-model few-shot setting. Metrics include image-level AUROC (%),\nAUPR (%), pixel-level P-AUROC (%), and PRO (%). We color the best and the second in the k-shot setting.\nShot\n\nMethod\n\nMVTec-AD\n\nw/o Texts\n\nVisA\n\nI-AUROC\n\nAUPR\n\nP-AUROC\n\nPRO\n\nI-AUROC\n\nAUPR\n\nP-AUROC\n\nPRO\n\n1\n\nSPADE\nPatchCore\nWinCLIP\nInCTRL1\nAnomalyCLIP2\nPromptAD\nLogSAD3\nF OUNDAD (Ours)\n\n✓\n✓\n✗\n✗\n✗\n✗\n✗\n✓\n\n81.0\n83.4\n93.1\n91.3\n95.2\n94.6\n95.5\n96.1\n\n90.6\n92.2\n96.5\n95.2\n97.2\n97.1\n97.3\n97.9\n\n91.2\n92.0\n95.2\n94.6\n94.6\n95.9\n97.0\n96.8\n\n83.9\n79.7\n87.1\n87.8\n87.6\n87.9\n92.5\n92.8\n\n79.5\n79.9\n83.8\n83.2\n87.7\n86.9\n89.8\n92.6\n\n82.0\n82.8\n85.1\n84.1\n87.7\n88.4\n90.3\n92.0\n\n95.6\n95.4\n96.4\n89.0\n83.2\n96.7\n97.5\n99.7\n\n84.1\n80.5\n85.1\n66.7\n90.1\n85.1\n88.2\n98.0\n\n2\n\nSPADE\nPatchCore\nWinCLIP\nInCTRL1\nAnomalyCLIP2\nPromptAD\nLogSAD3\nF OUNDAD (Ours)\n\n✓\n✓\n✗\n✗\n✗\n✗\n✗\n✓\n\n82.9\n86.3\n94.4\n91.8\n95.4\n95.7\n96.3\n96.9\n\n91.7\n93.8\n97.0\n95.5\n97.3\n97.9\n97.6\n98.3\n\n92.0\n93.3\n96.0\n95.2\n94.9\n96.2\n97.3\n97.0\n\n85.7\n82.3\n88.4\n88.3\n87.8\n88.5\n93.1\n93.2\n\n80.7\n81.6\n84.6\n86.3\n87.8\n88.3\n91.8\n93.8\n\n82.3\n84.8\n85.8\n86.8\n89.1\n90.0\n92.0\n93.3\n\n96.2\n96.1\n96.8\n89.8\n84.5\n97.1\n97.8\n99.7\n\n85.7\n82.6\n86.2\n68.1\n90.8\n85.8\n89.7\n98.2\n\n4\n\nSPADE\nPatchCore\nWinCLIP\nInCTRL1\nAnomalyCLIP2\nPromptAD\nLogSAD3\nF OUNDAD (Ours)\n\n✓\n✓\n✗\n✗\n✗\n✗\n✗\n✓\n\n84.8\n88.8\n95.2\n93.1\n96.1\n96.6\n96.6\n97.1\n\n92.5\n94.5\n97.3\n96.3\n97.8\n98.5\n97.7\n98.6\n\n92.7\n94.3\n96.2\n95.8\n95.5\n96.5\n97.5\n97.2\n\n87.0\n84.3\n89.0\n89.5\n88.2\n90.5\n93.5\n93.6\n\n81.7\n85.3\n87.3\n87.8\n88.8\n89.1\n93.2\n94.4\n\n83.4\n87.5\n88.8\n88.0\n90.1\n90.8\n93.4\n94.0\n\n96.6\n96.8\n97.2\n90.2\n85.2\n97.4\n98.1\n99.7\n\n87.3\n84.9\n87.6\n68.8\n91.4\n86.2\n90.5\n98.4\n\n1\n\nInCTRL (Zhu &amp; Pang, 2024) only targeted at the image-level anomaly detection, yet we report pixel-level metrics for readers’ comprehension.\nAnomalyCLIP (Zhou et al., 2024) was originally designed for zero-shot detection. Following AdaptCLIP (Gao et al., 2025), we extend it to\nsupport detection with few-shot references. 3 LogSAD originally only provides I-/P-AUROC, and we reproduce the experiment in three rounds\nand report averaged results on every metric, adhering to our protocols.\n2\n\nAD, F OUNDAD outperforms PromptAD by 0.7% in P-AUROC and 3.1% in PRO, while achieving\nslightly lower P-AUROC than LogSAD. On VisA, however, F OUNDAD surpasses LogSAD by 1.6%\nin P-AUROC and 7.9% in PRO, demonstrating consistent superiority in both classification and lo6\n\n\fInference Efficiency We report the inference time and memory consumption following (Batzner et al., 2024). Our projector consists\nof 11.8 M trainable parameters. With DINOv3\nas the backbone, F OUNDAD contains 97.8 M parameters in total and achieves an average inference time of 128.7 ms per image, corresponding to a throughput of approximately 7.8 images\nper second, with a peak memory consumption of\n1, 386 MiB on a single RTX 3090. To assess the\ninference efficiency, we analyze the trade-off between performance and model size across various representative baselines. As shown in Figure 4, F OUNDAD achieves overall the best accuracy while using at least one order of magnitude\nfewer parameters than the large models LogSAD\n(≈ 13.3×) and IIPAD (≈ 10.3×). Despite the\ncompact size, F OUNDAD maintains desirable efficiency, especially suitable in industrial usages.\n\nP-AUROC\n\ncalization. Moreover, F OUNDAD relies on a single visual foundation model, which makes it more\nefficient than LogSAD’s three-model DINO-CLIP-SAM pipeline. Importantly, our improvements\nare achieved in the more challenging multi-class-one-model setting, whereas other baselines operate\nunder the simpler one-class formulation with class-specific memory banks or text prompts. This\nunderscores the robustness and learning ability of F OUNDAD, which remains effective even under\nharder problem constraints.\n\nLogSAD\n\nOurs\n\n1.3B\n\n97.8M\n\nIIPAD\n\nPromptAD\n\n1.0B\n\n208.4M\n\nWinCLIP\n208.4M\nPatchCore\n68.9M\n\nI-AUROC\n\nFigure 4: Bubble chart of AUROC results across different methods, averaged over MVTec-AD and VisA\nfrom Table 1. The smaller the circle is, the fewer parameters it has.\n\nQualitative Comparison We present qualitative comparisons in Figure 5. F OUNDAD effectively\nlocalizes anomalous regions with high precision on both datasets. It precisely localizes anomalous\nregions, successfully capturing both large structural defects and subtle, fine-grained anomalies. In\ncontrast to other methods, F OUNDAD yields cleaner segmentations with substantially less noise in\nbackground areas. Additional examples are provided in Supplementary Material B.3 and B.5.\nGT\n\nPromptAD WinCLIP\n\nIIPAD\n\nOurs\n\nGT\n\nPromptAD WinCLIP\n\nIIPAD\n\nOurs\n\nBottle\n\nCandle\n\nCable\n\nCapsules\n\nGrid\n\nGum\n\n(a) MVTec-AD\n\n(b) VisA\n\nFigure 5: Qualitative comparison with few-shot baselines in 1-shot setting. We directly compare our results\nwith the ones cropped from IIPAD (Lv et al., 2025).\n\n3.3\n\nAblation Study\n\nComparison of Different Foundation Models To further investigate the capability of different\nvisual encoders on F OUNDAD, we conduct an ablation study comparing several commonly used\nencoders in the 1-shot setting on MVTec-AD, as shown in Table 3. For VLMs, we utilize only the vision backbone to extract features in the latent space. Our results demonstrate that DINOv3 achieves\nthe best overall performance. Among the alternative encoders, the DINO series remains competitive,\nwith DINOv2 and DINOSigLIP reaching I-AUROC scores of 95.2% and 92.5%, respectively. As\nexpected, CLIP lags markedly, achieving only 70.9% PRO, consistent with WinCLIP’s observation\n7\n\n\fTable 3: Comparison of performance with different encoders as the backbones in a 1-shot setting on MVTecAD. We color the best and the second .\nDINOv3\n\nDINOv2\n\nDINOSigLIP\n\nDINO\n\nSigLIP\n\nCLIP\n\nWideResnet\n\nPre-trained w/o Texts\n\n✓\n\n✓\n\n✗\n\n✓\n\n✗\n\n✗\n\n✓\n\nI-AUROC\nAUPR\nP-AUROC\nPRO\n\n96.1\n97.9\n96.8\n92.8\n\n95.2\n97.4\n96.4\n92.5\n\n92.5\n95.1\n93.1\n87.2\n\n88.3\n94.2\n96.2\n87.8\n\n87.8\n93.8\n86.0\n71.1\n\n79.0\n87.9\n90.9\n70.9\n\n73.1\n87.2\n89.4\n75.6\n\nthat CLIP lacks pixel-level information (Jeong et al., 2023). This also suggests that CLIP is less\neffective than SigLIP in learning natural image manifold for fine-grained anomaly localization in\nfew-shot settings. WideResNet shows the weakest performance, indicating that traditional CNNs,\neven pretrained, struggle to generalize well under minimal supervision.\nMost importantly, Table 3 reveals that foundation features pre-trained from pure visual supervision, without alignment on textual information, can still deliver highly competitive performance\nfor anomaly detection in challenging few-shot settings. This finding highlights that textual features\nare not a necessity; instead, the representational power of strong visual features alone can be fully\nleveraged to uncover anomalies with minimal data.\n\nScore\n\nI-AUROC\nAUPR\nP-AUROC\nPRO\nComparison between DINOv3 Layers\nWe analyze the effect of selecting different layers in DINOv3 for feature extraction in the 1-shot setting on MVTec-AD,\nas shown in Figure 6. Layer 10, used\nin F OUNDAD, achieves the overall best\nperformance, with the highest I-AUROC\n(96.1%), AUPR (97.9%), and P-AUROC\n(96.8%), and a competitive PRO (92.8%).\nWhile adjacent layers such as layer 9 and\n11 yield comparable results, performance\ndeclines when using shallower (e.g., layer\n6) or deeper layers (e.g., layer 12), espeLayer\ncially in terms of I-AUROC and PRO. This\nFigure\n6:\nComparison\nof\nperformance\nusing different layers\nindicates that mid-to-late layers strike a\nof\nDINOv3\nin\na\n1-shot\nsetting\non\nMVTec-AD.\nbetter balance between semantics and spatial precision, while overly abstract or low-level features are suboptimal for fine-grained localization.\n\nComparison of Projector Designs In Table 4: 1-shot performance comparison of different archiour initial exploration of projector archi- tectures of the manifold projector on MVTec-AD.\ntectures, we compared two widely used\nmodules, MLP layers and ViT attention\nType Depth I-AUROC AUPR P-AUROC PRO\nblocks, under different layer configura4\n95.5\n97.2\n96.6\n92.6\ntions in the 1-shot setting on MVTec-AD.\nViT\n6\n96.1\n97.9\n96.8\n92.8\n8\n95.8\n97.3\n96.8\n92.5\nAs shown in Table 4, ViT consistently outperforms MLP with the same depth. This\n4\n93.5\n96.2\n95.7\n91.2\nadvantage arises from the self-attention\nMLP\n6\n92.1\n95.4\n95.2\n90.7\n8\n87.8\n91.9\n91.2\n82.1\nmechanism, which enables richer patchwise interactions and improves the detection of fine-grained anomalies. However, simply increasing the network depth does not necessarily\nyield further gains and instead adds computational overhead. Guided by these observations, we\nadopt a 6-layer self-attention block in our final design, as it offers a favorable trade-off between\naccuracy and computational cost.\nTop-K Selection The optimal K varies across datasets, as the size and distribution of abnormal\nregions differ among various datasets (Sträter et al., 2024). We evaluate the effect of different values\nof K in the Top-K selection mechanism on MVTec-AD and VisA in a 1-shot setting. Table 5\n8\n\n\findicates that increasing K initially improves performance, with the best results observed at K = 10\nfor MVTec-AD and K = 6 for VisA. Beyond these points, performance gradually declines.\nTable 5: Comparison of performance with DINOv3 backbone and different K of Top-K in a 1-shot setting on\nMVTec-AD and VisA. We color the best .\nDataset\n\n3.4\n\nK\n\nMetric\n1\n\n2\n\n4\n\n6\n\n10\n\n14\n\n16\n\n20\n\nMVTec-AD\n\nI-AUROC\nAUPR\n\n94.82\n97.10\n\n95.41\n97.47\n\n95.89\n97.78\n\n95.96\n97.80\n\n96.09\n97.92\n\n95.91\n97.81\n\n95.86\n97.78\n\n95.74\n97.75\n\nVisA\n\nI-AUROC\nAUPR\n\n91.64\n90.91\n\n92.26\n91.39\n\n92.63\n91.56\n\n92.64\n91.98\n\n92.44\n91.56\n\n92.28\n91.55\n\n92.17\n91.53\n\n91.96\n91.41\n\nFailure Cases\n\nWhile F OUNDAD achieves generally strong performance in both image classification and anomaly\nlocalization, it can still be challenged under certain conditions. Typical failure cases are shown\nin Figure 7. In Figure 7 (a), the test screw appears in a different orientation from the training samples. Without a spatial transformation mechanism to align features as adopted in RegAD (Huang\net al., 2022), F OUNDAD fails to recognize the anomaly. Similarly, a transistor with missing pins can\nbe localized, but precise segmentation is unsuccessful. We attribute this to two factors: (i) the projector is trained solely on normal data and therefore lacks priors about the morphology of potential\nanomalies; and (ii) the projector, inspired by I-JEPA (Assran et al., 2023), is non-generative, limiting\nits ability to complete anomaly masks. In Figure 7 (b), the candle exhibits severe appearance variations caused by exposure. The anomaly becomes nearly indistinguishable from the background,\nhindering representation learning and degrading detection quality. Moreover, F OUNDAD occasionally misclassifies background artifacts as anomalies. For example, previously unseen stains on the\nplatform of Pcb2 are incorrectly highlighted during inference.\nAbnormal\n\nGround Truth\n\nF OUNDAD\n\nAbnormal\n\nGround Truth\n\nF OUNDAD\n\nPcb2\n\nTransistor\n\nScrew\n\nCandle\n\n(a) MVTec-AD\n\n(b) VisA\n\nFigure 7: Typical failure cases of F OUNDAD.\n\n4\n\nRelated Work\n\nMulti-class Anomaly Detection Many existing methods follow a one-class-one-model (Yi &amp;\nYoon, 2020; Cohen &amp; Hoshen, 2020; Defard et al., 2021; Roth et al., 2022; Rudolph et al., 2021; Zavrtanik et al., 2021; 2022; Deng &amp; Li, 2022; Tien et al., 2023; Iqbal et al., 2024; Zhang et al., 2024;\nLi et al., 2021; Hu et al., 2024; Zhang et al., 2023) paradigm, necessitating a separate model for each\nclass, which limits generalization to unseen categories. To overcome this limitation, general models\n(Huang et al., 2022; 2024; He et al., 2024a) and multi-class-one-model approaches (You et al., 2022;\nZhao, 2023; Lu et al., 2023; He et al., 2024b) have been proposed. In this work, we focus primarily\non multi-class settings. UniAD (You et al., 2022) presents a unified framework capable of handling\nmultiple classes simultaneously, while HVQ-Trans (Lu et al., 2023) employs vector quantization to\n9\n\n\flearn a structured latent space that enhances anomaly detection within each category and preserves\ncross-category discrimination. DiAD (Zhang et al., 2025a) introduces a diffusion-based method for\nmulti-class anomaly detection. Notably, these methods typically require a large amount of training\ndata, which is impractical in real industrial scenarios since collecting and labeling samples is challenging and expensive. Therefore, we aim to develop an approach for multi-class anomaly detection\nwith minimal training effort.\nFew-shot Anomaly Detection Few-shot anomaly detection aims to detect and localize anomalies\nusing minimal training samples per category (Fang et al., 2023; Duan et al., 2023; Damm et al., 2024;\nZhu &amp; Pang, 2024; Huang et al., 2022; 2024; Jeong et al., 2023; Gu et al., 2024b; Yan et al., 2024;\nLv et al., 2025). For example, RegAD (Huang et al., 2022) introduces spatial transformation consistency to ensure robustness under few-shot conditions, while FastRecon (Fang et al., 2023) leverages\nan efficient feature reconstruction approach for rapid adaptation to unseen anomaly types. Another\nline of research exploits textual information to support few-shot anomaly detection; methods such as\nAnomalyGPT (Gu et al., 2024b), InCTRL (Zhu &amp; Pang, 2024), WinCLIP (Jeong et al., 2023), and\nPromptAD (Li et al., 2024) employ vision-language models to address the few-shot detection problem. Moreover, recent work on the multi-class setting, such as AnomalySD (Yan et al., 2024) and\nIIPAD (Lv et al., 2025), has proposed unified models that handle multiple categories within a single framework while achieving competitive performance. LogSAD (Zhang et al., 2025b) leverages\nGPT-4V (Achiam et al., 2023) to generate textual reasoning rules per category and combines patchlevel and set-level detections with score calibration, achieving strong performance in a training-free\nmanner. However, relying on textual inputs or support images during inference remains impractical\nin many real-world applications.\nFoundation Models for Visual Understanding Foundation models have driven major advances\nin visual understanding (Zhou et al., 2022; Gu et al., 2024a; Liu et al., 2024), content generation (Zhai et al., 2024; 2023a; Karras et al., 2023), vision-based planning (Zhou et al., 2025; Kim\net al., 2025), geometry estimation (Chen et al., 2024; Wang et al., 2025; Edstedt et al., 2024), and\nfuture prediction (Karypidis et al., 2025; Baldassarre et al., 2025). Early supervised pretraining\non large-scale datasets such as ImageNet (Deng et al., 2009) with convolutional networks (He\net al., 2016; Zagoruyko &amp; Komodakis, 2016) established strong transferable features, while selfsupervised contrastive learning, such as SimCLR (Chen et al., 2020), MoCo (He et al., 2020),\nfurther improved label-free representation learning. Vision Transformers, particularly the DINO\nseries (Caron et al., 2021; Oquab et al., 2024; Siméoni et al., 2025), enriched semantic capture,\nand masked image modeling (He et al., 2022; Bao et al., 2022; Assran et al., 2023) showed that\npredicting masked tokens yields highly transferable embeddings. Vision-language models such as\nCLIP (Radford et al., 2021) and SigLIP (Zhai et al., 2023b) extend this by grounding visual features in text. These pre-trained representations form well-structured manifolds that benefit anomaly\ndetection, where distinguishing normal from abnormal patterns hinges on the underlying feature\nspace (Heckler et al., 2023). Inspired particularly by I-JEPA (Assran et al., 2023), which predicts\nmasked tokens directly in latent space, we build on strong embedding structures and introduce a\nprojector to map mixed anomalous and normal feature tokens back to the normal manifold.\n\n5\n\nConclusion\n\nIn this work, we presented a novel few-shot anomaly detection approach, F OUNDAD, leveraging the\npure visual embeddings from foundation encoders without text-prompt assistance. By uncovering\nthe direct correlation between embedding distance and anomaly amount, we designed a lightweight\nnonlinear feature projector that efficiently maps features onto the normal image manifold. This\nmethod effectively addresses the challenge posed by limited anomaly examples, achieving robust\ndetection with minimal training data. Extensive evaluations across multiple foundational visual\nencoders demonstrated that our method surpasses current few-shot anomaly detection methods. Our\nfindings emphasize the potential of foundation visual encoders solely for anomaly detection tasks,\nadvocating for broader exploration and application in industrial inspection scenarios.\n\n10\n\n\fReferences\nJosh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo\nAlmeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. Gpt-4 technical report, 2023. URL\nhttps://arxiv.org/abs/2303.08774. 10\nMahmoud Assran, Quentin Duval, Ishan Misra, Piotr Bojanowski, Pascal Vincent, Michael Rabbat, Yann LeCun, and Nicolas Ballas. Self-supervised learning from images with a joint-embedding predictive architecture. In CVPR, 2023. 2, 9, 10\nFederico Baldassarre, Marc Szafraniec, Basile Terver, Vasil Khalidov, Francisco Massa, Yann LeCun, Patrick\nLabatut, Maximilian Seitzer, and Piotr Bojanowski. Back to the features: Dino as a foundation for video\nworld models, 2025. URL https://arxiv.org/abs/2507.19468. 10\nHangbo Bao, Li Dong, Songhao Piao, and Furu Wei. Beit: Bert pre-training of image transformers. In ICLR,\n2022. 10\nKilian Batzner, Lars Heckler, and Rebecca König.\nmillisecond-level latencies. In CVPR, 2024. 7\n\nEfficientad: Accurate visual anomaly detection at\n\nPaul Bergmann, Michael Fauser, David Sattlegger, and Carsten Steger. Mvtec ad–a comprehensive real-world\ndataset for unsupervised anomaly detection. In CVPR, 2019. 1, 4, 5\nMathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou, Julien Mairal, Piotr Bojanowski, and Armand\nJoulin. Emerging properties in self-supervised vision transformers. In CVPR, 2021. 1, 2, 10\nTing Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive\nlearning of visual representations. In ICML, 2020. 2, 10\nXinlei Chen and Kaiming He. Exploring simple siamese representation learning. In CVPR, 2021. 2\nYamei Chen, Yan Di, Guangyao Zhai, Fabian Manhardt, Chenyangguang Zhang, Ruida Zhang, Federico\nTombari, Nassir Navab, and Benjamin Busam. Secondpose: Se (3)-consistent dual-stream feature fusion\nfor category-level pose estimation. In CVPR, 2024. 10\nN Cohen and Y Hoshen. Sub-image anomaly detection with deep pyramid correspondences, 2020. URL\nhttps://arxiv.org/abs/2005.02357. 5, 6, 9\nSimon Damm, Mike Laszkiewicz, Johannes Lederer, and Asja Fischer. Anomalydino: Boosting patch-based\nfew-shot anomaly detection with dinov2, 2024. URL https://arxiv.org/abs/2405.14529. 10\nThomas Defard, Aleksandr Setkov, Angelique Loesch, and Romaric Audigier. Padim: a patch distribution\nmodeling framework for anomaly detection and localization. In ICPR, 2021. 9\nHanqiu Deng and Xingyu Li. Anomaly detection via reverse distillation from one-class embedding. In CVPR,\n2022. 9\nJia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical\nimage database. In CVPR, 2009. 10\nYuxuan Duan, Yan Hong, Li Niu, and Liqing Zhang. Few-shot defect image generation via defect-aware feature\nmanipulation. In AAAI, 2023. 10\nJohan Edstedt, Qiyu Sun, Georg Bökman, Mårten Wadenbäck, and Michael Felsberg. Roma: Robust dense\nfeature matching. In CVPR, 2024. 10\nZheng Fang, Xiaoyang Wang, Haocheng Li, Jiejie Liu, Qiugui Hu, and Jimin Xiao. Fastrecon: Few-shot\nindustrial anomaly detection via fast feature reconstruction. In ICCV, 2023. 5, 6, 10\nBin-Bin Gao, Yue Zhou, Jiangtao Yan, Yuezhi Cai, Weixi Zhang, Meng Wang, Jun Liu, Yong Liu, Lei Wang,\nand Chengjie Wang. Adaptclip: Adapting clip for universal visual anomaly detection, 2025. URL https:\n//arxiv.org/abs/2505.09926. 6\nQiao Gu, Ali Kuwajerwala, Sacha Morin, Krishna Murthy Jatavallabhula, Bipasha Sen, Aditya Agarwal, Corban Rivera, William Paul, Kirsty Ellis, Rama Chellappa, et al. Conceptgraphs: Open-vocabulary 3d scene\ngraphs for perception and planning. In ICRA, 2024a. 10\nZhaopeng Gu, Bingke Zhu, Guibo Zhu, Yingying Chen, Ming Tang, and Jinqiao Wang. Anomalygpt: Detecting\nindustrial anomalies using large vision-language models. In AAAI, 2024b. 10\n\n11\n\n\fHaoyang He, Yuhu Bai, Jiangning Zhang, Qingdong He, Hongxu Chen, Zhenye Gan, Chengjie Wang, Xiangtai\nLi, Guanzhong Tian, and Lei Xie. Mambaad: Exploring state space models for multi-class unsupervised\nanomaly detection. In NeurIPS, 2024a. 9\nHaoyang He, Jiangning Zhang, Hongxu Chen, Xuhai Chen, Zhishan Li, Xu Chen, Yabiao Wang, Chengjie\nWang, and Lei Xie. A diffusion-based framework for multi-class anomaly detection. In AAAI, 2024b. 9\nKaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In\nCVPR, 2016. 10\nKaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised\nvisual representation learning. In CVPR, 2020. 10\nKaiming He, Xinlei Chen, Saining Xie, Yanghao Li, Piotr Dollár, and Ross Girshick. Masked autoencoders are\nscalable vision learners. In CVPR, 2022. 10\nLars Heckler, Rebecca König, and Paul Bergmann. Exploring the importance of pretrained feature extractors\nfor unsupervised anomaly detection and localization. In CVPR, 2023. 10\nTeng Hu, Jiangning Zhang, Ran Yi, Yuzhen Du, Xu Chen, Liang Liu, Yabiao Wang, and Chengjie Wang.\nAnomalydiffusion: Few-shot anomaly image generation with diffusion model. In AAAI, 2024. 9\nChaoqin Huang, Haoyan Guan, Aofan Jiang, Ya Zhang, Michael Spratling, and Yan-Feng Wang. Registration\nbased few-shot anomaly detection. In ECCV, 2022. 9, 10\nChaoqin Huang, Haoyan Guan, Aofan Jiang, Ya Zhang, Michael Spratling, Xinchao Wang, and Yanfeng Wang.\nFew-shot anomaly detection via category-agnostic registration learning. IEEE Transactions on Neural Networks and Learning Systems, 2024. 9, 10\nEhtesham Iqbal, Samee Ullah Khan, Sajid Javed, Brain Moyo, Yahya Zweiri, and Yusra Abdulrahman. Multiscale feature reconstruction network for industrial anomaly detection. Knowledge-Based Systems, 305:\n112650, 2024. 9\nJongheon Jeong, Yang Zou, Taewan Kim, Dongqing Zhang, Avinash Ravichandran, and Onkar Dabeer. Winclip: Zero-/few-shot anomaly classification and segmentation. In CVPR, 2023. 5, 8, 10\nSiddharth Karamcheti, Suraj Nair, Ashwin Balakrishna, Percy Liang, Thomas Kollar, and Dorsa Sadigh. Prismatic vlms: Investigating the design space of visually-conditioned language models. In ICML, 2024. 15\nJohanna Karras, Aleksander Holynski, Ting-Chun Wang, and Ira Kemelmacher-Shlizerman. Dreampose: Fashion image-to-video synthesis via stable diffusion. In ICCV, 2023. 10\nEfstathios Karypidis, Ioannis Kakogeorgiou, Spyros Gidaris, and Nikos Komodakis. Dino-foresight: Looking\ninto the future with dino. In NeurIPS, 2025. 10\nMoo Jin Kim, Karl Pertsch, Siddharth Karamcheti, Ted Xiao, Ashwin Balakrishna, Suraj Nair, Rafael Rafailov,\nEthan Foster, Grace Lam, Pannag Sanketi, et al. Openvla: An open-source vision-language-action model.\nCoRL, 2025. 10\nYann LeCun. A path towards autonomous machine intelligence version 0.9. 2, 2022-06-27, 2022. URL\nhttps://openreview.net/pdf?id=BZ5a1r-kVsf. 2\nChun-Liang Li, Kihyuk Sohn, Jinsung Yoon, and Tomas Pfister. Cutpaste: Self-supervised learning for anomaly\ndetection and localization. In CVPR, 2021. 2, 3, 9\nYiting Li, Adam Goodge, Fayao Liu, and Chuan-Sheng Foo. Promptad: Zero-shot anomaly detection using\ntext prompts. In CVPR, 2024. 2, 5, 10\nShilong Liu, Zhaoyang Zeng, Tianhe Ren, Feng Li, Hao Zhang, Jie Yang, Qing Jiang, Chunyuan Li, Jianwei Yang, Hang Su, et al. Grounding dino: Marrying dino with grounded pre-training for open-set object\ndetection. In ECCV, 2024. 10\nRuiying Lu, YuJie Wu, Long Tian, Dongsheng Wang, Bo Chen, Xiyang Liu, and Ruimin Hu. Hierarchical\nvector quantized transformer for multi-class unsupervised anomaly detection. In NeurIPS, 2023. 9\nWenxi Lv, Qinliang Su, and Wenchao Xu. One-for-all few-shot anomaly detection via instance-induced prompt\nlearning. In ICLR, 2025. 2, 4, 5, 6, 7, 10\n\n12\n\n\fMaxime Oquab, Timothée Darcet, Théo Moutakanni, Huy V. Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel HAZIZA, Francisco Massa, Alaaeldin El-Nouby, Mido Assran, Nicolas Ballas, Wojciech\nGaluba, Russell Howes, Po-Yao Huang, Shang-Wen Li, Ishan Misra, Michael Rabbat, Vasu Sharma, Gabriel\nSynnaeve, Hu Xu, Herve Jegou, Julien Mairal, Patrick Labatut, Armand Joulin, and Piotr Bojanowski. DINOv2: Learning robust visual features without supervision. Transactions on Machine Learning Research,\n2024. ISSN 2835-8856. URL https://openreview.net/forum?id=a68SUt6zFt. Featured\nCertification. 1, 2, 10\nAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural\nlanguage supervision. In ICML, 2021. 2, 10\nKarsten Roth, Latha Pemula, Joaquin Zepeda, Bernhard Schölkopf, Thomas Brox, and Peter Gehler. Towards\ntotal recall in industrial anomaly detection. In CVPR, 2022. 5, 6, 9, 15\nMarco Rudolph, Bastian Wandt, and Bodo Rosenhahn. Same same but differnet: Semi-supervised defect\ndetection with normalizing flows. In WACV, 2021. 9\nOriane Siméoni, Huy V Vo, Maximilian Seitzer, Federico Baldassarre, Maxime Oquab, Cijo Jose, Vasil\nKhalidov, Marc Szafraniec, Seungeun Yi, Michaël Ramamonjisoa, et al. Dinov3, 2025. URL https:\n//arxiv.org/abs/2508.10104. 2, 5, 10\nLuc PJ Sträter, Mohammadreza Salehi, Efstratios Gavves, Cees GM Snoek, and Yuki M Asano. Generalad:\nAnomaly detection across domains by attending to distorted features. In ECCV, 2024. 8\nTran Dinh Tien, Anh Tuan Nguyen, Nguyen Hoang Tran, Ta Duc Huy, Soan Duong, Chanh D Tr Nguyen, and\nSteven QH Truong. Revisiting reverse distillation for anomaly detection. In CVPR, 2023. 9\nJianyuan Wang, Minghao Chen, Nikita Karaev, Andrea Vedaldi, Christian Rupprecht, and David Novotny.\nVggt: Visual geometry grounded transformer. In CVPR, 2025. 10\nZhenyu Yan, Qingqing Fang, Wenxi Lv, and Qinliang Su. Anomalysd: Few-shot multi-class anomaly detection\nwith stable diffusion model, 2024. URL https://arxiv.org/abs/2408.01960. 4, 5, 10\nMinghui Yang, Peng Wu, and Hui Feng. Memseg: A semi-supervised method for image surface defect detection\nusing differences and commonalities. Engineering Applications of Artificial Intelligence, 119:105835, 2023.\n3\nJihun Yi and Sungroh Yoon. Patch svdd: Patch-level svdd for anomaly detection and segmentation. In ACCV,\n2020. 9\nZhiyuan You, Lei Cui, Yujun Shen, Kai Yang, Xin Lu, Yu Zheng, and Xinyi Le. A unified model for multi-class\nanomaly detection. In NeurIPS, 2022. 9\nSergey Zagoruyko and Nikos Komodakis. Wide residual networks. In BMVC, 2016. 1, 2, 10\nVitjan Zavrtanik, Matej Kristan, and Danijel Skočaj. Draem-a discriminatively trained reconstruction embedding for surface anomaly detection. In ICCV, 2021. 9\nVitjan Zavrtanik, Matej Kristan, and Danijel Skočaj. Dsr–a dual subspace re-projection network for surface\nanomaly detection. In ECCV, 2022. 9\nGuangyao Zhai, Evin Pınar Örnek, Shun-Cheng Wu, Yan Di, Federico Tombari, Nassir Navab, and Benjamin Busam. Commonscenes: Generating commonsense 3d indoor scenes with scene graph diffusion.\nIn NeurIPS, 2023a. 10\nGuangyao Zhai, Evin Pınar Örnek, Dave Zhenyu Chen, Ruotong Liao, Yan Di, Nassir Navab, Federico\nTombari, and Benjamin Busam. Echoscene: Indoor scene generation via information echo over scene graph\ndiffusion. In ECCV, 2024. 10\nXiaohua Zhai, Basil Mustafa, Alexander Kolesnikov, and Lucas Beyer. Sigmoid loss for language image pretraining. In ICCV, 2023b. 1, 2, 10\nHui Zhang, Zheng Wang, Dan Zeng, Zuxuan Wu, and Yu-Gang Jiang. Diffusionad: Norm-guided one-step\ndenoising diffusion for anomaly detection. IEEE Transactions on Pattern Analysis and Machine Intelligence,\n2025a. 10\nJinjin Zhang, Guodong Wang, Yizhou Jin, and Di Huang. Towards training-free anomaly detection with vision\nand language foundation models. In CVPR, 2025b. 2, 5, 10, 17\n\n13\n\n\fXimiao Zhang, Min Xu, and Xiuzhuang Zhou. Realnet: A feature selection network with realistic synthetic\nanomaly for anomaly detection. In CVPR, 2024. 3, 9\nXuan Zhang, Shiyu Li, Xi Li, Ping Huang, Jiulong Shan, and Ting Chen. Destseg: Segmentation guided\ndenoising student-teacher for anomaly detection. In CVPR, 2023. 9\nYing Zhao. Omnial: A unified cnn framework for unsupervised anomaly localization. In CVPR, 2023. 9\nChong Zhou, Chen Change Loy, and Bo Dai. Extract free dense labels from clip. In ECCV, 2022. 10\nGaoyue Zhou, Hengkai Pan, Yann LeCun, and Lerrel Pinto. Dino-wm: World models on pre-trained visual\nfeatures enable zero-shot planning. In ICML, 2025. 10\nQihang Zhou, Guansong Pang, Yu Tian, Shibo He, and Jiming Chen. Anomalyclip: Object-agnostic prompt\nlearning for zero-shot anomaly detection. In ICLR, 2024. 5, 6\nJiawen Zhu and Guansong Pang. Toward generalist anomaly detection via in-context residual learning with\nfew-shot sample prompts. In CVPR, 2024. 5, 6, 10\nYang Zou, Jongheon Jeong, Latha Pemula, Dongqing Zhang, and Onkar Dabeer. Spot-the-difference selfsupervised pre-training for anomaly detection and segmentation. In ECCV, 2022. 1, 4\n\n14\n\n\fSupplementary Material\nIn this material, we provide more details about the ablation of foundation encoders and additional\nquantitative and qualitative results.\n\nA\n\nExperimental Detail for Encoder Ablation\n\nWe performed experiments with various encoders under a 1-shot setting on MVTec-AD. To maintain consistency with the default encoder DINOv3 of F OUNDAD, use the same sampled training\ninstances across different encoders. The projector was uniformly maintained at a depth of 6, and the\nlearning rate was consistently set to 0.001 for all cases.\nTo ensure a fair comparison, we use ViT-Base for DINOv3, DINOv2, DINO, SigLIP, and CLIP,\nall in the third-to-last layer. We conducted the experiment for DINOSigLIP using ViT-L due to\navailability. However, since different encoders require varying default image input sizes and patch\nsizes, the input patch numbers for the projector was adjusted accordingly: (1) For DINOv2 and\nDINO ViT-B, the input images were resized to 518, with a patch size of 14. (2) For DINOv3 and\nSigLIP ViT-B, the input images were resized to 512, with a patch size of 16. (3) For CLIP ViT-B,\nthe default image size was 224 with a patch size of 16. (4) For DINOSigLIP, we employed the\nimplementation from Prismatic VLMs (Karamcheti et al., 2024) 1 , which combines DINOv2 ViTL and SigLIP ViT-SO embeddings with a linear projection at an input resolution of 384. (5) For\nWideResNet, we adopted the methodology identical to PatchCore (Roth et al., 2022).\n\nB\n\nAdditional Results\nTable 6: Results on MVTec-AD and VisA under multiple seeds.\nSetting\n\n1-shot\n\n2-shot\n\n4-shot\n\nB.1\n\nMVTec-AD\n\nSeed\n\nVisA\n\nI-AUROC\n\nAUPR\n\nP-AUROC\n\nPRO\n\nI-AUROC\n\nAUPR\n\nP-AUROC\n\nPRO\n\n1\n2\n3\n\n96.0\n96.0\n96.4\n\n97.8\n97.6\n98.2\n\n96.9\n96.9\n96.5\n\n93.1\n92.8\n92.6\n\n92.5\n91.9\n93.4\n\n91.5\n91.9\n92.7\n\n99.7\n99.7\n99.7\n\n97.8\n98.2\n98.1\n\nAvg\n\n96.1\n\n97.9\n\n96.8\n\n92.8\n\n92.6\n\n92.0\n\n99.7\n\n98.0\n\n1\n2\n3\n\n96.8\n96.9\n96.6\n\n98.3\n98.2\n98.3\n\n97.0\n97.2\n96.9\n\n93.3\n93.7\n92.9\n\n93.9\n93.5\n94.0\n\n93.2\n93.3\n93.3\n\n99.7\n99.7\n99.7\n\n98.1\n98.3\n98.2\n\nAvg\n\n96.8\n\n98.3\n\n97.0\n\n93.3\n\n93.8\n\n93.3\n\n99.7\n\n98.2\n\n1\n2\n3\n\n97.2\n97.2\n97.0\n\n98.6\n98.6\n98.5\n\n97.2\n97.3\n97.1\n\n93.5\n93.7\n93.4\n\n94.2\n94.5\n94.6\n\n93.4\n94.6\n93.9\n\n99.7\n99.7\n99.7\n\n98.2\n98.4\n98.6\n\nAvg\n\n97.1\n\n98.6\n\n97.2\n\n93.5\n\n94.4\n\n94.0\n\n99.7\n\n98.4\n\nMultiple Run Results\n\nTo demonstrate the robustness and reliability of F OUNDAD, we repeated the experiments in three\nrandom seeds on the MVTec-AD dataset. The detailed experimental results are summarized in Table 6. These results indicate that F OUNDAD consistently maintains strong generalization capability\nand stable anomaly detection performance even under limited data conditions.\nAll four metrics consistently improve as the number of shots increases, particularly on MVTec-AD,\nindicating that our method can effectively leverage additional supervision to enhance anomaly detection performance. As shown in Figure 8, the standard deviations are generally small across runs,\ndemonstrating strong stability and robustness. On VisA, interestingly, the P-AUROC remains nearly\nsaturated at 99.7 across all settings, showing that the method performs highly reliably at the pixel\nlevel. I-AUROC and AUPR exhibit steeper gains on MVTec-AD, likely due to its more diverse visual\npatterns, where additional examples provide more substantial benefit, whereas VisA benefits from\n1\n\nhttps://github.com/tri-ml/prismatic-vlms\n\n15\n\n\fmore homogeneous object categories. Although the PRO metric shows slight fluctuations, it consistently stays high, underscoring the method’s effectiveness in localizing anomalies with pixel-level\nprecision. Overall, the results demonstrate our method’s robustness, consistency, and scalability in\nfew-shot settings, making it well-suited for real-world industrial scenarios with limited annotations.\n(b) VisA\n\nShot\n\nShot\n\nScore\n\n(a) MVTec-AD\n\nFigure 8: Mean and standard deviation of four evaluation metrics across 1-, 2-, and 4-shot settings on MVTecAD and VisA.\n\nB.2\n\nClass-Wise Quantitative Results\n\nWe report the class-wise quantitative results of F OUNDAD with DINOv3 under 1, 2, and 4 shot\nsettings on MVTec-AD and VisA in detail in Table 7 and Table 8.\nTable 7: Results on MVTec-AD for 1-shot, 2-shot, and 4-shot. Metrics include I-AUROC (%), AUPR (%) and\npixel-level P-AUROC (%), PRO (%).\n1-shot\n\nClass\n\n2-shot\n\n4-shot\n\nI-AUROC\n\nAUPR\n\nP-AUROC\n\nPRO\n\nI-AUROC\n\nAUPR\n\nP-AUROC\n\nPRO\n\nI-AUROC\n\nAUPR\n\nP-AUROC\n\nPRO\n\nBottle\nCable\nCapsule\nCarpet\nGrid\nHazelnut\nLeather\nMetal nut\nPill\nScrew\nTile\nToothbrush\nTransistor\nWood\nZipper\n\n100.0\n89.6\n89.5\n100.0\n99.8\n99.3\n100.0\n99.8\n97.7\n84.8\n100.0\n99.8\n86.3\n95.4\n99.8\n\n100.0\n94.1\n97.5\n100.0\n99.9\n99.7\n100.0\n100.0\n99.6\n94.3\n100.0\n99.9\n85.0\n97.9\n99.9\n\n98.6\n94.7\n98.6\n99.5\n99.2\n99.5\n99.4\n92.5\n94.5\n98.4\n97.2\n99.2\n85.0\n96.2\n99.0\n\n96.2\n89.2\n94.3\n98.3\n96.1\n93.0\n98.7\n91.8\n97.0\n92.6\n95.4\n94.1\n63.3\n96.0\n96.8\n\n100.0\n92.3\n89.6\n100.0\n99.9\n99.9\n100.0\n99.9\n97.8\n87.6\n100.0\n99.2\n89.2\n96.9\n99.8\n\n100.0\n96.3\n97.6\n100.0\n99.9\n99.9\n100.0\n100.0\n99.6\n95.2\n100.0\n99.7\n86.6\n98.7\n99.9\n\n98.6\n95.0\n98.8\n99.4\n99.3\n99.5\n99.4\n94.3\n94.6\n98.7\n97.3\n99.2\n86.6\n96.2\n99.0\n\n95.8\n89.9\n94.9\n98.3\n96.6\n93.2\n98.7\n93.3\n97.1\n92.8\n95.1\n95.2\n63.8\n95.9\n97.1\n\n100.0\n92.4\n90.1\n100.0\n100.0\n99.8\n100.0\n100.0\n98.1\n89.0\n100.0\n100.0\n92.5\n95.2\n99.9\n\n100.0\n96.4\n97.7\n100.0\n100.0\n99.8\n100.0\n100.0\n99.7\n95.7\n100.0\n100.0\n90.0\n98.6\n100.0\n\n98.6\n94.7\n98.8\n99.5\n99.3\n99.5\n99.4\n96.3\n95.0\n98.7\n97.4\n99.4\n87.4\n96.2\n99.1\n\n95.9\n89.6\n94.8\n98.2\n96.8\n93.4\n98.4\n95.3\n96.7\n93.3\n94.9\n95.6\n65.7\n96.1\n97.0\n\nAverage\n\n96.1\n\n97.9\n\n96.8\n\n92.8\n\n96.8\n\n98.3\n\n97.0\n\n93.3\n\n97.1\n\n98.6\n\n97.2\n\n93.5\n\nTable 8: Results of F OUNDAD on VisA for 1-shot, 2-shot, and 4-shot. Metrics include I-AUROC (%), AUPR\n(%) and pixel-level P-AUROC (%), PRO (%).\n1-shot\n\nClass\n\n2-shot\n\n4-shot\n\nI-AUROC\n\nAUPR\n\nP-AUROC\n\nPRO\n\nI-AUROC\n\nAUPR\n\nP-AUROC\n\nPRO\n\nI-AUROC\n\nAUPR\n\nP-AUROC\n\nPRO\n\nCandle\nCapsules\nCashew\nChewinggum\nFryum\nMacaroni1\nMacaroni2\nPcb1\nPcb2\nPcb3\nPcb4\nPipe fryum\n\n94.4\n98.9\n97.4\n98.0\n96.8\n93.1\n72.3\n94.1\n92.6\n82.0\n96.6\n95.0\n\n93.2\n99.3\n98.6\n99.1\n98.5\n92.2\n64.9\n90.8\n90.5\n84.7\n94.8\n97.5\n\n99.5\n99.8\n99.6\n99.9\n99.8\n99.5\n99.9\n99.5\n99.6\n99.8\n99.7\n99.7\n\n98.4\n99.0\n98.8\n99.0\n98.0\n98.0\n99.8\n98.1\n97.6\n99.1\n93.2\n96.9\n\n94.7\n99.0\n97.0\n98.5\n96.8\n93.8\n75.2\n95.3\n93.9\n87.8\n97.2\n96.1\n\n93.3\n99.4\n98.5\n99.3\n98.5\n92.9\n68.0\n92.9\n92.1\n90.0\n96.6\n98.0\n\n99.6\n99.8\n99.6\n99.9\n99.8\n99.6\n99.9\n99.5\n99.6\n99.9\n99.7\n99.7\n\n98.7\n99.0\n98.5\n99.1\n98.2\n98.3\n99.8\n98.2\n97.6\n99.4\n94.7\n97.0\n\n94.3\n99.1\n97.6\n98.5\n97.2\n94.0\n77.2\n96.9\n93.9\n90.5\n97.5\n96.9\n\n94.1\n99.4\n98.7\n99.3\n98.6\n93.0\n71.1\n94.6\n91.8\n91.6\n96.5\n98.5\n\n99.5\n99.8\n99.6\n99.8\n99.7\n99.6\n99.9\n99.6\n99.7\n99.9\n99.7\n99.7\n\n98.4\n99.0\n98.5\n98.9\n98.1\n98.3\n99.9\n98.5\n98.0\n99.5\n95.2\n96.8\n\nAverage\n\n92.6\n\n92.0\n\n99.7\n\n98.0\n\n93.8\n\n93.3\n\n99.7\n\n98.2\n\n94.4\n\n94.0\n\n99.7\n\n98.4\n\n16\n\n\fB.3\n\nAdditional Qualitative Comparisons\n\nWe provide several visual comparisons against LogSAD (Zhang et al., 2025b) in Figure 9. It clearly\nshows that F OUNDAD localizes anomaly precisely, while producing significantly less noise.\nGround Truth\n\nLogSAD\n\nF OUNDAD\n\nPcb2\n\nPcb1\n\nFryum\n\nCashew\n\nCapsules\n\nCapsule\n\nPill\n\nAbnormal\n\nFigure 9: Visual comparisons with LogSAD (Zhang et al., 2025b).\nB.4\n\nClass-Wise Comparison to Other Methods\n\nThe class-wise comparisons are presented with I-AUROC in Table 9-Table 10, AUPR in Table 11Table 12, P-AUROC in Table 13-Table 14, and PRO in Table 15-Table 16.\n\n17\n\n\fTable 9: I-AUROC (%) results of MVTec-AD for 1-shot, 2-shot, and 4-shot.\n1-shot\n\nClass\n\n2-shot\n\n4-shot\n\nWinCLIP\n\nPromptAD\n\nIIPAD\n\nOurs\n\nWinCLIP\n\nPromptAD\n\nIIPAD\n\nOurs\n\nWinCLIP\n\nPromptAD\n\nIIPAD\n\nOurs\n\nBottle\nCable\nCapsule\nCarpet\nGrid\nHazelnut\nLeather\nMetal nut\nPill\nScrew\nTile\nToothbrush\nTransistor\nWood\nZipper\n\n98.9\n78.0\n75.5\n99.9\n99.6\n94.9\n100.0\n98.0\n88.9\n85.1\n100.0\n94.2\n85.5\n98.7\n94.9\n\n98.6\n83.6\n64.2\n100.0\n98.8\n98.4\n100.0\n97.6\n87.9\n74.0\n99.8\n94.4\n73.7\n98.6\n95.3\n\n99.7\n92.8\n80.5\n100.0\n97.0\n98.0\n100.0\n99.4\n96.6\n76.8\n99.7\n91.9\n91.4\n99.4\n89.4\n\n100.0\n89.6\n89.5\n100.0\n99.8\n99.3\n100.0\n99.8\n97.7\n84.8\n100.0\n99.8\n86.3\n95.4\n99.8\n\n99.2\n83.9\n65.5\n99.9\n99.2\n95.2\n100.0\n97.8\n91.8\n82.7\n100.0\n93.9\n85.4\n98.9\n97.2\n\n100.0\n87.2\n65.3\n100.0\n97.4\n99.8\n100.0\n96.2\n89.1\n81.2\n99.3\n100.0\n87.2\n98.9\n93.5\n\n99.8\n92.1\n91.8\n100.0\n97.0\n98.5\n100.0\n99.7\n96.0\n81.5\n99.5\n92.5\n90.4\n99.2\n95.5\n\n100.0\n92.3\n89.6\n100.0\n99.9\n99.9\n100.0\n99.9\n97.8\n87.6\n100.0\n99.2\n89.2\n96.9\n99.8\n\n99.2\n82.3\n80.1\n99.9\n99.5\n94.7\n100.0\n98.9\n91.1\n84.4\n100.0\n98.1\n85.6\n98.9\n97.0\n\n99.0\n88.7\n93.4\n100.0\n100.0\n99.0\n100.0\n100.0\n90.4\n84.2\n99.2\n98.8\n94.4\n99.2\n95.8\n\n99.1\n95.4\n94.5\n100.0\n96.0\n98.5\n100.0\n99.9\n96.6\n82.1\n99.9\n92.5\n91.2\n99.6\n96.0\n\n99.1\n92.4\n90.1\n100.0\n100.0\n99.8\n100.0\n100.0\n98.1\n89.0\n100.0\n100.0\n92.5\n95.2\n99.9\n\nMean\n\n92.8\n\n86.3\n\n94.2\n\n96.1\n\n92.7\n\n89.2\n\n95.6\n\n96.8\n\n94.0\n\n90.6\n\n96.1\n\n97.1\n\nTable 10: I-AUROC (%) results of VisA for 1-shot, 2-shot, and 4-shot.\n1-shot\n\nClass\n\n2-shot\n\n4-shot\n\nWinCLIP\n\nPromptAD\n\nIIPAD\n\nOurs\n\nWinCLIP\n\nPromptAD\n\nIIPAD\n\nOurs\n\nWinCLIP\n\nPromptAD\n\nIIPAD\n\nOurs\n\nCandle\nCapsules\nCashew\nChewinggum\nFryum\nMacaroni1\nMacaroni2\nPcb1\nPcb2\nPcb3\nPcb4\nPipefryum\n\n96.3\n79.3\n93.9\n97.9\n92.8\n81.9\n78.1\n83.8\n58.4\n64.9\n72.1\n98.2\n\n91.8\n83.2\n88.9\n97.3\n88.0\n87.3\n60.8\n83.0\n77.9\n79.9\n96.5\n98.9\n\n91.9\n88.9\n85.6\n97.7\n89.9\n85.1\n75.5\n83.5\n72.6\n71.8\n82.9\n99.8\n\n94.4\n98.9\n97.4\n98.0\n96.8\n93.1\n72.3\n94.1\n92.6\n82.0\n96.6\n95.0\n\n96.4\n81.6\n92.6\n98.1\n90.1\n86.4\n76.8\n85.5\n56.8\n67.7\n73.6\n98.5\n\n92.0\n78.7\n89.6\n97.1\n85.7\n87.4\n74.9\n82.9\n84.4\n71.7\n96.0\n99.6\n\n95.5\n90.3\n86.7\n97.8\n92.7\n84.7\n76.1\n86.5\n75.2\n70.7\n84.4\n99.9\n\n94.7\n99.0\n97.0\n98.5\n96.8\n93.8\n75.2\n95.3\n93.9\n87.8\n97.2\n96.1\n\n96.9\n83.0\n92.6\n98.4\n91.6\n86.9\n79.0\n86.0\n59.4\n65.6\n70.7\n98.4\n\n92.9\n81.7\n88.0\n98.1\n90.6\n89.1\n80.5\n86.1\n81.1\n87.1\n85.3\n99.3\n\n95.9\n90.5\n91.2\n98.0\n93.3\n88.4\n78.1\n85.2\n75.5\n74.7\n88.7\n99.8\n\n94.3\n99.1\n97.6\n98.5\n97.2\n94.0\n77.2\n96.9\n93.9\n90.5\n97.5\n96.9\n\nMean\n\n83.1\n\n80.8\n\n85.4\n\n92.6\n\n83.7\n\n84.3\n\n86.7\n\n93.8\n\n84.1\n\n85.7\n\n88.3\n\n94.4\n\nTable 11: AUPR (%) results of MVTec-AD for 1-shot, 2-shot, and 4-shot.\n1-shot\n\nClass\n\n2-shot\n\n4-shot\n\nWinCLIP\n\nPromptAD\n\nIIPAD\n\nOurs\n\nWinCLIP\n\nPromptAD\n\nIIPAD\n\nOurs\n\nWinCLIP\n\nPromptAD\n\nIIPAD\n\nOurs\n\nBottle\nCable\nCapsule\nCarpet\nGrid\nHazelnut\nLeather\nMetal nut\nPill\nScrew\nTile\nToothbrush\nTransistor\nWood\nZipper\n\n99.7\n87.1\n93.9\n100.0\n99.9\n97.4\n100.0\n99.6\n97.6\n95.1\n100.0\n97.7\n80.8\n99.6\n98.6\n\n99.6\n91.2\n85.7\n100.0\n99.5\n99.1\n100.0\n99.3\n96.8\n91.19\n99.9\n97.7\n62.2\n99.5\n98.8\n\n99.9\n96.1\n95.4\n100.0\n99.0\n99.2\n100.0\n99.9\n99.4\n87.0\n99.9\n97.3\n89.8\n99.8\n95.6\n\n100.0\n94.1\n97.5\n100.0\n99.9\n99.7\n100.0\n100.0\n99.6\n94.3\n100.0\n99.9\n85.0\n97.9\n99.9\n\n99.8\n90.6\n88.3\n100.0\n99.7\n97.5\n100.0\n99.5\n98.3\n93.3\n100.0\n97.6\n81.0\n99.7\n99.2\n\n100.0\n92.8\n85.5\n100.0\n99.1\n99.9\n100.0\n98.3\n97.1\n93.5\n99.7\n100.0\n77.2\n99.6\n98.2\n\n100.0\n95.8\n98.3\n100.0\n99.0\n99.4\n100.0\n99.9\n99.3\n92.6\n99.8\n97.5\n88.3\n99.8\n98.7\n\n100.0\n96.3\n97.6\n100.0\n99.9\n99.9\n100.0\n100.0\n99.6\n95.2\n100.0\n99.7\n86.6\n98.7\n99.9\n\n99.8\n90.0\n94.8\n100.0\n99.8\n97.2\n100.0\n99.8\n98.2\n94.0\n100.0\n99.3\n82.6\n99.7\n99.2\n\n99.7\n93.6\n98.5\n100.0\n100.0\n99.4\n100.0\n100.0\n97.7\n93.7\n99.6\n99.5\n92.2\n99.7\n98.9\n\n99.7\n97.5\n98.9\n100.0\n98.6\n99.4\n100.0\n100.0\n99.4\n92.0\n99.9\n97.5\n89.2\n99.9\n98.8\n\n100.0\n96.4\n97.7\n100.0\n100.0\n99.8\n100.0\n100.0\n99.7\n95.7\n100.0\n100.0\n90.0\n98.6\n100.0\n\nMean\n\n96.5\n\n93.4\n\n97.2\n\n97.9\n\n96.3\n\n94.8\n\n97.9\n\n98.3\n\n97.0\n\n96.5\n\n98.1\n\n98.6\n\nTable 12: AUPR (%) results of VisA for 1-shot, 2-shot, and 4-shot.\n1-shot\n\nClass\n\n2-shot\n\n4-shot\n\nWinCLIP\n\nPromptAD\n\nIIPAD\n\nOurs\n\nWinCLIP\n\nPromptAD\n\nIIPAD\n\nOurs\n\nWinCLIP\n\nPromptAD\n\nIIPAD\n\nOurs\n\nCandle\nCapsules\nCashew\nChewinggum\nFryum\nMacaroni1\nMacaroni2\nPcb1\nPcb2\nPcb3\nPcb4\nPipefryum\n\n96.7\n87.0\n97.4\n99.1\n96.9\n82.8\n80.1\n83.7\n58.6\n66.2\n73.8\n99.2\n\n90.7\n90.0\n95.0\n98.9\n94.6\n89.7\n61.5\n77.3\n79.3\n81.6\n96.1\n99.6\n\n94.1\n94.7\n95.7\n99.1\n96.3\n89.3\n79.3\n77.4\n70.2\n73.2\n80.9\n99.9\n\n93.2\n99.3\n98.6\n99.1\n98.5\n92.2\n64.9\n90.8\n90.5\n84.7\n94.8\n97.5\n\n96.9\n89.1\n96.7\n99.2\n95.4\n87.2\n79.0\n84.1\n54.6\n67.3\n70.2\n99.3\n\n91.7\n86.7\n95.1\n98.8\n93.9\n89.0\n78.2\n79.0\n85.5\n73.5\n94.8\n99.7\n\n95.3\n94.9\n95.2\n99.2\n96.8\n90.7\n80.2\n78.5\n73.6\n74.3\n81.7\n100\n\n93.3\n99.4\n98.5\n99.3\n98.5\n92.9\n68.0\n92.9\n92.1\n90.0\n96.6\n98.0\n\n97.3\n90.0\n96.8\n99.3\n96.1\n87.4\n81.9\n85.6\n61.3\n64.6\n73.5\n99.3\n\n92.8\n89.0\n94.7\n99.2\n95.9\n91.1\n81.2\n81.2\n80.8\n88.0\n83.6\n99.7\n\n95.5\n96.0\n96.0\n99.3\n97.3\n91.2\n80.6\n78.6\n73.9\n74.6\n84.5\n99.9\n\n94.1\n99.4\n98.7\n99.3\n98.6\n93.0\n71.1\n94.6\n91.8\n91.6\n96.5\n98.5\n\nMean\n\n85.1\n\n83.2\n\n87.5\n\n92.0\n\n84.9\n\n87.8\n\n88.6\n\n93.3\n\n86.1\n\n88.8\n\n89.6\n\n94.0\n\n18\n\n\fTable 13: P-AUROC (%) results of MVTec-AD for 1-shot, 2-shot, and 4-shot.\n1-shot\n\nClass\n\n2-shot\n\n4-shot\n\nWinCLIP\n\nPromptAD\n\nIIPAD\n\nOurs\n\nWinCLIP\n\nPromptAD\n\nIIPAD\n\nOurs\n\nWinCLIP\n\nPromptAD\n\nIIPAD\n\nOurs\n\nBottle\nCable\nCapsule\nCarpet\nGrid\nHazelnut\nLeather\nMetal nut\nPill\nScrew\nTile\nToothbrush\nTransistor\nWood\nZipper\n\n95.1\n74.6\n95.6\n99.1\n95.1\n98.6\n99.3\n77.9\n93.9\n96.7\n92.2\n95.1\n85.1\n94.7\n92.9\n\n94.5\n76.8\n94.6\n99.1\n96.8\n96.9\n99.3\n94.2\n92.3\n95.7\n94.3\n99.0\n75.5\n95.8\n97.6\n\n98.4\n94.9\n97.2\n99.5\n96.6\n98.4\n99.4\n94.4\n96.6\n96.0\n96.9\n97.4\n86.6\n97.0\n96.0\n\n98.6\n94.7\n98.6\n99.5\n99.2\n99.5\n99.4\n92.5\n94.5\n98.4\n97.2\n99.2\n85.0\n96.2\n99.0\n\n95.5\n76.4\n94.7\n99.1\n96.3\n98.7\n99.3\n76.1\n94.1\n97.0\n92.6\n84.5\n95.3\n94.7\n92.4\n\n95.9\n80.7\n94.8\n99.2\n96.0\n98.0\n99.4\n94.8\n94.3\n96.2\n95.5\n99.2\n84.4\n95.3\n97.3\n\n98.6\n95.3\n97.5\n99.5\n96.3\n98.7\n99.3\n95.4\n97.0\n96.5\n97.1\n97.4\n88.4\n97.3\n96.7\n\n98.6\n95.0\n98.8\n99.4\n99.3\n99.5\n99.4\n94.3\n94.6\n98.7\n97.3\n99.2\n86.6\n96.2\n99.0\n\n95.2\n77.1\n96.3\n99.1\n96.0\n98.7\n99.4\n79.5\n94.4\n96.5\n92.2\n96.8\n84.4\n94.6\n92.9\n\n96.9\n83.7\n97.7\n99.2\n96.8\n98.1\n99.4\n93.2\n95.3\n97.2\n95.9\n99.2\n87.5\n95.6\n96.9\n\n98.6\n96.4\n97.2\n99.5\n98.1\n98.8\n99.5\n94.8\n96.9\n96.9\n97.3\n97.9\n89.6\n97.4\n96.7\n\n98.6\n94.7\n98.8\n99.5\n99.3\n99.5\n99.4\n96.3\n95.0\n98.7\n97.4\n99.4\n87.4\n96.2\n99.1\n\nMean\n\n92.4\n\n91.8\n\n96.4\n\n96.8\n\n92.4\n\n92.2\n\n96.7\n\n97.0\n\n92.9\n\n92.9\n\n97.0\n\n97.2\n\nTable 14: P-AUROC (%) results of VisA for 1-shot, 2-shot, and 4-shot.\n1-shot\n\nClass\n\n2-shot\n\n4-shot\n\nWinCLIP\n\nPromptAD\n\nIIPAD\n\nOurs\n\nWinCLIP\n\nPromptAD\n\nIIPAD\n\nOurs\n\nWinCLIP\n\nPromptAD\n\nIIPAD\n\nOurs\n\nCandle\nCapsules\nCashew\nChewinggum\nFryum\nMacaroni1\nMacaroni2\nPcb1\nPcb2\nPcb3\nPcb4\nPipefryum\n\n93.8\n93.2\n94.6\n98.9\n95.1\n95.6\n94.0\n94.1\n92.4\n91.6\n94.2\n97.9\n\n97.1\n96.7\n97.9\n99.2\n95.6\n97.6\n95.6\n96.9\n94.0\n95.3\n95.7\n98.6\n\n98.5\n97.1\n97.6\n99.6\n96.2\n97.5\n96.6\n98.5\n94.6\n93.0\n95.2\n98.3\n\n99.5\n99.8\n99.6\n99.9\n99.8\n99.5\n99.9\n99.5\n99.6\n99.8\n99.7\n99.7\n\n94.7\n93.0\n95.3\n98.9\n95.6\n96.7\n94.4\n94.6\n93.1\n92.4\n94.9\n97.8\n\n97.7\n97.2\n97.8\n99.0\n95.8\n98.8\n96.1\n98.1\n95.1\n95.5\n96.8\n98.8\n\n98.5\n97.3\n97.1\n99.5\n96.1\n97.6\n96.9\n98.5\n96.8\n93.7\n96.6\n98.5\n\n99.6\n99.8\n99.6\n99.9\n99.8\n99.6\n99.9\n99.5\n99.6\n99.9\n99.7\n99.7\n\n95.0\n93.2\n94.7\n98.9\n95.4\n97.0\n93.8\n94.7\n93.3\n93.2\n95.6\n97.8\n\n97.7\n97.4\n97.9\n99.1\n96.0\n98.6\n98.1\n98.8\n95.6\n96.4\n96.9\n98.9\n\n98.6\n97.9\n97.5\n99.5\n95.8\n97.8\n96.9\n98.7\n96.6\n94.0\n97.2\n98.5\n\n99.5\n99.8\n99.6\n99.8\n99.7\n99.6\n99.9\n99.6\n99.7\n99.9\n99.7\n99.7\n\nMean\n\n94.6\n\n96.3\n\n96.9\n\n99.7\n\n95.1\n\n96.9\n\n97.2\n\n99.7\n\n95.2\n\n97.2\n\n97.4\n\n99.7\n\nTable 15: PRO (%) results of MVTec-AD for 1-shot, 2-shot, and 4-shot.\n1-shot\n\nClass\n\n2-shot\n\n4-shot\n\nWinCLIP\n\nPromptAD\n\nIIPAD\n\nOurs\n\nWinCLIP\n\nPromptAD\n\nIIPAD\n\nOurs\n\nWinCLIP\n\nPromptAD\n\nIIPAD\n\nOurs\n\nBottle\nCable\nCapsule\nCarpet\nGrid\nHazelnut\nLeather\nMetal nut\nPill\nScrew\nTile\nToothbrush\nTransistor\nWood\nZipper\n\n84.5\n55.9\n89.0\n96.4\n85.3\n92.5\n98.2\n77.0\n88.9\n87.0\n78.7\n86.5\n63.5\n86.9\n81.9\n\n89.1\n70.4\n81.2\n96.8\n91.9\n90.9\n98.3\n90.1\n90.1\n83.9\n89.8\n93.4\n59.4\n92.8\n92.5\n\n94.9\n86.7\n91.3\n98.1\n88.4\n93.8\n98.7\n91.8\n94.8\n85.3\n90.4\n82.4\n67.4\n94.2\n88.3\n\n96.2\n89.2\n94.3\n98.3\n96.1\n93.0\n98.7\n91.8\n97.0\n92.6\n95.4\n94.1\n63.3\n96.0\n96.8\n\n85.8\n62.1\n84.2\n96.1\n88.1\n93.1\n98.3\n75.6\n89.6\n88.1\n79.7\n85.6\n62.8\n87.8\n81.8\n\n91.6\n71.2\n82.0\n96.9\n89.2\n93.6\n98.8\n90.7\n93.3\n84.5\n90.7\n93.1\n66.0\n93.4\n91.7\n\n95.2\n89.5\n92.6\n98.0\n87.7\n94.6\n98.5\n92.3\n94.1\n85.8\n90.7\n82.9\n68.6\n94.6\n89.6\n\n95.8\n89.9\n94.9\n98.3\n96.6\n93.2\n98.7\n93.3\n97.1\n92.8\n95.1\n95.2\n63.8\n95.9\n97.1\n\n84.8\n61.5\n88.9\n96.0\n86.8\n92.4\n98.2\n79.5\n89.9\n86.6\n78.2\n88.5\n62.6\n88.3\n83.0\n\n93.4\n75.8\n90.7\n96.6\n91.9\n93.3\n97.8\n89.8\n94.6\n89.1\n91.4\n92.3\n69.4\n93.1\n91.2\n\n95.5\n91.2\n88.9\n97.7\n91.3\n95.8\n98.6\n93.4\n95.6\n87.5\n91.2\n84.4\n71.2\n94.7\n90.8\n\n95.9\n89.6\n94.8\n98.2\n96.8\n93.4\n98.4\n95.3\n96.7\n93.3\n94.9\n95.6\n65.7\n96.1\n97.0\n\nMean\n\n83.5\n\n83.6\n\n89.8\n\n92.8\n\n83.9\n\n84.3\n\n90.3\n\n93.3\n\n84.4\n\n84.7\n\n91.2\n\n93.5\n\nTable 16: PRO (%) results of VisA for 1-shot, 2-shot, and 4-shot.\n1-shot\n\nClass\n\n2-shot\n\n4-shot\n\nWinCLIP\n\nPromptAD\n\nIIPAD\n\nOurs\n\nWinCLIP\n\nPromptAD\n\nIIPAD\n\nOurs\n\nWinCLIP\n\nPromptAD\n\nIIPAD\n\nOurs\n\nCandle\nCapsules\nCashew\nChewinggum\nFryum\nMacaroni1\nMacaroni2\nPcb1\nPcb2\nPcb3\nPcb4\nPipe fryum\n\n89.6\n62.1\n87.6\n82.7\n87.5\n85.6\n81.0\n68.8\n73.6\n76.7\n79.9\n95.7\n\n92.3\n82.7\n89.9\n84.9\n81.9\n88.6\n83.7\n87.9\n73.4\n79.0\n76.7\n96.2\n\n95.0\n83.6\n92.9\n92.5\n87.7\n89.3\n86.6\n84.3\n77.3\n76.8\n83.7\n97.2\n\n98.4\n99.0\n98.8\n99.0\n98.0\n98.0\n99.8\n98.1\n97.6\n99.1\n93.2\n96.9\n\n90.2\n61.8\n86.7\n83.0\n87.8\n89.8\n81.0\n70.2\n74.0\n79.4\n82.4\n95.7\n\n92.3\n82.1\n88.1\n84.1\n80.8\n90.8\n85.2\n86.5\n76.8\n79.5\n83.7\n96.9\n\n95.3\n83.9\n93.0\n93.4\n88.1\n90.1\n86.3\n85.1\n77.8\n78.7\n84.3\n97.1\n\n98.7\n99.0\n98.5\n99.1\n98.2\n98.3\n99.8\n98.2\n97.6\n99.4\n94.7\n97.0\n\n90.5\n61.9\n86.7\n82.7\n88.7\n90.1\n79.8\n70.5\n74.1\n80.3\n83.8\n95.8\n\n92.6\n77.0\n88.3\n83.2\n81.9\n93.5\n91.2\n87.1\n77.9\n83.6\n82.0\n96.7\n\n95.4\n85.2\n92.8\n93.7\n89.2\n89.9\n87.1\n85.6\n77.4\n78.1\n87.3\n97.1\n\n98.4\n99.0\n98.5\n98.9\n98.1\n98.3\n99.9\n98.5\n98.0\n99.5\n95.2\n96.8\n\nMean\n\n80.9\n\n82.2\n\n87.3\n\n98.0\n\n81.8\n\n85.2\n\n87.9\n\n98.2\n\n82.1\n\n84.7\n\n88.3\n\n98.4\n\n19\n\n\fB.5\n\nClass-Wise Qualitative Results\n\nThe class-wise qualitative results of our method in 1-shot setting on MVTec-AD and VisA are shown\nin Figure 10, Figure 11, Figure 12, and Figure 13. We show each training sample in the first column.\nGround Truth\n\nF OUNDAD\n\nLeather\n\nHazelnut\n\nGrid\n\nCarpet\n\nCapsule\n\nCable\n\nBottle\n\nNormal (Training) Abnormal (Testing)\n\nFigure 10: More Qualitative 1-shot Results on MVTec-AD (i).\n\n20\n\n\fGround Truth\n\nF OUNDAD\n\nZipper\n\nWood\n\nTransistor\n\nToothbrush\n\nTile\n\nScrew\n\nPill\n\nMetal Nut\n\nNormal (Training) Abnormal (Testing)\n\nFigure 11: More Qualitative 1-shot Results on MVTec-AD (ii).\n21\n\n\fAbnormal (Testing)\n\nGround Truth\n\nF OUNDAD\n\nMacaroni1\n\nFryum\n\nChewinggum\n\nCashew\n\nCapsules\n\nCandle\n\nNormal (Training)\n\nFigure 12: More Qualitative 1-shot Results on VisA (i).\n\n22\n\n\fAbnormal (Testing)\n\nGround Truth\n\nF OUNDAD\n\nPipe Fryum\n\nPcb4\n\nPcb3\n\nPcb2\n\nPcb1\n\nMacaroni2\n\nNormal (Training)\n\nFigure 13: More Qualitative 1-shot Results on VisA (ii).\n\n23\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"