"<!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\nDLVP-CLIP: Enhancing Fine-Grained Zero-Shot Anomaly Detection via\nDynamic Local Visual Prompting\nGaowei Zhang, Lihe Zhang*\nDalian University of Technology\nzhanggaowei@mail.dlut.edu.cn, zhanglihe@dlut.edu.cn\n\nAbstract\nZero-shot anomaly detection (ZSAD) aims to utilize auxiliary data to train models for generalized learning of unseen categories, which has important application value in\nfields such as industrial quality inspection and medical diagnosis. Although methods based on CLIP show potential,\ntheir pre-training objective of focusing on overall semantic\nalignment between images and text makes the model insensitive to local details, which is inherently contradictory to\nthe need for fine-grained local features in anomaly detection. Existing improvement methods rely on predefined text\nprompt frameworks to perceive local information, but struggle to effectively address the issue of insufficient local perception. To address this, this paper proposes a dynamic local visual prompting method based on CLIP (DLVP-CLIP).\nDLVP dynamically identifies and extracts local visual features from key regions in images as prompt tokens using\nthe Semantic-Aware Local Feature Selector (SLFS) module, and utilizes the multi-modal local prompt (MLoP) module to jointly optimize representations in both visual and\ntextual spaces, achieving more precise cross-modal alignment. Additionally, the high-low frequency decomposition\nmodule (HFD) is introduced to separate and process global\nstructural and local textural information via wavelet transformation, thereby enhancing detail perception. Extensive\nexperiments on 13 anomaly detection datasets demonstrate\nthat DLVP-CLIP achieves outstanding ZSAD performance\non datasets from the industrial and medical domains.\n\nFigure 1. Comparison between existing CLIP-based methods and\nour DLVP-CLIP. (a) Generate general text prompts. (b) Adapt\nthe global visual features of CLIP to the text prompts. (c) Our\nDLVP-CLIP extracts local visual features as dynamic prompts\nand achieves more accurate cross-modal alignment through visualtextual joint encoding.\n\n1. Introduction\n\nity on scarce samples or new categories. This limitation\nis particularly pronounced in industrial quality inspection\n[18, 29] and medical diagnosis domains [4, 27]. To address this, researchers have proposed Zero-Shot Anomaly\nDetection (ZSAD), which aims to directly generalize the\nmodel to unseen categories after training with auxiliary data\n[13, 16, 34]. However, differences in background features\nacross products/organs, the diversity of anomaly morphologies, and variations in visual appearance make it challenging for existing methods to achieve robust cross-domain\ngeneralization.\nIn recent years, CLIP [32] has provided new insights for\n\nThe core objective of anomaly detection (AD) is to model\ndata distributions to identify anomalous samples, such as\nindustrial product defects [2] or medical image lesions\n[9]. While traditional methods [11, 23, 24] perform well\nwhen labeled data is abundant, their strong reliance on labeled data severely limits the model’s generalization abil* Corresponding author.\n\n35524\n\n\ffew/zero-shot anomaly detection due to its strong zero-shot\ngeneralization capabilities [18]. These methods leverage\nthe alignment between visual and textual representations\nto describe anomalies through language prompts, eliminating the need for category-specific training. As shown in\nFigure 1(a), AnomalyCLIP [43] introduces object-agnostic\nprompts by replacing product names with a generic “object”\ntoken, enabling domain transfer. AA-CLIP [26] employs\nresidual adapters to construct anomaly-aware text representations and guide visual attention toward potential defect\nregions. TPS [25] enhances multi-level alignment by introducing dual-level text prompts for global anomaly classification and pixel-level segmentation. Additionally, Figure\n1(b) illustrates that AdaCLIP [4] and VCP-CLIP [30] improve the encoding of category semantics in the text space\nby incorporating global image features.\nAlthough existing methods have improved CLIP’s performance in anomaly detection, they have failed to address\nits inherent weakness of being insensitive to local features.\nAnomaly detection relies heavily on the accurate capture of\nlocal details in images. However, CLIP’s pre-training objective focuses on the overall semantic alignment between\nimages and text. This causes the model to tend to extract\nobject-level global semantic features, while paying insufficient attention to the fine visual features of local areas. This\ncharacteristic creates an inherent contradiction with the requirements of anomaly detection.\nConstrained by this contradiction, current improvement\nmethods face challenges. Text-driven methods (AnomalyCLIP, AA-CLIP, TPS) rely on pre-designed text prompts to\nperceive local details, which makes it difficult to dynamically adapt to complex and variable anomaly patterns. On\nthe other hand, methods (AdaCLIP, VCP-CLIP) that introduce visual global CLS features can enhance the overall description at the instance level. However, by further focusing\non global representations, they inevitably weaken the ability\nto represent subtle local anomalies.\nTo this end, this paper proposes Dynamic Local Visual Prompting based on CLIP (DLVP-CLIP), which explicitly extracts key local visual features from images as\ndynamic prompts and achieves more precise cross-modal\nalignment through visual-text joint encoding. As shown in\nFigure 1(c), DLVP consists of a semantic-aware local feature selector (SLFS) and a multi-modal local prompt module (MLoP). SLFS identifies semantic key regions through\nthe attention map of the CLS token and extracts features\nfrom high-attention image blocks as dynamic prompt tokens. Subsequently, the MLoP module utilizes these finegrained visual features to jointly optimize the feature representations of the text and visual spaces. Embedded visual\ntokens provide rich, fine-grained semantic context, significantly enhancing the model’s ability to capture image details. This approach mitigates the limitations of predefined\n\ntext prompts and reduces overemphasis on global features.\nAdditionally, ViT exhibits a low-pass filtering effect during\nglobal feature aggregation that tends to smooth fine textures\n[5]. By decoupling and separately modeling low-frequency\nglobal structures and high-frequency local textures through\nwavelet transformation, High-Low Frequency Decomposition (HFD) effectively preserves subtle details, enhancing\nthe model’s fine-grained perception capabilities.\nOur contributions are summarized as follows:\n• We propose DLVP-CLIP, which achieves more flexible\nand context-aware cross-modal alignment by co-encoding\ndynamically extracted visual cues with text prompts, significantly improving fine-grained anomaly detection accuracy while maintaining zero-shot generalization capabilities.\n• We propose DLVP, which consists of SLFS and MLoP\nmodules. SLFS is used to extract high-attention image\npatches as dynamic prompt tokens, and the MLoP utilizes the extracted prompt tokens to jointly optimize feature representations in both text and visual spaces through\njoint visual-text encoding.\n• To further enhance the model’s ability to perceive details,\nwe propose a HFD method based on wavelet transformation to separately process global structure and local texture.\n• Comprehensive experiments on 13 real-world industrial and medical datasets demonstrate that DLVP-CLIP\nachieves outstanding ZSAD performance.\n\n2. Related Work\n2.1. Zero-Shot Anomaly Detection (ZSAD)\n\n35525\n\nZSAD has achieved significant performance gains by leveraging large visual language models (e.g., CLIP). WinCLIP\n[18] was the first to apply CLIP to the ZSAD domain, aggregating classification results by aligning text with subimages at multiple scales. However, due to CLIP being pretrained on general object semantics rather than abnormal\npatterns, its anomaly detection capabilities remain limited.\nAPRIL-GAN [6] and CLIP-AD [7] introduce adapters to\noptimise visual features and enhance image block-level visual representations. AnomalyCLIP [43] aligns patch-level\nmarkers by learning category-independent prompt embeddings and adding learnable markers to the text intermediate\nlayer to optimise the base CLIP representation. AdaCLIP\n[4] and VCP-CLIP [30] adopt a similar approach and further\nintegrate visual knowledge into the text prompt embedding.\nBayes-PFL [31] learns the distribution of the text prompt\nand uses sampling to cover the prompt space. FE-CLIP [10]\ninjects frequency information through two complementary\nadapters, thereby better capturing anomaly patterns in the\ncross-domain.\nUnlike these methods, DLVP-CLIP employs a locally\n\n\fFigure 2. Architecture of DLVP-CLIP. First, the SLFS module generates dynamic visual prompts from CLIP’s CLS attention maps. Then,\nMLoP embeds these prompts into Transformer layers of visual/text encoders, guiding local detail focus and semantic anchoring. Finally,\nHFD uses wavelet transforms to separately process frequency components, jointly supports image-level anomaly detection and pixel-level\nanomaly localization.\n\nvisual-driven dynamic prompt generation mechanism. It extracts key local features from images to build context-aware\nprompt semantics and enhances the alignment between text\nand visual spaces through multi-modal interaction.\n\nage and text features.\n\n2.2. Prompt Learning\n\n3. Method\n3.1. Problem Formulation\n\nPrompt learning methods [33, 35, 38, 41] have become\nthe core paradigm for adapting visual-language models\n(VLMs) to downstream tasks. Early studies such as CoOp\n[42] pioneered the use of learnable text prompts to replace\ntraditionally manually designed prompts, significantly enhancing the model’s adaptability to specific tasks. However, such methods still face challenges in terms of insufficient transferability when handling out-of-distribution data.\nTo address this, CoCoOp [41] guides the pre-trained backbone network to adapt to the target domain using visual context prompts. Furthermore, MaPLe [21] and PromptSRC\n[22] extend prompt learning to the bimodal space, achieving deeper cross-modal alignment by jointly regulating im-\n\n35526\n\nZSAD aims to identify anomalies from unseen object categories that are disjoint from the training categories. Formally, a model is trained on a dataset Dtrain containing normal or anomalous samples to learn cross-category shared\npatterns, enabling generalization to n distinct test sets\n1\n2\nn\ni\n{Dtest\n, Dtest\n, . . . , Dtest\n} where Dtest\n∩ Dtrain = ∅ (∀i). At\nthe image level, AD is defined as binary classification:\nfor an input x, the model predicts y = 0 (normal) or\ny = 1 (anomaly). For pixel-level anomaly segmentation,\nthe model additionally generates a mask S ∈ {0, 1}H×W\nwhere sh,w = 1 indicates an anomalous pixel at location\n(h, w).\n\n\f3.2. Overview\nFigure 2 illustrates the main structure of DLVP-CLIP. First,\nSLFS extracts the CLS token attention map from the original CLIP visual encoder. Based on this attention map, it\nextracts key local details and forms visual prompt tokens.\nSubsequently, MLoP embeds these visual prompt tokens\ninto the Transformer layers of CLIP’s visual and text encoders. In the visual encoder, the local prompts guide the\nmodel to focus on key local details during feature extraction. Meanwhile, in the text encoder, they anchor text feature representations to specific image details, thereby enhancing semantic precision and mitigating the limitations of\ngeneric text prompts in capturing fine-grained associations.\nAdditionally, to further enhance feature representations, we\nintroduce HFD. This module utilizes wavelet transforms\nto decompose visual features into high-frequency and lowfrequency components, processing them separately to extract local details and global structural information collaboratively.\n\nject the projected local features as dynamic prompts into\nboth visual and text encoders. This design establishes finegrained semantic associations within the cross-modal feature space, thereby enhancing the model’s sensitivity to subtle local variations.\nSpecifically, the local visual feature matrix P is transformed into prompt tokens P′ ∈ RM ×C . In the visual\nencoder, P′ is concatenated with the regular input tokens\nT ∈ RN ×C along the sequence dimension, with the constraint M ≪ N . Let LP\nj denote the j-th prompt-enhanced\nTransformer layer, whose forward propagation is processed\nlayer-wise as:\n′\n[Tj+1 , ] = LP\nj ([Tj , P ]),\n\nj ≤ J,\n\n(1)\n\n′\n[Tj+1 , P′j+1 ] = LP\nj ([Tj , P ]),\n\nj &gt; J,\n\n(2)\n\n3.3. Dynamic Local Visual Prompt\n\nwhere J denotes the maximum layer depth of learnable\nprompts, and [·, ·] denotes concatenation along the sequence\ndimension.\nOn the text side, the projected features P′ are passed\nthrough a projection layer Fθ and combined with a static\nlearnable vector Ej ∈ RM ×D to generate text prompt tokens:\n\nTo effectively capture and understand critical local details\nin images and their fine-grained semantic associations with\ntext descriptions, we propose the DLVP. DLVP consists of\nthe SLFS and MLoP.\nSemantic-Aware Local Feature Selector. Existing\nprompt-based visual-language models (such as CLIP) are\ntypically optimized at the global image-text alignment level,\nmaking it difficult to effectively capture key local details\nand their fine-grained semantic associations with text. This\nlimitation significantly restricts the model’s performance in\ntasks requiring a precise understanding of image content.\nUnlike AdaCLIP [4], which uses the global features of the\nCLS token as prompts, this paper proposes explicitly injecting local visual semantics to enhance the fine-grained\nalignment of the text space through key local information.\nIn the visual Transformer, the CLS token generates\nimage-level semantic representations by aggregating global\ncontextual information, with its attention weights essentially encoding the contribution of each image region to\nthe overall semantics. Given the attention matrix A ∈\nR(N +1)×(N +1) from the final transformer layer, where N\nis the number of image patches. We extract the attention\nvector Acls ∈ RN for the CLS token, where each element\ncorresponds to a semantic importance score for an image\npatch. Based on this, we select the top K token indices\nwith the highest attention weights: T = {ti | Acls [ti ] ∈\nT opk(Acls , K)}K\nThen, local features are extracted\ni=1 .\nfrom the visual features V based on P = V[T ] ∈ RK×C ,\nwhere P aggregates K semantically critical local features,\nserving as input for subsequent prompt learning.\nMulti-modal Local Prompt. To promote collaborative\noptimization between text and visual modalities, we in-\n\nPtj = Fθ (P′ ) + Ej ,\n\nPtj ∈ RM ×D .\n\n(3)\n\nThese tokens are injected into the text encoder via the same\nmechanism, concatenated with text tokens Sj ∈ RL×D to\nform [Sj , Ptj ] ∈ R(L+M )×D , where D is the text embedding dimension and L is the text token length:\n[Sj+1 , ] = LTj ([Sj , Ptj ]),\n\nj ≤ J,\n\n(4)\n\n[Sj+1 , Ptj+1 ] = LTj ([Sj , Ptj ]),\n\nj &gt; J,\n\n(5)\n\nwhere LTj denotes the j-th prompt-enhanced text Transformer layer.\n\n3.4. High-low Frequency Decomposition\n\n35527\n\nAnomalies often appear as subtle local texture variations.\nHowever, the self-attention mechanism in ViT aggregates\nfeatures globally, effectively acting as a low-pass filter.\nIt computes similarities between each patch and all others, fusing them into a global representation. This process smooths out high-frequency signals (e.g., fine textures) while emphasizing low-frequency, semantically consistent patterns (e.g., global structures). To address this\nlimitation, HFD explicitly decomposes features into lowand high-frequency components via DWT. By modeling the\nhigh-frequency branch independently, HFD enhances finegrained anomaly cues that would otherwise be suppressed.\nGiven the input feature FVi ∈ RN ×C at layer i, we first\nadjust the channel dimension through a linear projection\nlayer to generate spatially-aware features:\n\u0001\nF̃Vi = Fv FVi .\n(6)\n\n\fSubsequently, F̃Vi is decomposed into low-frequency comH\nponents FL\ni and high-frequency components Fi :\n\n3.6. Loss Function\nDuring training, we calculate the classification loss Lcls and\nsegmentation loss Lseg to optimize the parameters:\n\nV\nV\nV\nFH\ni = [DW T lh (F̃i ), DW T hl (F̃i ), DW T hh (F̃i )],\n\n\u0010 \u0011\nV\nFL\n,\ni = DW T ll F̃i\n\n(7)\n\nDW Txy denotes the wavelet coefficients of different frequency bands, x, y ∈ {l, h} represent low-frequency\nand high-frequency components, respectively. The lowfrequency component FL\ni mainly encodes global structural\ninformation, while the high-frequency component FH\ni contains detailed information such as edge textures. We process these two features using linear projection to obtain\nH\n{FL\ni , Fi }. The processed features are spatially reconstructed via inverse discrete wavelet transform:\n\u0001\nL\nH\nFD\n.\n(8)\ni = IDWT Fi + Fi\nThe final output result is obtained via residual connection:\nFoi = FVi + FD\ni .\n\nLtotal = Lcls (Sp , y) +\n\n+ F ocal(Mla , Sgt ).\n\nPixel-level anomaly map. Given an input image X ∈\nRh×w×3 , the visual encoder extracts multiple patch-level\nfeatures FiV ∈ RH×W ×C , i = 1, 2, · · · L from L intermediate layers, where H = h/patchsize, W = w/patchsize.\nAfter optimization by the HFD module, Foi ∈ RH×W ×C is\nobtained. The text encoder generates normal/abnormal text\nA\nembeddings FT = [FN\nT , FT ] based on predefined prompts.\nThe anomaly map from the l-th layer is computed as:\n\n1 XL\n(Mla + I − Mln )/2,\nl=1\nL\n\n(17)\n\n4.1. Experiment Setup\nDataset. To evaluate the model’s ZSAD performance, we\nconducted experiments on 13 real-world datasets from industrial and medical domains. Specifically, we utilized 6\ncommonly used industrial anomaly detection datasets, including MVTec-AD [2], VisA [44], BTAD [28], SDD2 [3],\nDAGM [39], and DTD-Synthetic [1]. In the medical field,\nwe utilized 7 different datasets: HeadCT [36], BrainMRI\n[20], and Br35H [12] for brain tumor classification; Endo\n[14] and Kvasir [19] for colon polyp segmentation; ISIC [8]\nfor skin cancer detection; and RESC [15] for retinal edema\nsegmentation. More details about the datasets can be found\nin Appendix C.\nEvaluation Metrics. Following [17, 26, 37, 40], we\nadopted the Area Under the Receiver Operating Characteristic Curve (AUROC) as the evaluation metric. By calculating the AUROC values at both the image and pixel levels,\nwe comprehensively assessed the model’s effectiveness in\nanomaly detection and localization.\nImplementation Details. Following [4, 30, 43], we use\nthe OpenCLIP and ViT-L/14 architectures as the backbone\nnetwork, adjusting the input image to a size of 518 × 518.\nWe selected layers 6, 12, 18, and 24 from the 24-layer image\nencoder to extract patch embeddings. The number of local\nprompts was set to 4, the prompt depth to 9. We trained\nour model using the Adam optimizer with a learning rate of\n1.5e−4 . Following AnomalyCLIP [43], we fine-tuned our\nmodel on the MVTec-AD dataset, whose object categories\n\nwhere Concat denotes concatenate, GAP denotes global average pooling over the spatial dimensions. The local representation Xp is then fused with the global feature Xc to\nobtain the final image representation X = Xp + Xc . The\nimage-level anomaly score is computed by aligning X with\nthe text features:\ne T ).\neF\nSp = Sof tmax(X\n\n(16)\n\n4. Experiments\n\nf denotes L2\nwhere Mi = [Mia , Min ], Mi ∈ Rh×w×2 , (·)\nnormalization along the embedding dimension, and U p(·)\ndenotes upsampling.\nImage-level anomaly score. For anomaly classification,\nwe combine global and local features for similarity alignment with the text features. Specifically, the global feature Xc of the category token is first extracted. Meanwhile,\nthe multi-scale local patch features Foi ∈ RH×W ×C are\nconcatenated along the channel dimension, then aggregated\ninto a representation Xp via spatial compression and linear\nprojection:\n(12)\n\n(15)\n\nwhere I represents the full-one matrix.\n\n(10)\n\nXp = Linear (GAP(Fcat )) ,\n\n(14)\n\nIn the inference process, the final result M ∈ Rh×w is obtained by calculating the average value of the anomaly map\nof the l layer patch features:\nM=\n\n(11)\n\nLlseg .\n\nLseg = Dice(Mla , Sgt ) + Dice(Mln , I − Sgt )\n\n(9)\n\nFcat = Concat (Fo1 , · · · , FoL ) ,\n\nl=1\n\nThe classification loss uses binary cross-entropy to compare\nthe classification prediction Sp with the true label y. The\nsegmentation loss Lseg combines the Dice loss and Focal\nloss, which are applied to the segmentation prediction Mi\nand the abnormal segmentation mask Sgt , respectively:\n\n3.5. Anomaly Map and Anomaly Score\n\ne oF\ne\nMi = Sof tmax(U p(F\ni T )), i = 1, 2, · · · L,\n\nXL\n\n(13)\n\n35528\n\n\fTable 1. Image-level AUROC comparison of the ZSAD method. Best performance is marked in bold, and the second-best is shown with\nan underline. The results using the ∗ method are copied from the paper or inferred from the official weights.\nDatasets\nMVTec-AD\nVisA\nBTAD\nSDD2\nDAGM\nDTD-Synthetic\nHeadCT\nBrainMRI\nBr35H\n\nCategory\nObj &amp; texture\nObj\nObj\nObj\nTexture\nTexture\nBrain\nBrain\nBrain\n\n|C|\n15\n12\n3\n1\n10\n12\n1\n1\n1\n\nWinCLIP*\n\nAnomalyCLIP*\n\nAdaCLIP\n\nTPS\n\nBayesPFL*\n\nOurs\n\nCVPR 23\n\nICLR 24\n\nECCV 24\n\nAAAI 25\n\nCVPR 25\n\n-\n\n91.8\n78.1\n68.2\n94.3\n91.8\n93.2\n81.8\n86.6\n80.5\n\n91.5\n82.1\n88.3\n94.1\n97.5\n93.5\n93.4\n90.3\n94.6\n\n91.1\n84.5\n90.5\n96.0\n97.1\n94.7\n94.0\n96.0\n95.6\n\n90.1\n83.3\n88.1\n94.7\n97.0\n93.4\n92.3\n92.4\n96.2\n\n92.3\n87.0\n90.5\n97.4\n98.9\n95.1\n88.2\n91.2\n94.0\n\n94.2\n87.9\n92.6\n97.9\n99.3\n96.8\n95.0\n96.2\n98.1\n\nTable 2. Pixel-level AUROC comparison of the ZSAD method. Best performance is marked in bold, and the second-best is shown with an\nunderline. The results using the ∗ method are copied from the paper or inferred from the official weights.\nDatasets\nMVTec-AD\nVisA\nBTAD\nSDD2\nDAGM\nDTD-Synthetic\nISIC\nKvasir\nEndo\nRESC\n\nCategory\n\n|C|\n\nObj &amp; texture\nObj\nObj\nObj\nTexture\nTexture\nSkin\nColon\nColon\nRetina\n\n15\n12\n3\n1\n10\n12\n1\n1\n1\n1\n\nWinCLIP*\n\nAnomalyCLIP*\n\nAdaCLIP\n\nTPS\n\nBayesPFL*\n\nCVPR 23\n\nICLR 24\n\nECCV 24\n\nAAAI 25\n\nCVPR 25\n\n-\n\n85.1\n79.6\n72.7\n94.5\n87.6\n83.9\n83.3\n69.7\n68.2\n90.9\n\n91.1\n95.5\n94.2\n98.5\n95.6\n97.9\n89.7\n78.9\n84.1\n94.3\n\n89.4\n95.6\n91.5\n97.4\n95.1\n98.5\n89.3\n81.6\n85.4\n94.0\n\n88.5\n95.5\n94.2\n96.7\n93.8\n97.9\n91.2\n78.8\n84.7\n94.2\n\n91.8\n95.6\n92.3\n97.6\n95.1\n98.3\n89.5\n81.6\n85.0\n93.9\n\n90.4\n95.7\n93.4\n98.8\n96.8\n98.9\n92.1\n81.8\n86.0\n95.7\n\ndo not overlap with those of the remaining datasets. For\nthe results on MVTec-AD, we follow prior work and finetune the model on the VisA dataset. All experiments were\nconducted on a single NVIDIA GeForce RTX 4090 GPU.\nMore implementation details can be found in Appendix A.2.\n\nOurs\n\nwith an AUROC of 98.1% on the Br35H dataset, indicating\nits high sensitivity in detecting subtle structural anomalies\nin medical images.\n\n4.2. Comparison with SOTA Methods\n\nFor WinCLIP, it can maintain basic performance in simple scenarios, but in complex backgrounds or low-contrast\nmedical images (such as HeadCT 81.8%), it reveals the deficiency of its semantic alignment capability. AnomalyCLIP\nintroduced object-agnostic prompts, simplifying the prompt\ngeneration process. However, its static prompt design is\ndifficult to adapt to cross-domain scenarios, resulting in\nslightly inferior performance in medical datasets. AdaCLIP\ndynamically provides hints based on global information,\nwhile ignoring local perception. Our approach achieves this\nby using dynamic local cues to guide the coarse-grained\nglobal features of CLIP towards local abnormal patterns,\nthereby enabling the unified modeling of global semantics\nand fine-grained anomalies. As a result, it has achieved\nexcellent performance in both industrial quality inspection\nand medical diagnosis.\n\nThis paper compares our DLVP-CLIP with five state-of-theart methods, including WinCLIP [18], AnomalyCLIP [43],\nAdaCLIP [4], TPS [25], and Bayes-PFL [31]. To ensure\nfair comparison, we retrained models originally trained on\ndifferent datasets to match the dataset configuration of other\nmethods. For more details on these comparison methods,\nsee Appendix A.1.\nZero-shot anomaly classification. As shown in Table 1, our method achieves significant and consistent advantages in ZSAD across both industrial and medical domains. Specifically, on the texture-based datasets DAGM\nand DTD-Synthetic, it achieves AUROC scores of 99.3%\nand 96.8%, respectively, significantly outperforming other\nmethods and showcasing its robust detection capability for\ncomplex texture anomalies. In the medical field, our method\ndemonstrates significant advantages on three brain datasets,\n\n35529\n\nZero-shot anomaly segmentation. As shown in Table 2, we compared the pixel-level anomaly segmentation\nperformance on seven industrial datasets and four medical\ndatasets. The experimental results indicate that our method\n\n\fTable 4. Ablation Results of HFD. I-AUROC and P-AUROC represent Image-level and Pixel-level AUROC, respectively.\n\nMVTec-AD\n\nHFD\n\nVisA\n\nI-AUROC P-AUROC I-AUROC P-AUROC\n✗\n✔\n\n92.8\n94.2\n\n89.5\n90.4\n\n85.8\n87.9\n\n95.3\n95.7\n\nTable 5. Validity ablation for SLFS and HFD on the VisA dataset.\n(a) Effect of SLFS.\n\nFigure 3. Visualization of anomaly localization results of AnomalyCLIP, AdaCLIP, TPS, Bayes-PFL and our method.\n\nSetting\n\nI/P-AUROC\n\nSetting\n\nI/P-AUROC\n\nGlobal\nSLFS\n\n85.6, 95.6\n87.9, 95.7\n\nSobel\nHFD\n\n86.7, 95.2\n87.9, 95.7\n\nTable 6. Ablation results of different Top-K values. I-AUROC and\nP-AUROC represent image-level and pixel-level AUROC, respectively.\n\nTable 3. Ablation Results of DLVP. S and M respectively represent\nSLFS and MLoP. I-AUROC and P-AUROC represent Image-level\nand Pixel-level AUROC, respectively.\n\nNum.\n\nS M\n\nMVTec-AD\n\nVisA\n\n89.5\n91.0\n90.4\n94.2\n\n89.0\n89.3\n89.6\n90.4\n\n84.2\n86.3\n85.1\n87.9\n\nMVTec-AD\n\nVisA\n\nI-AUROC P-AUROC I-AUROC P-AUROC\n\nI-AUROC P-AUROC I-AUROC P-AUROC\n✗ ✗\n✔ ✗\n✗ ✔\n✔ ✔\n\n(b) Effect of HFD.\n\n1\n2\n3\n4\n5\n\n95.0\n95.2\n95.1\n95.7\n\n92.1\n92.4\n92.9\n94.2\n92.7\n\n88.5\n88.9\n90.1\n90.4\n89.7\n\n84.5\n85.7\n86.7\n87.9\n85.7\n\n95.3\n95.3\n95.5\n95.7\n95.7\n\nof 89.5% and a P-AUROC of 89.0% on the MVTec-AD\ndataset, while obtaining an I-AUROC of 84.2% and a PAUROC of 95.0% on the VisA dataset. These results indicate that, without DLVP, the model has limited ability\nto capture fine-grained anomalous patterns and distinguish\nsubtle local deviations. Adding either module improves\nperformance. Notably, the combination of both modules\nachieves optimal performance across all metrics. This is\nbecause the local semantic information provided by SLFS\nlays the foundation for cross-modal alignment in MLoP,\nwhile MLoP dynamically couples local features with the\ntext space through its prompting mechanism, enabling the\nmodel to more accurately distinguish local differences between normal and abnormal samples. As shown in Figure 4,\nthe visualization results demonstrate that the model tends to\noverlook subtle anomaly regions when DLVP is removed.\nIn contrast, the anomaly boundaries are clearly captured\nwhen they are used.\nInfluence of HFD. We conducted an ablation experiment on HFD, and the results are shown in Table 4. The\nexperimental results indicate that introducing HFD improves ZSAD performance on MVTec-AD and VisA. This\n\ndemonstrates comprehensive competitiveness in both industrial and medical fields, particularly in scenarios involving\ntexture defects and medical lesions. Specifically, while TPS\nperforms well on some tasks, its performance declines in\ntexture detection tasks (e.g., DAGM, DTD-Synthetic) and\nmedical dataset tasks. AdaCLIP and AnomalyCLIP perform adequately in industrial texture detection but show\na significant decline in performance for medical image\nanomaly segmentation tasks. In contrast, our method performs outstandingly in industrial texture and medical lesion tasks, verifying its generalization advantage. Figure 3 shows the anomaly maps for industrial and medical datasets. Compared to other methods, our DLVP-CLIP\nmodel demonstrates superior performance in segmentation\naccuracy and the completeness of anomaly region localization.\n\n4.3. Ablation\nInfluence of DLVP. Table 3 shows the impact of DLVP\non model performance. When both the SLFS and MLoP\nmodules are removed, the model achieves an I-AUROC\n\n35530\n\n\fFigure 5. t-SNE visualization results of text features on the VisA\ndataset.\n\nters can be found in Appendix B.\nWe visualize the text-prompt feature embeddings using\nt-SNE to assess the effectiveness of DLVP. As shown in\nFigure 5, the normal (blue) and abnormal (red) samples\nform clearly separable clusters, indicating that DLVP injects discriminative local visual cues into the prompt space,\nenabling the model to capture fine-grained semantic differences between normal and anomalous samples.\n\nFigure 4. Visualization comparison of anomaly detection results\nwith and without DLVP. After introducing DLVP, the model produces more precise anomaly localization results.\n\nmodule decomposes features into low-frequency and highfrequency components via DWT, where low-frequency\ncomponents suppress noise and high-frequency components\nenhance the perception of minor anomalies, effectively balancing global and local features.\nAs shown in Table 5, we further analyzed the effectiveness of SLFS and HFD. Compared to using a global token, SLFS focuses on semantically important local regions,\ncapturing fine-grained anomaly clues that global aggregation often overlooks. Furthermore, although the Sobel filter\nextracts high-frequency gradients, it captures only limited\nedge-based responses. In contrast, HFD performs structured multi-band frequency decomposition via DWT, enabling richer and more diverse high-frequency representations for subtle anomaly patterns.\nInfluence of Top-K. We conducted ablation analysis on\nthe number of Top-K in the SLFS module, as shown in Table 6. When K = 1, only the single highest attention region\nis selected, which may overlook critical local details. As\nK increases to 4, the model gradually covers more local regions strongly associated with anomalies, effectively supplementing the missing details in global features, achieving optimal performance. However, when K = 5, although\nmore regions are covered, some regions with low attention weights may contain background noise or normal texture variations unrelated to anomalies, resulting in a performance decline. More ablation studies on the hyperparame-\n\n5. Conclusion\nThis paper proposes DLVP-CLIP, a ZSAD method based\non dynamic local visual prompts, to address the inherent\nshortcomings of CLIP in fine-grained anomaly localization.\nThis method utilizes Semantic-Aware Local Feature Selector (SLFS) to extract visual features from key regions as\ndynamic prompt markers and employs multi-modal local\nprompt (MLoP) to achieve visual-text joint encoding, integrating fine-grained visual clues into the cross-modal alignment process. Furthermore, the high-low frequency decomposition (HFD) module based on wavelet transformation is\nintroduced to distinguish high-frequency textures from lowfrequency structural components, enabling the collaborative\nrepresentation of local details and global semantics. Extensive experimental results on 13 diverse public datasets, including industrial and medical images, demonstrate that our\nmethod achieves superior performance in the ZSAD task.\n\nAcknowledgment\n\n35531\n\nThis work was supported by the National Natural Science\nFoundation of China under Grant 62431004.\n\n\fReferences\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.\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.\n[3] Jakob Božič, Domen Tabernik, and Danijel Skočaj. Mixed\nsupervision for surface-defect detection: From weakly to\nfully supervised learning. Computers in Industry, 129:\n103459, 2021.\n[4] 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.\n[5] Linwei Chen, Lin Gu, and Ying Fu. Frequency-dynamic\nattention modulation for dense prediction. In Proceedings\nof the IEEE/CVF International Conference on Computer Vision, pages 22620–22632, 2025.\n[6] Xuhai Chen, Yue Han, and Jiangning Zhang. April-gan:\nA zero-/few-shot anomaly classification and segmentation\nmethod for cvpr 2023 vand workshop challenge tracks 1&amp;2:\n1st place on zero-shot ad and 4th place on few-shot ad. arXiv\npreprint arXiv:2305.17382, 2023.\n[7] 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.\n[8] Noel CF Codella, David Gutman, M Emre Celebi, Brian\nHelba, Michael A Marchetti, Stephen W Dusza, Aadi\nKalloo, Konstantinos Liopyris, Nabin Mishra, Harald Kittler, et al. Skin lesion analysis toward melanoma detection:\nA challenge at the 2017 international symposium on biomedical imaging (isbi), hosted by the international skin imaging\ncollaboration (isic). In 2018 IEEE 15th international symposium on biomedical imaging (ISBI 2018), pages 168–172.\nIEEE, 2018.\n[9] 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.\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.\n[11] Denis Gudovskiy, Shun Ishizaka, and Kazuki Kozuka.\nCflow-ad: Real-time unsupervised anomaly detection with\nlocalization via conditional normalizing flows. In Proceedings of the IEEE/CVF winter conference on applications of\ncomputer vision, pages 98–107, 2022.\n\n[12] A.\nHamada.\nBr35h:\nBrain\ntumor\ndetection\n2020.\nOnline.\nAvailable:\nhttps://www.kaggle.com/datasets/ahmedhamada0/braintumor-detection, 2020.\n[13] Haoyang He, Jiangning Zhang, Hongxu Chen, Xuhai Chen,\nZhishan Li, Xu Chen, Yabiao Wang, Chengjie Wang, and Lei\nXie. A diffusion-based framework for multi-class anomaly\ndetection. In Proceedings of the AAAI conference on artificial intelligence, pages 8472–8480, 2024.\n[14] Steven A Hicks, Debesh Jha, Vajira Thambawita, Pål\nHalvorsen, Hugo L Hammer, and Michael A Riegler. The\nendotect 2020 challenge: evaluation and comparison of classification, segmentation and inference time for endoscopy.\nIn International Conference on Pattern Recognition, pages\n263–274. Springer, 2021.\n[15] Junjie Hu, Yuanyuan Chen, and Zhang Yi. Automated segmentation of macular edema in oct using deep neural networks. Medical image analysis, 55:216–227, 2019.\n[16] Teng Hu, Jiangning Zhang, Ran Yi, Yuzhen Du, Xu Chen,\nLiang Liu, Yabiao Wang, and Chengjie Wang. Anomalydiffusion: Few-shot anomaly image generation with diffusion\nmodel. In Proceedings of the AAAI conference on artificial\nintelligence, pages 8526–8534, 2024.\n[17] Chaoqin Huang, Aofan Jiang, Jinghao Feng, Ya Zhang, Xinchao Wang, and Yanfeng Wang. Adapting visual-language\nmodels for generalizable anomaly detection in medical images. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 11375–11385,\n2024.\n[18] 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.\n[19] Debesh Jha, Pia H Smedsrud, Michael A Riegler, Pål\nHalvorsen, Thomas De Lange, Dag Johansen, and Håvard D\nJohansen. Kvasir-seg: A segmented polyp dataset. In International conference on multimedia modeling, pages 451–\n462. Springer, 2019.\n[20] Pranita Balaji Kanade and PP Gumaste. Brain tumor detection using mri images. Brain, 3(2):146–150, 2015.\n[21] Muhammad Uzair Khattak, Hanoona Rasheed, Muhammad Maaz, Salman Khan, and Fahad Shahbaz Khan.\nMaple: Multi-modal prompt learning. In Proceedings of\nthe IEEE/CVF conference on computer vision and pattern\nrecognition, pages 19113–19122, 2023.\n[22] Muhammad Uzair Khattak, Syed Talal Wasim, Muzammal Naseer, Salman Khan, Ming-Hsuan Yang, and Fahad Shahbaz Khan. Self-regulating prompts: Foundational\nmodel adaptation without forgetting. In Proceedings of\nthe IEEE/CVF international conference on computer vision,\npages 15190–15200, 2023.\n[23] Daehyun Kim, Sungyong Baik, and Tae Hyun Kim. Sanflow: Semantic-aware normalizing flow for anomaly detection. Advances in neural information processing systems, 36:\n75434–75454, 2023.\n[24] Zhikang Liu, Yiming Zhou, Yuansheng Xu, and Zilei Wang.\nSimplenet: A simple network for image anomaly detection\n\n35532\n\n\fdetection.\nIn Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages\n14902–14912, 2021.\n[37] Fenfang Tao, Guo-Sen Xie, Fang Zhao, and Xiangbo Shu.\nKernel-aware graph prompt learning for few-shot anomaly\ndetection. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 7347–7355, 2025.\n[38] Yubin Wang, Xinyang Jiang, De Cheng, Dongsheng Li, and\nCairong Zhao. Learning hierarchical prompt with structured\nlinguistic knowledge for vision-language models. In Proceedings of the AAAI conference on artificial intelligence,\npages 5749–5757, 2024.\n[39] Matthias Wieler and Tobias Hahn. Weakly supervised learning for industrial optical inspection. In DAGM symposium\nin, page 11, 2007.\n[40] Jinjin Zhang, Guodong Wang, Yizhou Jin, and Di Huang.\nTowards training-free anomaly detection with vision and language foundation models. In Proceedings of the Computer\nVision and Pattern Recognition Conference, pages 15204–\n15213, 2025.\n[41] 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.\n[42] 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.\n[43] Qihang Zhou, Guansong Pang, Yu Tian, Shibo He, and Jiming Chen. Anomalyclip: Object-agnostic prompt learning for\nzero-shot anomaly detection. In The Twelfth International\nConference on Learning Representations, 2024.\n[44] 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.\n\nand localization. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages\n20402–20411, 2023.\n[25] Jitao Ma, Weiying Xie, Hangyu Ye, Daixun Li, and Leyuan\nFang. Aligning and prompting anything for zero-shot generalized anomaly detection. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 5964–5972, 2025.\n[26] 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.\n[27] Dwarikanath Mahapatra, Behzad Bozorgtabar, and\nZongyuan Ge. Medical image classification using generalized zero shot learning. In Proceedings of the IEEE/CVF\ninternational conference on computer vision, pages 3344–\n3353, 2021.\n[28] 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.\n[29] Zhen Qu, Xian Tao, Fei Shen, Zhengtao Zhang, and Tao Li.\nInvestigating shift equivalence of convolutional neural networks in industrial defect segmentation. IEEE Transactions\non Instrumentation and Measurement, 72:1–17, 2023.\n[30] Zhen Qu, Xian Tao, Mukesh Prasad, Fei Shen, Zhengtao\nZhang, Xinyi Gong, and Guiguang Ding. Vcp-clip: A visual\ncontext prompting model for zero-shot anomaly segmentation. In European Conference on Computer Vision, pages\n301–317. Springer, 2024.\n[31] 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 Computer Vision and Pattern\nRecognition Conference, pages 30398–30408, 2025.\n[32] 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.\n[33] Yongming Rao, Wenliang Zhao, Guangyi Chen, Yansong\nTang, Zheng Zhu, Guan Huang, Jie Zhou, and Jiwen Lu.\nDenseclip: Language-guided dense prediction with contextaware prompting. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages\n18082–18091, 2022.\n[34] 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.\n[35] Shuvendu Roy and Ali Etemad.\nConsistency-guided\nprompt learning for vision-language models. arXiv preprint\narXiv:2306.01195, 2023.\n[36] Mohammadreza Salehi, Niousha Sadjadi, Soroosh\nBaselizadeh, Mohammad H Rohban, and Hamid R Rabiee. Multiresolution knowledge distillation for anomaly\n\n35533\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"