"<!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>GS-CLIP: Zero-shot 3D Anomaly Detection by Geometry-Aware Prompt and\nSynergistic View Representation Learning\nZehao Deng1,2 , An Liu1 * , Yan Wang2 *\n\narXiv:2602.19206v3 [cs.CV] 26 May 2026\n\n1\n\nSchool of Computer Science and Technology, Soochow University\n2\nInstitute for AI Industry Research (AIR), Tsinghua University\n\n2327406010@stu.suda.edu.cn, anliu@suda.edu.cn, wangyan@air.tsinghua.edu.cn\n\nAbstract\n\nUnsupervised Setting\nTrain: Positive Sample\n\nZero-shot 3D Anomaly Detection is an emerging task that\naims to detect anomalies in a target dataset without any target training data, which is particularly important in scenarios constrained by sample scarcity and data privacy concerns. While current methods adapt CLIP by projecting\n3D point clouds into 2D representations, they face challenges. The projection inherently loses some geometric details, and the reliance on a single 2D modality provides\nan incomplete visual understanding, limiting their ability\nto detect diverse anomaly types. To address these limitations, we propose the Geometry-Aware Prompt and Synergistic View Representation Learning (GS-CLIP) framework,\nwhich enables the model to identify geometric anomalies\nthrough a two-stage learning process. In stage 1, we dynamically generate text prompts embedded with 3D geometric priors. These prompts contain global shape context\nand local defect information distilled by our Geometric Defect Distillation Module (GDDM). In stage 2, we introduce\nSynergistic View Representation Learning architecture that\nprocesses rendered and depth images in parallel. A Synergistic Refinement Module (SRM) subsequently fuses the\nfeatures of both streams, capitalizing on their complementary strengths. Comprehensive experimental results on four\nlarge-scale public datasets show that GS-CLIP achieves superior performance in detection. Code can be available at\nhttps://github.com/zhushengxinyue/GS-CLIP.\n\n1. Introduction\n3D anomaly detection is a critical process in industrial manufacturing, playing a key role in ensuring the stable operation of industrial systems and reducing losses[22]. Traditional 3D anomaly detection relies on unsupervised methods [1, 6, 10, 12, 21, 30, 32, 34, 35, 38], which require\n* Corresponding author.\n\nTest: Sample of Same Categories\n\nZero-shot Setting\nTrain: Auxiliary Sample with Annotations\n\nTest: Sample of Target Categories\n\nFigure 1. Comparison of task settings between traditional Unsupervised 3D Anomaly Detection (U3DAD) and Zero-shot 3D\nAnomaly Detection (ZS3DAD). U3DAD is trained on positive\n(normal) samples and tested on samples of the same categories;\nZS3DAD is trained on auxiliary, annotated data and tested on unseen target categories.\n\ntraining on normal samples of the target category. However, acquiring sufficient training data for target categories\nis often difficult due to issues like commercial confidentiality and data privacy concerns [13, 14, 16]. To address these\nchallenges, Zero-Shot 3D Anomaly Detection (ZS3DAD)\nhas been proposed. As illustrated in Figure 1, the paradigm\naims to train a general-purpose model using auxiliary data,\nwithout needing any samples from the target category.\nContrastive Language-Image Pre-training (CLIP) [27],\npre-trained on a massive dataset of hundreds of millions\nof image-text pairs, has established powerful joint visuallanguage representations. Consequently, CLIP has demonstrated strong generalization capabilities, particularly in\nZero-shot 2D Anomaly Detection [5, 14, 16, 36]. A few\nstudies [9, 37] have already applied CLIP to ZS3DAD by\nprojecting a 3D point cloud from multiple angles to obtain multi-view 2D images. After detecting and localizing anomalies in each 2D image using CLIP, the results\nare back-projected to the 3D point cloud. For example,\nPointAD [37] projects point clouds into rendered images\nand constructs a 3D representation from the resulting visual features to understand 3D anomalies from both point\n\n\fand pixel perspectives. Similarly, MVP-PCLIP [9] utilizes\ndepth maps and learns visual and text prompts to help CLIP\nbetter understand anomalies. However, these methods still\nhave two major limitations:\n1) Lack of 3D Geometric Structure Awareness. The\n3D-to-2D projection is lossy, compressing stereometric\nstructures into planar pixels and inevitably discarding critical geometric details. Consequently, the model learns not\nthe physical geometric form of anomalies, but their visual\nproxies in 2D images. When the visual features of a geometric anomaly are not prominent from a specific viewpoint, this indirect detection paradigm may be ineffective,\nsignificantly limiting the model’s detection performance\nand generalization ability.\n2) Insufficient Utilization of Visual Information. Current methods typically rely on a single type of 2D representation. However, as shown in Figure 2, each representation has distinct pros and cons: rendered images are rich\nin appearance and texture information but are sensitive to\nlighting and rendering quality, and can sometimes introduce\nrendering artifacts that interfere with anomaly detection. In\ncontrast, depth images better reflect the overall geometric\nstructure, but fail to capture small details with minor depth\nvariations. Therefore, reliance on a single image modality\ncan limit both model performance and generalization capabilities.\nPoint Cloud\n\nRendered Image Score of Rendered\n\nDepth Image\n\nScore of Depth\n\nGround Truth\n\nDepth\nWorks!\n\nRender\nWorks!\n\nFigure 2. Example of the complementarity of rendered and depth\nimages in anomaly detection. In the top row, the depth map effectively ignores surface texture interference to clearly show the dent\nanomaly;D:\\大学\\3D工业缺陷检测\\data\\mvtec_3d\\cookie\\test\\hole\\2d_rendering\\000\nin the bottom row, the rendered image better captures the\nD:\\大学\\3D工业缺陷检测\\data\\mvtec_3d\\bagel\\test\\contamination\\2d_rendering\\001\nslight protrusion with insignificant depth change through lighting\nand shadow variations.\n\nTo overcome these limitations, we propose GeometryAware Prompt and Synergistic View Representation Learning (GS-CLIP). In the first stage, we introduce GeometryAware Prompt Learning to optimize the text-end. This\nmethod trains a 3D feature extractor that not only injects the\nglobal features of the point cloud into the prompt as overall shape context but also identifies and synthesizes defect\ninformation from local geometric features via an Geometric Defect Distillation Module (GDDM). This information\nis asymmetrically injected into the anomaly text prompt,\nproviding the model with a direct geometric anomaly prior.\nThis text generator dynamically creates prompts embedded\n\nwith geometric structure information based on the 3D point\ncloud, helping to uncover subtle geometric anomalies in 2D\nimages. In the second stage, we design a Synergistic View\nRepresentation Learning architecture. This architecture\nprocesses rendered and depth images in parallel. The rendering stream is fed directly into the vision encoder, while\nthe depth image stream undergoes fine-tuning with LoRA\nto bridge the domain gap. The features extracted from both\nstreams are then deeply fused through a Synergistic Refinement Module (SRM) to fully exploit the complementarity\nof the two visual representations.\nOur contributions can be summarized as follows:\n• We propose GS-CLIP, a framework that bridges the gap\nbetween 2D vision-language models and 3D anomaly detection. Our two-stage strategy enables CLIP to perceive\nand understand 3D structural anomalies from 2D multiview images.\n• We introduce Geometry-Aware Prompt Learning, which\ndynamically generates text prompts containing 3D geometric information to better reveal subtle geometric\nanomalies in 2D images.\n• We design a Synergistic View Representation Learning\narchitecture and introduce a Synergistic Refinement Module to effectively fuse complementary information from\nrendered and depth images.\n• Experiments on four public datasets show that our method\nsurpasses existing SOTA models on both object-level and\npoint-level metrics.\n\n2. Related Work\n2.1. Zero-shot 3D Anomaly Detection\nZero-shot 3D anomaly detection aims to detect and localize\nanomalies without access to a target dataset, with its core\nchallenge being the ability to learn general anomaly patterns\nthat can generalize to unseen categories. The few existing\nworks often leverage CLIP to address this problem [9, 37].\nTheir common pipeline involves projecting 3D data into\nmulti-view 2D images, processing these images with CLIP,\nand subsequently back-projecting the 2D outputs onto the\n3D point cloud. For instance, PointAD [37] utilizes a hybrid learning strategy that comprehends 3D anomalies from\nboth point and pixel perspectives by back-projecting visual\nfeatures from multi-view rendered images. In another work,\nMVP-PCLIP [9] uses depth maps and constructs key-layer\nvisual prompts and adaptive text prompts to fine-tune CLIP.\nIn contrast, 3DzAL [31] operates independently of CLIP,\ncreating pseudo-anomalous training signals in 3D space to\ntrain a multi-branch network for identifying general geometric anomalies. Our work follows the CLIP-based multiview projection paradigm, but distinguishes itself by integrating both depth and rendered images and by designing\ngeometry-aware prompts to enhance CLIP’s perception of\n\n\f3D geometric structures.\n\n2.2. Unsupervised 3D Anomaly Detection\nUnsupervised Anomaly Detection is mainly divided into\ntwo categories. One category is based on feature embedding [10, 12, 19, 21, 28, 30, 39], where the fundamental\nidea is to construct a distribution or boundary of normal\nsamples and treat any deviations as anomalies, such as the\nteacher-student network in 3D-ST [1] and the memory bank\nin Reg3D-AD [21]. The other category is based on reconstruction [6, 17, 32, 34, 38], where anomaly localization is\nperformed using reconstruction errors. For instance, R3DAD [38] designed an anomaly simulation strategy and used\na diffusion model for reconstruction, and IMRNet [17] employed iterative masked reconstruction with dual contrast\nin both point and feature spaces to derive anomaly scores.\nWhile these methods have achieved good performance, they\ndepend on normal samples from the target category for\ntraining. When factors like data privacy and collection costs\nmake it difficult to obtain even normal samples, the applicability of these methods is limited, which further motivates\nthe exploration of less data-dependent and more generalizable learning paradigms, such as ZS3DAD.\n\n2.3. Zero-shot 2D Anomaly Detection\nZero-shot 2D Anomaly Detection (ZS2DAD), much like\nZS3DAD, is typically accomplished using CLIP. WinCLIP\n[16] was one of the first works to apply CLIP to ZS2DAD\ntasks. By designing various prompts and combining them\nwith a multi-scale sliding window strategy, it demonstrates\nthe immense potential of CLIP in ZSAD. Later, it was\ndiscovered that directly applying pre-trained CLIP or simple adaptations often leads to domain shift problems [20].\nConsequently, many works [5, 7, 8, 11, 14, 18, 23, 25,\n26, 29, 36] have designed different learnable modules for\nParameter-Efficient Fine-Tuning (PEFT). Some methods\nuse very small modules to adapt CLIP, such as AnomalyGPT [14] and APRIL-GAN [7], which both use linear\nlayers for model alignment. Other methods focus on text\nprompts, for example, AnomalyCLIP [36] uses general,\nlearnable, object-agnostic text prompts, while AA-CLIP\n[23] creates text anchors to differentiate normal and abnormal semantics. Our work builds upon this prompt-centric\napproach, but uniquely leverages 3D information to construct geometry-aware prompts.\n\n3. Methodology\n3.1. Overview\nThe architecture of our proposed model is illustrated in Figure 3. We employ a two-stage learning strategy to sequentially optimize the text and vision components of the framework.\n\n• Stage 1: Geometry-Aware Prompt Learning. In this\nstage, with the visual components frozen, we focus on\ntraining a text prompt generator. It dynamically creates\nshape prompts by extracting global geometric information from the 3D point cloud, and defect prompts by identifying local details via our proposed Geometric Defect\nDistillation Module. These text prompts, embedded with\n3D structural priors, provide crucial cues for detecting\nand localizing anomalies from 2D projected images.\n• Stage 2: Synergistic View Representation Learning. In\nthis stage, the text prompt generator trained in Stage 1 is\nfrozen, and our focus shifts to training the visual components. This stage features a dual-stream architecture:\nrendered images are processed by the original frozen vision encoder, while depth maps are passed through a parallel branch of the encoder fine-tuned with LoRA (DepthLoRA). The features from both streams are then integrated by a Synergistic Refinement Module to facilitate\ninformation exchange and leverage their complementary\nstrengths.\nThis two-stage strategy first ensures that the text prompt\ngenerator learns to robustly capture and describe 3D geometric anomalies. This, in turn, provides a high-quality, semantically rich optimization target for the vision-language\nalignment performed in the second stage.\n\n3.2. Geometry-Aware Prompt Learning\n3.2.1. 3D Feature Extraction and Shape Prompt\nFor a given object’s point cloud data P ∈ Rn×3 , where n\nis the number of points, and each point has XYZ coordinates, we use a pre-trained PointNet++ [24] (Ψpn ) as our\n3D feature extractor:\n  F_p, F_e = \\Psi _{pn}(P) \\label {eq:pointnet} \n\n(1)\n\nwhere Fp ∈ Rn×dpn represents the local geometric feature\nvector for each point, and dpn is the output dimension of\nPointNet++. Fe ∈ Rde is the global feature obtained by\npooling the deep outputs of the PointNet++ encoder, representing an abstract understanding of the object’s overall\nstructure and shape, where de is the encoder’s output dimension.\nTo provide the text prompt with a macroscopic understanding of the object’s overall shape, we project the global\nfeature Fe through a projection layer Proj(·) to obtain the\noverall shape prompt ts = Proj(Fe ) ∈ Rd , where d is the\nintrinsic dimension of CLIP.\n3.2.2. Geometric Defect Distillation Module\nWe posit that an anomaly’s essence lies in its deviation from\nthe normal pattern [33]. Based on this, we design a normal\nprototype memory bank P = {p1 , p2 , . . . , pl } ∈ Rl×dpn\nconsisting of l learnable vectors. During training, these prototypes are implicitly guided to fit the distribution of normal local geometric features to minimize misclassification\n\n\fStage1: Geometry-Aware Prompt Learning\nShape Prompt\n\nText Encoder\n\nNormal Prompt\nLearnable Prompt\n\nAnomaly Prompt\nShape Prompt\n\nLearnable Prompt\n\nDefect Prompt\n\n𝑇𝑁\n\n×\n𝑇𝐴\n\nAnomaly Point\n\n𝐹𝑝\n\n×\n\nProjection\n\nGlobal Feature\n\nSelf-attention\n\nNormal Point\n\n𝐹𝑒\n\nTop-K\n\nPointNet++\n\nMulti-view\nProjection\n\nSegmentation\n\nNormal Prototype\n\nPoint Feature\n\nGeometric Defect Distillation Module\n\nBack\nProjection\n\nStage2: Synergistic View Representation Learning\n\nTrain Stage1\n\n𝐿𝑅𝑖\n\n𝐾𝑖𝑅\n\n𝐺𝑖𝐷\n\n𝐾𝑖𝐷\n\n𝐿𝐷𝑖\n\nTrain Stage2\n\n𝐸𝑖𝑅\nMLP\n\nDepth-LoRA\n\n𝑉𝑖𝑅\nShare matrix\n\nRendered Image\n\n𝐺𝑖𝑅\n\nCompatibility function\n\nImage Encoder\n\nDepth Image\n\n0 - Normal\nClassification\n\nPoint Cloud\nProjection\n\n1 - Anomaly\n\n𝐸𝑖𝐷\n\n𝐺𝑖\n𝐿𝑖\n\n𝑉𝑖𝐷\n\nSynergistic Refinement Module\nFrozen\n\n× Cosine Similarity\n\nPoint Segmentation\n\nMultiplication\n\nFigure 3. The overall architecture of GS-CLIP. The framework is optimized through a two-stage learning strategy. In stage 1, we generate\ntext prompts embedded with geometric priors using a 3D feature extractor and a Geometric Defect Distillation Module. In stage 2, we\ndesign a synergistic architecture that processes rendered images and a LoRA-optimized depth image branch in parallel. The features from\nboth branches are deeply fused by the Synergistic Refinement Module and finally compared with the text prompts to compute similarity\nfor classification and segmentation.\n\nof normal samples, thereby forming a compact normal feature manifold.\nSubsequently, for each point’s local geometric feature\nfi ∈ Rdpn in Fp , we calculate a geometric outlier score\nsi . This score is defined as the distance between the point\nfeature and its most similar prototype in the memory bank:\n\n3.2.3. Semantic Concatenation\nFinally, we concatenate the aforementioned geometric\nprompts to form the normal prompt tN and the anomaly\nprompt tA :\n  t_N &amp;= \\text {Concat}(t_s, t_l) \\label {eq:normal_prompt} \\\\ t_A &amp;= \\text {Concat}(t_s, t_l, t_d) \\label {eq:anomaly_prompt}\n(5)\n\n  s_i = 1 - \\max _{p_j \\in \\mathcal {P}} \\frac {f_i \\cdot p_j}{\\|f_i\\| \\|p_j\\|} \\label {eq:outlier_score} \n\n(2)\n\nBased on the calculated outlier scores, we select the features of the top-k points with the highest scores, forming\na feature set FT = {fT1 , fT2 , . . . , fTk } that contains the\nmost suspicious information. To capture the intrinsic structural relationships among these outlier points (e.g., whether\nthey collectively form a scratch or a dent), we feed this subset into a self-attention-based aggregation network. This allows different outlier features to interact, distilling a holistic\nunderstanding of the entire defect region. Finally, through\nprojection, we obtain the defect prompt td ∈ Rk×d :\n  t_d = \\text {Proj}(\\text {SelfAttention}(\\mathcal {F}_T)). \\label {eq:defect_prompt} \n\n(3)\n\nwhere tl ∈ Rq×d represents learnable prompts, and q is the\nlength of learnable prompts. These are passed through a\nfrozen text encoder to obtain the normal text embedding\nTN ∈ Rd and the anomaly text embedding TA ∈ Rd ,\nwhich are used to compute similarity with visual features\nfor anomaly detection.\n\n3.3. Synergistic View Representation Learning\n3.3.1. Depth-LoRA\nRGB rendered images and their corresponding depth maps\ncontain different information. Rendered images are rich in\ntexture and detail, while depth maps better represent geometric information such as concavities and convexities.\nTherefore, we perform multi-view rendering and projection\n\n\fof the point cloud [4] to obtain v pairs of rendered images\n{IiR }vi=1 and depth maps {IiD }vi=1 , with corresponding angles. To effectively process these two different inputs, we\ndesign a dual-stream architecture.\nSince CLIP is trained on real images, it is naturally\nadapted to rendered images. Thus, we use a frozen, pretrained Vision Transformer (ViT) to extract global features\nd\nR\np×d\nGR\nfor the i-th view,\ni ∈ R and local features Li ∈ R\nwhere d is CLIP’s intrinsic dimension and p is the number\nof patches.\nFor the depth map, we adopt the Low-Rank Adaptation\n[15] (LoRA) technique. We selectively apply this adaptation rule to the linear layers of the MLP. The MLP in the\noriginal ViT can be represented as:\n  \\text {MLP}(x)=W_2 \\cdot \\text {GELU}(W_1x), \n\n(6)\n\nwhere W1 and W2 represent the linear transformation matrices. The MLP after applying LoRA can be represented\nas:\n  x'=\\text {GELU}(W_1x+\\gamma B_1A_1x), \n(7)\n\n3.4. Anomaly Score Map\nBoth visual and text features are mapped into a unified vector space by pre-trained CLIP encoders. Therefore, the\noverall classification of an image is determined by computing the similarity between the global visual feature Gi and\nthe text features TA , TN :\n  \\hat {y_i} = \\frac {\\exp (\\langle G_i, T_A \\rangle / \\tau )}{\\exp (\\langle G_i, T_N \\rangle / \\tau ) + \\exp (\\langle G_i, T_A \\rangle / \\tau )}, \\label {eq:classification_prob} \n\n(12)\n\nwhere yˆi is the probability that the i-th view image is\nanomalous, ⟨·, ·⟩ denotes cosine similarity, and τ is a temperature coefficient. The final anomaly probability ŷ for\ntheP3D point cloud is aggregated from all views: ŷ =\nv\n1\ni=1 yˆi .\nv\nSimultaneously, an anomaly score map is obtained by\naligning the local visual features Li :\n  M_i^N &amp;= \\text {Up}\\left (\\frac {\\exp (\\langle L_i, T_N \\rangle )}{\\exp (\\langle L_i, T_N \\rangle ) + \\exp (\\langle L_i, T_A \\rangle )}\\right ), \\label {eq:map_normal} \\\\ M_i^A &amp;= \\text {Up}\\left (\\frac {\\exp (\\langle L_i, T_A \\rangle )}{\\exp (\\langle L_i, T_N \\rangle ) + \\exp (\\langle L_i, T_A \\rangle )}\\right ), \\label {eq:map_anomaly}\n(14)\n\n  \\text {MLP}'(x)=W_2x'+ \\gamma B_2A_2x'. \n\n(8)\n\nThrough this method, we fine-tune only the MLP layers to adapt to the feature distribution of the depth map,\nwhile completely preserving the powerful spatial relationship modeling capability of the pre-trained model in the\nMulti-Head Self-Attention block.\n3.3.2. Synergistic Refinement Module\nTo effectively combine features from rendered and depth\nimages, we introduce a Synergistic Refinement Module.\nd\nIt receives global features GR\ni ∈ R and local features\nR\np×d\nLi ∈ R\nfrom the rendered image, and global features\nd\nD\np×d\nGD\nfrom the depth\ni ∈ R and local features Li ∈ R\nmap. The fusion of local features follows the same process\nas global features. Taking global features as an example, it\nfirst generates two key-value pairs: KiR , ViR and KiD , ViD .\nThen, a shared matrix is generated through a compatibility\nfunction f :\n  S = f(K_i^R, K_i^D) = f_1(K_i^R) \\times f_2(K_i^D)^T, \\label {eq:SRM_s} \n\n(9)\n\nwhere we choose bidirectional multiplicative attention as\nthe compatibility function, and f1 and f2 are linear projections. Based on this shared matrix, we compute two sets of\nattention weights and perform information aggregation:\n  E_i^R, E_i^D = \\text {Softmax}(S) \\cdot V_i^R, \\text {Softmax}(S^T) \\cdot V_i^D. \\label {eq:SRM_e}  (10)\nFinally, these two enhanced features are concatenated and\nfused through a small MLP network to obtain a synergistic\nglobal feature representation for both modalities:\n  G_i = \\text {MLP}(\\text {Concat}(E_i^R, E_i^D)). \\label {eq:SRM_l} \n\n(11)\n\nwhere MiN ∈ Rh×w is the normal score map and MiA ∈\nRh×w is the anomaly score map, Up(·) is bilinear interpolation upsampling, and h, w are the height and width\nof the image. The anomaly score map for the i-th view\nMi = Gσ ( 12 (I − MiN ) + 12 MiA ), where Gσ is a Gaussian\nfilter and I is a matrix of all ones.\nTo back-project the scores to the 3D point cloud and\nobtain a score for each point, we follow the approach of\nPointAD. During the projection from 3D point cloud to\n2D images, we record the occlusion status of each point.\nSpecifically, Hi ∈ Rn indicates whether each point in the\n3D cloud is visible in the i-th view (1 for visible, 0 for occluded). Thus, the 3D anomaly score maps are:\n  M = \\frac {1}{v} \\sum _{i=1}^v \\left (R_i^{-1}(M_i) \\circ H_i\\right ), \n\n(15)\n\nwhere M ∈ Rn , Ri−1 is the back-projection matrix for the\ni-th view, and ◦ represents element-wise multiplication.\n\n3.5. Loss Function\nWe use a binary cross-entropy classification loss Lcla , a segmentation loss Lseg composed of Dice loss and Focal loss\nfor both 2D and 3D outputs, as:\n  L_{cla} &amp;= \\text {BCE}(y, \\hat {y}), \\label {eq:loss_cla} \\\\ L_{seg} &amp;= \\text {Dice}(M, Y) + \\text {Focal}(M, Y) + \\notag \\\\ &amp;\\quad + \\frac {1}{v} \\sum _{i=1}^v (\\text {Dice}(M_i, Y_i) + \\text {Focal}(M_i, Y_i)). \\label {eq:loss_seg}\n\n(17)\n\n\fTable 1. Zero-shot 3D anomaly detection results. O-AUROC (O-R), O-AP (O-A) at object-level and P-AUROC (P-R), P-PRO (P-P) at\npoint-level metrics are presented. Best results are in bold, second-best are underlined.\nModel\n\nMVTec3D-AD\n\nPublic\n\nEyecandies\n\nReal3D-AD\n\nAnomaly-ShapeNet\n\n(O-R, O-A)\n\n(P-R, P-P)\n\n(O-R, O-A)\n\n(P-R, P-P)\n\n(O-R, O-A)\n\n(P-R, P-P)\n\n(O-R, O-A)\n\n(P-R, P-P)\n\none-vs-rest setting\nCLIP*\nICML’21\nAA-CLIP*\nCVPR’25\n3DzAL\nWACV’25\nMVP-PCLIP\narXiv’24\nPointAD\nNeurIPS’24\nGS-CLIP\n-\n\n(61.2, 85.8)\n(74.2, 88.5)\n(53.1, -)\n(81.3, 92.7)\n(82.0, 94.2)\n(83.6, 96.5)\n\n(80.3, 54.4)\n(87.1, 61.6)\n(70.8, -)\n(94.6, 83.6)\n(95.5, 84.4)\n(96.3, 86.4)\n\n(66.7, 69.2)\n(66.5, 68.0)\n(55.8, -)\n(69.3, 72.7)\n(69.1, 73.8)\n(71.5, 75.9)\n\n(81.2, 37.9)\n(85.9, 39.3)\n(72.7, -)\n(90.8, 67.8)\n(92.1, 71.3)\n(93.1, 73.8)\n\n(68.8, 72.3)\n(74.8, 76.3)\n(52.4, -)\n(74.9, 75.3)\n(74.8, 76.9)\n(76.4, 77.7)\n\n(45.9, -)\n(51.2, -)\n(67.5, -)\n(75.9, –)\n(73.5, –)\n(76.3, –)\n\n(78.2, 79.5)\n(83.1 84.5)\n(58.6, -)\n(78.7, 83.8)\n(82.6, 85.6)\n(84.1, 86.8)\n\n(64.9, -)\n(60.7, -)\n(66.1, -)\n(70.4, -)\n(74.1, -)\n(75.2, -)\n\ncross-dataset setting\nAA-CLIP*\nCVPR’25\nMVP-PCLIP\narXiv’24\nPointAD\nNeurIPS’24\nGS-CLIP\n-\n\n-\n\n-\n\n(63.6, 65.3)\n(66.7, 70.7)\n(69.5, 74.3)\n(70.3, 75.3)\n\n(82.6, 39.8)\n(88.3, 66.0)\n(91.8, 71.4)\n(92.9, 73.4)\n\n(70.2, 71.7)\n(74.9, 75.6)\n(75.9, 78.9)\n(76.2, 77.1)\n\n(55.2, -)\n(73.9, -)\n(71.6, -)\n(74.7, -)\n\n(76.2, 77.5)\n(78.4, 82.5)\n(82.3, 85.6)\n(82.6, 84.8)\n\n(61.8, -)\n(71.1, -)\n(74.3, -)\n(75.4, -)\n\nwhere y is object label, Y represents the point-wise labels\nand Yi represents the labels for the i-th view.\nFurthermore, we adds the cross-view consistency loss\nLcon . This loss encourages the model to learn a view independent global representation of the essence of the object, enhancing its generalization ability to any unknown\nperspective. First, we compute\nPv the average global feature\nfor each object, Ḡ = v1 i=1 Gi , and then calculate the\ndeviation of each view from this average:\n  L_{con} = 1 - \\frac {1}{v} \\sum _{i=1}^v (\\langle G_i, \\bar {G} \\rangle ). \\label {eq:loss_con} \n\n(18)\n\nThe total losses for the first and second stages are respectively with weights α:\n  L_{stage1} &amp;= L_{cla} + L_{seg}, \\label {eq:loss_s1} \\\\ L_{stage2} &amp;= L_{cla} + L_{seg} + \\alpha L_{con}. \\label {eq:loss_s2}\n(20)\n\n4. Experiments\n4.1. Experimental Setup\nDatasets. We conduct experiments on four datasets:\nMVTec3D-AD [2], Real3D-AD [21], Eyecandies [3], and\nAnomaly-ShapeNet [17]. MVTec3D-AD and Real3DAD are real-world datasets collected with industrial-grade\nstructured-light 3D scanners, containing 10 and 12 categories of high-resolution objects, respectively, with all\nanomaly samples having precise point-wise annotations.\nEyecandies and Anomaly-ShapeNet are synthetic datasets\nwith 10 and 40 object categories, respectively. Additionally, MVTec3D-AD and Eyecandies include corresponding\nRGB images for multimodal anomaly detection tasks. we\nuse the common zero-shot setting: one-vs-rest and crossdataset. For one-vs-rest, we independently train on three\n\nselected categories for each of the four datasets and report\nthe average evaluation results. For cross-dataset, we used a\nsingle category in MVTec3D-AD dataset as the sole auxiliary training data and tested on the other datasets.\nEvaluation Metrics. The metrics we evaluate include\nArea Under the Receiver Operating Characteristic curve\n(AUROC), Average Precision (AP), and Per-Region Overlap (PRO). At the object-level, we use AUROC and AP, denoted as O-AUROC (O-R) and O-AP (O-A), respectively.\nAt the point-level, we use AUROC and PRO, denoted as\nP-AUROC (P-R) and P-PRO (P-P), respectively.\nImplementation Details and Baseline. For the public\nCLIP model, we use the ViT-L/14@336px version as pretrained weights, with all parameters frozen. Point clouds\nand 2D images are resized to 336x336. For most categories,\nwe generate 9-view 2D images using the Open3D library\nby rotating the point cloud around the X-axis at angles of\n{ 54 π, 35 π, ..., − 45 π}. In the first training stage, we do not include the depth map, Depth-LoRA, or the SRM, using only\nthe visual features from the render image. α is set to 1, the\nnumber of anomaly point features k is set to 12, and the\nLoRA rank r is set to 8. We use the Adam optimizer, training for 15 epochs in the first stage with a learning rate of\n0.002, and for 10 epochs in the second stage with a learning\nrate of 0.0005, on a single NVIDIA RTX 3090 24GB GPU.\nFor the original CLIP model and the SOTA model AA-CLIP\nin ZS2DAD, we simply used multi-view projection image to\nadapt it to ZS3DAD. Appendix B provide more details.\n\n4.2. Main Results\nQuantitative Comparison. Table 1 shows the zero-shot\nperformance on four large-scale datasets under the one-\n\n\fvs-rest setting. Compared to recent state-of-the-art methods, GS-CLIP achieves superior performance at both object\nand point levels. Compared to the second-best PointAD,\nGS-CLIP shows consistent improvements across the board,\nwith an average increase of 1.8% in O-AUROC, 1.6% in\nO-AP, and 2.5% in P-PRO. Vanilla CLIP and the adapted\n2D SOTA method AA-CLIP yield modest performance, reflecting the inadequacy of applying 2D models directly to\nthe 3D domain. The non-CLIP-based method 3DzAL also\nachieves limited results, possibly due to its failure to utilize effective anomaly signals. PointAD’s reliance solely on\nrendered images makes it susceptible to lighting variations\nand rendering artifacts, which can obscure purely geometric anomalies. Conversely, MVP-PCLIP’s dependence on\ndepth maps, while strong for capturing overall shape, limits its ability to detect subtle surface defects like scratches or\nslight protrusions that cause minimal depth changes. In contrast, the proposed GS-CLIP fundamentally enhances the\nmodel’s perception by synergistically fusing both rendered\nand depth views while injecting explicit 3D geometric priors, thus outperforming other methods.\nFurthermore, GS-CLIP demonstrates exceptional generalization. Cross-dataset setting is a test that can better\nevaluate the generalization ability of the model, as datasets\ninvolve significant shifts in object semantics, background,\nand data acquisition methods (real-world or synthetic). As\nshown in Table 1, GS-CLIP achieves superior performance\nin cross-dataset setting. At the same time, compared with\nthe performance under the one-vs-rest setting of the same\ndataset, the performance of the model has only a small decline.\nQualitative Comparison. As shown in Figure 4, we visualize the anomaly score maps for MvTec3D-AD and\nEyecandies. Our method achieves more precise segmentation and effectively suppresses anomaly scores in normal regions, preventing mis-detections. Especially for\nsome objects with uneven surfaces, such as cable glands\nand dowels, our method can still identify anomalies accurately. This demonstrates the effectiveness and superiority\nof our method in dynamically generating shape and defect\nprompts.\nMultimodal Results. To further validate our model, for\ndatasets that include corresponding RGB images with color,\nwe adopt a plug-and-play multimodal fusion method [37].\nAs shown in Table 2, in the multimodal setting, the performance of all methods improves. RGB images provide\nreal color and fine texture information that is missing in\nrendered and depth maps, which is crucial for detecting\nsurface scratches, stains, and discolorations. Our method\nalso achieves the best performance, with O-AUROC reaching 88.2% on MVTec3D-AD and 79.3% on Eyecandies,\n\nbagel\n\ncarrot\n\ncable gland\n\ndowel\n\nChocolatePraline Confetto\n\nGummyBear\n\nSandwich\n\nGround\ntruth\n\nPointAD\n\nPointAD(M)\n\nOurs\n\nOurs(M)\n\nFigure 4. Qualitative comparison of anomaly score map between\nPointAD and our method. (M) represents multimodal, which is the\nresult of integrating RGB images.\n\ndemonstrating the generalization and robustness of our\nmethod.\nTable 2. Multimodal zero-shot 3D anomaly detection results. Best\nresults are in bold, second-best are underlined.\nMVTec3D-AD\n\nModel\nCLIP*\nAA-CLIP*\nMVP-PCLIP\nPointAD\nGS-CLIP\n\nEyecandies\n\n(O-R, O-A)\n\n(P-R, P-P)\n\n(O-R, O-A)\n\n(P-R, P-P)\n\n(60.4, 86.4)\n(67.2, 89.4)\n(85.7, 95.8)\n(86.9, 96.1)\n(88.2, 97.5)\n\n(81.7, 56.0)\n(94.5, 74.6)\n(96.5, 90.4)\n(97.2, 90.2)\n(97.6, 91.3)\n\n(73.0, 73.9)\n(71.7, 69.1)\n(78.2, 80.1)\n(77.7, 80.4)\n(79.3, 82.2)\n\n(78.0, 31.8)\n(86.8 74.2)\n(94.9, 83.6)\n(95.3, 84.3)\n(95.8, 86.4)\n\n4.3. Complexity Analysis\nWe compare the computation overhead, including inference\ntime per image, frames per second (FPS), and GPU memory usage. As shown in Table 3, although our model’s inference time and memory usage are slightly higher than the\nothers, its accuracy achieves SOTA across all four datasets.\nThis significant accuracy gain demonstrates the effectiveness and superiority of our model design, achieving a better\naccuracy-efficiency trade-off in a multi-dimensional performance evaluation.\nTable 3. Comparison of computation overhead with SOTA approaches on MVTec3D-AD.\nModel\n\nTime(s)\n\nFPS\n\nMemory Usage(MB)\n\nCLIP*\nAA-CLIP*\nMVP-PCLIP\nPointAD\nOurs\n\n0.23\n0.29\n0.46\n0.40\n0.51\n\n4.34\n3.45\n2.17\n2.52\n1.96\n\n3312\n3826\n4583\n4275\n5872\n\n\f4.4. Ablation Study\nAblation of Key Modules. To investigate the impact of\nkey modules on the overall model, we conducted an ablation\nstudy by progressively adding components on MVTec3DAD, with results shown in Table 4. We first evaluated the\nperformance using only a single 2D representation with\nlearnable prompt. When we fused the two visual representations with SRM, all metrics improved significantly. On\ntop of the two representative fusion, we further added the\nShape Prompt and Defect Prompt respectively to the text\nprompt. As can be seen, object-level metrics improved further when adding Shape Prompt, demonstrating that providing macroscopic geometric context to the text prompts helps\nthe model’s overall judgment. Simultaneously, model’s\npoint-level metrics saw the largest increase when adding\nDefect Prompt and GDDM, with P-PRO rising from 84.8%\nto 85.6%. This proves that extracting and injecting specific\ndefect descriptions from outlier points greatly enhances the\nmodel’s ability to precisely localize anomalies. When the\ntwo prompts are integrated, the model effect is significantly\nimproved compared with the single prompt. Finally, with\nthe cross-view consistency loss Lcon of our design, the effect of the model is further improved to achieve the best.\nTable 4. Ablation study of key modules. SRM: Synergistic Refinement Module, SP: Shape Prompt, DP: Defect Prompt.\n\nmance does not bring significant benefits or even decline.\nSo we consider l=32 is sufficient to construct a representative and not overly complex normal feature manifold for the\nmodel.\n\u0000\u001c\u0000\u001b\n\n\u0000\u001b\u0000\u001a \u0000\u001c\u0000\u001b\n\n\u0000\u001b\u0000\u001a\n\n\u0000\u001c\u0000\u001a\n\n\u0000\u001b\u0000\u0019 \u0000\u001c\u0000\u001a\n\n\u0000\u001b\u0000\u0019\n\n\u0000\u001c\u0000\u0019\n\n\u0000\u001b\u0000\u0018 \u0000\u001c\u0000\u0019\n\n\u0000\u001b\u0000\u0018\n\n\u0000\u001c\u0000\u0018\n\n\u0000\u001b\u0000\u0017 \u0000\u001c\u0000\u0018\n\u00002\u0000\u0010\u0000$\u00003\n\u00003\u0000\u0010\u0000$\u00008\u00005\u00002\u0000&amp;\n\u00002\u0000\u0010\u0000$\u00008\u00005\u00002\u0000&amp;\n\u00003\u0000\u0010\u00003\u00005\u00002\n\n\u0000\u001c\u0000\u0017\n\u0000\u001c\u0000\u0016\n\n\u0000\u0017\n\n\u0000\u001b\n\u0000\u0014\u0000\u0015\n\u0000\u0014\u0000\u0019\n\u0000\u0015\u0000\u0017\n\u00001\u0000X\u0000P\u0000E\u0000H\u0000U\u0000\u0003\u0000R\u0000I\u0000\u0003\u00006\u0000X\u0000V\u0000S\u0000L\u0000F\u0000L\u0000R\u0000X\u0000V\u0000\u0003\u00003\u0000R\u0000L\u0000Q\u0000W\u0000V\u0000\u0003k\n\n\u0000\u001b\u0000\u0017\n\u00002\u0000\u0010\u0000$\u00003\n\u00003\u0000\u0010\u0000$\u00008\u00005\u00002\u0000&amp;\n\u00002\u0000\u0010\u0000$\u00008\u00005\u00002\u0000&amp;\n\u00003\u0000\u0010\u00003\u00005\u00002\n\n\u0000\u001b\u0000\u0016 \u0000\u001c\u0000\u0017\n\u0000\u001b\u0000\u0015 \u0000\u001c\u0000\u0016\n\n\u0000\u001b\n\n\u0000\u0014\u0000\u0019\n\u0000\u0016\u0000\u0015\n\u0000\u0019\u0000\u0017\n\u00001\u0000X\u0000P\u0000E\u0000H\u0000U\u0000\u0003\u0000R\u0000I\u0000\u0003\u00003\u0000U\u0000R\u0000W\u0000R\u0000W\u0000\\\u0000S\u0000H\u0000V\u0000\u0003l\n\n\u0000\u0014\u0000\u0015\u0000\u001b\n\n\u0000\u001b\u0000\u0016\n\u0000\u001b\u0000\u0015\n\nFigure 5. Parameters in GDDM.\n\nNumber of Views. Different views are crucial for understanding 3D anomaly, and having multiple views means\na more comprehensive understanding of 3D anomaly. As\nshown in Figure 6, with the increase of the number of views,\nthe indicator shows an overall upward trend, reaching saturation at approximately 9 views. Regarding rendering conditions, prototype library size, hyperparameters, and other\nablation experiments, please refer to the Appendix.\nPoint-level\n\n100\n\nSRM\n\nSP\n\nDP\n\nLcon\n\n(O-R, O-A)\n\n(P-R, P-P)\n\n95\n\n95\n\n×(renderings)\n×(depth map)\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(80.9, 91.7)\n(81.4, 91.4)\n(82.3, 93.9)\n(82.5, 94.8)\n(82.9, 94.4)\n(83.1, 96.2)\n(83.6, 96.5)\n\n(93.5, 83.1)\n(92.2, 82.5)\n(94.6, 84.8)\n(95.2, 85.1)\n(95.6, 85.6)\n(96.0, 86.2)\n(96.3, 86.4)\n\n90\n\n90\n\n85\n\n85\n\n80\n\nO-AUROC\nO-AP\n\n80\n\n75\n70\n\nObject-level\n\n100\n\n75\n\nP-AUROC\nP-PRO\n\n1\n\n3\n\n5\n\n7\n\n9\n\nNumber of Views\n\n11\n\n70\n\n1\n\n3\n\n5\n\n7\n\n9\n\nNumber of Views\n\n11\n\nFigure 6. Ablation of Number of Views.\n\nParameters in GDDM. We investigated the influence of\nthe number of candidate outlier points k and the number of\nprototypes l in GDDM, and the results are shown in Figure 5. We observed that as k increased from 4 to 12, the\nperformance indicators of the model, especially the P-PRO,\nsteadily improved from 85.5 to a peak of 86.4. This indicates that a larger k value can enable the GDDM to capture a\nmore complete representation of anomalous regions. However, as k continued to increase. We believe this is because\nexcessive k values introduce normal point features as noise,\nthereby contaminating the purity of defect-specific features.\nAs for number of prototypes l, the model performance is\nsuboptimal when l is small, which is likely due to the insufficient number of prototypes being unable to fully model\nnormal sample features. As l increases to 32, performance\nreaches its peak. If the l continues to increase, the perfor-\n\n5. Conclusion\nThis paper proposes Geometry-Aware Prompt and Synergistic View Representation Learning (GS-CLIP) for\nZS3DAD. The core of our framework is a LoRA-enhanced\nparallel visual encoder that synergistically processes render\nand depth images, and a geometry-aware prompt generator\nthat injects global shape and local defect information into\ntext prompts, achieving true geometry-aware semantic understanding. Extensive experiments on four public datasets\ndemonstrate that our method significantly surpasses existing SOTA models on both object-level and point-level metrics. Exploring more direct 3D native representations and\nmodal fusion methods may be worthy research directions\nfor the future.\n\n\fAcknowledgment\nThis work is supported by Project Funded by Priority Academic Program Development of Jiangsu Higher Education\nInstitutions; Wuxi Research Institute of Applied Technologies, Tsinghua University under Grant 20242001120; HuiChun Chin and Tsung-Dao Lee Chinese Undergraduate Research Endowment (CURE).\n\nReferences\n[1] Paul Bergmann and David Sattlegger. Anomaly detection in\n3D point clouds using deep geometric descriptors. In 2023\nIEEE/CVF Winter Conference on Applications of Computer\nVision (WACV), pages 2612–2622, 2023. 1, 3\n[2] Paul Bergmann, Xin Jin, David Sattlegger, and Carsten\nSteger. The MVTec 3D-AD dataset for unsupervised 3D\nanomaly detection and localization. In Proceedings of the\n17th International Joint Conference on Computer Vision,\nImaging and Computer Graphics Theory and Applications,\npages 202–213, 2022. 6\n[3] Luca Bonfiglioli, Marco Toschi, Davide Silvestri, Nicola\nFioraio, and Daniele De Gregorio. The eyecandies dataset\nfor unsupervised multimodal anomaly detection and localization. In Proceedings of the Asian Conference on Computer Vision, pages 3586–3602, 2022. 6\n[4] Yunkang Cao, Xiaohao Xu, and Weiming Shen. Complementary pseudo multimodal feature for point cloud anomaly\ndetection. Pattern Recognition, 156:110761, 2024. 5\n[5] Yunkang Cao, Jiangning Zhang, Luca Frittoli, Yuqi Cheng,\nWeiming Shen, and Giacomo Boracchi. Adaclip: Adapting\nclip with hybrid learnable prompts for zero-shot anomaly detection. In European Conference on Computer Vision, pages\n55–72. Springer, 2024. 1, 3\n[6] Ruitao Chen, Guoyang Xie, Jiaqi Liu, Jinbao Wang, Ziqi\nLuo, Jinfan Wang, and Feng Zheng. Easynet: An easy network for 3d industrial anomaly detection. In Proceedings\nof the 31st ACM International Conference on Multimedia,\npages 7038–7046, 2023. 1, 3\n[7] Xi Chen, Yuting Han, and Jia Zhang. APRIL-GAN: A zero/few-shot anomaly classification and segmentation method\nfor cvpr 2023 vand workshop challenge tracks 1&amp;2: 1st\nplace on zero-shot ad and 4th place on few-shot ad. arXiv\npreprint arXiv:2306.01235, 2023. 3\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] Yuhang Cheng, Yue Cao, Guoping Xie, Zheng Lu, and Wenbing Shen. Towards zero-shot point cloud anomaly detection: A multi-view projection framework. arXiv preprint\narXiv:2403.01351, 2024. 1, 2\n[10] Alex Costanzino, Pierluigi Zama Ramirez, Giuseppe Lisanti,\nand Luigi Di Stefano. Multimodal industrial anomaly detection by crossmodal feature mapping. In Proceedings of\n\nthe IEEE/CVF Conference on Computer Vision and Pattern\nRecognition, pages 17234–17243, 2024. 1, 3\n[11] Zehao Deng, Qingzhi Ma, and An Liu. Dde-clip: Detailguided dual-modal enhancement for zero-shot anomaly detection. In Proceedings of the 34th ACM International Conference on Information and Knowledge Management, pages\n542–552, 2025. 3\n[12] Zhihao Gu, Jiangning Zhang, Liang Liu, Xu Chen, Jinlong Peng, Zhenye Gan, Guannan Jiang, Annan Shu, Yabiao\nWang, and Lizhuang Ma. Rethinking reverse distillation\nfor multi-modal anomaly detection. In Proceedings of the\nAAAI Conference on Artificial Intelligence, pages 8445–\n8453, 2024. 1, 3\n[13] Zhaopeng Gu, Bingke Zhu, Guibo Zhu, Yingying Chen, Hao\nLi, Ming Tang, and Jinqiao Wang. Filo: Zero-shot anomaly\ndetection by fine-grained description and high-quality localization. In Proceedings of the 32nd ACM International Conference on Multimedia, pages 2041–2049, 2024. 1\n[14] Zhaoyu Gu, Bosen Zhu, Guanting Zhu, Yetao Chen, Migu\nTang, and Jin Wang. Anomalygpt: Detecting industrial\nanomalies using large vision-language models. In Proceedings of the AAAI Conference on Artificial Intelligence, pages\n1932–1940, 2024. 1, 3\n[15] Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan AllenZhu, Yuanzhi Li, Shean Wang, Lu Wang, Weizhu Chen, et al.\nLora: Low-rank adaptation of large language models. ICLR,\n1(2):3, 2022. 5\n[16] Jongheon Jeong, Yang Zou, Taewan Kim, Dongqing Zhang,\nAvinash Ravichandran, and Onkar Dabeer. Winclip: Zero/few-shot anomaly classification and segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision\nand Pattern Recognition, pages 19606–19616, 2023. 1, 3\n[17] Wenqiao Li, Xiaohao Xu, Yao Gu, Bozhong Zheng,\nShenghua Gao, and Yingna Wu. Towards scalable 3d\nanomaly detection and localization: A benchmark via 3d\nanomaly synthesis and a self-supervised learning network.\nIn Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 22207–22216, 2024. 3,\n6\n[18] Yiting Li, Adam Goodge, Fayao Liu, and Chuan-Sheng Foo.\nPromptad: Zero-shot anomaly detection using text prompts.\nIn Proceedings of the IEEE/CVF winter conference on applications of computer vision, pages 1093–1102, 2024. 3\n[19] Hanzhe Liang, Guoyang Xie, Chengbin Hou, Bingshu Wang,\nCan Gao, and Jinbao Wang. Look inside for more: Internal\nspatial modality perception for 3d anomaly detection. In Proceedings of the AAAI Conference on Artificial Intelligence,\npages 5146–5154, 2025. 3\n[20] Yuxuan Lin, Yang Chang, Xuan Tong, Jiawen Yu, Antonio\nLiotta, Guofan Huang, Wei Song, Deyu Zeng, Zongze Wu,\nYan Wang, et al. A survey on rgb, 3d, and multimodal approaches for unsupervised industrial image anomaly detection. Information Fusion, page 103139, 2025. 3\n[21] Jiaqi Liu, Guoyang Xie, Ruitao Chen, Xinpeng Li, Jinbao\nWang, Yong Liu, Chengjie Wang, and Feng Zheng. Real3dad: A dataset of point cloud anomaly detection. Advances\nin Neural Information Processing Systems, 36:30402–30415,\n2023. 1, 3, 6\n\n\f[22] Jiaqi Liu, Guoyang Xie, Jinbao Wang, Shangnian Li,\nChengjie Wang, Feng Zheng, and Yaochu Jin. Deep industrial image anomaly detection: A survey. Machine Intelligence Research, 21(1):104–135, 2024. 1\n[23] 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. 3\n[24] Charles Ruizhongtai Qi, Li Yi, Hao Su, and Leonidas J\nGuibas. Pointnet++: Deep hierarchical feature learning on\npoint sets in a metric space. Advances in neural information\nprocessing systems, 30, 2017. 3\n[25] 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. 3\n[26] 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. 3\n[27] 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[28] Marco Rudolph, Tom Wehrbein, Bodo Rosenhahn, and Bastian Wandt. Asymmetric student-teacher networks for industrial anomaly detection. In Proceedings of the IEEE/CVF\nwinter conference on applications of computer vision, pages\n2592–2602, 2023. 3\n[29] Ylli Sadikaj, Hongkuan Zhou, Lavdim Halilaj, Stefan\nSchmid, Steffen Staab, and Claudia Plant.\nMultiads:\nDefect-aware supervision for multi-type anomaly detection\nand segmentation in zero-shot learning. arXiv preprint\narXiv:2504.06740, 2025. 3\n[30] Yue Wang, Jinlong Peng, Jiangning Zhang, Ran Yi, Yabiao\nWang, and Chengjie Wang. Multimodal industrial anomaly\ndetection via hybrid fusion. In Proceedings of the IEEE/CVF\nconference on computer vision and pattern recognition,\npages 8032–8041, 2023. 1, 3\n[31] Yizhou Wang, Kuan-Chuan Peng, and Yun Fu. Towards\nzero-shot 3d anomaly localization. In 2025 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV),\npages 1447–1456. IEEE, 2025. 2\n[32] Jianan Ye, Weiguang Zhao, Xi Yang, Guangliang Cheng, and\nKaizhu Huang. Po3ad: Predicting point offsets toward better 3d point cloud anomaly detection. In Proceedings of the\nComputer Vision and Pattern Recognition Conference, pages\n1353–1362, 2025. 1, 3\n[33] Jihun Yi and Sungroh Yoon. Patch svdd: Patch-level svdd\nfor anomaly detection and segmentation. In Proceedings of\nthe Asian conference on computer vision, 2020. 3\n\n[34] Vitjan Zavrtanik, Matej Kristan, and Danijel Skočaj. Cheating depth: Enhancing 3D surface anomaly detection via\ndepth simulation. In 2024 IEEE/CVF Winter Conference on\nApplications of Computer Vision (WACV), pages 2153–2161,\n2024. 1, 3\n[35] Qihang Zhou, Shibo He, Haoyu Liu, Tao Chen, and Jiming Chen. Pull &amp; push: Leveraging differential knowledge\ndistillation for efficient unsupervised anomaly detection and\nlocalization. IEEE Transactions on Circuits and Systems for\nVideo Technology, 33(5):2176–2189, 2022. 1\n[36] Qihang Zhou, Guansong Pang, Yujun Tian, Siying He,\nand Jiyong Chen. ANOMALYCLIP: OBJECT-AGNOSTIC\nPROMPT LEARNING FOR ZERO-SHOT ANOMALY DETECTION. In Proceedings of the International Conference\non Learning Representations, 2024. 1, 3\n[37] Qihang Zhou, Jiangtao Yan, Shibo He, Wenchao Meng,\nand Jiming Chen. Pointad: Comprehending 3d anomalies\nfrom points and pixels for zero-shot 3d anomaly detection.\nAdvances in Neural Information Processing Systems, 37:\n84866–84896, 2024. 1, 2, 7\n[38] Zheyuan Zhou, Le Wang, Naiyu Fang, Zili Wang, Lemiao\nQiu, and Shuyou Zhang. R3d-ad: Reconstruction via diffusion for 3d anomaly detection. In European conference on\ncomputer vision, pages 91–107. Springer, 2024. 1, 3\n[39] Haoran Zhu, Guoping Xie, Chaoyu Hou, Tao Dai, Cong Gao,\nJihua Wang, and Ligang Shen. Towards high-resolution 3D\nanomaly detection via group-level feature contrastive learning. In Proceedings of the 32nd ACM International Conference on Multimedia, pages 4680–4689, 2024. 3\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"