"<!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>AnomalyVFM – Transforming Vision Foundation Models into Zero-Shot\nAnomaly Detectors\n\n1\n\nMatic Fučka1,†\nVitjan Zavrtanik1,2,†\nDanijel Skočaj1\nUniversity of Ljubljana, Faculty of Computer and Information Science, Slovenia\n2\n*codeplain\n\narXiv:2601.20524v2 [cs.CV] 9 Apr 2026\n\n{matic.fucka, vitjan.zavrtanik, danijel.skocaj}@fri.uni-lj.si\n\nAbstract\nZero-shot anomaly detection aims to detect and localise\nabnormal regions in the image without access to any indomain training images. While recent approaches leverage vision–language models (VLMs), such as CLIP, to\ntransfer high-level concept knowledge, methods based on\npurely vision foundation models (VFMs), like DINOv2,\nhave lagged behind in performance. We argue that this\ngap stems from two practical issues: (i) limited diversity\nin existing auxiliary anomaly detection datasets and (ii)\noverly shallow VFM adaptation strategies. To address both\nchallenges, we propose AnomalyVFM, a general and effective framework that turns any pretrained VFM into a\nstrong zero-shot anomaly detector. Our approach combines\na robust three-stage synthetic dataset generation scheme\nwith a parameter-efficient adaptation mechanism, utilising\nlow-rank feature adapters and a confidence-weighted pixel\nloss. Together, these components enable modern VFMs\nto substantially outperform current state-of-the-art methods. More specifically, with RADIO as a backbone, AnomalyVFM achieves an average image-level AUROC of 94.1%\nacross 9 diverse datasets, surpassing previous methods by\nsignificant 3.3 percentage points. Project Page\n\n1. Introduction\nVisual anomaly detection aims to identify abnormal regions at test time while training only on anomaly-free images. This represents a foundational task within manufacturing [4, 70, 90], medical imaging [22, 29, 61] and road\nobstacle detection [14, 67, 68]. In industrial inspection, it\nis typically assumed [18, 60] that many normal images are\navailable during training. However, practical deployments\noften require detecting anomalies on arbitrary object classes\nwithout any or very few images. This extremely challenging\nsetting has motivated recent interest in few-shot and zero† Equal contribution.\n\nRADIO\nDINOv3\nDINOv2\n\nFigure 1. Vision–language models excel in zero-shot anomaly detection thanks to their high-level concept knowledge, but purely\nvisual foundation models hold untapped potential. AnomalyVFM\nunlocks this potential by addressing the two practical limitations\nthat hinder VFM underperformance: suboptimal training sets and\nsuboptimal fine-tuning procedures.\n\nshot anomaly detection. Few-shot methods [40, 65, 87] require a handful of normal images of the object class, while\nzero-shot methods [9, 54, 85] must generalise to unseen object classes with no in-domain images at all.\nState-of-the-art zero-shot approaches [9, 54, 85] use vision–language models (VLMs) such as CLIP [55]. They\ntypically use auxiliary anomaly detection datasets to train\nthe model to output text embeddings that encode generic\nnotions of normality and abnormality. Pretraining with\nimage-text supervision introduces valuable high-level concept knowledge, which facilitates generalisation across different object categories. By contrast, pure vision foundation\nmodels (VFMs) such as DINOv2 [50] encode strong visual\nrepresentations but have so far trailed behind VLM-based\nmethods when used as a basis for zero-shot anomaly detec-\n\n\ftion. This gap raises the question: Can VFMs, which are\narguably better suited to the fundamentally visual nature of\nanomaly detection, be transformed into competitive zeroshot detectors?\nWe argue that two practical limitations explain why\nVFMs have underperformed in prior zero-shot work. First,\nexisting auxiliary anomaly datasets [4, 90] lack sufficient\ndiversity and coverage of realistic defects, which are required for training VFMs. This is not a problem for VLMs\ndue to their high-level concept knowledge. When the model\nmust generalise to arbitrary object classes, limited dataset\ndiversity prevents learning broadly applicable cues. Second, most prior VFM adaptations [8, 9, 50] fine-tune only\na small output head with simple pixel-wise losses, leaving\nthe model’s internal visual representations essentially unchanged. This makes it challenging for the model to accurately learn the features necessary to distinguish between\nnormal and abnormal appearances across various objects.\nTo address both points, we propose AnomalyVFM,\na practical framework that transforms any modern VFM\ninto a robust zero-shot anomaly detector. AnomalyVFM\nhas two core components. First, a three-stage synthetic\ndataset generator that uses modern image generation models (e.g., FLUX [37]) to (i) create diverse anomaly-free\nobject images, (ii) synthesise a wide variety of local defects by inpainting at sampled locations, and (iii) filter generated samples using a feature-based verification step to\nensure the presence and relevance of defects. This creates a large and diverse auxiliary training set containing\nmany object/background combinations. Second, we introduce a parameter-efficient adaptation mechanism tailored\nfor VFMs: low-rank feature adapters are injected throughout the (transformer) backbone, coupled with a lightweight\ndecoder and a confidence-weighted pixel loss that downweights ambiguous supervision. The adapters enable the\nVFM to evolve its internal visual representations (not just\nthe final head) with minimal additional parameters. The\ndecoder converts these adapted features into pixel-level\nanomaly scores, and the confidence-weighted loss limits the\nimpact of noisy gradients from imperfect synthetic labels.\nCrucially, AnomalyVFM is model-agnostic and practical:\nit can be applied to any pretrained VFM with a transformer\nbackbone (as shown in Figure 1).\nIn summary, our contributions are:\n• As our main contribution, we introduce AnomalyVFM,\nan effective framework that transforms any pretrained\nVFM into a competitive zero-shot anomaly detector using\na parameter-efficient adaptation scheme and a synthetically generated dataset containing diverse data.\n• As our secondary contribution, we propose a scalable scheme for generating synthetic anomaly detection\ndatasets. We design a three-stage synthesis process that\nleverages modern generative models to produce diverse\n\nobject instances, realistic local defects, and automatic\nfeature-based verification to ensure data quality. This\nyields data that is better suited for finetuning VFMs in\ncomparison to existing datasets.\nWe validate our contributions by evaluating the proposed approach on nine standard industrial anomaly detection benchmarks, surpassing the previous best zero-shot\nanomaly detection methods by a significant 3.3 percentage\npoints (p. p.) in image-level AUROC and 0.9 p. p. in pixellevel AUROC. Additionally, we demonstrate that AnomalyVFM also generalises well on medical anomaly detection benchmarks, even though it was not finetuned for this\npurpose. Finally, we demonstrate the versatility of AnomalyVFM by finetuning it on a few normal samples. With this,\nit is able to match the performance of state-of-the-art models in the few-shot regime.\n\n2. Related Work\nAnomaly detection can be categorized into several\nparadigms. Most commonly they are divided in reconstructive [3, 80], discriminative [18, 45, 79, 81] and embeddingbased methods [13, 60]. Reconstructive approaches [2, 51]\nare trained to reconstruct anomaly-free images. Since the\nlearnt models never see anomalous examples, it is assumed that they will be poorly reconstructed, making them\ndetectable via reconstruction error. Discriminative methods [19, 58] are trained with synthetic anomalies under the\nassumption that this will generalise well to actual anomalies. Embedding-based methods [15, 20, 86] fit a simple\nnormality model, such as a coreset, on top of the features\nextracted from a pretrained encoder.\nTraining from generated data is common in solving or\nevaluating text-based tasks [6, 52, 72, 78]. It has also started\nbeing adapted in computer vision in areas such as video\ngeneration [84] and dynamic scene reconstruction [10], but\nhas not yet seen widespread usage. For training data generation, powerful diffusion models [59] or flow-matching [17]\napproaches are commonly used [32, 36, 43]. In [43], a diffusion model is utilised to generate samples according to\na set of labels for out-of-distribution object detection. The\nmethod focuses on outlier generation across different object\nclasses but overlooks near-in-distribution cases.\nAnomaly synthesis has started to receive more attention in\nthe past few years. The field was started by DRÆM [79],\nwhich synthesised anomalies by cropping and pasting parts\nof images from an external dataset [1]. Some approaches\nlater improved upon this by refining how external images\nare augmented or by moving synthetic anomaly generation\nto the latent space [45, 57, 82]. Some of the later approaches\nimproved upon the realism of the generated samples by using modern generative models, such as generative adversarial networks [16, 83] of diffusion models [25, 77]. However,\nall of these methods typically require substantial amounts\n\n\fof normal and/or abnormal data. Furthermore, these methods can only generate samples similar to the training set,\ni.e., seen anomalies, but fail to generate unseen anomalies.\nThis makes them unsuitable for zero-shot anomaly detection. Unlike previous approaches, our generation approach\ndoes not require any samples, normal or abnormal.\nZero-shot anomaly detection methods detect anomalies at\ninference while never seeing an instance of the observed\nobject during training. Most recent zero-shot anomaly detection methods [9, 11, 27, 85, 88] focus on utilising the\ngeneral object appearance knowledge embedded in visionlanguage [55] models. A minority of methods have utilised\nVision (only) Foundation Models for the task of zero-shot\nanomaly detection. SAA [8] uses the GroundingDINO [44]\nand SAM [35] with handcrafted anomaly prompts to directly segment anomalies. In [38], the method models the\ndistribution of object appearance within the batch to detect\nanomalous samples. However, assumptions about the contents of a specific batch are often violated in real-world scenarios. Some methods [9, 50] have also investigated tuning\nVFMs directly on an auxiliary dataset, but achieved suboptimal results.\nIn this paper, we demonstrate that it is possible to achieve\nstate-of-the-art performance using a pretrained VFM finetuned on a sufficiently diverse dataset.\n\n3. Dataset Generation Scheme\nTo address the issue of data diversity, a collection of realistic images of objects, both with and without anomalies,\nis necessary. Additionally, each anomalous image should\nbe accompanied by a pixel-level annotation. To do this, a\nthree-stage generation scheme is proposed. (i) First, the initial image of the object is generated. (ii) Then, a realistic\ndefect is inpainted on top of the object. (iii) Ultimately, the\nanomaly segmentation map is generated by subtracting the\nfeatures of the normal image from those of the anomalous\nimage, and based on this, poorly generated images are filtered. Each of these steps will be described in detail below.\nSome examples of generated samples are shown in Figure 2.\nAnomaly-free Image Generation To generate the initial\n(anomaly-free) image I (Figure 3, I), an image generation\nmodel G is prompted with an anomaly-free text prompt p:\nI = G(p).\n\n(1)\n\nAs the image generation model G, the flow-matching-based\nFLUX model [37] is used in all experiments unless stated\notherwise. Anomaly-free text prompt p is constructed as\nfollows:\nA close-up photo of [Object] for\nindustrial visual inspection. Top-down\nview. Centered. [Texture] background.\n\nThe [Object] and [Texture] are replaced by an object or background class from a list of 100 objects and\n50 backgrounds generated by an LLM (in our case GPT4o [26]).\nAnomalous Image Generation The anomalous image Ia\nis generated using the anomaly-free image I. To do so, the\nrough anomaly location R (in our case, a rectangle) has to\nbe determined. As the first step, the foreground object mask\nMf g must be extracted. In our case, this is done using a\npretrained salient object segmentation network IS-Net [53]\n(Figure 3, Mf g ). To generate R, the location of the anomaly\n(x, y) is first sampled on the foreground object, i.e., as a random positive pixel in Mf g . The initial location serves as the\ncentre of the anomaly rectangle R (Figure 3, R). The width\nand height are uniformly sampled according to the desired\nanomaly width (wmin , wmax ) and height (hmin , hmax ) parameters:\nw ∼ U(wmin , wmax ), h ∼ U(hmin , hmax ).\n\n(2)\n\nThe anomaly is then generated by prompting the model\nG with an anomalous prompt pa , while restricting the\ngeneration to the region R and maintaining I in other\nregions, i.e. inpainting. To generate an anomalous version\nof the generated image I, the prompt pa additionally\ncontains anomalous descriptions:\nA close-up photo of a [Anomaly]\n[Object] for industrial visual\ninspection. Top-down view. Centered.\n[Texture] background.\nThe [Anomaly] tag is replaced with a description of\nan anomaly, such as cracked, damaged, smudged,\nrotten. A list of [Anomaly] descriptions for each\n[Object] is generated by an LLM (again GPT-4o [26]).\nThis ensures the [Anomaly] is relevant for the object. The\n[Object], [Anomaly] and [Texture] lists are listed\nin the Supplementary material.\nNo inpainting-specific models are used; instead, the\ncharacteristics of the iterative generation process (diffusion or flow matching) are used, using the RePaint approach [46]. The iteratively generated image Ia (Figure 3,\nIa ) contains the object generated in I with an anomaly in region R whose visual appearance follows the prompt in pa .\nHowever, accurate prompt adherence is not a solved problem in image generation [17], so some generated images\nmay not contain anomalies at all. To address this, a filtering process is proposed which removes the vast majority of\nexamples where anomalies are not generated in Ia .\nDataset filtering To filter out examples with poor adherence to pa , a comparison between the anomaly-free I and\nthe corresponding anomalous Ia is performed. First, DINOv2 [50] features are extracted from I and Ia , obtaining\n\n\fFigure 2. Examples of generated anomaly-free images I, anomalous images Ia and corresponding masks M .\n\nFigure 3. Dataset generation pipeline. The image I is generated\nusing a text-conditioned image generation model. Then, the foreground mask Mf g is extracted and an anomalous region R is sampled from it. Then, the anomalous image Ia is generated by inpainting an anomaly inside R. Finally, features are extracted from\nI and Ia , and then compared and thresholded to obtain M .\n\nf and fa , respectively. The extracted features are then compared using cosine distance, obtaining a distance map Md .\nThe maximum value of Md is obtained as the distance score\nD. The mask is binarised according to a threshold T to obtain the final mask M . The generated sample is accepted if\nthe distance D exceeds a set threshold T . The idea behind\nthis filtering process is that if the anomaly generation step\nfails to adhere to pa , an anomaly-free object region will be\ngenerated in region R instead of the anomaly. In this case,\nthe inpainted region will be closer to the anomaly-free object appearance distribution, so the distance between f and\nfa should be smaller, enabling the detection of failed examples.\nGenerated triplets containing an anomaly-free image I,\nan anomalous example Ia , and the corresponding anomaly\nmask M can be seen in Figure 2.\n\nweighted loss to mitigate potential ambiguity caused by inaccurate labels. The adaptation network and the confidenceweighted loss will be described in detail below. The architecture of AnomalyVFM is shown in Figure 4.\nFeature Adaptation Module and Decoder The input image I is input into the pretrained backbone F . Each transformer block b of F is integrated with a Feature Adaptation Module. More specifically, we integrate a LoRA [24]\nblock into the attention mechanism [66] by injecting it into\nthe query, value, and output projection layers, as shown\nin Figure 4. If not stated otherwise, the rank of LoRA is\nequal to 64. The extracted features f from the final block\nof the backbone F are reshaped to fr . Then, fr is input\ninto a small convolutional decoder that upsamples the features. The decoder is composed of two sequential upsampling blocks, which are constructed as a convolutional layer,\na GroupNorm layer [75], a ReLU activation function, and a\nbilinear upsampling operation. A final Convolutional Layer\nis used to output both the output anomaly segmentation map\nMo and the confidence map c. The [CLS] tokens of the\nbackbone are input into a simple linear layer, which predicts an image-level anomaly score Ao .\nConfidence-weighted loss The Feature Adaptation Modules, Anomaly Decoder and Anomaly Score Predictor are\ntrained jointly. For the image-level loss Limg , Focal\nLoss [42] is used, while the base loss for segmentation\nLbase is a combination of Focal loss and L1 loss, following recent anomaly detection methods [76]:\nLbase = L1 (Mo , MGT ) + β ∗ Lf ocal (Mo , MGT ),\n\n4. AnomalyVFM\nRecent attempts [9] at using VFMs for zero-shot anomaly\ndetection have only appended a simple MLP on top of\nthe method to generate an anomaly mask, disregarding the\nadaptation of internal values, the design of the decoder and\nthe losses used to train them. To improve upon this, an effective and parameter-efficient finetuning technique is proposed. First, we improve upon the decoder and inject feature adaptation modules within the VFM to enable adaptation of internal layers. In addition, we propose a confidence-\n\n(3)\n\nwhere β is equal to 5. Additionally, to better handle the\nnoisy segmentation masks that occur during data generation\nand any ambiguities in the ground truth masks, we weight\nthe loss with the confidence output from the anomaly decoder, similar to 3D reconstruction methods [34, 71]. More\nspecifically, the segmentation loss is defined as follows:\nLseg = Lbase (Mo , MGT ) ∗ C − αlog(C),\n\n(4)\n\nwhere C is defined as C = 1 + exp(c), where c is the confidence map predicted by the decoder, and α is equal to 0.1.\n\n\fAnomaly Score\nPredictor\n\n0.95\n\nAnomaly\nDecoder\n\n+\n\nReshape\n\nLinear\n\nNorm\n\nLoRA\n\n+\n\nLinear\n\nScaled Dot-Product Attention\n\nV\n\nLinear\n\nK\n\nLoRA\nLinear\n\nNorm\n\nPatch Embed\n\nQ\n\nLoRA\nLinear\n\nPretrained (Transformer) VFM\n\nFigure 4. Architecture of AnomalyVFM. All additions to the base VFM are colored in blue.\nTable 1. Generalisation across different VFMs. Improvement over\nthe baseline is shown in green. SD stands for Synthetic dataset,\nand FA stands for Feature Adaptors. The average results across 9\nindustrial datasets are reported.\nModel\n\nAdditions\nSD\n\nDINOv2 [50]\n\nDINOv3 [62]\n\nRADIO [56]\n\nF1 -Max\n\nAUROC\n\nF1 -Max\n\n✓\n✓\n\n83.0\n86.4 ↑ 3.4\n89.3 ↑ 6.3\n90.2 ↑ 7.2\n\n78.9\n79.3 ↑ 0.4\n82.7 ↑ 3.7\n83.4 ↑ 4.5\n\n80.4\n93.2 ↑ 12.8\n82.5 ↑ 2.1\n93.4 ↑ 13.0\n\n23.9\n41.2 ↑ 17.3\n27.1 ↑ 3.2\n41.7 ↑ 17.8\n\n✓\n✓\n\n85.3\n89.0 ↑ 3.7\n90.5 ↑ 5.2\n91.5 ↑ 6.2\n\n80.1\n82.0 ↑ 1.9\n83.9 ↑ 3.8\n84.7 ↑ 4.6\n\n88.0\n95.0 ↑ 7.0\n90.2 ↑ 2.2\n95.3 ↑ 7.2\n\n32.5\n44.9 ↑ 12.4\n39.3 ↑ 7.3\n44.6 ↑ 12.1\n\n✓\n✓\n\n89.1\n92.1 ↑ 3.0\n93.0 ↑ 3.9\n94.1 ↑ 5.0\n\n83.9\n87.2 ↑ 3.3\n88.9 ↑ 5.0\n87.6 ↑ 3.7\n\n84.9\n95.9 ↑ 11.0\n95.2 ↑ 10.3\n96.9 ↑ 12.0\n\n30.8\n43.2 ↑ 12.6\n42.8 ↑ 12.0\n44.3 ↑ 13.5\n\n✓\n✓\n✓\n✓\n\nPixel-level\n\nAUROC\n\n✓\n✓\n\nImage-level\n\nFA\n\nThe full loss is the sum L = Lseg + Limg .\nAt inference, the image I is passed through the model,\nwhich directly returns both the output anomaly segmentation mask Mo and the image-level anomaly score Ao .\n\n5. Experiments\n5.1. Datasets\nWe evaluate AnomalyVFM on 9 industrial and 9 medical anomaly detection datasets as standard in other zeroshot methods [9, 15]. For industrial anomaly detection,\nMVTec AD [4], VisA [90], BTAD [49], MPDD [28], RealIAD [70], KSDD [63], KSDD2 [7], DAGM [73], and DTDSynthetic [1] were used, and for medical anomaly detection, HeadCT [61], BrainMRI [31], BR35H [22], ISIC [12],\nClinicDB [5], ColonDB [64], Kvasir [29], Endo [23] and\nTN3K [21] were used. The evaluation metrics follow AdaCLIP [9], where the AUROC and F1-max are used for\nimage-level anomaly detection, and the pixel-wise AUROC\nand the pixel-wise F1-max are used for anomaly localisation. We compare AnomalyVFM to recent state-of-the-art\n\napproaches that are trained on auxiliary data. More specifically, when evaluated on the MVTec AD [4] dataset, the recent zero-shot AD methods are trained on the VisA [90] test\nset and are trained on the MVTec AD test set when evaluated on other datasets. In contrast, AnomalyVFM is trained\nsolely on automatically generated data.\n\n5.2. Implementation Details\nIn the data generation pipeline, the FLUX [37] conditional\nimage generation model is used. The (wmin , wmax ) and\n(hmin , hmax ) are set to (50, 350) in all experiments, when\ngenerating images of dimension 1024 × 1024. The filtering\nthreshold, T , is set to 0.3 in all experiments. A synthetic\ndataset of 10,000 images was generated for all experiments,\nunless stated otherwise. More details about the generated\ndataset are provided in the Supplementary Material.\nZero-shot anomaly detection training is performed on\ngenerated data. AnomalyVFM is trained for 500 iterations\nwith a batch size of 32 using the AdamW optimiser and a\nlearning rate of 10−4 . The RADIOv2.5 [56] ViT-L with a\npatch-size of 16 is used as the backbone for most experiments. Since RADIO has been trained on multiple resolutions, the input images are resized to 768 × 768 for training\nand evaluation. The confidence parameter α in Equation 4\nis set to 0.1 in all experiments.\n\n5.3. Generalisation of the proposed framework\nFirst, we evaluate our contribution across a set of diverse\nVFMs to verify our claims. More specifically, we use DINOv2 [50], DINOv3 [62] and RADIO [56]. We evaluate\neach VFM in 4 different settings to verify our contribution.\nWe modulate two settings: the training dataset and the adaptation strategy. For the dataset, we either follow the standard\npractice [9, 54, 85] of training on the test set of MVTec AD\n(the model is trained on the test set of VisA when evaluated\non MVTec AD) or the dataset generated with the proposed\nsynthetic generation procedure. For the adaptation strategy,\n\n\fTable 2. Comparisons of zero-shot anomaly detection methods on industrial inspection datasets. The best performance is colored in red\nand the second best in blue.\nMetric\n\nDataset\n\nSAA [8]\nToC’25\n\nWinCLIP [27] AnomalyCLIP [85] AdaCLIP [9] AACLIP [48] Bayes-PFL [54] FAPrompt [89] AnomalyVFM\nCVPR’23\nICLR’24\nECCV’24\nCVPR’25\nCVPR’25\nICCV’25\n\nMVTec AD (63.5, 87.4)\nVisA\n(67.1, 75.9)\nBTAD\n(59.0, 89.7)\nMPDD (42.7, 73.9)\nImage-level\nRealIAD (51.4, 64.6)\n(AUROC, max-F1)\nKSDD\n(68.6, 37.6)\nKSDD2 (91.6, 67.0)\nDAGM (87.1, 88.8)\nDTD\n(94.4, 93.5)\n\n(91.8, 92.9)\n(78.1, 80.7)\n(68.2, 67.8)\n(61.4, 77.5)\n(74.7, 69.8)\n(93.3, 79.0)\n(94.2, 71.5)\n(91.8, 87.6)\n(95.1, 94.1)\n\n(91.6, 92.7)\n(82.0, 80.4)\n(88.2, 83.8)\n(77.5, 80.4)\n(78.7, 80.0)\n(84.5, 71.1)\n(94.1, 80.0)\n(97.7, 90.1)\n(93.9, 93.6)\n\n(89.2, 90.6)\n(85.8, 83.1)\n(88.6, 88.2)\n(76.0, 82.5)\n(79.2, 73.5)\n(97.1, 90.7)\n(95.9, 86.7)\n(99.1, 97.5)\n(95.5, 94.7)\n\n(90.5, 90.4)\n(84.6, 78.8)\n(94.8, 93.7)\n(75.1, 79.8)\n(81.3, 76.4)\n(69.3, 57.1)\n(95.9, 84.4)\n(93.2, 79.4)\n(90.4, 92.8)\n\n(92.3, 93.1)\n(87.0, 84.1)\n(93.2, 91.9)\n(81.2, 83.5)\n(85.2, 78.7)\n(88.2, 56.0)\n(97.3, 87.6)\n(97.7, 95.7)\n(95.1, 95.1)\n\n(91.1, 92.2)\n(82.8, 81.3)\n(90.7, 88.1)\n(76.6, 80.4)\n(81.6, 75.2)\n(81.3, 71.1)\n(95.6, 84.8)\n(97.3, 89.3)\n(95.9, 94.7)\n\n(94.9, 94.1)\n(93.6, 90.1)\n(96.0, 91.0)\n(85.5, 87.8)\n(88.0, 81.6)\n(92.5, 69.7)\n(97.1, 79.2)\n(99.6, 95.8)\n(99.4, 99.0)\n\n(69.5, 75.4)\n\n(83.2, 80.1)\n\n(87.6, 83.6)\n\n(89.6, 87.5)\n\n(86.1, 81.4)\n\n(90.8, 85.1)\n\n(88.1, 84.1)\n\n(94.1, 87.6)\n\nMVTec AD (75.5, 38.1)\nVisA\n(76.5, 31.6)\nBTAD\n(65.8, 14.8)\nMPDD (81.7, 18.9)\nPixel-level\nRealIAD (73.5, 4.5)\n(AUROC, max-F1)\nKSDD\n(78.8, 6.6)\nKSDD2 (79.9, 63.4)\nDAGM (91.5, 57.5)\nDTD\n(97.9, 71.6)\n\n(88.7, 43.4)\n(95.5, 37.7)\n(92.1, 51.7)\n(96.1, 34.9)\n(87.2, 10.8)\n(97.7, 54.5)\n(94.4, 23.9)\n(91.5, 57.5)\n(97.9, 71.6)\n\n(91.1, 39.1)\n(95.5, 28.3)\n(94.2, 49.7)\n(96.5, 34.2)\n(96.3, 39.0)\n(90.6, 42.5)\n(98.5, 59.8)\n(95.6, 58.9)\n(97.9, 62.2)\n\n(88.7, 43.4)\n(95.5, 37.7)\n(92.1, 51.7)\n(96.1, 32.8)\n(97.2, 43.0)\n(97.7, 54.5)\n(98.5, 67.0)\n(91.5, 57.5)\n(97.9, 71.6)\n\n(91.4, 46.4)\n(94.8, 30.2)\n(97.3, 55.1)\n(96.7, 30.0)\n(96.2, 40.2)\n(87.1, 28.0)\n(99.5, 63.4)\n(96.2, 53.3)\n(95.8, 59.6)\n\n(91.8, 49.0)\n(95.6, 34.3)\n(93.9, 52.0)\n(97.8, 35.0)\n(97.2, 41.2)\n(96.5, 6.6)\n(97.0, 62.0)\n(95.9, 49.8)\n(98.4, 65.2)\n\n(90.8, 39.3)\n(95.6, 27.6)\n(95.8, 52.6)\n(95.5, 31.9)\n(96.2, 38.3)\n(93.1, 47.2)\n(99.1, 60.4)\n(98.6, 60.2)\n(98.1, 61.9)\n\n(92.7, 45.2)\n(96.2, 31.2)\n(92.3, 49.7)\n(97.0, 38.1)\n(96.4, 40.4)\n(99.0, 10.1)\n(99.3, 55.9)\n(99.4, 61.3)\n(99.4, 66.5)\n\n(80.1, 34.1)\n\n(93.5, 42.9)\n\n(95.1, 46.0)\n\n(95.0, 51.0)\n\n(95.0, 45.1)\n\n(96.0, 43.9)\n\n(95.9, 46.6)\n\n(96.9, 44.3)\n\nAverage\n\nAverage\n\nTable 3. Comparisons of zero-shot anomaly detection methods on medical datasets. † - AdaCLIP is also trained with auxiliary medical\ndatasets. Other methods are not.\nMetric\n\nDataset\n\nSAA [8]\nToC’25\n\nWinCLIP [27] AnomalyCLIP [85] AdaCLIP† [9] AACLIP [48] Bayes-PFL [54] FAPrompt [89] AnomalyVFM\nCVPR’23\nICLR’24\nECCV’24\nCVPR’25\nCVPR’25\nICCV’25\n\nHeadCT (46.8, 68.0)\nImage-level\nBrainMRI (34.4, 76.7)\n(AUROC, max-F1) BR35H (33.2, 67.3)\n\n(84.1, 79.8)\n(89.9, 86.9)\n(81.6, 74.4)\n\n(93.0, 88.4)\n(90.0, 86.5)\n(94.2, 86.8)\n\n(91.4, 85.2)\n(94.8, 91.2)\n(97.7, 92.4)\n\n(96.9, 93.1)\n(80.2, 91.5)\n(95.4, 90.2)\n\n(92.6, 86.3)\n(95.2, 94.4)\n(97.0, 93.2)\n\n(93.0, 88.2)\n(95.5, 93.2)\n(96.6, 90.3)\n\n(94.8, 90.5)\n(92.9, 92.5)\n(94.4, 90.2)\n\nAverage\n\n(38.1, 70.7)\n\n(85.2, 80.4)\n\n(92.4, 87.2)\n\n(94.6, 89.6)\n\n(90.8, 91.6)\n\n(94.9, 91.3)\n\n(95.0, 90.6)\n\n(94.0, 91.1)\n\nISIC\nClinicDB\nColonDB\nPixel-level\nKvasir\n(AUROC, max-F1)\nEndo\nTN3K\n\n(83.8, 74.2)\n(66.2, 29.1)\n(71.8, 31.5)\n(86.2, 65.9)\n(79.4, 51.6)\n(66.8, 32.6)\n\n(83.3, 64.1)\n(74.3, 30.7)\n(61.2, 19.6)\n(38.6, 27.0)\n(43.7, 25.3)\n(67.2, 30.0)\n\n(89.4, 71.6)\n(82.9, 42.4)\n(81.9, 37.5)\n(79.0, 46.2)\n(84.2, 50.3)\n(81.4, 47.8)\n\n(89.3, 71.4)\n(84.4, 58.2)\n(90.4, 58.2)\n(95.0, 77.1)\n(96.6, 80.1)\n(77.2, 41.9)\n\n(94.6, 80.4)\n(89.6, 54.1)\n(84.1, 38.1)\n(87.3, 57.3)\n(90.2, 59.7)\n(80.5, 43.0)\n\n(92.3, 76.8)\n(89.6, 51.7)\n(82.1, 39.2)\n(85.3, 54.8)\n(89.2, 57.9)\n(85.4, 42.4)\n\n(90.1, 72.0)\n(83.2, 43.4)\n(84.1, 38.8)\n(81.6, 48.8)\n(86.4, 52.7)\n(84.4, 49.2)\n\n(90.8, 74.4)\n(92.0, 57.6)\n(85.6, 42.8)\n(90.6, 63.2)\n(92.2, 64.4)\n(89.0, 55.6)\n\nAverage\n\n(75.7, 47.5)\n\n(61.4, 32.8)\n\n(83.1, 49.3)\n\n(88.8, 64.5)\n\n(87.7, 55.4)\n\n(87.3, 53.8)\n\n(85.0, 50.8)\n\n(90.0, 59.7)\n\nwe either train a simple decoder and leave the internal representations unchanged or we employ the proposed adaptation\nstrategy. To demonstrate generalisation, we evaluated our\nmodel on nine industrial datasets described in Section 5.1.\nThe results can be seen in Table 1. All Chosen VFM achieve\na significant improvement in performance in both detection\nand localisation, showcasing the generality and the strength\nof the contribution. On average, the image-level AUROC\nis improved by 6.1 p. p. and the pixel-level AUROC is improved by 10.7 p. p. This is also visually represented in\nFigure 1, where it can be seen that all of the VFMs match\nthe performance of current methods.\n\n5.4. Comparison to zero-shot methods\nQuantitative results In Table 2, the comparison of AnomalyVFM to the state-of-the-art zero-shot anomaly detection methods on industrial datasets is shown. Anoma-\n\nlyVFM outperforms the state-of-the-art considerably in\nboth anomaly detection and anomaly localisation. More\nspecifically, it outperforms the next best method (BayesPFL) in terms of image-level AUROC by a substantial 3.3\npercentage points (p. p.). AnomalyVFM also slightly improves the results in terms of image-level F1-Max. Additionally, AnomalyVFM significantly improves results on\nthe widely used MVTec AD, VisA, and Real IAD, achieving results close to those of full-shot methods, reiterating\nthe contribution of our model.\nIn terms of anomaly localisation, AnomalyVFM also improves upon previous methods in terms of pixel-level AUROC and achieves competitive results in terms of pixellevel F1-Max. More specifically, AnomalyVFM improves\nprevious methods by 0.9 p. p. in terms of pixel-level AUROC. In terms of pixel-level F1-Max, it trails behind AdaCLIP [9], which achieves lower scores in terms of pixel-\n\n\f1\n\n2\n\n3\n\n4\n\n5\n\n6\n\n7\n\n8\n\n9\n\n10\n\n11\n\n12\n\nFigure 5. Qualitative comparison of the anomaly segmentation masks produced by AnomalyVFM and two other best-performing methods.\nIn the first row, the image is shown. In the next three rows, the anomaly segmentations produced by Bayes-PFL [54], AdaCLIP [9] and\nAnomalyVFM are depicted, and in the last row, the ground truth mask is depicted.\n\nlevel AUROC.\nThe results for zero-shot anomaly detection and localisation in the medical domain are presented in Table 3.\nAnomalyVFM achieves competitive results in terms of detection and improves previous methods in terms of localisation scores. In terms of pixel-level AUROC, AnomalyVFM\nimproves previous methods by 1.2 p. p. More importantly,\nthe results demonstrate the generalisation of AnomalyVFM\nto the medical domain, despite not being finetuned on any\nmedical data.\nQualitative results Qualitative examples can be seen in\nFigure 5. AnomalyVFM produces sharper anomaly masks\nin comparison to Bayes-PFL and is able to localise anomalies even in cases where AdaCLIP fails. Additionally, it is\nable to detect both small defects (Columns 4 and 5) and\nlarger defects (Columns 2, 3 and 10). Additionally, it successfully detects medical defects (Columns 9 and 12).\n\n5.5. Comparison to few-shot methods\nTo verify the effectiveness of AnomalyVFM as a backbone,\nwe have fine-tuned the zero-shot model for an additional\n50 iterations using a few normal samples. We have chosen\nMVTec AD [4] and VisA [90] as our evaluation datasets due\nto their widespread use. The results can be seen in Table 4.\nAnomalyVFM achieves the highest image-level AUROC in\nall settings on MVTec AD and in the 1-shot setting on VisA.\nRemarkably, despite being designed for the zero-shot\nregime, AnomalyVFM matches or even surpasses the performance of recent few-shot methods such as INP-Former\n[47], without any architecture changes and with minimal\nfine-tuning. These results highlight the robustness and\n\nTable 4. Comparison to few-shot methods on MVTec AD and\nVisA benchmarks. Results are in image-level AUROC. The best\nresults are marked in bold.\nMethod\n\nMVTec AD\n\nVisA\n\n1-shot 2-shot 4-shot 1-shot 2-shot 4-shot\nPatchCore [60]CVPR’22\nWinCLIP+ [27]CVPR’23\nPromptAD [39]CVPR’24\nINP-Former [47]CVPR’25\n\n83.4\n93.1\n94.6\n96.1\n\n86.3\n94.4\n95.7\n97.0\n\n88.8\n95.2\n96.6\n97.6\n\n79.9\n83.8\n86.9\n91.4\n\n81.6\n84.6\n88.3\n94.6\n\n85.3\n87.3\n89.1\n96.4\n\nAnomalyVFM\n\n97.2\n\n97.9\n\n98.2\n\n93.8\n\n94.2\n\n94.5\n\ntransferability of AnomalyVFM, underscoring its potential\nas a strong and versatile backbone for future anomaly detection research.\n\n6. Ablation study\nAblation experiments validating the individual contributions of AnomalyVFM are performed on 9 industrial\ndatasets presented in the Section 5.1. Results are shown in\nTable 5. Additional experiments are presented in the Supplementary Material.\nImage Generation Model FLUX [37] is used as the default image generation model in our experiments. To verify\nthe importance of this choice, we replaced it with two recent generative models: QWEN-Image [74] and WAN [69].\nThis leads to a very slight decrease in performance: 0.1 p.\np. and 0.4 p. p. in image-level AUROC, respectively and 0.5\np. p. and 2.1 p. p. in pixel-level AUROC, respectively. This\nshows that our generation pipeline is robust to this choice.\nDataset Filtering To measure the importance of verifying\n\n\fTable 5. Ablation of the anomaly detection method components.\nGroup\n\nImage-level\n\nCondition\n\nPixel-level\n\nAUROC\n\nF1 -Max\n\nAUROC\n\nF1 -Max\n\nImage Generation\n\nFLUX [37] → QWEN-Image [74]\nFLUX [37] → WAN [69]\nNo Filtering\nNo Foreground Selection\n\n-0.1\n-0.4\n-3.8\n-1.4\n\n+0.1\n-0.8\n-2.7\n-0.8\n\n-0.5\n-2.1\n-14.6\n-5.8\n\n-0.2\n-1.0\n-18.7\n-12.3\n\nModule Ablation\n\nNo Confidence Loss\nLoRA [24] → AdaLN [41]\nLoRA [24] → VPT [30]\n\n-0.6\n-0.7\n-1.0\n\n-0.1\n-1.0\n+1.2\n\n-2.0\n-2.9\n-0.5\n\n-6.3\n-1.9\n+4.0\n\n94.1\n\n87.6\n\n96.9\n\n44.3\n\nAnomalyVFM\n\nthat the generated images actually do contain anomalies,\nwe have omitted the dataset filtering step. This leads to a\ndecrease in image-level AUROC for a significant 3.8 p. p.\nand a decrease in pixel-level AUROC for 14.6 p. p. This\nshowcases both the problems with current image generation\nmodels and the necessity of having clean data.\nAnomaly Location Importance In our pipeline, the\nanomaly region is selected by sampling a rectangle R on\nthe foreground Mf g produced by an external model. To\nverify the importance of this step, we set Mf g to be equal\nto the whole image. This means that sometimes the generated images contain a defect in the background, so the\nmodel is trained to focus not only on the object but also\non the background. This leads to a decrease of 1.4 p. p. in\nimage-level AUROC and 5.8 p. p. in pixel-level AUROC.\nThis highlights the importance of selecting the inpainting\nlocation intelligently.\nConfidence Loss To show the importance of the introduced\nconfidence loss, we have retrained the model without it.\nThis has led to a slight decrease in both image-level and\npixel-level AUROC (0.6 p. p. and 2.0 p. p. respectively).\nThis reiterates the importance of this loss for optimal performance.\nAdapter Architecture To even further show the generality of our framework, LoRA [24] adapters were exchanged\nwith two other Parameter Efficient Techniques, AdaLN [41]\nand VPT [30]. This has led to a decrease in performance of\n0.7 p. p. and 1.0 p. p. in image-level AUROC and 2.9 p.\np. and 0.5 p. p. in pixel-level AUROC, respectively. All of\nthese results are still significantly above SOTA and show\nthe robustness of our framework to this choice. Additionally, it shows possible extensions to newer VFMs, which\nmight have different architectures.\nInference Speed and Computational Complexity The inference speed can be seen in Table 6. The protocol from\nEfficientAD [2] was used to calculate them. AnomalyVFM\nis significantly faster than its main competitors. AnomalyVFM requires approximately 2 hours to train on a single\nA100 GPU and has 345.8 million parameters. Out of these\n35.4 million are trainable.\nLimitations At present, the main bottleneck lies in the image generation stage, which takes approximately one day on\n\nTable 6. Results for average inference time of a single sample with\nNVIDIA A100 GPU. Inference times are reported in milliseconds.\nMethod\n\nBayes-PFL [54]\n\nAdaCLIP [9]\n\nAnomalyVFM\n\n208.5\n\n82.4\n\n20.5\n\nInference [ms]\n\nan A100 GPU, whereas model training requires only about\ntwo hours. Additional discussion of these limitations and\nrelated analyses can be found in the Supplementary.\n\n7. Conclusion\nWe present AnomalyVFM, a practical and model-agnostic\nframework that transforms any pretrained Vision Foundation Model into a strong zero-shot anomaly detector. Unlike prior approaches that rely on high-level concept knowledge from vision–language models, AnomalyVFM leverages the rich visual representations of VFMs and enhances\nthem through two key innovations. First, we introduced\na three-stage synthetic dataset generator that produces diverse and realistic training samples, capturing a broad range\nof object categories and defect types. Second, we designed a parameter-efficient adaptation strategy that inserts\nlow-rank adapters throughout the backbone and employs a\nconfidence-weighted loss to refine the model’s representations with minimal parameters and robust supervision.\nTogether, these components allow VFMs to generalise to\nunseen object classes and outperform existing VLM-based\nmethods in the zero-shot regime. More specifically, we\nachieve an average image-level AUROC of 94.1% across 9\ndiverse industrial datasets, improving upon previous methods by a significant 3.3. percentage points. Additionally, we\ndemonstrate the effectiveness of AnomalyVFM as a potent\nbackbone by finetuning it on a few normal samples without\nany bells and whistles. With this, AnomalyVFM achieves a\nperformance comparable to SOTA in the few-shot regime.\nLooking ahead, further efforts to improve defect realism\nand resulting labels are a good avenue for future research.\nAdditionally, integrating depth data via monodepth foundational models, such as Marigold [33], could be used to enable zero-shot RGBD anomaly detection. Most importantly,\nthe results also indicate that AnomalyVFM could be used as\na backbone for future few-shot and full-shot models.\n\n\fAcknowledgements This work was in part supported by the ARIS research projects MUXAD\n(J2-60055)\nand\nAI4Science\n(GC-0001),\nresearch programme P2-0214 and the supercomputing network SLING (ARNES, EuroHPC Vega).\n\nReferences\n[1] Toshimichi Aota, Lloyd Teh Tzer Tong, and Takayuki\nOkatani. Zero-shot versus many-shot: Unsupervised texture\nanomaly detection. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pages\n5564–5572, 2023. 2, 5\n[2] Kilian Batzner, Lars Heckler, and Rebecca König. EfficientAD: Accurate Visual Anomaly Detection at MillisecondLevel Latencies. In Proceedings of the IEEE/CVF Winter\nConference on Applications of Computer Vision, pages 128–\n138, 2024. 2, 8\n[3] Paul Bergmann, Sindy Löwe, Michael Fauser, David Sattlegger, and Carsten Steger. Improving Unsupervised defect segmentation by applying structural similarity to autoencoders.\nArXiv, abs/1807.02011, 2018. 2\n[4] Paul Bergmann, Michael Fauser, David Sattlegger, and\nCarsten Steger. MVTec AD–A Comprehensive Real-World\nDataset for Unsupervised Anomaly Detection. In Proceedings of the IEEE/CVF conference on computer vision and\npattern recognition, pages 9592–9600, 2019. 1, 2, 5, 7\n[5] Jorge Bernal, F Javier Sánchez, Gloria FernándezEsparrach, Debora Gil, Cristina Rodrı́guez, and Fernando\nVilariño. Wm-dova maps for accurate polyp highlighting\nin colonoscopy: Validation vs. saliency maps from physicians. Computerized medical imaging and graphics, 43:99–\n111, 2015. 5\n[6] Vadim Borisov, Kathrin Seßler, Tobias Leemann, Martin Pawelczyk, and Gjergji Kasneci.\nLanguage models are realistic tabular data generators. arXiv preprint\narXiv:2210.06280, 2022. 2\n[7] Jakob Božič, Domen Tabernik, and Danijel Skočaj. Mixed\nsupervision for surface-defect detection: From weakly to\nfully supervised learning. Computers in Industry, 129:\n103459, 2021. 5\n[8] Yunkang Cao, Xiaohao Xu, Chen Sun, Yuqi Cheng, Zongwei\nDu, Liang Gao, and Weiming Shen. Segment Any Anomaly\nwithout Training via Hybrid Prompt Regularization. arXiv\npreprint arXiv:2305.10724, 2023. 2, 3, 6\n[9] Yunkang Cao, Jiangning Zhang, Luca Frittoli, Yuqi Cheng,\nWeiming Shen, and Giacomo Boracchi. AdaCLIP: Adapting\nCLIP with hybrid learnable prompts for zero-shot anomaly\ndetection. In European Conference on Computer Vision,\npages 55–72. Springer, 2024. 1, 2, 3, 4, 5, 6, 7, 8\n[10] Weirong Chen, Ganlin Zhang, Felix Wimbauer, Rui Wang,\nNikita Araslanov, Andrea Vedaldi, and Daniel Cremers.\nBack on track: Bundle adjustment for dynamic scene reconstruction. In Proceedings of the IEEE/CVF International\nConference on Computer Vision (ICCV), pages 4951–4960,\n2025. 2\n\n[11] Xuhai Chen, Jiangning Zhang, Guanzhong Tian, Haoyang\nHe, Wuhao Zhang, Yabiao Wang, Chengjie Wang, and Yong\nLiu. Clip-AD: A Language-Guided Staged Dual-Path Model\nfor Zero-shot Anomaly Detection. In International Joint\nConference on Artificial Intelligence, pages 17–33. Springer,\n2024. 3\n[12] Noel CF Codella, David Gutman, M Emre Celebi, Brian\nHelba, Michael A Marchetti, Stephen W Dusza, Aadi\nKalloo, Konstantinos Liopyris, Nabin Mishra, Harald Kittler, et al. Skin lesion analysis toward melanoma detection:\nA challenge at the 2017 international symposium on biomedical imaging (isbi), hosted by the international skin imaging\ncollaboration (isic). In 2018 IEEE 15th international symposium on biomedical imaging (ISBI 2018), pages 168–172.\nIEEE, 2018. 5\n[13] Thomas Defard, Aleksandr Setkov, Angelique Loesch, and\nRomaric Audigier. Padim: a patch distribution modeling\nframework for anomaly detection and localization. In International conference on pattern recognition, pages 475–489.\nSpringer, 2021. 2\n[14] Anja Delić, Matej Grcic, and Siniša Šegvić. Outlier detection by ensembling uncertainty with negative objectness. In\n35th British Machine Vision Conference 2024, BMVC 2024,\nGlasgow, UK, November 25-28, 2024. BMVA, 2024. 1\n[15] Hanqiu Deng and Xingyu Li. Anomaly Detection via Reverse Distillation from One-Class Embedding. In Proceedings of the IEEE/CVF conference on computer vision and\npattern recognition, pages 9737–9746, 2022. 2, 5\n[16] Yuxuan Duan, Yan Hong, Li Niu, and Liqing Zhang. Fewshot defect image generation via defect-aware feature manipulation. Proceedings of the AAAI Conference on Artificial\nIntelligence, 37(1):571–578, 2023. 2\n[17] Patrick Esser, Sumith Kulal, Andreas Blattmann, Rahim\nEntezari, Jonas Müller, Harry Saini, Yam Levi, Dominik\nLorenz, Axel Sauer, Frederic Boesel, et al. Scaling Rectified\nFlow Transformers for High-Resolution Image Synthesis. In\nForty-first International Conference on Machine Learning,\n2024. 2, 3\n[18] Matic Fučka, Vitjan Zavrtanik, and Danijel Skočaj.\nTransFusion–a Transparency-based Diffusion Model for\nAnomaly Detection. In European conference on computer\nvision, pages 91–108. Springer, 2025. 1, 2\n[19] Matic Fučka, Vitjan Zavrtanik, and Danijel Skočaj. SALAD\n– Semantics-Aware Logical Anomaly Detection. In Proceedings of the IEEE/CVF International Conference on\nComputer Vision (ICCV), pages 21843–21852, 2025. 2\n[20] Matic Fučka, Vitjan Zavrtanik, and Danijel Skočaj.\nObjectcore-efficient few-shot logical anomaly detection using object representations. In Proceedings of the IEEE/CVF\nWinter Conference on Applications of Computer Vision,\npages 3857–3867, 2026. 2\n[21] Haifan Gong, Guanqi Chen, Ranran Wang, Xiang Xie,\nMingzhi Mao, Yizhou Yu, Fei Chen, and Guanbin Li. Multitask learning for thyroid nodule segmentation with thyroid\nregion prior. In 2021 IEEE 18th international symposium on\nbiomedical imaging (ISBI), pages 257–261. IEEE, 2021. 5\n[22] A. Hamada. Br35h: Brain tumor detection. https:\n//www.kaggle.com/datasets/ahmedhamada0/\n\n\fbraintumor - detection, 2020. Online; accessed\n2020. 1, 5\n[23] Steven A Hicks, Debesh Jha, Vajira Thambawita, Pål\nHalvorsen, Hugo L Hammer, and Michael A Riegler. The\nendotect 2020 challenge: evaluation and comparison of classification, segmentation and inference time for endoscopy.\nIn International Conference on Pattern Recognition, pages\n263–274. Springer, 2021. 5\n[24] Edward J Hu, yelong shen, Phillip Wallis, Zeyuan AllenZhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen.\nLoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations, 2022.\n4, 8\n[25] Teng Hu, Jiangning Zhang, Ran Yi, Yuzhen Du, Xu Chen,\nLiang Liu, Yabiao Wang, and Chengjie Wang. Anomalydiffusion: Few-shot anomaly image generation with diffusion\nmodel. Proceedings of the AAAI Conference on Artificial\nIntelligence, 38(8):8526–8534, 2024. 2\n[26] Aaron Hurst, Adam Lerer, Adam P Goucher, Adam Perelman, Aditya Ramesh, Aidan Clark, AJ Ostrow, Akila Welihinda, Alan Hayes, Alec Radford, et al. GPT-4o system card.\narXiv preprint arXiv:2410.21276, 2024. 3\n[27] Jongheon Jeong, Yang Zou, Taewan Kim, Dongqing Zhang,\nAvinash Ravichandran, and Onkar Dabeer. WinCLIP: Zero/Few-Shot Anomaly Classification and Segmentation. In\nProceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 19606–19616, 2023. 3,\n6, 7\n[28] Stepan Jezek, Martin Jonak, Radim Burget, Pavel Dvorak,\nand Milos Skotak. Deep learning-based defect detection of\nmetal parts: evaluating current methods in complex conditions. In 2021 13th International Congress on Ultra Modern\nTelecommunications and Control Systems and Workshops\n(ICUMT), pages 66–71, 2021. 5\n[29] Debesh Jha, Pia H Smedsrud, Michael A Riegler, Pål\nHalvorsen, Thomas De Lange, Dag Johansen, and Håvard D\nJohansen. Kvasir-seg: A segmented polyp dataset. In International conference on multimedia modeling, pages 451–\n462. Springer, 2019. 1, 5\n[30] Menglin Jia, Luming Tang, Bor-Chun Chen, Claire Cardie,\nSerge Belongie, Bharath Hariharan, and Ser-Nam Lim. Visual prompt tuning. In European Conference on Computer\nVision, pages 709–727. Springer, 2022. 8\n[31] Pranita Balaji Kanade and PP Gumaste. Brain tumor detection using mri images. Brain, 3(2):146–150, 2015. 5\n[32] Laurynas Karazija, Iro Laina, Andrea Vedaldi, and Christian\nRupprecht. Diffusion Models for Open-Vocabulary Segmentation. In European Conference on Computer Vision, pages\n299–317. Springer, 2024. 2\n[33] Bingxin Ke, Anton Obukhov, Shengyu Huang, Nando Metzger, Rodrigo Caye Daudt, and Konrad Schindler. Repurposing diffusion-based image generators for monocular depth\nestimation. In Proceedings of the IEEE/CVF conference on\ncomputer vision and pattern recognition, pages 9492–9502,\n2024. 8\n[34] Alex Kendall, Yarin Gal, and Roberto Cipolla. Multi-task\nlearning using uncertainty to weigh losses for scene geometry and semantics. In Proceedings of the IEEE conference on\n\ncomputer vision and pattern recognition, pages 7482–7491,\n2018. 4\n[35] Alexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao,\nChloe Rolland, Laura Gustafson, Tete Xiao, Spencer Whitehead, Alexander C Berg, Wan-Yen Lo, et al. Segment anything. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 4015–4026, 2023. 3\n[36] Orest Kupyn and Christian Rupprecht. Dataset Enhancement\nwith Instance-Level Augmentations. In European Conference on Computer Vision, pages 384–402. Springer, 2024.\n2\n[37] Black Forest Labs. Flux. https://github.com/\nblack-forest-labs/flux, 2024. 2, 3, 5, 7, 8, 1\n[38] Aodong Li, Chen Qiu, Marius Kloft, Padhraic Smyth, Maja\nRudolph, and Stephan Mandt. Zero-Shot Anomaly Detection\nvia Batch Normalization. Advances in Neural Information\nProcessing Systems, 36, 2024. 3\n[39] Xiaofan Li, Zhizhong Zhang, Xin Tan, Chengwei Chen,\nYanyun Qu, Yuan Xie, and Lizhuang Ma. PromptAD:\nLearning Prompts with only Normal Samples for Few-Shot\nAnomaly Detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages\n16838–16848, 2024. 7\n[40] Xiaofan Li, Zhizhong Zhang, Xin Tan, Chengwei Chen,\nYanyun Qu, Yuan Xie, and Lizhuang Ma. PromptAD:\nLearning Prompts with only Normal Samples for Few-Shot\nAnomaly Detection. In Proceedings of the IEEE/CVF\nConference on Computer Vision and Pattern Recognition\n(CVPR), pages 16838–16848, 2024. 1\n[41] Dongze Lian, Daquan Zhou, Jiashi Feng, and Xinchao\nWang. Scaling &amp; Shifting Your Features: A New Baseline\nfor Efficient Model Tuning. Advances in Neural Information\nProcessing Systems, 35:109–123, 2022. 8\n[42] Tsung-Yi Lin, Priya Goyal, Ross Girshick, Kaiming He, and\nPiotr Dollár. Focal loss for dense object detection. In Proceedings of the IEEE international conference on computer\nvision, pages 2980–2988, 2017. 4\n[43] Jiahui Liu, Xin Wen, Shizhen Zhao, Yingxian Chen, and Xiaojuan Qi. Can OOD Object Detectors Learn from Foundation Models? In European Conference on Computer Vision,\npages 213–231. Springer, 2024. 2\n[44] Shilong Liu, Zhaoyang Zeng, Tianhe Ren, Feng Li, Hao\nZhang, Jie Yang, Qing Jiang, Chunyuan Li, Jianwei Yang,\nHang Su, et al. Grounding DINO: Marrying dino with\ngrounded pre-training for open-set object detection. In\nEuropean Conference on Computer Vision, pages 38–55.\nSpringer, 2024. 3\n[45] Zhikang Liu, Yiming Zhou, Yuansheng Xu, and Zilei Wang.\nSimpleNet: A Simple Network for Image Anomaly Detection and Localization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages\n20402–20411, 2023. 2\n[46] Andreas Lugmayr, Martin Danelljan, Andres Romero, Fisher\nYu, Radu Timofte, and Luc Van Gool. RePaint: Inpainting\nusing denoising diffusion probabilistic models. In Proceedings of the IEEE/CVF conference on computer vision and\npattern recognition, pages 11461–11471, 2022. 3\n\n\f[47] Wei Luo, Yunkang Cao, Haiming Yao, Xiaotian Zhang,\nJianan Lou, Yuqi Cheng, Weiming Shen, and Wenyong Yu.\nExploring intrinsic normal prototypes within a single image for universal anomaly detection. In Proceedings of the\nComputer Vision and Pattern Recognition Conference, pages\n9974–9983, 2025. 7\n[48] Wenxin Ma, Xu Zhang, Qingsong Yao, Fenghe Tang,\nChenxu Wu, Yingtai Li, Rui Yan, Zihang Jiang, and S Kevin\nZhou. Aa-clip: Enhancing zero-shot anomaly detection via\nanomaly-aware clip. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 4744–4754,\n2025. 6, 1\n[49] Pankaj Mishra, Riccardo Verk, Daniele Fornasier, Claudio\nPiciarelli, and Gian Luca Foresti. VT-ADL: A vision transformer network for image anomaly detection and localization. In 30th IEEE/IES International Symposium on Industrial Electronics (ISIE), 2021. 5\n[50] Maxime Oquab, Timothée Darcet, Théo Moutakanni, Huy V.\nVo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez,\nDaniel HAZIZA, Francisco Massa, Alaaeldin El-Nouby,\nMido Assran, Nicolas Ballas, Wojciech Galuba, Russell\nHowes, Po-Yao Huang, Shang-Wen Li, Ishan Misra, Michael\nRabbat, Vasu Sharma, Gabriel Synnaeve, Hu Xu, Herve Jegou, Julien Mairal, Patrick Labatut, Armand Joulin, and Piotr Bojanowski. DINOv2: Learning Robust Visual Features\nwithout Supervision. Transactions on Machine Learning Research, 2024. 1, 2, 3, 5\n[51] Jonathan Pirnay and Keng Chai. Inpainting transformer for\nanomaly detection. In International Conference on Image\nAnalysis and Processing, pages 394–406. Springer, 2022. 2\n[52] Anamaria-Roberta Preda, Christoph Mayr-Dorn, Atif\nMashkoor, and Alexander Egyed. Supporting high-level to\nlow-level requirements coverage reviewing with large language models. In Proceedings of the 21st International Conference on Mining Software Repositories, pages 242–253,\n2024. 2\n[53] Xuebin Qin, Hang Dai, Xiaobin Hu, Deng-Ping Fan, Ling\nShao, and Luc Van Gool. Highly Accurate Dichotomous Image Segmentation. In European Conference on Computer\nVision, pages 38–56. Springer, 2022. 3\n[54] Zhen Qu, Xian Tao, Xinyi Gong, ShiChen Qu, Qiyu\nChen, Zhengtao Zhang, Xingang Wang, and Guiguang Ding.\nBayesian Prompt Flow Learning for Zero-Shot Anomaly Detection. In Proceedings of the Computer Vision and Pattern\nRecognition Conference (CVPR), pages 30398–30408, 2025.\n1, 5, 6, 7, 8\n[55] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya\nRamesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry,\nAmanda Askell, Pamela Mishkin, Jack Clark, et al. Learning Transferable Visual Models From Natural Language Supervision. In International conference on machine learning,\npages 8748–8763. PMLR, 2021. 1, 3\n[56] Mike Ranzinger, Greg Heinrich, Jan Kautz, and Pavlo\nMolchanov. AM-RADIO: Agglomerative vision foundation model reduce all domains into one. In Proceedings of\nthe IEEE/CVF Conference on Computer Vision and Pattern\nRecognition (CVPR), pages 12490–12500, 2024. 5\n\n[57] Blaž Rolih, Matic Fučka, and Danijel Skočaj. SuperSimpleNet: Unifying Unsupervised and Supervised Learning for\nFast and Reliable Surface Defect Detection. In International\nConference on Pattern Recognition, 2024. 2\n[58] Blaž Rolih, Matic Fučka, and Danijel Skočaj. No Label Left\nBehind: A Unified Surface Defect Detection model for all\nSupervision Regimes. Journal of Intelligent Manufacturing,\n2025. 2\n[59] Robin Rombach, Andreas Blattmann, Dominik Lorenz,\nPatrick Esser, and Björn Ommer. High-Resolution Image\nSynthesis with Latent Diffusion Models. In Proceedings of\nthe IEEE/CVF conference on computer vision and pattern\nrecognition, pages 10684–10695, 2022. 2\n[60] Karsten Roth, Latha Pemula, Joaquin Zepeda, Bernhard\nSchölkopf, Thomas Brox, and Peter Gehler. Towards Total Recall in Industrial Anomaly Detection. In Proceedings\nof the IEEE/CVF conference on computer vision and pattern\nrecognition, pages 14318–14328, 2022. 1, 2, 7\n[61] Mohammadreza Salehi, Niousha Sadjadi, Soroosh\nBaselizadeh, Mohammad H Rohban, and Hamid R Rabiee. Multiresolution knowledge distillation for anomaly\ndetection.\nIn Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages\n14902–14912, 2021. 1, 5\n[62] Oriane Siméoni, Huy V Vo, Maximilian Seitzer, Federico\nBaldassarre, Maxime Oquab, Cijo Jose, Vasil Khalidov,\nMarc Szafraniec, Seungeun Yi, Michaël Ramamonjisoa,\net al. Dinov3. arXiv preprint arXiv:2508.10104, 2025. 5\n[63] Domen Tabernik, Samo Šela, Jure Skvarč, and Danijel\nSkočaj. Segmentation-Based Deep-Learning Approach for\nSurface-Defect Detection. Journal of Intelligent Manufacturing, 2019. 5\n[64] Nima Tajbakhsh, Suryakanth R Gurudu, and Jianming\nLiang. Automated polyp detection in colonoscopy videos\nusing shape and context information. IEEE transactions on\nmedical imaging, 35(2):630–644, 2015. 5\n[65] Fenfang Tao, Guo-Sen Xie, Fang Zhao, and Xiangbo Shu.\nKernel-aware graph prompt learning for few-shot anomaly\ndetection. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 7347–7355, 2025. 1\n[66] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia\nPolosukhin. Attention is all you need. Advances in neural\ninformation processing systems, 30, 2017. 4\n[67] Tomáš Vojı́ř and Jiřı́ Matas. Image-consistent detection of\nroad anomalies as unpredictable patches. In Proceedings of\nthe IEEE/CVF Winter Conference on Applications of Computer Vision, pages 5491–5500, 2023. 1\n[68] Tomáš Vojı́ř, Jan Šochman, and Jiřı́ Matas. Pixood: Pixellevel out-of-distribution detection. In European Conference\non Computer Vision, pages 93–109. Springer, 2024. 1\n[69] Team Wan, Ang Wang, Baole Ai, Bin Wen, Chaojie Mao,\nChen-Wei Xie, Di Chen, Feiwu Yu, Haiming Zhao, Jianxiao\nYang, et al. Wan: Open and advanced large-scale video generative models. arXiv preprint arXiv:2503.20314, 2025. 7,\n8, 1\n[70] Chengjie Wang, Wenbing Zhu, Bin-Bin Gao, Zhenye Gan,\nJiangning Zhang, Zhihao Gu, Shuguang Qian, Mingang\n\n\fChen, and Lizhuang Ma. Real-IAD: A real-world multi-view\ndataset for benchmarking versatile industrial anomaly detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 22883–22892,\n2024. 1, 5\n[71] Shuzhe Wang, Vincent Leroy, Yohann Cabon, Boris\nChidlovskii, and Jerome Revaud. DUST3R: Geometric 3d\nvision made easy. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages\n20697–20709, 2024. 4\n[72] Chenxi Whitehouse, Monojit Choudhury, and Alham Fikri\nAji. LLM-powered data augmentation for enhanced crosslingual performance. In The 2023 Conference on Empirical\nMethods in Natural Language Processing, 2023. 2\n[73] Matthias Wieler and Tobias Hahn. Weakly supervised learning for industrial optical inspection. In DAGM symposium\nin, page 11, 2007. 5\n[74] Chenfei Wu, Jiahao Li, Jingren Zhou, Junyang Lin, Kaiyuan\nGao, Kun Yan, Sheng-ming Yin, Shuai Bai, Xiao Xu, Yilei\nChen, et al. Qwen-image technical report. arXiv preprint\narXiv:2508.02324, 2025. 7, 8, 1\n[75] Yuxin Wu and Kaiming He. Group normalization. In Proceedings of the European conference on computer vision\n(ECCV), pages 3–19, 2018. 4\n[76] Minghui Yang, Peng Wu, and Hui Feng. Memseg: A semisupervised method for image surface defect detection using\ndifferences and commonalities. Engineering Applications of\nArtificial Intelligence, 119:105835, 2023. 4\n[77] Shuai Yang, Zhifei Chen, Pengguang Chen, Xi Fang, Yixun\nLiang, Shu Liu, and Yingcong Chen. Defect spectrum: A\ngranular look of large-scale defect datasets with rich semantics. In Computer Vision – ECCV 2024, pages 187–203,\nCham, 2024. Springer Nature Switzerland. 2\n[78] Kang Min Yoo, Dongju Park, Jaewook Kang, Sang-Woo\nLee, and Woomyoung Park. GPT3Mix: Leveraging largescale language models for text augmentation. In Findings\nof the Association for Computational Linguistics: EMNLP\n2021, pages 2225–2239, Punta Cana, Dominican Republic,\n2021. Association for Computational Linguistics. 2\n[79] Vitjan Zavrtanik, Matej Kristan, and Danijel Skočaj. DRÆM\n- a Discriminatively Trained Reconstruction Embedding\nfor Surface Anomaly Detection. In Proceedings of the\nIEEE/CVF international conference on computer vision,\npages 8330–8339, 2021. 2\n[80] Vitjan Zavrtanik, Matej Kristan, and Danijel Skočaj. Reconstruction by inpainting for visual anomaly detection. Pattern\nRecognition, 112:107706, 2021. 2\n[81] Vitjan Zavrtanik, Matej Kristan, and Danijel Skočaj. DSR–\na dual subspace re-projection network for surface anomaly\ndetection. In European conference on computer vision, pages\n539–554. Springer, 2022. 2\n[82] Vitjan Zavrtanik, Matej Kristan, and Danijel Skočaj. Cheating depth: Enhancing 3d surface anomaly detection via depth\nsimulation. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pages 2164–2172,\n2024. 2\n\n[83] Gongjie Zhang, Kaiwen Cui, Tzu-Yi Hung, and Shijian Lu.\nDefect-gan: High-fidelity defect synthesis for automated defect inspection. In Proceedings of the IEEE/CVF Winter\nConference on Applications of Computer Vision (WACV),\npages 2524–2534, 2021. 2\n[84] Qi Zhao, Xingyu Ni, Ziyu Wang, Feng Cheng, Ziyan Yang,\nLu Jiang, and Bohan Wang. Synthetic video enhances\nphysical fidelity in video synthesis. In Proceedings of the\nIEEE/CVF International Conference on Computer Vision\n(ICCV), pages 12135–12146, 2025. 2\n[85] Qihang Zhou, Guansong Pang, Yu Tian, Shibo He, and Jiming Chen. AnomalyCLIP: Object-agnostic Prompt Learning\nfor Zero-shot Anomaly Detection. In ICLR, 2024. 1, 3, 5, 6\n[86] Yixuan Zhou, Xing Xu, Jingkuan Song, Fumin Shen, and\nHeng Tao Shen. Msflow: Multiscale flow-based framework\nfor unsupervised anomaly detection. IEEE transactions on\nneural networks and learning systems, 2024. 2\n[87] Jiawen Zhu and Guansong Pang. Toward generalist anomaly\ndetection via in-context residual learning with few-shot sample prompts. In Proceedings of the IEEE/CVF conference\non computer vision and pattern recognition, pages 17826–\n17836, 2024. 1\n[88] Jiaqi Zhu, Shaofeng Cai, Fang Deng, Beng Chin Ooi, and\nJunran Wu. Do LLMs Understand Visual Anomalies? Uncovering LLM’s Capabilities in Zero-shot Anomaly Detection. In Proceedings of the 32nd ACM International Conference on Multimedia, pages 48–57, 2024. 3\n[89] Jiawen Zhu, Yew-Soon Ong, Chunhua Shen, and Guansong\nPang. Fine-grained abnormality prompt learning for zeroshot anomaly detection. In Proceedings of the IEEE/CVF\nInternational Conference on Computer Vision, pages 22241–\n22251, 2025. 6, 1\n[90] Yang Zou, Jongheon Jeong, Latha Pemula, Dongqing Zhang,\nand Onkar Dabeer. SPot-the-Difference Self-supervised Pretraining for Anomaly Detection and Segmentation. In European Conference on Computer Vision, pages 392–408.\nSpringer, 2022. 1, 2, 5, 7\n\n\fAnomalyVFM – Transforming Vision Foundation Models into Zero-Shot\nAnomaly Detectors\nSupplementary Material\nIn this Appendix, we provide extensive additional details\nand supporting information that extend beyond the scope of\nthe main manuscript. The Appendix is organised as follows:\n• Limitations in Section A.\n• Discussion about the Dataset Generation Phase in Section B.\n• Results of competing methods when trained on the\nsynthetic dataset and a discussion about them in Section C.\n• Extended synthetic dataset details in Section D.\n• Extended ablation studies in Section E.\n• Additional qualitative results in Section F.\n• Data generation data in Section G.\n\nA. Limitations\nThe main limitation currently is the time required to generate the synthetic dataset, which takes approximately one\nday on an A100 GPU, whereas model training requires only\nabout two hours. While this represents a lot of time, it is a\none-time investment, and the same dataset can be used for\nevery VFM. With the improvements to the generation speed\nof current image generation models, we expect this time to\ndrop even further. In Section E, we also conducted additional experiments, demonstrating that good performance\ncan be achieved with fewer than 10,000 images, meaning\nthe generation phase can be shorter if needed.\nAdditionally, while AnomalyVFM performs well on\nmedical datasets, its performance could be further improved. In our preliminary attempts, the pretrained image generation models [37, 69, 74] failed to output realistic medical images suitable for zero-shot anomaly detection\ntraining. While this was not needed for industrial anomaly\ndetection, fine-tuning the image generator on an auxiliary\nmedical imaging dataset may enable the image-generation\nmodel to output data of suitable quality.\n\nB. Discussion about dataset generation phase\nWhile our synthetic dataset generation works well, it could\nbe further improved. More specifically, the anomaly mask\nestimation and image filtering could be further improved.\nAlthough the dataset filtering is quite robust, some images\nwithout anomalies still pass through. Some examples of this\ncan be seen in Figure 1. A trained AnomalyVFM could be\nused to further filter the data and improve the data quality\neven further. On top of that, the amount and the content of\n[Object] tags could be improved. Based on the experi-\n\nFigure 1. Failure Cases in Image Generation Process\n\nTable 1. Comparison of performance of competing methods when\ntrained on the proposed synthetic dataset versus when using the\ndefault datasets. SD stands for Synthetic Dataset\nMethod\n\nSD\n\nImage-level\nAUROC\n\nF1-Max\n\nPixel-level\nAUROC\n\nF1-Max\n\nAACLIP [48]\n\n86.1\n81.4\n95.0\n45.1\n✓ 85.6 ↓ 0.5 81.1 ↓ 0.3 93.5 ↓ 1.5 44.2 ↓ 0.9\n\nAnomalyCLIP [85]\n\n87.6\n83.6\n95.1\n46.0\n✓ 87.5 ↓ 0.1 82.5 ↓ 1.1 95.3 ↑ 0.3 45.8 ↓ 0.2\n\nFAPrompt [89]\n\n88.1\n84.1\n95.9\n46.6\n✓ 88.5 ↑ 0.4 84.4 ↑ 0.3 96.2 ↑ 0.3 45.9 ↓ 0.7\n\nAdaCLIP [9]\n\n89.6\n87.5\n95.0\n51.0\n✓ 87.1 ↓ 2.5 84.9 ↓ 2.6 92.9 ↓ 2.1 47.9 ↓ 3.1\n\nBayes-PFL [54]\n\n90.8\n85.1\n96.0\n43.9\n✓ 91.2 ↑ 0.4 85.6 ↑ 0.5 96.1 ↑ 0.1 43.8 ↓ 0.1\n\nment in Section E, we hypothesise that this would improve\nthe performance even further. We have, however, left this\nfor future work.\nTo ensure that no data leakage occurred during the generation phase, we manually reviewed the [Object] tags\nand excluded any tags that were included in the evaluation\ntest sets. We have left [Anomaly] and [Texture] as\nthey were generated, as these represent more general concepts.\n\n\fTable 2. Dataset Statistics for the generated dataset\n\nValue\n\nNo. of images\nNo. of different objects\nNo. of different backgrounds\nNo. of different anomalies\nNo. of object background combinations\nAvg. Anomalous Area\nMin. Anomalous Area\nMax. Anomalous Area\n\n10,000\n100\n50\n204\n4,596\n2.52%\n0.28%\n11.24%\n\n0.30\n0.25\n\nDensity\n\nDataset Statistic\n\n0.35\n\n0.20\n0.15\n0.10\n\nC. Training Competing methods with the proposed synthetic dataset\nTo demonstrate that the diversity of the datasets is not problematic for VLM-based methods, we retrained them using\nthe proposed synthetic dataset. The results can be seen\nin Table 1. While it does help for some methods, it does\nnot significantly alter the results. This indicates that VLM\nmethods do not suffer from the same problem of inadequate\ndata diversity as VFMs.\n\nD. Synthetic Dataset Details\nHere, we provide details about the synthetic dataset generated for training our model. High-level statistics can be seen\nin Table 2. The generated dataset contains all of the possible objects and backgrounds. Additionally, it contains 204\ndifferent anomalies, significantly more than current datasets\n(e.g. MVTec AD [4] contains 73 different anomaly types).\nThe generated anomalies are, in general, relatively small\n(on average, they account for 2.52% of the image). In contrast, in MVTec AD, they occupy 4.39% of the image. A\nmore detailed visualisation of the anomaly area distribution\nis depicted in Figure 2.\n\nE. Additional Ablation Studies\nIn this section, we present additional experiments that verify\nthe design choices in AnomalyVFM. Most of the results are\npresented in Table 3\nFiltering Threshold To verify the impact of the threshold\nT used during dataset filtering, we re-filtered the dataset using various values of T . On top of the performance metrics, we also measured the rejection rate (i.e., the percentage of images discarded). The results and the rejection rate\ncan be seen in Figure 3. The results show that the imagelevel AUROC is quite robust to the set threshold, while the\npixel-level AUROC is more reliant on a correct choice of\na threshold. At the default setting, the rejection rate is approximately 30%, showcasing that prompt adherence is far\nfrom a solved problem in generative models.\nNumber of [Object] tags To verify the importance\n\n0.05\n0.00\n0\n\n2\n\n4\n\n6\n\n8\n\n10\n\n12\n\nAnomalous Area [%]\n\nFigure 2. Anomalous Area Distribution in the generated synthetic\ndataset.\n\nof having a diverse dataset, we varied the number of\n[Object] tags during the synthetic data generation phase.\nThe results can be seen in Figure 4. The results consistently\nrise with the number of [Object] tags. The performance\nwith 20 [Object] tags is similar to the performance when\nAnomalyVFM is trained on MVTec AD [4], which has 15\ndifferent objects inside the dataset. We have not gone above\n100 tags, as that is the list we initially generated with an\nLLM. In the future, we will increase this to see if the performance can be improved even further.\nNumber of images During all of our experiments, we used\n10,000 generated images. To verify the importance of this,\nwe have tried several different quantities: 100, 500, 1,000,\nand 10,000. The results are depicted in Figure 5. The performance increases steadily with each increment. We hypothesise that further scaling could improve performance\neven further. We have not done so to maintain a training set\nsize similar to that of the related methods.\nLoRA Rank To verify the robustness of the proposed\nmethod towards the rank of the LoRA adapters, we varied\nthis parameter. More specifically, we decreased the rank to\n32 and then increased it to 128. Decreasing it leads to a\ndecrease of 0.3 p. p. in image-level AUROC and 0.3 p. p.\nin pixel-level AUROC. Increasing the LoRA rank leads to\nno differences in image-level metrics, while the pixel-level\nAUROC decreases for 0.3 p. p. This shows the robustness\nof the proposed method to this parameter.\nLoRA Positions In the implementation, LoRA is added to\nquery, value and projection layers inside the attention mechanism. This was done based on the insights from the open-\n\n\fTable 3. Additional ablations of the anomaly detection method components.\nGroup\n\nImage-level\n\nCondition\n\nPixel-level\n\nAUROC\n\nF1 -Max\n\nAUROC\n\nF1 -Max\n\nModule Ablation\n\nViT-L → ViT-B\nViT-L → ViT-H\nLoRA Rank 64 → 32\nLoRA Rank 64 → 128\nLoRA Positions: QKV and Proj\nLoRA Positions: All Norm Layers\nLoRA Positions: All Linear Layers\n\n-1.8\n-0.6\n-0.3\n0.0\n-0.1\n-0.1\n-0.3\n\n-1.9\n-0.4\n0.0\n+0.1\n+0.2\n-0.4\n-1.3\n\n-1.2\n-0.8\n-0.3\n-0.3\n-0.2\n-0.4\n-0.1\n\n-2.5\n-2.3\n+0.4\n-0.2\n-0.2\n-1.1\n-0.5\n\nAnomalyVFM\n\nLoRA Positions: QV and Proj\n\n94.1\n\n87.6\n\n96.9\n\n44.3\n\n94.5\n\n50\n\n97.0\n\n93.5\n\n96.0\n\nRejection Rate\n\nPixel-level AUROC\n\nImage-level AUROC\n\n40\n94.0\n\n95.0\n\n30\n\n20\n\n94.0\n\n10\n93.0\n93.0\n0.15\n\n0.20\n\n0.25\n\n0.30\n\n0.35\n\n0.40\n\n0.45\n\n0.15\n\n0.20\n\n0.25\n\nThreshold T\n\n0.30\n\n0.35\n\n0.40\n\n0.45\n\n0.15\n\n0.20\n\n0.25\n\nThreshold T\n\n0.30\n\n0.35\n\n0.40\n\n0.45\n\nThreshold T\n\nFigure 3. Model performance and rejection rate in relation to filtering threshold T .\n\nsource community on how to efficiently adapt image generation models. To verify the importance of this choice,\nwe performed experiments with more layouts. All of the\nlayouts keep a similar performance, showcasing robustness\nto this choice. The largest dip in performance is observed\nwhen LoRA adaptors are added to all linear layers. We assume this is the case as the model cannot pass the information globally but rather only locally.\nModel Size RADIO has multiple model sizes. To verify\nthe importance of this parameter, we exchanged it with a\nsmaller (ViT-B) and larger (ViT-H) model. Using a smaller\nmodel leads to a decrease of 1.8 p. p. in image-level AUROC and 1.2 p. p. in pixel-level AUROC. A larger model\nleads to a decrease of 0.6 p. p. in image-level AUROC and\n1.2 p. p. in pixel-level AUROC. This shows that ViT-L is\nthe optimal choice. We also hypothesise that increasing the\nnumber of [Object] tags and the total number of images\nwould make ViT-H more optimal.\n\nF. Additional Qualitative Examples\nIn this section, we add additional qualitative examples of\nanomaly segmentations produced by AnomalyVFM. The\nexamples can be seen in Figure 6. AnomalyVFM can detect anomalies across a wide range of objects.\n\nG. Image Generation Data\nTo enable reproducibility and to ensure transparency,\nwe provide the list of [Object], [Anomaly] and\n[Texture] used in the synthetic dataset generation. The\nlists of [Object] and [Anomaly] tags can be seen in\nTable 4 and Table 5. The list of [Texture] tags can be\nseen in Table 6.\n\n\f94.5\n\n94.0\n\nPixel-level AUROC\n\nImage-level AUROC\n\n97.0\n\n93.5\n\n96.5\n\n96.0\n\n95.5\n\n93.0\n20\n\n40\n\n60\n\n80\n\n100\n\n20\n\n40\n\nNo. of [Object] tags\n\n60\n\n80\n\n100\n\nNo. of [Object] tags\n\nFigure 4. Model performance in comparison to the number of [Object] tags.\n\n94.5\n\nPixel-level AUROC\n\nImage-level AUROC\n\n97\n\n94.0\n\n93.5\n\n96\n\n95\n\n94\n\n93\n93.0\n100\n\n500\n\n1,000\n\n100\n\n10,000\n\n500\n\n1,000\n\n10,000\n\nNo. of images\n\nNo. of images\n\nFigure 5. Model performance in comparison to the number of images in the training set.\n\n1\n\n2\n\n3\n\n4\n\n5\n\n6\n\n7\n\n8\n\n9\n\n10\n\n11\n\n12\n\nFigure 6. Qualitative examples of anomaly segmentation masks produced by AnomalyVFM. In the first row, the image is shown. In the\nnext row, the anomaly segmentation produced by AnomalyVFM is depicted, and in the last row, the ground truth mask is depicted.\n\n\fTable 4. [Object] and [Anomaly] data used for synthetic data generation. Here are listed objects from A to L.\n\n[Object]\n\n[Anomaly]\n\napple\n[bruised, wrinkled, rotten, moldy, dented, discolored, soft spots]\napple slice\n[oxidized, bruised, dried out]\nasphalt\n[cracked, pitted, faded, eroded, oil-stained, uneven]\nball\n[deflated, scuffed, punctured, faded, cracked surface]\nbanana\n[bruised, overripe, blackened, split peel, mushy, spotted]\nbattery\n[leaking, corroded, dented, faded label]\nbelt\n[cracked leather, frayed edges, worn holes, peeling finish]\nbicycle\n[flat tire, rusty chain, scratched frame, worn seat]\nboard game\n[torn box, missing pieces, faded board, bent cards]\nbread\n[stale, moldy, crumbling, burnt, hardened, soggy]\nbrushed aluminum [scratched, dented, stained, faded, oxidized, pitted]\nbutter\n[rancid, melted, discolored, greasy residue, hardened]\ncar tire\n[bald tread, cracked rubber, punctured, worn sidewall]\ncarbon fiber\n[frayed, chipped, cracked, delaminated, scratched, discolored]\ncarrot\n[softened, cracked, dehydrated, spotted, moldy, bent]\nchair\n[scratched wood, stained cushion, wobbly leg]\nchalkboard\n[scratched, smudged, cracked, chipped, stained, uneven]\ncheese\n[moldy, dried out, cracked, discolored, sweating, crumbly]\nchocolate bar\n[melted, bloomed, crumbled, discolored]\nconcrete\n[cracked, pitted, stained, eroded, chipped, weathered]\ncookies\n[crumbled, stale, burnt, moldy]\ncork\n[cracked, crumbled, stained, dried out, warped, pitted]\ncorrugated metal [dented, rusted, bent, scratched, corroded, pitted]\ndenim\n[frayed, torn, stained, faded, pilled, worn]\ndoll\n[torn clothing, missing eye, stained, frayed hair, loose limbs]\ndrill\n[worn chuck, scratched casing, broken switch, dented battery]\negg\n[cracked, leaking, discolored shell, dented, rotten, thin shell]\nfabric\n[frayed, torn, stained, faded, pilled, snagged]\nfur\n[matted, shedding, stained, torn, faded, dull]\ngarden hose\n[cracked, leaking, kinked, faded]\ngarlic\n[sprouted, dried out, moldy]\nglasses\n[scratched lenses, bent frame, loose arms, cloudy lenses]\ngloves\n[frayed fingers, stretched out, stained]\ngrape\n[wrinkled, moldy, shriveled]\ngrill\n[rusty grates, blackened residue, scratched body]\nhammer\n[rusty, chipped, bent, dented, scratched, loose head]\nhat\n[faded color, stretched, frayed edges]\nheadphones\n[frayed cable, scratched ear cups, loose padding]\nhelmet\n[scratched shell, cracked foam, loose straps]\nhemp fabric\n[frayed, torn, faded, pilled, stained, snagged]\njacket\n[broken zipper, faded color, torn lining]\njeans\n[worn knees, frayed hem, ripped pocket, faded]\nkey\n[bent, worn teeth, rusty, scratched surface]\nkite\n[torn fabric, bent frame, frayed string, missing tail]\nlaminate\n[scratched, chipped, peeled, bubbled, stained, warped]\nlamp\n[flickering, scratched base, broken switch]\nlaptop\n[scratched casing, cracked hinge, faded keyboard keys]\nlettuce\n[wilting, yellowing, rotting]\nlight bulb\n[burnt out, cracked, blackened, loose filament]\nlinen\n[wrinkled, stained, faded, torn, frayed, pilled]\n\n\fTable 5. [Object] and [Anomaly] data used for synthetic data generation. Here are listed objects from M to Z.\n\n[Object]\n\n[Anomaly]\n\nmesh\n[frayed, torn, snagged, discolored, brittle, stretched]\nmilk carton\n[dented, leaking, stained, faded label, torn packaging]\nmirror\n[scratched, chipped edge, cloudy, stained surface]\nonion\n[sprouted, dried layers, rotting]\norange\n[dried skin, moldy, bruised, discolored]\npaintbrush\n[frayed bristles, stiffened bristles, dried paint]\npaper\n[torn, wrinkled, stained, yellowed, brittle, moldy]\nparquet flooring\n[scratched, warped, faded, chipped, stained, dull]\nphone\n[cracked screen, scratched back, worn buttons]\nplastic\n[scratched, cracked, discolored, warped, brittle, faded]\npliers\n[rusty, loose grip, scratched, chipped, stiff joint]\nplywood\n[warped, splintered, chipped, stained, delaminated, cracked]\npotato\n[sprouted, rotting, green spots, wrinkled, moldy, soft spots]\nrake\n[bent tines, rusty, loose handle]\nrattan\n[splintered, frayed, cracked, stained, brittle, discolored]\nrubber floor\n[cracked, brittle, discolored, stiffened, melted, torn]\nsaw\n[rusty blade, dull teeth, chipped handle, bent blade]\nscarf\n[pilled fabric, snagged threads, stained]\nscrewdriver\n[worn tip, rusty, scratched, bent, cracked handle]\nshoes\n[worn sole, scuffed leather, torn fabric, faded color]\nshovel\n[rusty blade, dented handle, worn grip]\nsmooth ceramic tile [chipped, cracked, stained, crazed, dull, scratched]\nsmooth glass\n[scratched, cracked, chipped, foggy, stained, shattered]\nsmooth metal\n[rusted, scratched, dented, corroded, pitted, tarnished]\nsmooth wood plank\n[cracked, splintered, warped, knotted, rotten, scratched, stained]\nsocks\n[hole in toe, stretched elastic, faded]\nstainless steel\n[scratched, dented, stained, scuffed, fingerprinted, corroded]\nstone tile\n[chipped, cracked, eroded, stained, pitted, weathered]\nstrawberry\n[moldy, bruised, shrinking]\nsynthetic fiber\n[frayed, torn, stained, faded, pilled, melted]\ntable\n[scratched surface, dented corner, water stains]\ntape measure\n[cracked casing, faded markings, stuck mechanism]\nteddy bear\n[ripped seam, matted fur, faded color, stained, missing stuffing]\ntent\n[torn fabric, bent poles, moldy spots]\ntomato\n[soft spots, cracked skin, moldy]\ntoy car\n[scratched paint, missing wheel, cracked body, loose parts]\nTV remote\n[worn-out buttons, cracked case, faded labels]\nvelvet\n[crushed, faded, stained, pilled, torn, frayed]\nwallet\n[worn edges, cracked leather, faded color, frayed stitching]\nwallpaper\n[peeled, torn, stained, faded, bubbled, wrinkled]\nwatch\n[scratched face, broken strap, faded markings, cracked casing]\nwhiteboard\n[scratched, stained, ghosting, cracked, faded, dented]\nwindow\n[scratched glass, cracked, foggy]\nwoven mat\n[frayed, torn, faded, loose fibers, stained, worn]\nwrench\n[rusty, scratched, dented, worn edges, corroded]\nyo-yo\n[scratched, cracked, tangled string, chipped edge]\n\n\fTable 6. [Texture] data used for synthetic dataset generation.\n\n[Texture]\nasphalt, bamboo, brick, brushed aluminum, canvas\ncarbon fiber, ceramic, chalkboard, clouds, concrete\ncork, corrugated metal, denim, fabric, fleece\nfoam, fur, glass, granite, grass\ngravel, hemp fabric, ice, laminate, linen\nmarble, mesh, metal, mirror, painted wall\npaper, parquet flooring, pebbles, plastic, plywood\nrattan, rubber, sand, snow, stainless steel\nstone, synthetic fiber, tarpaulin, terrazzo, tile\nvelvet, wallpaper, whiteboard, wire mesh, woven mat\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"