"<!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>This CVPR paper is the Open Access version, provided by the Computer Vision Foundation.\nExcept for this watermark, it is identical to the accepted version;\nthe final published version of the proceedings is available on IEEE Xplore.\n\nFB-CLIP: Fine-Grained Zero-Shot Anomaly Detection with\nForeground-Background Disentanglement\nMing Hu1,2\n\nYongsheng Huo1,2\nMingyu Dou1,2\nJianfu Yin1,2\nPeng Zhao1,2\n3\n4*\n1*\n1*\nYao Wang\nCong Hu\nBingliang Hu\nQuan Wang\n1\nXi’an Institute of Optics and Precision Mechanics, Chinese Academy of Sciences\n2\nUniversity of Chinese Academy of Sciences 3 Xi’an Jiaotong University\n4\nZhongnan Hospital of Wuhan University\n\nText\nEncoder\n\nAbstract\nText\n\nFine-grained anomaly detection is crucial in industrial\nand medical applications, but labeled anomalies are often scarce, making zero-shot detection challenging. While\nvision-language models like CLIP offer promising solutions, they struggle with foreground-background feature\nentanglement and coarse textual semantics. We propose\nFB-CLIP, a framework that enhances anomaly localization\nvia multi-strategy textual representations and foregroundbackground separation. In the textual modality, it combines End-of-Text features, global-pooled representations,\nand attention-weighted token features for richer semantic cues. In the visual modality, multi-view soft separation along identity, semantic, and spatial dimensions, together with background suppression, reduces interference\nand improves discriminability. Semantic Consistency Regularization (SCR) aligns image features with normal and abnormal textual prototypes, suppressing uncertain matches\nand enlarging semantic gaps. Experiments show that\nFB-CLIP effectively distinguishes anomalies from complex\nbackgrounds, achieving accurate fine-grained anomaly detection and localization under zero-shot settings. Code :\nhttps://github.com/Xi-Mu-Yu/FB-CLIP.\n\nGT\n\nFA\nFN\n\nforeground token\nuncertain token\n\nSimilarity\n\nbackground token\n\nImage\nEncoder\n\nforeground-biased\ntoken\nbackground-biased\ntoken\n\nImg_tokens\n\nAs foreground\n\n(A) Existing CLIP-based methods\nText\nEncoder\n\nText\n\nEOT\n\nFA\n\nGlobal\nAttention\n\nFN\nFA\n\n+\n\nFN\nFA\n\nAs background\n\nFA\n\nFN\n\nSCR\n\nFN\nFA\n\n|FA-FN|↑\n\nFN\n\nImage\nEncoder\n\n+\n\nSimilarity\nImg_tokens\n\nGengerate Mask\n\n-\n\nMVFBE\n\n(B) FB-CLIP(ours)\n\nBackground\nSuppression\n\n1. Introduction\n\nFigure 1. Framework comparison. (a) Existing methods use a single text feature for uniform alignment, leading to coarse semantics. (b) FB-CLIP employs multi-text features and Semantic Consistency Regularization (SCR) to enhance alignment, while foreground–background separation and background suppression enable fine-grained, noise-robust anomaly representation.\n\nAnomaly detection (AD) aims to identify data samples or\nregions that deviate significantly from normal patterns, and\nplays a critical role in applications ranging from industrial\ninspection [2, 3, 5, 9, 10, 23, 32, 35, 36, 40, 41, 50, 52,\n57, 58] to medical imaging [10, 12, 31, 36, 37, 45, 46].\nDespite its importance, labeled anomalous data are often\nscarce or unavailable [22], motivating research into unsupervised and zero-shot anomaly detection (ZSAD) [24, 58].\nRecent advances in vision–language pretraining models\n* Corresponding author.\n\n(VLMs) [27, 39], particularly CLIP [39], have enabled semantic alignment between visual and textual modalities,\nopening new opportunities for ZSAD.\nAlthough CLIP has opened a promising direction for\nZSAD, directly applying it to fine-grained anomaly detection remains challenging. By examining the visualization\nof the original CLIP responses presented in AnomalyCLIP\n(see Fig. 2 (a)), we observe CLIP often produces strong\nresponses in both foreground and background regions si-\n\n35659\n\n\f(a)\n\nforeground–background ambiguity, which dilutes anomaly\nresponses and reduces localization accuracy.\n\n(b)\n\nFigure 2. (a) Visualization of the responses from the original CLIP\nmodel, corresponding to Fig. 1(c) in AnomalyCLIP [58]. (b) Entanglement of foreground, background, and anomalous regions.\nSeparating foreground and background clarifies the distinction between anomalous and normal points, improving accuracy.\n\nTo address the foreground–background ambiguity in\nCLIP-based anomaly detection, as illustrated in Fig. 1(b),\nwe propose FB-CLIP, a framework designed to improve\nanomaly localization through foreground–background separation guided by richer semantic representations. In the\ntextual modality, FB-CLIP constructs more expressive textual features by integrating End-of-Text (EOT) features,\nglobal-pooled representations, and attention-weighted token features. Compared with conventional prompt-based\ntext representations, this multi-strategy feature fusion provides more comprehensive semantic cues about normality and abnormality. The richer textual semantics serve\nas stronger guidance for cross-modal alignment, enabling\nthe model to better differentiate anomaly-related foreground\nsignals from background context during feature matching.\nTo further stabilize cross-modal alignment and improve\nfine-grained anomaly localization under zero-shot settings,\nwe introduce Semantic Consistency Regularization (SCR).\nSCR aligns image features with both normal and abnormal\ntextual prototypes, and by minimizing prediction entropy\nand imposing margin constraints between semantic prototypes, it suppresses uncertain matches and enlarges semantic gaps. This enhances semantic discriminability within the\nsingle-text-space alignment, further improving anomaly localization performance. In the visual modality, FB-CLIP\nperforms multi-view foreground–background soft separation along identity, semantic, and spatial dimensions to refine token representations. Continuous gating integrates\ndual-branch attention outputs, preventing information loss\ncaused by hard filtering. Moreover, the Background Suppression (BS) module leverages multi-layer, multi-scale\nbackground prototypes to further reduce residual interference, mitigating the impact of complex scenes and crossdomain distribution shifts. These designs enable FB-CLIP\nto produce cleaner and more discriminative anomaly representations, facilitating accurate detection and localization.\nOur contributions are as follows:\n\nmultaneously. This indicates that the model struggles to\ndistinguish anomaly-related foreground semantics from irrelevant background context, resulting in pronounced foreground–background feature entanglement in visual representations [17, 30, 51], as illustrated in Fig. 2 (b). In such\ncases, abundant background responses may obscure subtle\nanomaly signals, making it difficult for the model to accurately perceive and localize fine-grained anomalies.\nAs illustrated in Fig. 1(a), existing CLIP-based anomaly\ndetection methods attempt to alleviate this issue mainly\nfrom two perspectives: text modeling and visual feature\nenhancement. On the textual side [6, 11, 24, 38, 58, 59],\nmany approaches introduce learnable prompts or manually designed descriptions to project textual semantics into\nthe shared embedding space and align them with image\nfeatures. Representative works such as AnomalyCLIP attempt to learn object-agnostic prompts that encode generic\nnormal and abnormal semantics. While these strategies\nimprove cross-domain generalization to some extent, the\ntextual representations themselves often remain relatively\ncoarse and limited in semantic diversity. As a result, the\ntextual features may provide insufficient guidance for distinguishing foreground anomaly cues from complex background contexts. In fine-grained anomaly scenarios, where\nabnormal patterns are often subtle and sparsely distributed,\nsuch limited semantic expressiveness can lead to ambiguous cross-modal alignment, making it difficult for the model\nto clearly separate anomaly-related regions from irrelevant\nbackground responses. On the visual side, existing methods typically enhance image tokens to improve patch-level\nfeature representation and alignment [6, 11, 13, 24]. However, these approaches usually treat tokens in a homogeneous manner, implicitly assuming that all tokens contribute equally to anomaly representation. This assumption overlooks the large uncertainty and diversity of semantic information across different image regions. In finegrained anomaly scenarios, some tokens may contain critical anomaly cues, while others mainly capture background\ncontext or noise. Without explicitly modeling such differences, the enhanced representations may still suffer from\n\nMulti-strategy text representation. We construct semantically rich and task-aware textual representations by\nintegrating EOT, global-pooled, and attention-weighted token features, enabling more robust anomaly perception.\nEnhanced visual representation. We propose a multiview foreground–background soft separation strategy along\nidentity, semantic, and spatial dimensions, combined with\nbackground suppression, to capture fine-grained visual cues\nwhile reducing background noise.\n\n35660\n\nCross-modal discriminative alignment. We introduce\nSCR to align image features with normal and abnormal textual prototypes, suppress uncertain matches, and enlarge\nsimilarity gaps, achieving stable cross-modal alignment.\n\n\f2. Related work\n2.1. Prompt Design and Textual Adaptation\nIn CLIP-based adaptation, prompt engineering plays a key\nrole. Early methods such as CoOp [56] and CoCoOp [55]\nlearn context tokens for flexible textual adaptation, while\nAnomalyCLIP [58] and PromptAD [29] use learnable\nprompts to capture generic or task-specific anomaly semantics. However, these approaches rely solely on EOT sentence embeddings, potentially overlooking token-level context. To address this, we propose MSTFF, which combines\nEOT, global pooling, and attention-based pooling to generate task-aware text representations that enhance anomaly\nsensitivity. Additionally, SCR enforces confidence and discriminative constraints on visual-text alignment, improving\nboth text representations and ZSAD performance.\n\nmodule that combines complementary pooling strategies for\nricher and more discriminative text features .\nGiven the transformer-encoded token sequence X ∈\nRB×L×D , MSTFF extracts three types of features:\nEOT feature for maintaining CLIP compatibility:\nFeot = X[arange(B), argmax(ttoken )]Wproj .\nGlobal feature via mean pooling to capture context:\nL\n\nFglobal =\n\nFattn =\n\n3. Method\n3.1. Multi-Strategy Text Feature Fusion (MSTFF)\nFollowing AnomalyCLIP [58], we adopt object-agnostic\nlearnable text prompts for ZSAD, which discard classspecific semantics to capture general anomaly patterns. The\nnormal and abnormal prompts are defined as:\ngn = [V1 ][V2 ] . . . [VE ][object],\n\n(1)\n\nga = [W1 ][W2 ] . . . [WE ][damaged][object],\n\n(2)\n\nwhere [V ]i and [W ]i denote learnable embeddings for normal and abnormal prompts, respectively. This objectagnostic formulation directs the model to focus on anomalyrelated cues rather than object categories, enabling better\ncross-object and cross-domain generalization.\nCLIP’s text encoder typically relies on the End-of-Text\n(EOT) token for sentence-level representation, which may\noverlook contextual or anomaly-relevant semantics. To enhance textual representation, we propose a Multi-Strategy\nText Feature Fusion (MSTFF) (as shown in Figure 3(a))\n\n1X\nX[:, i, :]Wproj .\nL i=1\n\n(4)\n\nAttention feature guided by a lightweight token selector\nS(·) implemented as a two-layer MLP:\n\n2.2. Visual Feature Enhancement\nIn terms of visual features, several works have attempted\nto enhance CLIP’s spatial representations to improve\nanomaly detection. For example, WinCLIP [24] achieves\ndense anomaly mapping via sliding-window patch evaluation, CLIP-AD [8] utilizes local patch–text similarities\nfor anomaly localization, VisionAD [44] combines hierarchical features from multiple transformer layers, and AFCLIP [11] employs neighborhood aggregation for feature\nenhancement. However, these methods primarily operate at\nthe token level and overlook the semantic and structural information within each token. To address this, we propose\nthe MVFBE and BS modules to disentangle and enhance\nsemantic and spatial features, highlighting anomalous signals while suppressing background redundancy.\n\n(3)\n\nL\nX\n\n\u0001\nsoftmax S(X[:, i, :]) X[:, i, :].\n\n(5)\n\ni=1\n\nFinal text representation by weighted fusion:\nproj\nFtext = λ1 Fglobal + λ2 Fattn\n+ λ3 Feot ,\n\n(6)\n\nwhere λ1 = 1.0, λ2 = λ3 = 0.5.\nThrough this fusion, MSTFF captures complementary\nsemantics: the EOT feature preserves CLIP alignment, the\nglobal feature provides contextual stability, and the attention feature highlights task-relevant tokens. This design\nyields expressive, adaptive, and generalizable text representations for zero-shot anomaly detection.\n\n3.2. Multi-View Foreground-Background Enhancement (MVFBE)\nWhile MSTFF focuses on textual representations, visual\nfeatures still suffer from foreground-background ambiguity. To address this challenge, we propose a novel MultiView Foreground-Background Enhancement (MVFBE)\n(as shown in Figure 3(b)) module that explicitly separates\nand enhances foreground and background features from\ncomplementary perspectives. Our key insight is that foreground tokens, which typically contain anomalies, exhibit\nhigher information richness (diversity from the global context), while background tokens demonstrate greater stability\n(consistency with normal patterns).\nGiven input visual tokens X ∈ RB×(L+1)×C extracted\nfrom a pre-trained Vision Transformer (ViT), including one\nclass token xcls ∈ RB×1×C and L patch tokens ximg ∈\nRB×L×C , the MVFBE module first generates a soft foreground probability mask Pfg ∈ {0.5, 1.0}B×L using multiple complementary anomaly indicators. Specifically, we\ncompute four complementary cues: (1) local saliency Slocal\n(2) center distance Dcenter (3) CLS inconsistency Icls and (4)\ntemporal variation Ttemp . Details in Appendix A.\n\n35661\n\n\f(a) MSTFF\n\nW1\n\n{ damaged\nobject }\n\nTokenized\nprompts\n\nImage\nEncoder\n\nv\n\n(b)\nMVFBE\n\n(c)\nBackground\nSuppression\n\nv\n\n+\n\nx\n\nvl\n\n1\n\n4\n3\n\n1...\n...\nN\n\n+\n\n5\n\nEntrory loss =-\n\n p log p\ni\n\nx\n\n+\n\nN\n\ni\n\ni\n\n0.95\npredict_masks predict_cls\n\nLoss seg\n\nLoss cls\n\n1\n+\n\nx\n\n1-\n\nElement wise sum\n\np\n\ns\n\npatch\nL\n\nbackground_similarity\n\n+\n\nA\n\nfinal_token\n\nanomaly_features\n\nC\n\nx\n\nFN\n\nN-2\nN-1\nN\n\n6\n\nMax\n\ns Softmax\n\nv\n\np\n\nFA\n\nMV-FBE\n\n-\n\nMean\n\ncls\nL\n\nv\n\npatch\n\nMV-FBE\n\n2\n\np\n\nLayer-L\n\nMV-FBE\n\nLearnable\n\nFrozen\n\nv\n\npatch\n1\n\ncls\nl\n\n(d) SCR\n\nMargin loss\n\nx\n\nLayer-l\n\nLayer-1\n\ncls\n1\n\nMean\n\nW textproj\nEOT\n\nAnomalous text prompt\n\na\n\ns\nx\n\nMLP\n\nPrompts\n\nNorm\n\nNormal text prompt\nn\n\nW1\n\ng\n\n{ object }\n\nText\nEncoder\n\ng\n\nV1\n\nEmbedding\n\nV1\n\nC Cosine similarity\n\n-\n\nLast imgtoken\n\nElement wise sub\n\nGT\n\nLabel\n\nx Element wise mul 1- One minus x\n\nv cls\n\nX ID\n\nl\n\nv patch\nl\n\nv patch\n\nX\n\nl −1\n\ngenerate_soft_mask\n\nSpatial\nenhanced\n\n1\n0.5\n\nprob\n\nf ( x) = 0.5 + 0.5( x  0.5)\n\nSemtic\nenhanced\nfgbinary\n\nFg_prob\n\nBg_prob\nx\n\nFgAttention\n\n+\n\nMLP\n\nX SEM\n\nnarized to generate the soft foreground mask:\n(\n1.0 if A[i] &gt; 0.5\nPfg [i] =\n,\n0.5 otherwise\n\nx\n\n1-\n\nFBAttention\n\nfg\n\nsoft\n\nSPA\n\nFBAttention\n\nFigure 3. Overview of FB-CLIP for zero-shot anomaly detection. (a) Multi-Strategy Text Feature Fusion (MSTFF) generates task-aware\ntext embeddings (see Section3.1); (b) Multi-View Foreground-Background Enhancement (MVFBE) separates and enhances foreground\nand background features (see Section3.2); (c) Background Suppression reduces residual background interference (see Section3.3); (d)\nSemantic Consistency Regularization (SCR) enforces confident and discriminative visual-text alignment. These components jointly enable\nfine-grained anomaly detection without labeled abnormal samples (see Section3.4).\n\nBgAttention\n\nwhere the threshold of 0.5 is chosen based on the persample normalized score distribution. The soft mask design\nwith values {0.5, 1.0} maintains gradient stability during\nbackpropagation while ensuring clear separation: tokens\nwith Pfg [i] = 1.0 represent high-confidence foreground regions, while those with Pfg [i] = 0.5 are treated as uncertain/background tokens that require further refinement in\nsubsequent enhancement stages.\n\nFB-Attention\n\nprob\n\nFigure 4. Structure of the proposed MVFBE module. The module first generates a soft foreground mask from multiple anomaly\nindicators. Three complementary views are applied: Identity (ID)\npreserves original features, Semantic (SEM) models foreground\nrichness and background stability, and Spatial (SPA) captures finegrained local structures. Features are then integrated across layers\nand refined with foreground-background attention to produce discriminative anomaly representations. Details in Appendix A, ??\n\n3.2.1. Three Complementary Enhancement Views\n\n.\n\nThe MVFBE module applies three complementary enhancement views to process the visual tokens.\nIdentity View (ID). The Identity (ID) view preserves\noriginal features:\nXID = X.\n(9)\n\nThe normalized indicators are then linearly combined to\nform an anomaly score:\nA = α1 S̃local + α2 D̃center + α3 Ĩcls + α4 T̃temp ,\n\n(8)\n\n(7)\n\nwhere α1 = α2 = α3 = 0.3 and α4 = 0.1 to emphasize spatial and semantic cues while incorporating temporal\ninformation when available. The anomaly score is then bi-\n\nThis serves as a baseline to retain raw feature information\nand prevent degradation from over-transformation.\nSemantic View (SEM). The SEM view performs global\nself-attention-based enhancement by explicitly modeling\ninformation richness for foreground tokens and stability for\nbackground tokens. (The pseudocode in Appendix ??)\n\n35662\n\n\f3.2.2. Multi-Layer Integration\n\nWe first construct interaction weight matrices:\nWfg = pfg ⊗ pTfg ,\n\nThe three enhanced views form:\n\nT\n\nWbg = (1 − pfg ) ⊗ (1 − pfg ) , (10)\n\nwhere ⊗ denotes outer product. Foreground information\nrichness is computed by deviation from the class token:\nrinfo = 1 − cosine(Xtokens , Xcls ),\n\n(11)\n\nand attention weights are:\nAfg = Softmax(rinfo ⊙ Wfg ).\n\n(12)\n\nFenhanced = [XID , XSEM , XSPA ],\n\nand are applied across N Transformer layers, producing\n3N enhanced feature groups. Inspired by AF-CLIP [11],\neach feature group is further processed by the ForegroundBackground Attention (FB-Attention) (shown in Fig 4)\nmodule with adaptive gating (inspired by LSTM [20, 21] ):\n\nFor background tokens, stability is measured by similarity:\nsstable = cosine(Xtokens , Xcls ),\nAbg = Softmax(sstable ⊙ Wbg ).\n\nxfg,i = G(xi )xi ,\n\n(13)\n\nXbg,agg = Abg Xtokens ,\n\n(14)\n\nHFB = LN(MHSAfg (Xfg ) + MHSAbg (Xbg )).\n\nand fused with a residual connection:\nXSEM = α[pfg ⊙ Xfg,agg + (1 − pfg ) ⊙ Xbg,agg ]\n+ (1 − α)Xtokens , α = 0.6.\n\n(16)\n\nForeground and background patches are separated using the\nunfolded mask. Background stability combines cosine similarity with feature magnitude:\nsbg = cosine(Xbg,patches , Xcls ) ⊙ ∥Xbg,patches ∥,\n\n⊙ ∥Xfg,patches − µ(Xfg,patches )∥.\n\n(i)\n\n(i)\n\nXbg,cand = Fenhanced [:, : L/2, :].\n\n(24)\n\nThese candidates are concatenated to form a unified\nbackground feature bank:\n\u0002 (1)\n(3N ) \u0003\nXbg,bank = Concat Xbg,cand , . . . , Xbg,cand ,\n(25)\nwhere Xbg,bank ∈ RB×M ×C and M is the total number of\nbackground tokens. The prototypical background vector is\ncomputed as:\n\n(17)\nbproto = 12 Mean(Xbg,bank ) + 12 Max(Xbg,bank ),\n\n(26)\n\n(18)\n\nwhich combines global averaging and max-pooling to preserve salient background characteristics.\n(i)\nFor each feature Fenhanced ∈ RB×L×C , we compute cosine similarity to the background prototype:\n\u0011\n\u0010\n(i)\n(i)\n(27)\nsbg = cosine Fenhanced , bproto ∈ RB×L×1 .\n\nWeighted aggregation produces the enhanced features:\nP25\nSoftmax(wfg/bg )[i] ⊙ Xfg/bg,patches [i]\n,\nXfg/bg,agg = i=1\nP25\ni=1 Pfg/bg,unfold [i]\n(19)\nXSPA = Reshape(Xfg,agg + Xbg,agg ).\n\n(23)\n\nAfter MVFBE, we address the critical challenge of background interference in ZSAD. Although the enhancement\nmodule separates semantic regions, background tokens may\nstill retain residual noise that degrades detection accuracy.\nTo alleviate this, we introduce a background subtraction\nmechanism (as shown in Figure 3(c)) that explicitly models and suppresses background patterns while preserving\nanomaly-specific signals.\nGiven the 3N enhanced features Fenhanced , we extract a\nprototypical background representation by aggregating the\nfirst half of candidate background tokens from each feature.\n\nwhile foreground information richness considers deviation\nand local diversity:\nrfg =(1 − cosine(Xfg,patches , Xcls ))\n\n(22)\n\n3.3. Background Suppression (BS)\n(15)\n\nSpatial View (SPA). Inspired by PatchCore [41],\nMUSC [28] , AF-CLIP [11], CLIP-Haze [54], and MFPCLIP [53], we design a spatial enhancement module from\nthe perspective of neighborhood aggregation to more effectively capture local contextual information. Unlike existing methods, we explicitly utilize the unfolded mask to\ndistinguish foreground and background patches, and further process them based on foreground information richness, introducing a fundamentally different spatial modeling paradigm.\nThe Spatial (SPA) view performs local patch-based enhancement to capture fine-grained spatial structures. Tokens are reshaped into 2D grids and unfolded into 5 × 5\noverlapping patches (The pseudocode in Appendix ??):\nXunfold ∈ R(BHW )×25×C .\n\nxbg,i = (1 − G(xi ))xi ,\n\nwhere G : RC → [0, 1] is a learnable gate function. Apply\nmulti-head self-attention (MHSA) [47] to each stream separately, then sum the outputs and apply LayerNorm (LN).\n\nForeground and background features are aggregated:\nXfg,agg = Afg Xtokens ,\n\n(21)\n\nThe anomaly signal is then obtained by background subtraction:\n(i)\na(i) = Fenhanced − bproto ,\n(28)\n\n(20)\n\n35663\n\n\fwhere λ = 0.15 controls the overall weight, and we = 1.0,\nwm = 0.5 are relative coefficients for the entropy and margin terms. This dual regularization strategy addresses two\nessential aspects : (1) encouraging confident and semantically consistent predictions, (2) maintaining discriminative\nseparation between normal and abnormal semantics.\n\nand its reconstruction error is defined as:\ne(i) = ∥a(i) ∥2 .\n\n(29)\n\nTo suppress residual background while emphasizing\nanomaly cues, we apply similarity-weighted enhancement:\n(i)\n\n(i)\n\naenh = a(i) ⊙ (1 − sbg ),\n\n(30)\n\n4. Experiment\n\nwhere tokens highly similar to the background receive\nsmaller weights. The final background-suppressed features:\n(i)\n(i)\n(i)\nFfinal = α Fenhanced + (1 − α) aenh ,\n\nα = 0.5.\n\n4.1. Experiment setup\nDatasets and Evaluation Metrics. We evaluate FBCLIP on 16 publicly available datasets spanning industrial inspection and medical imaging. Industrial benchmarks include MVTec AD [2], VisA [60], MPDD [25],\nBTAD [34], DAGM [49], DTD-Synthetic [1] and a largescale dataset Real-IAD [48], while medical datasets cover\ncolon polyp (CVC-ClinicDB [4], CVC-ColonDB [43]),\nskin cancer detection dataset ISIC [15] and brain tumor\n(BrainMRI [42], Br35H [16]) detection, Kvasir [26], and\nEndo [19], thyroid nodule detection dataset TN3k [14],\nbrain tumor detection datasets HeadCT [42]. Competing\nSOTA methods include WinCLIP [24], VAND [7], AnomalyCLIP [58], AdaCLIP [6], AA-CLIP [33], AF-CLIP [11],\nand FAPrompt [59]. Performance is measured using AUROC for detection, AP for anomaly classification, and\nAUPRO [3] for localization.\n\n(31)\n\n3.4. Semantic Consistency Regularization (SCR)\nEven after visual disentanglement, visual-text alignment\nmay remain unstable in the zero-shot setting. Therefore,\ninspired by Support Vector Machines [18], we introduce\na semantic consistency regularization (as shown in Figure 3(d)) loss that jointly enforces confidence and discriminative constraints on visual–text alignment without additional supervision. Given image token Vtokens ∈ RB×N ×D\n(from the last layer after background suppression, representing the most semantically rich anomaly-focused representations) and text features T ∈ R2×D (for “normal” and\n“abnormal” prompts), we aggregate token-level features via\nglobal average pooling and apply L2 normalization:\nV ← L2Norm(V),\n\nT ← L2Norm(T).\n\n(32)\n\nSemantic similarity is computed as:\n\nImplementation Details. FB-CLIP is built on the public CLIP backbone (ViT-L/14@336px) with frozen parameters. Following prior works [11, 24, 58], we fine-tune\nAnomalyCLIP using the test data on MVTec AD and evaluate the ZSAD performance on other datasets. As for MVTec\nAD, we fine-tune AomalyCLIP on the test data of VisA.\nResults are averaged over all sub-datasets. All experiments\nare implemented in PyTorch 2.0.0 and conducted on a single NVIDIA RTX 3090 GPU (24GB) using the Adam optimizer with a learning rate of 5e-5 and a batch size of 4.\n\ns = τ1 VT⊤ ,\n\ns ∈ RB×2 , τ = 0.07,\n\n(33)\n\nwhere s[b, 0] and s[b, 1] denote similarities to normal and\nabnormal prompts, respectively. Class probabilities are:\npb = Softmax(sb ),\n\npb ∈ R2 ,\n\n(34)\n\nEntropy Regularization. We encourage confident predictions by minimizing entropy:\n\" 1\n#\nX\nB\nLentropy = Eb=1 −\npb (c) log (pb (c))\n(35)\n\n4.2. Main results\n\nc=0\n\nAs shown in Table 1, FB-CLIP demonstrates competitive performance in zero-shot anomaly detection across\nboth industrial and medical domains. Compared with\nrecent strong CLIP-based models such as AF-CLIP and\nFAPrompt, our method consistently achieves superior results on both image-level and pixel-level metrics in the industrial domain. FB-CLIP achieves notable improvements\non the VisA dataset and attains over a 6% increase in pixellevel AUPRO on the large-scale Real-IAD dataset. While\nFAPrompt remains competitive on certain medical datasets,\nFB-CLIP ranks among the top two in 14 out of 18 metrics, surpassing FAPrompt, which ranks in the top two on\n10 metrics.\n\nMargin Regularization. We enforce discriminative separation via margin constraint:\nLmargin = EB\nb=1 [max(0, γ − |sb [1] − sb [0]|)] ,\n\n(36)\n\nwhere γ = 1 is the margin parameter. This prevents mode\ncollapse and maintains clear separation between normal and\nabnormal semantics. The final loss combines both terms:\n\u0001\nLconsistency = λ we Lentropy + wm Lmargin ,\n(37)\n\n35664\n\n\fTable 1. Zero-shot anomaly detection performance on industrial and medical domains. The image-level performance AUROC(%), AP(%)\nand pixel-level performance AUROC(%), PRO(%) are reported. Red: best, blue: second best.\nDataset\n\nWinCLIP [24]\nCVPR’2023\n\nVAND [7]\nCVPR’2023\n\nAnomalyCLIP [58]\nICLR’2024\n\nAdaCLIP [6]\nECCV’2024\n\nAA-CLIP [33]\nCVPR’2025\n\nAF-CLIP [11]\nMM’2025\n\nFAPrompt [59]\nICCV’2025\n\nFB-CLIP\nOurs\n\nMVTec\nVisA\nMPDD\nBTAD\nDAGM\nDTD\nReal-IAD\n\n(91.8, 96.5)\n(78.1, 81.2)\n(63.6, 69.9)\n(68.2, 70.9)\n(91.8, 79.5)\n(93.2, 92.6)\n(-, -)\n\n(86.1, 93.5)\n(78.0, 81.4)\n(78.0, 81.4)\n(73.5, 68.6)\n(94.4, 83.8)\n(86.4, 95.0)\n(-, -)\n\n(91.5, 96.2)\n(82.1, 85.4)\n(77.0, 82.0)\n(88.3, 87.3)\n(97.5, 92.3)\n(93.5, 97.0)\n(-, -)\n\n(92.1, 96.7)\n(86.3, 89.2)\n(76.8, -)\n(92.4, 96.2)\n(98.3, 93.7)\n(97.0, 99.0)\n(-, -)\n\n(90.5, 94.9)\n(84.6, 82.2)\n(-, -)\n(93.8, 97.9)\n(93.9, 84.5)\n(93.3, 97.8)\n(-, -)\n\n(92.9, 96.8)\n(88.5, 90.0)\n(-, -)\n(94.3, 95.2)\n(98.7, 94.6)\n(97.9, 99.1)\n(79.2, 77.0)\n\n(91.9, 95.7)\n(84.6, 86.8)\n(80.1, 83.9)\n(92.2, 92.5)\n(98.8, 95.3)\n(96.2, 98.1)\n(77.3, 74.8)\n\n(92.4,96.6)\n(89.5, 90.7)\n(79.1, 86.2)\n(93.2, 96.4)\n(99.0, 96.5)\n(97.9, 99.1)\n(80.6, 78.4)\n\nMVTec\nVisA\nMPDD\nBTAD\nDAGM\nDTD\nReal-IAD\n\n(85.1, 64.6)\n(79.6, 56.8)\n(76.4, 48.9)\n(72.7, 27.3)\n(87.6, 65.7)\n(83.9, 57.8)\n(-, -)\n\n(87.6, 44.0)\n(94.2, 86.8)\n(94.1, 83.2)\n(89.3, 68.8)\n(82.4, 66.2)\n(95.3, 86.9)\n(-, -)\n\n(91.1, 81.4)\n(95.5, 87.0)\n(96.5, 87.0)\n(94.2, 74.8)\n(95.6, 91.0)\n(97.9, 92.3)\n(-, -)\n\n(86.3, 20.0)\n(95.8, 60.0)\n(96.1, -)\n(94.0, 33.8)\n(94.5, 53.8)\n(98.5, 72.9)\n(-, -)\n\n(91.9, 84.6)\n(95.5, 83.0)\n(-, -)\n(94.0, 69.0)\n(91.6, 76.5)\n(96.4, 85.9)\n(-, -)\n\n(92.3, 85.7)\n(96.2, 88.7)\n(-, -)\n(94.4, 78.3)\n(97.1, 93.1)\n(98.6, 93.8)\n(95.5, 81.6)\n\n(90.6, 83.3)\n(95.9, 87.7)\n(96.5, 87.9)\n(95.6, 75.1)\n(98.2, 95.0)\n(98.3, 93.3)\n(95.0, 82.1)\n\n(91.9, 85.7)\n(96.3, 91.4)\n(96.9, 91.1)\n(95.8, 80.0)\n(97.3, 94.1)\n(98.3, 92.6)\n(95.9, 88.2)\n\nimage-level\n(AUROC, AP)\n\nHeadCT\nBrainMRI\nBr35H\n\n(81.8, 80.2)\n(86.6, 91.5)\n(80.5, 82.2)\n\n(89.1, 89.4)\n(89.3, 90.9)\n(93.1, 92.9)\n\n(93.4, 91.6)\n(90.3, 92.3)\n(94.6, 94.7)\n\n(91.4, -)\n(80.6, 84.4)\n(86.5, 86.3)\n\n(-, -)\n(91.8, 94.1)\n(89.4, 91.0)\n\n(91.2, 91.1)\n(95.2, 96.3)\n(96.7, 96.4)\n\n(94.0, 92.4)\n(95.8, 96.2)\n(97.6, 97.1)\n\n(93.4, 93.9)\n(95.1, 96.6)\n(97.1, 97.4)\n\npixel-level\n(AUROC, PRO)\n\nISIC\nClinicDB\nColonDB\nKvasir\nEndo\nTN3K\n\n(83.3, 55.1)\n(51.2, 13.8)\n(70.3, 32.5)\n(69.7, 24.5)\n(68.2, 28.3)\n(70.7, 39.8)\n\n(89.4, 77.2)\n(80.5, 60.7)\n(78.4, 64.6)\n(75.0, 36.2)\n(81.9, 54.9)\n(73.6, 37.8)\n\n(89.7, 78.4)\n(82.9, 67.8)\n(81.9, 71.3)\n(78.9, 45.6)\n(84.1, 63.6)\n(81.5, 50.4)\n\n(89.3, -)\n(81.6, 54.0)\n(79.3, 49.1)\n(77.5, 41.3)\n(-, -)\n(77.2, -)\n\n(93.9, 87.0)\n(86.3, 67.1)\n(81.6, 65.4)\n(84.0, 50.3)\n(-, -)\n(-, -)\n\n(94.8,89.6)\n(87.1, 70.0)\n(83.2, 67.9)\n(84.5, 57.5)\n(88.3, 70.3)\n(80.5, 45.8)\n\n(91.1, 81.6)\n(84.7, 70.1)\n(85.0, 73.3)\n(82.1, 49.9)\n(86.8, 67.6)\n(84.7, 54.6)\n\n(93.9, 87.7)\n(87.2, 73.5)\n(84.2, 74.4)\n(85.0, 47.8)\n(87.6, 70.4)\n(79.0, 46.8)\n\nDomain\n\nMetric\n\nimage-level\n(AUROC, AP)\n\nIndustrial\n\npixel-level\n(AUROC, PRO)\n\nMedical\n\nTable 2. Ablation study of different modules for zero-shot\nanomaly detection. Deeper colors correspond to higher average\nperformance. The columns MSTFF, MVFBE, BS, and SCR correspond to the four improvement strategies proposed in Figure 3.\nMethod\nBase\n\nMSTFF\n\nMVFBE\n\nMVTec\nBS\n\nSCR\n\n✓\n✓\n\n✓\n\n✓\n✓\n\n✓\n✓\n\n✓\n✓\n\n✓\n✓\n\n✓\n\n✓\n\n✓\n\n✓\n\n✓\n\n✓\n\n✓\n\n✓\n\n✓\n\n✓\n\n✓\n\n✓\n\n✓\n\n✓\n\n✓\n\n✓\n\n✓\n\n✓\n\n✓\n\n✓\n\n✓\n\nPixel\n(AUROC, PRO)\n\n4.3.2. Effectiveness of MVFBE\n\nVisA\n\nThe addition of the MVFBE module (column MVFBE in\nTable 2) further improves performance over the Base and\nMSTFF configurations. On MVTec, it increases imagelevel AUROC to 92.2% and pixel-level PRO to 84.5%, indicating that MVFBE effectively enhances the distinction between foreground anomalies and background context. Similar gains are observed on VisA, showing that MVFBE consistently boosts anomaly recognition and localization by\nemphasizing relevant object regions across multiple views.\nIn Figure 5(a), we visualize the effect of our multi-view\nimgtoken enhancement and the subsequent FB-Attention.\nThe top row shows the first layer imgtokens obtained from\nthe CLIP pre-trained ViT model, while the middle row displays the features from the 24th layer: XID along with the\nenhanced XSEM and XSPA views. Comparing the results before and after applying FB-Attention, it is evident that FBAttention effectively suppresses background noise and enhances the foreground anomaly regions. This improvement\nis especially pronounced for complex textures and small defects, where the enhanced attention maps provide clearer localization and stronger contrast between anomalous objects\nand the background, demonstrating the benefit of integrating multi-view enhancement with FB-Attention. The blocklike artifacts in the SPA view arise from noise smoothing\nand signal enhancement, forming connected regions, which\naligns with the assumption that anomalies are connected\nand does not affect the capture of fine-grained local structures. Additional ablation experiments in Appendix D.\n\nImage\nPixel\n(AUROC, AP) (AUROC, PRO)\n\n(67.1, 84.0)\n\n(65.2, 32.9)\n\n(45.7, 56.2)\n\n(88.4, 71.8)\n\n(82.0, 91.4)\n\n(84.0, 68.0)\n\n(78.3, 80.5)\n\n(93.2, 81.4)\n\n(92.2, 96.5)\n(44.8, 72.7)\n\n(91.7, 84.5)\n(70.7, 38.3)\n\n(88.4, 89.7)\n(48.3, 56.6)\n\n(96.0, 90.8)\n(84.1, 58.3)\n\n(65.4, 81.3)\n\n(75.7, 45.5)\n\n(63.8, 69.0)\n\n(88.2, 65.5)\n\n(92.3, 96.5)\n\n(91.2, 84.7)\n\n(88.2, 89.7)\n\n(95.9, 90.6)\n(86.5, 60.2)\n\n(73.0, 86.8)\n\n(71.2, 28.7)\n\n(68.3, 72.2)\n\n(78.2, 88.8)\n\n(83.2, 63.6)\n\n(74.0, 74.6)\n\n(92.4, 78.8)\n\n(92.8, 96.8)\n\n(91.6, 85.7)\n\n(87.6, 89.3)\n\n(96.1, 90.6)\n\n✓\n\n(92.1, 96.2)\n\n(89.4, 78.2)\n\n(87.9, 89.8)\n\n(96.2, 90.7)\n\n(92.4, 96.7)\n\n(91.4, 85.6)\n\n(87.8, 89.4)\n\n(96.1, 90.7)\n\n✓\n\n(92.1, 96.3)\n\n(90.9, 74.6)\n\n(88.1, 89.7)\n\n(96.4, 89.3)\n\n✓\n\n(92.4, 96.6)\n\n(91.9, 85.7)\n\n(89.5, 90.7)\n\n(96.3, 91.4)\n\n✓\n✓\n\nImage\n(AUROC, AP)\n\ntional ablation experiments can be found in Appendix C.\n\n4.3. Ablation Study\n4.3.1. Effectiveness of MSTFF\nThe inclusion of our MSTFF module (column MSTFF in\nTable 2) leads to substantial improvements over the Base\nmodel. On MVTec, image-level AUROC increases from\n67.1% to 82.0%, and pixel-level PRO rises from 32.9%\nto 68.0%, demonstrating that MSTFF effectively captures\nricher semantic cues and task-relevant information for more\naccurate anomaly recognition and localization. Additional\nmodules—MVFBE, BS, and SCR—provide further gains,\nand the full configuration combining all four strategies\nachieves the best overall performance on both MVTec and\nVisA. These results confirm that MSTFF plays a critical\nrole while synergizing with the other components. Addi-\n\n35665\n\n\fXID\n\nXSEM\nview\n\nXSPA\n\nview\n\nXID\n\nview\n\nXSEM\nview\n\nXSPA\n\nview\n\nXID\n\nview\n\nXSEM\nview\n\nXSPA\n\nXID\n\nview\n\nview\n\nXSEM\nview\n\nXSPA\n\nview\n\nImage\n\nGT\n\nBefore_subtraction:\nOriginal token\n\nToken background\nsimilarity\n\nAfter_subtraction:\nAnomaly_token\n\n+FB-Attention\n\nLayer-24\n\n+FB-Attention\n\nLayer-1\n\nview\n\n(a) Visualize the multi-view imgtoken enhancement effect and\nthe effect after applying FB-Attention.\n\n(b) Visualize the process of\nbackground subtraction.\n\nFigure 5. Overall visualization of four image sets demonstrating the effects of the proposed modules. (a) Multi-View ForegroundBackground Enhancement (MVFBE) results, highlighting the enhancement of tokens across multiple views. (b) Background Subtraction\n(BS) process, showing how irrelevant background tokens are removed to emphasize anomalies. Together, these visualizations illustrate the\nprogressive improvement in anomaly representation and localization.\n\n4.3.3. Effectiveness of Background Suppression\nTo assess the impact of token-level background subtraction, we visualize the intermediate token representations\nduring the anomaly localization process in Figure 5(b). The\nfirst column shows the original image, the second column\npresents the ground truth, and the subsequent columns illustrate the background subtraction pipeline. Specifically,\nthe “Before Subtraction” column displays the original token representations, the “Token Background Similarity”\nmaps indicate the similarity between each token and the\nbackground tokens, and the “After Subtraction” column\nhighlights the anomaly tokens after background removal.\nDarker or brighter regions in the similarity maps correspond to higher background resemblance, providing an interpretable cue for the subtraction process.\nWe observe that the original tokens often mix target and\nbackground information, which can obscure subtle anomalies. By leveraging background similarity, irrelevant regions\nare effectively suppressed, and the resulting anomaly tokens clearly emphasize defects or critical structures. Small\nscratches become distinctly visible, anomalies embedded\nin complex patterns are accurately separated, and minute\nanomaly points are highlighted, while noise is substantially\nreduced. These results demonstrate that token-level background subtraction enables the model to focus on salient\nregions without discarding essential features, thereby improving the clarity and reliability of anomaly localization.\n\n67.1/84.0 for the Base), but substantially enhances pixellevel anomaly localization, with PRO increasing from 32.9\nto 45.5. On VisA, SCR improves both image-level (AUROC/AP: 63.8/69.0 vs. 45.7/56.2) and pixel-level metrics, demonstrating its effectiveness in refining fine-grained\nanomaly regions. In the full configuration integrating all\nfour strategies, it contributes to the highest image-level AUROC/AP (89.5/90.7) on VisA, outperforming all other combinations. These results indicate that SCR synergizes with\nthe other modules to improve both global anomaly recognition and local anomaly localization, validating its role\nin enforcing spatial consistency and boosting fine-grained\nanomaly detection.\n\n5. Conclusion\n\n4.3.4. Effectiveness of SCR\n\nIn this work, we propose FB-CLIP, a unified framework\nfor zero-shot anomaly detection that achieves fine-grained\nand robust anomaly representations through collaborative\nimprovements in both textual and visual modalities. In\nthe text modality, FB-CLIP fuses EOT, global-pooled, and\nattention-weighted token features to construct rich, taskaware text representations. It further introduces Semantic Consistency Regularization, which minimizes entropy\nand enforces similarity margin constraints to suppress uncertain matches and enhance cross-modal alignment stability. In the visual modality, FB-CLIP leverages multi-view\nforeground-background soft separation and continuous gating to integrate multi-branch attention outputs, emphasizing\ncritical anomalous cues, while Background Suppression reduces complex scene and cross-domain interference to produce cleaner and more robust visual representations. By\nintegrating these strategies, FB-CLIP effectively captures\nfine-grained local anomaly patterns while maintaining robust ZSAD across diverse datasets and domains.\n\nTo evaluate the effectiveness of our SCR module (column\nSCR in Table 2), we conduct a detailed ablation study\non both MVTec and VisA datasets. When applied individually, SCR shows limited improvement on image-level\nanomaly detection for MVTec (AUROC/AP: 65.4/81.3 vs.\n\n35666\n\n\fAcknowledgment\nThis research was supported by: The Shaanxi Province\nTechnological Innovation Guidance Special Project:\nRegional Science and Technology Innovation Center,\nStrategic Scientific and Technological Strength Category\n[No.2024QY-SZX-26]. The Hubei Provincial Natural\nScience Foundation (Grant No. JCZRLH202600590).\nThe research was supported by the Key Laboratory of\nSpectral Imaging Technology, Xi’an Institute of Optics and\nPrecision Mechanics of the Chinese Academy of Sciences;\nthe Key Laboratory of Biomedical Spectroscopy of Xi’an.\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\n[2] 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. 1, 6\n[3] Paul Bergmann, Michael Fauser, David Sattlegger, and\nCarsten Steger. Uninformed students: Student-teacher\nanomaly detection with discriminative latent embeddings. In\nProceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 4183–4192, 2020. 1, 6\n[4] Jorge Bernal, F Javier Sánchez, Gloria FernándezEsparrach, Debora Gil, Cristina Rodrı́guez, and Fernando\nVilariño. Wm-dova maps for accurate polyp highlighting\nin colonoscopy: Validation vs. saliency maps from physicians. Computerized medical imaging and graphics, 43:99–\n111, 2015. 6\n[5] Tri Cao, Jiawen Zhu, and Guansong Pang. Anomaly\ndetection under distribution shift.\narXiv preprint\narXiv:2303.13845, 2023. 1\n[6] Yunkang Cao, Jiangning Zhang, Luca Frittoli, Yuqi Cheng,\nWeiming Shen, and Giacomo Boracchi. Adaclip: Adapting\nclip with hybrid learnable prompts for zero-shot anomaly detection. In European Conference on Computer Vision, pages\n55–72. Springer, 2024. 2, 6, 7\n[7] Xuhai Chen, Yue Han, and Jiangning Zhang. A zero-/fewshot anomaly classification and segmentation method for\ncvpr 2023 vand workshop challenge tracks 1&amp;2: 1st place\non zero-shot ad and 4th place on few-shot ad. arXiv preprint\narXiv:2305.17382, 2023. 6, 7\n[8] Xuhai Chen, Jiangning Zhang, Guanzhong Tian, Haoyang\nHe, Wuhao Zhang, Yabiao Wang, Chengjie Wang, and Yong\nLiu. Clip-ad: A language-guided staged dual-path model for\nzero-shot anomaly detection. In International Joint Conference on Artificial Intelligence, pages 17–33. Springer, 2024.\n3\n[9] Yuanhong Chen, Yu Tian, Guansong Pang, and Gustavo\nCarneiro. Deep one-class classification via interpolated\n\ngaussian descriptor. In Proceedings of the AAAI Conference\non Artificial Intelligence, pages 383–392, 2022. 1\n[10] Choubo Ding, Guansong Pang, and Chunhua Shen. Catching\nboth gray and black swans: Open-set supervised anomaly\ndetection. In Proceedings of the IEEE/CVF Conference\non Computer Vision and Pattern Recognition, pages 7388–\n7398, 2022. 1\n[11] Qingqing Fang, Wenxi Lv, and Qinliang Su. Af-clip: Zeroshot anomaly detection via anomaly-focused clip adaptation.\narXiv preprint arXiv:2507.19949, 2025. 2, 3, 5, 6, 7\n[12] Tharindu Fernando, Harshala Gammulle, Simon Denman,\nSridha Sridharan, and Clinton Fookes. Deep learning for\nmedical anomaly detection–a survey. ACM Computing Surveys (CSUR), 54(7):1–37, 2021. 1\n[13] Bin-Bin Gao, Yue Zhou, Jiangtao Yan, Yuezhi Cai, Weixi\nZhang, Meng Wang, Jun Liu, Yong Liu, Lei Wang, and\nChengjie Wang. Adaptclip: Adapting clip for universal visual anomaly detection. arXiv preprint arXiv:2505.09926,\n2025. 2\n[14] Haifan Gong, Guanqi Chen, Ranran Wang, Xiang Xie,\nMingzhi Mao, Yizhou Yu, Fei Chen, and Guanbin Li. Multitask learning for thyroid nodule segmentation with thyroid\nregion prior. In 2021 IEEE 18th international symposium on\nbiomedical imaging (ISBI), pages 257–261. IEEE, 2021. 6\n[15] David Gutman, Noel C. F. Codella, Emre Celebi, Brian\nHelba, Michael Marchetti, Nabin Mishra, and Allan Halpern.\nSkin lesion analysis toward melanoma detection: A challenge at the international symposium on biomedical imaging\n(isbi) 2016, hosted by the international skin imaging collaboration (isic), 2016. 6\n[16] A.\nHamada.\nBr35h:\nBrain\ntumor\ndetection\n2020.\nOnline.\nAvailable:\nhttps://www.kaggle.com/datasets/ahmedhamada0/braintumor-detection, 2020. 6\n[17] Zhongyi Han, Gongxu Luo, Hao Sun, Yaqian Li, Bo Han,\nMingming Gong, Kun Zhang, and Tongliang Liu. Alignclip:\nnavigating the misalignments for robust vision-language\ngeneralization. Machine Learning, 114(3):58, 2025. 2\n[18] Marti A. Hearst, Susan T Dumais, Edgar Osuna, John Platt,\nand Bernhard Scholkopf. Support vector machines. IEEE Intelligent Systems and their applications, 13(4):18–28, 1998.\n6\n[19] Steven A Hicks, Debesh Jha, Vajira Thambawita, Pål\nHalvorsen, Hugo L Hammer, and Michael A Riegler. The\nendotect 2020 challenge: evaluation and comparison of classification, segmentation and inference time for endoscopy.\nIn Pattern Recognition. ICPR International Workshops and\nChallenges: Virtual Event, January 10-15, 2021, Proceedings, Part VIII, pages 263–274. Springer, 2021. 6\n[20] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term\nmemory. Neural computation, 9(8):1735–1780, 1997. 5\n[21] Ming Hu, Jianfu Yin, Jing Wang, Yuqi Wang, Bingliang Hu,\nand Quan Wang. Specslice-convlstm: Medical hyperspectral image segmentation using spectral slicing and convlstm.\nIn International Conference on Pattern Recognition, pages\n211–225. Springer, 2024. 5\n[22] Ming Hu, Jianfu Yin, Zhuangzhuang Ma, Jianheng Ma,\nFeiyu Zhu, Bingbing Wu, Ya Wen, Meng Wu, Cong Hu,\n\n35667\n\n\fZhou. Aa-clip: Enhancing zero-shot anomaly detection via\nanomaly-aware clip. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 4744–4754,\n2025. 6, 7\n[34] Pankaj Mishra, Riccardo Verk, Daniele Fornasier, Claudio\nPiciarelli, and Gian Luca Foresti. Vt-adl: A vision transformer network for image anomaly detection and localization. In 2021 IEEE 30th International Symposium on Industrial Electronics (ISIE), pages 01–06. IEEE, 2021. 6\n[35] Shancong Mou, Xiaoyi Gu, Meng Cao, Haoping Bai, Ping\nHuang, Jiulong Shan, and Jianjun Shi. Rgi: robust ganinversion for mask-free image inpainting and unsupervised\npixel-wise anomaly detection. In The Eleventh International\nConference on Learning Representations, 2022. 1\n[36] Guansong Pang, Choubo Ding, Chunhua Shen, and\nAnton van den Hengel.\nExplainable deep few-shot\nanomaly detection with deviation networks. arXiv preprint\narXiv:2108.00462, 2021. 1\n[37] Ziyuan Qin, Huahui Yi, Qicheng Lao, and Kang Li.\nMedical image understanding with pretrained vision language models: A comprehensive study. arXiv preprint\narXiv:2209.15517, 2022. 1\n[38] Zhen Qu, Xian Tao, Xinyi Gong, Shichen Qu, Qiyu Chen,\nZhengtao Zhang, Xingang Wang, and Guiguang Ding.\nBayesian prompt flow learning for zero-shot anomaly detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 30398–30408,\n2025. 2\n[39] 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. 1\n[40] Tal Reiss and Yedid Hoshen. Mean-shifted contrastive loss\nfor anomaly detection. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 2155–2162, 2023. 1\n[41] Karsten Roth, Latha Pemula, Joaquin Zepeda, Bernhard\nSchölkopf, Thomas Brox, and Peter Gehler. Towards total recall in industrial anomaly detection. In Proceedings of\nthe IEEE/CVF Conference on Computer Vision and Pattern\nRecognition, pages 14318–14328, 2022. 1, 5\n[42] Mohammadreza Salehi, Niousha Sadjadi, Soroosh\nBaselizadeh, Mohammad H Rohban, and Hamid R Rabiee. Multiresolution knowledge distillation for anomaly\ndetection.\nIn Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages\n14902–14912, 2021. 6\n[43] Nima Tajbakhsh, Suryakanth R Gurudu, and Jianming\nLiang. Automated polyp detection in colonoscopy videos\nusing shape and context information. IEEE transactions on\nmedical imaging, 35(2):630–644, 2015. 6\n[44] Alexander DJ Taylor, Phillip Tregidgo, Jonathan James Morrison, and Neill DF Campbell. Visionad, a software package\nof performant anomaly detection algorithms, and proportion\nlocalised, an interpretable metric. Transactions on Machine\nLearning Research, 2024. 3\n\nBingliang Hu, et al. beta-fft: Nonlinear interpolation and\ndifferentiated training strategies for semi-supervised medical\nimage segmentation. In Proceedings of the Computer Vision\nand Pattern Recognition Conference, pages 30839–30849,\n2025. 1\n[23] Chaoqin Huang, Haoyan Guan, Aofan Jiang, Ya Zhang,\nMichael Spratling, and Yan-Feng Wang. Registration based\nfew-shot anomaly detection. In European Conference on\nComputer Vision, pages 303–319. Springer, 2022. 1\n[24] Jongheon Jeong, Yang Zou, Taewan Kim, Dongqing Zhang,\nAvinash Ravichandran, and Onkar Dabeer. Winclip: Zero/few-shot anomaly classification and segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision\nand Pattern Recognition, pages 19606–19616, 2023. 1, 2, 3,\n6, 7\n[25] Stepan Jezek, Martin Jonak, Radim Burget, Pavel Dvorak,\nand Milos Skotak. Deep learning-based defect detection of\nmetal parts: evaluating current methods in complex conditions. In 2021 13th International congress on ultra modern telecommunications and control systems and workshops\n(ICUMT), pages 66–71. IEEE, 2021. 6\n[26] Debesh Jha, Pia H Smedsrud, Michael A Riegler, Pål\nHalvorsen, Thomas de Lange, Dag Johansen, and Håvard D\nJohansen. Kvasir-seg: A segmented polyp dataset. In MultiMedia Modeling: 26th International Conference, MMM\n2020, Daejeon, South Korea, January 5–8, 2020, Proceedings, Part II 26, pages 451–462. Springer, 2020. 6\n[27] 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. arXiv preprint arXiv:2304.02643, 2023. 1\n[28] Xurui Li, Ziming Huang, Feng Xue, and Yu Zhou. Musc:\nZero-shot industrial anomaly classification and segmentation with mutual scoring of the unlabeled images. In The\nTwelfth International Conference on Learning Representations, 2024. 5\n[29] Xiaofan Li, Zhizhong Zhang, Xin Tan, Chengwei Chen,\nYanyun Qu, Yuan Xie, and Lizhuang Ma. Promptad: Learning prompts with only normal samples for few-shot anomaly\ndetection. In Proceedings of the IEEE/CVF Conference on\nComputer Vision and Pattern Recognition, pages 16838–\n16848, 2024. 3\n[30] Yunheng Li, Yuxuan Li, Quansheng Zeng, Wenhai Wang,\nQibin Hou, and Ming-Ming Cheng. Densevlm: A retrieval\nand decoupled alignment framework for open-vocabulary\ndense prediction. arXiv preprint arXiv:2412.06244, 7, 2024.\n2\n[31] Jie Liu, Yixiao Zhang, Jie-Neng Chen, Junfei Xiao, Yongyi\nLu, Bennett A Landman, Yixuan Yuan, Alan Yuille, Yucheng\nTang, and Zongwei Zhou. Clip-driven universal model for\norgan segmentation and tumor detection. arXiv preprint\narXiv:2301.00785, 2023. 1\n[32] Philipp Liznerski, Lukas Ruff, Robert A Vandermeulen,\nBilly Joe Franks, Marius Kloft, and Klaus-Robert Müller.\nExplainable deep one-class classification. arXiv preprint\narXiv:2007.01760, 2020. 1\n[33] Wenxin Ma, Xu Zhang, Qingsong Yao, Fenghe Tang,\nChenxu Wu, Yingtai Li, Rui Yan, Zihang Jiang, and S Kevin\n\n35668\n\n\fdistillation for efficient unsupervised anomaly detection and\nlocalization. IEEE Transactions on Circuits and Systems for\nVideo Technology, 33(5):2176–2189, 2023. 1\n[58] 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. 1, 2, 3, 6, 7\n[59] Jiawen Zhu, Yew-Soon Ong, Chunhua Shen, and Guansong\nPang. Fine-grained abnormality prompt learning for zeroshot anomaly detection. In Proceedings of the IEEE/CVF\nInternational Conference on Computer Vision, pages 22241–\n22251, 2025. 2, 6, 7\n[60] Yang Zou, Jongheon Jeong, Latha Pemula, Dongqing Zhang,\nand Onkar Dabeer. Spot-the-difference self-supervised pretraining for anomaly detection and segmentation. In European Conference on Computer Vision, pages 392–408.\nSpringer, 2022. 6\n\n[45] Yu Tian, Guansong Pang, Fengbei Liu, Yuanhong Chen,\nSeon Ho Shin, Johan W Verjans, Rajvinder Singh, and Gustavo Carneiro. Constrained contrastive distribution learning\nfor unsupervised anomaly detection and localisation in medical images. In Medical Image Computing and Computer Assisted Intervention–MICCAI 2021: 24th International Conference, Strasbourg, France, September 27–October 1, 2021,\nProceedings, Part V 24, pages 128–140. Springer, 2021. 1\n[46] Yu Tian, Fengbei Liu, Guansong Pang, Yuanhong Chen,\nYuyuan Liu, Johan W Verjans, Rajvinder Singh, and Gustavo\nCarneiro. Self-supervised pseudo multi-class pre-training for\nunsupervised anomaly detection and segmentation in medical images. Medical Image Analysis, page 102930, 2023. 1\n[47] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia\nPolosukhin. Attention is all you need. Advances in neural\ninformation processing systems, 30, 2017. 5\n[48] 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[49] Matthias Wieler and Tobias Hahn. Weakly supervised learning for industrial optical inspection. In DAGM symposium\nin, 2007. 6\n[50] Guoyang Xie, Jingbao Wang, Jiaqi Liu, Feng Zheng, and\nYaochu Jin. Pushing the limits of fewshot anomaly detection in industry vision: Graphcore. arXiv preprint\narXiv:2301.12082, 2023. 1\n[51] Zhen Yao, Xin Li, Taotao Jing, Shuai Zhang, and Mooi Choo\nChuah. Disa: Saliency-aware foreground-background disentangled framework for open-vocabulary semantic segmentation. arXiv preprint arXiv:2601.20064, 2026. 2\n[52] Zhiyuan You, Lei Cui, Yujun Shen, Kai Yang, Xin Lu,\nYu Zheng, and Xinyi Le. A unified model for multi-class\nanomaly detection. Advances in Neural Information Processing Systems, 35:4571–4584, 2022. 1\n[53] Jingyi Yuan, Pengyu Jie, Junyin Zhang, Ziao Li, and Chenqiang Gao. Mfp-clip: Exploring the efficacy of multi-form\nprompts for zero-shot industrial anomaly detection. arXiv\npreprint arXiv:2503.12910, 2025. 5\n[54] Xiaozhe Zhang, Fengying Xie, Haidong Ding, Linpeng Pan,\nand Zhenwei Shi. Adapt clip as aggregation instructor for\nimage dehazing. arXiv e-prints, pages arXiv–2408, 2024. 5\n[55] Kaiyang Zhou, Jingkang Yang, Chen Change Loy, and Ziwei\nLiu. Conditional prompt learning for vision-language models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 16816–16825,\n2022. 3\n[56] Kaiyang Zhou, Jingkang Yang, Chen Change Loy, and Ziwei\nLiu. Learning to prompt for vision-language models. International Journal of Computer Vision, 130(9):2337–2348,\n2022. 3\n[57] Qihang Zhou, Shibo He, Haoyu Liu, Tao Chen, and Jiming Chen. Pull &amp; push: Leveraging differential knowledge\n\n35669\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"