"<!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\nGPFlow: Gaussian Prototype Probability Flow for Unsupervised Multi-Modal\nAnomaly Detection\nYiting Li1 , Xulei Yang1 *, Jingyi Liao1 , Jing Zhang2 , Fayao Liu1 *\n1\nInstitute for Infocomm Research, A*STAR, Singapore\n2\nSchool of Computer Science and Engineering, Macao University of Science and Technology\n{li yiting, yang xulei, liao jingyi, liu fayao}@i2r.a-star.edu.sg\n\nAbstract\nIn this paper, we study unsupervised multi-modal anomaly\ndetection under challenging few-shot conditions, where\nonly a few normal training samples are available for each\nclass. To prevent the trivial reconstruction of anomalies,\nrecent methods often rely on discrete prototypes to establish an information bottleneck. However, such discrete prototypes fail to capture continuous and anisotropic variations of normal features. We therefore propose GPFlow,\na probability-flow-inspired framework that models normality using learnable Gaussian prototypes. The key component of GPFlow is an analytical Posterior-Mean Path\n(PMP) router, which reconstructs features through the posterior mean of a noise-smoothed Gaussian mixture. This\nyields anisotropic shrinkage as a covariance-aware information bottleneck: PMP selectively preserves normal variations aligned with the covariance structure of Gaussian\nprototypes while strictly suppressing deviations inconsistent\nwith the prototypes. To exploit complementary knowledge\nacross modalities, GPFlow further combines intra-modal\nand cross-modal reconstruction, and applies a lightweight\ninstance-aware prior calibration to alleviate the distribution mismatch between sparse training data and diverse test\nsamples. Experiments on MVTec-3D-AD and Eyecandies\nshow that GPFlow achieves significant performance improvement with only a few normal training samples while\nremaining computationally efficient.\n\ntle defects that would remain invisible to a single modality, thereby providing a more comprehensive inspection of\nproducts. However, achieving robust MAD in unsupervised\nfew-shot normal settings remains highly challenging. In\nmany real scenarios, only a handful of defect-free samples\nper class are available for model training due to the high\ncost of acquiring such multimodal data, making reliable\nanomaly detection particularly challenging.\nExisting reconstruction-based MAD approaches leverage multiple modalities to reconstruct normal features and\nlocalize defects from reconstruction discrepancies. For example, 3D-ADNAS [22] searches for effective multimodal\nfusion architectures, while FIND [19] combines reverse distillation with cross-modal feature transformation. However,\nthese methods often lack a sufficiently strong information\nbottleneck and thus suffer from the identity shortcut issue [7, 8, 16, 44], where a powerful network can simply\nreproduce its inputs (including anomalous patterns) with\nminimal reconstruction error. To address this issue, recent methods [20, 24, 26] explore discrete prototypes to\nenforce a stronger information bottleneck. Although such\ndiscrete routing restricts the reconstruction of anomalies, it\nstill relies on hard quantization and isotropic distance metrics for prototype assignment. Consequently, this fails to\ncapture the continuous and anisotropic variations of normal distribution, causing normal features that vary along\nhigh-variance directions to incur large reconstruction errors,\nwhile anomalous features along low-variance dimensions\nremain insufficiently penalized. We illustrate this issue with\na toy example in Fig. 2.\nThe above limitation leads to a key question: how\ncan we compactly capture the continuous distribution\nof normal appearance and geometry, while enforcing a\ncovariance-aware information bottleneck to robustly suppress anomalies? Towards this goal, we introduce GPFlow,\na multi-modal reconstruction framework that represents\nnormality using Gaussian prototypes [21, 34, 40, 43], where\neach prototype is parameterized by a learnable mean, diagonal covariance, and mixture weight. This allows GPFlow\n\n1. Introduction\nMultimodal anomaly detection (MAD) [6, 19, 41] aims at\nidentifying defects by jointly inspecting multiple modalities, such as RGB images, 3D point clouds, and surface\nnormal maps, which is becoming increasingly important for\nindustrial quality control [17, 45]. By combining visual appearance with shape information, MAD can capture sub* Corresponding authors.\n\n43103\n\n\fto utilize a distribution-level description of normality rather\nthan patch-level biased normality information. The core\nidea of GPFlow is a probability flow inspired by Posterior Mean Path (PMP) router [12, 23, 35]: PMP applies\na sequence of deterministic updates on input features toward the posterior mean of a noise-smoothed Gaussian mixture [15, 33]. Intuitively, this moves input features into the\nhigh-probability neighborhoods of the prototypes (the normal manifold), while suppressing out-of-distribution variations [9, 37, 39]. Crucially, the PMP router leverages\nthe covariance structure of the Gaussian prototypes to perform anisotropic shrinkage; it selectively preserves variations aligned with the learned covariance structure while\nsuppressing deviations in other directions. The routing thus\nacts as a covariance-aware information bottleneck to prevent trivial reconstruction of anomalies: features consistent with normal variability will remain stable during updating, whereas features inconsistent with the prototypes are\nstrongly pulled toward their nearest normal modes. The resulting residuals between inputs and prototype-constrained\nreconstructions thus produce strong reconstruction errors on\nanomalous regions and enable accurate anomaly detection.\nTo fully exploit complementary appearance and geometric information, GPFlow integrates a PMP-constrained\ncoupled reconstruction design that routes input features\nthrough both intra-modal and cross-modal pathways. Furthermore, since models trained on few-shot data inevitably\nface distribution shifts between training and testing samples [4, 25, 28, 42], we perform an instance-aware prior\ncalibration during inference. This step dynamically adjusts\nthe Gaussian prototypes using confidently normal patches\nselected from the current test sample, allowing the learned\npriors to cover unseen normal variations without being contaminated by anomalous features. To summarize, our main\ncontributions are:\n• We propose GPFlow, a probability-flow-inspired multimodal anomaly detection framework that models continuous normal variations with Gaussian prototypes and reconstructs inputs via an analytical Posterior-Mean Path\n(PMP).\n• We introduce anisotropic shrinkage as a covariance-aware\ninformation bottleneck, which effectively prevents the\ntrivial reconstruction of anomalies.\n• Extensive experiments on MVTec-3D-AD and Eyecandies datasets demonstrate that GPFlow achieves state-ofthe-art anomaly detection performance under challenging\nfew-shot settings.\n\nstrategies can be summarized into memory-based retrieval,\ncross-modal alignment, and multimodal reconstruction\nparadigms. Memory-based approaches such as M3DM [41]\nand SG-DM [5] maintain a repository of normal feature\nexemplars and detect anomalies by measuring deviations\nfrom this memory. Cross-modal alignment methods such\nas CFM [6] and LSFA [38] aim to learn explicit correspondences between modalities. Reconstruction-based methods\nleverage multiple modalities for joint reconstruction. 3DADNAS [22] optimizes fusion architectures via neural architecture search, while FIND [19] combines reverse distillation with cross-modal feature mapping.\nPrototype-Based Anomaly Detection. Recent studies\nhave also explored prototype-based designs for 2D anomaly\ndetection. HVQ-Trans [24] learns a hierarchical vectorquantized codebook of representative normal patterns and\nreconstructs inputs through discrete prototype assignments.\nINP-Former [26] derives Intrinsic Normal Prototypes directly from the normal regions of each test image and uses\nthem as on-the-fly references for reconstruction. PIRN [20]\nintroduces a prototype-driven reconstruction framework\nwith balanced optimal transport for prototype assignment.\nDespite their strong performance, both HVQ-Trans and\nINP-Former rely on discrete prototypes, which limits their\nability to capture continuous variations of normal patterns\nand lacks a Bayesian MMSE interpretation. By contrast,\nour PMP router is a covariance-aware information bottleneck, preserving normal variability while suppressing\nout-of-distribution deviations. In the supervised open-set\nsetting, DPDL [40] constructs learnable Gaussian prototypes and trains a Schrödinger bridge diffusion process to\nalign normal samples with the prototypes while separating anomalies. While effective, DPDL requires access to\na small number of real anomalous samples for training. In\ncontrast, our framework only requires a few normal samples.\n\n3. Method\n3.1. Framework Overview\n\n2. Related Work\n\nFig. 1 shows an overview of GPFlow, which takes RGB\nimages Irgb as appearance modality and corresponding 3D\ninputs (i.e., surface normal maps) Ishape as shape modality. Given the scarcity of normal training data, we utilize\npre-trained encoders (e.g., DINOv2) to extract multi-scale\nfeatures for both modalities. These features are aggregated\ninto patch tokens Trgb , Tshape in RBtimesN timesD , where B, N ,\nD denote the batch size, number of patches, and the feature\ndimension.\nGaussian Prototype Modeling. To capture the continuous\nvariation of normality under few-shot constraints, GPFlow\nmodels the feature distribution of each modality as a Gaussian Mixture Model (GMM) parameterized by K learnable\n\nMultimodal Anomaly Detection.\nRecent industrial\nanomaly detection research has extended from conventional RGB+3D settings to multi-sensor scenarios, such as\nMulSen-AD [17] and Real-IAD D3 [45]. Existing MAD\n\n43104\n\n\fFigure 1. Overview of the proposed GPFlow framework. GPFlow operates in three main stages. (1) Feature Extraction: Frozen pretrained encoders extract features from RGB (appearance) and Surface Normal (shape) inputs. (2) PMP-constrained Coupled Reconstruction: This module models the distribution of normality using learnable Gaussian Mixture Model (GMM) prototypes. The Posterior-Mean\nPath (PMP) router iteratively aligns input features with these prototypes via both intra-modal (solid lines) and cross-modal (dashed lines)\npathways, enforcing comprehensive multi-modal consistency. (3) Anomaly Scoring: Anomaly maps are generated by computing the\ndiscrepancy between the original input tokens and the prototype-constrained reconstructions, where the PMP router serves as a covarianceaware information bottleneck to suppress the reconstruction of anomalies.\n\nprototypes: P = {(muk , Sigmak , pik )}K\nk=1 (mean mu, covariance\nSigma, and mixture weight pi). We assume diagonal covariance\nmatrices Sigmak for computationalP\nefficiency. These prototypes\nK\ndefine a GMM prior p(x) = k=1 pik N (x; muk , Sigmak ), providing a compact and continuous description of normality.\nBuilding upon this probabilistic foundation, GPFlow comprises the following three key components:\n\nthese score-ascent steps yields the deterministic flow\nẋ(t) = tau 2 nablax log ptau (x(t)),\n\nwhich can be viewed as a probability-flow-inspired trajectory toward high-density regions of the learned normal distribution [23, 37]. In the AD task, this provides a fixed-noise\nscore-ascent path for denoising anomalous features toward\nthe learned normal manifold.\nClosed-Form Posterior Mean with GMM Priors. While\nsimulating a true continuous flow typically requires solving ODEs, the choice of a GMM P\nprior yields an efficient\nK\nanalytical solution. Let p(x) =\nk=1 pik N (x; muk , Sigmak ).\nThen the smoothed density is also a GMM, ptau (y) =\nPK\n2\nk=1 pik N (y; muk , Sigmak + tau I), and the posterior mean admits a closed form [3, 27]:\n\n3.2. The Posterior-Mean Path (PMP) Router\nThe core challenge in reconstruction-based MAD models is\nenforcing an information bottleneck to prevent the “identity shortcut” issue, i.e., trivial reconstruction of anomalous inputs. We address this issue by introducing the\nPosterior-Mean Path (PMP) router, a mechanism inspired\nby probability flow and score matching [37, 39], which iteratively guides features toward high-probability regions of\nthe learned Gaussian prototype distribution.\nScore Ascent and Probability-Flow View. Consider an\nobservation y = x+epsilon, where x is a clean feature drawn from\nthe normal distribution p(x), and epsilon ~ N (0, tau 2 I) is Gaussian noise. The Minimum Mean Squared Error (MMSE) estimate of x is the posterior mean E[x|y] [11, 13]. Tweedie’s\nformula [13, 27, 29] establishes a crucial link between the\nposterior mean and the score:\nE[x|y] = y + tau 2 nablay log ptau (y),\n\nDtau (y) ≜ E[x|y] =\n\nK\nX\n\ngammak (y)mk (y),\n\n(3)\n\nk=1\n\nwhich is a weighted average of component-wise posterior\nmeans. This contains two distinct parts: soft assignment\nacross prototypes and shrinkage within each prototype.\nThe weighting factor gammak (y) is the responsibility (soft assignment) of component k for observation y, determining\nwhich prototypes contribute to the reconstruction:\n\u0001\npik N y; muk , Sigmak + tau 2 I\ngammak (y) = PK\n(4)\n\u0001.\n2\nj=1 pij N y; muj , Sigmaj + tau I\n\n(1)\n\nwhere ptau (y) is the noise-smoothed density. Crucially, the\nscore function nablay log ptau (y) points toward regions of higher\nprobability density [36, 37]. Hence, moving a sample y\ntoward its posterior mean is equivalent to taking a scoreascent step on the smoothed log-density log ptau (y) [9, 39].\nAt a fixed noise level tau , the continuous-time limit of\n\n(2)\n\nThe term mk (y) is the component posterior mean, i.e.,\nthe optimal MMSE estimate assuming that y is generated\nfrom the k-th prototype [31]:\nmk (y) = Ak y+(I-Ak )muk ,\n\n43105\n\nAk = Sigmak (Sigmak +tau 2 I)-1 .\n(5)\n\n\fThe corresponding component posterior covariance is\n-2 -1\nCk = (Sigma-1\nI) = tau 2 Ak .\nk + tau\nFrom Component-Wise Shrinkage to the Mixture Posterior Mean. Eq. (5) describes the shrinkage behavior within\neach Gaussian component. However, PMP in Eq. (3) is an\ninput-dependent mixture over components through the responsibilities gammak (y). Therefore, the local geometry of PMP\nis the Jacobian of the mixture posterior-mean Dtau (y).\nUsing Tweedie’s formula together with the posterior covariance identity [27], we obtain\nJDtau (y) = I + tau 2 nabla2y log ptau (y) = tau -2 Cov[x|y].\n\nAs such, the gain matrix Ak controls the strength of shrinkage along different feature dimensions within the k-th prototype, acting as a covariance-aware information bottleneck.\nTo intuitively see why this forms an information bottleneck, we can rewrite Eq. (5) to focus on the displacement:\ny - mk (y) = (I - Ak )(y - muk ).\n\n(6)\n\nThis shows that shrinkage is proportional to the deviation\nfrom the prototype mean, but modulated dimension-wise\nby the prototype covariance. In this way, PMP performs\na soft projection that preserves variations aligned with the\nlearned covariance structure while suppressing deviations in\nunaligned directions.\nIterative PMP Routing as Score Ascent. The PMP router\niteratively applies this analytical posterior mean update. Instead of directly solving a continuous ODE, it defines a discrete trajectory toward the normal manifold modeled by the\nGaussian prototypes:\n\nFor the GMM posterior, the law of total covariance gives\n\nCov[x|y] =\n\nK\nX\n\nh\ni\ngammak (y) Ck + Deltak (y)Deltak (y)top .\n\n(7)\n\nk=1\n\nHere, Deltak (y) ≜ mk (y) - Dtau (y) denotes the deviation of\nthe k-th component posterior mean from the full posterior\nmean. Substituting Ck = tau 2 Ak into Eq. (6) yields\nJDtau (y) =\n\nK\nX\n\ngammak (y)Ak + tau -2\n\nk=1\n\nK\nX\n\n(9)\n\nx(t+1) = (1 - betat )x(t) + betat E[x|y = x(t) ].\nSubstituting Eq. (1) into Eq. (10) gives\nx(t+1) = x(t) + etat nablax log ptau (x(t) ),\n\ngammak (y)Deltak (y)Deltak (y)top .\n\n(10)\n\netat = betat tau 2 . (11)\n\nk=1\n\n(8)\ntop\nThe term\ngamma\n(y)Delta\n(y)Delta\n(y)\ncaptures\nthe\nk\nk\nk k\nbetween-prototype dispersion induced by the disagreement\namong multiple prototypes. Eq. (8) reveals two complementary effects. The first term is the within-prototype\nanisotropic shrinkage encoded by Ak , while the second\nterm is a between-prototype ambiguity term induced by\ncompetition among multiple prototypes. Consequently,\nPMP behaves like a locally contractive shrinkage when\none prototype dominates the posterior. In contrast, near\nthe transition region between prototypes, the betweenprototype ambiguity term becomes stronger, so the update\npath is jointly determined by multiple components.\nAnisotropic Shrinkage as Information Bottleneck. In\nparticular, when a dominant prototype k explains the observation, Ak acts as a dimension-wise “retention coefficient,”\ndetermining the convex combination between the observa2\ntion y and the prototype mean muk . Since Sigmak = diag(sigmak,c\n)\nis diagonal, Ak is also diagonal with elements\nP\n\nak,c =\n\n2\nsigmak,c\nin (0, 1).\n2\nsigmak,c + tau 2\n\nThis achieves anisotropic shrinkage [27]: it preserves feature variations along dimensions where the prototype ex2\nhibits high variance (large sigmak,c\n, gain -&gt; 1), while strongly\n2\nsuppressing anomalous variations(small sigmak,c\n, gain -&gt; 0).\n\n43106\n\nTherefore, PMP is a fixed-noise score-ascent step on the\nsmoothed density ptau . We further quantify in the appendix how the routing parameters (tau, betat , T ) determine the\nstrength of PMP.\nComparison with Discrete Prototype Methods. The\nkey difference between PMP and discrete prototype methods [20, 24, 26] lies in how an input feature is reconstructed.\nA discrete router replaces each token with a single nearest prototype or a convex combination of prototypes in a\ndiscrete codebook. Therefore, its routing displacement is\ndetermined by the Euclidean distance to the selected prototype centers. This can be problematic when the actual normal feature distribution is anisotropic: normal features that\nvary along high-variance directions can still incur large reconstruction errors, even when they remain in high-density\nregions of the normal distribution. In contrast, a deviation\nalong a low-variance direction is more likely to be anomalous, but may not be penalized sufficiently due to smaller\nrouting displacement in Euclidean distance.\nBy contrast, PMP avoids this limitation by using the\nGMM posterior mean in Eq. (3). As shown by Eqs. (5)\nand (9), the routing displacement is modulated by (I Ak ), which produces covariance-aware anisotropic shrinkage: Normal variations along high-variance directions are\nlargely preserved. In contrast, anomalous deviations along\nlow-variance directions are strongly suppressed. Moreover,\nfrom Eq. (1) and the iterative update in Eq. (10), PMP is a\n\n\fFigure 2. Conceptual comparison between Discrete Prototype methods and our Posterior-Mean Path (PMP) routing in a 2D threecomponent Gaussian mixture. Normal samples are drawn from a three-component Gaussian mixture with means mu1 = (-2, 0),\nmu2 = (0, 0), mu3 = (2, 0) and diagonal covariances Sigma1 = diag(1.2, 0.03), Sigma2 = diag(1.0, 0.03), Sigma3 = diag(1.2, 0.03). Anomalies are generated by vertically shifting normal samples. PMP is run with T = 5 steps and observation noise variance tau 2 = 0.05. (a)\nDiscrete Prototype methods incur large routing displacements for normal samples varying along the high-variance axes. (b) PMP keeps\nnormal samples geometrically stable while strongly pulling anomalies toward high-density normal modes. (c-d) Resulting reconstruction\nerror distributions. PMP achieves a significantly clearer separation between normal and anomalous samples, improving the anomaly detection AUC from 0.835 to 0.996.\n\ndiscrete score-ascent process on the smoothed density. Consequently, normal samples already near high-density normal modes undergo only small routing displacement, while\nanomalous samples in low-density regions are pulled more\nsignificantly. This leads to reconstruction errors that are better aligned with the learned normal distribution. We further\nillustrate this behavior with a toy example in Fig. 2: discrete\nprototype methods can over-penalize normal samples that\nvary along an anisotropic high-variance direction, whereas\nPMP preserves such normal variation and yields a larger\nseparation between normal and anomalous samples.\n\ncalibrate the prototype mean using an exponential moving\naverage (EMA): mu'k = (1 - etamu )muk + etamu Uk ,\nwhere etamu in (0, 1) controls the strength of instancespecific recentering. We then estimate the responsibilityweighted sample variance around the calibrated mean:\nPN\nv̂k =\n\nM\n' 2\nn=1 gammank (tn - muk )\n.\nPN\nM\nn=1 gammank\n\nTo ensure positivity and numerical stability, the diagonal\ncovariance is updated in the log-variance domain:\nlog(Sigma'k ) = (1 - etaSigma ) log(Sigmak ) + etaSigma log(v̂k + epsilon),\n\n3.3. Instance-Aware Prior Calibration (IPC)\nSparse training data may not fully cover the diversity of normal test samples, causing unseen-yet-normal patterns to be\nover-penalized by a fixed Gaussian prior. Inspired by [26],\nwe perform a lightweight instance-aware prior calibration\nbefore PMP routing. Importantly, this calibration is conducted independently for each test sample and does not accumulate across the test set.\nConfidence-Aware Patch Filtering. We first identify confidently normal patches within the input features (e.g., Trgb )\nusing the Mutual Scoring Mechanism (MSM) [18]. A binary mask M is formed by selecting the lowest-scoring rho\nfraction of patches, such that only reliable normal tokens\nparticipate in prior calibration. The posterior responsibilities in Eq. (4) are then masked as gamma M = gamma ⊙ M . For each\nprototype k, we compute the responsibility-weighted prototype evidence\nPN\nM\ngammank\ntn\nUk = Pn=1\n,\n(12)\nN\nM\nn=1 gammank\nM\nwhere tn denotes the n-th patch token and gammank\nis the masked\nresponsibility of prototype k for tn .\nPrior Calibration. Given the prototype evidence Uk , we\n\n43107\n\n(13)\n\n(14)\n\nwhere etaSigma in (0, 1) is the covariance momentum and epsilon &gt; 0\nis a small constant. The calibrated Gaussian prior (mu'k , Sigma'k )\nis used only for the current sample in the subsequent PMP\nrouting, and is discarded afterward.\n\n3.4. PMP-constrained Coupled Reconstruction\n(PCR)\nCoupled reconstruction. Following the coupled reconstruction paradigm in prior works, GPFlow combines an\nintra-modal pathway and a cross-modal pathway under the\nsame PMP router. This design enforces both modalityspecific consistency and cross-modal coherence by utilizing the PMP router. We define the PMP routing operation\nas R(T ; P), which takes input tokens T and routes them\ntoward the manifold defined by prototypes P using the iterative updates in Eq. (10).\nUsing the RGB branch as an example, the intra-modal\nand cross-modal reconstructions for the RGB branch are defined as:\nintra\nT̂rgb\n= R(Trgb ; Prgb ),\n\ncross\nT̂shape-&gt;rgb\n= R(Tshape ; Prgb ).\n(15)\n\n\fThey are further aggregated by a lightweight FFN:\n\u0001\n\u0001\n'\nintra\ncross\nTrgb\n= FFNrgb T̂rgb\n+ FFNrgb T̂shape-&gt;rgb\n.\n\nmaps are generated by summing the RGB and shape reconstruction errors, followed by smoothing with a 5 times 5 Gaussian kernel. Image-level scores are the maximum value of\nthe merged anomaly map.\n\n(16)\n\nThe shape branch Tshape is defined in the same way. With the\nanisotropic shrinkage bottleneck, the decoder learns to reconstruct normal patterns consistent with the Gaussian prototypes, ensuring that anomalous patterns result in larger\nreconstruction errors.\nAnisotropic Shrinkage Enlarges Anomalous Displacement. A key difference from conventional coupled reconstruction methods such as FIND [19] is that GPFlow\nexplicitly enlarges the displacement gap between normal\nand anomalous inputs before decoding. From Eq. (5)\nand Eq. (9), when an input token can be explained by\none Gaussian prototype, the routing displacement is controlled by (I - Ak ). Therefore, PMP applies covarianceaware anisotropic shrinkage: normal variations along highvariance directions are largely preserved, while anomalous\ndeviations produce larger routing displacements in both\nthe intra-modal and cross-modal branches. This explicitly\nmakes anomalous patterns harder to reconstruct.\nTraining Objective. GPFlow is optimized by enforcing a\ncosine similarity based soft mining loss [26] between the\nraw features extracted by the encoders and the coupled reconstructions. At inference, anomaly maps are computed\nfrom the cosine similarity based discrepancies between the\nencoder features and the final coupled reconstructions. The\nmodality-specific anomaly maps are then fused to produce\nthe final anomaly prediction.\n\n4. Experiment\nDatasets. We evaluate GPFlow on the MVTec-3D-AD [1]\nand Eyecandies [2] datasets under data-scarce conditions by\nrandomly sampling 5, 10 or 50 normal images per class.\nFor each k-shot setting, we repeat the random selection 10\ntimes and report the average performance to mitigate selection bias.\nImplementation Details. We employ two frozen DINOv2\nViT-B/14 [30] as backbone encoders for the RGB and shape\nmodalities, with inputs resized to 224 times 224. Patch tokens\nare from layers 2 through 9, and we discard the class tokens\nand average the selected layers to form per-patch tokens.\nWe utilize K = 30 Gaussian prototypes per modality. For\nGMM initialization, means mu are initialized from N (0, 1)\nand log-variances log Sigma are initialized to -2.0. During reconstruction, the PMP router operates for 8 steps with a\nfixed observation noise tau 2 = 10-2 and a linear step schedule beta in [0.2, 0.8]. For the instance-aware prior calibration\n(IPC), we use a momentum of 0.1 for the EMA update. For\neach image, we keep only the most consistent 60% patches\n(rho = 0.6). We train the model per category using the Adam\noptimizer [14] with a learning rate of 1 times 10-4 . Anomaly\n\n43108\n\n4.1. Main Results\nWe compare GPFlow against several leading unsupervised MAD methods, including memory-based approaches\n(M3DM [41]), alignment-based methods (CFM [6]),\nreconstruction-based methods (AST [32], BTF [10], 3DADNAS [22]), and the most recent approach FIND [19],\nwith results summarized in Tab. 1.\nFew-Shot Anomaly Detection. GPFlow demonstrates significant superiority under few-shot settings. In the extreme\n5-shot setting on MVTec-3D-AD, GPFlow achieves an IAUROC of 0.912, outperforming the second-best method,\nFIND (0.899), and significantly surpassing established approaches like CFM (0.811) and M3DM (0.822). The advantage is even more pronounced on the challenging Eyecandies dataset. In the 5-shot setting, GPFlow achieves an\nI-AUROC of 0.913, establishing a substantial margin over\nFIND (0.840) and CFM (0.795). As the number of training\nshots increases to 10 and 50, GPFlow consistently maintains its lead in I-AUROC on both datasets. For instance, in\nthe 10-shot MVTec-3D-AD setting, GPFlow achieves 0.935\nI-AUROC. This robust performance under limited data validates the effectiveness of GPFlow in modeling normality\nwith Gaussian prototypes.\nFull-Data Anomaly Detection. When trained with all\navailable normal data (All-shot setting) on MVTec-3D-AD,\nGPFlow achieves a competitive I-AUROC of 0.970, slightly\nbehind FIND (0.978). This illustrates a trade-off: while\nGPFlow’s strong inductive biases (Gaussian prototypes and\nPMP router) ensure superior few-shot robustness by imposing an explicit information bottleneck, FIND’s multi-stage\narchitecture works better with abundant data, allowing it\nto capture finer-grained variations than our computationally\nefficient framework.\nVisualization of PMP as an Information Bottleneck. To\nvalidate the effectiveness of the PMP router as an information bottleneck, we visualize the feature displacements induced during the routing process. We illustrate the log density of the learned Gaussian prototypes in a 2D space. As\nshown in Tab. 1(b), normal features (green) align well with\nthe Gaussian prototype manifold and lie in high-density regions. Therefore, they undergo minimal displacement during the PMP routing process. In contrast, anomalous features (red) are pulled along the probability gradient toward\nthe nearest high-density prototypes.\n\n4.2. Ablation Studies\nWe conduct extensive ablation studies to analyze the contributions of each component, mainly under the 10-shot set-\n\n\fTable 1. (a) Comparison of anomaly detection and localization performance on MVTec-3D-AD and Eyecandies with varying numbers of\ntraining shots. Bold indicates the best performance. (b) Visualization of PMP routing displacement. Green: normal; Red: abnormal.\nk-Shot\n\n5\n\n10\n\n50\n\nALL\n\nMVTec-3D-AD\n\nMethod\n\nEyecandies\n\nAUROCI\n\nAUROCP\n\nAUPRO\n\nAUROCI\n\nAUROCP\n\nAUPRO\n\nBTF [10]\nAST [32]\nM3DM [41]\nCFM [6]\n3D-ADNAS [22]\nFIND [19]\nGPFlow\n\n0.671\n0.680\n0.822\n0.811\n0.826\n0.899\n0.912\n\n0.980\n0.950\n0.984\n0.986\n0.991\n0.992\n\n0.920\n0.903\n0.937\n0.949\n0.963\n0.963\n\n0.652\n0.633\n0.764\n0.795\n0.775\n0.840\n0.913\n\n0.815\n0.741\n0.871\n0.879\n0.875\n0.951\n0.982\n\n0.738\n0.691\n0.807\n0.801\n0.862\n0.905\n\nBTF [10]\nAST [32]\nM3DM [41]\nCFM [6]\n3D-ADNAS [22]\nFIND [19]\nGPFlow\n\n0.695\n0.689\n0.845\n0.845\n0.848\n0.921\n0.935\n\n0.983\n0.946\n0.986\n0.987\n0.993\n0.994\n\n0.928\n0.835\n0.943\n0.954\n0.967\n0.968\n\n0.685\n0.671\n0.824\n0.838\n0.807\n0.868\n0.923\n\n0.834\n0.767\n0.890\n0.903\n0.869\n0.959\n0.983\n\n0.806\n0.624\n0.812\n0.825\n0.889\n0.908\n\nBTF [10]\nAST [32]\nM3DM [41]\nCFM [6]\n3D-ADNAS [22]\nFIND [19]\nGPFlow\n\n0.806\n0.794\n0.907\n0.906\n0.890\n0.952\n0.955\n\n0.989\n0.974\n0.989\n0.991\n0.995\n0.995\n\n0.947\n0.929\n0.955\n0.965\n0.973\n0.971\n\n0.721\n0.739\n0.836\n0.852\n0.868\n0.897\n0.925\n\n0.856\n0.862\n0.933\n0.926\n0.912\n0.976\n0.985\n\n0.824\n0.715\n0.846\n0.851\n0.907\n0.913\n\nBTF [10]\nAST [32]\nM3DM [41]\nCFM [6]\n3D-ADNAS [22]\nFIND [19]\nGPFlow\n\n0.865\n0.937\n0.945\n0.954\n0.951\n0.978\n0.970\n\n0.992\n0.976\n0.992\n0.993\n0.995\n0.995\n\n0.959\n0.944\n0.964\n0.971\n0.983\n0.976\n\n0.740\n0.780\n0.882\n0.881\n0.946\n0.955\n0.942\n\n0.883\n0.902\n0.977\n0.974\n0.970\n0.983\n0.989\n\n0.845\n0.744\n0.887\n0.887\n0.925\n0.931\n\nTable 2. Ablation on each component.\nMethod\nGPFlow w/o PMP\nGPFlow w/o PCR\nGPFlow w/o IPC\nGPFlow\n\nTable 3. Ablation on Gaussian prototypes &amp; PMP router. OT:\nOptimal transport; SA: Soft assignment; SB: Schrödinger Bridge.\n\nAUROCI\n\nAUROCP\n\nAUPRO\n\nF1,max,I\n\n0.883\n0.915\n0.925\n0.935\n\n0.989\n0.991\n0.993\n0.994\n\n0.956\n0.958\n0.963\n0.968\n\n0.937\n0.947\n0.950\n0.952\n\nMethod\nVQ-Codebook + OT\nVQ-Codebook + SA\nDPDL: Gaussian + SB\nOurs: Gaussian + PMP\n\nting.\nEffectiveness of Core Components. Tab. 2 evaluates the\nimpact of the three key modules.\n• PMP: Replacing our PMP router with an attention-based\nprototype router [26] (i.e., aggregating prototypes via\nlearned attention scores without using covariance information) leads to a significant drop in performance, with\nAUROCI decreasing from 0.935 to 0.883. This confirms\nthat the covariance-aware Gaussian prototype probability\nflow is crucial for aggressively shrinking features toward\nnormal modes and filtering out anomalous variations.\n• PCR: We observe a significant performance drop without\nthe cross-modal reconstruction: GPFlow w/o cross-modal\nreconstruction (intra-modal only) yields 0.915 AUROCI ,\nversus 0.935 with the coupled design. This highlights the\nimportance of leveraging cross-modal consistency.\n\nAUROCI\n\nAUROCP\n\nAUPRO\n\nF1,max,I\n\n0.751\n0.885\n0.908\n0.935\n\n0.973\n0.991\n0.992\n0.994\n\n0.891\n0.956\n0.961\n0.968\n\n0.906\n0.937\n0.940\n0.952\n\n43109\n\n• IPC: Disabling IPC (i.e., freezing the prototypes at test\ntime) degrades performance (0.925 AUROCI without\nIPC, vs. 0.935 with the full model). This confirms that\nupdating the prototype distribution with confident normal\npatches is beneficial: it expands coverage to new normal variations that are unseen during training and reduces\nfalse positives.\nIn all cases, the full GPFlow achieves the best overall AUROC and AUPRO performance, validating that each proposed component contributes to the overall effectiveness.\nAblations on Gaussian Prototypes and PMP Router. We\nnext evaluate our design choices for representing normal\npatterns and the mechanism for routing features toward prototypes. In Tab.3, we compare against four variants: (i)\na discrete vector-quantized (VQ) codebook with optimal\n\n\fTable 5. Oracle contamination stress (no MSM) forces the IPC\nto include 25%/50%/100% GT anomalous patches during prototype refinement. FNR@1%FPR uses the threshold determined\nby normal test scores at FPR=1%. DispRatio: ratio between the\nmean PMP displacement of normal/anomaly patches in test images (lower is better). Leak(%): Fraction of GT anomaly patches\nincluded in the MSM candidate set.\n\nTable 4. Effect of intra- and cross-modal coupling (intra-only vs.\ncross-only vs. coupled).\nAUROCI\n\nAUROCP\n\nAUPRO\n\nF1,max,I\n\nIntra RGB-only\nIntra Shape-only\nIntra (RGB + Shape)\n\n0.829\n0.858\n0.915\n\n0.974\n0.965\n0.991\n\n0.915\n0.888\n0.958\n\n0.920\n0.934\n0.936\n\nCross RGB-only\nCross Shape-only\nCross (RGB + Shape)\n\n0.607\n0.782\n0.775\n\n0.967\n0.983\n0.986\n\n0.866\n0.932\n0.937\n\n0.891\n0.916\n0.919\n\nCoupled RGB-only\nCoupled Shape-only\nOurs: Coupled (RGB + Shape)\n\n0.847\n0.898\n0.935\n\n0.983\n0.981\n0.994\n\n0.935\n0.928\n0.968\n\n0.922\n0.942\n0.952\n\nMethod\n\nSetting\n\ntransport (OT) matching for reconstruction; (ii) a VQ codebook with soft assignment (SA), allowing a linear combination of nearest codes; (iii) learnable Gaussian prototypes\nwith a learned diffusion process via a Schrödinger Bridge\n(SB); and (iv) our proposed Gaussian prototypes with the\nanalytical PMP router.\nGaussian prototypes consistently outperform discrete\ncodebooks (e.g., VQ with soft-assignment: 0.885 IAUROC), confirming the importance of modeling continuous normal variation. Moreover, our PMP router\n(0.935) surpasses the Schrödinger-Bridge approach (0.908),\ndemonstrating more robust anomaly detection.\nRobustness of IPC to anomaly contamination and rho.\nTab. 5 analyzes our Instance-Aware Prior Calibration (IPC)\nunder varying MSM selection ratios rho and oracle contamination stress. Across all values of rho, the anomaly leakage\nremains negligible, ensuring that the calibration is mainly\ndriven by the normal context. The ratio of rho = 0.6 achieves\nthe optimal performance trade-off. Overly restricting rho degrades calibration performance due to insufficient coverage\nof normal contexts rather than to anomaly leakage. Oracle stress tests highlight IPC’s robustness to contamination from anomalies. Even when injected with up to 50%\nanomalous patches, IPC maintains robust performance and\nconsistently outperforms the baseline model without IPC.\nSevere degradation occurs only with 100% contamination,\nwhen normal patches are completely unavailable.\nAblations on Coupled Reconstruction Pathways. Tab.4\nanalyzes the detailed contributions of the intra-modal,\ncross-modal, and coupled reconstruction pathways. Only\nusing intra-modal reconstruction (Intra RGB + Shape)\nachieves 0.915 AUROCI .\nIn contrast, relying only\non cross-modal reconstruction (Cross RGB + Shape)\nperforms poorly (0.775 AUROCI ). Without modeling\nmodality-specific normal patterns, cross-modal consistency\nalone is insufficient for MAD tasks. By modeling both\nmodality-specific feature deviations and cross-modal inconsistencies, the proposed coupled architecture achieves the\nbest performance (0.935 AUROCI ).\nComputational Efficiency. Despite its strong performance,\nGPFlow remains computationally efficient. Tab. 6 com-\n\nI-AUROCuparrow FNR@1%FPRdownarrow DispRatiodownarrow Leak(%)downarrow\n\nNo-IPC\nIPC + MSM (top-rho=0.2)\nIPC + MSM (top-rho=0.4)\nIPC + MSM (top-rho=0.6)\nIPC + MSM (top-rho=0.8)\n\n0.894\n0.901\n0.908\n0.911\n0.907\n\n0.272\n0.220\n0.179\n0.151\n0.156\n\n0.798\n0.775\n0.769\n0.763\n0.761\n\n–\n0.27\n0.75\n1.29\n1.98\n\nStress level (25% anomaly patches)\nStress level (50% anomaly patches)\nStress level (100% anomaly patches)\n\n0.898\n0.895\n0.872\n\n0.211\n0.234\n0.355\n\n0.786\n0.799\n0.829\n\n–\n–\n–\n\nTable 6. Computation efficiency comparison. FLOPs are per forward pass at 224 times 224; latency measured with batch= 1.\nMethod\n\nAUROCI uparrow\n\nFLOPsdownarrow (G)\n\n#Paramsdownarrow (M)\n\nLatencydownarrow (ms, b=1)\n\nCFM\nFIND\nGPFlow\n\n0.845\n0.921\n0.935\n\n228.53\n728.46\n129.27\n\n146.80\n186.89\n265.44\n\n35.57\n76.09\n69.02\n\npares its computation cost with baseline methods. Our\nmethod requires approximately 129 GFLOPs per forward\npass on a 224 times 224 input, which uses only 18% of computation cost of FIND (728 GFLOPs). Although the parameter count of GPFlow is higher (265M), GPFlow processes\nan image in 69ms, slightly faster than FIND (76ms). Overall, GPFlow achieves state-of-the-art accuracy with substantially lower computational overhead, making it well-suited\nfor real-time industrial inspection applications.\n\n5. Conclusion\nWe introduced GPFlow, a framework for multi-modal\nanomaly detection. By modeling normality with learnable Gaussian priors and guiding feature reconstruction\nthrough an analytical Posterior-Mean Path router, GPFlow\ncaptures continuous normal variations while suppressing\nshortcut reconstructions through a covariance-aware information bottleneck. In addition, GPFlow robustly exploits\ncomplementary multi-modal cues and adapts to unseen normal patterns through instance-aware prior calibration. Experiments on MVTec-3D-AD and Eyecandies show that\nGPFlow achieves remarkable performance with minimal\nnormal data, making it a practical industrial solution.\n\nAcknowledgements\n\n43110\n\nThis work is supported by the Agency for Science, Technology and Research (A*STAR) under its MTC Programmatic\nFunds (Grant No. M23L7b0021).\n\n\fReferences\n[1] Paul Bergmann, Xin Jin, David Sattlegger, and Carsten Steger. The mvtec 3d-ad dataset for unsupervised 3d anomaly\ndetection and localization. In Proceedings of the 17th International Joint Conference on Computer Vision, Imaging and\nComputer Graphics Theory and Applications, VISIGRAPP,\npages 202–213, 2022. 6\n[2] Luca Bonfiglioli, Marco Toschi, Davide Silvestri, Nicola\nFioraio, and Daniele De Gregorio. The eyecandies dataset\nfor unsupervised multimodal anomaly detection and localization. In 16th Asian Conference on Computer Vision\n(ACCV), pages 459–475, 2022. 6\n[3] Joan Bruna and Jiequn Han. Provable posterior sampling\nwith denoising oracles via tilted transport. In Advances in\nNeural Information Processing Systems (NeurIPS), 2024. 3\n[4] Tri Cao, Jiawen Zhu, and Guansong Pang. Anomaly detection under distribution shift. In Proceedings of the\nIEEE/CVF International Conference on Computer Vision\n(ICCV), 2023. 2\n[5] Yu-Min Chu, Chieh Liu, Ting-I Hsieh, Hwann-Tzong Chen,\nand Tyng-Luh Liu. Shape-guided dual-memory learning for\n3d anomaly detection. In Proceedings of the 40th International Conference on Machine Learning (ICML), 2023. 2\n[6] Alex Costanzino, Pierluigi Zama Ramirez, Giuseppe Lisanti,\nand Luigi Di Stefano. Multimodal industrial anomaly detection by crossmodal feature mapping. In Proceedings of\nthe IEEE/CVF Conference on Computer Vision and Pattern\nRecognition, pages 17234–17243, 2024. 1, 2, 6, 7\n[7] Hanqiu Deng and Xingyu Li. Anomaly detection via reverse\ndistillation from one-class embedding. In Proceedings of\nthe IEEE/CVF Conference on Computer Vision and Pattern\nRecognition (CVPR), 2022. 1\n[8] Matic Fučka, Vitjan Zavrtanik, and Danijel Skočaj. Transfusion – a transparency-based diffusion model for anomaly\ndetection. In European Conference on Computer Vision\n(ECCV), 2024. 1\n[9] Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. In Advances in Neural Information Processing Systems (NeurIPS), pages 6840–6851, 2020.\n2, 3\n[10] Eliahu Horwitz and Yedid Hoshen. Back to the feature: Classical 3D features are (almost) all you need for 3D anomaly\ndetection. In Proceedings of the IEEE/CVF Conference on\nComputer Vision and Pattern Recognition (CVPR) Workshops, pages 2968–2977, 2023. 6, 7\n[11] Zahra Kadkhodaie and Eero P. Simoncelli. Stochastic solutions for linear inverse problems using the prior implicit in\na denoiser. In Advances in Neural Information Processing\nSystems (NeurIPS), 2021. 3\n[12] Tero Karras, Miika Aittala, Timo Aila, and Samuli Laine.\nElucidating the design space of diffusion-based generative\nmodels. In Advances in Neural Information Processing Systems (NeurIPS), 2022. 2\n[13] Kwanyoung Kim and Jong Chul Ye. Noise2score: Tweedie’s\napproach to self-supervised image denoising without clean\nimages. In Advances in Neural Information Processing Systems (NeurIPS), 2021. 3\n\n[14] Diederik P. Kingma and Jimmy Ba. Adam: A method\nfor stochastic optimization. In International Conference on\nLearning Representations (ICLR), 2015. 6\n[15] Branislav Kveton, Boris Oreshkin, Youngsuk Park, Aniket\nDeshmukh, and Rui Song. Online posterior sampling with a\ndiffusion prior. In Advances in Neural Information Processing Systems (NeurIPS), 2024. 2\n[16] Joo Chan Lee, Taejune Kim, Eunbyung Park, Simon S. Woo,\nand Jong Hwan Ko. Continuous memory representation for\nanomaly detection. In European Conference on Computer\nVision (ECCV), 2024. 1\n[17] Wenqiao Li, Bozhong Zheng, Xiaohao Xu, Jinye Gan, Fading Lu, Xiang Li, Na Ni, Zheng Tian, Xiaonan Huang,\nShenghua Gao, and Yingna Wu.\nMulti-sensor object\nanomaly detection: Unifying appearance, geometry, and internal properties. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR),\npages 9984–9993, 2025. 1, 2\n[18] Xurui Li, Ziming Huang, Feng Xue, and Yu Zhou. MuSc:\nZero-shot industrial anomaly classification and segmentation with mutual scoring of the unlabeled images. In The\nTwelfth International Conference on Learning Representations, 2024. 5\n[19] Yiting Li, Fayao Liu, Jingyi Liao, Sichao Tian, Chuan-Sheng\nFoo, and Xulei Yang. FIND: Few-shot anomaly inspection with normal-only multi-modal data. In Proceedings of\nthe IEEE/CVF International Conference on Computer Vision\n(ICCV), pages 23290–23299, 2025. 1, 2, 6, 7\n[20] Yiting Li, Xulei Yang, Jing Zhang, Sichao Tian, Jingyi Liao,\nand Fayao Liu. PIRN: Prototypical-based intra-modal reconstruction with normality communication for multi-modal\nanomaly detection. In The Fourteenth International Conference on Learning Representations, 2026. 1, 2, 4\n[21] Chen Liang, Wenguan Wang, Jiaxu Miao, and Yi Yang.\nGMMSeg: Gaussian mixture based generative semantic segmentation models. In Advances in Neural Information Processing Systems (NeurIPS), 2022. 1\n[22] Kaifang Long, Guoyang Xie, Lianbo Ma, Jiaqi Liu, and\nZhichao Lu. Revisiting multimodal fusion for 3D anomaly\ndetection from an architectural perspective. In Proceedings of the AAAI Conference on Artificial Intelligence, pages\n12273–12281, 2025. 1, 2, 6, 7\n[23] Cheng Lu, Yuhao Zhou, Fan Bao, Jianfei Chen, Chongxuan\nLi, and Jun Zhu. DPM-Solver: A fast ode solver for diffusion probabilistic model sampling in around 10 steps. In Advances in Neural Information Processing Systems (NeurIPS),\n2022. 2, 3\n[24] Ruiying Lu, YuJie Wu, Long Tian, Dongsheng Wang, Bo\nChen, Xiyang Liu, and Ruimin Hu. Hierarchical vector\nquantized transformer for multi-class unsupervised anomaly\ndetection. Advances in Neural Information Processing Systems, 36:8487–8500, 2023. 1, 2, 4\n[25] Yiwei Lu, Frank Yu, Mahesh Kumar Krishna Reddy, and\nYang Wang. Few-shot scene-adaptive anomaly detection.\nIn European Conference on Computer Vision (ECCV), pages\n125–141, 2020. 2\n[26] Wei Luo, Yunkang Cao, Haiming Yao, Xiaotian Zhang,\nJianan Lou, Yuqi Cheng, Weiming Shen, and Wenyong Yu.\n\n43111\n\n\f[39] Pascal Vincent. A connection between score matching and\ndenoising autoencoders. Neural computation, 23(7):1661–\n1674, 2011. 2, 3\n[40] Fuyun Wang, Tong Zhang, Yuanzhi Wang, Yide Qiu, Xin\nLiu, Xu Guo, and Zhen Cui. Distribution prototype diffusion learning for open-set supervised anomaly detection. In\nProceedings of the Computer Vision and Pattern Recognition\nConference, pages 20416–20426, 2025. 1, 2\n[41] 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\n(CVPR), pages 8032–8041, 2023. 1, 2, 6, 7\n[42] Ze Wang, Yipin Zhou, Rui Wang, Tsung-Yu Lin, Ashish\nShah, and Ser Nam Lim. Few-shot fast-adaptive anomaly\ndetection. In Advances in Neural Information Processing\nSystems (NeurIPS), 2022. 2\n[43] Bingchen Zhao, Xin Wen, and Kai Han. Learning semisupervised gaussian mixture models for generalized category discovery. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages\n16623–16633, 2023. 1\n[44] 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 (ECCV), 2024. 1\n[45] Wenbing Zhu, Lidong Wang, Ziqing Zhou, Chengjie Wang,\nYurui Pan, Ruoyi Zhang, Zhuhao Chen, Linjie Cheng, BinBin Gao, Jiangning Zhang, Zhenye Gan, Yuxie Wang, Yulong Chen, Shuguang Qian, Mingmin Chi, Bo Peng, and\nLizhuang Ma. Real-IAD D3: A real-world 2d/pseudo-3d/3d\ndataset for industrial anomaly detection. In Proceedings of\nthe IEEE/CVF Conference on Computer Vision and Pattern\nRecognition (CVPR), pages 15214–15223, 2025. 1, 2\n\nExploring intrinsic normal prototypes within a single image for universal anomaly detection. In Proceedings of the\nComputer Vision and Pattern Recognition Conference, pages\n9974–9983, 2025. 1, 2, 4, 5, 6, 7\n[27] Hila Manor and Tomer Michaeli. On the posterior distribution in denoising: Application to uncertainty quantification.\nIn The Twelfth International Conference on Learning Representations, 2024. 3, 4\n[28] Declan McIntosh and Alexandra Branzan Albu. Unsupervised, online and on-the-fly anomaly detection for nonstationary image distributions. In European Conference on\nComputer Vision (ECCV), pages 428–445, 2024. 2\n[29] Chenlin Meng, Yang Song, Wenzhe Li, and Stefano Ermon.\nEstimating high order gradients of the data distribution by\ndenoising. In Advances in Neural Information Processing\nSystems (NeurIPS), 2021. 3\n[30] Maxime Oquab, Timothée Darcet, Théo Moutakanni, Huy V.\nVo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez,\nDaniel Haziza, Francisco Massa, Alaaeldin El-Nouby, et al.\nDINOv2: Learning robust visual features without supervision. Transactions on Machine Learning Research, 2024. 6\n[31] Marien Renaud, Jiaming Liu, Valentin de Bortoli, Andrés\nAlmansa, and Ulugbek S. Kamilov. Plug-and-play posterior\nsampling under mismatched measurement and prior models. In International Conference on Learning Representations (ICLR), 2024. 3\n[32] Marco Rudolph, Tom Wehrbein, Bodo Rosenhahn, and Bastian Wandt. Asymmetric student-teacher networks for industrial anomaly detection. In IEEE/CVF Winter Conference on\nApplications of Computer Vision, WACV, pages 2592–2602,\n2023. 6, 7\n[33] Kulin Shah, Sitan Chen, and Adam R. Klivans. Learning\nmixtures of gaussians using the ddpm objective. In Advances\nin Neural Information Processing Systems (NeurIPS), 2023.\n2\n[34] Andrew H. Song, Richard J. Chen, Tong Ding, Drew F.K.\nWilliamson, Guillaume Jaume, and Faisal Mahmood. Morphological prototyping for unsupervised slide representation\nlearning in computational pathology. In Proceedings of\nthe IEEE/CVF Conference on Computer Vision and Pattern\nRecognition (CVPR), pages 11566–11578, 2024. 1\n[35] Jiaming Song, Chenlin Meng, and Stefano Ermon. Denoising diffusion implicit models. In International Conference\non Learning Representations (ICLR), 2021. 2\n[36] Yang Song and Stefano Ermon. Generative modeling by\nestimating gradients of the data distribution. In Advances\nin Neural Information Processing Systems (NeurIPS), pages\n11895–11907, 2019. 3\n[37] Yang Song, Jascha Sohl-Dickstein, Diederik P Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based\ngenerative modeling through stochastic differential equations. In International Conference on Learning Representations (ICLR), 2021. 2, 3\n[38] Yuanpeng Tu, Boshen Zhang, Liang Liu, Yuxi Li, Jiangning\nZhang, Yabiao Wang, Chengjie Wang, and Cairong Zhao.\nSelf-supervised feature adaptation for 3d industrial anomaly\ndetection. In European Conference on Computer Vision\n(ECCV), pages 75–91. Springer, 2024. 2\n\n43112\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"