"<!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>CMDS-AD: Cross-Modal Dual-Stream\nDecoupling for Few-Shot Anomaly Detection\nJunhao Cai1 , Junyu Chen2 , Deyu Zeng1,2⋆ , Junhao Pang1 , Qiwei Liang1,3 ,\nXiaopin Zhong1 , and Zongze Wu1\nShenzhen University, Shenzhen, Guangdong 518060, China\ncaijunhao27@gmail.com, 2500092013@mails.szu.edu.cn,\nliangqiwei2022@email.szu.edu.cn, {xzhong,zzwu}@szu.edu.cn\n2\nGuangzhou Maritime University, Guangzhou, Guangdong 510725, China\n{zengdeyu,chenjunyu}@gzmtu.edu.cn\n3\nHong Kong University of Science and Technology (Guangzhou), Guangzhou,\nGuangdong 511453, China\n\narXiv:2606.20300v3 [cs.CV] 24 Jun 2026\n\n1\n\nAbstract. Few-shot anomaly detection remains challenging due to limited training data. Multi-modal anomaly detection (MAD) offers a viable\nsolution, leveraging 3D geometric cues to enrich 2D RGB representations\nand compensate for this scarcity. However, existing MAD methods apply\nspatially uniform feature processing, conflating stable macroscopic structures with high-frequency localized defect signals, exacerbating crossmodal misalignment and inflating false-positive rates. To overcome this,\nwe present CMDS-AD, a Cross-Modal Dual-Stream Anomaly Detection\nframework. A LoRA-guided diffusion model generates diverse RGB samples to mitigate extreme data scarcity. For 3D normal augmentation, we\nemploy a pre-trained diffusion model as a normal estimator. Crucially,\nthis estimator inherently acts as a non-linear low-pass filter, directly extracting low-frequency normal representations from RGB inputs. This\nestablishes an auxiliary estimated stream of purely low-frequency information, anchoring robust structural templates and assisting the uncompressed real stream, containing coupled high- and low-frequency components, to precisely isolate micro-defects. A Coordinate-Aware Hierarchical Feature Mapper adaptively aligns cross-modal semantics, while a multiplicative scoring mechanism filters modality-specific noise. Under the\nextreme 1-shot setting, CMDS-AD achieves absolute performance gains\nof 5.7% (I-AUROC) and 2.0% (AUPRO) on MVTec 3D-AD, alongside 7.7% and 5.6% improvements on EyeCandies, establishing a new\nstate-of-the-art. Code is available at Junhaocai27/CMDS-AD.\nKeywords: Few-Shot Learning · Multi-Modal Anomaly Detection · Diffusion Models · Dual-Stream Optimization\n\n1\n\nIntroduction\n\nAnomaly detection (AD) has become an indispensable component of industrial visual inspection, ensuring product quality and manufacturing stability\n⋆\n\nCorresponding author.\n\n\f2\n\nJ. Cai et al.\nMVTec 3D-AD\n1-shot\nI-AUROC\n1.0\n\nNormal Calculator\n\n0.796\n\nNormal Estimator\nReal SN\n\nRGB\n\n0.8\n\n2-shot\nI-AUROC\n\nEstimated SN\n\n1-shot\nAUPRO\n\n+0.034\n\n0.942\n\n0.6\n\n0.830\n\n0.4\n\nShared Weight\nFeature Extractor\n\nI-AUROC\n\n0.2\n\n+0.041\n\n0.871\n\n0.948\n\n4-shot\nI-AUROC\n\nHierarchical\nGatedMapper\n\nAUPRO\n\n+0.006\n\n2-shot\nAUPRO\n\n+0.010\n\n0.958\n\n4-shot\nAUPRO\n\nEyeCandies\n\n⊕\n\n1-shot\nI-AUROC\n\nElement-Wise\nSummation\n\n1.0\n\n⊙\n\nElement-Wise\nMultiplication\n\n⊙\n\n0.8\n\n2-shot\nI-AUROC\n\n⊕\n\n0.772\n\n1-shot\nAUPRO\n\n+0.030\n\n0.6\n\n0.802\n\n2D Enhanced\n\n3D Enhanced\n\n⊕\n\n0.855\n\n0.4\n\nI-AUROC\n\n0.2\n\n+0.025\n\nAnomaly Map\n\n0.858\n\n4-shot\nI-AUROC\n\nFusion Anomaly\nDistribution\n\nGround Truth\n\n0.827\n+0.019\n\n2-shot\nAUPRO\n\n0.877\n\n4-shot\nAUPRO\n\nM3DM\n\n(a) Mechanism\n\nAUPRO\n\n+0.003\n\nCFM\n\nCIF\n\nMAFR\n\nOurs\n\n1-shot 2-shot\n\n2-shot 4-shot\n\n(b) Results\n\nFig. 1: Few-shot 3D anomaly detection overview. (a) Illustration showing how estimated streams enhance defect representation in real streams, and multi-modal 2D-3D\nmultiplication further localizes defects. (b) Radar plots on MVTec 3D-AD and EyeCandies report few-shot (1, 2, 4-shot) I-AUROC and AUPRO. Our method (red) outperforms baselines (blue) with annotated gains, demonstrating robust improvements.\n\nwhere manual inspection is inefficient and error-prone. Since anomalous samples\n(e.g. defects, scratches, structural damages) are unpredictable and extremely\nrare in real-world scenarios, most existing AD methods adopt an unsupervised\nparadigm, training exclusively on normal, defect-free data to identify anomalies\nas deviations from nominal distributions [8, 26, 32, 41].\nWith the rapid advancement of 3D sensors, multi-modal anomaly detection\n(MAD) has garnered increasing interest [18,23,37]. Relying on a single modality\n(e.g. RGB) often fails to capture crucial geometric cues obscured by complex\nsurface textures, whereas 3D information provides highly complementary structural insights [20, 39]. While significant progress has been made in MAD under full-shot settings—ranging from memory-based pattern matching [6, 35] and\nfeature adaptation [29, 34] to diffusion-driven reconstruction [22, 42]—existing\napproaches rely on a large volume of normal training data. In agile manufacturing, acquiring extensive multi-modal normal samples for every new product\nline is highly expensive. Consequently, few-shot anomaly detection (FSAD) has\nemerged as a critical alternative [9,14,15,17,31]. However, when restricted to severe few-shot scenarios (e.g. 1 to 4 samples), the performance of state-of-the-art\nmulti-modal methods drops precipitously (as evidenced in Fig. 1).\nThe fundamental bottleneck of extending MAD to few-shot scenarios is the\nprofound modality gap and modality interference under data scarcity. Existing\nmethods attempt to bridge this gap through various fusion strategies, but of-\n\n\fCMDS-AD for Few-Shot Anomaly Detection\n\n3\n\nten fall short. For instance, fusing modalities via input-level concatenation (e.g.\nAST [27]) or multi-level spatial fusion (e.g. MMRD [10]) risks severe modality interference. Cross-modal mapping approaches, such as CFM [7], attempt to\nmap features between modalities; however, the inherent modality gap often leads\nto large reconstruction errors even for normal samples, inherently resulting in\nhigh false-positive rates and coarse localization boundaries. Meanwhile, memorybased architectures like M3DM [35] and ShapeGuided [6] struggle because limited normal samples fail to adequately cover the nominal feature patterns. Fundamentally, these methods treat all spatial features uniformly, neglecting the frequency properties of industrial data. By entangling stable low-frequency macroscopic structures with unpredictable high-frequency localized variations (e.g.\nminor texture shifts), they inevitably confuse normal sensor noise with genuine\nstructural defects in data-scarce scenarios.\nTo overcome these severe limitations, we propose Cross-Modal Dual-Stream\nAnomaly Detection (CMDS-AD), a novel few-shot MAD framework that explicitly establishes a dual-stream architecture while deeply exploiting generative\ndiffusion priors. Rather than solely utilizing diffusion models as monolithic augmentors via LoRA-guided synthesis to generate paired training data, we innovatively repurpose a pre-trained diffusion-based geometric estimator as a non-linear\nlow-pass filter. This mathematically establishes an estimated stream comprising purely low-frequency information, which serves as an auxiliary anchor for\nthe stable macroscopic structural representation, constructing a robust nominal\ntemplate even with single-digit samples. Concurrently, the uncompressed real\nstream, encompassing coupled high- and low-frequency components, is explicitly\nenhanced by this auxiliary prior to capture localized microscopic details. By synergistically aggregating the anomaly responses from these parallel streams, our\nframework naturally isolates and amplifies genuine defect signals while effectively\nsuppressing cross-modal interference.\nTo precisely align these decoupled dual-stream representations without risking feature collapse caused by cross-modal amplitude discrepancies, we design\nan adaptive Coordinate-Aware Hierarchical Feature Mapper. Unlike previous\nrigid fusion mechanisms, it dynamically regulates hierarchical feature aggregation within each independent mapping pathway across multiple scales, while rigorously preserving spatial positional priors. Finally, we introduce a Cross-Modal\nMultiplicative Anomaly Scoring module (Ψ2D ⊙ Ψ3D ). This acts as a stringent\nspatial filter that flags defects only given concurrent multi-modal anomalies,\ndramatically suppressing previously unavoidable modality-specific false alarms\ntriggered by localized sensory artifacts.\nOur main contributions are summarized as follows:\n1. Cross-Modal Dual-Stream Framework (CMDS-AD): We propose the\nfirst few-shot MAD architecture driven by a dual-stream perspective. By innovatively repurposing diffusion estimators as non-linear low-pass filters, we\nestablish an auxiliary estimated stream that effectively enhances the real\nstream to isolate unpredictable micro-defects from stable macroscopic structures.\n\n\f4\n\nJ. Cai et al.\n\n2. Adaptive Cross-Modal Feature Alignment: We design a CoordinateAware Hierarchical Feature Mapper coupled with a Decoupled Multi-Scale\nMask-Aware Optimization strategy. This adaptively aligns heterogeneous 2D\nand 3D semantic spaces, fundamentally mitigating the cross-modal gap and\nmodality interference under severe data scarcity.\n3. Synergistic Multiplicative Anomaly Scoring: We introduce a novel\nscoring mechanism that aggregates anomaly responses from both the real\nand estimated streams to filter out isolated modality-specific noise. Extensive experiments on MVTec 3D-AD and EyeCandies demonstrate that our\nmethod establishes a new state-of-the-art in few-shot settings.\n\n2\n\nRelated Work\n\nMulti-modal Anomaly Detection. With the advent of 3D sensors, multimodal anomaly detection (MAD) has gained significant attention [6,7,35] as 3D\ngeometric cues effectively complement RGB features. Recent methods typically\nexplore cross-modal feature alignment (e.g. CFM [7], CIF [21]), memory-based\narchitectures (e.g. ShapeGuided [6], M3DM [35], MAFR [1]), or multi-level feature fusion (e.g. MMRD [10]) to localize anomalies. Although these approaches\nachieve remarkable performance under full-shot settings, they heavily rely on\nextensive normal training data or perfectly aligned networks. In severe few-shot\nscenarios, the profound modality gap between 2D images and 3D point clouds\ncritically hinders reliable cross-modal alignment. To address this fundamental\nlimitation, we propose a Coordinate-Aware Hierarchical Feature Mapper that\nbypasses amplitude discrepancies and adaptively aligns multi-scale contextual\nfeatures, efficiently closing the modality gap under data scarcity.\nFew-shot Anomaly Detection. To alleviate the prohibitive cost of collecting large-scale normal data, few-shot anomaly detection (FSAD) has emerged\nas a promising alternative. Current research focuses on the RGB domain, utilizing vision-language prompts (AnoPLe [17]), feature regression (FastRecon\n[9]), window-based fusion (WinCLIP [15]), or image registration (RegAD [14]).\nHowever, existing single-modality FSAD approaches struggle to capture structural distortions. Extending FSAD to multi-modal scenarios remains challenging\nbecause traditional methods uniformly treat all spatial features, exacerbating\nmodality interference when data is scarce. Motivated by this, our method explicitly establishes a dual-stream architecture to process coupled and purely\nlow-frequency representations, effectively mitigating cross-modal interference.\nDiffusion Models in Visual Inspection. Diffusion models are increasingly\napplied in anomaly detection for data augmentation [25, 33] or reconstruction\n[11, 36, 40]. Restoration studies further show that adaptive denoising schedules\nand lightweight LoRA adaptation can target image degradations, as in SkipDiff\n[24] and degradation-aware LoRA [30]. These advances suggest that diffusion\npriors can be adapted beyond generic generation, but their frequency-level role\nin multi-modal inspection remains underexplored. However, existing anomaly\ndetection methods still treat generation as a monolithic module, overlooking the\n\n\fCMDS-AD for Few-Shot Anomaly Detection\n\n5\n\nfrequency dynamics of progressive denoising [5]. Distinctly, our framework rethinks their role in FSAD. While utilizing LoRA [13] for paired data synthesis to\nmitigate sample scarcity, we further draw on recent findings demonstrating that\ndiffusion estimators inherently act as non-linear low-pass filters [28,38]. Leveraging this property, we establish an auxiliary estimated stream containing purely\nlow-frequency information to anchor macroscopic structures, which enhances the\nsensitive real stream containing coupled high- and low-frequency information to\ncapture micro-defects. This explicitly bridges generative priors with dual-stream\nalignment, resolving the overfitting bottlenecks of few-shot generation.\n\n3\n\nMethodology\n\n3.1\n\nOverall Pipeline Architecture\n\nFigure 2 shows our CMDS-AD framework, designed to bridge the 2D-3D semantic gap under few-shot constraints. To overcome data scarcity, a Diffusion-Driven\nMultimodal Few-Shot Augmentation module (Sec. 3.2) first synthesizes paired\nRGB-normal training data. The pipeline then employs a bidirectional mapping\nmechanism (2D ↔ 3D) comprising parallel real and estimated streams. Given\nthe input modalities, a frozen backbone (e.g., ViT) extracts multi-scale features, which a Coordinate-Aware Hierarchical Feature Mapper (Sec. 3.4) adaptively aggregates via spatial gating. During training, a Decoupled Multi-Scale\nMask-Aware Optimization strategy (Sec. 3.5) ensures precise alignment across\nthe heterogeneous domains. During inference, the mappers (M2D→3D , M3D→2D )\ngenerate directional anomaly distance maps for both streams. Finally, a CrossModal Multiplicative Anomaly Scoring module (Sec. 3.6) synergistically fuses\nthese directional predictions into a high-precision dense anomaly map Ψ , thereby\neffectively filtering out modality-specific artifacts to reduce false positives. The\ncomplete procedure is summarized in Algorithm 1.\n3.2\n\nDiffusion-Driven Multimodal Few-Shot Augmentation\n\nIn Few-Shot Anomaly Detection (FSAD), extreme data scarcity severely bottlenecks model generalization. To overcome this, we propose a multimodal data\naugmentation framework driven by diffusion priors. For the 2D (RGB) modality, we adopt a Low-Rank Adaptation (LoRA)-guided image-to-image generation\nparadigm. Standard diffusion models learn data distributions by optimizing the\ndenoising objective:\n  \\label {eq:dm_loss} \\mathcal {L}_{\\text {DM}} = \\mathbb {E}_{x_0, \\epsilon \\sim \\mathcal {N}(0,\\mathbf {I}), t} \\left [ \\|\\epsilon - \\epsilon _\\theta (x_t, t)\\|_2^2 \\right ] \n\n(1)\n\nwhere x0 is the clean image, ϵ represents the injected Gaussian noise, t is the\ntimestep, and ϵθ denotes the denoising network parameterized by θ. Directly finetuning θ on limited samples inevitably triggers catastrophic forgetting and severe\noverfitting. Thus, we freeze the pre-trained projection matrices W0 ∈ Rd×k in the\n\n\f6\n\nJ. Cai et al.\n⋯\n\n🔥\n\nDiffusion-Driven Multimodal Few-Shot Augmentation\n\nReal Stream\nEstimated Stream\n🔥 Training 🧊 Freezing\n\n🧊\n\nLoRA\n\n🧊\nPretrained 2D\n\nElement-Wise\n\n⊙ Multiplication\n\nDiffusion\nModel\n\nReal Data\n\nElement-Wise\n\nDiffusion-based\nNormal Estimator\n\nGenerated Data\n\n⊖ Subtraction\n\nCross-Modal Dual-Stream Anomaly Detection (CMDS-AD)\n\n1D X-Pooling\n\nReprojection\n\nAdaptive\nFusion\n\nSpatial\nSelector\n\nConcat\n\nCoordinate\nAttention\n\nActivation\n\n1x1 Conv\n\nGroupNorm\n\n⊕\n⊖\n⊙\n\nReprojection\n\nAdaptive\nFusion\n\nSpatial\nSelector\n\nCoordinate\nAttention\n\nConcat\n\nActivation\n\n1x1 Conv\n\nGroupNorm\n\nHierarchicalGatedMapper\n\nEstimated SN\n\nSpatial\nSelector\n\n⊖\n\nShared\nWeight\n\nReal SN\n\n⊕ Summation\n\nCoordinate\nAttention\n\nAnomaly Map\n\nHierarchicalGatedMapper\n\nRGB\n\nElement-Wise\n\nReal Surface Normal Estimated Surface Normal\n\nNormal Calculator\n\nAnomaly Map\n\n⊖\n\n1D Y-Pooling\n\nFine-tuned\nDiffusion Model\n\nConcat\n\n3x3 Conv\nReLU\n1x1 Conv\nSoftmax\n\n1x1 Conv\n\n⊕\n\nSplit\n\n⊖\n\n⊙ Sigmoid\nAnomaly Map\n\nAttention Map\n\nFig. 2: Proposed Cross-Modal Dual-Stream Anomaly Detection (CMDS-AD) framework. (Top) Diffusion-driven augmentation synthesizes paired RGB-normal training\ndata. (Bottom Left) Dual-stream pipeline processing Real and Estimated streams,\nwhere the purely low-frequency estimated stream acts as an auxiliary guide to enhance\nthe coupled real stream. (Bottom Right) Coordinate-Aware Hierarchical Feature\nMapper for adaptive multi-scale feature fusion.\n\nattention layers and inject trainable low-rank matrices B ∈ Rd×r and A ∈ Rr×k\n(with r ≪ min(d, k)). The forward pass update is formulated as:\n  \\label {eq:lora_weight} W = W_0 + \\Delta W = W_0 + BA \n\n(2)\n\nwhere W is the updated weight matrix and ∆W is the weight increment. This\nparameter-efficient formulation enables the model to extract domain-specific textural features from scarce normal samples, synthesizing structurally consistent\nyet distributionally diverse RGB representations. For the 3D modality, surface normal maps are more sensitive to subtle geometric discontinuities (e.g.\nscratches, dents) than depth maps. Consequently, we introduce a diffusion-based\nnormal estimator. By processing both the real and LoRA-generated RGB images\nthrough this estimator, we obtain their estimated normal maps, completing the\nreal-estimated cross-modal augmented dataset.\n3.3\n\nDual-Stream Decoupled Anomaly Detection\n\nDuring the pipeline, the network jointly processes the real surface normals and\nthe estimated normals generated by the diffusion estimator Φdiff . Constrained\nby generative priors and latent space compression, Φdiff acts essentially as a\nrobust non-linear low-pass filter, tending to output overly smooth results that\ninadvertently discard high-frequency details.\nTo formalize this theoretically, in the frequency domain, the real surface normal N encompasses a low-frequency structural component Nlow (global shape)\n\n\fCMDS-AD for Few-Shot Anomaly Detection\n\n7\n\nand a high-frequency detail component Nhigh (local micro-textures). For an input image I, the estimator yields a smoothed estimation N̂ = Φdiff (I) ≈ Nlow .\nConsequently, mapping these inputs through the backbone Φ yields two complementary feature spaces rather than a single entangled representation:\n  \\label {eq:frequency_decoupling} \\mathcal {F}_{\\text {est}} \\approx \\Phi (N_{\\text {low}}), \\quad \\mathcal {F}_{\\text {real}} \\approx \\Phi (N_{\\text {low}} + N_{\\text {high}}) \n\n(3)\n\nLeveraging this inherent filtering property, we design a synergistic dualstream architecture. To avoid amplifying cross-modal noise via explicit feature residuals, we process both streams independently. The estimated stream\n(Fest ) acts as a purely low-frequency auxiliary anchor for macroscopic structures. Guided by this reference, the uncompressed real stream (Freal )—which\ncouples high- and low-frequency components—precisely captures localized surface defects. Synergizing the independent anomaly measurements from these\ndistinct sub-spaces ensures comprehensive defect coverage.\n3.4\n\nCoordinate-Aware Hierarchical Feature Mapper\n\nTo align multimodal features across varying receptive fields, we design a feature mapper comprising hierarchical branches. The backbone (e.g. ViT) extracts multi-scale representations from the 4-th, 7-th, and 11-th layers, denoted\nas xl ∈ RC×H×W for l ∈ {4, 7, 11} (where C = 768). These represent local\nedge textures, part-level patterns, and global semantics, respectively. Prior to\nspatial gating, each extracted feature xl first passes through a local adaptation\nblock—comprising a 1×1 convolution, Group Normalization (GN), and a GELU\nactivation—to harmonize the heterogeneous semantic spaces across different network depths. The adapted features are subsequently concatenated along the\nchannel dimension to form a unified multi-scale input feature Fcat ∈ R3C×H×W :\n  \\label {eq:feature_concat} \\hat {x}_l = \\text {GELU}\\big (\\text {GN}(\\text {Conv}_{1 \\times 1}(x_l))\\big ), \\quad \\mathcal {F}_{\\text {cat}} = \\text {Concat}(\\hat {x}_4, \\hat {x}_7, \\hat {x}_{11}) \n\n(4)\n\nSince anomaly detection requires spatially sensitive dense predictions, traditional Channel Attention is sub-optimal as it collapses spatial dimensions\nvia Global Average Pooling. Instead, we introduce Coordinate Attention (CA),\nwhich factorizes 2D spatial pooling into two 1D directional encoding operations.\nFor the c-th channel of Fcat at coordinates (h, w), the aggregated features along\nheight and width are computed as:\n  \\label {eq:coordinate_attention} z_c^h(h) = \\frac {1}{W} \\sum _{i=0}^{W-1} \\mathcal {F}_{\\text {cat}}^{(c)}(h,i), \\quad z_c^w(w) = \\frac {1}{H} \\sum _{j=0}^{H-1} \\mathcal {F}_{\\text {cat}}^{(c)}(j,w) \n\n(5)\n\nThese direction-aware vectors are concatenated, transformed, and split to\ngenerate attention weights, achieving feature refinement without sacrificing positional precision. The refined concatenated feature F̃ is then fed into a lightweight\nSpatial Selector. This module generates a mutually exclusive 3D weight map\nW ∈ R3×H×W (where W = [ω4 , ω7 , ω11 ]) via a pixel-wise Softmax operation:\n  \\label {eq:spatial_selector} [\\omega _4, \\omega _7, \\omega _{11}] = \\text {Softmax}\\big (\\text {Conv}_{1 \\times 1}(\\text {ReLU}(\\text {Conv}_{3 \\times 3}(\\tilde {\\mathcal {F}})))\\big ) \n\n(6)\n\n\f8\n\nJ. Cai et al.\n\nAlgorithm 1: CMDS-AD: Cross-Modal Dual-Stream Anomaly Detection\nInput: Support set Dtrain = {Irgb , N, M }, Pre-trained backbone Φ, Untrained\nMappers M2D→3D , M3D→2D\nOutput: Optimized Mappers M2D→3D , M3D→2D , Final Anomaly Map Ψ\nStage 1: Multimodal Data Augmentation\n{A, B} ← arg minA,B LDM ;\n// LoRA FT via Eq. 1 and 2\nˆ\nˆ\n3 Irgb ∼ DMW0 +BA (Irgb ),\nN̂ ← Φdiff (Irgb ) ; // Generate cross-modal pairs\n4 Daug ← Dtrain ∪ {(Iˆrgb , N̂ )};\n\n1\n2\n\nStage 2: Hierarchical Feature Mapper Optimization\nfor batch B ∼ Daug do\nS\nS\n7\nF2D\n, F3D\n← Φ(B), S ∈ {R, E} ;\n// Extract l ∈ {4, 7, 11} layers\n// Coordinate-Aware Mapping (Sec. 3.4)\nS\nS\n8\nP3D\n← M2D→3D (F2D\n), S ∈ {R, E} ;\n// 2D → 3D direction\nS\nS\n9\nP2D ← M3D→2D (F3D ), S ∈ {R, E} ;\n// 3D → 2D direction\n// Decoupled Mask-Aware Optimization (Sec. 3.5)\n10\nfor layer l ∈ {4, 7, 11} do\n\u0001\nR\nR\n11\nLR\n// Masked avg for Real\nLl ← Eq. 8 Lalign (PLl , FLl ), M ;\n\u0001\nE\nE\n12\nLE\n←\nEq.\n8\nL\n(P\n,\nF\n)\n;\n// Global avg for Est\nalign\nLl\nLl\nLl\n13\nend\nS\nS\nS\n14\nLS\nS ∈ {R, E} ;\n// Eq. 9\ntotal ← αLL4 + βLL7 + γLL11 ,\nE\nR\n// Overall objective\n15\nL ← Ltotal + Ltotal ;\n5\n6\n\n∇\n\n{M2D→3D , M3D→2D } ←− L ;\n17 end\n16\n\n// Backpropagation\n\nStage 3: Cross-Modal Multiplicative Anomaly Scoring\nS\nS\nF2D\n, F3D\n← Φ(Xtest ), S ∈ {R, E};\nS\nS\nS\nS\n20 P3D ← M2D→3D (F2D ),\nP2D\n← M3D→2D (F3D\n);\nS\nS\nS\nS\nS\nS\n21 Ψ2D ← Lalign (P2D , F2D ),\nΨ3D ← Lalign (P3D , F3D\n);\nR\nE\nR\nE\n22 Ψ2D ← Ψ2D + λ1 Ψ2D ,\nΨ3D ← Ψ3D + λ2 Ψ3D ;\n23 Ψ ← Ψ2D ⊙ Ψ3D ;\n24 return Ψ\n18\n19\n\n// Eq. 7\n// Eq. 10\n// Eq. 11\n\nwhere ω\nPl indicates the dynamic aggregation weight of the l-th layer at a specific\npixel ( l ωl = 1). The preprocessed single-layer features\u0010fl are then spatially\n\u0011\nP\nfused and projected to yield the predicted feature P = Π\nl∈{4,7,11} ωl ⊙ fl .\n3.5\n\nDecoupled Multi-Scale Mask-Aware Optimization\n\nTo compel the mapping network to finely align local microscopic textures while\nrobustly matching global macroscopic structures, we propose a Decoupled MultiScale Loss governed by a divide-and-conquer strategy.\nFeature Decoupling and Alignment. Prior to loss computation, the unified predicted feature P is decoupled back into three distinct representation\n\n\fCMDS-AD for Few-Shot Anomaly Detection\n\n9\n\nsub-spaces along the multi-scale spectrum (ranging from high-frequency local\ntextures to low-frequency global structures, each with 768 dimensions). Given\nthe massive absolute numerical discrepancies between RGB and 3D normal domains, we discard magnitude-sensitive distance metrics and rely exclusively on\nCosine Distance as the core alignment objective:\n  \\label {eq:cosine_loss} \\mathcal {L}_{\\text {align}}(P, T) = 1 - \\frac {P \\cdot T}{\\|P\\|_2 \\|T\\|_2} \n\n(7)\n\nwhere P, T ∈ R768 denote the predicted and target feature vectors at a specific\npixel. This compels the network to align strictly based on directional consistency,\ncircumventing gradient collapse caused by cross-modal amplitude variations.\nMask-Aware Regional Focusing. To prevent massive irrelevant backgrounds\n(e.g. conveyors) from dominating the loss, we introduce a flattened binary spatial mask M ∈ {0, 1}N (where N = H × W ). For the real stream, adaptive\nfocusing is achieved by computing the masked average (LR\nlayer ). Conversely, for\nthe estimated stream where precise masks are unavailable, we default to global\nspatial averaging (LE\nlayer ):\n\n  \\label {eq:mask_loss} \\mathcal {L}_{\\text {layer}}^{R} = \\frac {\\sum _{i=1}^{N} \\left (\\mathcal {L}_{\\text {align}}^{(i)} \\cdot M^{(i)}\\right )}{\\sum _{i=1}^{N} M^{(i)} + \\epsilon }, \\quad \\mathcal {L}_{\\text {layer}}^{E} = \\frac {1}{N} \\sum _{i=1}^{N} \\mathcal {L}_{\\text {align}}^{(i)} \n\n(8)\n\nwhere ϵ = 10−8 , superscript (i) denotes the i-th pixel index, and the binary\nmask M is deterministically computed from the raw 3D point cloud to precisely\nisolate the foreground object.\nHierarchical Weighted Fusion. Deep features exhibit high spatial translation\ninvariance; enforcing strict pixel-wise alignment at semantic levels easily triggers\noverfitting. Thus, for both the real (R) and estimated (E) streams, we introduce\nan asymmetric descending penalty strategy based on their respective layer-wise\nlosses:\n  \\label {eq:total_loss} \\mathcal {L}_{\\text {total}}^{S} = \\alpha \\mathcal {L}_{\\text {L4}}^{S} + \\beta \\mathcal {L}_{\\text {L7}}^{S} + \\gamma \\mathcal {L}_{\\text {L11}}^{S}, \\quad S \\in \\{R, E\\} \n(9)\nwhere weights satisfy α &gt; β &gt; γ. This strategically anchors macroscopic structural comprehension (via a smaller γ for deep layers) while intensely directing\nfocal attention towards critical localized micro-defects (via a larger α for shallow\nlayers). The overall optimization objective of our framework is the sum of both\nE\nstreams: L = LR\ntotal + Ltotal .\n3.6\n\nCross-Modal Multiplicative Anomaly Scoring\n\nDuring inference, the framework yields four distinct anomaly distance maps: 2D\nR\nE\nR\nE\nreal Ψ2D\n, 2D estimated Ψ2D\n, 3D real Ψ3D\n, and 3D estimated Ψ3D\n. To obtain comprehensive modality-specific responses, we first perform a weighted summation\nof the real and estimated streams within both the 2D and 3D modalities:\n  \\label {eq:modality_anomaly} \\Psi _{\\text {2D}} = \\Psi _{\\text {2D}}^{R} + \\lambda _1 \\Psi _{\\text {2D}}^{E}, \\quad \\Psi _{\\text {3D}} = \\Psi _{\\text {3D}}^{R} + \\lambda _2 \\Psi _{\\text {3D}}^{E} \n\n(10)\n\n\f10\n\nJ. Cai et al.\n\nwhere λ1 and λ2 are balancing coefficients. Subsequently, the overall anomaly\nscore map Ψ is computed via synergistic cross-modal fusion:\n  \\label {eq:anomaly_fusion} \\Psi = \\Psi _{\\text {2D}} \\odot \\Psi _{\\text {3D}} \n\n(11)\n\nwhere ⊙ denotes the Hadamard product. This multiplicative fusion acts as a\nstringent spatial filter: a region is flagged as defective only if both modalities\nexhibit high anomalous responses concurrently, thereby significantly suppressing\nisolated modality-specific noise and minimizing false positives.\n\n4\n\nExperiments\n\n4.1\n\nImplementation Setup\n\nDatasets and Protocol. We evaluate our framework on two standard anomaly\ndetection datasets: MVTec 3D-AD [2] and EyeCandies [3]. Following the standard few-shot protocol, models are trained exclusively on k ∈ {1, 2, 4} anomalyfree samples per category. To ensure a standardized and fully reproducible evaluation, we deterministically select the first k normal images from each class to\nconstruct the training subset.\nBaselines. We compare our approach against eight representative state-of-theart methods: (1) Patchcore+FPFH [12], concatenating deep 2D and handcrafted 3D features; (2) CIF [21], a cross-modal information fusion strategy;\n(3) AST [27], an asymmetric teacher-student architecture; (4) EasyNet [4],\nan efficient network tailored for industrial inspection; (5) ShapeGuided [6],\nexplicitly leveraging 3D shape priors; (6) M3DM [35], a memory-bank-based\nmulti-modal fusion model; (7) CFM [7], a memory-efficient 2D-3D feature alignment approach; and (8) MAFR [1], a multi-modal feature representation and\nalignment network.\nEvaluation Metrics. Following standard protocols, we employ Image-level AUROC (I-AUROC) for anomaly classification, alongside Pixel-level AUROC (PAUROC) and Area Under Per-Region Overlap (AUPRO) for fine-grained localization. In our main baseline comparisons, we report I-AUROC and AUPRO\nintegrated up to a 30% False Positive Rate (FPR). For a comprehensive analysis\nin the ablation studies, we additionally report P-AUROC and AUPRO evaluated\nat stricter FPR thresholds of 1%, 5%, and 10%. Higher scores across all metrics\ndenote superior performance.\nImplementation Details. Experiments utilize an RTX 5090 (32GB) GPU. For\naugmentation, Stable Diffusion v2.1 is LoRA-finetuned (rank 16, 1,000 steps),\nand Marigold [16] serves as the normal estimator Φdiff . Following [7], a frozen\nDINO ViT-B/8 extracts 2D and 3D representations [19] from 224 × 224 inputs.\nFeatures from layers 4, 7, and 11 are bicubically up-sampled and optimized via\nAdamW for 3,000 steps (batch size 2/stream, Cosine Annealing LR 10−4 to\n10−6 , weight decay 10−4 ). Additive Gaussian noise (σ = 0.01) is injected into\nRGB inputs to mitigate overfitting. Multi-scale loss weights (Eq. 9) are set to\nα = 1.2, β = 1.0, γ = 0.8. Inference balancing coefficients (λ1 , λ2 ) are 0.1.\n\n\fCMDS-AD for Few-Shot Anomaly Detection\n\n11\n\nTable 1: Few-shot performance comparison on the MVTec 3D-AD dataset. The metrics\nreported are I-AUROC / AUPRO@30%. The best results are highlighted in bold, and\nthe second-best are underlined.\nSetting Type Method\n\n1-shot\n\nTF\n\nAST [27]\nEasyNet [4]\nShapeGuided [6]\nTB M3DM [35]\nCFM [7]\nMAFR [1]\nOurs\n\n2-shot\n\nTF\n\nCarrot\n\n53.4/76.8\n68.7/79.5\n\n54.0/96.7 55.9/92.8 54.7/84.6 63.3/71.9 49.6/95.9 60.7/96.1 88.8/90.8 56.6/84.1 59.9/88.3\n72.2/95.6 81.2/86.2 62.9/82.0 72.8/70.3 83.9/93.3 60.4/94.2 83.5/88.1 55.8/86.4 72.0/86.1\n\nCookie\n\nDowel\n\nFoam\n\nPeach\n\nPotato\n\nRope\n\nTire\n\nMean\n\n47.7/76.5\n62.9/79.5\n\n55.4/96.7 64.5/93.4 58.3/85.0 61.1/67.4 55.0/96.2 56.6/96.6 88.2/91.0 64.4/88.3 61.4/88.6\n74.0/95.8 72.2/87.1 64.6/82.1 79.5/75.3 77.6/93.7 66.9/94.9 86.1/88.7 62.7/87.7 73.2/87.2\n\n71.9/75.9 43.4/74.0 54.5/87.8 50.8/62.2 53.7/79.5 46.1/43.6 51.6/83.7 50.4/85.6 75.8/76.5 40.2/72.8 53.8/74.2\n47.6/77.8 76.1/62.9 52.6/92.6 60.2/59.1 31.7/58.8 52.3/57.2 71.9/21.1 76.1/15.2 61.2/43.1 51.2/4.7 58.1/49.3\n47.9/96.6 46.0/73.2 60.5/96.5 95.9/95.5 55.3/86.5 50.2/71.4 69.7/95.3 41.3/96.3 93.6/89.3 79.3/91.3 64.0/89.2\n91.8/95.5 57.0/82.9 79.8/97.2 94.5/88.0 61.4/87.0 79.5/79.6 79.2/95.1 75.1/94.2 92.8/95.5 54.1/91.0 76.5/90.6\n88.9/95.9 53.3/76.2 69.6/97.7 94.5/92.5 70.1/93.0 77.6/92.6 63.9/94.2 63.8/97.3 91.5/96.3 57.2/90.7 73.0/92.4\n91.8/95.7 49.8/79.7 69.8/97.1 96.9/92.0 70.5/89.8 71.4/92.2 81.2/97.0 72.8/97.1 95.3/96.9 66.9/94.2 76.6/93.2\n96.4/97.2 62.3/89.1 93.0/98.2 93.5/93.3 58.8/89.3 87.7/92.6 86.3/97.8 83.5/98.1 97.6/97.7 70.7/94.8 83.0/94.8\n\nPatchcore+FPFH [12] 52.3/95.7\nCIF [21]\n91.8/92.9\n\nAST [27]\nEasyNet [4]\nShapeGuided [6]\nTB M3DM [35]\nCFM [7]\nMAFR [1]\nOurs\n\nCable Gland\n\n70.7/75.9 42.2/73.3 54.8/88.0 49.0/60.2 53.8/79.4 46.4/44.0 51.9/84.0 49.7/85.9 72.0/75.8 41.9/74.0 53.2/74.0\n61.4/79.6 21.2/75.1 52.0/91.0 75.9/69.8 56.5/85.8 62.8/49.4 65.7/69.0 63.0/88.1 94.6/71.8 47.7/75.4 60.1/75.5\n65.9/95.9 44.4/71.6 62.3/93.5 93.8/94.1 59.3/86.4 57.6/63.8 67.6/94.0 42.8/96.3 93.3/88.8 62.9/90.1 65.0/87.4\n87.8/95.3 64.1/81.5 78.0/97.2 92.7/90.3 64.2/81.6 65.3/82.0 75.5/94.0 79.8/94.8 85.8/95.2 45.4/89.8 73.9/90.2\n88.1/95.4 54.0/74.0 62.5/96.5 96.4/92.4 60.2/91.4 68.7/89.3 61.9/93.8 56.0/95.6 90.9/95.7 58.8/88.9 69.8/91.4\n86.7/95.0 48.9/78.3 70.1/96.9 96.7/92.2 56.9/88.0 59.9/89.7 78.4/96.6 67.3/96.8 95.3/96.8 64.0/91.8 72.4/92.2\n97.0/97.0 63.8/88.0 92.0/98.1 92.3/93.2 59.6/88.5 69.9/89.4 85.6/97.9 77.4/98.0 97.1/97.6 61.4/93.8 79.6/94.2\n\nPatchcore+FPFH [12] 63.2/94.6\nCIF [21]\n85.3/87.1\n\nAST [27]\nEasyNet [4]\nShapeGuided [6]\nTB M3DM [35]\nCFM [7]\nMAFR [1]\nOurs\nTF\n\n4-shot\n\nBagel\n\nPatchcore+FPFH [12] 62.2/92.8\nCIF [21]\n78.9/85.2\n\n54.0/79.7\n70.0/83.3\n\n59.2/97.2 62.9/95.1 59.4/87.5 58.2/75.3 61.6/96.5 70.5/97.3 91.8/91.2 73.5/88.0 64.3/90.4\n77.5/96.9 83.4/86.4 70.2/84.7 79.4/84.1 85.6/95.2 75.0/95.5 89.8/89.3 53.4/88.2 77.6/89.6\n\n70.1/74.7 42.9/73.7 55.7/87.7 51.8/61.3 54.0/79.6 46.6/41.3 52.0/84.3 49.8/85.9 72.6/75.9 39.8/74.2 53.5/73.9\n67.5/70.7 36.3/13.8 54.7/86.9 69.1/72.0 72.4/39.3 50.2/53.6 74.3/86.2 63.1/90.2 44.9/15.5 53.7/66.3 58.6/56.5\n65.4/97.3 48.8/78.9 73.1/97.3 96.5/95.4 69.8/90.4 59.1/83.6 68.1/95.7 49.9/97.5 92.2/89.6 75.1/92.1 69.8/91.8\n98.6/96.1 68.5/87.2 83.7/97.3 93.8/90.5 59.6/86.5 87.8/86.6 85.3/96.4 70.5/94.6 89.3/95.5 56.1/93.1 79.3/92.4\n95.6/96.7 62.2/82.9 86.1/98.0 96.7/93.3 84.3/94.2 74.6/93.2 72.0/96.2 75.8/97.7 95.7/96.8 65.2/93.3 80.8/93.2\n94.7/96.7 53.4/84.5 92.5/97.8 96.9/91.8 81.2/92.2 82.2/95.2 85.3/97.5 77.6/97.3 97.3/96.9 79.4/96.1 84.1/94.1\n97.4/97.3 72.2/92.2 94.9/98.2 95.8/93.7 74.6/94.1 85.9/93.0 93.6/98.2 91.2/98.2 96.7/97.6 68.6/95.9 87.1/95.8\n\nTable 2: Few-shot performance comparison on the EyeCandies dataset. The metrics\nreported are I-AUROC / AUPRO@30%. The best results are highlighted in bold, and\nthe second-best are underlined.\nSetting Type Method\n1-shot\n\nTF CIF [21]\n\nTB\n\n2-shot\n\nCho. P.\n\nConf.\n\nGum. B.\n\nHaz. T.\n\nLic. S.\n\nLollip.\n\nMarsh.\n\nPep. C.\n\nMean\n\n41.8/87.0 79.0/76.9 78.6/57.9 94.1/85.5 71.3/61.0 70.9/52.4 55.7/59.9 66.4/86.8 84.5/71.8 93.6/74.3 73.6/71.3\n\nM3DM [35] 38.9/81.1 67.5/84.4 81.1/68.6 92.3/97.3 61.7/76.1 53.6/57.6 59.4/72.8 64.0/85.6 76.5/89.3 86.9/90.8 68.2/80.4\nCFM [7]\n49.8/91.3 84.3/85.2 74.1/74.3 87.7/92.3 77.1/79.6 64.2/67.7 59.8/68.5 54.0/83.9 86.6/91.0 63.8/83.4 70.1/81.7\nTB\nMAFR [1] 52.0/92.0 70.2/84.5 77.1/69.0 87.5/95.2 64.1/80.8 75.7/59.1 53.3/65.0 62.3/84.0 91.2/90.9 75.4/86.8 70.9/80.7\nOurs\n42.9/93.3 80.5/90.9 90.2/81.0 88.0/92.0 84.8/84.8 75.0/65.8 81.1/80.9 72.2/88.5 98.6/93.5 88.6/87.7 80.2/85.8\nTF CIF [21]\n\n4-shot\n\nCho. C.\n\nM3DM [35] 36.2/86.8 66.9/82.5 73.1/70.6 84.8/94.2 71.3/74.9 50.2/54.8 57.4/71.0 59.9/84.2 60.3/89.8 81.0/90.0 64.1/79.9\nCFM [7]\n49.6/90.1 55.8/83.8 61.4/70.1 87.0/90.7 65.4/79.1 73.4/56.4 55.5/61.7 52.2/85.5 67.5/79.0 64.2/78.9 63.2/77.5\nMAFR [1] 50.1/91.4 64.8/82.8 76.2/60.9 86.9/94.6 38.9/78.3 70.9/53.9 48.6/63.1 58.3/83.9 92.5/88.4 59.4/80.3 64.7/77.8\nOurs\n42.1/92.6 57.9/89.3 88.8/79.9 90.6/90.5 84.1/84.3 74.7/66.5 81.0/82.5 69.9/87.1 94.9/92.7 87.8/89.4 77.2/85.5\n\nTF CIF [21]\n\n4.2\n\nCan. C.\n\n38.1/88.4 81.8/71.4 70.2/56.3 84.0/86.9 59.6/63.9 59.7/50.6 58.1/55.7 68.6/85.8 89.1/65.7 85.4/67.1 69.5/69.2\n\n48.2/87.4 81.8/78.1 74.6/58.4 97.9/88.9 61.9/68.0 69.8/58.1 73.3/63.9 61.8/88.1 94.2/86.0 87.4/78.8 75.1/75.6\n\nM3DM [35] 42.4/82.4 74.9/84.9 78.7/72.1 91.4/96.8 70.2/80.2 53.4/61.7 80.2/81.6 67.8/88.6 86.6/94.6 90.6/92.1 73.6/83.5\nCFM [7]\n47.5/90.9 85.3/85.5 76.5/72.6 90.6/94.4 76.9/80.0 62.6/68.5 65.9/73.5 70.6/85.7 92.2/93.2 78.1/87.1 74.6/83.1\nTB\nMAFR [1] 49.9/92.6 74.7/87.3 81.1/70.8 87.5/96.0 79.3/84.8 77.6/62.4 61.3/73.3 68.6/84.9 96.0/93.1 80.5/90.2 75.7/83.5\nOurs\n45.0/94.9 91.7/91.3 95.0/81.7 88.6/92.6 80.6/86.9 85.4/71.6 85.6/85.8 67.7/89.0 98.1/94.3 89.1/89.1 82.7/87.7\n\nQuantitative Comparison\n\nPerformance on MVTec 3D-AD. Table 1 shows our framework consistently\noutperforms all baselines across few-shot settings. In the 1-shot scenario, it\nachieves 79.6% I-AUROC and 94.2% AUPRO@30%, substantially exceeding the\nsecond-best M3DM. Under the 4-shot setting, performance scales to 87.1% IAUROC and 95.8% AUPRO@30%, significantly surpassing MAFR. Notably, it\ndemonstrates remarkable robustness on geometrically complex categories (e.g.,\nBagel, Rope), securing near-perfect localization. These consistent gains high-\n\n\f12\n\nJ. Cai et al.\nRGB\n\nFoam\n\nShape\nAnomaly\n\nPotato\n\nRGB\n\nCombined\nAnomaly\n\nBagel\n\nGT\n\nTire\n\nEst SN\n\nCookie\n\nReal SN\n\nDowel\n\nColor\nAnomaly\n\nReal SN\n\nEst SN\n\nGT\n\nFig. 3: Qualitative evaluation of the complementarity between 2D and 3D modalities. We visualize the predicted anomaly maps across three distinct defect categories:\n2D color-only anomalies, 3D shape-only anomalies, and combined anomalies. Synergistically fusing these modality-specific predictions effectively captures all defect types\nwhile suppressing background noise.\n\nlight the superior cross-modal alignment and generalization enabled by our dualstream representations.\nPerformance on EyeCandies. As shown in Table 2, our approach establishes\na new state-of-the-art across all shot settings, validating its strong generalizability. In the 1-shot setting, we achieve 77.2% I-AUROC and 85.5% AUPRO@30%,\neclipsing the prior best CIF (69.5% and 69.2%, respectively). This superiority\npersists at 4-shot (82.7% I-AUROC), demonstrating precise fine-grained anomaly\nlocalization under severe data scarcity. Overall, results on both benchmarks confirm that our diffusion-enhanced dual-stream architecture effectively addresses\nthe fundamental bottlenecks of few-shot 3D anomaly detection.\n4.3\n\nQualitative Analysis\n\nComplementarity of 2D and 3D Modalities. Figure 3 visualizes predicted\nanomaly maps across three distinct defect categories: 2D color-only, 3D shapeonly (e.g. bumps or dents), and combined anomalies. As illustrated, 2D-focused\npredictions effectively isolate subtle textural variations, such as surface discolorations or contaminations, which lack geometric deformation. Conversely, 3Dfocused predictions precisely highlight structural irregularities that are often imperceptible in the RGB domain. By synergistically fusing these modality-specific\noutputs, our combined anomaly map robustly localizes complex defects while\nsubstantially suppressing modality-specific background noise. This underscores\nthe strong complementarity of our learned 2D and 3D representations.\nQualitative Comparison with Baselines. To further validate our approach,\nFig. 4 visualizes anomaly score overlays for selected categories from the MVTec\n3D-AD and EyeCandies datasets against state-of-the-art methods. While existing baselines frequently trigger false alarms in normal regions or struggle to\ncleanly delineate subtle defect boundaries, our method yields sharp, highly localized anomaly masks that align tightly with the ground truth. Specifically, the\ndiffusion-enhanced structural priors enable our model to maintain high confidence precisely on defective pixels without bleeding into surrounding normal areas. This superior qualitative performance corroborates our quantitative gains,\n\n\fCMDS-AD for Few-Shot Anomaly Detection\nMVTec 3D AD\n\nBagel\n\nPotato\n\nCookie\n\nFoam\n\nCho. C.\n\nConf.\n\nEyecandies\nGum. B.\n\nLollip.\n\nPep. C.\n\nGT\n\nOurs\n\nMAFR\n\nCFM\n\nReal SN\n\nRGB\n\nCarrot\n\n13\n\nFig. 4: Qualitative comparison of anomaly score overlays between our proposed method\nand state-of-the-art baselines on the MVTec 3D-AD and EyeCandies datasets. Under\nchallenging few-shot constraints, our approach effectively suppresses false positives in\nnormal regions and delineates subtle defect boundaries with significantly higher precision than existing methods.\nTable 3: Ablation study on the core components of the proposed framework under\nthe 4-shot setting. The checkmark (✓) indicates the inclusion of a specific component.\nWhen the proposed Feature Mapper is omitted, a standard MLP is utilized for fusion.\nThe best results are highlighted in bold, and the second-best are underlined.\nReal Stream Est Stream Feature Mapper I-AUROC P-AUROC AUPRO@30% AUPRO@10% AUPRO@5% AUPRO@1%\n✓\n\n0.872\n\n0.988\n\n0.955\n\n0.877\n\n0.792\n\n0.399\n\n✓\n\n0.873\n\n0.989\n\n0.956\n\n0.880\n\n0.795\n\n0.400\n\n✓\n\n✓\n\n0.813\n\n0.979\n\n0.932\n\n0.831\n\n0.732\n\n0.350\n\n✓\n\n✓\n\n0.871\n\n0.989\n\n0.958\n\n0.886\n\n0.806\n\n0.410\n\n✓\n\n✓\n\n✓\n\nhighlighting the robustness and precision of our framework under challenging\nfew-shot constraints.\n4.4\n\nAblation Study\n\nEffectiveness of Core Components. We decouple the real stream, estimated\n(est) stream, and Feature Mapper under the 4-shot setting (Tab. 3). Relying\non the est stream yields the weakest I-AUROC (0.813), whereas the real stream\nalone achieves 0.873. Crucially, integrating both unlocks fine-grained localization,\nboosting AUPRO@1% from 0.400 (real-only) to 0.410, confirming that generative\n\n\f14\n\nJ. Cai et al.\n\nFig. 5: Parameter sensitivity analysis regarding the weights of the estimated stream\n(λ1 , λ2 ) on MVTec 3D-AD and EyeCandies datasets. The plots illustrate the impact\non I-AUROC and AUPRO@30% metrics as the weights vary from 0.0 to 1.0 with a\nstep size of 0.1. From left to right: (a) I-AUROC on MVTec 3D-AD, (b) I-AUROC on\nEyeCandies, (c) AUPRO@30% on MVTec 3D-AD, and (d) AUPRO@30% on EyeCandies.\n\nTable 4: Ablation study on the fusion strategy of anomaly maps under the 4-shot\nsetting. The best results are highlighted in bold, and the second-best are underlined.\nAnomaly Map\nΨ2D\nΨ3D\nΨ2D + Ψ3D\nmax(Ψ2D , Ψ3D )\nΨ2D ⊙ Ψ3D\n\nI-AUROC P-AUROC AUPRO@30% AUPRO@10% AUPRO@5% AUPRO@1%\n0.807\n0.848\n0.875\n0.861\n0.871\n\n0.985\n0.984\n0.986\n0.985\n0.989\n\n0.948\n0.945\n0.952\n0.950\n0.958\n\n0.864\n0.855\n0.874\n0.869\n0.886\n\n0.773\n0.766\n0.791\n0.785\n0.806\n\n0.372\n0.381\n0.401\n0.394\n0.410\n\npriors supplement subtle defect boundaries. Replacing our Feature Mapper with\na standard MLP degrades all localization metrics, highlighting the necessity of\nour hierarchical gating for aligning heterogeneous 2D-3D semantic spaces.\nInfluence of Estimated Stream Weights. We vary the estimated stream\nbalancing coefficients (λ1 , λ2 ) from 0.0 to 1.0 (Fig. 5). Incorporating a moderate\ngenerative prior strictly enhances performance: increasing weights from 0.0 to\n0.1 improves the 2-shot I-AUROC on EyeCandies (78.46% to 80.20%) and the\n4-shot AUPRO@30% on MVTec 3D-AD (95.63% to 95.83%). Conversely, overreliance on estimated features introduces generative noise (e.g. at a weight of 1.0,\n1-shot I-AUROC on EyeCandies drops to 75.85%). Thus, an empirical optimal\nbalance is robustly achieved at 0.1 across diverse few-shot settings.\nAnomaly Map Fusion Strategy. We evaluate fusion operations for anomaly\nmaps (Ψ2D and Ψ3D ) in Tab. 4. Unimodal detection proves insufficient. Among\nmulti-modal strategies, element-wise multiplication (Ψ2D ⊙Ψ3D ) delivers the best\nlocalization (0.989 P-AUROC, 0.958 AUPRO@30%). Multiplication acts as a\nstrict spatial filter, suppressing isolated modality-specific false positives by retaining high scores only when both modalities indicate anomalies. Although\naddition (Ψ2D + Ψ3D ) yields a marginally higher I-AUROC (0.875), multiplication ensures significantly more robust pixel-level localization under strict falsepositive constraints (e.g. AUPRO@1% and 5%).\n\n\fCMDS-AD for Few-Shot Anomaly Detection\n\n5\n\n15\n\nConclusion\n\nWe propose CMDS-AD, a Cross-Modal Dual-Stream framework for few-shot\nanomaly detection. Repurposing a diffusion estimator as a non-linear low-pass\nfilter establishes a low-frequency auxiliary stream that enhances the real stream,\nisolating micro-defects from macroscopic structures. A Coordinate-Aware Hierarchical Feature Mapper adaptively bridges cross-modal semantic gaps, and a\nmultiplicative scoring mechanism (Ψ2D ⊙Ψ3D ) suppresses modality-specific noise.\nExperiments on MVTec 3D-AD and EyeCandies show CMDS-AD overcomes\ndata scarcity, achieving state-of-the-art 1- to 4-shot anomaly localization.\n\nAcknowledgements\nThis research work was financially supported in part by the Guangdong Major Project of Basic Research under Grant 2023B0303000009, in part by the\nNSFC Youth Fund Project under Grant 62403326, in part by the Shenzhen\nFundamental Research Fund under Grant JCYJ20230808105212023, in part by\nthe Research Team Cultivation Program of ShenZhen University under Grant\n2023JCT004, and in part by the Shenzhen University 2035 Program for Excellent\nResearch under Grant 00000224.\n\nReferences\n1. Ali, U., Zia, A., Rehman, A., Ramzan, U., Hassan, Z., Sattar, T., Wang, J., Xiang,\nW.: 2d-3d feature fusion via cross-modal latent synthesis and attention-guided\nrestoration for industrial anomaly detection. In: 2025 International Conference on\nDigital Image Computing: Techniques and Applications (DICTA). pp. 1–8. IEEE\n(2025)\n2. Bergmann, P., Jin, X., Sattlegger, D., Steger, C.: The mvtec 3d-ad dataset for unsupervised 3d anomaly detection and localization. arXiv preprint arXiv:2112.09045\n(2021)\n3. Bonfiglioli, L., Toschi, M., Silvestri, D., Fioraio, N., De Gregorio, D.: The eyecandies dataset for unsupervised multimodal anomaly detection and localization. In:\nProceedings of the Asian Conference on Computer Vision. pp. 3586–3602 (2022)\n4. Chen, R., Xie, G., Liu, J., Wang, J., Luo, Z., Wang, J., Zheng, F.: Easynet: An\neasy network for 3d industrial anomaly detection. In: Proceedings of the 31st ACM\nInternational Conference on Multimedia. pp. 7038–7046 (2023)\n5. Choi, J., Lee, J., Shin, C., Kim, S., Kim, H., Yoon, S.: Perception prioritized training of diffusion models. In: Proceedings of the IEEE/CVF conference on computer\nvision and pattern recognition. pp. 11472–11481 (2022)\n6. Chu, Y.M., Chieh, L., Hsieh, T.I., Chen, H.T., Liu, T.L.: Shape-guided dualmemory learning for 3d anomaly detection (2023)\n7. Costanzino, A., Ramirez, P.Z., Lisanti, G., Di Stefano, L.: Multimodal industrial anomaly detection by crossmodal feature mapping. In: Proceedings of the\nIEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 17234–\n17243 (2024)\n\n\f16\n\nJ. Cai et al.\n\n8. Deng, H., Li, X.: Anomaly detection via reverse distillation from one-class embedding. In: Proceedings of the IEEE/CVF conference on computer vision and pattern\nrecognition. pp. 9737–9746 (2022)\n9. Fang, Z., Wang, X., Li, H., Liu, J., Hu, Q., Xiao, J.: Fastrecon: Few-shot industrial anomaly detection via fast feature reconstruction. In: Proceedings of the\nIEEE/CVF International Conference on Computer Vision. pp. 17481–17490 (2023)\n10. Gu, Z., Zhang, J., Liu, L., Chen, X., Peng, J., Gan, Z., Jiang, G., Shu, A., Wang,\nY., Ma, L.: Rethinking reverse distillation for multi-modal anomaly detection. In:\nProceedings of the AAAI Conference on Artificial Intelligence. vol. 38, pp. 8445–\n8453 (2024)\n11. He, H., Zhang, J., Chen, H., Chen, X., Li, Z., Chen, X., Wang, Y., Wang, C., Xie,\nL.: A diffusion-based framework for multi-class anomaly detection. In: Proceedings\nof the AAAI conference on artificial intelligence. vol. 38, pp. 8472–8480 (2024)\n12. Horwitz, E., Hoshen, Y.: Back to the feature: classical 3d features are (almost) all\nyou need for 3d anomaly detection. In: Proceedings of the IEEE/CVF Conference\non Computer Vision and Pattern Recognition. pp. 2968–2977 (2023)\n13. Hu, E.J., Shen, Y., Wallis, P., Allen-Zhu, Z., Li, Y., Wang, S., Wang, L., Chen,\nW., et al.: Lora: Low-rank adaptation of large language models. Iclr 1(2), 3 (2022)\n14. Huang, C., Guan, H., Jiang, A., Zhang, Y., Spratling, M., Wang, Y.F.: Registration\nbased few-shot anomaly detection. In: European conference on computer vision.\npp. 303–319. Springer (2022)\n15. Jeong, J., Zou, Y., Kim, T., Zhang, D., Ravichandran, A., Dabeer, O.: Winclip:\nZero-/few-shot anomaly classification and segmentation. In: Proceedings of the\nIEEE/CVF conference on computer vision and pattern recognition. pp. 19606–\n19616 (2023)\n16. Ke, B., Qu, K., Wang, T., Metzger, N., Huang, S., Li, B., Obukhov, A., Schindler,\nK.: Marigold: Affordable adaptation of diffusion-based image generators for image\nanalysis. IEEE Transactions on Pattern Analysis and Machine Intelligence (2025)\n17. Lee, Y., Jang, S., Yoon, H.: Anople: Few-shot anomaly detection via bi-directional\nprompt learning with only normal samples. arXiv e-prints pp. arXiv–2408 (2024)\n18. Li, W., Xu, X., Gu, Y., Zheng, B., Gao, S., Wu, Y.: Towards scalable 3d anomaly\ndetection and localization: A benchmark via 3d anomaly synthesis and a selfsupervised learning network. In: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. pp. 22207–22216 (2024)\n19. Li, Y., Liu, F., Liao, J., Tian, S., Foo, C.S., Yang, X.: Find: Few-shot anomaly\ninspection with normal-only multi-modal data. In: Proceedings of the IEEE/CVF\nInternational Conference on Computer Vision. pp. 23290–23299 (2025)\n20. Liang, H., Xie, G., Hou, C., Wang, B., Gao, C., Wang, J.: Look inside for more:\nInternal spatial modality perception for 3d anomaly detection. In: Proceedings of\nthe AAAI Conference on Artificial Intelligence. vol. 39, pp. 5146–5154 (2025)\n21. Lin, Y., Yan, H., Tong, X., Chang, Y., Wang, H., Zhou, Z., Gao, S., Wang, Y.,\nZhang, W.: Commonality in few: Few-shot multimodal anomaly detection via\nhypergraph-enhanced memory. In: Proceedings of the AAAI Conference on Artificial Intelligence. vol. 40, pp. 7015–7023 (2026)\n22. Liu, C., Chu, Y.M., Hsieh, T.I., Chen, H.T., Liu, T.L.: Learning diffusion models\nfor multi-view anomaly detection. In: European Conference on Computer Vision.\npp. 328–345. Springer (2024)\n23. Long, K., Xie, G., Ma, L., Liu, J., Lu, Z.: Revisiting multimodal fusion for 3d\nanomaly detection from an architectural perspective. In: Proceedings of the AAAI\nConference on Artificial Intelligence. vol. 39, pp. 12273–12281 (2025)\n\n\fCMDS-AD for Few-Shot Anomaly Detection\n\n17\n\n24. Luo, X., Xie, Y., Qu, Y., Fu, Y.: Skipdiff: Adaptive skip diffusion model for highfidelity perceptual image super-resolution. In: Proceedings of the AAAI Conference\non Artificial Intelligence. vol. 38, pp. 4017–4025 (2024)\n25. Lyu, S., Mo, D., keung Wong, W.: Reb: Reducing biases in representation for\nindustrial anomaly detection. Knowledge-Based Systems 290, 111563 (2024)\n26. Ristea, N.C., Madan, N., Ionescu, R.T., Nasrollahi, K., Khan, F.S., Moeslund, T.B., Shah, M.: Self-supervised predictive convolutional attentive block for\nanomaly detection. In: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. pp. 13576–13586 (2022)\n27. Rudolph, M., Wehrbein, T., Rosenhahn, B., Wandt, B.: Asymmetric studentteacher networks for industrial anomaly detection. In: Proceedings of the\nIEEE/CVF winter conference on applications of computer vision. pp. 2592–2602\n(2023)\n28. Si, C., Huang, Z., Jiang, Y., Liu, Z.: Freeu: Free lunch in diffusion u-net. In: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition.\npp. 4733–4743 (2024)\n29. Sui, W., Lichau, D., Lefèvre, J., Phelippeau, H.: Incomplete multimodal industrial anomaly detection via cross-modal distillation. Information Fusion p. 103572\n(2025)\n30. Tang, N., Luo, X., Cheng, Z., Zhou, L., Zhang, D., Qu, Y.: Diffusion once and\ndone: Degradation-aware lora for all-in-one image restoration. In: Proceedings of\nthe AAAI Conference on Artificial Intelligence. vol. 40, pp. 9448–9456 (2026)\n31. Tian, L., Zhao, H., Lu, R., Wang, R., Wu, Y., Wang, L., He, X., Liu, X.: Foct:\nFew-shot industrial anomaly detection with foreground-aware online conditional\ntransport. In: Proceedings of the 32nd ACM International Conference on Multimedia. pp. 6241–6249 (2024)\n32. Tien, T.D., Nguyen, A.T., Tran, N.H., Huy, T.D., Duong, S., Nguyen, C.D.T.,\nTruong, S.Q.: Revisiting reverse distillation for anomaly detection. In: Proceedings\nof the IEEE/CVF conference on computer vision and pattern recognition. pp.\n24511–24520 (2023)\n33. Trabucco, B., Doherty, K., Gurinas, M., Salakhutdinov, R.: Effective data augmentation with diffusion models. In: International Conference on Learning Representations. vol. 2024, pp. 14590–14612 (2024)\n34. Tu, Y., Zhang, B., Liu, L., Li, Y., Zhang, J., Wang, Y., Wang, C., Zhao, C.: Selfsupervised feature adaptation for 3d industrial anomaly detection. In: European\nconference on computer vision. pp. 75–91. Springer (2024)\n35. Wang, Y., Peng, J., Zhang, J., Yi, R., Wang, Y., Wang, C.: Multimodal industrial\nanomaly detection via hybrid fusion. In: Proceedings of the IEEE/CVF conference\non computer vision and pattern recognition. pp. 8032–8041 (2023)\n36. Wyatt, J., Leach, A., Schmon, S.M., Willcocks, C.G.: Anoddpm: Anomaly detection with denoising diffusion probabilistic models using simplex noise. In: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. pp.\n650–656 (2022)\n37. Yan, X., Zhan, H., Zheng, C., Gao, J., Zhang, R., Cui, S., Li, Z.: Let images give\nyou more: Point cloud cross-modal training for shape analysis. Advances in Neural\nInformation Processing Systems 35, 32398–32411 (2022)\n38. Yang, X., Zhou, D., Feng, J., Wang, X.: Diffusion probabilistic model made slim.\nIn: Proceedings of the IEEE/CVF Conference on computer vision and pattern\nrecognition. pp. 22552–22562 (2023)\n\n\f18\n\nJ. Cai et al.\n\n39. Zavrtanik, V., Kristan, M., Skočaj, D.: Cheating depth: Enhancing 3d surface\nanomaly detection via depth simulation. In: Proceedings of the IEEE/CVF Winter\nConference on Applications of Computer Vision. pp. 2164–2172 (2024)\n40. Zhang, H., Wang, Z., Zeng, D., Wu, Z., Jiang, Y.G.: Diffusionad: Norm-guided\none-step denoising diffusion for anomaly detection. IEEE transactions on pattern\nanalysis and machine intelligence (2025)\n41. Zhang, X., Li, S., Li, X., Huang, P., Shan, J., Chen, T.: Destseg: Segmentation\nguided denoising student-teacher for anomaly detection. In: Proceedings of the\nIEEE/CVF conference on computer vision and pattern recognition. pp. 3914–3923\n(2023)\n42. Zhou, Z., Wang, L., Fang, N., Wang, Z., Qiu, L., Zhang, S.: R3d-ad: Reconstruction\nvia diffusion for 3d anomaly detection. In: European conference on computer vision.\npp. 91–107. Springer (2024)\n\n\fCMDS-AD for Few-Shot Anomaly Detection\n\n19\n\nSupplementary Material for CMDS-AD:\nCross-Modal Dual-Stream Decoupling for\nFew-Shot Anomaly Detection\nA\n\nExtended Analysis on Strict FPR Thresholds\n\nA.1\n\nEvaluation under Strict Few-Shot Settings\n\nIn industrial anomaly detection, achieving precise defect localization with a low\nFalse Positive Rate (FPR) is crucial. However, current few-shot multi-modal\nanomaly detection literature predominantly reports the Area Under the PerRegion-Overlap curve up to a 30% FPR (AUPRO@30%). While this metric provides a general sense of localization capability, it may not fully reflect a model’s\nreliability in real-world deployments. Specifically, in high-throughput manufacturing environments, allowing up to a 30% false positive rate would result in an\nunacceptable volume of normal items being flagged for review, incurring significant manual re-inspection costs and disrupting production efficiency.\nTo better align with practical requirements, it is necessary to evaluate models under stricter FPR thresholds. Evaluating at these constrained limits effectively isolates a model’s ability to suppress background noise and handle ambiguous structural variations without triggering false alarms. In Table 5, we present\nthe class-wise performance of our CMDS-AD framework on the MVTec 3D-AD\ndataset across 1-shot, 2-shot, and 4-shot settings, detailing AUPRO at 10%,\n5%, and 1%. By providing these detailed metrics, we aim to offer a more practical reference baseline for future research focused on robust, low-FPR defect\nlocalization.\nA.2\n\nPRO Curve Dynamics: The Superiority of Multiplicative\nFusion\n\nTo further elucidate the mechanisms behind our model’s robustness under strict\nindustrial constraints, we analyze the continuous PRO curve dynamics across\ndifferent fusion strategies in Figure 6. We select four geometrically and texturally\nchallenging classes (Dowel, Rope, Bagel, and Carrot) as representative cases, as\nthey encompass a diverse spectrum of complex local curvatures, highly variable\nsurface reflectivity, and non-deterministic structural boundaries.\nAs observed in the macroscopic view, at looser constraints approaching 30%\nFPR, all tested fusion strategies, including additive (Ψ2D + Ψ3D ), maximum\n(max(Ψ2D , Ψ3D )), and multiplicative (Ψ2D ⊙ Ψ3D ), yield ostensibly comparable\nand near-saturated performance. However, as the FPR threshold is restricted to\nthe extreme low end (the highlighted ≤ 5% zone), a distinct bifurcation occurs.\nModality-specific noise, such as specular highlights in 2D (e.g., on the Bagel\nsurface) or inherent sensor artifacts in 3D (e.g., on the thin structure of Dowel ),\ncauses the single-modality branches to experience a steep, cliff-like drop in precision. Without a mechanism to critically cross-reference conflicting signals, these\n\n\f20\n\nJ. Cai et al.\n\nTable 5: Comprehensive performance of CMDS-AD under strict FPR thresholds on\nMVTec 3D-AD. We report AUPRO evaluated at integration limits of 10%, 5%, and 1%\nto demonstrate robustness in strict industrial scenarios. For each threshold across different shots, the best results are highlighted in bold, and the second-best are underlined.\n1-shot\n\nClass\n\n2-shot\n\n4-shot\n\nAUPRO@10% AUPRO@5% AUPRO@1% AUPRO@10% AUPRO@5% AUPRO@1% AUPRO@10% AUPRO@5% AUPRO@1%\n\nBagel\nCable Gland\nCarrot\nCookie\nDowel\nFoam\nPeach\nPotato\nRope\nTire\n\n0.915\n0.679\n0.942\n0.869\n0.657\n0.734\n0.938\n0.939\n0.929\n0.818\n\n0.842\n0.507\n0.886\n0.801\n0.461\n0.624\n0.876\n0.879\n0.868\n0.692\n\n0.427\n0.179\n0.472\n0.416\n0.150\n0.285\n0.455\n0.451\n0.455\n0.301\n\n0.920\n0.702\n0.944\n0.873\n0.681\n0.802\n0.935\n0.944\n0.931\n0.848\n\n0.851\n0.535\n0.890\n0.806\n0.497\n0.704\n0.871\n0.888\n0.872\n0.733\n\n0.436\n0.192\n0.478\n0.419\n0.166\n0.343\n0.444\n0.475\n0.459\n0.330\n\n0.922\n0.776\n0.947\n0.877\n0.824\n0.815\n0.944\n0.946\n0.929\n0.878\n\n0.855\n0.636\n0.894\n0.810\n0.705\n0.722\n0.889\n0.893\n0.867\n0.784\n\n0.442\n0.268\n0.485\n0.429\n0.312\n0.359\n0.477\n0.482\n0.456\n0.384\n\nMEAN\n\n0.842\n\n0.743\n\n0.359\n\n0.858\n\n0.765\n\n0.374\n\n0.886\n\n0.805\n\n0.409\n\nAUPRO\n\nClass: Dowel\n\nClass: Rope\n\nClass: Bagel\n\nClass: Carrot\n\n1.0\n\n1.0\n\n1.0\n\n1.0\n\n0.8\n\n0.8\n\n0.8\n\n0.8\n\n0.6\n\n0.6\n\n0.6\n\n0.6\n0.46\n\n0.32\n\n0.4\n\n0.46\n\n0.4\n\n0.30\n0.26\n0.24\n\n0.05\n\n0.10\n\n0.15\n\n0.20\n\nIntegration Limit (FPR)\n\n0.30\n\n0.0\n0.00\n\nMul ( 2D\n\n0.05\n\n0.10\n\n0.15\n\n0.20\n\nIntegration Limit (FPR)\n\n3D) [Ours]\n\n0.25\n\nAdd ( 2D + 3D)\n\n0.30\n\n0.0\n0.00\n\n0.05\n\nMax (max( 2D, 3D))\n\n0.10\n\n0.15\n\n0.46\n\n0.2\n\n0.38\n\n0.01\n\n0.25\n\n0.47\n\n0.40\n\n0.2\n\n0.01\n\n0.0\n0.00\n\n0.48\n\n0.42\n\n0.42\n\n0.2\n\n0.49\n\n0.4\n\n0.44\n\n0.44\n\n0.28\n\n0.2\n\n0.4\n\n0.45\n\n0.01\n\n0.20\n\nIntegration Limit (FPR)\nOnly 2D ( 2D)\n\n0.25\n\n0.30\n\n0.0\n0.00\n\n0.05\n\n0.10\n\n0.15\n\n0.01\n\n0.20\n\nIntegration Limit (FPR)\n\n0.25\n\n0.30\n\nOnly 3D ( 3D)\n\nFig. 6: PRO curve dynamics across different integration limits (FPR). We select four\nrepresentative classes (Dowel, Rope, Bagel, Carrot) to illustrate the varying degradation\nbehaviors of different fusion strategies. The inset panels provide a 10× magnified view\nspecifically anchored at the strict 1% FPR threshold. Multiplicative fusion (Ψ2D ⊙ Ψ3D )\nconsistently maintains top-tier stability, effectively resisting the unilateral noise that\nseverely degrades single-stream, Additive, and Max fusion strategies.\n\ntraditional strategies are easily overwhelmed by localized but entirely normal\nvariations.\nCrucially, as highlighted in the inset zoom panels at exactly 1% FPR, both\nAdditive and Max fusion strategies fail to suppress this degradation, as they are\nhighly susceptible to confident false positives originating from any single noisy\nmodality. In stark contrast, our Multiplicative fusion acts as a stringent logical\nspatial AND filter. A localized anomaly is only strongly activated if corroborated\nby both the 2D texture variation and the 3D structural deviation simultaneously.\nThis explicit cross-modal verification effectively neutralizes unilateral noise, allowing CMDS-AD to maintain a resilient and dominant PRO curve trajectory\neven at ultra-low FPRs, ensuring that the model exclusively flags regions with\ngenuine multimodal defect evidence rather than transient background artifacts.\n\n\fCMDS-AD for Few-Shot Anomaly Detection\n\n21\n\nTable 6: Comprehensive class-wise ablation of Core Components (4-shot, MVTec 3DAD). Corresponding to Table 3 in the main text. The best results are highlighted in\nbold, and the second-best are underlined. Note the stable and saturated P-AUROC\nvalues across all configurations.\nw/o Est Stream\n\nClass\n\nw/o Real Stream\n\nw/o Feature Mapper\n\nOurs (Dual-Stream)\n\nPRO@30% PRO@1% P-AUC PRO@30% PRO@1% P-AUC PRO@30% PRO@1% P-AUC PRO@30% PRO@1% P-AUC\n\nBagel\nCable Gland\nCarrot\nCookie\nDowel\nFoam\nPeach\nPotato\nRope\nTire\n\n0.968\n0.916\n0.982\n0.939\n0.937\n0.924\n0.981\n0.982\n0.976\n0.955\n\n0.404\n0.254\n0.485\n0.430\n0.297\n0.346\n0.477\n0.479\n0.458\n0.367\n\n0.994\n0.972\n0.998\n0.971\n0.984\n0.981\n0.998\n0.998\n0.997\n0.990\n\n0.964\n0.907\n0.980\n0.876\n0.910\n0.829\n0.979\n0.971\n0.970\n0.925\n\n0.421\n0.259\n0.470\n0.290\n0.226\n0.289\n0.467\n0.370\n0.440\n0.260\n\n0.990\n0.969\n0.997\n0.948\n0.976\n0.943\n0.997\n0.992\n0.996\n0.979\n\n0.968\n0.907\n0.982\n0.930\n0.934\n0.929\n0.981\n0.982\n0.975\n0.955\n\n0.409\n0.251\n0.485\n0.417\n0.296\n0.353\n0.473\n0.481\n0.455\n0.366\n\n0.993\n0.969\n0.998\n0.968\n0.984\n0.982\n0.998\n0.998\n0.997\n0.989\n\n0.972\n0.922\n0.982\n0.936\n0.940\n0.929\n0.981\n0.982\n0.976\n0.958\n\n0.442\n0.268\n0.485\n0.429\n0.312\n0.359\n0.477\n0.482\n0.456\n0.384\n\n0.994\n0.974\n0.998\n0.970\n0.985\n0.982\n0.998\n0.998\n0.997\n0.991\n\nMEAN\n\n0.956\n\n0.400\n\n0.988\n\n0.931\n\n0.349\n\n0.979\n\n0.954\n\n0.399\n\n0.988\n\n0.958\n\n0.409\n\n0.989\n\nA.3\n\nWhy Single-Stream Architecture Collapses at Low FPRs\n\nThe divergence in performance under strict FPRs can be deeply understood\nthrough the lens of our dual-stream architecture (Real Stream vs. Estimation\nStream). As demonstrated in our ablation studies, relying exclusively on the\nReal Stream (which inherently contains both high and low-frequency spatial\nvariations) allows the model to perform adequately at AUPRO@30% (0.9563).\nHowever, under the extreme pressure of AUPRO@1%, its performance collapses\nto 0.4002.\nThe underlying mechanism for this failure is the model’s over-sensitivity\nto normal, localized high-frequency texture variations, which it misclassifies as\nmicro-defects when forced to minimize false positives. By introducing the Estimation Stream—where the diffusion model acts as an advanced low-pass filter—we extract stabilized low-frequency priors. These priors serve as structural\nanchors. The explicit decoupling of high-frequency details (Real) and macrostructural semantics (Estimation) is the decisive factor that inhibits false positives and overcomes the data-scarcity bottleneck inherent in few-shot settings.\n\nB\n\nComprehensive Class-wise Ablation and P-AUROC\nResults\n\nDue to space constraints in the main manuscript, Tables 3 and 4 reported the\nmean metrics across all classes. To provide a completely transparent view of\nour model’s behavior, Tables 6 and 7 present the detailed class-wise breakdown\nfor the core component and fusion strategy ablations, respectively (evaluated at\n4-shot on MVTec 3D-AD).\nFurthermore, these tables incorporate the pixel-level anomaly detection metric (P-AUROC). As observed in recent state-of-the-art literature, P-AUROC\nhas largely saturated (consistently hovering between 98% and 99% across most\nconfigurations). Thus, while it is no longer a discriminative metric for assess-\n\n\f22\n\nJ. Cai et al.\n\nTable 7: Comprehensive class-wise ablation of Fusion Strategies (4-shot, MVTec 3DAD). Corresponding to Table 4 in the main text. The best results are highlighted in\nbold, and the second-best are underlined.\nOnly 2D\n\nClass\n\nOnly 3D\n\nMax\n\nAdd\n\nMul (Ours)\n\nPRO@30 PRO@1 P-AUC PRO@30 PRO@1 P-AUC PRO@30 PRO@1 P-AUC PRO@30 PRO@1 P-AUC PRO@30 PRO@1 P-AUC\n\nBagel\nCable Gland\nCarrot\nCookie\nDowel\nFoam\nPeach\nPotato\nRope\nTire\n\n0.961\n0.931\n0.979\n0.897\n0.932\n0.912\n0.975\n0.974\n0.972\n0.948\n\n0.397\n0.288\n0.458\n0.327\n0.304\n0.326\n0.423\n0.410\n0.442\n0.341\n\n0.991\n0.977\n0.996\n0.951\n0.982\n0.975\n0.995\n0.994\n0.997\n0.987\n\n0.966\n0.885\n0.981\n0.910\n0.920\n0.909\n0.981\n0.982\n0.961\n0.945\n\n0.424\n0.216\n0.476\n0.419\n0.255\n0.289\n0.476\n0.484\n0.416\n0.354\n\n0.990\n0.963\n0.998\n0.953\n0.979\n0.977\n0.998\n0.998\n0.995\n0.987\n\n0.967\n0.913\n0.981\n0.907\n0.924\n0.920\n0.980\n0.982\n0.967\n0.951\n\n0.427\n0.245\n0.479\n0.413\n0.271\n0.348\n0.471\n0.481\n0.429\n0.372\n\n0.991\n0.972\n0.998\n0.951\n0.980\n0.978\n0.998\n0.998\n0.996\n0.988\n\n0.968\n0.914\n0.981\n0.911\n0.928\n0.929\n0.981\n0.981\n0.968\n0.955\n\n0.434\n0.258\n0.475\n0.428\n0.291\n0.355\n0.474\n0.476\n0.437\n0.380\n\n0.992\n0.972\n0.997\n0.954\n0.981\n0.981\n0.998\n0.997\n0.996\n0.989\n\n0.972\n0.922\n0.982\n0.936\n0.940\n0.929\n0.981\n0.982\n0.976\n0.958\n\n0.442\n0.268\n0.485\n0.429\n0.312\n0.359\n0.477\n0.482\n0.456\n0.384\n\n0.994\n0.974\n0.998\n0.970\n0.985\n0.982\n0.998\n0.998\n0.997\n0.991\n\nMEAN\n\n0.948\n\n0.372\n\n0.985\n\n0.944\n\n0.381\n\n0.984\n\n0.949\n\n0.394\n\n0.985\n\n0.951\n\n0.401\n\n0.986\n\n0.958\n\n0.409\n\n0.989\n\ning fine-grained localization superiority, we report it fully in this appendix to\nfacilitate alignment with earlier literature.\nMore importantly, the granular data in Table 6 explicitly reveals the critical role of the dual-branch decoupling mechanism. For instance, when omitting\nthe Estimation Stream (w/o Est Stream), the model still achieves a near-perfect\nP-AUROC (0.988) and a competitive AUPRO@30% (0.956), creating an illusion of high performance. However, its AUPRO@1% plummets to 0.400 across\nall classes. This validates our core hypothesis: without the low-frequency structural anchor provided by the diffusion model, the network inevitably overfits to\nnormal high-frequency texture variations during few-shot learning, leading to a\ncatastrophic collapse in precise localization when false positives are strictly penalized. The detailed data unequivocally demonstrates that our full CMDS-AD\nframework maintains exceptional stability across all diverse and geometrically\nchallenging object categories.\n\nC\n\nMechanistic Validation and Robustness Analysis\n\nC.1\n\nSpectral Evidence for Frequency-Decoupled Priors\n\nTo directly substantiate the frequency-decoupling interpretation, Figure 7 visualizes the FFT spectra of real and estimated normals, while Table 8 reports\nthe corresponding normalized spectral energy statistics. The estimated normals\nclearly suppress high-frequency responses and retain coarse structural components. Quantitatively, the High/Low energy ratio drops from 0.1251 to 0.0221\non normal samples and from 0.1293 to 0.0239 on anomalous samples. Together,\nthese results support our view that the diffusion-based normal estimator acts as a\nnon-linear low-pass prior: it preserves stable global structure while suppressing\nmodality-specific high-frequency noise that would otherwise trigger false positives.\n\n\fCMDS-AD for Few-Shot Anomaly Detection\n\nEstimated SN\n\nReal High Frequency\n\nFFT Spectrum: Real\n\nEstimated High Frequency FFT Spectrum: Estimated\n\nReal SN\n\nCrack\n\nGood\n\nReal SN\n\nReal High Frequency\n\nEstimated SN\n\n23\n\nFFT Spectrum: Real\n\nEstimated High Frequency FFT Spectrum: Estimated\n\nFig. 7: FFT-based frequency analysis of real and estimated normals. Estimated normals suppress high-frequency responses while preserving dominant structural components.\nTable 8: Spectral energy distribution of real and estimated normals. Estimated\nnormals exhibit substantially lower high-frequency energy and a markedly smaller\nHigh/Low ratio.\nNormal Samples\n\nMethod\n\nAnomaly Samples\n\nLow E. High E. H/L Ratio Low E. High E. H/L Ratio\n\nReal Normal\n0.8888\nEstimated Normal 0.9784\n\n0.1112\n0.0216\n\n0.1251\n0.0221\n\n0.8855\n0.9766\n\n0.1145\n0.0234\n\n0.1293\n0.0239\n\nTable 9: Ablation isolating the architectural contribution under identical diffusion\npriors on MVTec 3D-AD (4-shot). “MLP” uses the same Stable Diffusion v2.1 augmentation and Marigold normal estimation as our method.\nMethod I-AUROC P-AUROC PRO@30% PRO@10% PRO@5% PRO@1%\n\nC.2\n\nCFM\nMAFR\n\n80.8\n84.1\n\n98.5\n98.4\n\n94.2\n94.6\n\n84.3\n85.6\n\n73.9\n76.5\n\n35.2\n37.7\n\nMLP\nOurs\n\n87.2\n87.1\n\n98.8\n98.9\n\n95.5\n95.8\n\n87.7\n88.6\n\n79.2\n80.6\n\n39.9\n41.0\n\nIsolating Architectural Gains Beyond Shared Diffusion Priors\n\nThe component ablations above validate the role of each module within CMDSAD, but they do not fully separate architectural gains from the strength of\nthe shared diffusion priors. To disentangle these factors, Table 9 compares our\nmethod against an “MLP” baseline that uses the same Stable Diffusion v2.1 augmentation and Marigold-estimated normals, but replaces the dual-stream design\nwith a shallow multimodal predictor. Even under identical priors, CMDS-AD still\ndelivers consistent gains, especially at strict operating points such as PRO@1%\n(+1.1 points over MLP). This shows that the benefit is not merely inherited\nfrom better priors; it is amplified by the proposed dual-stream architecture and\nits cross-modal interaction design.\n\n\f24\n\nJ. Cai et al.\n\nTable 10: Sensitivity to the shared estimated-stream balancing weight w, where λ1 =\nλ2 = w. Best and second-best are highlighted in bold and underlined, respectively.\nMVTec 3D-AD\n\nw\n0.1\n0.3\n0.5\n0.7\n0.9\n\nC.3\n\nI-AUROC\n\nP-AUROC\n\nPRO@30%\n\n87.1\n87.3\n87.2\n87.0\n86.7\n\n98.9\n98.8\n98.7\n98.7\n98.6\n\n95.8\n95.5\n95.3\n95.2\n95.1\n\nEyeCandies\nPRO@1% I-AUROC\n41.0\n40.1\n39.9\n39.6\n39.4\n\n82.7\n82.7\n82.7\n82.5\n82.4\n\nP-AUROC PRO@30%\n97.4\n97.3\n97.2\n97.2\n97.2\n\n87.7\n87.0\n86.9\n86.7\n86.6\n\nPRO@1%\n30.4\n29.4\n29.3\n29.2\n29.0\n\nSensitivity to Estimated-Stream Balancing Weights\n\nTo complement the sensitivity curves in the main text, Table 10 summarizes\nthe mean performance when the two estimated-stream balancing coefficients are\ntied as λ1 = λ2 = w. Across w ∈ [0.1, 0.9], P-AUROC remains nearly constant,\nwhile PRO@1% varies within only about 1.6 points on MVTec 3D-AD and 1.4\npoints on EyeCandies. This indicates that the method does not require delicate\ntuning, and the default choice w = 0.1 used in the main manuscript remains a\nrobust operating point across both benchmarks.\nC.4\n\nCross-Shot Stability and Synthetic-Count Sensitivity\n\nTable 11 extends the strict-FPR analysis by aggregating baseline comparisons\nacross 1-shot, 2-shot, and 4-shot settings, together with 5-seed statistics and\nan ablation on the number of synthetic samples N generated per real image.\nCMDS-AD consistently improves over CFM and MAFR, with the largest margin\nappearing at the strictest PRO@1% criterion. Moreover, the 4-shot 5-seed results\nexhibit low variance (41.3±0.8 at PRO@1%), and varying N from 1 to 3 only\ncauses marginal shifts. These observations indicate that the reported gains are\nstable rather than driven by a favorable seed or a highly sensitive augmentation\ncount.\n\nD\n\nExtended Qualitative Results and Failure Cases\n\nD.1\n\nAdditional Qualitative Results\n\nTo complement the visual demonstrations provided in the main text, we present\nan extended gallery of qualitative results covering the remaining categories of\nboth the MVTec 3D-AD and EyeCandies datasets. Notably, all visual results presented in this section are generated under the 4-shot training setting. Specifically,\nFigures 9 and 10 display the anomaly localization results for the MVTec 3D-AD\ndataset, which features diverse industrial materials and complex 3D topologies.\nMeanwhile, Figures 11 and 12 demonstrate our performance on the EyeCandies\ndataset, which introduces challenging scenarios with intricate, highly reflective\ntextures.\n\n\fCMDS-AD for Few-Shot Anomaly Detection\n\n25\n\nTable 11: Cross-shot strict-FPR comparison on MVTec 3D-AD, including 4-shot stability over 5 random seeds and an ablation on the number of synthetic samples N\ngenerated per real image.\nShot Method\n\nI-AUC\n\nP-AUC\n\n30%\n\n10%\n\n5%\n\n1%\n\n1\n\nCFM\nMAFR\nOurs\n\n69.8\n72.4\n79.6\n\n97.5\n97.7\n98.3\n\n91.3\n92.2\n94.2\n\n76.8\n79.4\n84.3\n\n63.4\n67.6\n74.4\n\n26.2\n30.0\n36.0\n\n2\n\nCFM\nMAFR\nOurs\n\n73.0\n76.6\n83.0\n\n98.0\n98.0\n98.5\n\n92.6\n93.2\n94.8\n\n80.3\n81.8\n85.9\n\n68.5\n71.6\n76.5\n\n30.6\n33.6\n37.5\n\nCFM\nMAFR\nOurs\n\n80.8\n84.1\n87.1\n\n98.5\n98.4\n98.9\n\n94.2\n94.6\n95.8\n\n84.3\n85.6\n88.6\n\n73.9\n76.5\n80.6\n\n35.2\n37.7\n41.0\n\n4\n\n5 seeds\nN =1\nN =3\n\n86.8±1.2 98.9±0.1 95.9±0.3 88.8±0.7 80.9±0.9 41.3±0.8\n86.5\n98.9\n95.8\n88.5\n80.3\n40.4\n86.2\n98.9\n95.9\n88.7\n80.5\n40.6\n\nAs illustrated in these figures, the visualizations are arranged from top to\nbottom, comprising the input RGB image, the Real Normal map, the Surface\nNormal map, the Ground Truth mask, the anomaly map predicted by MAFR,\nand our model’s final dense prediction output. This comprehensive layout allows\nfor a direct visual correlation between the raw multi-modal inputs, the distinct\ngeometric cues provided by different normal representations, and the final localization performance.\nCompared to the MAFR baseline, which frequently struggles with oversegmentation and is easily distracted by benign high-frequency texture variations or sensor noise, our proposed CMDS-AD exhibits remarkable robustness.\nBenefiting from the dual-branch decoupling mechanism, our method effectively\ncross-verifies structural deviations and texture anomalies. Consequently, CMDSAD not only accurately localizes subtle defects but also demonstrates exceptional precision in delineating complex anomaly boundaries across highly varied\nmaterial surfaces, consistently suppressing spurious background activations and\nyielding predictions that closely align with the Ground Truth.\nD.2\n\nFailure Cases Analysis\n\nIn Figure 8, we highlight some typical failure cases of this approach under strictly\nconstrained settings. For instance, in the first left row, we note that our method\ncannot accurately highlight the missing left part of the cookie. This limitation\nfundamentally stems from the physical absence of the region itself: since the\nnetwork cannot assign anomaly scores to non-existent pixels (or empty background), the anomaly signal is inevitably forced to manifest on the remaining\nbroken edge adjacent to the defect. In the second left row, the potato presents\na tiny defect on its body, while the anomaly map—although covering the defect correctly—predicts a much broader anomaly region. This over-segmentation\nphenomenon can be attributed to the low-pass filtering nature of the estimation\n\n\f26\n\nJ. Cai et al.\n\nstream, where the highly localized defect signal bleeds into the smoothed surrounding features during the multi-scale feature comparison. In the first and\nsecond right rows, categories such as the candy cane and the hazelnut truffle\npresent hyper-complex, high-frequency 2D or 3D patterns that produce higher\nanomaly scores compared to the real defects. Such false positives highlight a\nfundamental challenge in extreme few-shot scenarios: when the limited normal\nreference set fails to capture the full manifold of benign texture variations, the\nfusion mechanism may occasionally misinterpret these unseen but normal highfrequency patterns as structural anomalies.\n\nReal SN\n\nEst SN\n\nGT\n\nRGB\n\nReal SN\n\nEst SN\n\nGT\n\nPotato\n\nHazelnut\nTruffle\n\nCandy\nCane\n\nCookie\n\nRGB\n\nFig. 8: Typical failure cases of CMDS-AD. We highlight instances where the model\nmisses specific structural defects or predicts broader false positive regions due to hypercomplex high-frequency patterns.\n\nBagel\n\nPotato\n\nCookie\n\nFoam\n\nCable_gland\n\nDowel\n\nPeach\n\nRope\n\nTire\n\nGT\n\nOurs\n\nMAFR\n\nEst SN\n\nReal SN\n\nRGB\n\nCarrot\n\nFig. 9: Extended qualitative results on the MVTec 3D-AD dataset (Part 1) under the\n4-shot training setting. From top to bottom: RGB image, Real Normal map, Surface\nNormal map, Ground Truth mask, MAFR prediction, and our CMDS-AD predicted\nanomaly map.\n\n\fCMDS-AD for Few-Shot Anomaly Detection\nBagel\n\nPotato\n\nCookie\n\nFoam\n\nCable_gland\n\nDowel\n\nPeach\n\nRope\n\nTire\n\nGT\n\nOurs\n\nMAFR\n\nEst SN\n\nReal SN\n\nRGB\n\nCarrot\n\n27\n\nFig. 10: Extended qualitative results on the MVTec 3D-AD dataset (Part 2) under\nthe 4-shot training setting. The layout of the visualizations is identical to Figure 9.\n\nChocolate\nCookie\n\nChocolate\nPraline\n\nConfetto\n\nGummy\nBear\n\nHazelnut\nTruffle\n\nLicorice\nSandwich\n\nLollipop\n\nMarsh—\nmallow\n\nPeppermint\nCandy\n\nGT\n\nOurs\n\nMAFR\n\nEst SN\n\nReal SN\n\nRGB\n\nCandy\nCane\n\nFig. 11: Extended qualitative results on the EyeCandies dataset (Part 1) under the\n4-shot training setting. From top to bottom: RGB image, Real Normal map, Surface\nNormal map, Ground Truth mask, MAFR prediction, and our CMDS-AD predicted\nanomaly map.\n\n\f28\n\nJ. Cai et al.\n\nChocolate\nCookie\n\nChocolate\nPraline\n\nConfetto\n\nGummy\nBear\n\nHazelnut\nTruffle\n\nLicorice\nSandwich\n\nLollipop\n\nMarsh—\nmallow\n\nPeppermint\nCandy\n\nGT\n\nOurs\n\nMAFR\n\nEst SN\n\nReal SN\n\nRGB\n\nCandy\nCane\n\nFig. 12: Extended qualitative results on the EyeCandies dataset (Part 2) under the\n4-shot training setting. The layout of the visualizations is identical to Figure 11.\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"