"<!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>Reasoning-Driven Anomaly Detection and Localization\nwith Image-Level Supervision\n\n1\n\nYizhou Jin1,2 Yuezhu Feng1 Jinjin Zhang1 Peng Wang1 Qingjie Liu1,2 * Yunhong Wang1,2 *\nState Key Laboratory of Virtual Reality Technology and Systems, Beihang University, Beijing, China\n2\nHangzhou Innovation Institute, Beihang University, Hangzhou, China\n\narXiv:2603.27179v1 [cs.CV] 28 Mar 2026\n\n{yizhou.jin, fengyz, jinjin.zhang, pengwang717, qingjie.liu, yhwang}@buaa.edu.cn\n\nAbstract\nMultimodal large language models (MLLMs) have recently\ndemonstrated remarkable reasoning and perceptual abilities for anomaly detection. However, most approaches remain confined to image-level anomaly detection and textual\nreasoning, while pixel-level localization still relies on external vision modules and dense annotations. In this work,\nwe activate the intrinsic reasoning potential of MLLMs to\nperform anomaly detection, pixel-level localization, and\ninterpretable reasoning solely from image-level supervision, without any auxiliary components or pixel-wise labels. Specifically, we propose Reasoning-Driven Anomaly\nLocalization (ReAL), which extracts anomaly-related tokens from the autoregressive reasoning process and aggregates their attention responses to produce pixel-level\nanomaly maps. We further introduce a Consistency-Guided\nReasoning Optimization (CGRO) module that leverages reinforcement learning to align reasoning tokens with visual attentions, resulting in more coherent reasoning and\naccurate anomaly localization. Extensive experiments on\nfour public benchmarks demonstrate that our method significantly improves anomaly detection, localization, and\ninterpretability. Remarkably, despite relying solely on\nimage-level supervision, our approach achieves performance competitive with MLLM-based methods trained under dense pixel-level supervision. Code is available at\nhttps://github.com/YizhouJin313/ReADL.\n\n1. Introduction\nAnomaly detection aims to identify and locate anomalous\nregions within images, which plays a critical role in industrial inspection. Traditional industrial anomaly detection methods [13, 22, 28, 31, 35, 41, 45, 47, 49] are typically designed for single-product scenarios and require a\nlarge number of normal samples to train product-specific\n* Joint corresponding authors.\n\nmodels. While effective under controlled conditions, these\nmethods face limitations in real-world settings that involve\nstrict data privacy constraints or frequent shifts in production lines [18].\nRecent advances in multimodal large language models (MLLMs) have shown strong multimodal understanding and generation capabilities, opening new possibilities\nfor industrial anomaly detection [24]. MMAD [17] established an evaluation benchmark for MLLMs in IAD, and\nAnomaly-OV [46] further curated large-scale instructiontuning datasets with chain-of-thought annotations, enabling\nMLLMs to generate human-aligned explanations for industrial defects. Building on these resources, several methods have adapted MLLMs to industrial anomaly detection.\nHowever, most existing approaches [26, 27] remain confined to image-level anomaly detection and textual reasoning. Pixel-level localization, which is essential for actionable inspection, still relies on external vision modules.\nFor instance, AnomalyGPT [11] employs a pretrained vision expert to generate anomaly maps. EIAD [52] predicts\nanomaly bounding boxes and refines them with SAM [20]\nto obtain segmentation masks. These staged designs depend on external, non-differentiable modules and often suffer from error propagation, misalignment between reasoning and localization, and increased deployment complexity.\nTo mitigate these issues, OmniAD [53] introduces a textas-mask encoding scheme that predicts segmentation masks\nvia text tokens, providing a more unified end-to-end framework for anomaly detection, localization, and visualization.\nNevertheless, such end-to-end methods still rely on dense\nsupervision, including pixel-level masks and high-quality\nreasoning annotations. Collecting this supervision is costly,\nsensitive to domain-specific bias, and can limit generalization to novel products and defect types.\nIn this work, we propose a reasoning-driven framework\nthat unlocks the intrinsic anomaly understanding capacity\nof MLLMs. Our model performs joint anomaly detection,\npixel-level localization, and interpretable reasoning under\npure image-level supervision, without any auxiliary vision\n\n\fmodules or pixel-level annotations. We design ReasoningDriven Anomaly Localization (ReAL) to extract anomalyrelevant tokens from the autoregressive reasoning process\nand to construct pixel-level anomaly maps from their visual attentions. We further introduce Consistency-Guided\nReasoning Optimization (CGRO), which employs a reasoning–localization consistency reward to guide reinforcement\nlearning and align reasoning tokens with their corresponding visual attentions. Together, these components enable a\nsingle MLLM to produce anomaly-aware reasoning and accurate localization using only image-level supervision.\nOur contributions can be summarized as follows:\n• We propose an end-to-end MLLM framework for\nanomaly understanding that unifies anomaly detection,\npixel-level localization, and diagnostic reasoning, without relying on external vision modules or pixel-level annotations.\n• We introduce ReAL for reasoning-guided localization\nand CGRO for consistency-aware reinforcement learning.\nTogether, they align textual reasoning with visual attention and enhance anomaly detection, localization, and interpretability under pure image-level supervision.\n• We show that, despite using only image-level supervision,\nour method achieves localization performance comparable to dense-supervision MLLM approaches on multiple\nbenchmarks, demonstrating the effectiveness of the proposed framework.\n\n2. Related Work\n2.1. Traditional Industrial Anomaly Detection\nTraditional industrial anomaly detection methods are predominantly unsupervised and can be grouped into three\ncategories: reconstruction-based methods [13, 28, 47],\nwhich detect anomalies via reconstruction errors; featureembedding methods [22, 31, 45], which measure deviations\nfrom normal feature distributions; and synthetic anomaly\nmethods [35, 41, 49], which approximate decision boundaries by generating artificial defects. Despite their effectiveness, these approaches require large normal datasets and\nproduct-specific training, resulting in high computational\nand deployment costs.\nTo reduce data dependency, zero-shot and few-shot approaches leverage multimodal models for anomaly detection without extensive normal data. In zero-shot anomaly\ndetection (ZSAD), most methods build upon CLIP [38] to\nalign image and text representations for anomaly scoring.\nFor example, WinCLIP [16] designs handcrafted prompt\ntemplates and extracts multi-level features for localization.\nOther CLIP-based methods improve textual guidance via\nprompt tuning [5, 33, 54] or representation refinement [10,\n39]. Beyond CLIP-based paradigms, LogSAD [51] leverages MLLMs to generate matching proposals and model\n\ncompositional reasoning for training-free anomaly detection. Despite these advances, most methods still lack explicit modeling of interpretable cues such as anomaly categories, visual semantics, and causal factors [46], and remain\nlimited by the reasoning capacity of their underlying models.\n\n2.2. MLLMs on Industrial Anomaly Detection\nRecent advances have enabled MLLMs [24] to incorporate task-specific modules for vision-centric tasks. However, existing benchmarks differ from industrial anomaly\ndetection (IAD), which requires deeper product understanding and domain-specific reasoning. MMAD [17] establishes a comprehensive benchmark for evaluating MLLMs\nin industrial inspection, while Anomaly-OV [46] introduces the first visual instruction tuning dataset for ZSAD.\nIAD-R1 [27] enhances inference through two-stage posttraining with chain-of-thought reasoning, AD-FM [29] reduces GRPO variance via multi-stage reasoning and refined rewards, and Triad [26] proposes a manufacturingoriented IAD paradigm. Despite these efforts, MLLM-only\napproaches still struggle with precise pixel-level localization.\nTo integrate MLLMs into visual localization tasks, existing approaches typically leverage visual localization\ndatasets during training and incorporate additional modules\nto extract localization information. For instance, LISA[21]\nemploys a special [SEG] token to prompt a segmentation mask decoder, such as SAM [20], thereby improving\nreasoning-based segmentation performance. The LVLMbased training-free visual grounding framework [19] directly leverages LVLM and achieves competitive segmentation performance. Some studies have adapted MLLMs\nfor anomaly segmentation and localization by using supplementary visual modules. AnomalyR1 [6] first predicts bounding box coordinates for anomaly detection and\nsubsequently employs SAM to convert them into pixellevel masks. EIAD [52] introduces a real-world abnormal\nmultiple-choice QA dataset and performs segmentation via\nthe [SEG] token, inspired by LISA. For anomaly localization, AnomalyGPT [11], Myriad [25], and VELM [34] integrate auxiliary visual experts to provide fine-grained semantic information. These approaches introduce additional loss\nfunctions and architectural modifications, which increase\nthe complexity of the processing pipeline and hinder scalability.\nRecently, end-to-end anomaly detection has been explored by OmniAD [53], which employs a hybrid decoder\ncombining self-attention and deep convolution to learn normal patterns both locally and globally. Nevertheless, such\nmethods rely heavily on high-quality reasoning annotations\nand pixel-level masks, leading to substantial labeling costs\nand restricted generalization.\n\n\fAre there any defects or anomalies in the test image?\n&lt;think&gt; ...The image appears to be a close-up of a circular object, possibly the\ntop of a bottle or container... a noticeable scratch or mark on the surface near\nthe center...compared to the otherwise smooth and uniform appearance of the\nrest of the surface...&lt;think&gt; &lt;answer&gt;Yes&lt;answer&gt;\n\nimage\n\nclose\n\n-up\n\ncircular\n\nobject\n\ntop\n\nbottle\n\ncontainer\n\nnoticeable\n\nscratch\n\nmark\n\nsurface\n\nnear\n\ncenter\n\ncompared\n\notherwise\n\nsmooth\n\nuniform\n\nFigure 1. Visualization of token-to-patch attention maps for certain reasoning tokens. Only a small subset of tokens (highlighted\nin red) exhibits focused attention on the true anomaly regions (red\nboxes), and these tokens are also semantically related to anomaly\nconcepts (e.g., “scratch”, “mark”).\n\n3. Anomaly Localization with MLLMs\nRecent studies have shown that the attention mechanism\nof MLLMs inherently captures how visual and textual information interact to generate output tokens [32, 36]. In\nMLLM-based anomaly detection, given a test image and\ntext prompts, the model typically produces a reasoning\nprocess that includes a global scene description, anomalyrelated analysis, and a tentative conclusion, and then outputs the final answer. This raises a key question: when\nthe model is generating the reasoning process, especially\nthe tokens that describe anomalies, can we extract how the\nMLLM “focuses” on anomalous regions and leverage this\nfocus for pixel-level anomaly localization?\nSpecifically, MLLMs take two inputs: an image Xv\nand text prompts Xt . The text Xt consists of a system prompt and a user question. The system prompt defines how the model should respond, guiding it to first\ngenerate a reasoning process and then provide a final\nanswer. In this task, the user question remains fixed\nas: Are there any defects or anomalies in\nthe image? The image Xv is divided into P ×P patches\nand projected into visual embeddings Ev , while the text Xt\nis tokenized into embeddings Et . The concatenated embeddings [Ev ; Et ] are fed into the transformer-based MLLM,\nwhich autoregressively generates the output token sequence\no\nT = {tr }nr=1\n, where no is the number of generated tokens.\nDecoding T yields the output text Y , which contains first\nthe reasoning process and then the final answer.\nWithin each transformer block, multi-head self-attention\nmodels pairwise dependencies among all tokens. In layer\nℓ and head h, the hidden states are projected into query Q,\n\nkey K, and value V ∈ R(P ×P +ni )×d matrices where ni\nis the number of input text tokens. The attention map is\ncomputed as:\n\u0013\n\u0012\nQK ⊤\n,\n(1)\nAttnℓ,h (Z ℓ−1 ) = softmax √\ndh\nwhich measures the similarity between queries and keys.\nFor each decoding step, we aggregate across all heads and\nlayers to obtain a global multimodal attention matrix A ∈\nRN ×N , where N = P ×P +ni +no . A encodes interactions\namong Ev , Et and T .\nTo investigate the impact of reasoning tokens, we visualize the token-to-patch attention map Ar,I for each reasoning token tr , computed as the average over all layers and\nheads. As shown in Fig. 1, only a small fraction of reasoning tokens are capable of providing tangible and precise\nanomaly-aware spatial cues, and these tokens can in principle be used for anomaly localization. By inspection, we observe that such anomaly-relevant tokens are often associated\nwith anomaly-related semantics (e.g., “scratch”, “mark”).\nHowever, without explicit supervision, identifying these informative tokens remains nontrivial, since the majority of\nreasoning tokens attend diffusely or focus on irrelevant regions, which in turn dilutes localization accuracy. This observation motivates two further questions. First, can we\nautomatically discover anomaly-relevant reasoning tokens\nand harness their attention patterns for pixel-level anomaly\nlocalization? Second, since the reasoning process already\nshows latent spatial grounding ability, can we deliberately\nactivate this intrinsic reasoning potential to jointly improve\nanomaly detection, localization, and interpretability under\nlimited supervision?\n\n4. Method\nTo answer these questions, we propose a reasoningdriven framework that leverages the intrinsic perception\nand reasoning abilities of MLLMs to achieve end-to-end\nanomaly detection and localization under limited supervision, as illustrated in Fig. 2. Specifically, we propose\nReasoning-Driven Anomaly Localization (ReAL), which\nextracts anomaly-related tokens from the autoregressive\nreasoning process and aggregates their attention responses\nto produce pixel-level anomaly maps. We further introduce\na Consistency-Guided Reasoning Optimization (CGRO)\nmodule that leverages reinforcement learning driven by a\nreasoning–localization consistency reward to align reasoning tokens with visual attentions, resulting in more coherent\nreasoning and accurate anomaly localization.\n\n4.1. Reasoning-Driven Anomaly Localization\nIdentifying anomaly-relevant reasoning tokens. To distinguish reasoning tokens most relevant to anomaly local-\n\n\fTraining\nAre there any defects or anomalies in\nthe test image?\n\nInference\n\nReAL\n\nsample 1\n\n...\n\nMLLM\n\ntoken\n\nrid\n( 0.23,0.45)\n\nsplit\n\ncrack\n\ndefect\n\n( 0.99,0.98)\n\n( 0.97,0.99)\n\n( 0.97,0.99)\n\nnut\n( 0.45,0.67)\n\nAggregation\n\nsample 2\nsample 1 : &lt;think&gt;…has some natural ridges and a small split\nor crack …The presence of the crack indicates a defect in\nthe hazelnut.&lt;/think&gt; &lt;answer&gt;Yes&lt;/answer&gt;\n\n...\n\ns\ntoken\n\nsample 2 : &lt;think&gt;…The nut is oval-shaped with a\ntextured …The texture and color of the nut are consistent\nwith a healthy hazelnut.&lt;think&gt;&lt;answer&gt; Yes&lt;/answer&gt;\n\n...\n\nnut\n\noval\n\n-shaped\n\ntexture\n\ncolor\n\n( 0.35,0.21)\n\n( 0.43,0.37)\n\n( 0.51,0.34)\n\n( 0.41,0.32)\n\n( 0.23,0.19)\n\nsample n\n\n...\n\n...\n\nsample n : &lt;think&gt;…without any cracks,…,and there are no\nsigns of mold or rot…The hazelnut in the image appears to\nbe in good condition . &lt;answer&gt;No\nsample 1\n\ntoken\n\ncracks\n\nsigns\n\nmold\n\nrot\n\nhaz\n\n( 0.19,0.24)\n\n( 0.13,0.16)\n\n( 0.14,0.13)\n\n( 0.14,0.16)\n\n( 0.33,0.27)\n\nsample 2\n\nsample n\n\nCGRO\n\n...\nЈ = 0.76 , prediction:’Yes’\n\nЈ = 0.13 , prediction:’Yes’\n\nRfmt = 1 Racc = 1 Rcons = 1\n\nRfmt = 1 Racc = 1 Rcons = 0\n\nЈ = 0.02 , prediction:’No’\n\n...\n\nRfmt = 0 Racc = 0 Rcons = 0\n\n&lt;think&gt;The image shows a\nsingle hazelnut against a dark\nbackground. Upon closer\ninspection, there is a visible\ncrack or split near the top of\nthe hazelnut's shell. This\ncould be considered an\nanomaly as it deviates from\nthe typical smooth surface\nof a healthy hazelnut.The\npresence of the crack\nindicates a defect in the\nhazelnut. &lt;/think&gt;\n&lt;answer&gt;Yes&lt;/answer&gt;\n\nFigure 2. Overview of the proposed reasoning-driven anomaly detection framework. Given an input image, the MLLM generates a\nreasoning process and a final anomaly answer. The ReAL module selects anomaly-related tokens based on semantic relevance ST and\nspatial entropy SI , then aggregates their visual attentions to obtain a pixel-level anomaly map. During training, these selected tokens are\nfurther used by the CGRO module to leverage reinforcement learning jointly driven by a reasoning–localization consistency reward and\nR1-based accuracy and format rewards, enabling the model to align reasoning tokens with their corresponding visual attentions while\nsimultaneously improving reasoning correctness, structural quality, and anomaly localization accuracy.\n\nization, we evaluate each token from two complementary\nperspectives:\nInter-modality semantic relevance. This criterion measures how closely each reasoning token tr is related to the\nconcept of anomaly. We compute the semantic relevance\nscore STr by evaluating the attention of tr towards anomalyrelated tokens in the input text (e.g., defect, anomaly or abnormal). The score is computed as:\nX\nSTr =\nAr,e ,\n(2)\ne∈Ea\n\nwhere Ea denotes the set of anomaly-related tokens in the\ntextual input, and Ar,e represents the attention weight from\nreasoning token tr to token e. A higher STr indicates\nstronger semantic relevance to anomalous concepts.\nIntra-modality attention concentration. To assess how focused a token’s attention is on specific image regions, we\ncompute the spatial entropy score SIr , which quantifies the\nconcentration of attention across the image. A more concentrated attention implies the token is focusing on distinct,\nlocalized regions (such as anomalies), while a dispersed attention indicates a broader focus. To compute SIr , we first\nbinarize the visual attention map Ar,I by assigning a value\n\nof 1 to attention values above the threshold and 0 to those\nbelow. Next, we identify connected components C, where\neach component consists of neighboring pixels connected\nvia 8-neighbors. The score is then calculated as:\nSIr = −\n\nN\nX\n\nP (Ci ) log P (Ci ),\n\n(3)\n\ni=1\n\nwhere P (Ci ) is the proportion of the total attention mass\nin component Ci . Lower values of SIr indicate more concentrated attention, suggesting that the token is focusing on\nspecific regions of the image, such as anomalies.\nBy jointly considering these two criteria, we can reliably\nlocate reasoning tokens that are both semantically associated with anomalies and visually concentrated on distinct\nregions, enabling pixel-level anomaly localization.\nAggregating the reasoning-driven anomaly map. For\neach token r, we compute its semantic relevance STr and the\nvisual concentration score SIr , normalize them to ŜTr and ŜIr\n(with inverse normalization for SIr , so a higher ŜIr indicates\nlower entropy). Tokens are retained if they satisfy ŜTr &gt; τt\nand ŜIr &gt; τi , where the latter condition selects tokens with\nlow spatial entropy and high semantic relevance to anomaly\n\n\fconcepts. The composite token weight wr is defined as:\ni\nh\nwr = 1{Ŝ r &gt;τt , Ŝ r &gt;τi } αŜTr + β ŜIr ,\nT\n\nI\n\n(4)\n\nwhere α and β balance the contributions of semantic and\nvisual information.\nFinally, we aggregate the visual attention maps Ar,I\nof the remaining filtered reasoning tokens, weighted by\ntheir corresponding wr , to generate the reasoning-driven\nanomaly map:\nARDAM =\n\nX\n\nwr · Ar,I .\n\n(5)\n\nr\n\nThis aggregated map highlights the regions that receive the\nmost attention from the most relevant reasoning tokens, allowing end-to-end anomaly localization.\n\n4.2. Consistency-Guided Reasoning Optimization\nWith ReAL, the model can already produce pixel-level\nanomaly maps from reasoning tokens, which makes endto-end anomaly localization possible without additional vision modules. However, most MLLMs cannot accurately\nlocate and describe anomalies in the image without explicit\nhuman involvement [46]. In practice, many MLLM-based\nanomaly methods enhance performance by using largescale instruction-tuning datasets tailored for anomaly detection, and pixel-level localization is often improved further\nthrough training with dense pixel-level annotations. While\neffective, such supervision is costly and may introduce domain bias, limiting generalization to novel products and\ndefect types. Therefore, we adopt a reinforcement learning framework that relies only on image-level supervision,\nwhich is relatively easy to collect in industrial settings. Instead of relying on dense pixel-level annotations, the model\nlearns by reflecting on its own predictions, gradually improving its anomaly perception and its ability to attend to\nthe correct regions. Under limited supervision, however, the\nreasoning generation of MLLMs lacks explicit constraints\nand can become inconsistent. For example, the model may\ncorrectly answer that an anomaly exists, while its reasoning\nstill describes the image as normal. Such mismatches lead\nto unreliable interpretations and weaken the effectiveness of\nReAL-based localization.\nTo address this issue, we propose Consistency-Guided\nReasoning Optimization (CGRO), which leverages reinforcement learning driven by a reasoning–localization consistency reward to align reasoning tokens with visual attentions, resulting in more coherent reasoning and accurate\nanomaly localization.\nConsistency reward. Based on the obtained weights w, we\ncan identify the reasoning tokens most relevant to anomaly\nlocalization. The core idea is that, for anomaly images,\n\nthese tokens should consistently focus on the regions corresponding to the anomalies, with visual attention concentrated in those areas. In contrast, for normal images, the\nattention should be more dispersed across the image, avoiding a focus on any specific region.\nConcretely, we first select the top-t reasoning tokens\nranked by composite weight w. For each selected token r,\nthe 95th percentile of its visual attention map Ar,I is used\nas the threshold; spatial positions above this value are set to\n1 and the rest to 0, yielding a binary support region Ωr . The\nspatial consensus among these tokens is then measured by\nthe Jaccard Index:\nTt\nΩr\n,\n(6)\nJ = Sr=1\nt\nr=1 Ωr\nwhere J ∈ [0, 1]: larger values indicate that these tokens\nfocus on highly overlapping regions, while smaller values\nindicate more dispersed or inconsistent attention. To encourage different behaviors for anomalous and normal images, we design a class-conditional consistency reward. For\nanomaly images y = 1, we encourage high spatial consensus to promote coherent localization of defects; for normal\nimages y = 0, we encourage low spatial consensus to discourage spurious concentration on benign regions. This is\nimplemented with a single indicator-based reward:\nRcons = y · 1((J) &gt; δ1 ) + (1 − y) · 1((J) &lt; δ2 ),\n\n(7)\n\nwhere δ1 and δ2 are thresholds for anomaly and normal images, respectively, and 1(·) denotes the indicator function.\nTraining procedure. The model is optimized under the total reward defined as:\nRtotal = Rfmt + Racc + Rcons .\n\n(8)\n\nwhere Rfmt ensures well-structured outputs (i.e., reasoning\nfollowed by an answer), Racc promotes correct image-level\nanomaly predictions, and Rcons enforces consistency between reasoning and visual evidence.\nFollowing the group-based policy optimization [12],\ngiven a question–answer pair (q, a), we sample a group of\nG responses {oi }G\ni=1 from the previous policy πθold . We update the policy by maximizing a clipped surrogate with a\nKL penalty:\n\"\nJ (θ) = E(q,a)∼D, {oi }∼πθold\n\nG\n\u0010 π (o | q)\n1 X\u0010\nθ i\nmin\nai ,\nG i=1\nπθold (oi | q)\n\n#\n\u0010\n\u0011 \u0011\n\u0011\nπθ (oi |q)\nclip πθ (oi |q) , 1 − ε, 1 + ε ai − β DKL (πθ ∥πref ) ,\nold\n\n(9)\n\nwhere ai denotes the normalized advantage of each sample:\nai =\n\nri − mean({r1 , . . . , rG })\n.\nstd({r1 , . . . , rG })\n\n(10)\n\n\fThrough this optimization, the model learns to produce outputs that are well-formatted, accurate, and visually consistent. The integration of the consistency reward enables the\nmodel to regulate its own reasoning process, resulting in\nreasoning that is semantically coherent, visually grounded,\nand more reliable for anomaly detection and localization.\n\n5. Experiments\n5.1. Experimental Settings\nFor training, we curate a dataset of 4K industrial images\ncollected from multiple public anomaly detection benchmarks, including VisA [56], GoodsAD [50], Vision [2], PRREAL [37], Real-IAD [44], and BSData [40]. Each image is annotated only at the image level (normal/anomaly),\nproviding weak supervision for reinforcement learning finetuning under the proposed consistency-guided optimization.\nEvaluation details. To comprehensively evaluate the performance of our approach, we select four representative\ndatasets: MVTec-AD [4], WFDD [7], SDD [42] and\nDTD [1]. These datasets simulate complex real-world industrial production scenarios, encompassing diverse materials, anomaly categories and operational environments.\nWe adopt the zero-shot industrial anomaly detection setting, where the model is trained exclusively on the auxiliary\ndataset without any overlap with the target test domains.\nThis setup rigorously tests the generalization ability of the\nmodel to unseen anomaly categories and domains.\nFor quantitative evaluation, we employ standard metrics including AUROC, AUPR and ACC, which jointly assess the model’s capability to distinguish between normal\nand anomalous instances at both global and local levels.\nIn addition, to measure the quality and interpretability of\nthe generated reasoning, we construct a COT-evaluation\ndataset based on MVTec-AD, following the VisionR1 [14]\nparadigm. Each test image is paired with its corresponding ground-truth anomaly description synthesized from official annotations and expert-written explanations, forming\nthe MVTec-COT benchmark. The generated reasoning is\nthen evaluated using SBERT and ROUGE-L scores, which\nrespectively capture semantic alignment with reference explanations and textual fidelity in terms of content overlap\nand recall. Together, these metrics comprehensively evaluate detection accuracy and reasoning faithfulness, enabling\nsystematic assessment of interpretable anomaly understanding under image-level supervision.\nImplementation details. Our framework is implemented\non top of Qwen2.5-VL-7B [3], a state-of-the-art opensource multimodal large language model that achieves an\neffective balance between reasoning capability, visual understanding, and computational efficiency. To ensure uniform processing across datasets, all images are resized to\n420×420 pixels during both training and inference. During\n\nfine-tuning, we adopt LoRA adaptation on the language and\ncross-modal layers while keeping the vision encoder frozen\nto preserve the pretrained visual representations. Each\ntraining batch consists of 16 samples, and for each input, 8\ncandidate generations are sampled per iteration to facilitate\ngroup-based reinforcement optimization. All experiments\nare conducted on two NVIDIA A6000 GPUs.\nComparison baselines. We compare three families of approaches: commercial MLLMs, open-source MLLMs, and\nspecialized anomaly detection frameworks. Commercial\nand open-source MLLMs include GPT-4o [15], GPT-4.1,\nGPT-5-nano, Gemini-2.5-Flash [9], InternVL-2.5 [8] and\nInternVL-3 [55], MiniCPM-V-2.6 [48], LLaVA-1.6 [30],\nand LLaVA-OneVision [23], as well as Qwen-2.5/3 VL [3,\n43] variants. The specialized frameworks are divided\nby optimization strategy: SFT-optimized methods include\nAnomalyGPT [11], EIAD [52], and Triad [26], while\nreinforcement-optimized methods include IAD-R1 [27] and\nOurs. For consistency, we employ a unified prompting\nprotocol with three tiers based on model capabilities: (1)\nmodels that reliably support structured outputs are asked to\nproduce a reasoning process with predefined tags followed\nby a “Yes/No” answer; (2) models that cannot consistently\nfollow tagged formats but can generate coherent reasoning are asked to produce a reasoning process followed by\na “Yes/No” answer; (3) models with limited reasoning capability are asked to state whether an anomaly exists and\nbriefly justify it.\nReproduction protocol. Triad [26], AnomalyGPT [11],\nand EIAD [52] are reproduced from their official codebases\nand evaluated on our benchmark. For EIAD [52], the model\nis instructed to output the reasoning and the final answer together with a predicted anomaly bounding box; this box is\npassed to a pretrained SAM [20] to produce a segmentation mask, which serves as the anomaly map for pixel-level\nmetrics. IAD-R1 [27] is not open-sourced at the time of our\nexperiments, so we report its results directly from the original paper, matching datasets and metrics where available.\n\n5.2. Experiment Performance\nTab. 1 presents a comprehensive comparison across imagelevel detection, pixel-level localization, and reasoning quality. Trained exclusively with image-level labels via reinforcement learning, Our model achieves the highest reasoning scores among all competitors, demonstrating its\nstrong ability to generate coherent, anomaly-aware explanations. For image-level detection, our model achieves\nstrong performance, with ACC reaching the second-best\naverage across all datasets, ranking only behind GPT-4.1\nwhile using significantly less supervision. Most MLLMs\nreport ‘N/A’ for pixel-level metrics because they can output\nonly text and cannot produce anomaly maps without external vision components. EIAD [52] and AnomalyGPT [11]\n\n\fTable 1. Comparison of image-level and pixel-level detection performance and reasoning performance under zero-shot settings. Detection\nresults are reported as (AUROC, ACC), and reasoning results as (ROUGE-L, SBERT). The column ‘Anno.’ denotes the supervision\ntype used in training, where ‘I’ represents image-level supervision, ‘P’ denotes pixel-level annotations, and ‘T’ indicates task-specific\ninstruction-tuning data designed for anomaly detection. * indicates anomaly maps are generated with ReAL.\nModel\n\nParam.\n\nImage-level\n\nAnno.\n\nPixel-level\n\nReasoning\n\nAVG\n\nSDD\n\nDTD\n\nWFDD\n\nMVTec\n\nAVG\n\nSDD\n\nDTD\n\nWFDD\n\nMVTec\n\nMVTec-COT\n\nGPT-4o-mini [15]\nGPT-4o [15]\nGPT-4.1\nGPT-5-nano\nGemini-2.5-Flash [9]\n\n/\n/\n/\n/\n/\n\n/\n/\n/\n/\n/\n\n70.9, 71.4\n79.4, 85.3\n87.2, 88.4\n80.3, 81.6\n79.9, 76.3\n\n66.2, 92.8\n77.5, 90.7\n84.4, 92.1\n82.6, 88.6\n71.8, 49.5\n\n79.4, 70.3\n89.2, 90.2\n94.3, 94.3\n90.4, 87.2\n88.6, 91.3\n\n66.4, 63.5\n78.2, 78.6\n86.8, 86.0\n80.2, 79.7\n82.6, 82.2\n\n71.5, 59.0\n72.7, 81.7\n83.3, 81.2\n68.0, 70.7\n76.5, 82.3\n\nN/A\nN/A\nN/A\nN/A\nN/A\n\nN/A\nN/A\nN/A\nN/A\nN/A\n\nN/A\nN/A\nN/A\nN/A\nN/A\n\nN/A\nN/A\nN/A\nN/A\nN/A\n\nN/A\nN/A\nN/A\nN/A\nN/A\n\n19.0, 65.2\n19.9, 60.4\n20.8, 69.9\n14.0, 50.0\n17.6, 68.1\n\nLLaVA-OneVision-SI [23]\nLLaVA-OneVision-OV [23]\nLLaVA-1.6 [30]\nQwen2.5-VL [3]\nQwen2.5-VL [3]\nQwen2.5-VL [3]\nQwen2.5-VL [3]\nQwen3VL-thinking [43]\nQwen3VL-thinking-A3B [43]\nInternVL-2.5 [8]\nInternVL-3 [55]\nMiniCPM-V-2.6 [48]\n\n7B\n7B\n7B\n3B\n7B\n32B\n72B\n8B\n30B\n8B\n78B\n8B\n\n/\n/\n/\n/\n/\n/\n/\n/\n/\n/\n/\n/\n\n78.3, 75.7\n78.5, 81.4\n62.9, 63.5\n52.9, 56.6\n63.4, 63.3\n74.6, 71.9\n81.1, 80.4\n78.8, 73.0\n82.6, 78.7\n69.8, 72.9\n81.0, 83.4\n70.3, 70.6\n\n65.5, 67.8\n68.1, 94.7\n67.0, 50.4\n46.3, 69.9\n65.0, 93.8\n82.4, 90.1\n84.5, 95.6\n70.5, 52.1\n69.5, 55.3\n63.7, 96.3\n82.5, 88.6\n70.2, 97.1\n\n91.5, 89.9\n92.4, 89.1\n70.2, 74.2\n64.1, 51.3\n68.3, 56.2\n81.0, 73.0\n91.2, 87.6\n94.6, 92.3\n96.4, 94.9\n81.0, 72.8\n91.4, 92.0\n76.8, 66.3\n\n77.0, 75.0\n75.5, 73.4\n59.5, 60.6\n50.0, 52.3\n60.5, 57.2\n68.4, 70.5\n74.5, 72.8\n75.7, 74.3\n85.5, 84.5\n65.9, 63.1\n75.2, 75.9\n67.0, 64.2\n\n79.4, 70.1\n77.8, 68.5\n54.8, 68.9\n51.0, 52.8\n59.6, 45.8\n66.5, 54.0\n74.1, 65.5\n74.4, 73.5\n79.0, 80.2\n68.7, 59.3\n74.7, 77.2\n67.0, 54.8\n\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\n\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\n\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\n\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\n\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\nN/A\n\n10.5, 39.1\n23.7, 70.5\n18.6, 54.2\n16.8, 49.0\n20.8, 65.5\n20.0, 66.1\n21.1, 67.5\n19.3, 61.9\n16.9, 58.9\n19.7, 57.5\n22.2, 70.1\n21.7, 68.3\n\nTriad [26]\nIAD-R1(Qwen2.5-VL) [27]\nIAD-R1(Qwen2.5-VL) [27]\nAnomalyGPT [11]\nEIAD [52]\n\n7B\n3B\n7B\n7B\n7B\n\nT+I\nT+I\nT+I\nT+I+P\nT+I\n\n85.5, 83.8\n/, /\n/, /\n71.1, 53.9\n68.4, 73.3\n\n79.8, 68.1\n/,83.4\n/, 85.4\n72.7, 13.0\n52.7, 87.2\n\n95.2, 95.4\n/, 89.1\n/, 90.8\n75.7, 74.2\n83.4, 74.8\n\n82.5, 82.4\n/, /\n/, /\n71.0, 56.2\n59.6, 56.1\n\n84.7, 89.4\n/, 77.6\n/, 81.9\n65.1, 72.2\n77.7, 75.2\n\nN/A\nN/A\nN/A\n77.8, 98.4\n57.6, 91.4\n\nN/A\nN/A\nN/A\n75.1, 99.9\n52.1, 99.7\n\nN/A\nN/A\nN/A\n83.5, 98.9\n61.2, 85.9\n\nN/A\nN/A\nN/A\n72.4, 98.6\n53.7, 96.7\n\nN/A\nN/A\nN/A\n80.2, 96.4\n63.4, 83.5\n\n8.6, 35.9\n/, /\n/, /\n11.9, 36.7\n21.1, 65.7\n\nQwen2.5-VL* [3]\nQwen2.5-VL+R1* [12]\nQwen2.5-VL+CGRO*\nQwen2.5-VL* [3]\nQwen2.5-VL+R1* [12]\nQwen2.5-VL+CGRO*\n\n3B\n3B\n3B\n7B\n7B\n7B\n\n/\nI\nI\n/\nI\nI\n\n52.9, 56.6\n58.1, 60.5\n67.6, 72.4\n63.4, 63.3\n80.0, 82.0\n83.9, 86.9\n\n46.3, 69.9\n54.1, 94.8\n67.9, 82.5\n65.0, 93.8\n77.3, 97.2\n81.4, 97.0\n\n64.1, 51.3\n57.9, 38.0\n78.3, 74.4\n68.3, 56.2\n90.7, 87.2\n94.5, 93.6\n\n50.0, 52.3\n55.0, 51.2\n61.4, 59.9\n60.5, 57.2\n74.9, 74.2\n79.9, 79.8\n\n51.0, 52.8\n65.3, 57.8\n62.7, 72.6\n59.6, 45.8\n77.1, 69.3\n79.8, 77.3\n\n55.6, 57.2\n72.6, 88.0\n73.5, 94.3\n61.7, 85.6\n78.5, 96.7\n80.7, 97.1\n\n45.4, 10.6\n74.4, 99.9\n75.2, 99.8\n56.6, 99.8\n80.8, 99.8\n82.3, 99.8\n\n71.4 91.8\n85.6, 98.5\n86.1, 98.4\n76.0, 98.5\n92.7, 98.6\n94.2, 98.6\n\n52.3, 79.9\n63.2, 97.0\n62.1, 97.5\n56.5, 70.3\n67.0, 97.6\n70.5, 97.8\n\n53.4, 46.5\n67.1, 56.7\n70.6, 81.5\n57.5, 73.8\n73.6, 90.9\n75.6, 92.2\n\n16.8, 49.0\n24.2, 71.7\n25.6, 72.4\n20.8, 65.5\n26.3, 73.8\n27.1, 74.7\n\ncircumvent this limitation by introducing additional modules, such as SAM [20] in EIAD [52] and a Vision Expert in AnomalyGPT, to obtain segmentation masks or\nanomaly heatmaps. These auxiliary models make localization possible but break end-to-end inference and add system complexity. We apply ReAL to six model variants,\nspanning two model scales and three training settings: (i)\nQwen2.5-VL-3B/7B [3]: the base model without any finetuning; (ii) Qwen2.5-VL-3B/7B+R1 [12]: trained via reinforcement learning with format and accuracy rewards only;\n(iii) Qwen2.5-VL-3B/7B+CGRO: further optimized with an\nadditional consistency reward to align reasoning and visual\nattention, building upon the R1 objective. ReAL enables all\nsix models to output pixel-level anomaly maps without relying on any external segmentation or detection modules,\nachieving truly end-to-end anomaly localization. Across\nthese variants, adding CGRO leads to consistent improvements in anomaly detection, localization, and reasoning.\nQualitative comparisons. As Fig. 3 shows, Qwen2.5-VL7B exhibits limited anomaly perception, frequently missing defects or producing irrelevant reasoning, resulting in\npoor detection and localization. Reinforcement learning\nsubstantially improves the model’s anomaly sensitivity in\nQwen2.5-VL-7B+R1, as evidenced by gains in both imagelevel accuracy and reasoning relevance. However, without\nexplicit supervision on the reasoning process, the model often generates answers that contradict its rationale—for instance, predicting “anomaly present” while describing the\nimage as visually normal. This inconsistency yields diffuse\n\nThe image is a test image. Answer the\nquestion:Are there any defects or\nanomalies in the test image?\nImage\n\nGround Truth\n\n&lt;think&gt; ...There is a small, irregular shape that could be\ninterpreted as a defect or anomaly. However, without more\ncontext or a larger view, it's difficult to determine if this is a\ngenuine defect or simply a part of the design...&lt;/think&gt;\n&lt;answer&gt; No &lt;/answer&gt;\nQwen2.5-VL-7B\n&lt;think&gt;The image shows a close-up view of a textured fabric\nwith a consistent weave pattern...Upon closer inspection, the\nfabric's weave is uniform without any visible defects such as\nholes, tears, or discoloration...The image displays a uniform and\ndefect-free fabric texture. &lt;/think&gt;\n&lt;answer&gt;Yes&lt;/answer&gt;\nQwen2.5-VL-7B + R1\n&lt;think&gt;The image shows a close-up view of a woven fabric, likely\nburlap, with a consistent pattern of interlaced threads...A small,\nmetallic object, possibly a staple or a piece of hardware, is\nvisible near the top left corner of the image...The presence of\nthe metallic object introduces an anomaly in the otherwise\nuniform fabric. &lt;/think&gt;\nQwen2.5-VL-7B + CGRO\n&lt;answer&gt;Yes&lt;/answer&gt;\n\nFigure 3. Qualitative comparison of Qwen2.5-VL-7B, Qwen2.5VL-7B+R1, and Qwen2.5-VL-7B+CGRO.\n\nvisual attention and degrades the quality of ReAL-based localization. In contrast, Qwen2.5-VL-7B+CGRO aligns reasoning with visual evidence, concentrating attention on true\nanomalies. The consistent gains in both detection and localization validate that the consistency reward effectively\nenforces coherent, visually grounded reasoning.\n\n\fTable 2. Ablation on ReAL and CGRO. Vanilla denotes the original Qwen2.5-VL-7B. All metrics are macro-averaged across four\nAD datasets.\nImage-level\n\nModel\nVanilla\nVanilla + ReAL\nVanilla + CGRO\nFull\n\nImage\n\nGT\n\n(a) All tokens\n\n(b) SI\n\n(c) ST\n\n(d) SI + ST\n\nPixel-level\n\nAUROC\n\nAUPR\n\nACC\n\nAUROC\n\nAUPR\n\nACC\n\n63.4\n63.4\n83.9\n83.9\n\n59.4\n59.4\n76.7\n76.7\n\n63.3\n63.3\n86.9\n86.9\n\n64.7\n61.7\n72.7\n80.7\n\n2.6\n5.1\n5.9\n13.3\n\n73.0\n85.6\n92.6\n97.1\n\n5.3. Ablation Study\nAblation on ReAL and CGRO. We conduct an ablation\nstudy to evaluate the effectiveness of the two core modules in our framework: the Reasoning-Driven Anomaly\nLocalization (ReAL) and the Consistency-Guided Reasoning Optimization (CGRO). The base model is Qwen2.5VL-7B [3], and all metrics in Tab. 2 are averaged across\nMVTec-AD [4], WFDD [7], SDD [42] and DTD [1]. Detailed results for each dataset are provided in the Supplementary Material. Without ReAL, we average the visual\nattention of all reasoning tokens to form the anomaly map.\nThis naive aggregation blurs spatial focus and weakens localization, reducing pixel-level AUROC from 80.7 to 72.7\nand ACC from 97.1 to 92.6. With ReAL, the model selects\nanomaly-relevant reasoning tokens and aggregates their attention selectively, yielding a sharper and more accurate localization map. CGRO further enhances both detection and\nlocalization. Image-level AUROC rises from 63.4 to 83.9,\nand pixel-level AUROC increases from 61.7 to 80.7. Together, ReAL and CGRO lead to clear and consistent gains\nin all evaluation metrics, confirming the complementary\nroles of reasoning-driven localization and reasoning-visual\nalignment in our framework.\nTable 3. Ablation on token selection in ReAL. Base model is\nQwen2.5-VL-7B + CGRO. We compare different ways of filtering and aggregating reasoning tokens for pixel-level localization.\nST denotes the semantic relevance score measuring alignment with\nanomaly concepts, and SI denotes the spatial entropy score reflecting attention concentration. Results are pixel-level metrics averaged across four datasets.\nSpatial entropy SI\n\nSemantic relevant ST\n\nAUROC\n\nAUPR\n\nACC\n\n✓\n✓\n\n72.7\n74.1\n76.7\n80.7\n\n5.9\n11.8\n14.0\n13.3\n\n92.6\n89.2\n90.2\n97.1\n\n✓\n✓\n\nAblation on token selection in ReAL. Tab. 3 presents an\nablation study of our Reasoning-Driven Anomaly Localization pipeline. We report the average pixel-level localization\nperformance over the four datasets. Using all tokens without any filtering yields relatively low AUROC and ACC.\nWhen we apply SI filtering with spatial entropy, many spa-\n\nFigure 4. Visualization of different token selection used in ReAL.\nEach column shows anomaly maps generated by: (a) keeping all\ntokens (b) filtering with spatial entropy SI , (c) filtering with semantic relevance ST , (d) combining both scores with weighted aggregation. ST measures semantic alignment with anomaly-related\nconcepts, while SI measures attention concentration. Methods that\nincorporate both criteria yield more accurate anomaly maps.\n\ntially irrelevant tokens are removed and we observe clear\ngains in ACC. Applying ST filtering with semantic relevance further improves AUROC and ACC, showing the\nbenefit of retaining tokens aligned with anomaly semantics.\nFinally, adding both SI and ST using composite weights enhances overall performance, achieving an AUROC of 80.7\nand an ACC of 97.1, which confirms that the two criteria\ncontribute complementary spatial and semantic cues for selecting anomaly-relevant reasoning tokens. As illustrated\nin Fig. 4, this configuration produces cleaner and more focused anomaly maps, which supports the effectiveness of\nour token selection and weighting strategy.\n\n6. Conclusion\nWe introduced a reasoning-driven framework that achieves\nend-to-end anomaly detection and localization using only\nimage-level supervision. By extracting anomaly-relevant\nreasoning signals with ReAL and aligning the reasoning process through consistency-guided optimization, the\nmodel learns to produce coherent anomaly descriptions\nand accurate localization without pixel-level labels or external modules. Experiments across multiple benchmarks\nshow strong generalization and competitive performance\nagainst models trained with far richer supervision. These results highlight the potential of reasoning-guided multimodal\nlearning for scalable and interpretable industrial anomaly\nunderstanding. In the future, we will extend the evaluation\nto a broader range of MLLMs to further validate the generality and robustness of the proposed framework.\n\n\fAcknowledgements\nThis work is supported by Beijing Municipal Science and\nTechnology Commission, Administrative Commission of\nZhongguancun Science Park (L242105).\n\nReferences\n[1] Toshimichi Aota, Lloyd Teh Tzer Tong, and Takayuki\nOkatani. Zero-shot versus many-shot: Unsupervised texture\nanomaly detection. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pages\n5564–5572, 2023. 6, 8\n[2] Haoping Bai, Shancong Mou, Tatiana Likhomanenko, Ramazan Gokberk Cinbis, Oncel Tuzel, Ping Huang, Jiulong\nShan, Jianjun Shi, and Meng Cao. Vision datasets: A benchmark for vision-based industrial inspection. arXiv preprint\narXiv:2306.07890, 2023. 6\n[3] Shuai Bai, Keqin Chen, Xuejing Liu, Jialin Wang, Wenbin\nGe, Sibo Song, Kai Dang, Peng Wang, Shijie Wang, Jun\nTang, et al. Qwen2. 5-vl technical report. arXiv preprint\narXiv:2502.13923, 2025. 6, 7, 8\n[4] Paul Bergmann, Michael Fauser, David Sattlegger, and\nCarsten Steger. Mvtec ad–a comprehensive real-world\ndataset for unsupervised anomaly detection. In Proceedings\nof the IEEE/CVF conference on computer vision and pattern\nrecognition, pages 9592–9600, 2019. 6, 8\n[5] Yunkang Cao, Jiangning Zhang, Luca Frittoli, Yuqi Cheng,\nWeiming Shen, and Giacomo Boracchi. Adaclip: Adapting\nclip with hybrid learnable prompts for zero-shot anomaly detection. In European Conference on Computer Vision, pages\n55–72. Springer, 2024. 2\n[6] Yuhao Chao, Jie Liu, Jie Tang, and Gangshan Wu. Anomalyr1: A grpo-based end-to-end mllm for industrial anomaly\ndetection. arXiv preprint arXiv:2504.11914, 2025. 2\n[7] Qiyu Chen, Huiyuan Luo, Chengkan Lv, and Zhengtao\nZhang. A unified anomaly synthesis strategy with gradient ascent for industrial anomaly detection and localization.\nIn European Conference on Computer Vision, pages 37–54.\nSpringer, 2024. 6, 8\n[8] Zhe Chen, Weiyun Wang, Yue Cao, Yangzhou Liu, Zhangwei Gao, Erfei Cui, Jinguo Zhu, Shenglong Ye, Hao Tian,\nZhaoyang Liu, et al. Expanding performance boundaries of\nopen-source multimodal models with model, data, and testtime scaling. arXiv preprint arXiv:2412.05271, 2024. 6, 7\n[9] Gheorghe Comanici, Eric Bieber, Mike Schaekermann, Ice\nPasupat, Noveen Sachdeva, Inderjit Dhillon, Marcel Blistein, Ori Ram, Dan Zhang, Evan Rosen, et al. Gemini 2.5:\nPushing the frontier with advanced reasoning, multimodality,\nlong context, and next generation agentic capabilities. arXiv\npreprint arXiv:2507.06261, 2025. 6, 7\n[10] Tao Gong, Qi Chu, Bin Liu, Wei Zhou, and Nenghai\nYu. Fe-clip: Frequency enhanced clip model for zero-shot\nanomaly detection and segmentation. In Proceedings of the\nIEEE/CVF International Conference on Computer Vision,\npages 21220–21230, 2025. 2\n[11] Zhaopeng Gu, Bingke Zhu, Guibo Zhu, Yingying Chen,\nMing Tang, and Jinqiao Wang. Anomalygpt: Detecting in-\n\ndustrial anomalies using large vision-language models. In\nProceedings of the AAAI conference on artificial intelligence, pages 1932–1940, 2024. 1, 2, 6, 7\n[12] Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song,\nRuoyu Zhang, Runxin Xu, Qihao Zhu, Shirong Ma, Peiyi\nWang, Xiao Bi, et al. Deepseek-r1: Incentivizing reasoning\ncapability in llms via reinforcement learning. arXiv preprint\narXiv:2501.12948, 2025. 5, 7\n[13] Jia Guo, Shuai Lu, Weihang Zhang, Fang Chen, Huiqi Li,\nand Hongen Liao. Dinomaly: The less is more philosophy in\nmulti-class unsupervised anomaly detection. In Proceedings\nof the Computer Vision and Pattern Recognition Conference,\npages 20405–20415, 2025. 1, 2\n[14] Wenxuan Huang, Bohan Jia, Zijie Zhai, Shaosheng Cao,\nZheyu Ye, Fei Zhao, Zhe Xu, Yao Hu, and Shaohui Lin.\nVision-r1: Incentivizing reasoning capability in multimodal\nlarge language models. arXiv preprint arXiv:2503.06749,\n2025. 6, 2\n[15] Aaron Hurst, Adam Lerer, Adam P Goucher, Adam Perelman, Aditya Ramesh, Aidan Clark, AJ Ostrow, Akila Welihinda, Alan Hayes, Alec Radford, et al. Gpt-4o system card.\narXiv preprint arXiv:2410.21276, 2024. 6, 7, 1\n[16] 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. 2\n[17] Xi Jiang, Jian Li, Hanqiu Deng, Yong Liu, Bin-Bin Gao,\nYifeng Zhou, Jialin Li, Chengjie Wang, and Feng Zheng.\nMMAD: A comprehensive benchmark for multimodal large\nlanguage models in industrial anomaly detection. In The\nThirteenth International Conference on Learning Representations, 2025. 1, 2\n[18] Yizhou Jin, Jiahui Zhu, Guodong Wang, Shiwei Li, Jinjin\nZhang, Xinyue Liu, Qingjie Liu, and Yunhong Wang. Oner:\nOnline experience replay for incremental anomaly detection.\narXiv preprint arXiv:2412.03907, 2024. 1\n[19] Seil Kang, Jinyeong Kim, Junhyeok Kim, and Seong Jae\nHwang. Your large vision-language model only needs a few\nattention heads for visual grounding. In Proceedings of the\nComputer Vision and Pattern Recognition Conference, pages\n9339–9350, 2025. 2\n[20] Alexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao,\nChloe Rolland, Laura Gustafson, Tete Xiao, Spencer Whitehead, Alexander C Berg, Wan-Yen Lo, et al. Segment anything. In Proceedings of the IEEE/CVF international conference on computer vision, pages 4015–4026, 2023. 1, 2, 6,\n7\n[21] Xin Lai, Zhuotao Tian, Yukang Chen, Yanwei Li, Yuhui\nYuan, Shu Liu, and Jiaya Jia. Lisa: Reasoning segmentation\nvia large language model. In Proceedings of the IEEE/CVF\nConference on Computer Vision and Pattern Recognition,\npages 9579–9589, 2024. 2\n[22] Jiarui Lei, Xiaobo Hu, Yue Wang, and Dong Liu. Pyramidflow: High-resolution defect contrastive localization using\npyramid normalizing flow. In Proceedings of the IEEE/CVF\nconference on computer vision and pattern recognition,\npages 14143–14152, 2023. 1, 2\n\n\f[23] Bo Li, Yuanhan Zhang, Dong Guo, Renrui Zhang, Feng Li,\nHao Zhang, Kaichen Zhang, Peiyuan Zhang, Yanwei Li, Ziwei Liu, et al. Llava-onevision: Easy visual task transfer.\narXiv preprint arXiv:2408.03326, 2024. 6, 7\n[24] Jian Li, Weiheng Lu, Hao Fei, Meng Luo, Ming Dai, Min\nXia, Yizhang Jin, Zhenye Gan, Ding Qi, Chaoyou Fu, et al. A\nsurvey on benchmarks of multimodal large language models.\narXiv preprint arXiv:2408.08632, 2024. 1, 2\n[25] Yuanze Li, Haolin Wang, Shihao Yuan, Ming Liu, Debin\nZhao, Yiwen Guo, Chen Xu, Guangming Shi, and Wangmeng Zuo. Myriad: Large multimodal model by applying vision experts for industrial anomaly detection. arXiv preprint\narXiv:2310.19070, 2023. 2\n[26] Yuanze Li, Shihao Yuan, Haolin Wang, Qizhang Li, Ming\nLiu, Chen Xu, Guangming Shi, and Wangmeng Zuo. Triad:\nEmpowering lmm-based anomaly detection with expertguided region-of-interest tokenizer and manufacturing process. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 21917–21926, 2025. 1, 2,\n6, 7\n[27] Yanhui Li, Yunkang Cao, Chengliang Liu, Yuan Xiong,\nXinghui Dong, and Chao Huang. Iad-r1: Reinforcing consistent reasoning in industrial anomaly detection. In Proceedings of the AAAI Conference on Artificial Intelligence, pages\n6583–6591, 2026. 1, 2, 6, 7\n[28] Yufei Liang, Jiangning Zhang, Shiwei Zhao, Runze Wu,\nYong Liu, and Shuwen Pan. Omni-frequency channelselection representations for unsupervised anomaly detection. IEEE Transactions on Image Processing, 32:4327–\n4340, 2023. 1, 2\n[29] Jingyi Liao, Yongyi Su, Rong-Cheng Tu, Zhao Jin, Wenhao\nSun, Yiting Li, Xun Xu, Dacheng Tao, and Xulei Yang. Adfm: Multimodal llms for anomaly detection via multi-stage\nreasoning and fine-grained reward optimization. In Proceedings of the AAAI Conference on Artificial Intelligence, pages\n15234–15242, 2026. 2\n[30] Haotian Liu, Chunyuan Li, Yuheng Li, Bo Li, Yuanhan\nZhang, Sheng Shen, and Yong Jae Lee. Llava-next: Improved reasoning, ocr, and world knowledge, january 2024.\nURL https://llava-vl. github. io/blog/2024-01-30-llava-next,\n1(8), 2024. 6, 7\n[31] Zhikang Liu, Yiming Zhou, Yuansheng Xu, and Zilei Wang.\nSimplenet: A simple network for image anomaly detection\nand localization. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages\n20402–20411, 2023. 1, 2\n[32] Chuofan Ma, Yi Jiang, Jiannan Wu, Zehuan Yuan, and Xiaojuan Qi. Groma: Localized visual tokenization for grounding\nmultimodal large language models. In European Conference\non Computer Vision, pages 417–435. Springer, 2024. 3\n[33] Wenxin Ma, Xu Zhang, Qingsong Yao, Fenghe Tang,\nChenxu Wu, Yingtai Li, Rui Yan, Zihang Jiang, and S Kevin\nZhou. Aa-clip: Enhancing zero-shot anomaly detection via\nanomaly-aware clip. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 4744–4754,\n2025. 2\n[34] Sassan Mokhtar, Arian Mousakhan, Silvio Galesso, Jawad\nTayyub, and Thomas Brox. Detect, classify, act: Catego-\n\nrizing industrial anomalies with multi-modal large language\nmodels. In Proceedings of the Computer Vision and Pattern\nRecognition Conference, pages 4058–4067, 2025. 2\n[35] Mojtaba Nafez, Amirhossein Koochakian, Arad Maleki,\nJafar Habibi, and Mohammad Hossein Rohban. Patchguard: Adversarially robust anomaly detection and localization through vision transformers and pseudo anomalies. In\nProceedings of the Computer Vision and Pattern Recognition\nConference, pages 20383–20394, 2025. 1, 2\n[36] Zhiliang Peng, Wenhui Wang, Li Dong, Yaru Hao, Shaohan\nHuang, Shuming Ma, and Furu Wei. Kosmos-2: Grounding multimodal large language models to the world. arXiv\npreprint arXiv:2306.14824, 2023. 3\n[37] Jianjian Qin, Chunzhi Gu, Jun Yu, and Chao Zhang. Imagepointcloud fusion based anomaly detection using pd-real\ndataset. arXiv preprint arXiv:2311.04095, 2023. 6\n[38] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya\nRamesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry,\nAmanda Askell, Pamela Mishkin, Jack Clark, et al. Learning\ntransferable visual models from natural language supervision. In International conference on machine learning, pages\n8748–8763. PmLR, 2021. 2\n[39] Ylli Sadikaj, Hongkuan Zhou, Lavdim Halilaj, Stefan\nSchmid, Steffen Staab, and Claudia Plant. Multiads: Defectaware supervision for multi-type anomaly detection and segmentation in zero-shot learning. In Proceedings of the\nIEEE/CVF International Conference on Computer Vision,\npages 22978–22988, 2025. 2\n[40] Tobias Schlagenhauf and Magnus Landwehr. Industrial machine tool component surface defect dataset. Data in Brief,\n39:107643, 2021. 6\n[41] Han Sun, Yunkang Cao, Hao Dong, and Olga Fink. Unseen\nvisual anomaly generation. In Proceedings of the Computer\nVision and Pattern Recognition Conference, pages 25508–\n25517, 2025. 1, 2\n[42] Domen Tabernik, Samo Šela, Jure Skvarč, and Danijel\nSkočaj. Segmentation-based deep-learning approach for\nsurface-defect detection. Journal of Intelligent Manufacturing, 31(3):759–776, 2020. 6, 8\n[43] Qwen Team. Qwen3-vl: Sharper vision, deeper thought,\nbroader action. Qwen Blog. Accessed, pages 10–04, 2025.\n6, 7\n[44] Chengjie Wang, Wenbing Zhu, Bin-Bin Gao, Zhenye Gan,\nJiangning Zhang, Zhihao Gu, Shuguang Qian, Mingang\nChen, and Lizhuang Ma. Real-iad: A real-world multi-view\ndataset for benchmarking versatile industrial anomaly detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 22883–22892,\n2024. 6\n[45] Sheng Wu, Yimi Wang, Xudong Liu, Yuguang Yang, Runqi\nWang, Guodong Guo, David Doermann, and Baochang\nZhang. Dfm: Differentiable feature matching for anomaly\ndetection. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 15224–15233, 2025. 1,\n2\n[46] Jiacong Xu, Shao-Yuan Lo, Bardia Safaei, Vishal M Patel,\nand Isht Dwivedi. Towards zero-shot anomaly detection and\n\n\freasoning with multimodal large language models. In Proceedings of the Computer Vision and Pattern Recognition\nConference, pages 20370–20382, 2025. 1, 2, 5\n[47] Hang Yao, Ming Liu, Zhicun Yin, Zifei Yan, Xiaopeng\nHong, and Wangmeng Zuo. Glad: Towards better reconstruction with global and local adaptive diffusion models for\nunsupervised anomaly detection. In European Conference\non Computer Vision, pages 1–17. Springer, 2024. 1, 2\n[48] Yuan Yao, Tianyu Yu, Ao Zhang, Chongyi Wang, Junbo Cui,\nHongji Zhu, Tianchi Cai, Haoyu Li, Weilin Zhao, Zhihui He,\net al. Minicpm-v: A gpt-4v level mllm on your phone. arXiv\npreprint arXiv:2408.01800, 2024. 6, 7\n[49] Vitjan Zavrtanik, Matej Kristan, and Danijel Skočaj. Draema discriminatively trained reconstruction embedding for surface anomaly detection. In Proceedings of the IEEE/CVF\ninternational conference on computer vision, pages 8330–\n8339, 2021. 1, 2\n[50] Jian Zhang, Runwei Ding, Miaoju Ban, and Linhui Dai.\nPku-goodsad: A supermarket goods dataset for unsupervised\nanomaly detection and segmentation. IEEE Robotics and Automation Letters, 9(3):2008–2015, 2024. 6\n[51] Jinjin Zhang, Guodong Wang, Yizhou Jin, and Di Huang.\nTowards training-free anomaly detection with vision and language foundation models. In Proceedings of the IEEE/CVF\nConference on Computer Vision and Pattern Recognition\n(CVPR), pages 15204–15213, 2025. 2\n[52] Zongyun Zhang, Jiacheng Ruan, Xian Gao, Ting Liu, and\nYuzhuo Fu. Eiad: Explainable industrial anomaly detection\nvia multi-modal large language models. In 2025 IEEE International Conference on Multimedia and Expo (ICME), pages\n1–6. IEEE, 2025. 1, 2, 6, 7\n[53] Shifang Zhao, Yiheng Lin, Lu Han, Yao Zhao, and Yunchao\nWei. Omniad: Detect and understand industrial anomaly\nvia multimodal reasoning. arXiv preprint arXiv:2505.22039,\n2025. 1, 2\n[54] Qihang Zhou, Guansong Pang, Yu Tian, Shibo He, and\nJiming Chen. Anomalyclip: Object-agnostic prompt learning for zero-shot anomaly detection.\narXiv preprint\narXiv:2310.18961, 2023. 2\n[55] Jinguo Zhu, Weiyun Wang, Zhe Chen, Zhaoyang Liu, Shenglong Ye, Lixin Gu, Hao Tian, Yuchen Duan, Weijie Su,\nJie Shao, et al. Internvl3: Exploring advanced training and\ntest-time recipes for open-source multimodal models. arXiv\npreprint arXiv:2504.10479, 2025. 6, 7\n[56] 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\n\n\fReasoning-Driven Anomaly Detection and Localization\nwith Image-Level Supervision\nSupplementary Material\nTable 4. Ablation study of the CGRO hyperparameters, including\nthe number of top-k reasoning tokens, the Jaccard threshold δ1 and\nδ2 . Base model is Qwen2.5-VL-7B + CGRO. Results are imagelevel and pixel-level metrics on the WFDD dataset.\nhyperparameter\n\nImage-level\n\nPixel-level\n\nδ1\n\nδ2\n\nk\n\nAUROC\n\nAUPR\n\nACC\n\nAUROC\n\nAUPR\n\nACC\n\n0.3\n0.3\n0.3\n0.5\n0.3\n\n0.1\n0.1\n0.3\n0.1\n0.1\n\n2\n4\n3\n3\n3\n\n76.0\n76.1\n77.8\n73.3\n79.9\n\n76.0\n76.6\n77.7\n74.4\n78.8\n\n75.6\n75.8\n77.1\n72.1\n79.8\n\n67.9\n67.0\n68.7\n69.5\n70.5\n\n5.6\n5.4\n5.9\n6.3\n7.4\n\n97.5\n97.6\n97.6\n97.5\n97.8\n\nTable 5. Ablation study comparing different threshold configurations for τi and τt . Base model is Qwen2.5-VL-7B + CGRO.\nResults are pixel-level metrics on the WFDD dataset.\nτi\n\nτt\n\nAUROC\n\nAUPR\n\nACC\n\nMaximum Curvature\nMedian\nMedian\nMaximum Curvature\n\nMaximum Curvature\nMaximum Curvature\nMedian\nMedian\n\n70.7\n70.4\n70.4\n70.5\n\n6.5\n6.3\n7.5\n7.4\n\n97.5\n97.5\n97.6\n97.8\n\n7. Additional Qualitative Results\nImpact of consistency reward. As shown in Fig. 5, additional qualitative results highlight the impact of the consistency reward. By introducing the consistency reward,\nthe model aligns reasoning with visual evidence, focusing attention on true anomalies. This alignment leads to\nconsistent improvements in both detection and localization,\ndemonstrating that the consistency reward effectively enforces coherent, visually grounded reasoning, which enhances anomaly localization performance.\nComparison with other methods. Fig. 6 presents a qualitative comparison of GPT-4.1 [15], Triad [26], AnomalyGPT [11], EIAD [52], and our method. GPT-4.1 [15] and\nTriad [26] exhibit strong reasoning capabilities but fail to localize anomalies at the pixel level. In contrast, our method,\ntrained solely with image-level supervision, achieves accurate anomaly detection and interpretable reasoning, while\ngenerating high-fidelity pixel-level localization maps. Notably, our method yields qualitative pixel-level localization\non par with AnomalyGPT [15] and EIAD [52], despite their\nreliance on additional vision modules and pixel-level supervision.\n\n8. Additional Ablation Studies\nHyperparameter ablation for CGRO. The CGRO module has three hyperparameters: (1) k, the number of top rea-\n\nsoning tokens used for spatial consensus, (2) δ1 , a Jaccard\nthreshold enforcing high consensus on anomalous images,\nand (3) δ2 , a threshold enforcing low consensus on normal\nimages. Larger k increases token coverage but risks including noisy reasoning; δ1 and δ2 jointly shape the reward landscape to favor discriminative reasoning patterns.\nTab. 4 reports performance over varying (k, δ1 , δ2 ). We\nselect k = 3, δ1 = 0.3, and δ2 = 0.1, which yield the\nmost consistent gains across both image-level and pixellevel anomaly detection metrics.\nHyperparameter ablation for ReAL. The ReAL module\ninvolves two thresholds: τi , which filters tokens by spatial\nentropy (lower entropy ⇒ more spatially concentrated attention), and τt , which filters by semantic relevance (higher\nSTr ⇒ stronger alignment with the anomaly query). To select these thresholds, we sort the tokens in ascending order\nof SIr and STr . We then determine the thresholds based on\nthe maximum curvature and median strategies.\nAs shown in Tab. 5, we ultimately select τi as the threshold determined by maximum curvature and τt as the median.\nAblation on ReAL and CGRO. To complement the averaged results reported in Table 2 of the main paper, we\nprovide the complete dataset-wise performance metrics for\nthe ablation study on ReAL and CGRO. As shown in\nTab. 6, ReAL consistently improves localization by extracting anomaly-related tokens from the autoregressive reasoning process and aggregating their attention responses to produce pixel-level anomaly maps, which effectively enhances\nthe model’s pixel-level segmentation capability. Building\non this, CGRO leverages reinforcement learning to further\nstrengthen both detection and localization by aligning the\nreasoning process with visual evidence. The dataset-level\nbreakdown shows clear gains at both the image level and the\npixel level, demonstrating the effectiveness of our method\nand the complementary roles of ReAL and CGRO within\nthe overall framework.\nAblation on token selection in ReAL. To complement the\naveraged results reported in Table 3 of the main paper, we\nprovide the full dataset-wise pixel-level localization metrics for the ablation on token selection in the ReAL module. As shown in Tab. 7, combining both semantic relevance ST and spatial entropy SI with composite weighting\nleads to the strongest and most stable performance across\nall datasets, confirming that spatial concentration and semantic relevance provide complementary cues for selecting\nanomaly-relevant reasoning tokens.\n\n\fFigure 5. Qualitative comparison of Qwen2.5-VL-7B, Qwen2.5-VL-7B+R1, and Qwen2.5-VL-7B+CGRO.\n\n9. Discussion\nMVTec-COT Construction. Following the established VisionR1 pipeline [14], our data generation process incorporates a rigorous human-verification stage to filter reasoning\nsignals and minimize noise, thereby ensuring high-quality\ndata synthesis. All anomaly-related concepts—including\n\nscene context, defect types, and spatial locations—are\ngrounded in the publicly annotated MMAD benchmark [17]\nto guaranty biological and physical validity. To ensure the\nintegrity of our results, the MVTec-COT dataset is strictly\nreserved for evaluation and is never utilized during training\nor optimization, effectively preventing data leakage. Furthermore, the complete dataset will be publicly released to\n\n\fFigure 6. Comparison of GPT-4.1, Triad, AnomalyGPT, EIAD, and our method.\n\nsupport reproducibility and further research in the community.\nFailure cases. Although our framework achieves competitive performance using only image-level supervision, we\nobserve several typical failure cases (Fig. 7). These in-\n\nclude the model’s attention being distracted by salient but\nnon-defective regions, coarser predicted anomaly boundaries compared to dense-supervision methods, and missed\ndetections in multi-spot scenarios. Furthermore, incorrect\nimage-level predictions inherently prevent the generation of\n\n\fTable 6. Dataset-wise results image-level and pixel-level performance for the ReAL and CGRO ablation study. Ablation on ReAL and\nCGRO. Vanilla denotes the original Qwen2.5-VL-7B. All metrics are macro-averaged across four AD datasets. Detection results are\nreported as (AUROC, AUPR).\nImage-level\n\nModel\n\nVanilla\nVanilla + ReAL\nVanilla + CGRO\nFull\n\nPixel-level\n\nAVG\n\nSDD\n\nDTD\n\nWFDD\n\nMVTec\n\nAVG\n\nSDD\n\nDTD\n\nWFDD\n\nMVTec\n\n63.4, 59.4\n63.4, 59.4\n83.9, 76.7\n83.9, 76.7\n\n65.0, 13.7\n65.0, 13.7\n81.4, 44.3\n81.4, 44.3\n\n68.3, 82.3\n68.3, 82.3\n94.5, 96.4\n94.5, 96.4\n\n60.5, 63.7\n60.5, 63.7\n79.9, 78.8\n79.9, 78.8\n\n59.6, 77.7\n59.6, 77.7\n79.8, 87.1\n79.8, 87.1\n\n64.7, 2.6\n61.7, 5.1\n72.7, 5.9\n80.7, 13.3\n\n60.6, 0.1\n56.6, 0.1\n72.5, 0.2\n82.3, 2.6\n\n79.7, 4.7\n76.0, 13.2\n87.1, 13.1\n94.2, 26.4\n\n58.3, 1.6\n56.5, 2.0\n63.3, 2.7\n70.5, 7.4\n\n60.1, 4.1\n57.5, 5.0\n67.9, 7.5\n75.6, 16.6\n\nTable 7. Dataset-wise pixel-level results for the ablation on token selection in the ReAL module. Base model is Qwen2.5-VL-7B + CGRO.\nWe compare four configurations: using all tokens, filtering with spatial entropy SI , filtering with semantic relevance ST , and combining\nboth criteria. Results are pixel-level metrics reported on MVTec-AD, WFDD, SDD, and DTD, complementing Table 3 in the main paper.\nSpatial entropy SI\n\nImage\n\nSDD\n\nDTD\n\nWFDD\n\nMVTec\n\nAUROC\n\nAUPR\n\nACC\n\nAUROC\n\nAUPR\n\nACC\n\nAUROC\n\nAUPR\n\nACC\n\nAUROC\n\nAUPR\n\nACC\n\nAUROC\n\nAUPR\n\nACC\n\n✓\n✓\n\n72.7\n74.1\n76.7\n80.7\n\n5.9\n11.8\n14.0\n13.3\n\n92.6\n89.2\n90.2\n97.1\n\n72.5\n75.0\n75.2\n82.3\n\n0.2\n1.0\n1.5\n2.6\n\n97.0\n99.7\n99.8\n99.8\n\n87.1\n92.4\n93.5\n94.2\n\n13.1\n31.1\n35.0\n26.4\n\n97.9\n98.6\n98.6\n98.6\n\n63.3\n55.0\n60.4\n70.5\n\n2.7\n1.7\n3.3\n7.4\n\n95.6\n68.6\n72.1\n97.8\n\n67.9\n74.0\n77.5\n75.6\n\n7.5\n13.4\n16.3\n16.6\n\n80.0\n90.0\n90.3\n92.2\n\nGT\n\nOurs\n\n✓\n✓\n\nAVG\n\nSemantic relevant ST\n\nAnswer\n\n(a)\n\n&lt;think&gt;...The capsule shows a\nvisible crack or split running\nvertically along its length, which is\nan anomaly...&lt;/think&gt;\n&lt;answer&gt; Yes&lt;/answer&gt;\n\n(b)\n\n&lt;think&gt;...The presence of the\ndiagonal crack indicates an anomaly\nin the wood's condition...&lt;/think&gt;\n&lt;answer&gt;Yes&lt;/answer&gt;\n\n(c)\n\n&lt;think&gt; ...appear as gaps or\nbreaks in the mesh, deviating\nfrom the uniformity expected in\nsuch a design...&lt;/think&gt;\n&lt;answer&gt;Yes&lt;/answer&gt;\n\n(d)\n\n&lt;think&gt;...The object appears to be\nin good condition with no apparent\ndefects or anomalies.&lt;/think&gt;\n&lt;answer&gt;No&lt;/answer&gt;\n\nFigure 7. Typical failure cases. (a) Attention distracted by salient\nbut non-defective regions; (b) coarser predicted anomaly boundaries; (c) missed detections in multi-spot scenarios; and (d) overall localization failure caused by incorrect image-level predictions\nand the subsequent lack of valid reasoning.\n\na valid reasoning process, ultimately leading to an overall\nlocalization failure.\nLimitations. Our framework reflects a trade-off between\nannotation efficiency and localization performance. While\nrelying solely on image-level supervision and avoiding auxiliary vision modules improves scalability, a performance\ngap remains compared with fully supervised methods, particularly in boundary fidelity and attention misalignment in\ncomplex scenes. In addition, real-time deployment is constrained by the autoregressive decoding latency of MLLM\nbackbones, as reasoning-based inference remains slower\n\nthan conventional industrial anomaly detection pipelines.\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"