"<!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>SiM3D: Single-instance Multiview Multimodal and Multisetup\n3D Anomaly Detection Benchmark\nAlex Costanzino1\n\nPierluigi Zama Ramirez1 Luigi Lella1 Matteo Ragaglia2\nGiuseppe Lisanti1 Luigi Di Stefano1\n1\n\nCVLab, University of Bologna, Italy\n\n2\n\nAlessandro Oliva2\n\nSACMI Imola, Italy\n\narXiv:2506.21549v2 [cs.CV] 1 Aug 2025\n\nhttps://alex-costanzino.github.io/SiM3D/\n\nAbstract\nWe propose SiM3D, the first benchmark considering the integration of multiview and multimodal information for comprehensive 3D anomaly detection and segmentation (ADS),\nwhere the task is to produce a voxel-based Anomaly Volume. Moreover, SiM3D focuses on a scenario of high interest in manufacturing: single-instance anomaly detection,\nwhere only one object, either real or synthetic, is available\nfor training. In this respect, SiM3D stands out as the first\nADS benchmark that addresses the challenge of generalising from synthetic training data to real test data. SiM3D\nincludes a novel multimodal multiview dataset acquired using top-tier industrial sensors and robots. The dataset features multiview high-resolution images (12 Mpx) and point\nclouds (∼7M points) for 333 instances of eight types of objects, alongside a CAD model for each type. We also provide manually annotated 3D segmentation GTs for anomalous test samples. To establish reference baselines for the\nproposed multiview 3D ADS task, we adapt prominent singleview methods and assess their performance using novel\nmetrics that operate on Anomaly Volumes.\n\n1. Introduction\nIn computer vision, anomaly detection and segmentation\n(ADS) involves identifying anomalous samples and localising their defects. This task is challenging in industrial contexts due to the variability and rarity of defects. Typically,\nADS in the industry follows a cold-start approach, where\ntraining is unsupervised and uses only defect-free (nominal) samples. Before the release of the MVTec AD dataset\nin 2019 [4], only a limited number of ADS methods were\nproposed, with just 9 publications in major computer vision\nconferences (e.g., CVPR, ECCV, ICCV, WACV) over the\nfive years before. The introduction of MVTec AD marked\na pivotal moment in the field, fostering the publication of\nroughly 172 papers in these venues over the next 5 years.\nThis dataset not only stimulated the development of several\nADS methods [14, 30, 36] but also promoted the creation\nof novel and more challenging benchmarks. For instance,\n\nFigure 1. SiM3D dataset overview. From top to bottom: the\nsingle-instance real and synthetic training samples for object Plastic Stool, one of the anomalous samples from the test set.\n\nMVTec 3D-AD and [6] and Eyecandies [7] introduced the\nfirst benchmarks deploying multimodal inputs to enhance\nADS performance. Then, PAD [45] and Real-IAD [35]\nintroduced novel benchmarks that leverage multiple RGB\nviews of objects. Although these benchmarks tackle various settings, two real industrial issues remain unaddressed.\nFirst, existing benchmarks have primarily addressed the\nproblem of 2D ADS. Consequently, current methods gen-\n\n\fDataset\n\nVenue &amp; Year\n\n2D\n\nNo. Pixels\n\n3D\n\nNo. Points\n\nScenario\n\nTrain\n\nTest\n\nSetup\n\nTask\n\nNo. Classes\n\nMVTec AD\nMVTec 3D-AD\nEyecandies\nMVTec LOCO AD\nVisA\nPAD\nReal3D-AD\nReal-IAD\nSiM3D\n\nCVPR 2019\nVISAPP 2021\nACCV 2022\nIJCV 2022\nECCV 2022\nNeurIPS 2023\nNeurIPS 2023\nCVPR 2024\n2025\n\nRGB Images\nRGB Images\nRGB Images\nRGB Images\nRGB Images\nRGB Images\n—\nRGB Images\nGrayscale Images\n\n490k – 1M\n160k – 810k\n262k\n1.28M – 2.05M\n1.5M\n12M\n—\n10M\n12M\n\n—\nXYZ Images\nDepths + Normals\n—\n—\n—\nPoint Clouds\n—\nPoint Clouds + Mesh\n\n—\n10k – 195k\n262k\n—\n—\n—\n43k – 2.68M\n—\n5M – 7M\n\nMulti-instance\nMulti-instance\nMulti-instance\nMulti-instance\nMulti-instance\nSingle-instance\nMulti-instance\nMulti-instance\nSingle-instance\n\nSingleview\nSingleview\nSingleview\nSingleview\nSingleview\nMultiview\nMultiview\nSingleview\nMultiview\n\nSingleview\nSingleview\nSingleview\nSingleview\nSingleview\nSingleview\nSingleview\nSingleview\nMultiview\n\nreal2real\nreal2real\nsynth2synth\nreal2real\nreal2real\nreal2real + synth2synth\nreal2real\nreal2real\nreal2real + synth2real\n\n2D\n2D\n2D\n2D\n2D\n2D\n3D\n2D\n3D\n\n15\n10\n10\n5\n12\n20\n12\n30\n8\n\nTable 1. Popular ADS benchmarks. Chronologically sorted, the sequence hints at a growing interest in multimodal and multiview data.\n\nFigure 2. 2D vs. 3D anomaly detection and segmentation. Typical ADS benchmarks rely on 2D Anomaly Maps and 2D groundtruths (left) to assess segmentation performance. SiM3D proposes\nto do so by 3D Anomaly Volumes and 3D ground-truths (right).\n\nerate Anomaly Maps, i.e., images that encode the likelihood of each pixel belonging to a defect, as shown in Fig. 2\n(left). However, many industrial applications require precise localisation of defects in the 3D space to allow automatic intervention, reducing waste and optimising production. Benchmarks relying on multimodal input data, like\nthose proposed in MVTec 3D-AD [6] and Eyecandies [7],\nrepresent progress toward this goal by providing 3D information for each pixel within an image. However, in these\nbenchmarks, ADS methods are still expected to provide as\noutput a 2D Anomaly Map, and objects are inspected from\na single viewpoint. For comprehensive 3D anomaly detection, we must observe an object in its entirety, utilising captures from multiple viewpoints to detect defects across the\nentire 3D space. This calls for methods capable of integrating multiview information to estimate the defect probability\nat each 3D location within an Anomaly Volume, as shown\nin Fig. 2 (right). Furthermore, as demonstrated by MVTec\n3D-AD and Eyecandies, these methods should process multimodal information, i.e., RGB images as well as 3D information, to achieve more reliable anomaly detection.\nSecondly, current benchmarks typically provide multiple training samples per object class to capture the variability across nominal objects. However, collecting many\nsamples – even nominal ones – can be costly and challenging. For example, line changeovers would demand acquiring new datasets and retraining models, both highly timeintensive processes. Additionally, collecting large datasets\nincreases the risk of errors, such as misjudged nominal samples, which may degrade model performance. Moreover,\nmanufactured objects typically closely resemble one another as they replicate the structure and materials of a syn-\n\nthetic CAD prototype. Thus, the variability across nominal samples of manufactured objects is frequently minimal,\nwith a single nominal item subsuming the information required to spot anomalies in other objects.\nThese considerations highlight the need for ADS techniques that may be effectively trained by a single nominal\nsample or even a synthetic prototype (e.g., an object’s CAD\nmodel) and then be able to generalise to other manufactured\nobjects to identify anomalous ones effectively. The ability\nto perform training by a single object instance, either real\nor synthetic, would avoid the need for extensive data collection, vastly facilitating the creation and adaptation of ADS\nmodels. Yet, most current benchmarks focus on multiple\ntraining instances setups, and none of the prior works consider challenging synthetic (training) to real (test) setups.\nTo fill all the gaps highlighted by our considerations\nand stimulate interest in the development of multimodal\nand multiview 3D ADS methods, we propose the Singleinstance Multiview Multimodal Multisetup dataset, dubbed\nSiM3D. The dataset contains a series of high-resolution\nscans of manufactured objects, which can be nominal or\nanomalous. Each scan consists of multiple views, each featuring a greyscale image, its corresponding point cloud (i.e.,\nmultimodal data), and the ground-truth acquisition pose.\nIn addition, an integrated 3D mesh is provided with each\nscan. For each object, a single nominal sample has been\nretained to be employed as a single-instance training set,\nwhile the remaining samples, both nominal and anomalous,\ncompose the test set. Moreover, to foster research on novel\napproaches that may address the domain gap between synthetic training data and real test samples in ADS, for each\nobject of our dataset, we also provide a synthetic scan, i.e.,\nwe deploy the available CAD model to obtain the same kind\nof data as in our high-resolution real scans, with images and\npoint clouds rendered from the same poses. An overview of\nthe proposed dataset is depicted in Fig. 1.\nBased on our novel dataset, we create the first benchmark for 3D anomaly detection, where the task is to predict anomaly scores within a voxelized 3D Anomaly Volume rather than a 2D Anomaly Map (Fig. 2). Peculiarly,\nour benchmark includes two setups based on the domain of\nthe data available for training: in the real2real setup,\na model is given access to a single nominal instance of an\nobject (Fig. 1, top), while in synth2real the same kind\n\n\fof training data are obtained from the CAD model of the\nobject (Fig. 1, centre). We adapt prominent ADS methods –\nboth unimodal and multimodal – for the proposed task and\nevaluate them on our benchmark. To assess segmentation\nperformance, we provide accurate 3D ground-truths (Fig. 2)\nand extend ADS metrics to operate on anomaly scores and\nground-truths specified on 3D voxel grids. Our experimental findings highlight the open challenges in the field and\noffer insights into possible future directions.\n\n2. Related Work\nThe MVTec AD [4] dataset significantly boosted anomaly\ndetection research, inspiring new techniques and benchmarks for various challenges. MVTec AD provides a training set containing only nominal images and a test set that\nincludes nominal and anomalous ones for several object categories. This unsupervised setup exemplifies many realworld applications in which anomalous objects are challenging to collect, and thus, it has also been adopted by\nmore recent ADS benchmarks. Among them, MVTec\nLOCO [5] presents a challenging scenario with both structural anomalies (e.g., dents, holes) and logical anomalies\n(e.g., incorrect object combination). VisA [46] introduced\nhigh-resolution images of complex scenes containing multiple instances of the same object. However, certain defects may be visible only by analysing objects’ 3D geometry. For this reason, multimodal datasets, such as MVTec\n3D-AD [6] and Eyecandies [7] include 3D data alongside\nimages. For each sample in the dataset, MVTec 3D-AD\nprovides images and pixel-aligned XYZ information captured by a 3D sensor, while Eyecandies contains synthetic\nimages with pixel-aligned depths and normals. Recently,\nPAD [45] addressed pose-agnostic ADS with the first multiview dataset (MAD), featuring images of objects from various viewpoints. In PAD, training samples are multiview\nRGB images with known poses, while test samples are singleview RGB images with unknown poses. MAD includes\nboth synthetic and real objects, but its benchmarks do not\nexplore synthetic-to-real generalisation. Real-IAD [35] introduced a large-scale multiview dataset with RGB images\ncovering various defect sizes. Eventually, Real3D-AD [21]\nis the first point cloud anomaly detection benchmark where\nthe task is to predict an anomaly score for each point. It uses\nfront-and-back scans of nominal objects for training and a\nsingleview point cloud for testing.\nAs shown in Tab. 1, the proposed SiM3D benchmark\noffers several outstanding features, including very-highresolution images (12 Mpx), large point clouds/meshes containing 5-7 million elements captured with high-precision\n3D sensors. Moreover, it is designed for a highly relevant\nmanufacturing scenario: single-instance anomaly detection,\nwhere only one object is available for model training. To\npromote research toward even more cost-effective scenar-\n\nios, ours is also the only benchmark that addresses the challenge of generalising from synthetic training data to real test\ndata. Finally, SiM3D stands out as the first benchmark that\nconsiders integrating multiview information at test time for\ncomprehensive 3D anomaly detection, where the task consists of outputting a voxel-based Anomaly Volume.\nADS Methods. Following the setup defined in the MVTecAD benchmark, most ADS methods [22] are designed to\nestimate 2D anomaly maps from a single image [2, 3, 9,\n10, 13, 15, 16, 19, 20, 23, 26, 27, 27–29, 31, 34, 37–\n41, 43, 44]. One of the most popular methods is PatchCore [30], which uses feature extractors pre-trained on large\ndatasets [8, 17, 24] to gather features from nominal samples\ninto a memory bank. At test time, input sample features\nare compared to this bank to detect anomalies. Another\nmore recent yet popular approach, EfficientAD [1], uses a\nlightweight feature extractor and a student-teacher model to\nidentify anomalies based on feature prediction discrepancy.\nThe introduction of the MVTec 3D-AD benchmark has led\nto the development of several multimodal approaches that\nuse images and 3D data to generate 2D anomaly maps\n[14, 18, 32, 36]. Among them, BTF [18] is a memory bank\napproach inspired by PatchCore, in which each element is\nthe concatenation of 2D and 3D features extracted by a\npre-trained image backbone and a traditional point cloud\ndescriptor, i.e., FPFH [33], respectively. M3DM [36] improves BTF using powerful transformer-based pre-trained\nbackbones, such as DINO-v1[8] and Point-MAE [25], to\nextract features from RGB images and point clouds. It also\nlearns to fuse 2D and 3D features into multimodal features.\nDuring inference, a trained One-Class SVM learns to aggregate modality-specific scores. AST [32] follows a TeacherStudent paradigm, in which the Teacher leverages Normalizing Flows to model the multimodal features distribution,\nwhile the Student employs a feed-forward network to model\nsuch distribution. This asymmetry in the architectures exacerbates the discrepancies between nominal and anomalous\nfeatures at inference time. Recently, starting from the same\ntransformer-based backbones as in [36], CFM [14] learns\nto map features from one modality to the other by nominal\nsamples and then, at inference time, detects anomalies by\npinpointing inconsistencies between observed and predicted\nfeatures. In this paper, we employ the above-mentioned\nmethods to investigate the challenges of SiM3D by adapting\nthem to work in a multiview setup.\n\n3. Dataset Creation\nMaterial preparation. We scanned eight types of manufactured objects spanning different sizes, shapes, textures\nand materials, as shown in Fig. 3 (1.i). For each object\ntype, between 20 and 100 instances were purchased from a\nstore. We selected objects suitable for single-instance scenarios – instances are manufactured according to a unique\n\n\fFigure 3. SiM3D dataset creation pipeline. (1) We purchased eight types of objects with different properties, each associated with a CAD\nmodel. We altered part of the samples to create realistic anomalies; (2) We designed and calibrated an acquisition setup consisting of a\nhigh-precision 3D sensor with high-resolution cameras on top an industrial robot arm; (3) We acquired 360-degree scans of each object\ninstance to populate the real split of the training and test sets, and rendered images and point clouds from the CAD models to create the\nsynthetic split of the training sets; (4) We created voxel-based segmentation GTs by a mixed 2D-3D labelling pipeline.\n\nprototype model so that all nominal ones should be identical – and for which an official CAD prototype was available from the manufacturer. The prototype CAD models\nare depicted in Fig. 3 (1.ii). To simulate various anomalies,\nwe manually introduced different types of defects that represent realistic manufacturing flaws, as illustrated in Fig. 3\n(1.iii)). We altered the objects’ appearance (e.g., paint modifications, Fig. 3 (1.iii) – bottom left), geometry (e.g., dents,\nFig. 3 (1.iii) – bottom right), or both (e.g., contaminations,\nFig. 3 (1.iii) – top left). It is important to point out that only\nhalf of the instances within each object type are modified,\nwhile the remaining half are kept in their original state to\nserve as nominal data. For each object type, one nominal\ninstance will be used as the training set in the real2real\nexperimental setup, while all other ones, both nominal and\nmodified (i.e., anomalous), will make up the test set. This\nvery same test set is also used in the synth2real setup,\nthough the training data comes from CAD prototypes.\nSensor. We acquired our dataset with a top-tier 3D scanner,\nthe Atos Q from ZEISS (Fig. 3 (2.i)). It consists of a stereo\npair with two 12 Mpx greyscale cameras and a light projector. We consider the left camera to be our reference. The\nimages have a resolution of 4096 × 3000 pixels. The point\nclouds can feature up to 12 million elements, with a pointto-point distance between 0.04 and 0.15 mm. The sensor is\nmounted on an industrial robot arm with high repeatability\nand precision (Fig. 3 (2.iii)).\nCalibration. We calibrate the greyscale cameras with a\n\nstandard chequerboard pattern, estimating the intrinsic parameters matrix, A, and the radial and tangential distortion\ncoefficients, δ = [k1 , k2 , k3 , p1 , p2 ]. We also calibrate the\nrotation, Rpc , and translation, Tpc , from the point cloud to\nthe left camera reference frame, with a precise dotted calibration pattern built by ZEISS (Fig. 3 (2.ii)) that provides\ncentre coordinates with precision &lt; 1 mm. More details are\nin the supplementary.\nReal data acquisition. The acquisition process consists of\n360-degree scanning operations around all object instances\nof our dataset (see Fig. 3 (3.i)). We define specific viewpoints to capture data from multiple angles around the object. These trajectories are sampled from concentric hemispheres that depend on the object’s size. We provide poses\nrelative to a reference view, i.e., v1 . Thus, the pose for the\nview i, vi , consists of a rotation Ri and a translation Ti that\naligns vi to v1 , with R1 the identity matrix and T1 null.\nSince in real industrial setups object instances would be\nacquired from as similar as possible viewpoints, we place\nmarkers in the scene to facilitate consistent positioning of\nobjects of the same type. Thus, thanks to the high repeatability of the robot arm, images, Ii , and point clouds, Pi ,\nfrom the same viewpoint vi turn out similar across acquisitions of different instances of the same object type. However, since the items were positioned manually with the\nhelp of the markers, slight displacements cannot be avoided.\nThis introduces some variability across the scans of the instances of an object, as it also typically occurs in real indus-\n\n\ftrial pipelines. For each object, after collecting data from all\nviewpoints, the ATOS Q sensor also returns an integrated\nmesh, M , obtained by registering all point clouds from the\ndifferent views using a proprietary algorithm. We collect\nand release the mesh to foster the development of methodologies that may also exploit this 3D representation. The\n3D reference frame is aligned to the one of the first point\ncloud P1 taken from the first viewpoint v1 .\nSynthetic data generation. We employ the Blender [11]\nPython API to render synthetic data that simulates real acquisitions. To ensure the synthetic and real data are aligned,\nwe select a reference mesh from the collected real instances\nfor each object type, load it in Blender, and align it to the\nprototype CAD model, as shown in (Fig. 3 (3.ii) - left).\nThen, we set the Blender camera parameters to the intrinsics, A, of the left camera of our Atos Q sensor and render images from the same viewpoints vi employed during\nthe real acquisitions. The RGB renders are converted into\ngreyscale images to match the real images provided by our\nacquisition setup (Fig. 3 (3.ii) - right). Renderings have\nbeen obtained by exploiting Cycles Renderer, a path-tracing\nrenderer able to provide realistic results with reflections,\nemissive surfaces, and physically-based lighting. We also\nrender depth maps (Fig. 3 (3.ii) - right), which we project\ninto 3D point clouds (see Fig. 1, centre) using the intrinsic\nparameters, A.\nLabelling. Since some anomalies, such as paintings and\nminor scratches, are visible only in greyscale images, while\nothers, such as dents, are better visible in 3D, we must consider both sensing modalities to obtain precise 3D segmentation ground-truths for anomalous samples. Therefore, we\ndevelop a two-step labelling strategy, illustrated in Fig. 3\n(4), that operates on both 2D images and 3D data. First, we\nmanually annotate all the view images, Ii , where anomalies are clearly visible, obtaining dense 2D segmentation\nmasks. We employ a different ID and colour for every defect to ease the voxel AUPRO computation (see Sec. 4).\nSubsequently, for each annotated image, Ii , we leverage\nthe associated integrated mesh, M , the intrinsic parameters\nA, the point cloud to camera reference frame transformation, (Rpc , Tpc ), and the transformation between vi and v1 ,\n(Ri , Ti ), to project the 2D annotations onto the integrated\nmesh. Then, since the projection may not be precise due to\nocclusions and slanted surfaces, each ground-truth mesh is\nthoroughly inspected and manually refined using a 3D visualisation and editing software, i.e., CloudCompare [12].\nThe labelling process was conducted by a team of 4 experts,\nwith a final cross-check of the results. Finally, the annotated\nmesh is converted into a voxel grid with a voxel size of 2\nmm. The choice of the size is determined by the smallest\ndefect size discernible in the meshes. In the conversion process, a voxel is labelled as anomalous if it intersects at least\none triangle labelled as such in the annotated mesh.\n\nType\n\nDimensions\n[cm]\n\nDimensions\n[voxels]\n\nTotal\nInstances\n\nTrain Instances\nNominal\n\nPlastic Stool\nRubbish Bin\nWicker Vase\nBathroom Furniture\nContainer\nPlastic Vase\nWooden Stool\nSink Cabinet\n\n35 × 35 × 30\n26 × 21 × 33\n17 × 17 × 15\n33 × 33 × 50\n20 × 25 × 10\n12 × 12 × 9\n48 × 42 × 45\n44 × 25 × 50\n\n330 × 326 × 317\n333 × 339 × 326\n329 × 309 × 290\n371 × 392 × 363\n327 × 308 × 286\n326 × 308 × 286\n331 × 367 × 327\n342 × 349 × 357\n\n22\n42\n22\n20\n94\n99\n15\n19\n\n1 real or 1 synth\n1 real or 1 synth\n1 real or 1 synth\n1 real or 1 synth\n1 real or 1 synth\n1 real or 1 synth\n1 real or 1 synth\n1 real or 1 synth\n\nTest Instances\nNominal Anomalous\n10\n20\n10\n8\n46\n48\n6\n9\n\n10\n20\n10\n10\n46\n49\n7\n8\n\nViews\nper Instance\n12\n12\n12\n36\n12\n12\n12\n36\n\nTable 2. Dataset statistics.\n\n4. SiM3D Benchmark\n4.1. Dataset, Tasks, and Metrics\nDataset and Setups. Using the procedure described\nin Sec. 3, we collected 333 object instances belonging to\nthe eight object types, as shown in Tab. 2. We captured\nfrom 12 to 36 views for each instance, depending on the\ntype. We split the data into training and test sets. For each\ntype, the training set comprises a single instance, either real\nin the real2real setup or synthetic in the synth2real\nsetup. The test set includes all other instances and is balanced between nominal and anomalous samples. The test\nset is the same for both setups.\nTasks. Our benchmark focuses on the tasks of detecting and\nsegmenting objects’ anomalies using multiview and multimodal data. Specifically, the inputs to the methods consist\nof a set of images {Ii }ni=1 captured from different viewpoints alongside 3D data, X, that capture an object entirely.\nThe 3D data that a method can use are a set point clouds\n{Pi }ni=1 or depth maps {Di }ni=1 taken from the same vantage points as the images, an integrated mesh M , or also\na merged point cloud P . A method capable of multiview\nmultimodal 3D anomaly detection should take these inputs,\nintegrate the 2D and 3D information from multiple views,\nand produce a global anomaly score for the test sample under inspection. On the other hand, a method pursuing multiview multimodal 3D anomaly segmentation should yield\na 3D output, where each 3D position carries a score representing the likelihood of belonging to an anomaly. In our\nbenchmark, a method for this task takes as input all images\nand 3D data, ({Ii }ni=1 , X) to output an Anomaly Volume,\ni.e. a voxel grid, V ∈ RX×Y ×Z , where X, Y , and Z are the\ngrid dimensions and each voxel carries an anomaly score.\nFor several reasons, we chose voxel grids as the 3D output\nrepresentation of our benchmark. Firstly, as their grid structure resembles 2D Anomaly Maps, existing 2D segmentation methods and metrics can be easily extended. Moreover, voxel grids are suitable for representing every type\nof 3D defect, including missing parts. One major challenge\nwith voxel grids pertains to choosing the voxel size. Ideally,\nwe would want a size that allows accurate segmentation of\neven the smallest defects. However, the memory occupancy\nof voxel grids scales cubically with the inverse of the voxel\nsize. Thus, we create ground-truth volumes using a voxel\nresolution of 2 mm, which enables precise localisation of\n\n\fFigure 4. Extending singleview methods. Anomaly Maps obtained by processing singleview inputs with standard ADS methods are projected into the 3D and aggregated into a voxel grid,\nwith each voxel containing a list of scores from multiple views.\nThe Anomaly Volume is obtained by voxel-wise max pooling.\n\neven the smallest defects present in our dataset while keeping memory occupancy affordable.\nMetrics. Akin to standard practice in 2D ADS [4], we evaluate detection performance by the Area Under the Receiver\nOperator Curve (AUROC) of the global anomaly scores predicted by the methods. As we compute a global score for\neach object instance, we name it instance-level AUROC (IAUROC). Regarding segmentation performance, we evaluate methods with an adaptation of the popular Area Under\nthe Per-Region Overlap (AUPRO) curve. First of all, we\ndefine the voxel-based Per-Region Overlap (PRO) metric\nPN\nt ∩Vn |\nas PROt = N1 n=1 |Ψ|V\n, where Ψt is an Anomaly\nn|\nVolume binarised using a threshold, t, N is the number of\nblobs, i.e., defects, in the ground-truth, and Vn are the voxels belonging to that blob. Since during labelling, we annotated each defect in our dataset with a different ID (see\nSec. 3), the N defect blobs in a ground-truth are easily identifiable. This metric is computed across multiple thresholds,\nt, estimated at different False Positive Rates (FPRs). We\ncalculate the FPR using only non-empty voxels. We sample FPRs from 0 to the maximum value uniformly, we estimate the corresponding threshold t, and we binarise the\nscore grid accordingly. In this way, we construct a curve\nthat plots the PRO values against the corresponding FPRs.\nThe segmentation performance is obtained by integrating\nsuch a curve up to a specific False Positive Rate. As proposed in [14], we use 1% as integration bound for the PRO\ncurve to set a challenging bar representative of the requirements of real industrial applications. Finally, we normalise\nthe resulting area to the interval [0, 1]. We dub this metric\nvoxel-level AUPRO (V-AUPRO).\n\n4.2. Baselines\nExtending singleview methods to Multiview 3D ADS.\nCurrent ADS methods predict a 2D anomaly map from a\nsingleview input, either unimodal, e.g., images, or multi-\n\nmodal, e.g., images and point clouds. To obtain a set of\nbaselines for our novel multiview 3D ADS task, we extend\npopular and effective singleview methods by means of the\n3D aggregation strategy illustrated in Fig. 4. Given the considered method, we process the data corresponding to an input view, vi , so as to obtain a 2D Anomaly Map. Similarly\nto Sec. 3, given the mesh, M , intrinsic parameters A, point\ncloud to camera reference frame transformation, (Rpc , Tpc )\nand view pose v0 , (Ri , Ti ), we can project each pixel of\nthe 2D Anomaly Map to its corresponding 3D position.\nWe discretise the 3D position, finding the corresponding\nvoxel index. We associate that voxel with the corresponding anomaly score. We repeat the process for each view,\nkeeping track of the scores that project onto the same voxels. Eventually, we compute the maximum among all scores\nprojected into each voxel, obtaining the final Anomaly Volume. To extract the global score required by the I-AUROC,\nwe compute the maximum across all the scores within the\nAnomaly Volume.\nSelected Methods. We extend some of the most popular and effective unimodal and multimodal singleview ADS\nmethods, starting from their official code, and evaluate\nthem on SiM3D. Regarding unimodal methods, we select\nPatchCore [30], with either WideResNet101 [42] or DINOv2 [24] as backbone, to extract features from images of all\nviews, {Ii }N\ni=1 of the single-instance training set to create\nmemory banks. Moreover, we use EfficientAD [1] using all\nviews as their training set. As for multimodal ADS methods, we use BTF [18] employing WideResNet101 [42] as\nthe image encoder and FPFH [33] as the algorithm to extract point cloud features. We create memory banks using\nfeatures extracted from images, {Ii }N\ni=1 , and point clouds,\n{Pi }N\ni=1 , of all views of the single-instance training set. We\nuse the same strategy with M3DM [36]. As 2D feature extractor, we exploit DINO-v2. As point cloud feature extractor, instead of using a transformer backbone, i.e., PointMAE [17], we utilise FPFH to extract 3D features, similarly to BTF. Indeed, we would need a severe downsample\n(from ∼5 – 7M to ∼8k points) to work with Point-MAE,\nand we verified that at such low resolution, most of the defects no longer show up in the point clouds. Finally, we select CFM [14], using all views and clouds as a single training set. Based on the same consideration as for M3DM, we\nuse DINO-v2 and FPFH to produce 2D and 3D features.\nDue to computational constraints, all methods process images padded and downsampled to 1540 × 1540. Moreover,\nfor compatibility with the employed 2D feature extractors,\nwhich accept RGB images, we create 3-channel inputs by\nstacking our greyscale images thrice.\n3D Data pre-processing. To obtain less noisy data and\nimprove the results of the above-mentioned baselines, we\nremove the background from 3D data. We estimate a 3D\nplane using a RANSAC-based plane segmentation algo-\n\n\fFigure 5. Qualitatives. Selected views with defects (left) and Anomaly Volumes for several methods (right) downsampled for visualisation.\nreal2real\nMethod\n\nModality\n\nPatchCore w/ WRN-101\nPatchCore w/ DINO-v2\nEfficientAD\nAST\nBTF\nCFM w/ DINO-v2 + FPFH\nM3DM w/ DINO-v2 + FPFH\nAST\n\nsynth2real\n\nPl. Stool\n\nRub. Bin\n\nW. Vase\n\nB. Furn.\n\nCont.\n\nPl. Vase\n\nW. Stool\n\nSink Cab.\n\nMean\n\nPl. Stool\n\nRub. Bin\n\nW. Vase\n\nB. Furn.\n\nCont.\n\nPl. Vase\n\nW. Stool\n\nSink Cab.\n\nMean\n\nRGB\nRGB\nRGB\nRGB\n\n0.740\n0.500\n0.280\n0.537\n\n0.987\n0.958\n0.732\n0.566\n\n0.636\n0.636\n0.000\n0.611\n\n0.777\n0.622\n0.878\n0.515\n\n0.774\n0.578\n0.424\n0.573\n\n0.551\n0.563\n0.730\n0.496\n\n1.000\n1.000\n0.928\n0.839\n\n0.566\n0.563\n0.712\n0.537\n\n0.754\n0.678\n0.585\n0.584\n\n0.462\n0.958\n0.123\n1.000\n\n0.235\n0.897\n0.673\n0.344\n\n0.537\n0.413\n0.000\n1.000\n\n0.353\n0.464\n0.848\n0.525\n\n0.678\n0.207\n0.008\n0.482\n\n0.576\n0.684\n0.487\n0.388\n\n0.517\n0.607\n0.750\n0.428\n\n0.250\n0.087\n0.662\n0.187\n\n0.451\n0.540\n0.443\n0.544\n\nRGB + Point Cloud\nRGB + Point Cloud\nRGB + Point Cloud\nRGB + Depth\n\n0.421\n0.198\n0.702\n0.950\n\n0.217\n0.301\n0.988\n0.927\n\n0.504\n0.074\n0.661\n0.785\n\n0.565\n0.515\n0.545\n0.474\n\n0.545\n0.483\n0.556\n0.542\n\n0.471\n0.456\n0.649\n0.470\n\n0.678\n0.732\n0.392\n0.428\n\n0.424\n0.825\n0.475\n0.925\n\n0.478\n0.448\n0.621\n0.687\n\n0.462\n0.008\n0.107\n0.636\n\n0.294\n0.000\n0.117\n0.002\n\n0.520\n0.190\n0.735\n0.504\n\n0.444\n0.424\n0.565\n0.474\n\n0.464\n0.313\n0.381\n0.462\n\n0.424\n0.459\n0.586\n0.569\n\n0.482\n0.428\n0.214\n0.428\n\n0.287\n0.362\n0.512\n0.887\n\n0.422\n0.273\n0.402\n0.495\n\nTable 3. Anomaly detection results (I-AUROC). Best results in bold, runner-ups underlined.\n\nrithm, which, iteratively, randomly selects a small subset of\npoints (e.g., 10) to fit a candidate plane model. For the candidate planes, we compute the consensus set with threshold τ on the point-to-plane distance. After 1000 iterations,\nwe return the best-fitting plane. To account for spurious\nbackground artefacts, we shift the plane by an offset α and\nfinally remove all points below the shifted plane. Given\nthe different sizes of the objects, for each object type, we\nselect different optimal thresholds τ and offsets α, as detailed in the supplementary material. We apply this background removal technique to the integrated mesh, M , due\nto the larger number of background points, which facilitates the RANSAC algorithm. Then, from the backgroundfiltered integrated mesh, we leverage ray-tracing techniques\nand known camera parameters to render, for each view,\ndepth maps, {Di }N\ni=1 , pixel-aligned to the corresponding\nimages, {Ii }N\ni=1 at the sensor resolution (4096 × 3000). Finally, these depth maps are padded and downsampled to\n1540 × 1540, and the depth is lifted in 3D via the camera parameters to obtain dense and clean point clouds. The\ndepth maps and point clouds obtained by rendering the preprocessed meshes serve as the input data for all the experiments presented in the subsequent section and will be available in the SiM3D dataset.\n\n5. Benchmark Results\nMain Results. In Tab. 3 and Tab. 4, we report the results\nobtained on the SiM3D benchmark by extending the considered methods as Multiview 3D ADS baselines. By looking at the mean detection performance (Tab. 3), we notice\nhow methods that natively process only RGB images outperform natively multimodal ones in both the real2real\nand synth2real setups. With the notable exception of\nAST, this also stands for mean segmentation performance\n(Tab. 4). We posit that this is due to the main multimodal\nmethods having been designed and tuned to process point\nclouds of the resolution featured by existing multimodal\nbenchmarks, which is much lower than that of SiM3D, i.e.\n∼ 8K vs ∼ 2.3M points (after downsampling). Indeed,\nAST is the only one designed to work natively with depth\nmaps. Hence, our experiments suggest that current multimodal ADS methods do not scale to significantly higher\nresolutions. In turn, we could not even deploy the native 3D feature extractors of M3DM and CFM, the methods currently excelling on [6, 7]. Furthermore, we notice\nhow methods relying on memory banks, such as PatchCore and M3DM, tend to attain slightly better mean detection and segmentation performance than their counterparts\n\n\freal2real\nMethod\n\nModality\n\nPatchCore w/ WRN-101\nPatchCore w/ DINO-v2\nEfficientAD\nAST\nBTF\nCFM w/ DINO-v2 + FPFH\nM3DM w/ DINO-v2 + FPFH\nAST\n\nsynth2real\n\nPl. Stool\n\nRub. Bin\n\nW. Vase\n\nB. Furn.\n\nCont.\n\nPl. Vase\n\nW. Stool\n\nSink Cab.\n\nMean\n\nPl. Stool\n\nRub. Bin\n\nW. Vase\n\nB. Furn.\n\nCont.\n\nPl. Vase\n\nW. Stool\n\nSink Cab.\n\nMean\n\nRGB\nRGB\nRGB\nRGB\n\n0.710\n0.745\n0.682\n0.720\n\n0.461\n0.469\n0.462\n0.502\n\n0.761\n0.775\n0.763\n0.789\n\n0.675\n0.792\n0.534\n0.803\n\n0.694\n0.709\n0.680\n0.716\n\n0.747\n0.753\n0.743\n0.764\n\n0.380\n0.435\n0.407\n0.446\n\n0.609\n0.690\n0.488\n0.758\n\n0.630\n0.671\n0.594\n0.687\n\n0.734\n0.701\n0.680\n0.726\n\n0.437\n0.457\n0.449\n0.488\n\n0.751\n0.772\n0.729\n0.791\n\n0.454\n0.563\n0.523\n0.806\n\n0.678\n0.648\n0.669\n0.705\n\n0.741\n0.734\n0.747\n0.764\n\n0.386\n0.321\n0.431\n0.461\n\n0.618\n0.575\n0.361\n0.695\n\n0.600\n0.596\n0.573\n0.679\n\nRGB + Point Cloud\nRGB + Point Cloud\nRGB + Point Cloud\nRGB + Depth\n\n0.551\n0.597\n0.733\n0.750\n\n0.402\n0.415\n0.452\n0.503\n\n0.750\n0.768\n0.767\n0.792\n\n0.377\n0.505\n0.702\n0.807\n\n0.614\n0.640\n0.702\n0.716\n\n0.741\n0.743\n0.752\n0.764\n\n0.092\n0.315\n0.288\n0.467\n\n0.030\n0.321\n0.126\n0.798\n\n0.444\n0.538\n0.565\n0.699\n\n0.547\n0.523\n0.690\n0.751\n\n0.402\n0.413\n0.454\n0.502\n\n0.756\n0.753\n0.770\n0.793\n\n0.369\n0.542\n0.461\n0.805\n\n0.610\n0.621\n0.645\n0.717\n\n0.741\n0.741\n0.734\n0.764\n\n0.103\n0.222\n0.318\n0.450\n\n0.040\n0.314\n0.132\n0.785\n\n0.446\n0.516\n0.526\n0.695\n\nTable 4. Anomaly segmentation results (V-AUPRO@1%). Best results in bold, runner-ups underlined.\n\nMethod\n\nModality\n\nFeatures\n\nreal2real\n\nsynth2real\n\n2D\n\n3D\n\nDetection\n\nSegmentation\n\nDetection\n\nSegmentation\n\nPatchCore\n\nRGB\nRGB\nDepth\nDepth\nPoint Cloud\n\nWRN-101\nDINO-v2\n–\n–\n–\n\n–\n–\nWRN-101\nDINO-v2\nFPFH\n\n0.754\n0.678\n0.582\n0.600\n0.415\n\n0.630\n0.671\n0.486\n0.496\n0.464\n\n0.451\n0.540\n0.507\n0.246\n0.313\n\n0.600\n0.596\n0.484\n0.471\n0.460\n\nBTF\n\nRGB + Point Cloud\nRGB + Depth\n\nWRN-101\nWRN-101\n\nFPFH\nWRN-101\n\n0.478\n0.707\n\n0.444\n0.609\n\n0.422\n0.448\n\n0.446\n0.543\n\nCFM\n\nRGB + Point Cloud\nRGB + Depth\n\nDINO-v2\nDINO-v2\n\nFPFH\nDINO-v2\n\n0.448\n0.548\n\n0.538\n0.663\n\n0.273\n0.311\n\n0.516\n0.620\n\nM3DM\n\nRGB + Point Cloud\nRGB + Depth\n\nDINO-v2\nDINO-v2\n\nFPFH\nDINO-v2\n\n0.621\n0.659\n\n0.565\n0.503\n\n0.402\n0.254\n\n0.526\n0.476\n\nAST\n\nRGB\nRGB + Depth\n\nEffNet-B5\nEffNet-B5\n\n–\nEffNet-B5\n\n0.584\n0.687\n\n0.687\n0.699\n\n0.544\n0.495\n\n0.679\n0.695\n\nTable 5. Anomaly detection and segmentation mean results\nwith different input modalities. Best results per method in bold.\n\nwithin the same modality that require substantial training,\ni.e., EfficientAD and CFM. We argue that this may be ascribed to the single-instance setup, which renders the latter category of approaches harder to optimise due to the\nlimited number of training images, which are as many as\nthe views. The methods most effectively extended to our\nmultiview 3D task are Patchcore, which, equipped with\neither WRN-101 or DINO-v2, can achieve the best detection in both setups, and AST, achieving the best segmentation performance in both setups. Indeed, Patchcore\nyields I-AUROCs of 0.754 (WRN-101) and 0.540 (DINOv2), while AST yields a V-AUPRO@1% of 0.699 and\n0.695, in the real2real and synth2real setups, respectively. It is also worth pointing out how, due to the domain shift, we can notice a gap between the real2real\nand synth2real setups, especially in detection (0.754\nvs. 0.540, I-AUROC) compared to segmentation performance (0.699 vs. 0.695, V-AUPRO@1%). The qualitative\nresults, shown in Fig. 5, visually support the above observations. Overall, the relatively low, definitely far from saturated, performance figures provided by baselines designed\nby straightforward extension of state-of-the-art methods delivering impressive results in singleview 2D benchmarks\nhint at the novel and challenging nature of the task set forth\nby SiM3D. Thus, our experimental findings by baseline approaches reveal the need for more advanced and specific\nmethods and paradigms, both in the real2real and, even\nmore so, the synth2real setups.\nAlternative 3D Representations. Given the lack of feature extractors amenable to processing high-resolution point\nclouds, we explore the use of depth maps to capture 3D\n\ncues. The 2D grid structure of depth maps enables the\ndeployment of popular backbones pre-trained on RGB\ndata that support high-resolution inputs, such as DINOv2. Thus, we create and evaluate additional baselines using depth maps and report the results in Tab. 5. Similarly\nto greyscale images, we tile depth maps along the channel\naxis to ensure compatibility with the employed backbones.\nThe results show that the use of depth maps rather than\npoint clouds in multimodal methods tends to improve detection and segmentation performance by sizable margins,\ne.g., in the real2real setup, BTF yields 0.707 I-AUROC\nand 0.609 V-AUPRO when processing depths compared to\n0.478 I-AUROC and 0.444 V-AUPRO when fed with point\nclouds (row 6 vs. row 7) while relying on the same WRN101 image backbone. Indeed, all multimodal methods but\nM3DM achieve their best performance in both tasks and setups by processing depth maps instead of point clouds. Yet,\nas vouched by the results achieved by PatchCore, RGB images compare favourably to depth maps in terms of detection performance. We ascribe this to the feature extractors\nused to compute depth features being pre-trained on RGB\nimages, which may be conducive to yielding weaker features when fed with depth inputs. This points out an intriguing research question: would it be possible to develop\na foundation model to process depth maps effectively?\n\n6. Final Discussion\nWe introduced SiM3D, the first benchmark and dataset focused on integrating multiview and multimodal information\nfor comprehensive 3D ADS. Our experiments highlight several open challenges. First, a need for methods that can process multiview inputs more effectively, e.g., by taking all\nviews as input rather than integrating singleview outputs,\nand that can be trained with a very limited number of nominal samples, e.g., a single instance. Second, training with\nsynthetic data requires more robust techniques to address\ndomain-shift challenges. Finally, the current literature lacks\n3D backbones capable of processing high-resolution point\nclouds. Employing depth maps seems a promising strategy\nto facilitate this processing, yet a foundational model for\ndepth maps is still missing. We believe that SiM3D may\nserve as a strong foundation for tackling these challenges\nand fostering future research toward 3D ADS.\n\n\fAcknowledgment\nWe acknowledge financial support from the National Recovery and Resilience Plan (NRRP), Mission 4, Component\n2, Investment 1.1, Call No. 1409 published on 14 September 2022 by the Italian Ministry of University and Research\n(MUR), funded by the European Union.\nThis work was also partially supported by the FSE+\n2021–2027 program under Article 24, paragraph 3, letter a)\nof Law 240/2010 and its subsequent amendments, as well\nas by Regional Resolution No. 693/2023 (Project Code:\n2023-20090/RER), Grant CUP: J19J23000730002.\nWe sincerely thank Lucia Gasperini for her contribution\nto dataset acquisition and labelling. We also extend our\ngratitude to Manuel Turrini for his support in setting up the\nacquisition process.\n\nReferences\n[1] Kilian Batzner, Lars Heckler, and Rebecca König. Efficientad: Accurate visual anomaly detection at millisecond-level\nlatencies. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pages\n128–138, 2024. 3, 6, 13\n[2] Liron Bergman, Niv Cohen, and Yedid Hoshen. Deep\nnearest neighbor anomaly detection.\narXiv preprint\narXiv:2002.10445, 2020. 3\n[3] Paul Bergmann, Sindy Löwe, Michael Fauser, David Sattlegger, and Carsten Steger. Improving unsupervised defect segmentation by applying structural similarity to autoencoders.\narXiv preprint arXiv:1807.02011, 2018. 3\n[4] Paul Bergmann, Michael Fauser, David Sattlegger, and\nCarsten Steger. Mvtec ad – a comprehensive real-world\ndataset for unsupervised anomaly detection. In Proceedings\nof the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 1, 3, 6\n[5] Paul Bergmann, Kilian Batzner, Michael Fauser, David Sattlegger, and Carsten Steger. Beyond dents and scratches:\nLogical constraints in unsupervised anomaly detection and\nlocalization. International Journal of Computer Vision, 130,\n2022. 3\n[6] Paul Bergmann, Jin Xin, David Sattlegger, and Carsten Steger. The mvtec 3d-ad dataset for unsupervised 3d anomaly\ndetection and localization. In Proceedings of the 17th International Joint Conference on Computer Vision, Imaging and\nComputer Graphics Theory and Applications, pages 202–\n213, 2022. 1, 2, 3, 7\n[7] Luca Bonfiglioli, Marco Toschi, Davide Silvestri, Nicola\nFioraio, and Daniele De Gregorio. The eyecandies dataset\nfor unsupervised multimodal anomaly detection and localization. In Proceedings of the 16th Asian Conference on\nComputer Vision (ACCV2022), 2022. ACCV. 1, 2, 3, 7\n[8] Mathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou,\nJulien Mairal, Piotr Bojanowski, and Armand Joulin. Emerging properties in self-supervised vision transformers. In Proceedings of the International Conference on Computer Vision (ICCV), 2021. 3\n\n[9] Li-Ling Chiu and Shang-Hong Lai. Self-supervised normalizing flows for image anomaly detection and localization. In\nProceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2926–2935, 2023. 3\n[10] Niv Cohen and Yedid Hoshen. Sub-image anomaly detection\nwith deep pyramid correspondences. ArXiv, 2020. 3\n[11] Blender Online Community. Blender - a 3D modelling and\nrendering package. Blender Foundation, Stichting Blender\nFoundation, Amsterdam, 2024. 5\n[12] CloudCompare Online Community. CloudCompare - 3D\npoint cloud and mesh processing software Open Source\nProject. EDF, 2024. 5\n[13] Alex Costanzino, Pierluigi Zama Ramirez, Mirko Del Moro,\nAgostino Aiezzo, Giuseppe Lisanti, Samuele Salti, and Luigi\nDi Stefano. Test time training for industrial anomaly segmentation. In Proceedings of the IEEE/CVF Conference\non Computer Vision and Pattern Recognition (CVPR) Workshops, pages 3910–3920, 2024. 3\n[14] Alex Costanzino, Pierluigi Zama Ramirez, Giuseppe Lisanti,\nand Luigi Di Stefano. Multimodal industrial anomaly detection by crossmodal feature mapping. In Proceedings of the\nIEEE Conference on Computer Vision and Pattern Recognition, 2024. CVPR. 1, 3, 6, 14\n[15] Thomas Defard, Aleksandr Setkov, Angelique Loesch, and\nRomaric Audigier. Padim: a patch distribution modeling\nframework for anomaly detection and localization. In International Conference on Pattern Recognition, pages 475–489.\nSpringer, 2021. 3\n[16] Denis Gudovskiy, Shun Ishizaka, and Kazuki Kozuka.\nCflow-ad: Real-time unsupervised anomaly detection with\nlocalization via conditional normalizing flows. In Proceedings of the IEEE/CVF Winter Conference on Applications of\nComputer Vision, pages 98–107, 2022. 3\n[17] Kaiming He, Xinlei Chen, Saining Xie, Yanghao Li, Piotr\nDollár, and Ross Girshick. Masked autoencoders are scalable\nvision learners. In Proceedings of the IEEE/CVF conference\non computer vision and pattern recognition, pages 16000–\n16009, 2022. 3, 6\n[18] Eliahu Horwitz and Yedid Hoshen. Back to the feature: classical 3d features are (almost) all you need for 3d anomaly\ndetection. In Proceedings of the IEEE/CVF Conference\non Computer Vision and Pattern Recognition, pages 2967–\n2976, 2023. 3, 6, 13\n[19] Jinlei Hou, Yingying Zhang, Qiaoyong Zhong, Di Xie, Shiliang Pu, and Hong Zhou. Divide-and-assemble: Learning\nblock-wise memory for unsupervised anomaly detection. In\nProceedings of the IEEE/CVF International Conference on\nComputer Vision, pages 8791–8800, 2021. 3\n[20] Chun-Liang Li, Kihyuk Sohn, Jinsung Yoon, and Tomas\nPfister. Cutpaste: Self-supervised learning for anomaly detection and localization. In Proceedings of the IEEE/CVF\nconference on computer vision and pattern recognition,\npages 9664–9674, 2021. 3\n[21] Jiaqi Liu, Guoyang Xie, Xinpeng Li, Jinbao Wang, Yong\nLiu, Chengjie Wang, Feng Zheng, et al. Real3d-ad: A dataset\nof point cloud anomaly detection. In Thirty-seventh Conference on Neural Information Processing Systems Datasets\nand Benchmarks Track, 2023. 3\n\n\f[22] Jiaqi Liu, Guoyang Xie, Jingbao Wang, Shangnian Li,\nChengjie Wang, Feng Zheng, and Yaochu Jin. Deep industrial image anomaly detection: A survey. arXiv preprint\narXiv:2301.11514, 2, 2023. 3\n[23] Fabio Valerio Massoli, Fabrizio Falchi, Alperen Kantarci,\nŞeymanur Akti, Hazim Kemal Ekenel, and Giuseppe Amato.\nMocca: Multilayer one-class classification for anomaly detection. IEEE Transactions on Neural Networks and Learning Systems, 33(6):2313–2323, 2021. 3\n[24] Maxime Oquab, Timothée Darcet, Theo Moutakanni, Huy V.\nVo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez,\nDaniel Haziza, Francisco Massa, Alaaeldin El-Nouby, Russell Howes, Po-Yao Huang, Hu Xu, Vasu Sharma, ShangWen Li, Wojciech Galuba, Mike Rabbat, Mido Assran, Nicolas Ballas, Gabriel Synnaeve, Ishan Misra, Herve Jegou,\nJulien Mairal, Patrick Labatut, Armand Joulin, and Piotr Bojanowski. Dinov2: Learning robust visual features without\nsupervision, 2023. 3, 6\n[25] Yatian Pang, Wenxiao Wang, Francis EH Tay, Wei Liu,\nYonghong Tian, and Li Yuan. Masked autoencoders for point\ncloud self-supervised learning. In Computer Vision–ECCV\n2022: 17th European Conference, Tel Aviv, Israel, October\n23–27, 2022, Proceedings, Part II, pages 604–621. Springer,\n2022. 3\n[26] Jonathan Pirnay and Keng Chai. Inpainting transformer for\nanomaly detection. In International Conference on Image\nAnalysis and Processing, pages 394–406. Springer, 2022. 3\n[27] Tal Reiss, Niv Cohen, Liron Bergman, and Yedid Hoshen.\nPanda: Adapting pretrained features for anomaly detection\nand segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages\n2806–2814, 2021. 3\n[28] Oliver Rippel, Patrick Mertens, and Dorit Merhof. Modeling the distribution of normal data in pre-trained deep features for anomaly detection. In 2020 25th International Conference on Pattern Recognition (ICPR), pages 6726–6733.\nIEEE, 2021.\n[29] Nicolae-Cătălin Ristea, Neelu Madan, Radu Tudor Ionescu,\nKamal Nasrollahi, Fahad Shahbaz Khan, Thomas B Moeslund, and Mubarak Shah. Self-supervised predictive convolutional attentive block for anomaly detection. In Proceedings of the IEEE/CVF conference on computer vision and\npattern recognition, pages 13576–13586, 2022. 3\n[30] Karsten Roth, Latha Pemula, Joaquin Zepeda, Bernhard\nSchölkopf, Thomas Brox, and Peter Gehler. Towards total recall in industrial anomaly detection. In Proceedings of 2022\nIEEE Conference on Computer Vision and Pattern Recognition, pages 14298–14308, 2022. 1, 3, 6, 13, 16\n[31] Marco Rudolph, Bastian Wandt, and Bodo Rosenhahn. Same\nsame but differnet: Semi-supervised defect detection with\nnormalizing flows. In Proceedings of the IEEE/CVF winter\nconference on applications of computer vision, pages 1907–\n1916, 2021. 3\n[32] Marco Rudolph, Tom Wehrbein, Bodo Rosenhahn, and Bastian Wandt. Asymmetric student-teacher networks for industrial anomaly detection. In Winter Conference on Applications of Computer Vision (WACV), 2023. 3, 14\n\n[33] Radu Bogdan Rusu, Nico Blodow, and Michael Beetz. Fast\npoint feature histograms (fpfh) for 3d registration. In 2009\nIEEE International Conference on Robotics and Automation,\npages 3212–3217, 2009. 3, 6\n[34] Kihyuk Sohn, Chun-Liang Li, Jinsung Yoon, Minho Jin, and\nTomas Pfister. Learning and evaluating representations for\ndeep one-class classification. In International Conference\non Learning Representations, 2021. 3\n[35] Chengjie Wang, Wenbing Zhu, Bin-Bin Gao, Zhenye Gan,\nJiangning Zhang, Zhihao Gu, Shuguang Qian, Mingang\nChen, and Lizhuang Ma. Real-iad: A real-world multi-view\ndataset for benchmarking versatile industrial anomaly detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 22883–\n22892, 2024. 1, 3\n[36] Yue Wang, Jinlong Peng, Jiangning Zhang, Ran Yi, Yabiao\nWang, and Chengjie Wang. Multimodal industrial anomaly\ndetection via hybrid fusion. In Proceedings of the IEEE/CVF\nConference on Computer Vision and Pattern Recognition,\npages 8032–8041, 2023. 1, 3, 6, 14\n[37] Julian Wyatt, Adam Leach, Sebastian M Schmon, and\nChris G Willcocks. Anoddpm: Anomaly detection with denoising diffusion probabilistic models using simplex noise.\nIn Proceedings of the IEEE/CVF Conference on Computer\nVision and Pattern Recognition, pages 650–656, 2022. 3\n[38] Minghui Yang, Peng Wu, and Hui Feng. Memseg: A semisupervised method for image surface defect detection using\ndifferences and commonalities. Engineering Applications of\nArtificial Intelligence, 119:105835, 2023.\n[39] Jihun Yi and Sungroh Yoon. Patch svdd: Patch-level svdd\nfor anomaly detection and segmentation. In Proceedings of\nthe Asian conference on computer vision, 2020.\n[40] Seungdong Yoa, Seungjun Lee, Chiyoon Kim, and Hyunwoo J Kim. Self-supervised learning for anomaly detection\nwith dynamic local augmentation. IEEE Access, 9:147201–\n147211, 2021.\n[41] Jiawei Yu, Ye Zheng, Xiang Wang, Wei Li, Yushuang Wu,\nRui Zhao, and Liwei Wu. Fastflow: Unsupervised anomaly\ndetection and localization via 2d normalizing flows. arXiv\npreprint arXiv:2111.07677, 2021. 3\n[42] Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. In BMVC, 2016. 6\n[43] Vitjan Zavrtanik, Matej Kristan, and Danijel Skočaj. Draema discriminatively trained reconstruction embedding for surface anomaly detection. In Proceedings of the IEEE/CVF\nInternational Conference on Computer Vision, pages 8330–\n8339, 2021. 3\n[44] Zheng Zhang and Xiaogang Deng. Anomaly detection using\nimproved deep svdd model with data structure preservation.\nPattern Recognition Letters, 148:1–6, 2021. 3\n[45] Qiang Zhou, Weize Li, Lihan Jiang, Guoliang Wang, Guyue\nZhou, Shanghang Zhang, and Hao Zhao. Pad: A dataset\nand benchmark for pose-agnostic anomaly detection. arXiv\npreprint arXiv:2310.07716, 2023. 1, 3\n[46] Yang Zou, Jongheon Jeong, Latha Pemula, Dongqing Zhang,\nand Onkar Dabeer. Spot-the-difference self-supervised pretraining for anomaly detection and segmentation. arXiv\npreprint arXiv:2207.14315, 2022. 3\n\n\fSupplemental material\n\nClass\n\nIn this supplemental material, we provide additional qualitative results and insights on the design choices dealing\nwith the creation of our dataset. We would like to highlight that, in case of acceptance of the paper, SiM3D will\nbe publicly released along with the codebase created to\nimplement the baselines and compute the performance\nevaluation metrics, so as to stimulate further research\nconcerning the open challenges.\n\nPlastic Stool\nRubbish Bin\nWicker Vase\nBathroom Furniture\nContainer\nPlastic Vase\nWooden Stool\nSink Cabinet\n\nTest Instances\nNominal Anomalous\n10\n20\n10\n8\n46\n48\n6\n9\n\n10\n20\n10\n10\n46\n49\n7\n8\n\nTot.\n\nNo. Anomalies\n3D 2D Multimodal\n\n32\n48\n14\n32\n104\n62\n34\n27\n\n11\n8\n1\n0\n4\n20\n9\n4\n\n18\n30\n3\n24\n67\n27\n21\n15\n\n3\n10\n10\n8\n33\n15\n4\n8\n\nMean Anomalies\nper Instance\n3.2\n2.4\n1.4\n3.2\n2.2\n1.2\n4.8\n3.3\n\nTable B. Test set defects statistics.\n\nS.1. Threshold employed for background removal\nAs anticipated in Sec. 4.2 of the main paper, in Tab. A we\nreport the values of the threshold distance τ employed to determine the inliers of the consensus set and the offset α used\nto shift the fitted plane. The classes Wooden Stool and Sink\nCabinet have not been filtered since the slight amount of\nbackground points does not provide enough support points\nto fit a plane with the employed algorithm.\nClass\n\nτ\n\nα\n\nPlastic Stool\nRubbish Bin\nWicker Vase\nBathroom Furniture\nContainer\nPlastic Vase\nWooden Stool\nSink Cabinet\n\n30\n30\n60\n20\n30\n60\n–\n–\n\n-2\n-2\n10\n10\n2\n2\n–\n–\n\nFigure A. Anomaly size distribution. The proposed dataset contains predominantly smaller anomalies, making the overall benchmark particularly challenging.\n\nS.3. Additional details on the calibration procedure\nTable A. Background removal τ and α values.\n\nS.2. Details on the defect distribution of the test set\nIn Tab. B we report several statistics on the distribution of\nthe defects on the test set, such as the number of test instances, the number of anomalies and the mean number of\nanomalies per defective instance. Even though each defect\nis inherently multimodal, they can be distinguished as: (i)\n3D, such as dents and bumps, characterised by significant\nstructural variation but minimal changes in the visual appearance of the defective area; (ii) 2D, such as scratches\nand marker strokes, in which we have a negligible structural\nvariation and a significant deviation in the appearance of the\ndefective area; (iii) multimodal, such as cracks and contaminations, in which both structural and appearance variations\ncan be appreciated.\nFurthermore, we report in Fig. A the distribution of the\nsize (in voxels) of the defects present in the test set of\nSiM3D. The distribution highlights the predominance of\nsmaller anomalies, which renders the benchmark particularly challenging.\n\nThe proposed pipeline deploys a custom procedure to estimate the transformation between the reference frame in\nwhich the Atos Q sensor provides the point cloud associated\nwith a scan, from now on Sensor Reference Frame (SRF),\nand the Camera Reference Frame of the left camera (CRF).\nMore in detail, we acquire several (i.e., 20) views, i.e., images and associated point clouds, of a high-precision dot\npattern provided by ZEISS as part of the calibration toolkit\nof the Atos Q sensor (see Fig. 3 (2) in the main paper).\nThen, for each pair of images and point clouds, we apply\nthe following steps:\n(i) Detect and refine the centres of the dots from the image\nby a classical circle detection algorithm;\n(ii) apply the Perspective-n-Points (PnP) algorithm between\nthese 2D centres in the CRF and the known 3D coordinates of the centres expressed in the 3D reference\nframe attached to the calibration pattern to find the rototranslation between the CRF and the 3D reference frame\nattached to the calibration pattern;\n(iii) roto-translate the 3D centres of the dots – expressed in\nthe calibration pattern reference frame – into the CRF,\nexploiting the transformation between the calibration pattern and the camera previously estimated by PnP;\n\n\fFigure B. Reference frames.\n\n(iv) use the software tools provided with the Atos Q to get the\n3D coordinates of the centres of the dots into the SRF;\n(v) finally, given all the 3D-3D correspondences between the\ncentres of the dots in the SRF and the CRF obtained\nfrom the different views of the pattern, we apply an absolute orientation algorithm (i.e., Kabsch-Umeyama) to\nestimate the roto-translation from the SRF to the CRF,\ni.e. [Rpc |Tpc ].\nThe accuracy of the estimation process can be assessed\nby computing the ℓ2 norm of the difference between the\ncoordinates of centres brought from the SRF into the CRF\nby [Rpc |Tpc ] and those brought from the pattern reference\nframe into the CRF via the transformation obtained by PnP\nThis assessment is performed on an additional set of views\nwith respect to those used to estimate [Rpc |Tpc ], resulting in\na precision under 1 mm.\nIn Fig. B we depict the different reference frames and the\nrelations between them. We highlight that, with the Atos Q\nsensor, the Mesh Reference Frame (MRF) is aligned in the\n3D space to the SRF associated with the first point cloud\nacquired while performing a 360-degree scanning of an object, hence [R1 |T1 ] = [I|0].\n\nS.4. Additional details on the labelling procedure\nAs anticipated in Sec. 3, the labelling process involves\ntransferring 2D annotations – manually created on images\n– to the 3D integrated mesh. This is achieved by projecting\n\nthe 3D mesh vertices into the 2D image space and associating each vertex with the ID colour (label information)\ncarried by the corresponding pixel. Thus, the mesh vertices\nare first transformed by the inverse of the roto-translations\n[Ri |Ti ] between the mesh and the considered views. Then,\nthey are brought into the CRF by employing [Rpc |Tpc ]. Finally, the vertices’ coordinates expressed in the CRF are\nprojected onto the image plane of the 2D annotations by the\nintrinsic parameters of the camera, A. The corresponding\npixel coordinates in the image are identified for each vertex, their ID colour (i.e. label) is extracted, and the information is assigned to the associated vertices of the 3D mesh,\nthereby lifting in 3D the annotations created on the original\n2D inputs. Finally, the 3D mesh with vertex colours representing the annotations is manually refined.\n\nS.5. Additional details on pre-processing of 3D data\nIn Fig. C we show the procedure to obtain the depth maps\n{Di }ni=1 , or organized point clouds {Pi }ni=1 , employed in\nthe experiments described in Sec. 5. In particular, after the\nraw singleview point clouds are acquired through a whole\nscan of the object, the ZEISS software shipped with the\nAtos Q integrates them to obtain a comprehensive mesh.\nSubsequently, we remove the background from this mesh\nwith the procedure described in Sec. 4, obtaining a filtered\nmesh. Afterwards, by the knowledge of the roto-translation\n[Rpc |Tpc ] between the CRF and the SRF as well as those be-\n\n\fFigure C. 3D Data pre-processing.\n\ntween the the roto-translations and the mesh, [Ri |Ti ] (see\nFig. B), we can render the depth maps {Di }ni=1 associated with each view by ray-tracing the cleaned mesh. Finally, to obtain clean and organized point clouds {Pi }ni=1 ,\nwhich are pixel-aligned to the corresponding greyscale images {Ii }ni=1 , we can simply reproject the pixel coordinates\nin 3D via corresponding rendered depths and the inverse of\nthe camera matrix, A.\n\nS.6. Additional details on the baselines\nFor the following baselines, we process greyscale images\n{Ii }ni=1 , depth maps {Di }ni=1 or organized point clouds\n{Pi }ni=1 downsampled to the common size of 1540×1540×\n3, the highest achievable with the available hardware.\nInput data processed with WideResNet101, either\ngreyscale images or depth maps, returns features from the\nsecond and third layers, yielding feature maps with dimensions equal to 28 × 28 × 1536. Input data processed with\nDINO-v2, either greyscale images or depth maps, return\nfeatures from the last layer, yielding feature maps with\ndimensions equal to 110 × 110 × 768. Input data processed with FPFH features, namely point clouds, are processed considering a voxel size equal to 2 mm in order to\nmatch the resolution attainable from the 3D voxel groundtruths and yield feature maps with dimensions equal to\n1540 × 1540 × 33. The spatial resolution of these maps\nis then downsampled to match either the spatial resolution\nof the WideResNet101 or DINO-v2 features, hence 28 × 28\nor 110 × 110.\nUnlike the common practice, the 2D Anomaly Maps\n\nobtained by the methods are not Gaussian-blurred since\nthe subsequent 3D aggregation and discretisation introduce\nsmoothing.\nPatchCore. PatchCore [30] is a singleview, image-based\nADS method that employs WideResNet101 to extract features from training data, which are subsequently stored in\na memory bank. During inference, features from test samples are queried against this memory bank to compute an\nanomaly score.\nWe adapted this method on SiM3D, by either processing\ngreyscale images or depth maps, using either its original\nfeature extractor, WideResNet101, or the DINO-v2 backbone. We created the coreset with a 10% coverage and 0.9\nprojection radius and selected 3 as a reweight parameter for\nthe anomaly map computation.\nEfficientAD. Efficient [1] is a singleview, image-based\nADS method that employs a Teacher–Student paradigm\nbased on patch description networks paired with an autoencoder pre-trained on WideResNet101.\nWe implement EfficientAD by disabling the Teacher normalisation since there is no validation set available, and we\nupsample the intermediate encoder outputs to match the size\nof the Teacher and the Students fed with 1540×1540×3 images. Moreover, we train the Students for 1000 epochs, unlike the 70000 expected from the adopted implementation,\nsince the loss tends to stall earlier due to the limited number of training images that characterise our single-instance\nsetup.\nBack to the Features. BTF [18] is a singleview, multi-\n\n\fFigure D. Qualitatives. Views with defects (left) and Anomaly Volumes for several methods (right) downsampled for visualisation.\n\nmodal ADS method that, similarly to PatchCore, employs\nWideResNet101 to extract 2D features from RGB images,\nand relies on FPFH to extract 3D features from point clouds.\nThe 2D and 3D features are subsequently concatenated and\nstored in a single memory bank. During inference, 2D and\n3D features from test samples are also concatenated and\nqueried against this memory bank to compute an anomaly\nscore.\nWe also implement BTF by using WideResNet101 to\nprocess both grayscale images and depth maps. We created\nthe coreset with a 10% coverage and 0.9 projection radius\nand selected 3 as a reweight parameter for the anomaly map\ncomputation.\nCrossmodal Feature Mapping. CFM [14] is a singleview, multimodal ADS method that exploits MLPs to map\nfeatures from one modality to the other on nominal samples and then detect anomalies by pinpointing inconsistencies between observed and mapped features. This solution\nleverages DINO-v1 and Point-MAE to extract features from\nRGB images and point clouds, respectively.\nSince SiM3D contains high-resolution images and point\nclouds, we adopt DINO-v2 and FPFH as feature extractors. Alternatively, to reduce computational demands, we\nalso implement CFM by using DINO-v2 to process both\ngreyscale images and depth maps. We trained the crossmodal feature mappings for 50 epochs, following the original implementation, with a unitary batch size to limit memory consumption.\nMulti-3D-Memory. M3DM [36] is a singleview, multimodal ADS method that employs DINO-v1 and Point-MAE\nto extract features from RGB images and point clouds,\n\nwhich are subsequently stored in memory banks. Moreover, it also learns a function to fuse 2D and 3D features\ninto multimodal features, which are then stored in memory banks alongside those computed from the individual\nmodalities. During inference, features from test samples\nare queried against the memory banks to compute anomaly\nscores, which are then aggregated with One-Class SVMs.\nGiven that SiM3D contains high-resolution images and\npoint clouds, we adopt DINO-v2 and FPFH as feature extractors. To reduce computational demands, we also implement M3DM by using DINO-v2 to process both greyscale\nimages and the rendered depth maps. Furthermore, we disabled the feature fusion module due to computational limitations introduced by the high-resolution features. Following the original implementation, we created both coresets\nwith a 10% coverage and 0.9 projection radius and selected\n1 as a reweight parameter for the image-based anomaly map\nand 0.1 as a reweight parameter for the point cloud-based\nanomaly map. Moreover, both One-Class SVMs are trained\nwith a ν parameter equal to 0.5 and a maximum number of\nSGD iterations fixed to 1000.\nAsymmetric Student-Teacher. AST [32] is a singleview,\nmultimodal ADS method that employs EfficientNet-B5 to\nextract features from RGB images and depth maps. Such\nfeatures are subsequently employed to optimise a Normalizing Flow as Teacher network and a feed-forward network as\na Student network. The idea is that, after optimisation, both\nnetworks are able to reconstruct nominal samples, begetting\nlow discrepancies, while failing to reconstruct anomalous\nsamples. Since these two networks present different architectures, the way in which they fail to reconstruct anoma-\n\n\fFigure E. Multimodal methods qualitatives. Views with defects (left) and Anomaly Volumes for all multimodal methods (right) downsampled for visualisation.\n\nlous samples is different, hence discrepancies will be exacerbated, highlighting anomalies. Due to the fact that this\nmethod work on the features, it is triviality extendable to\nmultiple modalities.\nGiven that SiM3D contains high-resolution images and\npoint clouds, we deployed AST by passing to the framework\n1540 × 1540 × 3 images and depth maps.\n\nS.7. Assessment of data generation quality and insight of failure cases of the synth2real setup\nWe report in Tab. C the Fréchet Inception Distance (FID)\nbetween the train set, either from the real2real or\nsynth2real setup, and the test set, along with the performance gaps (∆ I-AUROC, ∆ V-AUPRO) for PatchCore.\nWe do not observe any correlation between ∆ FID and ∆\nI-AUROC or ∆ V-AUPRO. Instead, in the synth2real\nscenario, we noticed strong outliers in anomaly maps of\n\nnominal samples (see Fig. F), for some objects. These outliers have a strong impact on detection since they increase\nthe false detection rate, while affecting the segmentation\nperformance much less.\n\nS.8. Ancillary experiments to assess the SiM3D\nchallenges\nAs suggested during the peer-reviewing process, we ran the\nfollowing experiments to gain more insight into the unique\nchallenges set forth by SiM3D:\n• We treated the task as single-view ADS by deploying\nPatchCore, obtaining a mean I-AUROC of 0.488 vs.\n0.754 of our multiview approach, highlighting the necessity of addressing the task in a multiview fashion.\nNotice that we cannot compare the segmentation performance since the ground-truths are voxel grids;\n• We ran the official implementation of PatchCore on\n\n\fFID real2test\nFID synth2test\n∆ FID\n∆ I-AUROC (PatchCore)\n∆ V-AUPRO (PatchCore)\n\nPl. Stool\n\nRub. Bin\n\nW. Vase\n\nB. Furn.\n\nCont.\n\nPl. Vase\n\nW. Stool\n\nSink Cab.\n\nMean\n\n10.088\n48.744\n38.656\n0.458\n0.044\n\n8.844\n44.565\n35.721\n0.061\n0.012\n\n7.345\n57.302\n49.957\n0.223\n0.003\n\n15.784\n40.900\n25.116\n0.158\n0.229\n\n12.590\n51.900\n39.310\n0.371\n0.061\n\n9.560\n55.194\n45.634\n0.121\n0.019\n\n8.910\n24.040\n15.130\n0.393\n0.114\n\n23.750\n34.060\n10.310\n0.476\n0.115\n\n12.108\n44.588\n32.480\n0.282\n0.075\n\nTable C. Data quality assessment and impact on performance. The average Fréchet Inception Distance between the train samples and\nthe test samples for both real2real and synth2real setups is reported.\n\nworking on images (PatchCore w/ DINO-v2) and multimodal data (AST), The experiments, reported in Tab. D,\nshow that PatchCore, the image-based method, tend to\nperform best on 2D anomalies and worse on multimodal\nanomalies, obtaining an overall weaker performance when\nall the anomalies are considered. On the other hand, AST,\nthe multimodal method, tend to perform well on both 2D\nand multimodal anomalies, obtaining an overall stronger\nperformance when all the anomalies are considered. These\nfindings further confirm the necessity of a multimodal analysis when working in the SiM3D setup.\nFigure F. Outliers. The same test views inferred with the same\nmodel, trained either with real2real or synth2real train\nset, highlights the presence of outliers in the synth2real scenario.\n\ngrayscale MVTec AD, obtaining a mean I-AUROC of\n0.988 vs. 0.991, and a mean AUPRO@30% of 0.929 vs.\n0.935, both official results from [30], highlighting that\nbenchmark complexity does not stem from grayscale\nimages.\nAs for metrics, I-AUROC is directly comparable to other\nbenchmarks; hence, the general lower performance confirms that SiM3D is more challenging. Segmentation performance cannot be compared since the ground-truths of\nSiM3D are voxel grids.\n\nS.9. Assessment of baselines on 2D and multimodal\nanomalies\nAs suggested during the peer-reviewing process, we performed a comparative analysis of some baselines while disentangling the different kinds of anomalies. To this end,\nstarting from Tab. B, we split the anomalies into 2D and\n3D+multimodal anomalies, hence, unifying 3D defects with\nthe multimodal ones. Indeed, we argue that, while it is possible to unambiguously consider some anomalies, such as\nmarker strokes and white-outs, as 2D-only, it is more difficult to pinpoint 3D-only anomalies, as structural deviations\nin the geometry, more often than not, tend to manifest themselves also in the image space.\nAfter that, we selected the best-performing algorithm\n\nS.10. Attribution of existing assets\nWe adapted the baselines described in the main paper starting from the following codebases:\n• PatchCore:\nhttps : / / github . com /\neliahuhorwitz / 3D - ADS released under MIT\nLicense;\n• EfficientAD:\nhttps : / / github . com /\nnelson1425/EfficientAD released under Apache\nLicense 2.0;\n• BTF: https://github.com/eliahuhorwitz/\n3D-ADS released under MIT License;\n• M3DM: https://github.com/nomewang/M3DM\nreleased under MIT License;\n• CFM: https : / / github . com / CVLAB - Unibo /\ncrossmodal - feature - mapping released under\nnon-commercial use only license;\n• AST: https://github.com/marco-rudolph/\nAST released under MIT License.\n\nS.11. Ethical statement\nThis research, which was carried out to produce this dataset,\nadheres to ethical principles and practices in computer vision research. The dataset introduced in this study does not\ncontain any personally identifiable information or sensitive\ndata. It has been collected and processed in a manner that\nrespects individual privacy and avoids potential biases. The\ndataset and its intended use align with the ethical guidelines\noutlined by the CVPR community. We have taken care to\nensure that the dataset and its potential applications do not\npose significant risks to individuals or society.\n\n\fDetection\nMethod\n\nModality\n\nAnomalies\n\nPatchCore w/ DINO-v2\nPatchCore w/ DINO-v2\nPatchCore w/ DINO-v2\n\nRGB\nRGB\nRGB\n\nAST w/ EffNet-B5\nAST w/ EffNet-B5\nAST w/ EffNet-B5\n\nRGB + Depth\nRGB + Depth\nRGB + Depth\n\nSegmentation\n\nPl. Stool\n\nRub. Bin\n\nW. Vase\n\nB. Furn.\n\nCont.\n\nPl. Vase\n\nW. Stool\n\nSink Cab.\n\nMean\n\nPl. Stool\n\nRub. Bin\n\nW. Vase\n\nB. Furn.\n\nCont.\n\nPl. Vase\n\nW. Stool\n\nSink Cab.\n\nMean\n\nAll\n2D\nMultimodal\n\n0.500\n0.646\n0.425\n\n0.958\n0.902\n0.573\n\n0.636\n0.602\n0.534\n\n0.622\n0.723\n0.439\n\n0.578\n0.678\n0.592\n\n0.563\n0.498\n0.632\n\n1.000\n0.980\n0.754\n\n0.563\n0.612\n0.587\n\n0.678\n0.705\n0.567\n\n0.745\n0.832\n0.276\n\n0.469\n0.498\n0.354\n\n0.775\n0.674\n0.456\n\n0.792\n0.801\n0.548\n\n0.709\n0.718\n0.698\n\n0.753\n0.687\n0.603\n\n0.435\n0.455\n0.404\n\n0.690\n0.678\n0.596\n\n0.671\n0.667\n0.491\n\nAll\n2D\nMultimodal\n\n0.950\n0.910\n0.945\n\n0.927\n0.905\n0.895\n\n0.785\n0.773\n0.698\n\n0.474\n0.427\n0.410\n\n0.542\n0.539\n0.498\n\n0.470\n0.320\n0.543\n\n0.428\n0.423\n0.413\n\n0.925\n0.892\n0.904\n\n0.687\n0.648\n0.663\n\n0.750\n0.654\n0.738\n\n0.503\n0.443\n0.475\n\n0.792\n0.730\n0.765\n\n0.807\n0.687\n0.789\n\n0.716\n0.708\n0.893\n\n0.764\n0.797\n0.683\n\n0.467\n0.303\n0.564\n\n0.798\n0.679\n0.723\n\n0.699\n0.625\n0.703\n\nTable D. Anomaly detection and segmentation results considering different kinds of anomalies.\n\nFigure G. SiM3D dataset overview. From top to bottom: the single-instance real and synthetic training samples for objects Rubbish Bin\nand Wicker Vase, one of the anomalous samples from the test set.\n\nS.12. Additional qualitative results\n\nWe report in Fig. D additional qualitative results concerning the classes of SiM3D which have not been displayed in\nin Fig. 5. We additionally report in Fig. E qualitative results\nfor top-performer multimodal methods reported in Tab. 5.\n\nS.13. Extended dataset visualizations\nAkin to Fig. 1 of the main paper, in Fig. G, Fig. H, and\nFig. I, we show training samples, both real and synthetic, as\nwell as defective test samples for other object types present\nin the SiM3D dataset.\n\n\fFigure H. SiM3D dataset overview. From top to bottom: the single-instance real and synthetic training samples for objects Bathroom\nFurniture and Container, one of the anomalous samples from the test set.\n\n\fFigure I. SiM3D dataset overview. From top to bottom: the single-instance real and synthetic training samples for objects Plastic Vase\nand Wooden Stool, one of the anomalous samples from the test set.\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"