"<!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>Commonality in Few: Few-Shot Multimodal Anomaly Detection via\nHypergraph-Enhanced Memory\nYuxuan Lin1 , Hanjing Yan2 , Xuan Tong3 , Yang Chang3 , Huanzhen Wang3 , Ziheng Zhou3 ,\nShuyong Gao1 , Yan Wang4∗ , Wenqiang Zhang1,3 *\n\narXiv:2511.05966v2 [cs.CV] 16 Nov 2025\n\n1\n\nShanghai Key Lab of Intelligent Information Processing, College of Computer Science and Artificial Intelligence, Fudan\nUniversity\n2\nSchool of Information Science and Engineering, East China University of Science and Technology\n3\nCollege of Intelligent Robotics and Advanced Manufacturing, Fudan University\n4\nSchool of Data Science and Engineering, East China Normal University\n{yuxuanlin24, xtong23, ychang24, hzwang24, zhouzh24}@m.fudan.edu.cn, {wqzhang, sy gao}@fudan.edu.cn,\nY21250025@mail.ecust.edu.cn, yanwang@dase.ecnu.edu.cn\nMemory Bank\n\nAbstract\nFew-shot multimodal industrial anomaly detection is a critical\nyet underexplored task, offering the ability to quickly adapt\nto complex industrial scenarios. In few-shot settings, insufficient training samples often fail to cover the diverse patterns\npresent in test samples. This challenge can be mitigated by\nextracting structural commonality from a small number of\ntraining samples. In this paper, we propose a novel few-shot\nunsupervised multimodal industrial anomaly detection method\nbased on structural commonality, CIF (Commonality In Few).\nTo extract intra-class structural information, we employ hypergraphs, which are capable of modeling higher-order correlations, to capture the structural commonality within training\nsamples, and use a memory bank to store this intra-class structural prior. Firstly, we design a semantic-aware hypergraph\nconstruction module tailored for single-semantic industrial\nimages, from which we extract common structures to guide\nthe construction of the memory bank. Secondly, we use a\ntraining-free hypergraph message passing module to update\nthe visual features of test samples, reducing the distribution\ngap between test features and features in the memory bank.\nWe further propose a hyperedge-guided memory search module, which utilizes structural information to assist the memory\nsearch process and reduce the false positive rate. Experimental results on the MVTec 3D-AD dataset and the Eyecandies\ndataset show that our method outperforms the state-of-the-art\n(SOTA) methods in few-shot settings.\n\nCode — https://github.com/Sunny5250/CIF\n\nIntroduction\nAnomaly detection (AD) is one of the most extensively studied tasks in computer vision, and industrial anomaly detection that this paper focuses on is a important technology for\nensuring product quality and production line stability. Manual detection methods are inefficient and easily affected by\nhuman factors, making them unsuitable for large-scale, highprecision production needs. Traditional anomaly detection\nmethods (Crosby 1994; Breunig et al. 2000; Tang et al. 2002;\nLiu, Ting, and Zhou 2008) based on data distribution struggle\n* Corresponding authors.\n\nEncoder\n\nEncoder\n\nTraining\n\nGNN\nEncoder\n\nGNN\nEncoder\n\nInference\n\nEncoder\n\nEncoder\n\nStructure-guided\nMemory\n\nTraining-free\nMessage\nPassing\n\nInvariant\nFeature\n\nFeature\n\nNN Search\n\nNN Search\n\nHyperedge-guided Search\n\n(a) PatchCore\n\n(b) GraphCore\n\n(c) CIF (Ours)\n\nFigure 1: The Main Idea of CIF. Different from (a) PatchCore\nand (b) GraphCore, our HyperAD (c) extracts higher-order\ncorrelations among patch features through a hypergraph and\nuses training-free message passing to obtain patch features\nenriched with structured contextual information.\n\nto detect diverse or subtle anomalies in complex industrial environments and lack robustness. Machine learning and deep\nlearning-based methods for anomaly detection are mainly categorized into feature embedding-based methods (Gudovskiy,\nIshizaka, and Kozuka 2022; Rudolph et al. 2023; Roth et al.\n2022; Wang et al. 2023) and reconstruction-based methods\n(Zavrtanik, Kristan, and Skočaj 2021b,a; Zhang et al. 2023;\nChen et al. 2023). However, in real-world industrial environments, anomaly samples are extremely scarce and costly to\nobtain. As a result, most existing methods are designed in\nunsupervised settings. By learning the feature distribution of\nnormal samples, unsupervised methods detect anomalies as\ndeviations from the normal pattern.\nFew-shot anomaly detection has been proposed to address\nscenarios with limited normal training samples. Compared to\nfull-shot methods, it offers stronger transferability and faster\nadaptability to new environments, making it well-suited for\ncomplex and dynamic industrial settings. MetaFormer (Wu\net al. 2021) uses meta-learning method, introducing additional datasets to train a general model, and then fine-tuning\nthe model with a few normal industrial data samples. Anoma-\n\n\flyGPT (Gu et al. 2024) introduces Large Vision-Language\nModels (LVLMs), leveraging their rich prior knowledge and\nstrong generalization capabilities to perform effective fewshot anomaly detection and localization. Memory bank-based\nmethod (Defard et al. 2021; Roth et al. 2022; Lee, Lee, and\nSong 2022; Wang et al. 2023; Xie et al. 2023) constructs a\nmemory bank of normal visual features, which are used to\ncompare with test sample features during testing to detect\nanomalies. However, in few-shot settings, the memory bank\noften fails to adequately cover the normal patterns present\nin test samples, resulting in high false positive rates. GraphCore (Xie et al. 2023) is a memory bank-based method, using\nGraph Neural Networks (GNNs) to extract vision isometric invariant features in few-shot settings, which reduces\nredundancy in the memory bank, improving the coverage of\nmemory bank features of the features of test samples.\nFor single-semantic industrial images, samples of the same\nclass often share highly consistent structures. Graphs struggle to capture higher-order correlations between patches,\nwhereas hypergraphs can better model these correlations\nand extract shared structural information among samples\nof the same class, enhancing memory bank coverage in fewshot settings. We propose CIF (Commonality In Few), a\nhypergraph-based few-shot unsupervised multimodal industrial anomaly detection method. We construct hypergraphs\nfor industrial images and use shared structures from a few\ntraining samples to guide memory bank construction and\ncompression. A training-free hypergraph message passing\nmodule further updates test features, narrowing the gap with\nmemory features. During memory search, hyperedge features\nguide matching, reducing false positives through structural\ncues. As shown in Figure 1, PatchCore (Roth et al. 2022)\ndetects anomalies via patch feature sampling and nearestneighbor search, while GraphCore (Xie et al. 2023) employs\nGNNs to aggregate neighborhood information and extract\nvision isometric invariant features. In contrast, CIF uses a\npretrained encoder and training-free hypergraph message\npassing to model higher-order correlations, capture structural\ncommonality, and achieve accurate anomaly detection and\nlocalization with fewer false positives.\nIn summary, the contributions of our work are as follows:\n• We propose CIF, which explores the application of hypergraphs in few-shot unsupervised multimodal industrial\nanomaly detection, and outperforms the state-of-the-art\nmethods on the MVTec 3D-AD and Eyecandies datasets\nin few-shot settings.\n• We introduce Semantic-Aware Hypergraph Construction\n(SAHC), which constructs a hypergraph with more evenly\ndistributed hyperedges for single-semantic industrial images.\n• We design Structure-Guided Memory Sampling (SGMS),\nwhich uses intra-class structural commonality to guide the\nconstruction and compression of the memory bank.\n• We use Bidirectional Training-Free Hypergraph Message\nPassing (Bi-TF-MP) to reduce the distribution gap between test sample node features and memory bank node\nfeatures.\n• We propose Hyperedge-Guided Memory Search (HGMS),\n\nwhich uses hyperedge features to guide the matching between test sample features and memory bank features,\neffectively reducing the false positive rate.\n\nRelated Work\nIndustrial Anomaly Detection\nIndustrial anomaly detection identifies anomaly patterns in\nindustrial data. Traditional methods (Crosby 1994; Angiulli\nand Pizzuti 2002; Breunig et al. 2000; Shyu et al. 2003; Liu,\nTing, and Zhou 2008; Schölkopf et al. 2001) rely on statistical\nor distance-based analysis. With advances in deep learning\nand computer vision, current deep learning-based methods\nare mainly unsupervised, covering both single-modal and\nmultimodal settings (e.g., RGB images, 3D point clouds).\nThey are generally categorized into feature embedding-based\nand reconstruction-based methods. Feature embedding-based\nmethods use pretrained extractors to obtain features for detection and segmentation, including teacher-student architecture methods (Bergmann et al. 2020; Zhang et al. 2023;\nRudolph et al. 2023), one-class classification methods (Li\net al. 2021; Liu et al. 2023), distribution map methods (Yu\net al. 2021; Gudovskiy, Ishizaka, and Kozuka 2022), and\nmemory bank methods (Roth et al. 2022; Wang et al. 2023;\nXie et al. 2023). Reconstruction-based methods (Zavrtanik,\nKristan, and Skočaj 2021a; Zhang, Xu, and Zhou 2024; Chen\net al. 2023) reconstruct test samples to normal patterns and\ndetect anomalies via reconstruction differences. Few-shot\nanomaly detection learns compact, generalizable features\nfrom limited data, offering better flexibility and transferability than full-shot approaches. Meta learning-based methods\n(Wu et al. 2021; Huang et al. 2022) train generalizable models adaptable to new domains with minimal fine-tuning. Recently, large model-based methods (Gu et al. 2024; Lee and\nChoi 2024; Li et al. 2024; Zhu and Pang 2024) leverage the\nrich priors and strong perception abilities of large models,\nachieving powerful few-shot and transfer performance.\n\nHypergraph Learning\nHypergraphs are a generalized form of graphs that allow an\nedge (hyperedge) to connect multiple nodes, effectively representing high-order correlations and complex structures. Zhou\net al. (Zhou, Huang, and Schölkopf 2006) first introduces\nhypergraph learning to minimize the label difference among\ncorrelational nodes. HGNN (Feng et al. 2019) and its extended version HGNN+ (Gao et al. 2022) designes message\npassing frameworks between hyperedges and nodes, constructing more general hypergraph neural networks to learn\nrepresentations of high-order data structures. ViHGNN (Han\net al. 2023) applies hypergraph neural networks to computer\nvision, employing fuzzy clustering algorithm (fuzzy c-means)\nto construct hyperedges among image patches and capture\nhigh-order correlations, achieving high accuracy in tasks\nsuch as image classification and object detection. Based on\nViHGNN, DVHGNN (Li et al. 2025) introduces dilated hyperedges to capture multi-scale sparse dependencies. While\nthese hypergraph learning methods are generalizable across\nvarious tasks, they require adjustments to adapt to industrial\n\n\fTraining\n\nInference\n\nHypergraph\n\nF2D\n\nE2D\n\nH\n\nSemantic-Aware\nHypergraph\nConstruction\n\nE3D\n\nF3D\n\nStructure-Guided\nMemory Construction\n\nBi-Training-free\nMessage Passing\n\nBi-Training-free\nMessage Passing\n\n2D\nMemory Bank\n\n3D\nMemory Bank\n\nHyperedgeguided Search\n\nE2D\n\nStructure-Guided\nMemory Construction\n\nSampling\n\nE3D\n\nF3D\n\nF2D\n\nH\n\nSemantic-Aware\nHypergraph\nConstruction\n\nFigure 2: The pipeline of CIF. Our CIF contains four important parts: (1) Semantic-Aware Hypergraph Construction (SAHC),\nwhich constructs hypergraphs for single-semantic samples based on clustering. (2) Structure-Guided Memory Sampling (SGMS),\nwhich uses structural commonality in the hypergraph to guide the construction and compression of the memory bank. (3)\nBidirectional Training-Free Hypergraph Message Passing (Bi-TF-MP), which performs bidirectional message passing between\ntest samples and the memory bank to reduce their distribution gap. (4) Hyperedge-Guided Memory Search (HGMS), which uses\na hyperedge-guided two-stage search to reduce the false positive rate of detection.\ndata. Therefore, using hypergraphs for industrial anomaly\ndetection remains a challenge.\n\nMethod\nPreliminary: Hypergraph Definition\nIn traditional graph theory, a graph G = (V, E) represents\nbinary correlations between entities, where V is the set of\nnodes and E ⊆ V × V is the set of edges connecting pairs\nof nodes. However, such binary correlations often struggle\nto capture the complex higher-order interactions among multiple entities. To address this issue, a hypergraph provides\na structure capable of expressing higher-order correlations.\nAs a generalization of a graph, a hypergraph is defined as\nG = (V, E), where V is the set of nodes (vertices) and E is\nthe set of hyperedges. Each hyperedge e ∈ E is a non-empty\nsubset of nodes, i.e., e ⊆ V , with |e| ≥ 2. Unlike an ordinary\ngraph edge that connects exactly two nodes, a hyperedge\ncan simultaneously connect an arbitrary number of nodes,\nenabling the modeling of higher-order correlations among\nmultiple entities. A hypergraph is commonly represented by\nan incidence matrix H ∈ R|V |×|E| , where H(v, e) = 1 if\nvertex v belongs to hyperedge e, and 0 otherwise. Based on\nincidence matrix, various hypergraph Laplacian operators\ncan be constructed to support spectral analysis and learning\ntasks.\n\nOverview\nOur CIF is a memory bank-based anomaly detection method\nthat enhances memory construction and search through\nhypergraph-based structural representations. Unlike other\nmemory bank-based methods, we use intra-class structural\npriors from training samples to guide the construction and\ncompression of the memory bank. Moreover, we do not directly perform nearest-neighbor search to match the features\nof test samples and those in the memory bank. Instead, we\n\nuse hyperedge features to match the structural information\nof the test samples with that in the memory bank, and then\nperform nearest-neighbor search guided by this structural\nalignment. To ensure structural consistency between memory\nbank and test samples in few-shot settings, we apply bidirectional training-free hypergraph message passing to update the\nfeatures of test samples, thereby narrowing the distribution\ngap between them and the memory bank features. We use\ntwo pretrained feature extractors: DINO (Caron et al. 2021)\nfor extracting 2D image features, and PointMAE (Pang et al.\n2022) for extracting 3D point cloud features.\n\nSemantic-Aware Hypergraph Construction\nTraditional hard clustering algorithms (e.g., K-Means) cannot\nassign nodes to multiple hyperedges, while fuzzy clustering\n(e.g., Fuzzy C-Means (Bezdek, Ehrlich, and Full 1984)) results in uneven hyperedges when applied to single-semantic\nindustrial images. We give a comparison of different hypergraph construction methods in Appendix. We propose a\nSemantic-Aware Hypergraph Construction (SAHC) method,\nwhich first generates a set of centers (hyperedges) using\nK-Means. Then, we calculate the similarity between patch\n(node) features and the centers, and determine the assignment\nof nodes to hyperedges based on a predefined threshold.\nFor image data, we use a pretrained feature extractor to\nobtain patch features X = [x1 , x2 , ..., xN ], where each\npatch feature can be viewed as a node in the set V =\n{v1 , v2 , ..., vN }. To reduce the interference of background\ninformation during hypergraph construction, we extract the\nforeground mask of each sample using its 3D point cloud,\nand filter out the foreground nodes from V to obtain the\nforeground node set Vfore . As shown in Figure 3, we then perform K-means clustering on Vfore to obtain |E| cluster centers,\nwhich serve as hyperedge centers, forming the hyperedge set\nE. We calculate the cosine similarity between all node fea-\n\n\fNode features\n\nCenter features\n\nSimilarity\n\nHypergraph\n\nK-means\n\nFigure 3: The pipeline of Hypergraph construction. We use a clustering algorithm to compute the cluster centers among node\nfeatures, which serve as hyperedge centers. We then calculate the similarity between each hyperedge center and all foreground\nnode features, and determine the hyperedge membership of each node using a predefined threshold, resulting in the hypergraph\nincidence matrix.\nSR: 10.0%\n\nSR: 20.0%\n\nOur Sampling\n\nGreedy Coreset\n\nSR: 5.0%\n\nFigure 4: Comparison: Greedy Coreset Sampling (Top) vs.\nOur Sampling (Bottom) at different sampling rates (SR). Red\npoints represent features before sampling, blue points represent features after sampling, and black crosses represent\nhyperedge features.\n\ntures in Vfore and the hyperedge centers, and apply min-max\nnormalization. Using the similarity matrix, we determine the\nassignment of each node to one or more hyperedges based\non a predefined threshold, resulting in a incidence matrix\nH ∈ R|V |×|E| . Due to the needs of subsequent modules, we\nalso compute a hard incidence matrix Hhard ∈ R|V |×1 , where\neach node is assigned only to one hyperedge with the highest\nsimilarity.\nDuring the hypergraph construction process, we observed\nthat hypergraphs built from RGB image features of industrial samples are more balanced and reliable, while those\nconstructed from 3D point cloud features exhibit significant\nimbalance. Therefore, we uniformly use hypergraphs constructed from RGB image features to support the subsequent\nmodules in both the 2D and 3D modals.\n\nStructure-Guided Memory Sampling\nFor single-semantic industrial images, samples of the same\nclass often exhibit consistent structural patterns. Such intraclass structural priors can be used to guide the matching\nbetween memory bank features and test sample features, and\ncan alleviate the issue of sparse information in the memory\nbank. Using SAHC, we obtain the incidence matrices and\nhyperedge features of training samples, and then design a\nStructure-Guided Memory Sampling (SGMS) module to\nupdate and compress the memory bank. We fix the number\nof hyperedges per class, and use the patch features, incidence\nmatrix, and hyperedge features of the first training sample to\ninitialize the memory bank for this class. The memory bank\nupdate process consists of three stages: node assignment,\nhyperedge update, and memory bank sampling.\n\nIn the node assignment stage, we first compute the average\npatch features for each hyperedge in the memory bank to\nobtain the corresponding hyperedge features. For a newly\ninput training sample, we compute its hyperedge features\nand calculate the pairwise distances between these and the\nhyperedge features in the memory bank. To facilitate node assignment, we use Hhard as the reference for node-hyperedge\nmembership. Based on this, we merge the nodes from each\nhyperedge in the training sample with the most similar hyperedge in the memory bank. In the hyperedge update stage,\nafter assigning the node features of a new sample , we update\nthe hyperedge features of the memory bank by computing\nthe merged hyperedge features, preparing them for the next\nnode assignment step. In the memory bank sampling stage,\nexisting methods (Roth et al. 2022; Xie et al. 2023) perform\ngreedy coreset sampling across all nodes in the memory bank.\nIn contrast, we perform greedy coreset sampling within each\nhyperedge individually. If a hyperedge contains fewer than\none node after sampling, we select a single node from this\nhyperedge such that the maximum distance from this node\nto all other nodes in the hyperedge is minimized. Figure 4\nvisually compares our sampling method with greedy coreset\nsampling.\n\nBidirectional Training-Free Hypergraph Message\nPassing\nTo mitigate the distribution gap between test sample node\nfeatures and memory bank node features caused by the limited number of features in the memory bank, we leverage\nintra-class structural priors from the memory bank and the\nstructural information of the test sample. We propose a\nBidirectional Training-Free hypergraph Message Passing\n(Bi-TF-MP) module, which constructs a joint hypergraph\nbetween test sample node features and memory bank node\nfeatures to explicitly connect them. We then perform L layers\nof training-free hypergraph message passing on this joint\nhypergraph, enabling information exchange between each\nnode and its L-hop neighbors in one step.\nWe denote the test hypergraph as G test = (X test ∈\nN ×dim\nR\n, Htest ∈ {0, 1}N ×Enum ) and the memory bank\nhypergraph as G mem = (X mem ∈ RA×dim , Hmem ∈\n{0, 1}A×Enum ), where dim is the feature dimension of each\nnode, H∗ is the incidence matrix, N is the number of nodes in\nthe test sample, and A is the number of nodes in the memory\nbank.\nWe compute the cosine similarity between X test and\nmem\nX\n, and for each test node xtest\n, we select the top-k most\ni\n\n\fsimilar memory bank nodes. We construct a hyperedge that\nincludes xtest\nand the selected k memory bank nodes. In total,\ni\nN such cross-domain hyperedges are constructed, resulting\nin an incidence matrix Ht→m ∈ {0, 1}(A+N )×N . Similarly,\nfor each memory node xmem\n, we select the top-k most simii\nlar test nodes, and construct a hyperedge that includes xmem\ni\nand the selected k test nodes. In total, A such cross-domain\nhyperedges are constructed, resulting in an incidence matrix Hm→t ∈ {0, 1}(A+N )×A . By concatenating Ht→m and\nHm→t along the hyperedge dimension, we obtain the crossdomain incidence matrix Hcross ∈ {0, 1}(A+N )×(A+N ) .\nTo enable message passing across all three domains (test\nsample domain, memory bank domain, and cross-domain),\nwe apply zero-padding to extend Htest ∈ {0, 1}N ×Enum to\ne test ∈ {0, 1}(N +A)×Enum , and similarly extend Hmem ∈\nH\ne mem ∈ {0, 1}(N +A)×Enum . We then con{0, 1}A×Enum to H\ntest e mem\ne\ncatenate H , H\n, and Hcross along the hyperedge dimension to obtain the final joint incidence matrix Hjoint .\n\nmemory\n\ncross\n\n∈ {0, 1}(N +A)× 2Enum +N +A\n\n(1)\n\u0001\n\nthen we concatenate the test sample node features X test and\nthe memory bank node features X mem to obtain the joint\nnode features X joint :\n\u0002 test\n\u0003\nmem\n(N +A)×dim\nX joint = X\n(2)\n| {z } X\n| {z } ∈ R\ntest\n\nmemory\n\nWe follow TF-MP (Tang et al. 2024) to perform message passing on the joint hypergraph. For a hypergraph\nG = (X, H), we first compute the transition matrix Atrans ,\nand then compute the training-free message passing kernel S\nas follows:\nS = (1 − α)L AL\ntrans + α\n\nL−1\nX\n\n(1 − α)l Altrans ,\n\nl=0\n− 21\n\n(3)\n\n− 21\n\n⊤\nAtrans = Dv HD−1\ne H + I N Dv\nwhere De is the hyperedge degree matrix of H, Dv is the\nf = HD−1 H⊤ + IN , and IN is\nnode degree matrix of W\ne\nthe identity matrix. Moreover, α is the retention coefficient,\na larger α emphasizes the preservation of the own information of a node, while a smaller α increases the influence of\nneighboring nodes. L denotes the number of message passing\nlayers, allowing any node to exchange information with its\nL-hop neighbors in the hypergraph.\nWe apply the training-free message passing kernel\nS to the joint hypergraph G joint = (X joint\u0001 ∈\nR(N +A)×dim , Hjoint ∈ {0, 1}(N +A)× 2Enum +N +A ) to\nobtain the updated node features of test samples, denoted\ntest\nas Xnew\n:\n\n\u0001\n\njoint\nXnew\n= (SX joint )⊤ ∈ R(N +A)×dim =⇒\njoint\ntest\nN ×dim\nXnew\n= Xnew\n[:, :N ] ∈ R\n\nTo match structurally consistent test sample nodes and memory bank nodes based on intra-class structural priors, we\ndesign a Hyperedge-Guided Memory Search (HGMS) module that introduces hyperedge features to assist in matching\ntest sample features with those in the memory bank, enabling\nmore targeted search based on intra-class structural priors.\nSpecifically, we compute pairwise cosine similarity between\nthe updated hyperedge features (obtained through Bi-TF-MP)\nof the test sample and the hyperedge features in the memory\nbank. For the i-th hyperedge in the test sample, we collect all\ntest\nnodes within this hyperedge to form a test node subset Xsub\ni.\nWe then select the top-k most similar hyperedges from the\nmemory bank and collect all memory nodes within these\nk hyperedges to form a memory bank node subset Msub i .\nA patch-level nearest neighbor search is then performed betest\ntween Xsub\ni and Msub i to compute the patch-level anomaly\nscore A for the test sample:\nAij =\n\n\u0002 test\n\u0003\ncross\ne\ne mem\nHjoint = H\n| {z } H\n| {z } H\n| {z }\ntest\n\nHyperedge-Guided Memory Search\n\nmin\n\nm∈Msub i\n\ntest\n∥Xij\n− m∥2\n\n(5)\n\ntest\nwhere Aij and Xij\ndenote the anomaly score and patch\nfeature for the j-th patch within the i-th hyperedge of the test\nsample, respectively. m represents a node feature from the\nmemory bank node subset Msub:i corresponding to the i-th\nhyperedge in the test sample. Additionally, we retain the conventional patch-level search method that directly compares\ntest sample node features with memory bank node features.\nThe resulting scores are element-wise multiplied with A to\nobtain the final anomaly scores.\n\nExperiments\nDataset and Evaluation Metrics\nDataset MVTec 3D-AD (Bergmann et al. 2021b) is a\ndataset designed for multimodal industrial anomaly detection,\ncontaining 10 categories of real-world objects with a total of\n4147 samples. Both the training and validation sets consist of\nonly normal samples, while the test set includes various types\nof anomalies such as scratches, dents, and contamination.\nEyecandies (Bonfiglioli et al. 2022) is a synthetic dataset for\nmultimodal anomaly detection, containing 10 categories of\ncandies, with 10000 training images, 1000 validation images,\nand 4000 test images. Each sample includes RGB images and\ndepth maps, rendered under six different lighting conditions.\nEvaluation Metrics We use the area under the receiver\noperator curve on image-level (I-AUROC) and pixel-level\n(P-AUROC) to evaluate the detection and segmentation performance of the proposed method respectively. Additionally,\nto reduce the impact of the anomaly area, we use per-region\noverlap (PRO) (Bergmann et al. 2021a) and compute the area\nunder the PRO curve (AUPRO) to evaluate the segmentation\nperformance. AUPRO represents the average overlap of the\nprediction with each connected component of ground truth.\n\nImplementation Details\n(4)\n\nWhen constructing the hypergraph, we set the number of clusters |E| to 4 for MVTec 3D-AD (for Eyecandies, the number\n\n\fSetting\n\nType\n\n1-shot\n\nTable 1: I-AUROC/AUPRO scores for anomaly detection and localization of all categories of MVTec 3D-AD and Eyecandies in\nfew-shot settings (1-shot, 2-shot and 4-shot). The best is in red and the second best is in blue. TB and TF represent Training-Based\nand Training-Free, respectively.\n\nTB\n\n2-shot\n\nTF\n\nTB\n\n4-shot\n\nTF\n\nTB\n\nTF\n\n1-shot\n2-shot\n\nType\nTB\n\nTB\n\n4-shot\n\nSetting\n\nTB\n\nTF\n\nTF\n\nTF\n\nMethod\nAST (Rudolph et al. 2023)\nEasyNet (Chen et al. 2023)\nShapeGuided (Chu et al. 2023)\nM3DM (Wang et al. 2023)\nCFM (Costanzino et al. 2024)\nPatchcore+FPFH (Horwitz and Hoshen 2023)\nCIF (Ours)\nAST (Rudolph et al. 2023)\nEasyNet (Chen et al. 2023)\nShapeGuided (Chu et al. 2023)\nM3DM (Wang et al. 2023)\nCFM (Costanzino et al. 2024)\nPatchcore+FPFH (Horwitz and Hoshen 2023)\nCIF (Ours)\nAST (Rudolph et al. 2023)\nEasyNet (Chen et al. 2023)\nShapeGuided (Chu et al. 2023)\nM3DM (Wang et al. 2023)\nCFM (Costanzino et al. 2024)\nPatchcore+FPFH (Horwitz and Hoshen 2023)\nCIF (Ours)\n\nBagel\n70.7/75.9\n61.4/79.6\n65.9/95.9\n87.8/95.3\n43.5/92.6\n62.2/92.8\n78.9/85.2\n71.9/75.9\n47.6/77.8\n47.9/96.6\n91.8/95.5\n82.6/95.3\n63.2/94.6\n85.3/87.1\n70.1/74.7\n67.5/70.7\n65.4/97.3\n98.6/96.1\n92.8/96.5\n52.3/95.7\n91.8/92.9\n\nCable Gland\n42.2/73.3\n21.2/75.1\n44.4/71.6\n64.1/81.5\n56.7/79.4\n53.4/76.8\n68.7/79.5\n43.4/74.0\n76.1/62.9\n46.0/73.2\n57.0/82.9\n65.0/80.3\n47.7/76.5\n62.9/79.5\n42.9/73.7\n36.3/13.8\n48.8/78.9\n68.5/87.2\n64.3/84.4\n54.0/79.7\n70.0/83.3\n\nMethod\nM3DM (Wang et al. 2023)\nCFM (Costanzino et al. 2024)\nCIF (Ours)\nM3DM (Wang et al. 2023)\nCFM (Costanzino et al. 2024)\nCIF (Ours)\nM3DM (Wang et al. 2023)\nCFM (Costanzino et al. 2024)\nCIF (Ours)\n\nCan. C.\n36.2/86.8\n40.8/91.4\n38.1/88.4\n38.9/81.1\n38.2/92.4\n41.8/87.0\n42.4/82.4\n43.4/93.0\n48.2/87.4\n\nCho. C.\n66.9/82.5\n48.8/81.5\n81.8/71.4\n67.5/84.4\n63.2/84.3\n79.0/76.9\n74.9/84.9\n71.4/85.1\n81.8/78.1\n\nMVTec 3D-AD\nCarrot\nCookie\n54.8/88.0 49.0/60.2\n52.0/91.0 75.9/69.8\n62.3/93.5 93.8/94.1\n78.0/97.2 92.7/90.3\n76.4/96.9 95.4/92.8\n54.0/96.7 55.9/92.8\n72.2/95.6 81.2/86.2\n54.5/87.8 50.8/62.2\n52.6/92.6 60.2/59.1\n60.5/96.5 95.9/95.5\n79.8/97.2 94.5/88.0\n80.3/97.9 97.4/93.1\n55.4/96.7 64.5/93.4\n74.0/95.8 72.2/87.1\n55.7/87.7 51.8/61.3\n54.7/86.9 69.1/72.0\n73.1/97.3 96.5/95.4\n83.7/97.3 93.8/90.5\n87.8/98.0 98.4/93.5\n59.2/97.2 62.9/95.1\n77.5/96.9 83.4/86.4\nEyecandies\nCho. P.\nConf.\n73.1/70.6 84.8/94.2\n73.1/69.7 88.8/91.9\n70.2/56.3 84.0/86.9\n81.1/68.6 92.3/97.3\n76.5/73.2 87.4/92.5\n78.6/57.9 94.1/85.5\n78.7/72.1 91.4/96.8\n78.1/75.0 85.8/94.1\n74.6/58.4 97.9/88.9\n\nTable 2: Module ablation study of CIF. The best is in red.\n\nSGMS\n✓\n✓\n✓\n\nModules\nHGMS Bi-TF-MP\n✓\n✓\n\n✓\n\nPerformance\nI-AUROC AUPRO\n68.6\n76.1\n71.2\n85.0\n71.7\n86.0\n72.0\n86.1\n\nis set to 8). For the training-free hypergraph message passing step, we set the number of message passing steps L to 1\nand the retention coefficient α to 0.9. During memory bank\nconstruction, we set the sampling rate to 0.1 to ensure an appropriate memory bank size. All experiments were conducted\non a single NVIDIA A100 40GB GPU using PyTorch-1.13.1.\n\nComparison with SOTAs\nWe compare CIF with several multimodal anomaly detection methods on MVTec 3D-AD and Eyecandies. Table 1\nshows anomaly detection performance (I-AUROC scores)\nand localization performance (AUPRO scores) in few-shot\nsettings. Existing methods are categorized into training-based\nand training-free approaches. (1) On MVTec 3D-AD, compared with training-free methods, CIF achieves the highest IAUROC in the 1-shot, 2-shot, and 4-shot settings, outperforming Patchcore+FPFH (Horwitz and Hoshen 2023) by 20.2%,\n19.2%, and 20.6%, respectively. Compared with trainingbased methods, although CIF does not achieve the highest\nI-AUROC, the performance gap with the best method is relatively small: only 2.6%, 4.5%, and 3.2% lower in the 1-shot,\n2-shot, and 4-shot settings, respectively. (2) On Eyecandies,\n\nDowel\n53.8/79.4\n56.5/85.8\n59.3/86.4\n64.2/81.6\n53.2/85.2\n54.7/84.6\n62.9/82.0\n53.7/79.5\n31.7/58.8\n55.3/86.5\n61.4/87.0\n53.3/85.6\n58.3/85.0\n64.6/82.1\n54.0/79.6\n72.4/39.3\n69.8/90.4\n59.6/86.5\n64.1/89.7\n59.4/87.5\n70.2/84.7\n\nFoam\n46.4/44.0\n62.8/49.4\n57.6/63.8\n65.3/82.0\n71.4/87.8\n63.3/71.9\n72.8/70.3\n46.1/43.6\n52.3/57.2\n50.2/71.4\n79.5/79.6\n68.0/89.1\n61.1/67.4\n79.5/75.3\n46.6/41.3\n50.2/53.6\n59.1/83.6\n87.8/86.6\n77.8/92.3\n58.2/75.3\n79.4/84.1\n\nPeach\n51.9/84.0\n65.7/69.0\n67.6/94.0\n75.5/94.0\n63.0/94.9\n49.6/95.9\n83.9/93.3\n51.6/83.7\n71.9/21.1\n69.7/95.3\n79.2/95.1\n70.4/96.1\n55.0/96.2\n77.6/93.7\n52.0/84.3\n74.3/86.2\n68.1/95.7\n85.3/96.4\n85.2/97.2\n61.6/96.5\n85.6/95.2\n\nPotato\n49.7/85.9\n63.0/88.1\n42.8/96.3\n79.8/94.8\n64.2/96.1\n60.7/96.1\n60.4/94.2\n50.4/85.6\n76.1/15.2\n41.3/96.3\n75.1/94.2\n74.7/96.3\n56.6/96.6\n66.9/94.9\n49.8/85.9\n63.1/90.2\n49.9/97.5\n70.5/94.6\n75.3/96.8\n70.5/97.3\n75.0/95.5\n\nRope\n72.0/75.8\n94.6/71.8\n93.3/88.8\n85.8/95.2\n91.8/96.6\n88.8/90.8\n83.5/88.1\n75.8/76.5\n61.2/43.1\n93.6/89.3\n92.8/95.5\n92.1/96.9\n88.2/91.0\n86.1/88.7\n72.6/75.9\n44.9/15.5\n92.2/89.6\n89.3/95.5\n93.3/97.1\n91.8/91.2\n89.8/89.3\n\nTire\n41.9/74.0\n47.7/75.4\n62.9/90.1\n45.4/89.8\n59.2/91.4\n56.6/84.1\n55.8/86.4\n40.2/72.8\n51.2/4.7\n79.3/91.3\n54.1/91.0\n64.0/94.1\n64.4/88.3\n62.7/87.7\n39.8/74.2\n53.7/66.3\n75.1/92.1\n56.1/93.1\n61.5/94.8\n73.5/88.0\n53.4/88.2\n\nMean\n53.2/74.0\n60.1/75.5\n65.0/87.4\n73.9/90.2\n67.5/91.4\n59.9/88.3\n72.0/86.1\n53.8/74.2\n58.1/49.3\n64.0/89.2\n76.5/90.6\n74.8/92.5\n61.4/88.6\n73.2/87.2\n53.5/73.9\n58.6/56.5\n69.8/91.8\n79.3/92.4\n80.1/94.0\n64.3/90.4\n77.6/89.6\n\nGum. B.\n71.3/74.9\n55.1/77.4\n59.6/63.9\n61.7/76.1\n61.1/79.5\n71.3/61.0\n70.2/80.2\n72.3/81.8\n61.9/68.0\n\nHaz. T.\n50.2/54.8\n72.0/66.1\n59.7/50.6\n53.6/57.6\n72.5/70.3\n70.9/52.4\n53.4/61.7\n73.0/75.3\n69.8/58.1\n\nLic. S.\n57.4/71.0\n45.4/63.6\n58.1/55.7\n59.4/72.8\n51.8/64.9\n55.7/59.9\n80.2/81.6\n50.1/75.1\n73.3/63.9\n\nLollip.\n59.9/84.2\n59.4/82.9\n68.6/85.8\n64.0/85.6\n64.9/83.2\n66.4/86.8\n67.8/88.6\n66.9/84.3\n61.8/88.1\n\nMarsh.\n60.3/89.8\n76.5/85.1\n89.1/65.7\n76.5/89.3\n79.4/86.3\n84.5/71.8\n86.6/94.6\n95.4/93.6\n94.2/86.0\n\nPep. C.\n81.0/90.0\n57.4/80.9\n85.4/67.1\n86.9/90.8\n67.8/81.5\n93.6/74.3\n90.6/92.1\n79.2/85.2\n87.4/78.8\n\nMean\n64.1/79.9\n61.7/79.1\n69.5/69.2\n68.2/80.4\n66.3/80.8\n73.6/71.3\n73.6/83.5\n71.6/84.3\n75.1/75.6\n\nwe compare CIF with the two best-performing training-based\nmethods on MVTec 3D-AD: M3DM (Wang et al. 2023) and\nCFM (Costanzino et al. 2024). CIF achieves the highest IAUROC in the 1-shot, 2-shot, and 4-shot settings, outperforming the second-best method by 8.4%, 7.8%, and 2.0%,\nrespectively. (3) On both datasets, using other methods as\na baseline, CIF performs better in the 1-shot setting than in\nthe 2-shot and 4-shot settings. This shows that CIF performs\nbetter when fewer training samples are available, indicating\nthat the structural information extracted by hypergraphs is\neffective. (4) On both datasets, CIF does not achieve the highest AUPRO score in any setting, indicating that its ability in\nanomaly localization is relatively limited. Figure 5 presents\nanomaly segmentation visualizations of our method, M3DM,\nand CFM across all categories on MVTec 3D-AD and Eyecandies (in multimodal, 1-shot setting). ”PC” denotes point\ncloud, and ”GT” denotes ground truth. Visually, our method\neffectively reduces the false positive rate.\n\nAblation Study\nWe conduct an ablation study in a multimodal, 1-shot setting on MVTec 3D-AD. To demonstrate our contributions to\nimproving few-shot detection and localization performance,\nwe analyze CIF in Table 2 with the following settings: 1)\nWithout SGMS, HGMS, or Bi-TF-MP; 2) With SGMS only;\n3) With SGMS and HGMS, but without Bi-TF-MP; 4) With\nSGMS, HGMS, and Bi-TF-MP (Ours). Comparing row 1\nand row 2 in Table 2, we can find that adding SGMS greatly\nimproves the results on both two metrics (I-AUROC by 3.8%\nand AUPRO by 11.7%), indicating that the node features\nretained through SGMS are more effective. Comparing row\n\n\fCable\nGland\n\nBagel\n\nCarrot\n\nCookie\n\nDowel\n\nFoam\n\nPeach\n\nPotato\n\nRope\n\nTire\n\nCan. C.\n\nCho. C.\n\nCho. P.\n\nConf.\n\nGum. B.\n\nHaz. T.\n\nLic. S.\n\nLollip.\n\nMarsh.\n\nPep. C.\n\nRGB\n\nPC\n\nM3DM\n\nCFM\n\nOurs\n\nGT\n\nFigure 5: Visualization of anomaly scores for each category of MVTec 3D-AD and Eyecandies (in multimodal, 1-shot setting).\n\nI-AUROC\nP-AUROC\nAUPRO\n\n60\n50\n\n2\n\n4\n\n6\n\n8\n\n10\n\nAUPRO\n\nLayer=0\nLayer=1\nLayer=2\nLayer=3\nLayer=4\nLayer=5\nLayer=6\n\n84\n82\n80\n78\n0.0\n\n0.1\n\n0.2\n\n0.3\n\n0.4\n\n0.5\n\n0.6\n\n0.7\n\n0.8\n\n(c) Retention Coefficient\n\n62.5\n60.0\n\n12\n\n(a) Number of Hyperedges\n\n86\n\n65.0\n\n57.5\n\n0.9\n\n1.0\n\n0.0\n\n0.1\n\n0.2\n\n0.3\n\n0.4\n\n0.5\n\n0.6\n\n0.7\n\n0.8\n\n0.9\n\n(b) Retention Coefficient\n\n1.0\n\n72.0\n\nI-AUROC\n\n70\n\nAnalysis of Bi-TF-MP Parameter\n\nLayer=0\nLayer=1\nLayer=2\nLayer=3\nLayer=4\nLayer=5\nLayer=6\n\n67.5\n\n86.06\n86.04\n\n71.9\n\nAUPRO\n\n70.0\n\n80\n\nI-AUROC\n\n72.5\n\n90\n\nSCORES\n\n100\n\n86.02\n71.8\n\nI-AUROC\nAUPRO\n\n71.7\n0\n\n1\n\n2\n\n3\n\n4\n\n5\n\n(d) Number of Bi-TF-MP layers L\n\n86.00\n85.98\n\n6\n\nFigure 6: Visualization of the impact of parameters in SAHC\nand Bi-TF-MP on anomaly detection and localization performance.\n\n2 and row 3, we observe that HGMS further enhances detection and segmentation performance (I-AUROC by 0.7% and\nAUPRO by 1.2%). Our full model is shown in row 4 in Table\n2, and compared with row 3 we have 0.4% I-AUROC and\n0.1% AUPRO improvement, demonstrating that Bi-TF-MP\nreduces the distribution gap between test sample nodes and\nmemory bank nodes.\n\nAnalysis of SAHC Parameter\nWhen constructing the hypergraph, the number of hyperedges\ndetermines the ability of the hypergraph to capture the structural information of the samples. Too few hyperedges cause\ndifferent structures to be treated as similar, while too many\nhyperedges force the same structure to be split apart. We\nexplore the impact of different numbers of hyperedges in\nSAHC on anomaly detection and localization performance.\nAs shown in Figure 6 (a), we conducted experiments in a\nmultimodal, 1-shot setting on MVTec 3D-AD, and calculated\nthe mean I-AUROC, P-AUROC, and AUPRO scores across\nall classes. We found that when the number of hyperedges is\n4, I-AUROC reaches its highest; when the number of hyperedges is 8, P-AUROC and AUPRO reach their highest. This\nshows that fewer hyperedges help improve anomaly detection performance, while more hyperedges benefit anomaly\nlocalization performance. We give a class-specific analysis\nin Appendix.\n\nDuring message passing, the retention coefficient α and the\nnumber of Bi-TF-MP layers L respectively determine the\nlevel of retention of the own information of nodes and the\nrange of information exchange with neighboring nodes. We\nexplore the impact of different α and L values in Bi-TF-MP\non anomaly detection and localization performance. We conducted experiments in a multimodal, 1-shot setting on MVTec\n3D-AD and calculated the mean I-AUROC and AUPRO\nscores across all classes. As shown in Figure 6 (b) and (c),\nwe found that when α = 0.9, both I-AUROC and AUPRO\nreached their highest. This indicates that slight message passing can alleviate the distribution gap between test sample\nnodes and memory bank nodes. Furthermore, as shown in\nFigure 6 (d), when α = 0.9, anomaly detection and localization performance were best at L = 1, and the performance\nbecame stable as L increased. We give a detailed analysis of\nmessage passing parameters in Appendix.\n\nConclusion\nIn this paper, we propose a hypergraph-based few-shot multimodal industrial anomaly detection method. We use hypergraphs to extract intra-class structural commonality of\nsamples to guide the construction and search of the memory\nbank. We introduce semantic-aware hypergraph construction\nand structure-guided memory sampling to build and compress a memory bank that contains structural information.\nWe then use bidirectional training-free hypergraph message\npassing to reduce the distribution gap between test samples\nand the memory bank. Finally, we design hyperedge-guided\nmemory search to reduce the false positive rate in anomaly\ndetection. Our method outperforms the state-of-the-art results\non MVTec 3D-AD and Eyecandies in few-shot settings. We\nhope our work will be helpful for future research.\n\nAcknowledgments\nThis work was supported by National Natural Science Foundation of China (No.62576109, 62072112, 62406075), and by\nNational Key Research and Development Program of China\n(2023YFC3604802).\n\n\fReferences\nAngiulli, F.; and Pizzuti, C. 2002. Fast outlier detection\nin high dimensional spaces. In European conference on\nprinciples of data mining and knowledge discovery, 15–27.\nSpringer.\nBergmann, P.; Batzner, K.; Fauser, M.; Sattlegger, D.; and\nSteger, C. 2021a. The MVTec anomaly detection dataset: a\ncomprehensive real-world dataset for unsupervised anomaly\ndetection. International Journal of Computer Vision, 129(4):\n1038–1059.\nBergmann, P.; Fauser, M.; Sattlegger, D.; and Steger, C. 2020.\nUninformed students: Student-teacher anomaly detection\nwith discriminative latent embeddings. In Proceedings of\nthe IEEE/CVF conference on computer vision and pattern\nrecognition, 4183–4192.\nBergmann, P.; Jin, X.; Sattlegger, D.; and Steger, C. 2021b.\nThe mvtec 3d-ad dataset for unsupervised 3d anomaly detection and localization. arXiv preprint arXiv:2112.09045.\nBezdek, J. C.; Ehrlich, R.; and Full, W. 1984. FCM: The\nfuzzy c-means clustering algorithm. Computers &amp; geosciences, 10(2-3): 191–203.\nBonfiglioli, L.; Toschi, M.; Silvestri, D.; Fioraio, N.; and\nDe Gregorio, D. 2022. The eyecandies dataset for unsupervised multimodal anomaly detection and localization. In\nProceedings of the Asian Conference on Computer Vision,\n3586–3602.\nBreunig, M. M.; Kriegel, H.-P.; Ng, R. T.; and Sander, J. 2000.\nLOF: identifying density-based local outliers. In Proceedings of the 2000 ACM SIGMOD international conference on\nManagement of data, 93–104.\nCaron, M.; Touvron, H.; Misra, I.; Jégou, H.; Mairal, J.;\nBojanowski, P.; and Joulin, A. 2021. Emerging properties\nin self-supervised vision transformers. In Proceedings of\nthe IEEE/CVF international conference on computer vision,\n9650–9660.\nChang, A. X.; Funkhouser, T.; Guibas, L.; Hanrahan, P.;\nHuang, Q.; Li, Z.; Savarese, S.; Savva, M.; Song, S.; Su,\nH.; et al. 2015. Shapenet: An information-rich 3d model\nrepository. arXiv preprint arXiv:1512.03012.\nChen, R.; Xie, G.; Liu, J.; Wang, J.; Luo, Z.; Wang, J.; and\nZheng, F. 2023. Easynet: An easy network for 3d industrial anomaly detection. In Proceedings of the 31st ACM\nInternational Conference on Multimedia, 7038–7046.\nChu, Y.-M.; Liu, C.; Hsieh, T.-I.; Chen, H.-T.; and Liu, T.-L.\n2023. Shape-guided dual-memory learning for 3D anomaly\ndetection. In International Conference on Machine Learning,\n6185–6194. PMLR.\nCostanzino, A.; Ramirez, P. Z.; Lisanti, G.; and Di Stefano,\nL. 2024. Multimodal industrial anomaly detection by crossmodal feature mapping. In Proceedings of the IEEE/CVF\nConference on Computer Vision and Pattern Recognition,\n17234–17243.\nCrosby, T. 1994. How to detect and handle outliers.\nDefard, T.; Setkov, A.; Loesch, A.; and Audigier, R. 2021.\nPadim: a patch distribution modeling framework for anomaly\ndetection and localization. In International Conference on\nPattern Recognition, 475–489. Springer.\n\nDeng, J.; Dong, W.; Socher, R.; Li, L.-J.; Li, K.; and FeiFei, L. 2009. Imagenet: A large-scale hierarchical image\ndatabase. In 2009 IEEE conference on computer vision and\npattern recognition, 248–255. Ieee.\nDosovitskiy, A.; Beyer, L.; Kolesnikov, A.; Weissenborn,\nD.; Zhai, X.; Unterthiner, T.; Dehghani, M.; Minderer, M.;\nHeigold, G.; Gelly, S.; et al. 2020. An image is worth 16x16\nwords: Transformers for image recognition at scale. arXiv\npreprint arXiv:2010.11929.\nFeng, Y.; You, H.; Zhang, Z.; Ji, R.; and Gao, Y. 2019. Hypergraph neural networks. In Proceedings of the AAAI conference on artificial intelligence, volume 33, 3558–3565.\nFixelle, J. 2025. Hypergraph Vision Transformers: Images\nare More than Nodes, More than Edges. arXiv preprint\narXiv:2504.08710.\nGao, Y.; Feng, Y.; Ji, S.; and Ji, R. 2022. HGNN+: General\nhypergraph neural networks. IEEE Transactions on Pattern\nAnalysis and Machine Intelligence, 45(3): 3181–3199.\nGu, Z.; Zhu, B.; Zhu, G.; Chen, Y.; Tang, M.; and Wang,\nJ. 2024. Anomalygpt: Detecting industrial anomalies using\nlarge vision-language models. In Proceedings of the AAAI\nConference on Artificial Intelligence, volume 38, 1932–1940.\nGudovskiy, D.; Ishizaka, S.; and Kozuka, K. 2022. Cflow-ad:\nReal-time unsupervised anomaly detection with localization\nvia conditional normalizing flows. In Proceedings of the\nIEEE/CVF Winter Conference on Applications of Computer\nVision, 98–107.\nHan, Y.; Wang, P.; Kundu, S.; Ding, Y.; and Wang, Z. 2023.\nVision hgnn: An image is more than a graph of nodes. In\nProceedings of the IEEE/CVF International Conference on\nComputer Vision, 19878–19888.\nHorwitz, E.; and Hoshen, Y. 2023. Back to the feature: classical 3d features are (almost) all you need for 3d anomaly\ndetection. In Proceedings of the IEEE/CVF Conference on\nComputer Vision and Pattern Recognition, 2968–2977.\nHuang, C.; Guan, H.; Jiang, A.; Zhang, Y.; Spratling, M.;\nand Wang, Y.-F. 2022. Registration based few-shot anomaly\ndetection. In European Conference on Computer Vision,\n303–319. Springer.\nLee, M.; and Choi, J. 2024. Text-Guided Variational Image Generation for Industrial Anomaly Detection and Segmentation. In Proceedings of the IEEE/CVF Conference on\nComputer Vision and Pattern Recognition, 26519–26528.\nLee, S.; Lee, S.; and Song, B. C. 2022. Cfa: Coupledhypersphere-based feature adaptation for target-oriented\nanomaly localization. IEEE Access, 10: 78446–78454.\nLi, C.; Li, T.; Hu, X.; Luo, D.; and Jin, T. 2025. DVHGNN:\nMulti-Scale Dilated Vision HGNN for Efficient Vision\nRecognition. arXiv preprint arXiv:2503.14867.\nLi, C.-L.; Sohn, K.; Yoon, J.; and Pfister, T. 2021. Cutpaste: Self-supervised learning for anomaly detection and\nlocalization. In Proceedings of the IEEE/CVF conference on\ncomputer vision and pattern recognition, 9664–9674.\nLi, X.; Zhang, Z.; Tan, X.; Chen, C.; Qu, Y.; Xie, Y.; and\nMa, L. 2024. Promptad: Learning prompts with only normal\nsamples for few-shot anomaly detection. In Proceedings of\n\n\fthe IEEE/CVF Conference on Computer Vision and Pattern\nRecognition, 16838–16848.\nLiu, F. T.; Ting, K. M.; and Zhou, Z.-H. 2008. Isolation forest.\nIn 2008 eighth ieee international conference on data mining,\n413–422. IEEE.\nLiu, Z.; Zhou, Y.; Xu, Y.; and Wang, Z. 2023. Simplenet: A\nsimple network for image anomaly detection and localization.\nIn Proceedings of the IEEE/CVF Conference on Computer\nVision and Pattern Recognition, 20402–20411.\nMcInnes, L.; Healy, J.; and Melville, J. 2018. Umap: Uniform manifold approximation and projection for dimension\nreduction. arXiv preprint arXiv:1802.03426.\nPang, Y.; Wang, W.; Tay, F. E.; Liu, W.; Tian, Y.; and Yuan, L.\n2022. Masked autoencoders for point cloud self-supervised\nlearning. In European conference on computer vision, 604–\n621. Springer.\nQi, C. R.; Yi, L.; Su, H.; and Guibas, L. J. 2017. Pointnet++:\nDeep hierarchical feature learning on point sets in a metric\nspace. Advances in neural information processing systems,\n30.\nRoth, K.; Pemula, L.; Zepeda, J.; Schölkopf, B.; Brox, T.; and\nGehler, P. 2022. Towards total recall in industrial anomaly\ndetection. In Proceedings of the IEEE/CVF Conference on\nComputer Vision and Pattern Recognition, 14318–14328.\nRudolph, M.; Wehrbein, T.; Rosenhahn, B.; and Wandt, B.\n2023. Asymmetric student-teacher networks for industrial\nanomaly detection. In Proceedings of the IEEE/CVF Winter\nConference on Applications of Computer Vision, 2592–2602.\nSchölkopf, B.; Platt, J. C.; Shawe-Taylor, J.; Smola, A. J.;\nand Williamson, R. C. 2001. Estimating the support of a\nhigh-dimensional distribution. Neural computation, 13(7):\n1443–1471.\nShyu, M.-L.; Chen, S.-C.; Sarinnapakorn, K.; and Chang, L.\n2003. A novel anomaly detection scheme based on principal\ncomponent classifier. In Proceedings of the IEEE foundations\nand new directions of data mining workshop, 172–179. IEEE\nPress.\nTang, B.; Liu, Z.; Jiang, K.; Chen, S.; and Dong, X. 2024.\nTraining-Free Message Passing for Learning on Hypergraphs.\narXiv preprint arXiv:2402.05569.\nTang, J.; Chen, Z.; Fu, A. W.-C.; and Cheung, D. W. 2002.\nEnhancing effectiveness of outlier detections for low density\npatterns. In Advances in Knowledge Discovery and Data\nMining: 6th Pacific-Asia Conference, PAKDD 2002 Taipei,\nTaiwan, May 6–8, 2002 Proceedings 6, 535–548. Springer.\nWang, Y.; Peng, J.; Zhang, J.; Yi, R.; Wang, Y.; and Wang, C.\n2023. Multimodal Industrial Anomaly Detection via Hybrid\nFusion. In Proceedings of the IEEE/CVF Conference on\nComputer Vision and Pattern Recognition, 8032–8041.\nWu, J.-C.; Chen, D.-J.; Fuh, C.-S.; and Liu, T.-L. 2021. Learning unsupervised metaformer for anomaly detection. In Proceedings of the IEEE/CVF International Conference on Computer Vision, 4369–4378.\nXie, G.; Wang, J.; Liu, J.; Zheng, F.; and Jin, Y. 2023. Pushing\nthe limits of fewshot anomaly detection in industry vision:\nGraphcore. arXiv preprint arXiv:2301.12082.\n\nYu, J.; Zheng, Y.; Wang, X.; Li, W.; Wu, Y.; Zhao, R.; and\nWu, L. 2021. Fastflow: Unsupervised anomaly detection\nand localization via 2d normalizing flows. arXiv preprint\narXiv:2111.07677.\nZavrtanik, V.; Kristan, M.; and Skočaj, D. 2021a. Draem-a\ndiscriminatively trained reconstruction embedding for surface anomaly detection. In Proceedings of the IEEE/CVF\nInternational Conference on Computer Vision, 8330–8339.\nZavrtanik, V.; Kristan, M.; and Skočaj, D. 2021b. Reconstruction by inpainting for visual anomaly detection. Pattern\nRecognition, 112: 107706.\nZhang, X.; Li, S.; Li, X.; Huang, P.; Shan, J.; and Chen, T.\n2023. DeSTSeg: Segmentation Guided Denoising StudentTeacher for Anomaly Detection. In Proceedings of the\nIEEE/CVF Conference on Computer Vision and Pattern\nRecognition, 3914–3923.\nZhang, X.; Xu, M.; and Zhou, X. 2024. RealNet: A Feature\nSelection Network with Realistic Synthetic Anomaly for\nAnomaly Detection. arXiv preprint arXiv:2403.05897.\nZhao, H.; Jiang, L.; Jia, J.; Torr, P. H.; and Koltun, V. 2021.\nPoint transformer. In Proceedings of the IEEE/CVF international conference on computer vision, 16259–16268.\nZhou, D.; Huang, J.; and Schölkopf, B. 2006. Learning\nwith hypergraphs: Clustering, classification, and embedding.\nAdvances in neural information processing systems, 19.\nZhu, J.; and Pang, G. 2024. Toward generalist anomaly detection via in-context residual learning with few-shot sample\nprompts. In Proceedings of the IEEE/CVF Conference on\nComputer Vision and Pattern Recognition, 17826–17836.\n\n\fAppendix\nOverview\nThe appendix includes the following sections to supplement\nthe theory and experiments in the main text and to highlight\nthe limitations of our method.\n— Sec. A shows the impact of message passing on hypergraph nodes.\n— Sec. B shows the data processing and feature extraction\nprocess in our experiment.\n— Sec. C shows the comparison of different hypergraph\nconstruction methods.\n— Sec. D shows more visualizations on MVTec 3D-AD and\nEyecandies.\n— Sec. E shows more results on MVTec 3D-AD at different\nnumbers of hyperedges.\n— Sec. F shows more ablation study results on MVTec 3DAD.\n— Sec. G shows the limitations of our method.\n\nImpact of message passing on hypergraph\nnodes\nWe use bidirectional training-free hypergraph message passing (Bi-TF-MP) to reduce the distribution gap between test\nsample node features and memory bank node features. To\nquantitatively evaluate the impact of Bi-TF-MP on test sample nodes, we introduce the following two metrics:\n• Average Nearest Neighbor Distance (ANND ↓), measures\nhow close, on average, each test node lies to its closest\nnode in the memory set, with lower values indicating\nbetter coverage and similarity.\n• Procrustes Similarity (PCS ↑), measures how closely the\ntransformed test-node cloud can be optimally rotated and\nuniformly scaled to match the original, with 1 indicating\nperfect geometric preservation and 0 indicating complete\ndistortion.\nThe calculation methods for these two metrics are:\nN\n\nANND =\n\n\u0001\n1 X\nmin d xti , xm\nj\n1≤j≤A\nN i=1\n∥Ỹ−sX̃R∥2F\n,\n∥Ỹ∥2F\n⊤\n⊤\n\n(6)\n\nPCS = 1 −\nR = UV⊤ ,\n\nUΣV = Ỹ X̃,\n\ns = ∥tr(Σ)\nX̃∥2\n\n(7)\n\nF\n\nt\n\nt⊤\n\nt′\n\nt′ ⊤\n\nwhere X̃ = X − 1x̄ and Ỹ = X − 1x̄ . Table 3\nshows the quantitative impact of Bi-TF-MP on test sample\nnodes under different values of α and L. We observe that as α\ndecreases, less information from the original node is retained,\nand the distribution gap between the test sample nodes and\nmemory bank nodes becomes smaller after Bi-TF-MP. However, this also introduces a negative effect — the test sample\nnodes become more distorted, which hinders effective search\nfrom the memory bank. Through experiments, we identify a\n\nbalance between reducing distribution discrepancy and preserving node integrity, with optimal performance achieved at\nα = 0.9 and L = 1.\nTo visually show the impact of message passing on node\nfeatures, we apply UMAP (McInnes, Healy, and Melville\n2018) to reduce the dimension of both the test sample node\nfeatures and memory bank node features, and visualize the\nnode features with α varying from 1 to 0 (L = 1), as shown\nin Figure 7. A larger α indicates more retention of the own\ninformation of the node. We find that a larger α effectively\nmitigates the distribution gap between test sample nodes and\nmemory bank nodes without distorting their original distributions. In contrast, a smaller α causes nodes to overly absorb\ninformation from neighbor nodes, leading to the distortion of\ntheir original feature distributions.\n\nData Processing and Feature Extraction\nFor RGB images, we resize them to 224 × 224 using bilinear\ninterpolation and normalize the resulting tensors. Because\nDINO (Caron et al. 2021) pretraining method effectively\nfuses local and global information, we extract patch features\nwith a Vision Transformer (ViT) (Dosovitskiy et al. 2020)\nmodel trained using DINO. Specifically, we adopt a ViT-B/8\narchitecture and employ the model that was pretrained on\nImageNet (Deng et al. 2009) to obtain more stable patch\nrepresentations. The model recieves an input image of size\n224 × 224 and divides it into image blocks of size 8 × 8, and\ngenerating 28 × 28 non-overlapping patches, each patch is\nencoded as a feature embedding with 768 dimensions. These\npatch features exhibit strong discriminative power and are\nwell suited for downstream unsupervised anomaly detection\ntasks.\nFor 3D point clouds, we resize the point cloud tensors to\n224 × 224 with nearest neighbor interpolation method, ensuring that their spatial structure aligns with the image input\nresolution. Refer to M3DM (Wang et al. 2023), we use a Point\nTransformer (Zhao et al. 2021; Pang et al. 2022) pretrained\non ShapeNet dataset (Chang et al. 2015) to extract patch-level\npoint cloud features. After removing zero points, we apply\nfarthest point sampling (FPS) (Qi et al. 2017) to generate\nM = 1024 groups, each with S = 128 points. These point\ngroups are processed by a local encoder and then passed to a\nglobal attention module composed of multiple Transformer\nblocks. We concatenate the 3, 7, 11 layer output to obtain\npoint cloud features with 1152 dimensions. To match the\nsize of the RGB image features, we employ adaptive average\npooling to resize the point cloud feature maps to 28 × 28.\nTo mitigate background interference during detection, we\nfollow AST (Rudolph et al. 2023) and use 3D point clouds to\nextract foreground masks. We first obtain the depth channel of\nthe point cloud, and fill missing depth values with 3 iterations\nof neighborhood mean interpolation after normalization. The\nbackground is estimated from the corner depth values, the\ndistances between all other areas and this background are\ncomputed, and extract the foreground mask by setting the\nthreshold to 7 × 10−3 .\n\n\fTable 3: ANND and PCS scores of test sample nodes before and after Bi-TF-MP under different values of L and α.\nMetrics Layer α = 0.9\nNo Message Passing\nANND\nPCS\nBi-TF-MP\n52.18\n1\n2\n52.12\n3\n52.12\nANND\n4\n52.12\n5\n52.12\n6\n52.12\n99.95\n1\n2\n99.95\n3\n99.95\nPCS\n4\n99.95\n5\n99.95\n6\n99.95\n\nα = 0.8\n\nα = 0.7\n\nα = 0.6\n\nα = 0.5\n\nα = 0.4\n\nα = 0.3\n\nα = 0.2\n\nα = 0.1\n\nα = 0.0\n\n44.40\n42.47\n42.05\n41.97\n41.97\n41.98\n96.15\n92.93\n91.69\n91.30\n91.22\n91.24\n\n43.33\n41.17\n40.77\n40.74\n40.80\n40.85\n94.47\n88.45\n85.34\n83.99\n83.54\n83.45\n\n42.35\n40.10\n39.88\n40.06\n40.27\n40.45\n92.29\n81.50\n74.16\n70.07\n68.00\n66.93\n\n41.46\n39.34\n39.57\n40.09\n40.39\n40.53\n89.58\n70.92\n55.09\n44.51\n37.71\n33.28\n\n53.67\n100.00\n50.75\n50.51\n50.49\n50.49\n50.49\n50.49\n99.80\n99.77\n99.77\n99.76\n99.77\n99.76\n\n49.36\n48.86\n48.79\n48.78\n48.78\n48.78\n99.50\n99.39\n99.38\n99.38\n99.38\n99.38\n\n48.02\n47.18\n47.04\n47.02\n47.01\n47.01\n99.03\n98.71\n98.67\n98.66\n98.66\n98.67\n\n46.74\n45.53\n45.29\n45.24\n45.23\n45.23\n98.35\n97.59\n97.44\n97.41\n97.41\n97.42\n\n45.53\n43.94\n43.60\n43.52\n43.51\n43.51\n97.41\n95.77\n95.32\n95.22\n95.22\n95.23\n\nTable 4: I-AUROC/AUPRO scores for anomaly detection and localization of all categories of MVTec 3D-AD in 1-shot setting\nunder different numbers of hyperedges.\nHyperedge Num\n2\n4\n6\n8\n10\n12\n\nBagel\n59.1/84.2\n78.9/85.2\n76.7/85.5\n79.6/87.9\n77.3/86.5\n75.6/86.5\n\nCable Gland\n69.5/79.6\n68.6/79.5\n67.3/80.0\n69.3/80.2\n70.3/80.1\n69.6/80.0\n\nCarrot\n71.5/95.6\n72.1/95.6\n69.8/95.6\n70.5/95.6\n69.9/95.6\n70.9/95.7\n\nCookie\n86.3/83.8\n81.2/86.2\n69.9/86.1\n81.1/88.9\n80.4/87.0\n76.6/87.9\n\nDowel\n63.2/82.1\n62.8/82.0\n63.6/82.1\n64.0/82.0\n62.5/82.0\n59.9/82.0\n\nComparison of Hypergraph Construction\nMethods\nPrevious methods (Han et al. 2023) use Fuzzy C-Means\n(Bezdek, Ehrlich, and Full 1984) to construct hypergraphs\nfor images, but Fuzzy C-Means performs poorly on singlesemantic industrial images. We perform both quantitative\nand qualitative comparisons between our SAHC and Fuzzy\nC-Means. According to HgVT (Fixelle 2025), we use the following four metrics to evaluate the quality of the constructed\nhypergraph (↑ means the higher the better, ↓ means the lower\nthe better):\n\nFoam\n62.8/68.7\n72.8/70.3\n74.7/72.1\n72.7/71.5\n64.4/69.5\n73.1/71.0\n\nPeach\n69.9/93.4\n84.0/93.3\n75.3/93.4\n82.1/94.1\n82.8/93.8\n84.2/94.2\n\nPotato\n60.2/94.3\n60.3/94.2\n57.3/94.3\n55.7/94.3\n58.9/94.3\n58.9/94.0\n\nRope\n83.4/87.8\n83.5/88.1\n84.5/88.0\n84.6/87.9\n82.5/88.1\n82.7/88.1\n\nTire\n48.7/86.5\n56.0/86.3\n51.5/85.1\n52.3/86.6\n40.1/84.0\n45.4/86.3\n\nMean\n67.5/85.6\n72.0/86.1\n69.1/86.2\n71.2/86.9\n68.9/86.1\n69.7/86.6\n\nin the hypergraph constructed using SAHC, and (b) is the\nvisualization of the hyperedges in the hypergraph constructed\nusing Fuzzy C-Means. Visually, our SAHC constructs a more\nevenly distributed hypergraph, better capturing the structure\nof the samples. We find that Fuzzy C-Means performs better\non multi-semantic images in open-world scenarios. However,\non single-semantic industrial images, even when Fuzzy CMeans is applied only to foreground patches during comparison, it still fails to effectively distinguish highly similar patch\nfeatures. This indicates that for single-semantic industrial images, it is still necessary to use a hard clustering algorithm to\nfirst determine the hyperedge centers and then assign nodes\nbased on similarity.\n\n• Hyperedge Entropy (HE ↓), measures the concentration\nof vertex features within each hyperedge.\n• Intra-Cluster Similarity (ICS ↑), measures the cohesion\nof vertex features within each hyperedge.\n• Inter-Cluster Distance (ICD ↑), measures how distinct\ndifferent hyperedges are from one another.\n• Silhouette Score (SIL ↑), measures how well each vertex\nis clustered with respect to its assigned hyperedge and\nnearby hyperedges.\n\nWe supplement more segmentation results for each category\non MVTec 3D-AD and Eyecandies (including 1-shot, 2-shot,\nand 4-shot results) in Figure 10.\n\nWe use Fuzzy C-Means to construct hypergraphs only on\nforeground nodes and compare the constructed hypergraphs\nwith those constructed using our SAHC. As shown in Figure\n8, we calculated four scores for the hypergraphs constructed\nusing SAHC and Fuzzy C-Means across all categories in\nMVTec 3D-AD. Overall, the hypergraphs constructed using\nSAHC have a lower HE and higher ICS, ICD, and SIL.\nWe also visualize the hyperedge distribution of the hypergraphs constructed using SAHC and Fuzzy C-Means. As\nshown in Figure 9, (a) is the visualization of the hyperedges\n\nTable 4 presents the anomaly detection (I-AUROC) and\nanomaly localization (AUPRO) results for all categories in\nMVTec 3D-AD under different numbers of hyperedges, as\ndiscussed in Section 4.5.\nAlthough the visualization of the impact of parameters in\nSAHC (see Section 4.5 for details) does not show a significant\nimpact of the number of hyperedges on anomaly detection\nand localization performance, we can observe from Table 4\nthat different numbers of hyperedges have a significant effect\non the anomaly detection and localization performance for\n\nMore Visualizations\n\nMore Results at Different Numbers of\nHyperedges\n\n\fTable 5: I-AUROC/AUPRO scores for anomaly detection and localization of all categories of MVTec 3D-AD in 1-shot setting.\nSGMS\n✓\n✓\n✓\n\nModules\nHGMS Bi-TF-MP\n✓\n✓\n\n✓\n\nBagel\n\nCable Gland\n\nCarrot\n\nCookie\n\nDowel\n\nFoam\n\nPeach\n\nPotato\n\nRope\n\nTire\n\nMean\n\n72.1/82.6\n77.2/81.2\n78.1/84.3\n78.9/85.2\n\n67.7/79.3\n69.5/79.1\n70.1/79.5\n68.7/79.5\n\n68.5/90.7\n71.0/95.6\n71.0/95.6\n72.2/95.6\n\n79.5/85.3\n80.1/81.8\n80.1/85.7\n81.2/86.2\n\n55.1/78.0\n62.9/81.2\n63.3/82.0\n62.9/82.0\n\n67.1/53.7\n70.4/73.7\n71.3/82.0\n72.8/70.3\n\n85.5/90.5\n84.4/92.0\n84.5/71.3\n83.9/93.3\n\n55.9/55.9\n59.0/94.1\n60.5/92.9\n60.4/94.2\n\n86.2/70.8\n83.2/85.6\n82.8/94.1\n83.5/88.1\n\n48.2/74.0\n54.6/85.7\n55.1/88.0\n55.8/86.4\n\n68.6/76.1\n71.2/85.0\n71.7/86.0\n72.0/86.1\n\ndifferent class samples. For example, in Section 4.5, we find\nthat the best performance in anomaly detection and localization occurs when the number of hyperedges is 4 or 8. However, in Table 4, the Cable Gland, Cookie, Foam, and Peach\nclasses achieve the best anomaly detection performance with\n10, 2, 6, and 12 hyperedges, respectively. This shows that\nthe structural complexity of different classes within the same\ndataset varies, and different numbers of hyperedges are beneficial for capturing structural commonalities of varying levels\nof complexity.\n\nMore Ablation Study Results\nTable 5 presents the anomaly detection (I-AUROC) and\nanomaly localization (AUPRO) results for all categories in\nMVTec 3D-AD in Section 4.4.\n\nLimitations\nOur method has the following limitations, which we aim to\naddress in future work:\n• In full-shot setting, as the number of nodes stored in the\nmemory bank increases, the computational cost of updating hyperedge features in our SAHC grows accordingly,\nwith a complexity of O(N ∗ |E| ∗ dim). This makes our\nmethod currently unsuitable for scenarios involving largescale training data.\n• Our SAHC currently constructs hypergraphs only on RGB\nimages, while hypergraphs constructed on 3D point clouds\nfail to capture effective structural information. This indicates that our methods are not well-suited for point-based\nfeatures, and consequently, our approach is currently not\napplicable to pure 3D anomaly detection tasks.\n\n\f=1.0\n\n=0.9\n\n=0.8\n\n=0.7\n\n=0.6\n\n=0.5\n\n=0.4\n\n=0.3\n\n=0.2\n\n=0.1\n\n=0.0\n\nInit\n\nMemory Nodes\nMemory Hyperedges\n\nTest Nodes\nTest Hyperedges\n\nFigure 7: Distribution of test sample features and memory bank features before and after bidirectional training-free hypergraph\nmessage passing.\n\nbagel\ncable gland\n\ncarrot\ncookie\n\ndowel\nfoam\n\n2\nICD\n\nICS\n\n3\n\n8\n\n×10 4\n\n×10 2\n5\n\n1\n0\n\nrope\ntire\n\n7\n\nSIL\n\nHE\n\n4\n\n×10 1\n\npeach\npotato\n\nKC\n\nFC\n\n0\nKC\n\nFC\n\nFigure 8: Comparing hypergraph quality metrics on MVTec 3D-AD (FCM represent Fuzzy C-Means).\n\n\fBagel\n\nCable\nGland\n\nCarrot\n\nCookie\n\nDowel\n\nFoam\n\nPeach\n\nPotato\n\nRope\n\nTire\n\nRGB Image\n\nHyperedge 1\n\n(a)\n\nHyperedge 2\n\nHyperedge 3\n\nHyperedge 4\n\nRGB Image\n\nHyperedge 1\n\n(b)\n\nHyperedge 2\n\nHyperedge 3\n\nHyperedge 4\n\nFigure 9: Visualization of Hyperedges on MVTec 3D-AD.\n\n\fTest\nSample\nScore Map\n(1-shot)\nScore Map\n(2-shot)\nScore Map\n(4-shot)\nGround\nTruth\nTest\nSample\nScore Map\n(1-shot)\nScore Map\n(2-shot)\nScore Map\n(4-shot)\nGround\nTruth\n\nTest\nSample\nScore Map\n(1-shot)\nScore Map\n(2-shot)\nScore Map\n(4-shot)\nGround\nTruth\nTest\nSample\nScore Map\n(1-shot)\nScore Map\n(2-shot)\nScore Map\n(4-shot)\nGround\nTruth\n\nFigure 10: Visualization of anomaly segmentation results for each category of our method on MVTec 3D-AD and Eyecandies.\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"