"<!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>Towards Zero-Shot Anomaly Detection and Reasoning\nwith Multimodal Large Language Models\nJiacong Xu1 * Shao-Yuan Lo2 Bardia Safaei1 Vishal M. Patel1 Isht Dwivedi2\n1\nJohns Hopkins University 2 Honda Research Institute USA\n\narXiv:2502.07601v2 [cs.CV] 17 Mar 2025\n\n{jxu155, bsafaei1, vpatel36}@jhu.edu\n\n{shao-yuan lo, idwivedi}@honda-ri.com\n\nELPV\n\nAbstract\nZero-Shot Anomaly Detection (ZSAD) is an emerging AD\nparadigm. Unlike the traditional unsupervised AD setting\nthat requires a large number of normal samples to train a\nmodel, ZSAD is more practical for handling data-restricted\nreal-world scenarios. Recently, Multimodal Large Language\nModels (MLLMs) have shown revolutionary reasoning capabilities in various vision tasks. However, the reasoning of\nimage abnormalities remains underexplored due to the lack\nof corresponding datasets and benchmarks. To facilitate\nresearch in AD &amp; reasoning, we establish the first visual\ninstruction tuning dataset, Anomaly-Instruct-125k, and the\nevaluation benchmark, VisA-D&amp;R. Through investigation\nwith our benchmark, we reveal that current MLLMs like\nGPT-4o cannot accurately detect and describe fine-grained\nanomalous details in images. To address this, we propose\nAnomaly-OneVision (Anomaly-OV), the first specialist visual assistant for ZSAD and reasoning. Inspired by human\nbehavior in visual inspection, Anomaly-OV leverages a LookTwice Feature Matching (LTFM) mechanism to adaptively\nselect and emphasize abnormal visual tokens. Extensive\nexperiments demonstrate that Anomaly-OV achieves significant improvements over advanced generalist models in both\ndetection and reasoning. Extensions to medical and 3D AD\nare provided for future study. The link to our project page:\nhttps://xujiacong.github.io/Anomaly-OV/\n\nAITEX\n\nVisA\n\nBTAD\n\nMVTec\n\nMPDD\n\nAverage\n\nBrainMRI\n\nBr35H\n\nHeadCT\nWinCLIP\n\nAnoVL\n\nAnomalyCLIP\n\nAdaCLIP\n\nAnomaly-OV\n\nFigure 1. Visualization of the image-level AUROC comparison\nbetween our Anomaly-OV and current state-of-the-art ZSAD methods (WinCLIP [38], AnoVL [19], AnomalyCLIP [110], AdaCLIP\n[6]). Notably, our zero-shot performance on VisA even surpasses\nmost recent advances in the few-shot setting [28, 51, 112].\n\nments [9, 25, 32–34, 37, 42, 82, 84, 95, 97, 104] have significantly improved the detection performance, these approaches\nassume the availability of a substantial number of normal\nsamples. However, this assumption becomes impractical\nin certain scenarios due to strict data privacy policies and\nthe significant human effort required for data classification,\nsometimes involving experts or specialists. Therefore, ZeroShot Anomaly Detection (ZSAD) is emerging as a popular\nresearch direction, leading to the development of many innovative methods [6, 17, 27, 38, 43, 52, 78, 79, 110, 113].\nRecent advances in Multimodal Large Language Models\n(MLLMs) [7, 15, 44, 45, 47, 48, 57, 58, 111] have shown\nrevolutionary reasoning capabilities in various vision tasks\n[14, 29, 67, 70, 80, 91, 94, 107, 109]. However, the rea-\n\n1. Introduction\nVisual Anomaly Detection (AD) is a well-established task in\ncomputer vision, extensively applied in scenarios such as industrial defect inspection [2, 3, 5, 12, 35, 69, 76, 77, 92, 98]\nand medical image diagnosis [1, 24, 31, 36, 89, 90, 103, 106].\nIn the traditional unsupervised AD (a.k.a. one-class AD)\nsetting, models learn the distribution of normal visual features from normal samples and are required to identify\nanomaly samples during inference. While recent advance* Most of this work was done when J. Xu was an intern at HRI-USA.\n\n1\n\n\fsoning of image abnormalities has not been explored due\nto the challenges of collecting large-scale datasets and establishing benchmarks. Existing methods simply predict\nthe likelihood of an anomaly without providing rationales\n[6, 11, 19, 38, 110]. In contrast, for better interpretability,\nrobustness, and trustworthiness, people would expect models to explain why an image is considered anomalous and\nprovide visual evidence. Interestingly, we find that recent\nadvanced MLLMs, such as GPT-4o [72], fall short in AD &amp;\nreasoning. As shown in Figure 2, while the detection is correct, the explanation from GPT-4o lacks accuracy, indicating\na gap in a comprehensive understanding of the anomaly.\nTo expedite research in AD &amp; reasoning, we establish\nthe first visual instruction tuning dataset, Anomaly-Instruct125k, and the evaluation benchmark, VisA-D&amp;R, through\nintensive human efforts. After evaluating current generalist\nMLLMs, we observe that these models fail to accurately\ndetect and describe fine-grained anomalous details in images.\nTo address this, we propose Anomaly-OneVision (AnomalyOV), the first specialist visual assistant for ZSAD and reasoning. Unlike existing ZSAD methods [6, 11, 19, 38, 110],\nAnomaly-OV directly learns object-awareness abnormality\nembeddings in feature space using only the visual encoder.\nInspired by human behavior in visual inspection, AnomalyOV employs a Look-Twice Feature Matching (LTFM) mechanism to assist its LLM in adaptively selecting and emphasizing the most suspicious abnormal visual tokens.\nExtensive experiments demonstrate that Anomaly-OV\nachieves significant improvements over advanced generalist\nmodels in both detection and reasoning. Extended results of\nAnomaly-OV, from applications in industrial defect detection\nto 3D inspection and medical image diagnosis, are provided\nfor future study. With precise descriptions and rationales\nof visual anomalies, our model can infer potential causes\n(see Figure 2), assess current impacts, and offer improvement suggestions, positioning itself as a reliable assistant for\nvisual inspection. Our contributions are in two folds:\n• We establish the first visual instruction tuning dataset and\nbenchmark for anomaly detection and reasoning.\n• We propose the first specialist visual assistant with stateof-the-art performance for this new impactful domain.\n\nGT: The top-left\ncandle shows a missing\nchunk of wax and an\nirregular indentation\nnear the wick.\n\nDo you see any anomalies in the image?\nThe candle in the top left appears to\nhave a damaged or missing wick, which is\nunusual compared to the other candles.\nYes, there is an anomaly in the top left\ncandle. It has a small hole or crack near\nthe wick, which is not present in the\nother candles.\nWhat is the cause for the anomaly?\nThe anomaly could be due to manufacturing\ndefects, such as improper molding or\ncooling, or it might result from external\ndamage like a puncture.\n\nFigure 2. Industrial image anomaly reasoning results from GPT-4o\n[72] and our Anomaly-OV. The responses for fine-grained anomaly\nreasoning are highlighted, with the ground truth given for reference.\n\ndownstream tasks, e.g., video anomaly detection [67, 94],\naffective computing [14, 29], and visual commonsense reasoning [109], revealing more interpretability.\nUnsupervised Anomaly Detection. Due to the scarcity and\ndifficulty of collecting anomalous data, researchers often\nfocus on the unsupervised AD setting, which exclusively\nuses normal data to train an AD model. Earlier studies, such\nas reconstruction-based [63, 69, 99], student-teacher [18, 85,\n102], and augmentation-based [46] approaches, assume a\nlarge amount of normal data is available. These traditional\napproaches are less practical when data are restricted or\nexpensive, such as in the medical domain.\nZero-Shot Anomaly Detection. Unlike unsupervised AD\n[35, 77] and few-shot AD [22, 28, 36, 51, 112], ZSAD models directly access the likelihood of abnormality for a given\nimage without requiring data specific to the target object.\nExisting works [6, 19, 38, 110] accomplish ZSAD by comparing visual and textual features encoded by visual and text\nencoders of CLIP and constructing their positive (anomaly)\nand negative (normal) prompts in the format of:\n\n2. Related Work\nMultimodal Large Language Models. Vision-Language\nModels (VLMs), such as CLIP [73], exhibit robust zero-shot\nclassification capabilities and have been applied to a range\nof downstream vision tasks [10, 53, 56, 61, 86]. Combining\na VLM’s vision encoder and an LLM [20, 62, 74], MLLMs\n[15, 48, 49, 57, 111] enable text-based interactions related to\nvisual content. MLLMs have shown remarkable reasoning\ncapability, particularly when incorporated with prompting\nstrategies such as Chain-of-Thought [66, 88, 105]. Recent\nstudies have harnessed MLLMs to provide reasoning for\n\nP + = [V1 ][V2 ]...[Vn ][object]\nP − = [W1 ][W2 ]...[Wn ][object]\nwhere Vi and Wi are handcrafted or learnable tokens, and\nobject refers to the word object or the class name of the\nobject. However, simply utilizing object to represent all\nkinds of objects cannot capture the class-awareness abnormality types. Also, for an intelligent visual assistant, the\nimages should be totally blind to the user (object-agnostic).\n2\n\n\fLayer 3\n\n..\n\n{𝓿𝒐𝒋 }\n\nLayer 4\n\nMLP\n\nAdaptor\n\nAdaptor\n\n𝐼%\n𝓋!\" = ℱ#\"(𝐼! )\n\n𝓋!% = ℱ#%(𝐼! )\n\n𝓋!&amp; = ℱ#&amp;(𝐼! )\n\n𝓋!' = ℱ#'(𝐼! )\n\n𝐼&amp;\n\nLTFM\n\n𝐼'\n\nLTFM\n\nLTFM\n\nLTFM\n\nTrainable in Stage 1\n\n!!\"\n\nFreeze in all stages\n\n“Are there any anomalies\nin the image?“\n\n{𝓶𝒋 }\n\nVT Selector: Visual Token Selector\n!#\"\n\n\"!\"\nSoftmax\n\nCos-Sim\n\nMLP\n\nTrainable in Stage 2\n\nCos-Sim\n\nc\n\nMLP\n\nLinear\nNegative Embedding\n\nc\n\n!!\"\n\n..\n\n“with suspicious features: “\n\nLTFM: Look-Twice Feature Matching\nPositive Embedding\n\n𝑟\n𝓋!% 𝓋#% 𝓋$%\n\nk\n\n\"#\nAvg\n\nElement-wise summation\n\nPooling\n\nAdaptor\n\nLook-back path\n\nAdaptor\n\nVT Selector\n\n𝐼\"\n\n!!\"\n\n𝓋!\" 𝓋#\" 𝓋$\"\n\nLLM\n\nSplit\n\nLayer 2\n\n0.99\n\nTokenizer\n\nLayer 1\n\n0.01\n\nProjector\n\nVisual Encoder\n\n𝐼$\n\nv\n\nq\n\n!#$\n\nQ-Former\n\nElement-wise multiplication c Concatenation\n\nFigure 3. Overview of the Anomaly-OV architecture. It consists of two training stages: (1) professional training for the anomaly expert, and\n(2) visual instruction tuning for anomaly detection and reasoning. Text and visual tokens are distinguished by different colors.\n\n3. Method\n\nup the input raw image resolution. Specifically, the highresolution images are divided into a prototyped number of\ncrops, and the visual encoder independently processes the\nimage crops before final spatial pooling.\n\n3.1. Preliminary\nTraining an MLLM from scratch demands extensive data\nand computational resources to align the visual and textual\nembedding spaces and develop robust instruction-following\ncapabilities. Recent studies [23, 83, 93] reveal that pretrained MLLMs function as generalists, possessing a broad\nknowledge base but underperforming in specialized domains.\nTherefore, our goal is to introduce an auxiliary specialist or\nexpert model designed to guide the generalist in selecting and\nutilizing critical visual tokens. This approach circumvents\nthe need for large-scale pre-training while preserving the\ngeneralization capacity of the original model.\nWe choose LLaVA-OneVision [44] as our base MLLM\nbecause it is open-sourced and performs similarly to other\ncommercial models. LLaVA-OneVision follows the model architectures for LLaVA family [47, 57–59] and other generic\nMLLMs, which typically consist of three major components:\nVisual Encoder, Projector, and LLM. The visual encoder\n[73, 100] extracts the visual information from the raw images, the projector aligns the spaces of visual features with\nthe word embedding, and the LLM is responsible for textual instruction processing and complex reasoning. Since\nthe image resolution for CLIP pre-training is fixed, LLaVAOneVision leverages AnyRes with pooling strategy to scale\n\n3.2. Architecture Overview\nWith the same image-splitting strategy AnyRes as LLaVAOneVision, the input high-resolution image is split into several crops, and the new image set can be written as:\nI = {I0 , I1 , I2 , ..., In−1 }\n\n(1)\n\nwhere I0 is the resized original image and Ij̸=0 refers to the\nimage crops. As shown in Figure 3, the image set I will\nbe processed by the visual encoder Fθ to generate the final\nvisual features {vjo }. Similar to AnomalyCLIP [110], we\nstore the outputs for four selected layers in the ViT [21] to\ncapture the image representations from different levels and\napply four adapters to compress the feature dimension. Then,\nthe extracted visual features can be written as:\nvji = Fθi (Ij )\n\n(2)\n\nwhere i denotes the i-th level and j refers to the index of\ncorresponding image in I. These multi-level features have\nbeen demonstrated to be effective in capturing fine-grained\nlocal semantics by recent works [6, 28, 110].\n3\n\n\fmodels, we calculate the possibilities of each patch token in\nvji belonging to the anomalous patterns by combining cosine\nsimilarity and softmax operations:\nmij =\nFigure 4. Simulation of visual anomaly inspection by humans.\n\ni\nexp(&lt; d+\ni , vj &gt; /τ )\n−\ni\ni\nexp(&lt; d+\ni , vj &gt; /τ ) + exp(&lt; di , vj &gt; /τ )\n\n(4)\n\nwhere mij represents the significance map for visual tokens,\nτ is the temperature hyperparameter, and &lt;, &gt; refers to the\ncosine similarity operator. The patch weight in mij indicates\nthe closeness of the corresponding visual token to the anomalous pattern. Then, all the maps are averaged to capture the\ntoken significances from low to high levels:\n\nThe large-scale pre-trained CLIP models align the projection spaces of the textual and visual encoder. Therefore,\nthe encoded image features already contain the class information required by ZSAD. To avoid human involvement in\nobject classification and reduce the model complexity, we\nremove the heavy text encoder commonly utilized in existing\nworks and let the visual model itself parse the information\nfor suspicious classes or objects. Specifically, the output\nvisual features for the original image v0o are leveraged to\nprovide the global description of the target object or regions\nin the look-back path. With the multi-level features and the\nglobal embeddings, the LTFM module is responsible for the\nrecognition and localization of suspicious tokens.\nDrawing inspiration from human visual inspection, where\nsuspicious objects or regions are identified and then inspected closely (see Figure 4), we design the VT selector module for aggregating (zooming in) the crucial visual tokens and explicitly assisting the LLM in distinguishing these tokens from many irrelevant ones when dealing\nwith instructions regarding anomaly detection and reasoning.\nAdditionally, the original visual features are preserved to\nmaintain the generalization capability of the base model on\nregular instructions, such as Can you describe the\ncontent of the image?\n\nmj =\n\n4\nX\n\nmij /4\n\n(5)\n\ni=1\n\nThe visual features are leveraged twice in the forward and\nlook-back paths, so this module is named by Look-Twice\nFeature Matching (LTFM), following the nature of two-step\nhuman visual inspection shown in Figure 4.\n\n3.4. Visual Token Selector\nUnder the image cropping strategy widely applied in recent\nMLLMs, there will be a large number of visual tokens for a\nhigh-resolution image, e.g., 7290 tokens for an image with\n1152×1152 resolution in LLaVA-OneVision. While these\ntokens provide rich visual details, the LLM is required to\npick the most useful information when adapting to a specific\ntask. When the LLM lacks enough knowledge in this domain,\nthe token-picking process will become complicated. Thus,\nour solution is to introduce a specialist or expert who knows\nwhich token is crucial or not and assist the LLM in selecting\nand emphasizing (zooming in) the crucial tokens.\nGiven the encoded visual tokens {vjo } for each image\ncrop in I and the corresponding significance map mj , the\nsuspicious tokens are emphasized by direct multiplication\nof the two tensors. Then, the normal tokens will be scaled\nto zero while the anomalous tokens will be maintained. After that, spatial average pooling P is applied to reduce the\nnumber of tokens. This process can be written as:\n\n3.3. Look-Twice Feature Matching\nGiven the global object information v0o provided by the lookback path, we generate the class-awareness abnormality description by merging v0o with two learnable embeddings:\ne+ ∈ RD and e− ∈ RD , where + and − indicate positive\n(anomalous) and negative (normal) patterns and D is the\nembedding dimension. Specifically, a linear layer Tio is applied along the token dimension to select and fuse useful\ntokens from v0o , and then the fused vector will be concatenated with e+ and e− independently and pass through two\nMLPs {Gi+ , Gi− } to generate the abnormality and normality\n−\ndescriptions {d+\ni , di }, which can be represented by:\n(\nGi+ (e+ ◦ Tio (v0o ))\n+\n−\n{di , di } =\n(3)\nGi− (e− ◦ Tio (v0o ))\n\nqj = P(vjo ⊙ mj )\n\n(6)\n\nwhere qj ∈ Rh×w×D refers to the pooled query tokens.\nEmpirically, setting h = w = 2 provides a better trade-off\nthan other options. Then, a Q-Former Q [49] is leveraged\nto aggregate the correlated tokens in the original output by\nforwarding qj as the query and vjo as the key and value:\n\nThe visual features extracted from different levels of the ViT\nfocus on different scales of semantics. Thus, the parameters\nof Tio and {Gi+ , Gi− } should be independent for different\nlevels, where i indicate the level number.\nSimilar to the zero-shot classification mechanism of CLIP\n\nvjs = Q(qj , vjo , vjo )\n\n(7)\n\nThe Visual Token Selector (VT Selector) serves as a tool for\nthe anomaly expert to hand-pick visual tokens that contain\nthe most suspicious semantics for a given image.\n4\n\n\fQ: What could be the reason\nbehind this anomaly?\nA: The absence of copper in the\ngreen wire could be due to\nmanufacturing defects such as\nfailure to insert the strands or\na mechanical issue where the\nstrands were removed or misplaced\nduring production or handling.\n\nQ: What suggests that there\nmight be malignant activity in\nthe tissue sample?\nA: Malignant activity is\nsuggested by irregularly\nshaped cells, hyperchromatic\nnuclei, and an increased\nnuclear-to-cytoplasmic ratio,\nindicative of abnormal and\nincreased DNA content typical\nin cancerous cells.\n\nQ: What kind of object are you\nexamining in the images?\nA: I'm examining a round cookie\nwith a golden-brown surface and\nvisible chocolate chips\nembedded across its surface.\n\n3D\n\nQ: How can I prevent similar\nanomalies in the future?\nA: Avoid rapid temperature\nchanges, handle the cup\ncarefully to minimize\nimpacts, and consider using\ncups made with thicker, more\ndurable materials.\n\nQ: What does the image show?\nA: The image shows a densely\ncellular tissue sample with\nfeatures indicating potential\nmetastatic breast cancer.\n\nmedical\n\nQ: Are there any anomalies in\nthis cable image?\nA: Yes, the green wire is missing\nits internal copper conductors,\nunlike the blue and brown wires,\nwhich contain complete sets of\nbundled copper strands.\n\nindustry\n\nin the wild\n\nQ: Do you notice any\nanomalies in the image?\nA: Yes, the anomaly in the\nimage is a fine, dark crack\nvisible on the ceramic cup,\nstarting from the rim and\nextending downward.\n\n.\n.\n.\n\nQ: Are there any significant\nanomalies detected on this\ncookie?\nA: Yes, there are two\nsignificant anomalies on the\ncookie: a central defect\nfeaturing a noticeable hole and\nan edge defect showing a gap or\ncrack.\n\nFigure 5. Composition of the instruction data in Anomaly-Instruct-125k. There are four main types of image samples: in-the-wild,\nindustrial, medical, and 3D (in the format of multi-view images), covering most image anomaly detection tasks and enabling the possibility\nof a unified assistant for visual inspection. The reasoning words are highlighted in blue. For more information about dataset establishment,\nstatistics, and the data collection pipeline, please refer to Section A1 in the supplementary.\n\n3.5. Inference and Loss\n\nwhere Xa,&lt;t and Xq,&lt;t are the answer and instruction tokens from all prior turns before the current prediction token\nxt for a sequence of length L. The entire model is parameterized by θ and trained by the original language model\ncross-entropy loss for each predicted answer token xt .\n\nAnomaly Prediction. In the traditional anomaly detection\ntask, the model predicts the possibility of the image being\nabnormal. To achieve anomaly score prediction, we aggregate the anomaly information from all the image crops by an\naverage operation weighted on the significance maps:\nP\ns\nj,k vj [k] · P(mj )[k]\nP\n(8)\nr(I) =\nj,k P(mj )[k]\n\n4. Dataset and Benchmark\nThe lack of multimodal instruction-following data for image\nanomaly detection and reasoning hinders the development\nof special intelligent assistants in this domain. Even though\nAnomalyGPT [28] introduces a prompt tuning dataset by\nsimulating the anomalies, the scale of their dataset and the diversity of their instructions and answers are limited, only focusing on anomaly localization. To resolve the data scarcity\nissue, we establish the first large-scale instruction tuning\ndataset: Anomaly-Instruct-125k and the corresponding\nanomaly detection and reasoning benchmark: VisA-D&amp;R.\n\nwhere P is the same spatial pooling in VT Selector and r(I)\nis a vector containing the global anomaly information for\nthe entire image. Then, the anomaly expert can calculate the\nimage-level abnormal possibility by parsing r(I):\nscore(I) = Sigmoid(G o (r(I)))\n\n(9)\n\nwhere G o is an MLP for distinguishing normal and abnormal\nsemantics. To handle the unbalanced sample distribution, we\nemploy the balanced BCE loss as the professional training\nobjective for the anomaly expert components.\n\n4.1. Anomaly-Instruct-125k\nLLaVA [57] builds its instruction tuning dataset by leveraging the image caption and bounding boxes available\nin the COCO dataset[55] to prompt the text-only GPT-4.\nShareGPT4V [8] provides a higher-quality dataset by directly prompting GPT-4V [71]. However, there is no image caption provided in existing anomaly detection datasets\n[1, 2], and no matter GPT-4V [71] or most recent GPT-4o\n[72] cannot accurately locate and describe the anomalies in\nthe image without explicit human involvement.\nTo resolve these issues, we design a new prompt pipeline\nfor accurate anomaly description generation. Since most\nof the datasets contain annotations for anomaly types, we\nmanually combine the class name and anomaly type, such as\na [capsule] with [poke] on surface. If the\nanomaly masks are provided, we draw bounding boxes on\nthe images to highlight the anomalous area. The short description and the image with (or w/o) bounding boxes are\nused to prompt GPT-4o to generate the detailed image and\nanomaly descriptions. Then, we employ an in-context learning strategy similar to LLaVA to create the instructions.\n\nText Generation. Instead of directly forwarding the concatenation of the original {vjo } and the selected {r(I), vjs }\nvisual tokens into the LLM, we apply an indication prompt\nwith &lt;adv&gt; suspicious feature: in the middle\nof the two series of tokens, which will highlight the selected\ntokens for LLM when handling anomaly-related instructions.\nThis approach can be considered a form of prompt engineering in MLLMs. Besides, the &lt;adv&gt; is chosen from\n{highly, moderately, slightly} and is determined\nby score(I) and predefined thresholds {slow , shigh }. When\nthe input image I has a high likelihood of anomaly, the\nLLM will place greater emphasis on the selected tokens;\notherwise, these tokens will have less significance. The text\ngeneration is implemented by the original auto-regressive\ntoken prediction mechanism of LLM:\np(Xa |I, Xq ) =\n\nL\nY\n\npθ (xt |I, Xq,&lt;t , Xa,&lt;t )\n\n(10)\n\nt=1\n\n5\n\n\fGPT-Score (GPT-4 as the judge [57]) are utilized to quantify\nthe similarity between generated text and ground truth. Note\nthat low-level reasoning is highly correlated to detection\nperformance, while anomaly-type descriptions of low-level\nreasoning determine the output of complex reasoning.\n\n5. Experiments\n5.1. Training &amp; Evaluation\n\nFigure 6. Prompt examples in VisA-D&amp;R for detection and reasoning. The complex reasoning instructions are highlighted.\n\nThere are two independent training stages for Anomaly-OV.\nIn Stage 1, the components of the anomaly expert are trained\nto obtain the token selection capability, targeting traditional\nZSAD. This stage utilizes all of the data with anomaly labels in Anomaly-Instruct-125k. Similar to previous works\n[6, 110], when evaluating the model on the datasets contained in the training set, the corresponding datasets are\nreplaced by VisA [115]. In Stage 2, the anomaly expert and\nvisual encoder are frozen, while the projector and LLM are\ntrainable. In addition to our instruction dataset, we sample\naround 350k data from the original training recipe of LLaVAOneVision to maintain the generalization ability. For more\ndetails on training, please refer to the supplementary.\nThe ZSAD performance for the anomaly expert is evaluated on nine benchmarks, including MVTec AD [2], VisA\n[115], AITEX [81], ELPV [16], BTAD [68], and MPDD\n[39] for industrial inspection, and BrainMRI [40], HeadCT\n[41], and Br35H [30] for medical diagnosis. AUROC (Area\nUnder the Receiver Operating Characteristic) is leveraged\nto quantify the image-level AD performance. For text-based\nanomaly detection, both normal and anomaly data are employed to assess the accuracy by examining if the generated text contains the word Yes. Differently, only anomaly\ndata are utilized to prompt the MLLMs to determine their\nanomaly reasoning capabilities since the justifications of\nnormality are similar for different models.\n\nFor a unified visual inspection dataset, precise instruction\ndata is collected from MVTec AD [2], the training set of\nBMAD [1], Anomaly-ShapeNet [50], Real3D-AD [60], and\nMVTec-3D AD [4], covering both 2D to 3D data across\nindustry to medical domains. The 3D point cloud data are\nconverted into 9 multi-view images, and the corresponding\nmasks are rendered using predefined camera positions. However, the diversities and scales of these datasets are relatively\nlimited, probably due to the difficulty of collecting anomaly\nimages. To scale up the instruction data, we introduce an\nautomatic anomaly data collection pipeline combining GPT4o [72] and Google Image Search [26] for image collection,\ndata cleaning, and instruction generation. Finally, 72k in-thewild images (named as WebAD) targeting anomaly detection\nare collected, significantly enriching our instruction dataset.\nSeveral samples from Anomaly-Instruct-125k are shown\nin Figure 5. The instructions are mainly in the format of\nmulti-round conversations, covering anomaly detection and\ndescription in low-level reasoning and potential cause and\nfuture suggestions for complex understanding.\n\n4.2. VisA-D&amp;R\nVisA [115] is a classic but challenging industrial anomaly\ndetection dataset, providing fine-grained anomaly type and\nsegmentation for each image. For evaluation of the anomaly\ndetection and reasoning performance on existing and future\nmethods, we select 10 classes from VisA and follow a similar\ndata generation pipeline of Anomaly-Instruct-125k to create\nthe benchmark. Differently, significant human effort has\nbeen invested in meticulously reviewing all generated images\nand anomaly descriptions. Wrong descriptions are picked\nout and re-annotated by humans before utilizing them for\nQ&amp;A generation. Totally, the benchmark consists of 761\nnormal samples and 1000 anomalous ones.\nFor evaluating detection performance, questions designed\nto elicit a one-word answer are used to prompt the MLLMs\n(Figure 6), with results quantified using Accuracy, Precision,\nRecall, and F1-score. We divide the reasoning performance\ninto two parts: low-level reasoning that focuses on the description of visual defects or anomalies and complex reasoning requiring the MLLMs to provide the potential cause and\nfuture improvement strategies for the detected anomalies,\nwhere ROUGE-L [54], Sentence-BERT (SBERT) [75], and\n\nMethod\nFull Model\nw/o. Look-back\nw/o. e+ &amp; e−\nw/o. Q-Former\nw/o. WebAD\n\nMVTec\n94.0\n92.8\n92.1\n91.7\n88.5\n\nVisA\n91.1\n90.5\n90.1\n89.9\n88.9\n\nHeadCT\n97.6\n96.6\n94.7\n92.8\n91.2\n\nBrainMRI\n93.9\n93.5\n92.9\n95.1\n93.4\n\nTable 1. Ablation study for the anomaly expert of Anomaly-OV.\nw/o. Look-back refers to the removal of v0o in LTFM.\n\n5.2. Zero-Shot Anomaly Detection\nAs shown in Table 2, compared with existing methods, the\nanomaly expert of Anomaly-OV achieves significant imagelevel AUROC improvements on most of the ZSAD benchmarks, which demonstrates that the text encoder widely\napplied in existing models is not necessary. The success of\nour model mainly originates from the extra data of WebAD\n(Table 1), which enables the model to learn more generic\n6\n\n\fIndustrial Defects\n\nModel\nCLIP [73]\nCoOp [108]\nWinCLIP [38]\nAPRIL-GAN [11]\nAnoVL [19]\nAnomalyCLIP [110]\nAdaCLIP [6]\nOurs\n\nMVTec AD\n74.1\n88.8\n91.8\n86.2\n92.5\n91.5\n89.2\n94.0\n\nVisA\n66.4\n62.8\n78.8\n78.0\n79.2\n82.1\n85.8\n91.1\n\nAITEX\n71.0\n66.2\n73.0\n57.6\n72.5\n62.2\n64.5\n72.0\n\nMedical Anomalies\n\nELPV\n59.2\n73.0\n74.0\n65.5\n70.6\n81.5\n79.7\n83.0\n\nBTAD\n34.5\n66.8\n68.2\n73.6\n80.3\n88.3\n88.6\n89.0\n\nMPDD\n54.3\n55.1\n63.6\n73.0\n68.9\n77.0\n76.0\n81.7\n\nBrainMRI\n73.9\n61.3\n92.6\n89.3\n88.7\n90.3\n94.8\n93.9\n\nHeadCT\n56.5\n78.4\n90.0\n89.1\n81.6\n93.4\n91.4\n97.6\n\nAverage\n\nBr35H\n78.4\n86.0\n80.5\n93.1\n88.4\n94.6\n97.7\n95.5\n\n63.1\n70.9\n79.2\n78.4\n80.3\n84.5\n85.3\n88.6\n\nTable 2. Quantitative comparison of Image-level AUROC on different ZSAD methods (some of the results are borrowed from [6, 110, 114]).\nThe best and the second-best results are bolded and underlined, respectively. Please refer to the supplementary for more detailed results.\n\nsemantics for normality and abnormality from the data distribution in the absence of the text encoder. This observation\nalso reveals that large-scale in-the-wild online data can benefit zero-shot performance in anomaly detection.\nWhile the Q-Former reduces the model performance on\nBrainMRI, it shows effectiveness on most benchmarks, indicating the importance of token aggregation. Similarly,\nthe look-back information and two learnable embeddings\nare required for describing class-awareness abnormality and\ndistinguishing positive and negative features, respectively.\nAs previously discussed, the anomaly expert is responsible\nfor selecting suspicious visual tokens for the LLM, and the\nsignificance maps shown in Figure 7 demonstrate the interpretable token selection mechanism. The high intensities are\nautomatically distributed around the anomalous areas even\nwithout any supervision of the anomaly masks.\n\nPCB Example: Excessive Solder\n\nUser\n\nAre there any anomalies visible in the image?\n\nGPT-4o\n\nThe image shows an HC-SR04 ultrasonic sensor.\nThere don’t appear to be any visible anomalies with\nthe sensor itself. The components and pins seem intact\nand properly aligned.\n\nLLaVA-OV\n\nThe image shows an ultrasonic sensor module, specifically the HC-SR04 model. There are no visible anomalies in the image; it appears to be a standard representation of this type of sensor module.\n\nOurs\n\nYes, there is a noticeable anomaly in the image: a short\ncircuit on the PCB, indicated by a white, crusty residue\nnear the ’Echo’ pin.\n\nTable 3. Anomaly-OV presents more accurate anomaly detection.\n\ncompared to other open-sourced models. Table 3 and Table 5\nprovide the qualitative comparison of our Anomaly-OV with\nits base model LLaVA-OV-7B [44] and GPT-4o [72]. Both\nGPT-4o and LLaVA-OV show insensitivity to anomalous\nfeatures and cannot accurately detect the anomaly in the\nimage. Sometimes, GPT-4o knows the image is anomalous\nbut fails to describe the anomalies precisely.\nWe provide the fine-tuned version of the base model\nLLaVA-OV-0.5B on Anomaly-Instruct-125k, which presents\nmuch higher accuracy and more balanced precision and recall than its original version. This demonstrates the effectiveness of our instruction-tuning dataset. By integrating the\nanomaly expert with the base model, our Anomaly-OV-0.5B\nachieves 0.08 accuracy and 0.06 F1-score improvements in\ntext-based anomaly detection and better reasoning capability\nin low-level and complex settings. Equipped with a larger\nlanguage model, Anomaly-OV-7B provides the best detection performance among all the existing MLLMs and shows\ncomparable reasoning ability with GPT-4o. Notably, we\nobserve that the anomaly expert restricts the detection perfor-\n\nFigure 7. Visualization of the significance map on VisA samples.\n\n5.3. Anomaly Detection &amp; Reasoning\nWith the strong capabilities of the anomaly expert for zeroshot detection and suspicious token selection, Anomaly-OV\naccomplishes significant improvement in text-based anomaly\ndetection and reasoning over other open-sourced generalist\nMLLMs, as shown in Table 4. Here are a few observations:\ni) While a larger language model cannot guarantee better\ndetection performance, it always provides greater reasoning\nability; ii) Most of the existing MLLMs present much lower\nrecall than precision, indicating their insensitivity to visual\nanomalies; iii) GPT-4o shows stronger reasoning ability\n7\n\n\fAnomaly Detection\n\nModel\nGPT-4V [71]\nGPT-4o [72]\nQwen2-VL-2B [87]\nQwen2-VL-7B [87]\nInternVL-2-8B [13]\nInternVL-2-26B [13]\nIXC-2.5-7B [101]\nLLaVA-OV-0.5B [44]\nLLaVA-OV-7B [44]\nLLaVA-OV-0.5B*\nAnomaly-OV-0.5B\nAnomaly-OV-7B\n\nAccuracy\n0.68\n0.70\n0.65\n0.76\n0.74\n0.73\n0.72\n0.54\n0.71\n0.71\n0.79\n0.79\n\nPrecision\n0.90\n0.83\n0.87\n0.91\n0.78\n0.86\n0.88\n0.70\n0.95\n0.77\n0.86\n0.83\n\nRecall\n0.49\n0.71\n0.55\n0.69\n0.81\n0.66\n0.63\n0.19\n0.56\n0.84\n0.83\n0.86\n\nLow-level Reasoning\nF1-score\n0.55\n0.68\n0.59\n0.75\n0.76\n0.68\n0.67\n0.28\n0.63\n0.76\n0.82\n0.83\n\nROUGE-L\n0.16\n0.24\n0.22\n0.25\n0.23\n0.21\n0.21\n0.20\n0.24\n0.31\n0.33\n0.34\n\nSBERT\n0.65\n0.71\n0.55\n0.61\n0.73\n0.74\n0.58\n0.63\n0.66\n0.70\n0.72\n0.73\n\nGPT-Score\n3.31\n4.84\n1.94\n3.09\n3.69\n4.13\n2.45\n2.54\n3.57\n3.69\n3.87\n4.26\n\nComplex Reasoning\nSBERT\n0.77\n0.81\n0.74\n0.68\n0.80\n0.80\n0.77\n0.81\n0.79\n0.82\n0.83\n0.84\n\nGPT-Score\n5.64\n6.89\n4.26\n4.62\n5.08\n5.49\n5.14\n4.34\n5.44\n5.31\n5.67\n6.34\n\nTable 4. Quantitative comparison of text-based anomaly detection and reasoning for MLLMs. Notably, the Accuracy and F1-score for the\nanomaly expert of Anomaly-OV can be calculated as {0.78, 0.77} with threshold 0.5. * indicates the model is fine-tuned on our dataset.\n\nmance of Anomaly-OV. Therefore, the design of a stronger\nanomaly expert is suggested for future works.\n\n3D Example: Bulge\n\nMacaroni Example: Yellowish Spot\n\nUser\n\nDo you see any anomalies in the image?\n\nGPT-4o\n\nThe image shows four pieces of elbow macaroni on a\ngreen background. The anomaly is that the macaroni\npieces are not whole; they are cut in half.\n\nLLaVA-OV\n\nThe image shows four pieces of pasta, specifically\nmacaroni shells, arranged on a green textured surface.\nThe pasta appears to be uniformly colored and shaped,\nwith no visible defects or anomalies.\n\nOurs\n\nYes, there is an anomaly in the image. The bottom right\npasta piece has a noticeable yellowish discoloration on\nits surface.\n\nUser\n\nIs there any anomaly present in the bowl?\n\nAnomaly-OV\n\nYes, there is a bulge on the side of the bowl, which\ndisrupts its otherwise smooth and symmetrical surface.\n\nMedical Example: Pneumonia\n\nUser\n\nWhat is the most likely diagnosis for this patient?\n\nAnomaly-OV\n\nBased on the chest X-ray, the most likely diagnosis for\nthis patient is pneumonia. The presence of bilateral\npatchy opacities in the lower lung fields is a common\nfinding in pneumonia, which is an infection that causes\ninflammation in the air sacs of the lungs.\n\nUser\n\nWhat should the patient do next?\n\nAnomaly-OV\n\nThe patient should consult a healthcare professional for\nfurther evaluation and appropriate treatment. This may\ninclude antibiotics to treat the infection, supportive\ncare such as oxygen therapy, and monitoring of the\npatient’s condition.\n\nTable 5. Anomaly-OV presents more precise anomaly reasoning.\n\n5.4. Extension\nWith the generalization and multi-image processing capabilities of MLLMs, it is possible to build a unified assistant\nfor visual inspection. Table 6 demonstrates the comprehensive knowledge of Anomaly-OV (without using AnomalyShapeNet [50] for training) on 3D and medical (testing set\nof BMAD [1]) AD &amp; reasoning. More data, benchmarks,\nand investigation on a unified model are meaningful.\n\nTable 6. Extension to 3D and medical AD &amp; reasoning.\n\nThen, a specialist MLLM, Anomaly-OV, targeting visual inspection is introduced to serve as the baseline in this domain.\nAnomaly-OV leverages an anomaly expert to assist the LLM\nwith suspicious visual token selection and presents significant improvements on both traditional ZSAD and text-based\nanomaly detection and reasoning tasks over existing methods.\nExtension to 3D and medical domains is demonstrated.\n\n6. Conclusion\nIn this paper, we establish the first large-scale visual instruction tuning dataset, Anomaly-Instruct-125k, and the\ncorresponding benchmark, VisA-D&amp;R, to address the data\nscarcity issue for visual anomaly detection and reasoning.\n8\n\n\fReferences\n\n[12] Yuanhong Chen, Yu Tian, Guansong Pang, and Gustavo\nCarneiro. Deep one-class classification via interpolated\ngaussian descriptor. In Proceedings of the AAAI Conference\non Artificial Intelligence, pages 383–392, 2022. 1\n[13] Zhe Chen, Weiyun Wang, Hao Tian, Shenglong Ye, Zhangwei Gao, Erfei Cui, Wenwen Tong, Kongzhi Hu, Jiapeng\nLuo, Zheng Ma, Ji Ma, Jiaqi Wang, Xiaoyi Dong, Hang\nYan, Hewei Guo, Conghui He, Botian Shi, Zhenjiang Jin,\nChao Xu, Bin Wang, Xingjian Wei, Wei Li, Wenjian Zhang,\nBo Zhang, Pinlong Cai, Licheng Wen, Xiangchao Yan, Min\nDou, Lewei Lu, Xizhou Zhu, Tong Lu, Dahua Lin, Yu Qiao,\nJifeng Dai, and Wenhai Wang. How far are we to gpt-4v?\nclosing the gap to commercial multimodal models with opensource suites, 2024. 8\n[14] Zebang Cheng, Zhi-Qi Cheng, Jun-Yan He, Jingdong Sun,\nKai Wang, Yuxiang Lin, Zheng Lian, Xiaojiang Peng,\nand Alexander Hauptmann. Emotion-llama: Multimodal\nemotion recognition and reasoning with instruction tuning.\nIn Conference on Neural Information Processing Systems,\n2024. 1, 2\n[15] Wenliang Dai, Junnan Li, Dongxu Li, Anthony Tiong,\nJunqi Zhao, Weisheng Wang, Boyang Li, Pascale Fung,\nand Steven Hoi. InstructBLIP: Towards general-purpose\nvision-language models with instruction tuning. In Thirtyseventh Conference on Neural Information Processing Systems, 2023. 1, 2\n[16] Sergiu Deitsch, Vincent Christlein, Stephan Berger, Claudia\nBuerhop-Lutz, Andreas Maier, Florian Gallwitz, and Christian Riess. Automatic classification of defective photovoltaic\nmodule cells in electroluminescence images. Solar Energy,\n185:455–468, 2019. 6\n[17] Chenghao Deng, Haote Xu, Xiaolu Chen, Haodi Xu, Xiaotong Tu, Xinghao Ding, and Yue Huang. Simclip: Refining\nimage-text alignment with simple prompts for zero-/fewshot anomaly detection. In Proceedings of the 32nd ACM\nInternational Conference on Multimedia, pages 1761–1770,\n2024. 1\n[18] Hanqiu Deng and Xingyu Li. Anomaly detection via reverse\ndistillation from one-class embedding. In IEEE/CVF conference on computer vision and pattern recognition, 2022.\n2\n[19] Hanqiu Deng, Zhaoxiang Zhang, Jinan Bao, and Xingyu Li.\nAnovl: Adapting vision-language models for unified zeroshot anomaly localization. arXiv preprint arXiv:2308.15939,\n2023. 1, 2, 7\n[20] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina\nToutanova. Bert: Pre-training of deep bidirectional transformers for language understanding, 2019. 2\n[21] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov,\nDirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner,\nMostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is\nworth 16x16 words: Transformers for image recognition at\nscale. In International Conference on Learning Representations, 2021. 3\n[22] Zheng Fang, Xiaoyang Wang, Haocheng Li, Jiejie Liu, Qiugui Hu, and Jimin Xiao. Fastrecon: Few-shot industrial\n\n[1] Jinan Bao, Hanshi Sun, Hanqiu Deng, Yinsheng He, Zhaoxiang Zhang, and Xingyu Li. Bmad: Benchmarks for medical\nanomaly detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages\n4042–4053, 2024. 1, 5, 6, 8, 14\n[2] 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, 5, 6, 14, 15\n[3] Paul Bergmann, Michael Fauser, David Sattlegger, and\nCarsten Steger. Uninformed students: Student-teacher\nanomaly detection with discriminative latent embeddings.\nIn Proceedings of the IEEE/CVF conference on computer\nvision and pattern recognition, pages 4183–4192, 2020. 1\n[4] Paul Bergmann, Xin Jin, David Sattlegger, and Carsten Steger. The mvtec 3d-ad dataset for unsupervised 3d anomaly\ndetection and localization. In Proceedings of the 17th International Joint Conference on Computer Vision, Imaging and\nComputer Graphics Theory and Applications. SCITEPRESS\n- Science and Technology Publications, 2022. 6\n[5] Tri Cao, Jiawen Zhu, and Guansong Pang. Anomaly detection under distribution shift. In Proceedings of the\nIEEE/CVF International Conference on Computer Vision,\npages 6511–6523, 2023. 1\n[6] 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, 2025. 1, 2, 3, 6, 7\n[7] Boyuan Chen, Zhuo Xu, Sean Kirmani, Brain Ichter, Dorsa\nSadigh, Leonidas Guibas, and Fei Xia. Spatialvlm: Endowing vision-language models with spatial reasoning capabilities. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 14455–14465,\n2024. 1\n[8] Lin Chen, Jinsong Li, Xiaoyi Dong, Pan Zhang, Conghui\nHe, Jiaqi Wang, Feng Zhao, and Dahua Lin. Sharegpt4v:\nImproving large multi-modal models with better captions,\n2023. 5, 14\n[9] Qiyu Chen, Huiyuan Luo, Chengkan Lv, and Zhengtao\nZhang. A unified anomaly synthesis strategy with gradient ascent for industrial anomaly detection and localization.\narXiv preprint arXiv:2407.09359, 2024. 1\n[10] Runnan Chen, Youquan Liu, Lingdong Kong, Xinge Zhu,\nYuexin Ma, Yikang Li, Yuenan Hou, Yu Qiao, and Wenping Wang. Clip2scene: Towards label-efficient 3d scene\nunderstanding by clip. In Proceedings of the IEEE/CVF\nConference on Computer Vision and Pattern Recognition,\npages 7020–7030, 2023. 2\n[11] Xuhai Chen, Yue Han, and Jiangning Zhang. April-gan:\nA zero-/few-shot anomaly classification and segmentation\nmethod for cvpr 2023 vand workshop challenge tracks 1&amp;2:\n1st place on zero-shot ad and 4th place on few-shot ad, 2023.\n2, 7\n\n9\n\n\fanomaly detection via fast feature reconstruction. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 17481–17490, 2023. 2\n[23] Yao Feng, Jing Lin, Sai Kumar Dwivedi, Yu Sun, Priyanka\nPatel, and Michael J Black. Chatpose: Chatting about 3d\nhuman pose. In Proceedings of the IEEE/CVF Conference\non Computer Vision and Pattern Recognition, pages 2093–\n2103, 2024. 3\n[24] Tharindu Fernando, Harshala Gammulle, Simon Denman,\nSridha Sridharan, and Clinton Fookes. Deep learning for\nmedical anomaly detection–a survey. ACM Computing Surveys (CSUR), 54(7):1–37, 2021. 1\n[25] 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\n[26] Google. Google-images-search 1.4.7, 2024. https://\npypi.org/project/Google-Images-Search. 6,\n14\n[27] Zhaopeng Gu, Bingke Zhu, Guibo Zhu, Yingying Chen, Hao\nLi, Ming Tang, and Jinqiao Wang. Filo: Zero-shot anomaly\ndetection by fine-grained description and high-quality localization. In Proceedings of the 32nd ACM International\nConference on Multimedia, pages 2041–2049, 2024. 1\n[28] Zhaopeng Gu, Bingke Zhu, Guibo Zhu, Yingying Chen,\nMing Tang, and Jinqiao Wang. Anomalygpt: Detecting industrial anomalies using large vision-language models. In\nProceedings of the AAAI Conference on Artificial Intelligence, pages 1932–1940, 2024. 1, 2, 3, 5\n[29] Yuxiang Guo, Faizan Siddiqui, Yang Zhao, Rama Chellappa,\nand Shao-Yuan Lo. Stimuvar: Spatiotemporal stimuli-aware\nvideo affective reasoning with multimodal large language\nmodels. arXiv preprint arXiv:2409.00304, 2024. 1, 2\n[30] Ahmed Hamada. Br35h: Brain tumor detection 2020, 2020.\n6\n[31] Changhee Han, Leonardo Rundo, Kohei Murao, Tomoyuki\nNoguchi, Yuki Shimahara, Zoltán Ádám Milacski, Saori\nKoshino, Evis Sala, Hideki Nakayama, and Shin’ichi Satoh.\nMadgan: Unsupervised medical anomaly detection gan using multiple adjacent brain mri slice reconstruction. BMC\nbioinformatics, 22:1–20, 2021. 1\n[32] Liren He, Zhengkai Jiang, Jinlong Peng, Liang Liu, Qiangang Du, Xiaobin Hu, Wenbing Zhu, Mingmin Chi, Yabiao\nWang, and Chengjie Wang. Learning unified reference representation for unsupervised multi-class anomaly detection.\narXiv preprint arXiv:2403.11561, 2024. 1\n[33] Chih-Hui Ho, Kuan-Chuan Peng, and Nuno Vasconcelos.\nLong-tailed anomaly detection with learnable class names.\nIn Proceedings of the IEEE/CVF Conference on Computer\nVision and Pattern Recognition, pages 12435–12446, 2024.\n[34] Jinlei Hou, Yingying Zhang, Qiaoyong Zhong, Di Xie, Shiliang Pu, and Hong Zhou. Divide-and-assemble: Learning\nblock-wise memory for unsupervised anomaly detection. In\nProceedings of the IEEE/CVF International Conference on\nComputer Vision, pages 8791–8800, 2021. 1\n[35] Chaoqin Huang, Haoyan Guan, Aofan Jiang, Ya Zhang,\nMichael Spratling, and Yan-Feng Wang. Registration based\n\nfew-shot anomaly detection. In European Conference on\nComputer Vision, pages 303–319. Springer, 2022. 1, 2\n[36] Chaoqin Huang, Aofan Jiang, Jinghao Feng, Ya Zhang, Xinchao Wang, and Yanfeng Wang. Adapting visual-language\nmodels for generalizable anomaly detection in medical images. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11375–11385,\n2024. 1, 2\n[37] Brian KS Isaac-Medina, Yona Falinie A Gaus, Neelanjan\nBhowmik, and Toby P Breckon. Towards open-world objectbased anomaly detection via self-supervised outlier synthesis. In European Conference on Computer Vision (ECCV),\n2024. 1\n[38] Jongheon Jeong, Yang Zou, Taewan Kim, Dongqing Zhang,\nAvinash Ravichandran, and Onkar Dabeer. Winclip: Zero/few-shot anomaly classification and segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision\nand Pattern Recognition, pages 19606–19616, 2023. 1, 2, 7\n[39] 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 telecommunications and control systems and workshops\n(ICUMT), pages 66–71. IEEE, 2021. 6\n[40] Pranita Balaji Kanade and PP Gumaste. Brain tumor detection using mri images. Brain, 3(2):146–150, 2015. 6\n[41] Felipe Campos Kitamura. Head ct - hemorrhage, 2018. 6\n[42] Mingyu Lee and Jongwon Choi. Text-guided variational\nimage generation for industrial anomaly detection and segmentation. In Proceedings of the IEEE/CVF Conference\non Computer Vision and Pattern Recognition, pages 26519–\n26528, 2024. 1\n[43] 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. 1\n[44] Bo Li, Yuanhan Zhang, Dong Guo, Renrui Zhang, Feng\nLi, Hao Zhang, Kaichen Zhang, Peiyuan Zhang, Yanwei Li,\nZiwei Liu, and Chunyuan Li. Llava-onevision: Easy visual\ntask transfer, 2024. 1, 3, 7, 8, 15\n[45] Chunyuan Li, Cliff Wong, Sheng Zhang, Naoto Usuyama,\nHaotian Liu, Jianwei Yang, Tristan Naumann, Hoifung Poon,\nand Jianfeng Gao. LLaVA-med: Training a large languageand-vision assistant for biomedicine in one day. In Thirtyseventh Conference on Neural Information Processing Systems Datasets and Benchmarks Track, 2023. 1, 15\n[46] Chun-Liang Li, Kihyuk Sohn, Jinsung Yoon, and Tomas\nPfister. Cutpaste: Self-supervised learning for anomaly\ndetection and localization. In IEEE/CVF conference on\ncomputer vision and pattern recognition, 2021. 2\n[47] Feng Li, Renrui Zhang, Hao Zhang, Yuanhan Zhang, Bo Li,\nWei Li, Zejun Ma, and Chunyuan Li. Llava-next-interleave:\nTackling multi-image, video, and 3d in large multimodal\nmodels. arXiv preprint arXiv:2407.07895, 2024. 1, 3\n[48] Junnan Li, Dongxu Li, Caiming Xiong, and Steven Hoi.\nBlip: Bootstrapping language-image pre-training for unified\nvision-language understanding and generation. In Interna-\n\n10\n\n\ftional conference on machine learning, pages 12888–12900.\nPMLR, 2022. 1, 2\n[49] Junnan Li, Dongxu Li, Silvio Savarese, and Steven Hoi. Blip2: Bootstrapping language-image pre-training with frozen\nimage encoders and large language models. In International conference on machine learning, pages 19730–19742.\nPMLR, 2023. 2, 4\n[50] Wenqiao Li, Xiaohao Xu, Yao Gu, Bozhong Zheng,\nShenghua Gao, and Yingna Wu. Towards scalable 3d\nanomaly detection and localization: A benchmark via 3d\nanomaly synthesis and a self-supervised learning network.\nIn Proceedings of the IEEE/CVF Conference on Computer\nVision and Pattern Recognition, pages 22207–22216, 2024.\n6, 8\n[51] Xiaofan Li, Zhizhong Zhang, Xin Tan, Chengwei Chen,\nYanyun Qu, Yuan Xie, and Lizhuang Ma. Promptad: Learning prompts with only normal samples for few-shot anomaly\ndetection. In Proceedings of the IEEE/CVF Conference\non Computer Vision and Pattern Recognition, pages 16838–\n16848, 2024. 1, 2\n[52] Yiting Li, Adam Goodge, Fayao Liu, and Chuan-Sheng Foo.\nPromptad: Zero-shot anomaly detection using text prompts.\nIn Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pages 1093–1102, 2024. 1\n[53] Feng Liang, Bichen Wu, Xiaoliang Dai, Kunpeng Li, Yinan\nZhao, Hang Zhang, Peizhao Zhang, Peter Vajda, and Diana\nMarculescu. Open-vocabulary semantic segmentation with\nmask-adapted clip. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages\n7061–7070, 2023. 2\n[54] Chin-Yew Lin. Rouge: A package for automatic evaluation\nof summaries. In Text summarization branches out, pages\n74–81, 2004. 6\n[55] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays,\nPietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence\nZitnick. Microsoft coco: Common objects in context. In\nComputer Vision–ECCV 2014: 13th European Conference,\nZurich, Switzerland, September 6-12, 2014, Proceedings,\nPart V 13, pages 740–755. Springer, 2014. 5\n[56] Yuqi Lin, Minghao Chen, Wenxiao Wang, Boxi Wu, Ke\nLi, Binbin Lin, Haifeng Liu, and Xiaofei He. Clip is also\nan efficient segmenter: A text-driven approach for weakly\nsupervised semantic segmentation. In Proceedings of the\nIEEE/CVF Conference on Computer Vision and Pattern\nRecognition, pages 15305–15314, 2023. 2\n[57] Haotian Liu, Chunyuan Li, Qingyang Wu, and Yong Jae Lee.\nVisual instruction tuning. In Thirty-seventh Conference on\nNeural Information Processing Systems, 2023. 1, 2, 3, 5, 6,\n16\n[58] Haotian Liu, Chunyuan Li, Yuheng Li, and Yong Jae Lee.\nImproved baselines with visual instruction tuning. In Proceedings of the IEEE/CVF Conference on Computer Vision\nand Pattern Recognition, pages 26296–26306, 2024. 1\n[59] Haotian Liu, Chunyuan Li, Yuheng Li, Bo Li, Yuanhan\nZhang, Sheng Shen, and Yong Jae Lee. Llava-next: Improved reasoning, ocr, and world knowledge, 2024. 3\n[60] Jiaqi Liu, Guoyang Xie, ruitao chen, Xinpeng Li, Jinbao\nWang, Yong Liu, Chengjie Wang, and Feng Zheng. Real3d-\n\nAD: A dataset of point cloud anomaly detection. In Thirtyseventh Conference on Neural Information Processing Systems Datasets and Benchmarks Track, 2023. 6\n[61] Jie Liu, Yixiao Zhang, Jie-Neng Chen, Junfei Xiao, Yongyi\nLu, Bennett A Landman, Yixuan Yuan, Alan Yuille, Yucheng\nTang, and Zongwei Zhou. Clip-driven universal model for\norgan segmentation and tumor detection. In Proceedings\nof the IEEE/CVF International Conference on Computer\nVision, pages 21152–21164, 2023. 2\n[62] Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar\nJoshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. Roberta: A robustly optimized\nbert pretraining approach, 2019. 2\n[63] Shao-Yuan Lo, Poojan Oza, and Vishal M Patel. Adversarially robust one-class novelty detection. In IEEE Transactions on Pattern Analysis and Machine Intelligence, 2022.\n2\n[64] Ilya Loshchilov and Frank Hutter. SGDR: Stochastic gradient descent with warm restarts. In International Conference\non Learning Representations, 2017. 15\n[65] Ilya Loshchilov and Frank Hutter. Decoupled weight decay\nregularization. In International Conference on Learning\nRepresentations, 2019. 15\n[66] Pan Lu, Swaroop Mishra, Tanglin Xia, Liang Qiu, Kai-Wei\nChang, Song-Chun Zhu, Oyvind Tafjord, Peter Clark, and\nAshwin Kalyan. Learn to explain: Multimodal reasoning via\nthought chains for science question answering. Advances\nin Neural Information Processing Systems, 35:2507–2521,\n2022. 2\n[67] Hui Lv and Qianru Sun. Video anomaly detection and\nexplanation via large language models. arXiv preprint\narXiv:2401.05702, 2024. 1, 2\n[68] 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 2021 IEEE 30th International Symposium on Industrial Electronics (ISIE), pages 01–06. IEEE, 2021. 6\n[69] Shancong Mou, Xiaoyi Gu, Meng Cao, Haoping Bai, Ping\nHuang, Jiulong Shan, and Jianjun Shi. RGI: robust GANinversion for mask-free image inpainting and unsupervised\npixel-wise anomaly detection. In The Eleventh International\nConference on Learning Representations, 2023. 1, 2\n[70] Ming Nie, Renyuan Peng, Chunwei Wang, Xinyue Cai, Jianhua Han, Hang Xu, and Li Zhang. Reason2drive: Towards\ninterpretable and chain-based reasoning for autonomous\ndriving. In European Conference on Computer Vision, pages\n292–308. Springer, 2025. 1\n[71] OpenAI. Gpt-4v(ision) system card, 2023. https://\nopenai.com/index/gpt-4v-system-card. 5, 8\n[72] OpenAI. Gpt-4o system card, 2024. https://openai.\ncom/index/gpt-4o-system-card. 2, 5, 6, 7, 8, 14,\n15\n[73] 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. 2, 3, 7, 14\n\n11\n\n\f[74] Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee,\nSharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and\nPeter J. Liu. Exploring the limits of transfer learning with a\nunified text-to-text transformer, 2023. 2\n[75] Nils Reimers and Iryna Gurevych. Sentence-bert: Sentence\nembeddings using siamese bert-networks, 2019. 6\n[76] Tal Reiss and Yedid Hoshen. Mean-shifted contrastive loss\nfor anomaly detection. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 2155–2162, 2023.\n1\n[77] Karsten Roth, Latha Pemula, Joaquin Zepeda, Bernhard\nSchölkopf, Thomas Brox, and Peter Gehler. Towards total\nrecall in industrial anomaly detection. In Proceedings of\nthe IEEE/CVF conference on computer vision and pattern\nrecognition, pages 14318–14328, 2022. 1, 2\n[78] Fumiaki Sato, Ryo Hachiuma, and Taiki Sekii. Promptguided zero-shot anomaly action recognition using pretrained deep skeleton features. In Proceedings of the\nIEEE/CVF conference on computer vision and pattern recognition, pages 6471–6480, 2023. 1\n[79] Eli Schwartz, Assaf Arbelle, Leonid Karlinsky, Sivan Harary,\nFlorian Scheidegger, Sivan Doveh, and Raja Giryes. Maeday: Mae for few-and zero-shot anomaly-detection. Computer Vision and Image Understanding, 241:103958, 2024.\n1\n[80] Pierre Sermanet, Tianli Ding, Jeffrey Zhao, Fei Xia, Debidatta Dwibedi, Keerthana Gopalakrishnan, Christine Chan,\nGabriel Dulac-Arnold, Sharath Maddineni, Nikhil J Joshi,\net al. Robovqa: Multimodal long-horizon reasoning for\nrobotics. In 2024 IEEE International Conference on\nRobotics and Automation (ICRA), pages 645–652. IEEE,\n2024. 1\n[81] Javier Silvestre-Blanes, Teresa Albero-Albero, Ignacio Miralles, Rubén Pérez-Llorens, and Jorge Moreno. A public\nfabric database for defect detection methods and results.\nAutex Research Journal, 19(4):363–374, 2019. 6\n[82] Luc PJ Sträter, Mohammadreza Salehi, Efstratios Gavves,\nCees GM Snoek, and Yuki M Asano. Generalad: Anomaly\ndetection across domains by attending to distorted features.\narXiv preprint arXiv:2407.12427, 2024. 1\n[83] Haomiao Sun, Mingjie He, Tianheng Lian, Hu Han, and\nShiguang Shan. Face-mllm: A large face perception model,\n2024. 3\n[84] Jiaqi Tang, Hao Lu, Xiaogang Xu, Ruizheng Wu, Sixing Hu,\nTong Zhang, Tsz Wa Cheng, Ming Ge, Ying-Cong Chen, and\nFugee Tsung. An incremental unified framework for small\ndefect inspection. In European Conference on Computer\nVision, pages 307–324. Springer, 2025. 1\n[85] Tran Dinh Tien, Anh Tuan Nguyen, Nguyen Hoang Tran,\nTa Duc Huy, Soan Duong, Chanh D Tr Nguyen, and\nSteven QH Truong. Revisiting reverse distillation for\nanomaly detection. In IEEE/CVF conference on computer\nvision and pattern recognition, 2023. 2\n[86] Hualiang Wang, Yi Li, Huifeng Yao, and Xiaomeng Li.\nClipn for zero-shot ood detection: Teaching clip to say no.\nIn Proceedings of the IEEE/CVF International Conference\non Computer Vision, pages 1802–1812, 2023. 2\n\n[87] Peng Wang, Shuai Bai, Sinan Tan, Shijie Wang, Zhihao Fan,\nJinze Bai, Keqin Chen, Xuejing Liu, Jialin Wang, Wenbin\nGe, Yang Fan, Kai Dang, Mengfei Du, Xuancheng Ren, Rui\nMen, Dayiheng Liu, Chang Zhou, Jingren Zhou, and Junyang Lin. Qwen2-vl: Enhancing vision-language model’s\nperception of the world at any resolution, 2024. 8\n[88] Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten\nBosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al.\nChain-of-thought prompting elicits reasoning in large language models. In Conference on Neural Information Processing Systems, 2022. 2\n[89] Qi Wei, Yinhao Ren, Rui Hou, Bibo Shi, Joseph Y Lo, and\nLawrence Carin. Anomaly detection for medical images\nbased on a one-class classification. In Medical Imaging\n2018: Computer-Aided Diagnosis, pages 375–380. SPIE,\n2018. 1\n[90] Julia Wolleb, Florentin Bieder, Robin Sandkühler, and\nPhilippe C Cattin. Diffusion models for medical anomaly\ndetection. In International Conference on Medical image\ncomputing and computer-assisted intervention, pages 35–45.\nSpringer, 2022. 1\n[91] Binzhu Xie, Sicheng Zhang, Zitang Zhou, Bo Li, Yuanhan\nZhang, Jack Hessel, Jingkang Yang, and Ziwei Liu. Funqa:\nTowards surprising video comprehension. In European Conference on Computer Vision, pages 39–57. Springer, 2025.\n1\n[92] Guoyang Xie, Jinbao Wang, Jiaqi Liu, Yaochu Jin, and Feng\nZheng. Pushing the limits of fewshot anomaly detection in\nindustry vision: Graphcore. In The Eleventh International\nConference on Learning Representations, 2023. 1\n[93] Hongxia Xie, Chu-Jun Peng, Yu-Wen Tseng, Hung-Jen\nChen, Chan-Feng Hsu, Hong-Han Shuai, and Wen-Huang\nCheng. Emovit: Revolutionizing emotion insights with visual instruction tuning. In Proceedings of the IEEE/CVF\nConference on Computer Vision and Pattern Recognition,\npages 26596–26605, 2024. 3\n[94] Yuchen Yang, Kwonjoon Lee, Behzad Dariush, Yinzhi\nCao, and Shao-Yuan Lo. Follow the rules: reasoning for\nvideo anomaly detection with large language models. arXiv\npreprint arXiv:2407.10299, 2024. 1, 2\n[95] Hang Yao, Ming Liu, Haolin Wang, Zhicun Yin, Zifei Yan,\nXiaopeng Hong, and Wangmeng Zuo. Glad: Towards better reconstruction with global and local adaptive diffusion\nmodels for unsupervised anomaly detection. arXiv preprint\narXiv:2406.07487, 2024. 1\n[96] Huanjin Yao, Wenhao Wu, Taojiannan Yang, YuXin Song,\nMengxi Zhang, Haocheng Feng, Yifan Sun, Zhiheng Li,\nWanli Ouyang, and Jingdong Wang. Dense connector for\nmllms, 2024. 17\n[97] Xincheng Yao, Ruoqi Li, Zefeng Qian, Lu Wang, and\nChongyang Zhang. Hierarchical gaussian mixture normalizing flow modeling for unified anomaly detection. arXiv\npreprint arXiv:2403.13349, 2024. 1\n[98] Zhiyuan You, Lei Cui, Yujun Shen, Kai Yang, Xin Lu,\nYu Zheng, and Xinyi Le. A unified model for multi-class\nanomaly detection. In Advances in Neural Information Processing Systems, 2022. 1\n\n12\n\n\f[99] Vitjan Zavrtanik, Matej Kristan, and Danijel Skočaj. Draema discriminatively trained reconstruction embedding for surface anomaly detection. In IEEE/CVF international conference on computer vision, 2021. 2\n[100] Xiaohua Zhai, Basil Mustafa, Alexander Kolesnikov, and\nLucas Beyer. Sigmoid loss for language image pre-training.\nIn Proceedings of the IEEE/CVF International Conference\non Computer Vision, pages 11975–11986, 2023. 3\n[101] Pan Zhang, Xiaoyi Dong, Yuhang Zang, Yuhang Cao, Rui\nQian, Lin Chen, Qipeng Guo, Haodong Duan, Bin Wang,\nLinke Ouyang, Songyang Zhang, Wenwei Zhang, Yining Li,\nYang Gao, Peng Sun, Xinyue Zhang, Wei Li, Jingwen Li,\nWenhai Wang, Hang Yan, Conghui He, Xingcheng Zhang,\nKai Chen, Jifeng Dai, Yu Qiao, Dahua Lin, and Jiaqi Wang.\nInternlm-xcomposer-2.5: A versatile large vision language\nmodel supporting long-contextual input and output, 2024. 8\n[102] Xuan Zhang, Shiyu Li, Xi Li, Ping Huang, Jiulong Shan, and\nTing Chen. Destseg: Segmentation guided denoising studentteacher for anomaly detection. In IEEE/CVF Conference on\nComputer Vision and Pattern Recognition, 2023. 2\n[103] Ximiao Zhang, Min Xu, Dehui Qiu, Ruixin Yan, Ning Lang,\nand Xiuzhuang Zhou. Mediclip: Adapting clip for fewshot medical image anomaly detection. In International\nConference on Medical Image Computing and ComputerAssisted Intervention, pages 458–468. Springer, 2024. 1\n[104] Ximiao Zhang, Min Xu, and Xiuzhuang Zhou. Realnet: A\nfeature selection network with realistic synthetic anomaly\nfor anomaly detection. In Proceedings of the IEEE/CVF\nConference on Computer Vision and Pattern Recognition,\npages 16699–16708, 2024. 1\n[105] Zhuosheng Zhang, Aston Zhang, Mu Li, hai zhao, George\nKarypis, and Alex Smola. Multimodal chain-of-thought\nreasoning in language models. Transactions on Machine\nLearning Research, 2024. 2\n[106] He Zhao, Yuexiang Li, Nanjun He, Kai Ma, Leyuan Fang,\nHuiqi Li, and Yefeng Zheng. Anomaly detection for medical images using self-supervised and translation-consistent\nfeatures. IEEE Transactions on Medical Imaging, 40(12):\n3641–3651, 2021. 1\n[107] Gengze Zhou, Yicong Hong, and Qi Wu. Navgpt: Explicit\nreasoning in vision-and-language navigation with large language models. In Proceedings of the AAAI Conference on\nArtificial Intelligence, pages 7641–7649, 2024. 1\n[108] Kaiyang Zhou, Jingkang Yang, Chen Change Loy, and Ziwei\nLiu. Learning to prompt for vision-language models. International Journal of Computer Vision, 130(9):2337–2348,\n2022. 7\n[109] Kaiwen Zhou, Kwonjoon Lee, Teruhisa Misu, and Xin Eric\nWang. Vicor: Bridging visual understanding and commonsense reasoning with large language models. In Findings of\nthe Association for Computational Linguistics, 202‘. 1, 2\n[110] Qihang Zhou, Guansong Pang, Yu Tian, Shibo He, and Jiming Chen. AnomalyCLIP: Object-agnostic prompt learning\nfor zero-shot anomaly detection. In The Twelfth International Conference on Learning Representations, 2024. 1, 2,\n3, 6, 7\n[111] Deyao Zhu, Jun Chen, Xiaoqian Shen, Xiang Li, and Mohamed Elhoseiny. MiniGPT-4: Enhancing vision-language\n\nunderstanding with advanced large language models. In The\nTwelfth International Conference on Learning Representations, 2024. 1, 2\n[112] 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, 2\n[113] 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\nProceedings of the 32nd ACM International Conference on\nMultimedia, pages 48–57, 2024. 1\n[114] Jiawen Zhu, Yew-Soon Ong, Chunhua Shen, and Guansong\nPang. Fine-grained abnormality prompt learning for zeroshot anomaly detection, 2024. 7\n[115] 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. 6, 15\n\n13\n\n\fA1. Dataset Establishment\n\nwe leverage these masks to generate the bounding boxes on\nthe images. Specifically, the masks for an anomalous image\nare dilated and merged (if two masks are too close) before\ncalculating the coordinates of the bounding boxes. Similarly,\nthe image with bounding boxes drawn on it will serve as\nthe visual prompt for GPT-4o. We also tried many other\nways to utilize the anomaly masks, such as highlighting the\nmask area with different colors, consecutively providing the\nimage and mask, and converting the normalized coordinates\nof the bounding box into a text prompt. None of them can as\neffectively guide the GPT-4o in finding anomalous features\nas drawing bounding boxes on the image.\n\nA1.1. How to highlight the anomaly?\nPrompt Example: Bubble Inside the Capsule\n\nUser\n\nDo you observe any anomalies in the image?\n\nGPT-4o\n\nThe image shows green gel capsules that appear uniform in size, shape, and color. Upon inspection, no\nobvious anomalies such as broken capsules, irregular\nshapes, or unexpected colors are visible.\n\nA1.2. WebAD – The largest AD dataset\nExisting industrial or medical anomaly detection datasets,\nsuch as MVTec AD [2] and BMAD [1], only contain a limited number of classes (&lt; 20) and several different anomaly\ntypes for each class (most of the anomaly types are similar) due to the collection of these kinds of anomaly images\ninvolves extensive human involvements. This limitation hinders the ZSAD model from learning a generic description\nof anomaly and normal patterns. Also, the MLLMs cannot\nobtain enough knowledge of visual anomaly descriptions for\nunseen anomaly types. Therefore, more diverse data is required for a robust ZSAD &amp; reasoning model. Many recent\ndataset works collect and annotate online images to enrich\nexisting datasets and demonstrate their effectiveness in the\ntraining of current data-hungry deep learning models.\nTo collect the online images that can be utilized for\nanomaly detection, we design an automatic data collection pipeline by combining GPT-4o [72] and Google Image Search [26]. As shown in Figure 8, we first employ\nGPT-4o to list 400 class names commonly seen in our daily\nlife. Then, for each class, the GPT-4o is asked to generate\n10 corresponding anomalous and normal phrases based on\nthe class name. The abnormality or normality descriptions\nindicated by these phrases are specifically suitable for the\nclass name. These phrases will serve as the search prompts\nto query the image links in Google Image Search. However,\nthe downloaded images are very ”dirty” and contain many\nnoise samples and duplications. For example, the collected\nanomaly set contains lots of normal images, and vice versa.\nA data-cleaning step is applied after the image collection.\nSince the duplications mainly occur within a specific\nclass, we extract the CLIP [73] features for all the images\nin the class and compare the cosine similarity of these features. If the similarity value is larger than 0.99, then one of\nthe images will be removed. To deal with the problematic\ngrouping of anomaly and normal images, we combine the\nimage and its corresponding search prompt and give them\nto GPT-4o for normal and anomaly classification. In the\nsystem prompt, we explicitly tell the GPT-4o that the search\nprompt is just a hint and not always correct and ask GPT-4o\n\nLet’s draw a bounding box around the anomaly!\n\nUser\n\nDo you observe any anomalies in the image?\n\nGPT-4o\n\nYes, there appears to be an anomaly in the image. One\nof the capsules, marked with a red box, has a noticeable defect. It seems to have a bubble or an air pocket\ninside, which is not observed in the other capsules.\nThis could indicate a manufacturing defect or inconsistency in the capsule filling process.\n\nIf there is no bounding box, let’s give a short hint to GPT-4o!\nUser\n\nDo you observe any anomalies in the image? (hint: a\nbubble in the capsule)\n\nGPT-4o\n\nThe anomaly in the image is the presence of a visible\nair bubble inside one of the green gel capsules. While\nmost capsules appear uniformly filled with liquid, the\ncapsule located near the top center of the image has\na small, clear air pocket within it. This could be a\nresult of incomplete filling during the manufacturing\nprocess or an issue with the capsule sealing.\n\nTable 7. Comparison of the GPT-4o [72] outputs with and without\nvisual and textual hints for the anomaly.\n\nAs shown in Table 7, recent advanced MLLMs like GPT4o fail to detect the anomalies in the image, so building\nthe instruction tuning dataset using previous methods [8] is\nimpractical. However, we observe that when the GPT-4o is\nprovided some ”hints”, it presents impressive performance\non anomaly reasoning or description. For example, a red\nbounding box drawn around the anomalous area enables\nGPT-4o to detect the tiny bubble inside the small capsule.\nThis observation indicates that the anomaly information is\nalready contained in the visual tokens, and the failure of\nexisting MLLMs is because the language model cannot\neffectively pick out the related tokens, which is the major\ninspiration of our token-picking mechanism.\nMost of the existing AD datasets, such as MVTec AD [2],\ncontain anomaly masks for anomaly localization. Therefore,\n14\n\n\fAnomalous Image Collection\nCar, Airplane,\nApple, Violin,\nShirt, Banana,\nDoor, Knife,\nPetri Dish, …\n\nInstruction Generation\n\nImage Cleaning\n\n“A scratched car”,\n“A crashed airplane”,\n“A molded apple”,\n“A violin with crack”,\n“A discolored shirt, …\n\n“A scratched car”\n\n1. Extract CLIP features\n2. Get cosine similarity\n3. Remove duplications\n\nGPT-4o\n\nCombine Prompt\n\nA noticeable scratch runs\nhorizontally across the car door.\nThe scratch is white, suggesting\nthe paint has been removed to show\nthe underlying layer. It is not\nuniform, varying slightly …\n\n“A scratched car”\n\n“human”: Does the car in the image\nhave any significant damage?\n\nGPT-4o\n\n“gpt”: Yes, there is a noticeable\nhorizontal scratch on the car\ndoor, which is white and varies in\nwidth and depth, indicating paint\nremoval …\n\nNormal Image Collection\n\nGPT-4o\n\nCar, Airplane,\nApple, Violin,\nShirt, Banana,\nDoor, Knife,\nPetri Dish, …\n\n“A brand-new car”,\n“A standard airplane”,\n“A fresh apple”,\n“A classical violin”,\n“A clean shirt, …\n\nNormal\n\nAnomaly\n\nFigure 8. Automatic data collection pipeline for WebAD. The entire pipeline is fully automatic at an affordable cost (API usage). Other\nadvanced open-sourced MLLMs can applied to replace GPT-4o for further reduction of cost.\n\nto determine the normality and abnormality by itself. This\nstep will remove the images with incorrect labels and the\nartificial images, such as cartons or art. Some samples in\nthe collected WebAD dataset are shown in Figure 9. In total,\nWebAD contains around 72k images from 380 classes and\nmore than 5 anomaly types for each class.\n\n3D anomaly detection requires multi-image understanding.\nBesides, for more knowledge in the medical domain, the\nmodel is also fed with the data from LLaVA-Med [45].\n\nA3. Experimental Results\nA3.1. Anomaly Detection\n\nA1.3. Instruction Data Generation\n\nSimilar to previous ZSAD works, the detailed image-level\nAUROC results for the anomaly expert of Anomaly-OV on\nVisA [115] and MVTec AD [2] are provided in Table 8.\n\nFor existing datasets, we manually combine the anomaly\ntype and the class name to create the short anomaly prompt\n(hint). Then, the image with or without the bounding boxes\nand the corresponding short prompt are utilized to prompt\nGPT-4o for the generation of detailed descriptions of the\nimage and the anomalies. These descriptions contain all\nthe information required for instruction-following data. The\nin-context learning strategy is implemented to generate the\nmulti-round conversation data (see Figure 10). Questions\ndesigned to elicit a one-word answer are utilized to balance\nthe distribution of the normal and anomaly samples.\n\nA3.2. Anomaly Reasoning\nTable 9 to 13 presents more comparison results of GPT-4o\n[72], LLaVA-OneVision [44], and Anomaly-OV on AD &amp;\nreasoning. Anomaly-OV shows better performance in the detection and description of the visual anomalies in the images.\nTable 14 demonstrates the low-level and complex reasoning\ncapability of Anomaly-OV for an in-the-wild image, indicating a comprehensive understanding of the anomaly.\n\nA2. Training Details\n\nA4. Limitation and Future Work\n\nIn the professional training stage, we leverage AdamW [65]\nto be the optimizer and CosineAnnealingWarmRestarts [64]\nas the learning rate scheduler. The initial learning rate is set\nto be 1e − 4, and the restart iteration is half of the single\nepoch. The anomaly expert is trained on 8 H100 GPUs for 2\nepochs (2 hours), and the total batch size is 128. In the instruction tuning stage, we follow the default training setting\nof LLaVA-OneVision [44] (reduce the batch size to 128), and\nthe total training time for 0.5B and 7B models are 7 hours\nand 50 hours on 8 H100, respectively. When sampling the instruction data from the original recipe of LLaVA-OneVision,\nwe put more emphasis on low-level image understanding\nand 3D multi-view Q&amp;A, considering that anomaly detection originates from the low-level feature differences and the\n\nLimitation. As shown in Table 15, sometimes, AnomalyOV fails to provide an accurate classification of the target\nobject, describes the anomaly by a general word (wax missing is described by ”crack”), or presents wrong reasoning\nwith hallucination. Also, there is still a large space for improvement in the detection performance of Anomaly-OV.\nBesides, the images contained in VisA-D&amp;R are from the\nindustrial domain, so more benchmarks in other domains,\nsuch as 3D and medical anomaly detection, are required to\nevaluate a unified AD &amp; reasoning model.\nFuture Work. The detection performance of Anomaly-OV\nis highly determined by the anomaly expert (see Table 4), so\na more advanced design of the expert model is recommended\n15\n\n\fFigure 9. Overview of the gallery for in-the-wild image samples in WebAD. The images on the left side are anomalous, while the right side\nis for normal images. The links to download these images will be released to avoid copyright issues.\nsystem_prompt = \"\"\"\nYou are an intelligent visual anomaly assistant, and you are seeing a single image. What you see are provided with a comprehensive image description and a\ndeep analysis of the anomalies contained, describing the same image you are looking at. Answer all questions as you are seeing the image.\nDesign a conversation between you and a user asking about this photo. The answers should be in a tone that the assistant is seeing the image and answering\nthe question.\nAsk diverse questions and give corresponding answers.\nThe questions should be related to the anomalies in the image, including the presence of the anomalies, the reasoning, the nature, the location, the possible\ncauses, the potential impacts, the solutions for current state, and the mitigation suggestions in the future. Only include questions that have definite\nanswers:\n(1) one can see the content in the image that the question asks about and can answer confidently;\n(2) one can determine confidently from the image.\nDo not ask any question that cannot be answered confidently.\nThe conversation should be coherent and informative, covering various aspects of the image and the anomalies present. The conversation should be concise,\nengaging and informative, providing a detailed understanding of the image and the anomalies detected.\nThe output should be strictly formatted into JSON format.\n\"\"”\n----------------------------------------------------------------- the in-context prompt --------------------------------------------------------------------“””\nExample1 = ### Comprehensive Image Description:\\nThe image shows two oranges placed on a wooden table. The oranges are partially wrapped in a clear plastic\nbag. The orange on the left has a clear and significant mold growth covering nearly half of its surface. The mold is white and green …\nConversation1 =\n{\n\"conversation\": [\n{\n\"user\": \"Please describe the image you are seeing.\",\n\"assistant\": \"The image features two oranges on a wooden table, partially wrapped in a clear plastic bag. The left orange has a significant mold growth\ncovering nearly half of its surface, while the right orange appears healthy with no visible signs of mold.\"\n},\n{\n\"user\": \"Are there any anomalies for the oranges?\",\n\"assistant\": \"Yes, the anomaly in the image is the mold growth on the left orange, characterized by a fuzzy, white, and green layer that differs from\nthe healthy appearance of the right orange.\"\n},\n{\n\"user\": \"Why do you think the left orange is anomalous?\",\n\"assistant\": \"The left orange is anomalous due to the mold growth covering a substantial portion of its surface, indicating deterioration and\nunsuitability for consumption.\"\n} …\nExample2 = **Comprehensive Image Description**:\\nThe image depicts a storefront window with shattered glass. It is part of a larger facade that includes\nadditional glass panels on either side. The main window is severely damaged with multiple cracks spreading outward from a central impact point…\nConversation2 = “””\n\nFigure 10. Prompt template for generating multi-round conversation in Anomaly-Instruct-125k (modified from the template of LLaVA [57]).\n\nin future research. One can change the base model to other\nopen-sourced MLLMs to resolve the wrong classification\nissue. Also, we found that the diversity of the anomaly\ntype is very limited in existing industrial anomaly datasets\n(mainly ’crack’ or ’broken’), causing the assistant to fail to\nprovide fine-grained anomaly reasoning or description for\n\nunseen anomaly features. Therefore, a more diverse industrial anomaly detection dataset is urgently required. Similar\nto other traditional MLLMs, Anomaly-OV only utilizes the\noutput visual tokens from the last layer of the visual encoder\nas the input for LLM. However, anomaly detection is highly\ndependent on low-level visual clues. Hence, forwarding\n\n16\n\n\fVisA\nAUROC\n\nMVTec AD\nAUROC\n\ncapsules\n98.6\npcb2\n87.7\nbottle\n95.6\ncarpet\n98.9\n\nfryum\n93.4\npcb3\n86.6\ncable\n88.8\nmetal nut\n77.7\n\ncashew\n93.9\npcb4\n90.0\ngrid\n99.2\nwood\n100.0\n\nmacaroni1\n91.1\n\nmacaroni2\n70.3\n\ncandle\n96.5\n\npipe fryum\n99.0\n\nchewinggum\n96.4\n\npcb1\n90.3\n\ncapsule\n92.2\nzipper\n99.6\n\ntile\n95.5\nleather\n100.0\n\npill\n92.3\ntoothbrush\n94.2\n\nscrew\n98.0\n\ntransistor\n88.0\n\nhazelnut\n91.2\n\nTable 8. Per-class image-level AUROC of the anomaly expert of Anomaly-OV on VisA and MVTec AD.\nPCB Example: Bent Transparent LED\n\nCapsule Example: Dark Spot\n\nUser\n\nIs there an anomaly in the image?\n\nUser\n\nIs there an anomaly present in the image?\n\nGPT-4o\n\nThe image shows an infrared sensor module, which\nappears to be intact and properly assembled. There\ndoesn’t seem to be any visible anomaly or damage to\nthe components.\n\nGPT-4o\n\nYes, there is an anomaly in the image. One of the\ncapsules is a different color; it is brown instead of\ngreen.\n\nLLaVA-OV\n\nLLaVA-OV\n\nThe image shows an electronic circuit board with various components, including a red LED that is not illuminated. There doesn’t appear to be anything obviously\nanomalous in the image.\n\nOurs\n\nYes, the anomaly in the image is the bent LED on the\ncircuit board, which is not aligned properly with the\nboard’s surface.\n\nBased on the image alone, there is no clear indication\nof an anomaly. The pills appear to be uniformly shaped\nand colored, with no visible defects or irregularities.\nHowever, without additional context or a point of reference for size, it’s difficult to determine if there are\nany anomalies that might not be immediately apparent\nfrom the image.\n\nOurs\n\nYes, there is an anomaly present in the image. One\nof the capsules has a darker spot on its surface, which\ncontrasts with the otherwise uniform green color.\n\nTable 9. Additional results on VisA-D&amp;R (PCB).\n\nTable 11. Additional results on VisA-D&amp;R (Capsules).\nCandle Example: Pink Discoloration\n\nrecent paper: ”Dense Connector for MLLMs” [96] ) should\nbe a possible solution for performance improvement.\n\nUser\n\nIs there an anomaly in the image I should know about?\n\nGPT-4o\n\nYes, there is an anomaly in the image. The candle\nin the top left corner has its wick facing the opposite\ndirection compared to the other three candles.\n\nLLaVA-OV\n\nBased on the image, there is no apparent anomaly\namong the candles. They are all similar in size and\nshape, with a consistent hole in the center for the wick.\nThe coloration appears uniform across the candles, and\nthere are no visible signs of melting or irregularities\nthat would suggest an anomaly.\n\nOurs\n\nYes, the anomaly is the presence of a small red spot\non the bottom right candle, which contrasts with the\notherwise uniform white color.\n\nTable 10. Additional results on VisA-D&amp;R (Candle).\n\nmulti-level features from different layers to the LLM (as\n17\n\n\fFryum Example: Break Edge\n\nUser\n\nIs there any anomaly in the image?\n\nGPT-4o\n\nThe image shows a wheel-shaped snack on a green surface. There doesn’t appear to be any obvious anomaly.\n\nLLaVA-OV\n\nThe image shows a circular object with a pattern that\nresembles a wheel or a gear, placed on a green textured surface. There doesn’t appear to be any obvious\nanomaly in the image; it seems to be a simple photograph of an object against a background. If there is\nsomething specific you are referring to as an anomaly,\nplease provide more details or clarify what aspect you\nare questioning.\n\nOurs\n\nYes, there is an anomaly in the image. The pasta wheel\nhas a noticeable crack on its lower right side, disrupting its otherwise smooth and continuous surface.\n\nIn-the-Wild Example: Graffitied Road Sign\n\nUser\n\nDescribe the anomaly in the image.\n\nAnomaly-OV\n\nThe anomaly in the image is the graffiti on the highway sign, which includes black spray paint marks and\nscribbles over the word ’Seattle’ and other parts of the\nsign.\n\nUser\n\nWhat is the reason for the anomaly?\n\nAnomaly-OV\n\nThe graffiti is likely the result of vandalism, where individuals have used spray paint to deface public property\nfor personal expression or as a form of protest.\n\nUser\n\nHow does the anomaly affect the functionality of the\nobject?\n\nAnomaly-OV\n\nThe graffiti affects the sign’s functionality by potentially obstructing the visibility of important information, such as the word ’Seattle,’ which could confuse\ndrivers and lead to navigational errors.\n\nTable 12. Additional results on VisA-D&amp;R (Fryum).\n\nCashew Example: Brown Spot\n\nUser\n\nDoes the image contain any anomaly?\n\nGPT-4o\n\nThe image shows a cashew nut on a textured black\nsurface. There are no visible anomalies; the cashew\nappears normal.\n\nLLaVA-OV\n\nBased on the image provided, there are no visible\nanomalies. The object appears to be a single, intact\ncashew nut with a smooth surface and a natural brown\ncoloration that is typical for cashews. There are no\nsigns of damage, such as cracks or holes, and the background does not show any irregularities that would\nsuggest an anomaly in the context of the image.\n\nOurs\n\nYes, there is a noticeable anomaly on the cashew nut:\na small brown spot located near the center of the nut.\n\nUser\n\nHow to avoid the anomaly in the future?\n\nAnomaly-OV\n\nTo avoid such anomalies, regular maintenance and\ncleaning of signs should be implemented. Additionally, community awareness programs can help reduce\nvandalism by promoting respect for public property.\n\nTable 14. In-the-wild results for an unseen object (Road Sign).\n\nTable 13. Additional results on VisA-D&amp;R (Cashew).\n\n18\n\n\fFailure Example 1: Wrong Classification\n\nUser\n\nIs there any anomaly visible in the image?\n\nAnomaly-OV\n\nYes, there is a noticeable anomaly on the soap bar: a\nhole with jagged edges located towards the left side.\n\nFailure Example 2: General Description\n\nUser\n\nAre there any anomalies present in the image with the\nset of candles?\n\nAnomaly-OV\n\nYes, there is an anomaly present in the top right candle.\nIt has a noticeable crack on its surface, which is not\ntypical for a smooth, intact candle.\n\nFailure Example 3: Wrong Reasoning\n\nUser\n\nAre there any anomalies in the image?\n\nAnomaly-OV\n\nYes, the anomaly in the image is the absence of a\ncrystal oscillator on the HC-SR04 ultrasonic sensor\nmodule.\n\nTable 15. Failure results of Anomaly-OV on VisA-D&amp;R.\n\n19\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"