"<!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>Distribution Prototype Diffusion Learning for Open-set Supervised\nAnomaly Detection\n\narXiv:2502.20981v3 [cs.CV] 19 May 2026\n\nFuyun Wang1 , Tong Zhang1 *, Yuanzhi Wang1 , Yide Qiu1 , Xin Liu2 , Xu Guo1 , Zhen Cui3 *\n1\nNanjing University of Science and Technology, China.\n2\nNanjing SeetaCloud Technology, China. 3 Beijing Normal University, China\n\nAbstract\nIn Open-set Supervised Anomaly Detection (OSAD), the\nexisting methods typically generate pseudo anomalies to\ncompensate for the scarcity of observed anomaly samples,\nwhile overlooking critical priors of normal samples, leading to less effective discriminative boundaries. To address\nthis issue, we propose a Distribution Prototype Diffusion\nLearning (DPDL) method aimed at enclosing normal samples within a compact and discriminative distribution space.\nSpecifically, we construct multiple learnable Gaussian prototypes to create a latent representation space for abundant and diverse normal samples and learn a Schrödinger\nbridge to facilitate a diffusive transition toward these prototypes for normal samples while steering anomaly samples away. Moreover, to enhance inter-sample separation, we design a dispersion feature learning way in hyperspherical space, which benefits the identification of out-ofdistribution anomalies. Experimental results demonstrate\nthe effectiveness and superiority of our proposed DPDL,\nachieving state-of-the-art performance on 9 public datasets.\n\n1. Introduction\nAnomaly detection (AD) [15, 21, 48, 50] aims to identify outliers significantly diverging from the prevailing samples in a dataset, and has a wide range of applications like\nindustrial inspection, medical image analysis, and scientific discovery, etc. Recently, unsupervised anomaly detection (UAD) [6, 11, 26, 28] and few-shot anomaly detection (FSAD) [12, 21, 22] have emerged as prominent\nresearch paradigms, emphasizing the modeling of normal\nsample distributions to discern anomalies effectively. Yet,\nthese methods often neglect prior knowledge from limited\nanomaly samples, resulting in imprecise delineation of normal sample boundaries and reduced efficacy in differentiating normal from anomaly instances. On the contrary, supervised anomaly detection (SAD) [2, 20, 47] leverages a\n* Corresponding authors: Tong Zhang, Zhen Cui\n\nlimited subset of anomaly samples as prior knowledge, improving detection performance. However, this reliance on\nseen anomalies poses a risk of overfitting and hampers generalization to unseen anomalies in real-world settings.\nTo mitigate the challenge of limited generalization inherent in closed-set training, we focus on open-set supervised anomaly detection (OSAD) [1, 27, 51, 52], which\nutilizes a small set of known anomaly classes during training to identify unseen anomalies from open-set classes. By\nleveraging prior knowledge from observed samples, OSAD\nmethods could reduce false positive errors. To improve the\ngeneralized detection of unseen anomalies, DRA [9] leverages data augmentation and outlier exposure to learn a decomposed anomaly representation comprising seen anomalies, pseudo-anomalies, and potential residual anomalies.\nBGAD [47] leverages decision boundaries derived from\nnormalized flow models to capture and model anomaly information. Recently, AHL [51] simulates heterogeneous\nanomaly distributions and performs collaborative differentiable learning to further enhance the model’s generality.\nWhile data augmentation and outlier exposure techniques [9, 19, 34] have demonstrated considerable success\nin anomaly detection, they fall short in generating comprehensive pseudo anomalies, capturing only a fraction of\npotential unseen anomalies. This limitation arises from\noverlooking the intricate nature of real-world anomaly distributions, thereby hindering the model’s ability to generalize to novel anomaly types. Although AHL [51] has\nmade strides in addressing this issue by simulating heterogeneous anomaly distributions, it still relies on approximating unknown out-of-distribution anomalies using known indistribution anomalies for generalization. Yet, three critical\nissues persist: i) the simulation mechanism cannot cover all\nanomaly distribution patterns due to the varied scales and\nstructures of anomaly distributions; ii) simulated anomalies inherit in-distribution data biases, leading to suboptimal performance on out-of-distribution anomalies; iii) the\ndiversity of normal samples presents dilemmas for existing\nmethods, complicating the differentiation between normal\nand anomaly boundaries. These issues prompt a fundamen-\n\n\ftal question: Instead of generating pseudo and uncertain\nanomaly samples, how can we accurately characterize compact distribution boundaries amidst a range of diverse normal samples and achieve robust generalization for unknown\nout-of-distribution anomalies?\nTo address the aforementioned issue, in this work,\nwe propose a Distribution Prototype Diffusion Learning\n(DPDL) method for open-set supervised anomaly detection.\nConsidering abundant and diverse normal samples but very\nlimited anomaly data, our method involves learning latent\ndistribution prototypes, specifically multiple Gaussian distributions, onto which all observed normal samples can be\neffectively projected. To facilitate the mapping of normal\nsamples into the prototype space, we leverage Schrödinger\nbridge (SB) framework, which enables a diffusive transition by aligning the distributions of these samples with the\nprototypes. The SB-based diffusion way could mitigate\nthe out-of-distribution issue for normal samples to some\nextent. Within the distribution prototype space, we push\nobserved anomaly samples away from normal samples to\nenhance discriminative capacity. Notably, both the prototypes and the diffusive bridge are learned jointly, resulting\nin a robust embedding space for normal samples. Moreover,\nto enhance generalization across unseen anomaly domains,\nwe introduce a dispersion feature learning mechanism that\nmaps intermediate features to a hyperspherical space, leveraging a mixture of von Mises-Fisher (vMF) distributions.\nThis approach bolsters directional feature extraction and\npromotes robust inter-sample separation, facilitating effective identification of out-of-distribution samples. Experiments demonstrate that our method greatly improves detection capabilities for unseen anomalies.\nIn summary, our contributions are three-fold: i) we propose a distribution prototype diffusion learning framework\nthat jointly learns multiple Gaussian prototypes and the associated diffusion bridge, creating a compact and discriminative embedding space; ii) we develop dispersion feature\nlearning in hyperspherical space to enhance inter-sample\nseparation and improve generalization; iii) we achieve stateof-the-art performance in 9 public datasets, demonstrating\nthe efficacy of our approach.\n\n2. Related Work\nOpen-set Supervised Anomaly Detection. Open-set supervised anomaly detection (OSAD) seeks to develop a robust anomaly detection framework that generalizes from\na limited set of training anomalies to effectively identify previously unseen anomalies within an open-set context [1, 27, 35, 47, 52]. Leveraging the prior knowledge provided by observed anomalies, contemporary OSAD methods significantly mitigate false positive errors, thereby enhancing overall detection performance [9, 51]. Recently,\nDRA [9] learns disentangled representations of observed,\n\npseudo, and residual anomalies to boost the detection of\nboth seen and unseen anomalies. In contrast, AHL [51]\nsimulates diverse heterogeneous anomaly distributions and\nemploys collaborative differentiable learning, significantly\nimproving the model’s generalization capacity.\nSchrödinger Bridge. Schrödinger bridge (SB), widely\nrecognized as the entropy-regularized optimal transport\n(OT) problem, involves learning a stochastic process that\nevolves from an initial probability distribution to a target distribution under the influence of a reference measure [5, 7, 16, 18, 23, 24, 38], which is often used for content generation as those prior generative models do [30, 42–\n45]. I2 -SB [25] and UNSB [14] learn a nonlinear diffusion process between two given distributions or represent the SB problem as a series of adversarial learning\nproblems to realize the image transformation task. Recently, LightSB [10, 17] introduces a novel, fast, and simple SB solver, which achieves optimal matching in practice\nthrough the Gaussian mixture parameterization of the adjusted schrödinger potential.\n\n3. Preliminaries\nWe focus on how to build the connection between two distributions p0 and p1 , where the distributions are defined as\nabsolutely continuous Borel probability distributions with\nfinite second-order moments. Building upon the foundation of entropy-regularized optimal transport (EOT) [5, 7,\n10, 16–18, 23, 24, 33, 38], we review the related properties of EOT and the schrödinger bridge (SB) problem with\na Wiener prior.\nEntropy-regularized optimal transport (EOT). Given\ntwo point sets Z0 and Z1 , we seek for the optimal transport\ncost between any two points z0 ∈ Z0 and z1 ∈ Z1 . This\ntask may be formulated as an EOT problem with a parameter ϵ &gt; 0, i.e., minimizing the following objective:\n \\label {eqn:eot} \\begin {split} \\mathop {\\text {min}}\\limits _{\\pi \\in \\Pi (p_0,p_1)}\\{\\mathop {\\int }\\limits _{\\mathbb {R}^D}\\mathop {\\int }\\limits _{\\mathbb {R}^D} \\frac {1}{2} \\Vert z_0 - z_1\\Vert ^2 \\pi (z_0,z_1)dz_0dz_1 \\\\ + \\epsilon \\text {KL}(z\\parallel p_0 \\times p_1)\\}, \\end {split} \n(1)\n\nwhere Π(p0 , p1 ) denotes the set of transport plans, i.e., joint\nprobability distributions on RD × RD with marginals p0\nand p1 , respectively, and KL denotes Kullback-Leibler divergence. The minimizer π ∗ of Eqn. (1) is guaranteed to\nexist, be unique, and absolutely continuous, and is referred\nas the EOT plan.\nSchrödinger Bridge (SB). We define Ω as the space\nof RD -valued functions over time t \\in [0, 1], representing\ntrajectories in RD that start at t = 0 and end at t = 1.\nWe denote the set of probability distributions over \\Omega , i.e.,\nstochastic processes, by \\protect \\mathcal  {P}(\\Omega ). The differential of the standard Wiener process is represented by dW_t . For a process\nT \\in \\mathcal {P}(\\Omega ), we denote its joint distribution at t = 0, 1 by\n\n\f\\pi _T \\in \\mathcal {P}(\\mathbb {R}^D \\times \\mathbb {R}^D). Similarly, we use T|_{z_0,z_1} to denote the\ndistribution of T for t \\in (0, 1), conditioned on T ’s values\nz_0 and z_1 at t = 0 and t = 1, respectively.\nLet  W^\\epsilon \\in P(\\Omega )  represents a Wiener process with\nvolatility  \\epsilon &gt; 0 , starting from  p_0  at  t = 0 . Its differential\nis governed by the stochastic differential equation (SDE):\n dW^\\epsilon _t = \\sqrt {\\epsilon } \\, dW_t  . The Schrödinger bridge problem with the\nWiener prior  W^\\epsilon  between  p_0  and  p_1  is minimizing:\n \\label {eq2} \\mathop {\\text {min}}\\limits _{T \\in \\mathcal {F} (p_0,p_1)} \\text {KL}(T\\parallel W^\\epsilon ), \n\n  \\!\\!\\!\\underset {\\psi _p, \\mcP _\\text {MGP},f}{\\min } &amp; \\!\\! D_p(\\psi _p(\\mcF _\\tr ^\\norm ), \\psi _p(\\mcF _\\tr ^\\anom ),\\mcP _\\text {MGP})\\!+\\!\\lambda D_{s}(\\mcF _\\tr ^\\norm , \\mcF _\\tr ^\\anom ),\\label {Eqn:abs-loss}\\\\ \\st , &amp;~\\psi _p: P(\\mcF )\\overset {\\text {bridge}}{\\longrightarrow } \\mcP _\\text {MGP}, \\label {Eqn:abs-bridge}\\\\ &amp;~ f: \\mcX \\overset {\\text {feature}}{\\longrightarrow }\\mcF ,\\label {Eqn:abs-disp}\n\n(2)\n\nwhere  \\mathcal {F}(p_0, p_1) \\subset \\mathcal {P}(\\Omega )  denotes the subset of stochastic\nprocesses that begin with distribution  p_0  at  t = 0  and reach\n p_1  at  t = 1 . This problem has a unique solution, a SDE\ndiffusion process  T^*  defined:  dZ_t = g^*(Z_t, t) \\, dt + dW^\\epsilon _t  .\nThe process  T^*  is referred to as SB, and\n g^* : \\mathbb {R}^D \\times [0, 1] \\rightarrow \\mathbb {R}^D \nis the optimal drift.\nCharacterization of solutions. The EOT plan π ∗ =\n∗\nπ T takes a specific form [10, 17]:\n \\label {eq3} \\pi ^*(z_0,z_1) = u^*(z_0)\\text {exp}(\\frac {-\\Vert z_0 - z_1 \\Vert ^2}{2\\epsilon })v^*(z_1), \n\nlearn multiple simple distributions (e.g., Gaussians) as prototypes PMGP , named multi-Gaussian prototypes (MGP). To\nembed input data into the prototype space, we introduce a\ngenerative bridge model ψp for distribution transformation.\nThe more abstract formulation is given as follows:\n\n(3)\n\nwhere u∗ , v ∗ : R → R+ are measurable functions known as\nSchrödinger potentials. The optimal drift  g^*  is derived as:\n\n(7)\nwhere PMGP denotes the distribution prototypes to be\nlearned, ψp is the flow function across probability distributions, Dp signifies the discriminative function in the space\nof prototypes, f stands for the feature extraction process,\nand Ds acts as a regularizer to increase feature discriminability. In the above formulation, besides distribution prototype learning (DPL), we also introduce dispersion feature\nlearning (DFL) executed within a hyperspherical embedding space, i.e., Ds (Ftrn , Ftra ). The advantage of DFL is to\nprevent abrupt feature collapse in feature learning, thus preserving discriminative qualities. The overview of our framework is abstractly depicted in Fig. 1. Detailed elaboration\non these aspects will be provided in the subsequent sections.\n\n4.2. Distribution Prototype Learning\n  g^*(z,t) = \\epsilon \\triangledown _z\\text {log}\\int _{\\mathbb {R}^D}\\mathcal {N}(z'|z,(1-t)\\epsilon I_D)v^*(z')dz',\\label {eqn:g}  (4)\n\n4. Method\n4.1. Problem Formulation\nLet Xtr = {(xi , yi )} denotes a weakly-supervised training\nset with only image-level labels, where xi denotes one RGB\nimage and yi ∈ {0, 1} denotes whether xi is an anomaly\nsample (anomaly: yi = 1, normal: yi = 0). Hereby,\nXtr is consist of a normal subset Xtrn (|Xtrn | = N ) and an\n.\nanomaly subset Xtra (|Xtra | = M ), formally, Xtr = Xtrn ∪ Xtra ,\nwhere generally N ≫ M . Given a testing set Xte , we\nneed to predict whether one sample x ∈ Xte is anomaly\nor normal. In OSAD, the anomaly patterns of the testing\nset do less recurred in those encountered training set. In\nother word, the distribution of anomalies are obviously discrepant, i.e., P (Xtea ) ̸= P (Xtra ). Hereby, we need to learn a\nrobust anomaly detection model ψ from the training set Xtr ,\nso that ψ accurately infers anomaly scores for test samples.\nOur abstract idea is to learn latent distribution prototypes that not only encapsulate normal samples in a concise manner but also discriminate against anomaly samples. Given the abundance of observed normal samples, one\nnatural approach is to characterize the distribution P (Xtrn ),\nwhere samples outside this distribution, x ∈\n/ P (Xtrn ), would\nbe awarded higher probabilities as anomalies. Considering\nthe inherent diversity of normal samples, we endeavor to\n\nDistribution prototype learning is operated in the feature\nspace. Hence, to extract intermediate image features, we\ncan leverage those classic networks as the backbone, such\nas ResNet-18. Formally, the feature extraction process, denoted as a function f : X → F, transforms an image x\ninto the intermediate feature x = f (x) ∈ Rd , where a flatten operation is used on convolution maps for vectorization.\nConsequently, we designate the intermediate feature sets of\nnormal and anomaly samples as Ftrn = {xni |i = 1, · · · , N }\nand Ftra = {xai |i = 1, · · · , M }, respectively.\nConsidering the rarity of anomalies and the diversity of\nnormal samples, it is pertinent to capture the intricate distributions of normal samples by mapping the distribution\np0 = P (Ftrn ) of intermediate features to a distinct and wellcharacterized distribution p1 like Gaussian. But due to various normal samples, we opt for a multi-Gaussian prototypes\n(MGP) comprising multiple Gaussian distributions as pro.\ntotypes PMGP = {Pi = N (µi , σi )|i = 1, · · · , C}. Given\na normal sample xni , we expect to align it with the closest\nprototype with high likelihood. However, in the open-set\nsetting, it is challenge to transform unseen points x ∼ p0\nto the target distribution p1 . Drawing inspiration from the\ncapability of diffusion generation models in aligning disparate distributions, we frame the transition from source\ndomain distribution p0 to target domain distribution p1 as a\nSchrödinger bridge problem. As formulated in Eqn. (6), we\nbridge\n\nneed learn an essential bridge flow ψp : P (Ftrn ) −→ PMGP .\n\n\fDistribution Prototypes\n\nDistribution Flow\n\nTied\nℒDFL\n\n𝜓𝜓𝑝𝑝\n\nDistribution Flow\n\n…\n\nn\nℱtr\n\nNormal Features\n\na\nℒDPL\n\nLearnable\n\n𝜓𝜓𝑝𝑝\n\n𝒫𝒫MGP : {𝝁𝝁𝑘𝑘 , 𝛔𝛔𝑘𝑘 }𝐾𝐾\n𝑘𝑘=1\n\nDispersion Loss\n\nTied\n\nEncoder\nNormal Samples\n\nSchrödinger Bridge\n\na\nℱtr\n\nScore Prediction\n\nn\nℒDPL\n\nAnomaly Score\n\nAnomaly Features\n\n𝑓𝑓\n\n…\n\nAnomaly Samples\n\nDistribution Prototype Learning\n\nMIL-based Anomaly Score\nComputation\n\nDispersion Feature Learning\n\nFigure 1. Our proposed DPDL framework. It comprises three distinct modules: Distribution Prototype Learning (DPL, Sec. 4.2), Dispersion Feature Learning (DFL, Sec. 4.3), and anomaly score prediction (Sec. 4.4). DPL transforms the distribution of normal samples to a\nspace of learnable multiple Gaussian prototypes through building schrödinger bridge, meantime pushing anomaly distribution away from\nthese prototypes. DFL operates in a hyperspherical space, enlarging the distances of intermediate features of all samples in a hyperspherical space to strengthen feature generalization for detecting anomalies. The score prediction module leverages a multi-instance-learning\nmethod to compute anomaly scores.\n\nAfter bridge transformation, the condition probability in optimal transport plan conforms to:\n\nEqn. (8) could be exactly defined as\n  \\pi (\\psi (\\x _i^\\norm )|\\x ^\\norm _i)\\doteq \\eta (\\x _i^\\norm ,\\psi (\\x _i^\\norm ))\\phi _1(\\psi (\\x _i^\\norm )), \\label {eqn:exact-GMM}\n\n  \\pi (\\psi _p(\\x )|\\x )\\varpropto \\underbrace {\\sum ^{C}_{c=1}\\alpha _c\\mathcal {N}(\\psi _p(\\x );\\bmu _c, \\bsigma _c))}_{\\doteq \\phi _1(\\psi _p(\\x ))}, \\label {eqn:GMM}\n\n(8)\n\nwhere the parameters {αc , µc , σc }C\nc=1 (known as Gaussian\nmixed model (GMM), abstracted into the function ϕ1 ) as\nwell as the flow function ψp (in bridge) need to be learned.\nFor simplicity, below we adopt diagonal matrices for σc .\nDrawing inspiration from previous works [10, 17], we\nreframe distribution prototype learning in Eqn. (8) as the\nSchrödinger bridge. Given the specific form taken by the\nEOT plan described in Eqn. (3), we redefine these measurable functions u, v : R → R+ , termed Schrödinger potentials [10, 17], as follows:\n  u(\\x ^\\norm _i) &amp;\\doteq \\exp (\\frac {\\Vert \\x _i^\\norm \\Vert ^2}{2\\epsilon })\\phi _0(\\x _i^\\norm ), \\label {eqn:eq9}\\\\ v(\\psi (\\x _i^\\norm )) &amp;\\doteq \\exp (\\frac {\\Vert \\psi (\\x _i^\\norm )\\Vert ^2}{2\\epsilon })\\phi _1(\\psi (\\x _i^\\norm )), \\label {eqn:eq10}\n(10)\nwhere ϕ0 is defined within the source feature domain Ftr ,\nand ϕ1 is defined in Eqn. (8). ϵ is set to 0.001 in our experiments. Accordingly, Eqn. (3) can be converted to:\n \\label {eqn:eq3} \\!\\!\\!\\! \\pi (\\x ^\\norm _i,\\psi (\\x _i^\\norm )) \\!=\\!\\! \\phi _0(\\x _i^\\norm )\\exp (\\frac {\\langle \\x _i^\\norm ,\\psi (\\x _i^\\norm )\\rangle }{\\epsilon })\\phi _1(\\psi (\\x _i^\\norm )), (11)\nHence, the condition probability of the transport plan in\n\n(12)\n\nwhere the connection factor is denoted as η(xni , ψ(xni )) =\n⟨xni ,ψ(xni )⟩\n1\n) with the normalization term\nϖ(xni ) exp(R\nϵ\nn\nn\nϖ(xi ) = exp(⟨xi , ψ(xni )⟩)ϕ1 (ψ(xni ))dψ(xni ). According to Eqns. (8) and (12), we can further derive a more\ntractable form [10, 17]:\n  &amp;\\!\\!\\!\\!\\pi (\\psi (\\x _i^\\norm )|\\x _i^\\norm ) \\!\\!=\\!\\! \\widetilde {\\eta }(\\x _i^\\norm )\\!\\!\\sum ^{C}_{c=1}\\!\\! \\widetilde {\\alpha }_c(\\x ^\\norm _i)\\mcN (\\psi (\\x _i^\\norm );\\!\\widetilde {\\bmu }_c(\\x _i^\\norm ), \\!\\bsigma _c),\\!\\!\\label {eqn:pi-exact} (13)\nwhere the normalization factor is denoted as ηe(xni ) =\nPC\n1/ c=1 α\nec (xni ), the coefficients of multi-Gaussian are dee c )⊺ (xni )), and\nfined as α\nec (xni ) = αc exp( 21 (xni )⊺ σc xni + 1ϵ (µ\nn\ne c (xi ) = µc + 1ϵ σc xni .\nthe mean vectors are calculated as µ\nWe proceed with deriving the bridge function\nψp that\n√\nrepresents a SDE process: dxt = g(xt , t)dt+ ϵdWt where\nthe shift function g is solved. According to Eqn. (4), we\ncan obtain the shift function of diffusion process as follows:\n\n  \\!\\!\\!\\! g(\\x _i^\\norm ,t) = \\epsilon \\rho _\\text {MGP}(\\x _i^\\norm )\\nabla _{\\x _i^\\norm }\\log (\\mcN (\\x _i^\\norm |0,\\epsilon (1-t))\\I ),\\label {eqn:g-gmm} (14)\nwhere the coefficients ρMGP defined on multiple distribution prototypes is calculated as: ρMGP (xni ) =\nPC\ne c (xni )|0, σc )N (hc (xni , t)|0, Σtc )), with anc=1 (αc N (µ\n1\ne c (xni ) and\nother Gaussian of hc (xni , t) = ϵ(1−t)\nxni + σc−1 µ\nt\nt\n−1\nΣc = ϵ(1−t) I + σc .\n\n\fDistribution prototypes initialization. Jointly learning\nprototypes {αc , µc , σc }C\nc=1 and the bridge transformation\nψp (also the shift g) is a challenging task as they are interdependent. For this, we leverage a vector quantization\nfunction to learn a codebook E of prototypes within a discrete latent space from training data. Specifically, given an\ninput image feature xni , we can assign xni to the closest prototype ek by minimizing the L2 distance between xni and\neach of prototypes ec ∈ E, as follows:\n  \\!\\!\\!\\!\\underset {\\{\\e _c\\}}{\\min }~\\mbE _{\\x _i^\\norm \\in \\mcF _\\tr }[\\Vert \\x _i^\\norm \\!\\!-\\!\\e _{c^*} \\Vert ^2_2], \\st , c^* \\!\\!= \\!\\!\\underset {c}{\\arg \\min }\\|\\x _i^\\norm \\!\\!-\\!\\e _c\\|_2,\\!\\! (15)\nwhere c∗ denotes the index of the prototype closest to xni .\nThe learned {ec }C\nc=1 are used to initialize the mean vectors\n{µc }C\n,\nwhile\nthe\nvariances of all prototypes are set to the\nc=1\nidentity matrix. We observe that this initialization strategy\naccelerates the training process.\nDistribution loss of normal and anomaly samples. As  p_0 \nand  p_1  are accessible only via samples Ftr and prototypes\nPMGP , we optimize the empirical form in Eqn. (2) for normal samples as follows [10, 17]:\n\nspace. Draws inspiration from the vMF distribution [31] in\ndirectional statistics, we compute spherical Gaussian distribi = xi /∥xi ∥22 . The probabutions for unit-norm features x\nbi ∈ RD is defined\nbility density function of a unit vector x\nin the hyperspherical space as follows:\n  p_D(\\hbx _i;\\hbx _j,\\kappa ) = F_D(\\kappa )\\exp (\\kappa \\langle \\hbx _i,\\hbx _j\\rangle ), \n\n(18)\n\nwhere  \\kappa \\geq 0  controls the concentration of the distribution\nbj and  F_D(\\kappa )  is the normalizaaround the mean direction x\ntion factor. A larger  \\kappa  value increases concentration around\nthe mean, while in the extreme case  \\kappa = 0 , sample points\nare uniformly distributed on the hypersphere. Therefore, we\ndesign a dispersion loss to optimize large angular distances\nbetween the features of all samples:\n  \\!\\! \\!\\!\\mathcal {L}_\\text {DFL} \\!\\!=\\!\\! \\frac {1}{U}\\!\\!\\sum ^{U}_{i=1}\\log \\frac {1}{U-1}\\!\\!\\sum _{i,j=1}^{U}\\!\\!\\mathbbm {1}\\{i \\neq j\\}\\exp (\\kappa \\langle \\hbx _i,\\hbx _j\\rangle ),  (19)\nwhere U = N + M , and κ is set to 10 in our experiments.\n\n4.4. Anomaly Score Prediction\n  \\mcL _\\text {DPL}^\\norm = \\frac {1}{N}\\sum ^{N}_{i=1}\\log \\varpi _\\theta (\\x _i^\\norm ) - \\frac {1}{C}\\sum ^{C}_{c=1}\\log \\phi _1(\\bmu _c), \n\n(16)\n\nIn contrast, for anomaly samples, we aim to push anomaly\ndistribution away from p1 , i.e., negative loss, formally,\n  \\mcL _\\text {DPL}^\\anom = \\frac {1}{C}\\sum ^{C}_{c=1}\\log \\phi _1(\\bmu _c)-\\frac {1}{M}\\sum ^{M}_{i=1}\\log \\varpi _\\theta (\\x _i^\\anom ), \n\n(17)\n\n4.3. Dispersion Feature Learning\nA critical challenge in OSAD is detecting previously unseen anomalies in open-set environments. Due to the\nlimited anomaly observations, existing methods often use\npseudo-anomaly generation strategies as a means of effective data augmentation. Nonetheless, the effectiveness of\nthese methods heavily depends on the quality of the pseudoanomaly feature embeddings. Notably, pseudo-anomaly\ndistributions often inherit biases from the in-distribution\ndata, which differ from the unknown anomaly distributions\nin out-of-distribution data. Current methods fail to address\nthe relationship between observed and unknown anomalies,\nparticularly for out-of-distribution generalization.\nTo improve out-of-distribution detection, it is essential\nto promote a larger inter-sample dispersion, as greater distances among in-distribution samples facilitate their more\neffective separation from out-of-distribution samples. In\nother words, if all inter-sample distances are close to zero,\ni.e., collapse to a single point, it becomes impossible to differentiate between samples. Hence, promoting separability\nthrough a larger inter-sample dispersion is critical for accurately identifying samples that do not belong to known categories. To do so, we map the features into a hyperspherical\n\nBased on the above designs, we leverage the multipleinstance-learning (MIL)-based method proposed in [35] to\neffectively learn anomaly scores. Similar to the work [9],\nwe design three modules M = {Ma , Mn and Mr } for estimating anomaly scores. Firstly, for the feature map xi 1 , we\n′\n×W ′\ngenerate pixel-wise feature vectors V = {vi }H\nto repi=1\nresent the feature of small patches of the image xi , where\n(H ′ , W ′ ) denotes the size of the feature map. These pixelwise representations are then mapped by an anomaly classifier Sa to estimate pixel-level anomaly scores. To capture\nthose points with the most salient anomalies, we compute\nthe top-K most anomaly pixel points and define the loss\nfunction as:\n \\label {eq16} \\mathcal {L}_{\\mathsf {M}_\\anom }(\\x _i,y_i) = \\mathcal {L}_\\text {binary} (\\frac {1}{K}{\\sum } \\text {Top}_K \\{S_\\anom (\\v _i;\\theta _\\anom )\\},y_i),  (20)\nwhere Lbinary refers to a binary classification loss function,\nand TopK selects the highest K anomaly scores among all\nthe vectors. We use Mn to learn the normal features:\n  \\mathcal {L}_{\\mathsf {M}_\\norm }(\\x _i,y_i) = \\mathcal {L}_\\text {binary}(S_\\norm (\\frac {1}{H'\\times W'}\\sum ^{H'\\times W'}_{i=1}\\v _i;\\theta _\\norm ),y_i), \n(21)\nwhere Sn : V → R is a fully connected binary anomaly\nclassifier. Finally, we define Mr to compute the residual\nanomaly scores between fine-grained visual semantics and\nabstract prototypes:\n  \\mathcal {L}_{\\mathsf {M}_\\res } = \\mathcal {L}_\\text {binary}(S_\\res ((\\psi _p(\\x _i)-\\bmu _{c^*})/\\bsigma _{c^*};\\theta _\\res ),y_i),\n1 Here x\n\n(22)\n\ni refers to convolution maps without flattening (as used above).\n\n\fwhere c∗ denotes the index of the most probable prototypes,\ni.e., c∗ = arg maxc N (ψp (xi ); µc , σc ), and Sr utilize the\nsame method to obtain anomaly score as Sa .\nTraining. During the training phase, the SB and three\nprediction modules are jointly trained. To this end, we employ an objective function that encompasses three components as follows:\n  \\mathcal {L} = \\underbrace {\\mathcal {L}_{\\mathsf {M}_\\anom }+\\mathcal {L}_{\\mathsf {M}_\\norm }+\\mathcal {L}_{\\mathsf {M}_\\res }}_\\text {MIL-based learning} + \\underbrace {\\mathcal {L}_\\text {DPL}^\\norm + \\mathcal {L}_\\text {DPL}^\\anom }_\\text {SB transform} + \\underbrace {\\lambda \\mathcal {L}_\\text {DFL}}_\\text {dispersion}. (23)\n\nwhere the coefficient λ modulates the relative importance\nof dispersion loss, and the learnable parameters include\n{αc , µc , σc }, θψp , and {θa , θn , θr }.\nInference. During the test phase, we find the most similar class prototype through SB, and subsequently compute\nthe anomaly score by adding the scores from both  S_\\anom  and\n S_\\res  , while subtracting the normal score obtained from  S_\\norm  for\nthe given test image.\n\n5. Experiment\n5.1. Dataset and Evaluation Metric\nDataset To validate the effectiveness of DPDL, comprehensive experiments are conducted on nine real-world AD\ndatasets, including six industrial defect detection datasets\n(MVTec AD [3], Optical [46], SDD [40], AITEX [39],\nELPV [8], Mastcam [13]) and three medical image datasets\n(Hyper-Kvasir [4], Brain-MRI [37], HeadCT [37]). We follow the previous OSAD baselines [9, 51] to adopt two protocols for sampling, including general setting and hard setting. The general setting assumes that anomaly examples\nare randomly sampled from the anomaly class, while the\nhard setting samples from a single class to assess generalization to new or unseen anomaly classes.\nEvaluation Metric We utilize the widely adopted Area Under ROC Curve (AUC) as a metric to evaluate the performance across all methods and settings. All reported AUCs\nare averaged results over five independent runs.\n\nAdamW optimizer [29] is used for the parameter optimization using an initial learning rate 2×10−4 with a weight decay of 1 × 10−5 . DPDL is trained on one NVIDIA GeForce\nRTX 4090 GPU, which are trained using 50 epochs, with 20\niterations per epoch. Following previous protocol [9, 51],\nwe evaluate performance with anomaly sample numbers of\n M = 10  and  M = 1 , and for robust detection of unseen\nanomalies, we use CutMix [49] to create pseudo-anomaly\nsamples as augmented data for known anomalies. The prototype quantity C is set to 32 as default.\n\n5.4. Results under General Setting\nTab. 1 highlights DPDL’s strong performance. In the challenging scenario of single-anomaly detection, DPDL improves the performance of AHL [51] by more than 8.3%\non the AITEX, ELPV, and Mastcam datasets. Furthermore,\nit achieves significant improvements across six additional\ndatasets, which suggest the effective utilization of few-shot\nanomaly examples in DPDL, while mitigating overfitting to\nthe seen anomalies. When shifting to ten anomaly examples\nsettings, DPDL continues to maintain a significant lead with\nover 5.4% improvement on those datasets. Given the rich\nand diverse set of normal samples in these datasets, DPDL\nleverages the DPL component to encapsulate these samples\nwithin a compact, discriminative distribution space, while\neffectively pushing anomalous samples outside this space,\nthereby enabling accurate anomaly detection. In the setting\nwith ten abnormal samples, although existing methods have\nreached performance saturation on the MVTecAD, Optical,\nand SDD datasets, DPDL still has a certain lead, demonstrating the strong ability of DPL and DFL in learning tight\nboundaries of normal sample distributions and generalizing\nto previously unseen anomaly domains. Furthermore, when\nevaluated on the medical datasets BrainMRI and HeadCT,\nDPDL demonstrates competitive performance despite these\ndatasets being notably small in scale and containing only a\nsingle class. This highlights the algorithm’s ability to deliver robust results even in data-scarce conditions.\n\n5.2. Baselines\n\n5.5. Results under the Hard Setting\n\nWe compare DPDL against six related state-of-the-art\nOSAD baselines, including SAOE [19, 32, 41], MLEP [27],\nFLOS [36], DevNet [35], DRA [9], and AHL [51]. MLEP,\nDevNet, DRA, and AHL are specifically designed for\nOSAD. SAOE is a supervised detector enhanced with synthetic anomalies and anomaly exposure, whereas FLOS is\nan imbalanced classifier leveraging focal loss.\n\nTab. 2 summarizes the performance comparison under the\nhard setting. It is evident that DPDL achieves the highest\nAUC scores in both the single-anomaly and ten-anomaly\nsample settings. Specifically, compared to the closest competing method, AHL [51], DPDL achieves an improvement in AUC scores ranging from 0.6% to 7.9% in the ten\nanomaly examples settings and from 0.5% to 8.9% in the\none anomaly example settings, respectively. The observed\nimprovement can be attributed to the strong generalization\nability of DPDL in detecting unseen anomaly classes, even\nwhen the model is trained on only a single anomaly class.\n\n5.3. Implementation Details\nThe input image size is 448 × 448 × 3. We set K in the topK MIL to 10% of the number of all scores per score map.\n\n\fTable 1. AUC performance (mean ± std) across nine real-world AD datasets is reported under the general setting. red highlights the best\nresults, and blue indicates sub-optimal outcomes. All baseline SOTA results are sourced from the original papers [9, 51].\nDataset\n\nDevNet\n\nMVTec AD\nOptical\nSDD\nAITEX\nELPV\nMastcam\nHyper-Kvasir\nBrainMRI\nHeadCT\n\n0.945±0.004\n0.782±0.065\n0.988±0.006\n0.887±0.013\n0.846±0.022\n0.790±0.021\n0.829±0.018\n0.958±0.012\n0.982±0.009\n\nMVTec AD\nOptical\nSDD\nAITEX\nELPV\nMastcam\nHyper-Kvasir\nBrainMRI\nHeadCT\n\n0.780±0.020\n0.523±0.003\n0.881±0.009\n0.598±0.070\n0.514±0.076\n0.595±0.016\n0.653±0.037\n0.694±0.004\n0.742±0.076\n\nFLOS\n\nSAOE\nMLEP\nTen Training Anomaly Examples\n0.939±0.007 0.926±0.010 0.907±0.005\n0.720±0.055 0.941±0.013 0.740±0.039\n0.967±0.018 0.955±0.020 0.983±0.013\n0.841±0.049 0.874±0.024 0.867±0.037\n0.818±0.032 0.793±0.047 0.794±0.047\n0.703±0.029 0.810±0.029 0.798±0.026\n0.773±0.029 0.666±0.050 0.600±0.069\n0.955±0.011 0.900±0.041 0.959±0.011\n0.971±0.004 0.935±0.021 0.972±0.014\nOne Training Anomaly Example\n0.755±0.136 0.834±0.007 0.744±0.019\n0.518±0.003 0.815±0.014 0.516±0.009\n0.840±0.043 0.781±0.009 0.811±0.045\n0.538±0.073 0.675±0.094 0.564±0.055\n0.457±0.056 0.635±0.092 0.578±0.062\n0.542±0.017 0.662±0.018 0.625±0.045\n0.668±0.004 0.498±0.100 0.445±0.040\n0.693±0.036 0.531±0.060 0.632±0.017\n0.698±0.092 0.597±0.022 0.758±0.038\n\nDRA\n\nAHL\n\nDPDL (Ours)\n\n0.959±0.003\n0.965±0.006\n0.991±0.005\n0.893±0.017\n0.845±0.013\n0.848±0.008\n0.834±0.004\n0.970±0.003\n0.972±0.002\n\n0.970±0.002\n0.976±0.004\n0.991±0.001\n0.925±0.013\n0.850±0.004\n0.855±0.005\n0.880±0.003\n0.977±0.001\n0.999±0.003\n\n0.977±0.002\n0.983±0.005\n0.996±0.001\n0.975±0.007\n0.937±0.003\n0.934±0.010\n0.939±0.005\n0.969±0.005\n0.981±0.003\n\n0.883±0.008\n0.888±0.012\n0.859±0.014\n0.692±0.124\n0.675±0.024\n0.692±0.058\n0.690±0.017\n0.744±0.004\n0.796±0.105\n\n0.901±0.003\n0.888±0.007\n0.909±0.001\n0.734±0.008\n0.828±0.005\n0.743±0.003\n0.768±0.015\n0.866±0.004\n0.825±0.014\n\n0.927±0.002\n0.915±0.002\n0.917±0.003\n0.838±0.008\n0.897±0.002\n0.838±0.011\n0.821±0.007\n0.893±0.004\n0.865±0.005\n\nTable 2. AUC results (mean ± std) under the hard setting. The best and second-best results are highlighted in red and blue, respectively.\nCarpet and Metal nut are subsets of MVTec AD. The datasets used are consistent with those in [9, 51], where those datasets only containing\none anomaly class are excluded to adapt for the hard setting.\nDataset\n\nDevNet\n\nCarpet (mean)\nMetal nut (mean)\nAITEX (mean)\nELPV (mean)\nMastcam (mean)\nHyper-Kvasir (mean)\n\n0.847±0.017\n0.965±0.011\n0.683±0.032\n0.702±0.023\n0.588±0.011\n0.822±0.019\n\nCarpet (mean)\nMetal nut (mean)\nAITEX (mean)\nELPV (mean)\nMastcam (mean)\nHyper-Kvasir (mean)\n\n0.767±0.018\n0.855±0.016\n0.646±0.034\n0.648±0.057\n0.511±0.013\n0.595±0.023\n\nFLOS\nSAOE\nMLEP\nTen Training Anomaly Examples\n0.761±0.012 0.762±0.073 0.751±0.023\n0.922±0.014 0.855±0.016 0.878±0.058\n0.635±0.043 0.724±0.032 0.626±0.041\n0.642±0.032 0.683±0.047 0.745±0.020\n0.616±0.021 0.697±0.014 0.588±0.016\n0.786±0.021 0.698±0.021 0.571±0.014\nOne Training Anomaly Example\n0.678±0.040 0.753±0.055 0.679±0.029\n0.855±0.024 0.816±0.029 0.825±0.023\n0.624±0.024 0.674±0.034 0.466±0.030\n0.691±0.008 0.614±0.048 0.566±0.111\n0.524±0.013 0.689±0.037 0.541±0.007\n0.571±0.004 0.406±0.018 0.480±0.044\n\n\u00007\u0000H\u0000Q\u0000\u0003\u00007\u0000U\u0000D\u0000L\u0000Q\u0000L\u0000Q\u0000J\u0000\u0003\u0000$\u0000Q\u0000R\u0000P\u0000D\u0000O\u0000\\\u0000\u0003\u0000(\u0000[\u0000D\u0000P\u0000S\u0000O\u0000H\u0000V\u0000\u0003\u00008\u0000Q\u0000G\u0000H\u0000U\u0000\u0003\u0000*\u0000H\u0000Q\u0000H\u0000U\u0000D\u0000O\u0000\u0003\u00006\u0000H\u0000W\u0000W\u0000L\u0000Q\u0000J\u0000V\n\n\u0000$\u00008\u0000&amp;\n\n\u0000\u0014\u0000\u0011\u0000\u0013\u0000\u0013\n\n\u0000'\u00003\u0000'\u0000/\n\n\u0000'\u00003\u0000'\u0000/\u0000\u0003\u0000Z\u0000\u0012\u0000R\u0000\u0003\u0000'\u00003\u0000/\n\n\u0000'\u00003\u0000'\u0000/\u0000\u0003\u0000Z\u0000\u0012\u0000R\u0000\u0003\u0000'\u0000)\u0000/\n\n\u0000\u0014\u0000\u0011\u0000\u0013\u0000\u0013\n\n\u0000'\u00003\u0000'\u0000/\n\n\u0000'\u00003\u0000'\u0000/\u0000\u0003\u0000Z\u0000\u0012\u0000R\u0000\u0003\u0000'\u00003\u0000/\n\nDRA\n\nAHL\n\nDPDL (Ours)\n\n0.935±0.013\n0.945±0.017\n0.733±0.009\n0.766±0.029\n0.695±0.004\n0.844±0.009\n\n0.949±0.002\n0.972±0.002\n0.747±0.002\n0.788±0.003\n0.721±0.003\n0.854±0.004\n\n0.956±0.004\n0.978±0.002\n0.798±0.005\n0.818±0.003\n0.778±0.007\n0.864±0.002\n\n0.901±0.006\n0.932±0.017\n0.684±0.033\n0.703±0.022\n0.667±0.012\n0.700±0.009\n\n0.932±0.003\n0.939±0.004\n0.707±0.007\n0.740±0.003\n0.673±0.010\n0.706±0.007\n\n0.941±0.006\n0.944±0.003\n0.753±0.005\n0.762±0.003\n0.733±0.004\n0.715±0.004\n\n\u00007\u0000H\u0000Q\u0000\u0003\u00007\u0000U\u0000D\u0000L\u0000Q\u0000L\u0000Q\u0000J\u0000\u0003\u0000$\u0000Q\u0000R\u0000P\u0000D\u0000O\u0000\\\u0000\u0003\u0000(\u0000[\u0000D\u0000P\u0000S\u0000O\u0000H\u0000V\u0000\u0003\u00008\u0000Q\u0000G\u0000H\u0000U\u0000\u0003\u0000+\u0000D\u0000U\u0000G\u0000\u0003\u00006\u0000H\u0000W\u0000W\u0000L\u0000Q\u0000J\u0000V\n\u0000'\u00003\u0000'\u0000/\u0000\u0003\u0000Z\u0000\u0012\u0000R\u0000\u0003\u0000'\u0000)\u0000/\n\n\u0000\u0014\u0000\u0011\u0000\u0013\u0000\u0013\n\n\u0000'\u00003\u0000'\u0000/\n\n\u0000'\u00003\u0000'\u0000/\u0000\u0003\u0000Z\u0000\u0012\u0000R\u0000\u0003\u0000'\u00003\u0000/\n\n\u0000'\u00003\u0000'\u0000/\u0000\u0003\u0000Z\u0000\u0012\u0000R\u0000\u0003\u0000'\u0000)\u0000/\n\n\u0000\u0014\u0000\u0011\u0000\u0013\u0000\u0013\n\n\u0000\u0013\u0000\u0011\u0000\u001c\u0000\u0018\n\n\u0000\u0013\u0000\u0011\u0000\u001c\u0000\u0018\n\n\u0000\u0013\u0000\u0011\u0000\u001c\u0000\u0018\n\n\u0000\u0013\u0000\u0011\u0000\u001c\u0000\u0018\n\n\u0000\u0013\u0000\u0011\u0000\u001c\u0000\u0013\n\n\u0000\u0013\u0000\u0011\u0000\u001c\u0000\u0013\n\n\u0000\u0013\u0000\u0011\u0000\u001c\u0000\u0013\n\n\u0000\u0013\u0000\u0011\u0000\u001c\u0000\u0013\n\n\u0000\u0013\u0000\u0011\u0000\u001b\u0000\u0018\n\n\u0000\u0013\u0000\u0011\u0000\u001b\u0000\u0018\n\n\u0000\u0013\u0000\u0011\u0000\u001b\u0000\u0018\n\n\u0000\u0013\u0000\u0011\u0000\u001b\u0000\u0018\n\n\u0000\u0013\u0000\u0011\u0000\u001b\u0000\u0013\n\n\u0000\u0013\u0000\u0011\u0000\u001b\u0000\u0013\n\n\u0000\u0013\u0000\u0011\u0000\u001b\u0000\u0013\n\n\u0000\u0013\u0000\u0011\u0000\u001b\u0000\u0013\n\n\u0000\u0013\u0000\u0011\u0000\u001a\u0000\u0018\n\n\u0000\u0013\u0000\u0011\u0000\u001a\u0000\u0018\n\n\u0000\u0013\u0000\u0011\u0000\u001a\u0000\u0018\n\n\u0000\u0013\u0000\u0011\u0000\u001a\u0000\u0018\n\n\u0000\u0013\u0000\u0011\u0000\u001a\u0000\u0013\n\n\u0000\u0013\u0000\u0011\u0000\u001a\u0000\u0013\n\n\u0000\u0013\u0000\u0011\u0000\u001a\u0000\u0013\n\n\u0000\u0013\u0000\u0011\u0000\u001a\u0000\u0013\n\n\u0000\u0013\u0000\u0011\u0000\u0019\u0000\u0018\n\n\u0000\u0013\u0000\u0011\u0000\u0019\u0000\u0018\n\n\u0000\u0013\u0000\u0011\u0000\u0019\u0000\u0018\n\n\u0000\u0013\u0000\u0011\u0000\u0019\u0000\u0018\n\n\u0000\u0013\u0000\u0011\u0000\u0019\u0000\u0013\n\n\u0000\u0013\u0000\u0011\u0000\u0019\u0000\u0013\n\n\u0000\u0013\u0000\u0011\u0000\u0019\u0000\u0013\n\n\u00000\u00009\u00007\u0000H\u0000F\u0000\u0003\u0000$\u0000'\n\n\u00002\u0000S\u0000W\u0000L\u0000F\u0000D\u0000O\n\n\u00006\u0000'\u0000'\n\n\u0000$\u0000,\u00007\u0000(\u0000;\n\n\u0000(\u0000/\u00003\u00009 \u00000\u0000D\u0000V\u0000W\u0000F\u0000D\u0000P\u0000+\u0000\\\u0000S\u0000H\u0000U\u0000\u0010\u0000.\u0000Y\u0000D\u0000V\u0000L\u0000%\u0000U\u0000D\u0000L\n\u0000U \u0000Q\u00000\u00005\u0000, \u0000+\u0000H\u0000D\u0000G\u0000&amp;\u00007\n\n\u0000&amp;\u0000D\u0000U\u0000S\u0000H\u0000W\n\n\u00000\u0000H\u0000W\u0000D\u0000O\u0000B\u0000Q\u0000X\u0000W\n\n\u0000$\u0000,\u00007\u0000(\u0000;\n\n\u0000\u0013\u0000\u0011\u0000\u0019\u0000\u0013\n\nFigure 2. Ablation study for SB and DFL under the general settings and hard settings.\n\n\u0000'\u00003\u0000'\u0000/\n\n\u0000'\u00003\u0000'\u0000/\u0000\u0003\u0000Z\u0000\u0012\u0000R\u0000\u0003\u0000'\u00003\u0000/\n\n\u0000'\u00003\u0000'\u0000/\u0000\u0003\u0000Z\u0000\u0012\u0000R\u0000\u0003\u0000'\u0000)\u0000/\n\n\u0000(\u0000/\u00003\u00009\n\n\u00000\u0000D\u0000V\u0000W\u0000F\u0000D\u0000P\n\n\u0000+\u0000\\\u0000S\u0000H\u0000U\u0000\u0010\u0000.\u0000Y\u0000D\u0000V\u0000L\u0000U\n\n\f\u00000\u00009\u00007\u0000H\u0000F\u0000\u0003\u0000$\u0000'\n\u00002\u0000S\u0000W\u0000L\u0000F\u0000D\u0000O\n\u00006\u0000'\u0000'\n\n\u0000\u0014\u0000\u0011\u0000\u0013\u0000\u0015\n\n\u0000$\u00008\u0000&amp;\n\n\u0000\u0014\u0000\u0011\u0000\u0013\u0000\u0013\n\n\u0000$\u0000,\u00007\u0000(\u0000;\n\u0000(\u0000/\u00003\u00009\n\u00000\u0000D\u0000V\u0000W\u0000F\u0000D\u0000P\n\n\u0000+\u0000\\\u0000S\u0000H\u0000U\u0000\u0010\u0000.\u0000Y\u0000D\u0000V\u0000L\u0000U\n\u0000%\u0000U\u0000D\u0000L\u0000Q\u00000\u00005\u0000,\n\u0000+\u0000H\u0000D\u0000G\u0000&amp;\u00007\n\n\u00000\u00009\u00007\u0000H\u0000F\u0000\u0003\u0000$\u0000'\n\u00002\u0000S\u0000W\u0000L\u0000F\u0000D\u0000O\n\u00006\u0000'\u0000'\n\n\u0000\u0014\u0000\u0011\u0000\u0013\u0000\u0015\n\u0000\u0014\u0000\u0011\u0000\u0013\u0000\u0013\n\n\u0000$\u0000,\u00007\u0000(\u0000;\n\u0000(\u0000/\u00003\u00009\n\u00000\u0000D\u0000V\u0000W\u0000F\u0000D\u0000P\n\n\u0000+\u0000\\\u0000S\u0000H\u0000U\u0000\u0010\u0000.\u0000Y\u0000D\u0000V\u0000L\u0000U\n\u0000%\u0000U\u0000D\u0000L\u0000Q\u00000\u00005\u0000,\n\u0000+\u0000H\u0000D\u0000G\u0000&amp;\u00007\n\n\u00000\u00009\u00007\u0000H\u0000F\u0000\u0003\u0000$\u0000'\n\u00002\u0000S\u0000W\u0000L\u0000F\u0000D\u0000O\n\u00006\u0000'\u0000'\n\n\u0000\u0014\u0000\u0011\u0000\u0013\u0000\u0015\n\u0000\u0014\u0000\u0011\u0000\u0013\u0000\u0013\n\n\u0000$\u0000,\u00007\u0000(\u0000;\n\u0000(\u0000/\u00003\u00009\n\u00000\u0000D\u0000V\u0000W\u0000F\u0000D\u0000P\n\n\u0000+\u0000\\\u0000S\u0000H\u0000U\u0000\u0010\u0000.\u0000Y\u0000D\u0000V\u0000L\u0000U\n\u0000%\u0000U\u0000D\u0000L\u0000Q\u00000\u00005\u0000,\n\u0000+\u0000H\u0000D\u0000G\u0000&amp;\u00007\n\n\u0000\u0014\u0000\u0011\u0000\u0013\u0000\u0013\n\n\u0000\u0013\u0000\u0011\u0000\u001c\u0000\u001b\n\n\u0000\u0013\u0000\u0011\u0000\u001c\u0000\u001b\n\n\u0000\u0013\u0000\u0011\u0000\u001c\u0000\u001b\n\n\u0000\u0013\u0000\u0011\u0000\u001c\u0000\u001b\n\n\u0000\u0013\u0000\u0011\u0000\u001c\u0000\u0019\n\n\u0000\u0013\u0000\u0011\u0000\u001c\u0000\u0019\n\n\u0000\u0013\u0000\u0011\u0000\u001c\u0000\u0019\n\n\u0000\u0013\u0000\u0011\u0000\u001c\u0000\u0019\n\n\u0000\u0013\u0000\u0011\u0000\u001c\u0000\u0017\n\n\u0000\u0013\u0000\u0011\u0000\u001c\u0000\u0017\n\n\u0000\u0013\u0000\u0011\u0000\u001c\u0000\u0017\n\n\u0000\u0013\u0000\u0011\u0000\u001c\u0000\u0017\n\n\u0000\u0013\u0000\u0011\u0000\u001c\u0000\u0015\n\n\u0000\u0013\u0000\u0011\u0000\u001c\u0000\u0015\n\n\u0000\u0013\u0000\u0011\u0000\u001c\u0000\u0015\n\n\u0000\u0013\u0000\u0011\u0000\u001c\u0000\u0013\n\n\u0000\u001b\n\n\u0000\u0014\u0000\u0019\n\nC\n\n\u0000\u0016\u0000\u0015\n\n\u0000\u0019\u0000\u0017\n\n\u0000\u0013\u0000\u0011\u0000\u001c\u0000\u0013\n\n\u0000\u0013\u0000\u0011\u0000\u0013\u0000\u0013\u0000\u0014\n\n\u0000\u0013\u0000\u0011\u0000\u0013\u0000\u0014\n\n\u0000\u0013\u0000\u0011\u0000\u0014\n\n\u0000\u0014\n\n\u0000\u0014\u0000\u0013\n\n\u0000\u0013\u0000\u0011\u0000\u001c\u0000\u0013\n\n\u00000\u00009\u00007\u0000H\u0000F\u0000\u0003\u0000$\u0000'\n\u00002\u0000S\u0000W\u0000L\u0000F\u0000D\u0000O\n\u00006\u0000'\u0000'\n\n\u0000\u0014\u0000\u0011\u0000\u0013\u0000\u0015\n\n\u0000$\u0000,\u00007\u0000(\u0000;\n\u0000(\u0000/\u00003\u00009\n\u00000\u0000D\u0000V\u0000W\u0000F\u0000D\u0000P\n\n\u0000+\u0000\\\u0000S\u0000H\u0000U\u0000\u0010\u0000.\u0000Y\u0000D\u0000V\u0000L\u0000U\n\u0000%\u0000U\u0000D\u0000L\u0000Q\u00000\u00005\u0000,\n\u0000+\u0000H\u0000D\u0000G\u0000&amp;\u00007\n\n\u0000\u0013\u0000\u0011\u0000\u001c\u0000\u0015\n\u0000\u0013\u0000\u0011\u0000\u0014\n\n\u0000\u0014\n\n\u0000\u0014\u0000\u0013\n\n\u0000\u0014\u0000\u0013\u0000\u0013\n\n\u0000\u0014\u0000\u0013\u0000\u0013\u0000\u0013\n\n\u0000\u0013\u0000\u0011\u0000\u001c\u0000\u0013\n\n\u0000\u0013\u0000\u0011\u0000\u0013\u0000\u0013\u0000\u0013\u0000\u0014\n\n\u0000\u0013\u0000\u0011\u0000\u0013\u0000\u0013\u0000\u0014\n\n\u0000\u0013\u0000\u0011\u0000\u0013\u0000\u0014\n\n\u0000\u0013\u0000\u0011\u0000\u0014\n\n\u0000\u0014\n\n\u0000\u0014\u0000\u0013\n\nFigure 3. Parameter sensitivity analysis for C, ϵ, κ and λ.\nTable 3. An ablation study for Mn , Ma and Mr .\nMn Ma Mr\n\nAITEX\n\nELPV\n\nMastcam\n\nTen Training Anomaly Examples Under General Settings\n0.928 ± 0.019\n0.939 ± 0.023\n0.963 ± 0.008\n0.975 ± 0.007\n\n0.914 ± 0.021\n0.919 ± 0.011\n0.930 ± 0.013\n0.937 ± 0.003\n\n0.899 ± 0.036\n0.908 ± 0.017\n0.924 ± 0.019\n0.934 ± 0.010\n\nTen Training Anomaly Examples Under Hard Settings\n0.746 ± 0.025\n0.758 ± 0.035\n0.781 ± 0.014\n0.798 ± 0.005\n\n0.797 ± 0.026\n0.802 ± 0.024\n0.811 ± 0.018\n0.818 ± 0.003\n\n0.723 ± 0.017\n0.736 ± 0.028\n0.762 ± 0.021\n0.778 ± 0.007\n\n5.6. Ablation Study\nThe ablation study in Fig. 2 highlights the critical roles of\nthe DPL and DFL components in improving DPDL’s openset anomaly detection. We denote the variants that remove\nonly DPL or DFL as ‘DPDL w/o DPL’ and ‘DPDL w/o\nDFL’, respectively. Compared to the full DPDL model, removing neither DPL nor DFL leads to a significant AUC decline, illustrating their critical utility. Specifically, ‘DPDL\nw/o DPL’ exhibits the most significant performance drop\non industrial anomaly datasets, reflecting DPL’s prominent\nrole in learning precise and tight distribution boundaries\nfor normal samples. By transforming normal samples into\nGaussian distribution prototype space and pushing abnormal samples away, DPL enhances the recognition ability of\nanomaly samples. Meanwhile, ablation studies on ‘DPDL\nw/o DFL’ further highlight the critical role of the DFL component. By performing discreteness feature learning in hyperspherical space, DFL enhances the generalization ability\nto out-of-distribution anomalies.\nAdditionally, the ablation experiments on \\protect \\mathsf  {M}_\\text {n} , \\protect \\mathsf  {M}_\\text {a} , and\n\\protect \\mathsf  {M}_\\text {r} across three datasets in Tab. 3 reveal their varying contributions. DPDL shows the most significant performance\ndrop when \\protect \\mathsf  {M}_\\text {r} is removed, which illustrates that \\protect \\mathsf  {M}_\\text {r} plays\nthe most critical role in detecting anomalies. Furthermore,\nthe removal of Ma and Mn lead to a noticeable performance\ndrop in DPDL, which underscores their essential roles.\n\n5.7. Parameter Sensitivity Analysis\nFig. 3 illustrates the results of the four hyperparameters under the general settings across nine datasets. Overall, the\nperformance remains stable within a certain range of hyper-\n\nparameter variations, demonstrating the DPDL’s robustness.\nPrototype quantity C. We begin by investigating the\ncritical impact of the number of initialized prototypes\nC on distributed prototype learning in DPDL. We select\n{8, 16, 32, 64} as the values for the hyperparameters. As\nC increases, DPDL’s performance improves steadily, but\nexcessively large values of C hinder the model’s effectiveness. This phenomenon is particularly pronounced on AITEX, Mastcam, MVTecAD, and Hyper-Kvasir, which contain more categories. One possible explanation is that a prototype space with too few prototypes loses discriminative\ninformation, while an excessively large number of prototypes reduces the compactness of the space.\nDPL trajectory ϵ in Eqns. (9), (10), (11) and (14). It\ncan be observed that, particularly on the AITEX, Mastcam,\nand MVTecAD datasets with a larger number of categories,\nDPDL exhibits a relatively stable performance decline as\n \\epsilon  increases. As a crucial parameter in SB, ϵ governs the\ntrajectory state. Since smaller values produce straighter trajectories and larger values increase fluctuation, smaller  \\epsilon  facilitates sampling more robust abstract prototypes from the\nrelatively dispersed conditional distribution.\nDFL tightness κ. According to Fig. 3, increasing  \\kappa  generally enhances model performance, but values above  \\kappa = 10 \nintroduce negative effects in certain scenarios. A possible\nreason is that excessive sample dispersion makes it more\nchallenging to tighten the normal distribution boundary.\nLoss parameter λ. We conduct a sensitivity analysis on\nthe loss parameters  \\lambda . It can be observe that setting\n \\lambda = 0.01 \nachieves optimal performance on seven larger-scale\ndatasets, while  \\lambda = 1  yields the best results on two datasets\nwith limited data. As  \\lambda  increases, the performance declines,\npotentially due to gradient conflicts among the dispersion\nloss, SB transform loss and the main task loss.\n\n6. Conclusion\nWe propose Distribution Prototype Diffusion Learning\n(DPDL) for OSAD. DPDL leverages schrödinger bridge to\nmap the normal distribution to a prototype space, simultaneously repelling anomalies to facilitate precise anomaly detection. We propose a dispersion feature learning way in\nhyperspherical space, which benefits the detection of outof-distribution anomalies. Experimental results illustrate\nDPDL’s robustness in diverse anomaly detection scenarios.\n\n\fReferences\n[1] Andra Acsintoae, Andrei Florescu, Mariana-Iuliana\nGeorgescu, Tudor Mare, Paul Sumedrea, Radu Tudor\nIonescu, Fahad Shahbaz Khan, and Mubarak Shah. Ubnormal: New benchmark for supervised open-set video\nanomaly detection.\nIn Proceedings of the IEEE/CVF\nconference on computer vision and pattern recognition,\npages 20143–20153, 2022. 1, 2\n[2] Aimira Baitieva, David Hurych, Victor Besnier, and Olivier\nBernard. Supervised anomaly detection for complex industrial images. In Proceedings of the IEEE/CVF Conference\non Computer Vision and Pattern Recognition, pages 17754–\n17762, 2024. 1\n[3] 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\nrecognition, pages 9592–9600, 2019. 6\n[4] Hanna Borgli, Vajira Thambawita, Pia H Smedsrud, Steven\nHicks, Debesh Jha, Sigrun L Eskeland, Kristin Ranheim\nRandel, Konstantin Pogorelov, Mathias Lux, Duc Tien Dang\nNguyen, et al. Hyperkvasir, a comprehensive multi-class image and video dataset for gastrointestinal endoscopy. Scientific data, 7(1):283, 2020. 6\n[5] Yongxin Chen, Tryphon T Georgiou, and Michele Pavon.\nOn the relation between optimal transport and schrödinger\nbridges: A stochastic control viewpoint. Journal of Optimization Theory and Applications, 169:671–691, 2016. 2\n[6] Songmin Dai, Yifan Wu, Xiaoqiang Li, and Xiangyang\nXue. Generating and reweighting dense contrastive patterns for unsupervised anomaly detection. In Proceedings of\nthe AAAI Conference on Artificial Intelligence, pages 1454–\n1462, 2024. 1\n[7] Valentin De Bortoli, James Thornton, Jeremy Heng, and Arnaud Doucet. Diffusion schrödinger bridge with applications\nto score-based generative modeling. Advances in Neural Information Processing Systems, 34:17695–17709, 2021. 2\n[8] Sergiu Deitsch, Vincent Christlein, Stephan Berger, Claudia\nBuerhop-Lutz, Andreas Maier, Florian Gallwitz, and Christian Riess. Automatic classification of defective photovoltaic\nmodule cells in electroluminescence images. Solar Energy,\n185:455–468, 2019. 6\n[9] Choubo Ding, Guansong Pang, and Chunhua Shen. Catching\nboth gray and black swans: Open-set supervised anomaly\ndetection. In Proceedings of the IEEE/CVF conference on\ncomputer vision and pattern recognition, pages 7388–7398,\n2022. 1, 2, 5, 6, 7\n[10] Nikita Gushchin, Sergei Kholkin, Evgeny Burnaev, and\nAlexander Korotin. Light and optimal schrödinger bridge\nmatching. In Forty-first International Conference on Machine Learning, 2024. 2, 3, 4, 5\n[11] Liren He, Zhengkai Jiang, Jinlong Peng, Liang Liu, Qiangang Du, Xiaobin Hu, Wenbing Zhu, Mingmin Chi, Yabiao\nWang, and Chengjie Wang. Learning unified reference representation for unsupervised multi-class anomaly detection.\narXiv preprint arXiv:2403.11561, 2024. 1\n\n[12] Teng Hu, Jiangning Zhang, Ran Yi, Yuzhen Du, Xu Chen,\nLiang Liu, Yabiao Wang, and Chengjie Wang. Anomalydiffusion: Few-shot anomaly image generation with diffusion\nmodel. In Proceedings of the AAAI Conference on Artificial\nIntelligence, pages 8526–8534, 2024. 1\n[13] Hannah R Kerner, Kiri L Wagstaff, Brian D Bue, Danika F\nWellington, Samantha Jacob, Paul Horton, James F Bell,\nChiman Kwan, and Heni Ben Amor. Comparison of novelty\ndetection methods for multispectral images in rover-based\nplanetary exploration missions. Data Mining and Knowledge\nDiscovery, 34:1642–1675, 2020. 6\n[14] Beomsu Kim, Gihyun Kwon, Kwanyoung Kim, and\nJong Chul Ye. Unpaired image-to-image translation via neural schr\\” odinger bridge. arXiv preprint arXiv:2305.15086,\n2023. 2\n[15] Daehyun Kim, Sungyong Baik, and Tae Hyun Kim. Sanflow: Semantic-aware normalizing flow for anomaly detection. Advances in Neural Information Processing Systems,\n36:75434–75454, 2023. 1\n[16] Hyunsu Kim, Jongmin Yoon, and Juho Lee. Fast ensembling with diffusion schr\\” odinger bridge. arXiv preprint\narXiv:2404.15814, 2024. 2\n[17] Alexander Korotin, Nikita Gushchin, and Evgeny Burnaev.\nLight schr\\” odinger bridge.\narXiv preprint\narXiv:2310.01174, 2023. 2, 3, 4, 5\n[18] Christian Léonard. A survey of the schr\\” odinger problem\nand some of its connections with optimal transport. arXiv\npreprint arXiv:1308.0215, 2013. 2\n[19] 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. 1, 6\n[20] Hanxi Li, Jingqi Wu, Hao Chen, Mingwen Wang, and Chunhua Shen. Efficient anomaly detection with budget annotation using semi-supervised residual transformer. arXiv\npreprint arXiv:2306.03492, 2023. 1\n[21] Xiaofan Li, Zhizhong Zhang, Xin Tan, Chengwei Chen,\nYanyun Qu, Yuan Xie, and Lizhuang Ma. Promptad: Learning prompts with only normal samples for few-shot anomaly\ndetection. In Proceedings of the IEEE/CVF Conference on\nComputer Vision and Pattern Recognition, pages 16838–\n16848, 2024. 1\n[22] Jingyi Liao, Xun Xu, Manh Cuong Nguyen, Adam Goodge,\nand Chuan Sheng Foo. Coft-ad: Contrastive fine-tuning for\nfew-shot anomaly detection. IEEE Transactions on Image\nProcessing, 2024. 1\n[23] Guan-Horng Liu, Tianrong Chen, Oswin So, and Evangelos\nTheodorou. Deep generalized schrödinger bridge. Advances\nin Neural Information Processing Systems, 35:9374–9388,\n2022. 2\n[24] Guan-Horng Liu, Yaron Lipman, Maximilian Nickel, Brian\nKarrer, Evangelos A Theodorou, and Ricky TQ Chen. Generalized schr\\” odinger bridge matching. arXiv preprint\narXiv:2310.02233, 2023. 2\n[25] Guan-Horng Liu, Arash Vahdat, De-An Huang, Evangelos A Theodorou, Weili Nie, and Anima Anandkumar. i2 -\n\n\fsb: Image-to-image schr\\” odinger bridge. arXiv preprint\narXiv:2302.05872, 2023. 2\n[26] Jiaqi Liu, Kai Wu, Qiang Nie, Ying Chen, Bin-Bin\nGao, Yong Liu, Jinbao Wang, Chengjie Wang, and Feng\nZheng. Unsupervised continual anomaly detection with\ncontrastively-learned prompt. In Proceedings of the AAAI\nConference on Artificial Intelligence, pages 3639–3647,\n2024. 1\n[27] Wen Liu, Weixin Luo, Zhengxin Li, Peilin Zhao, Shenghua\nGao, et al. Margin learning embedded prediction for video\nanomaly detection with a few anomalies. In IJCAI, pages\n023–3, 2019. 1, 2, 6\n[28] Xinyue Liu, Jianyuan Wang, Biao Leng, and Shuo\nZhang. Dual-modeling decouple distillation for unsupervised anomaly detection. arXiv preprint arXiv:2408.03888,\n2024. 1\n[29] I Loshchilov. Decoupled weight decay regularization. arXiv\npreprint arXiv:1711.05101, 2017. 6\n[30] Jialin Luo, Yuanzhi Wang, Ziqi Gu, Yide Qiu, Shuaizhen\nYao, Fuyun Wang, Chunyan Xu, Wenhua Zhang, Dan Wang,\nand Zhen Cui. Mmm-rs: A multi-modal, multi-gsd, multiscene remote sensing dataset and benchmark for text-toimage generation. In The Thirty-eight Conference on Neural\nInformation Processing Systems Datasets and Benchmarks\nTrack. 2\n[31] Kanti V Mardia and Peter E Jupp. Directional statistics. John\nWiley &amp; Sons, 2009. 5\n[32] Amir Markovitz, Gilad Sharir, Itamar Friedman, Lihi ZelnikManor, and Shai Avidan. Graph embedded pose clustering\nfor anomaly detection. In Proceedings of the IEEE/CVF\nConference on Computer Vision and Pattern Recognition,\npages 10539–10547, 2020. 6\n[33] Maxence Noble, Valentin De Bortoli, Arnaud Doucet, and\nAlain Durmus. Tree-based diffusion schrödinger bridge with\napplications to wasserstein barycenters. Advances in Neural\nInformation Processing Systems, 36, 2024. 2\n[34] Guansong Pang, Chunhua Shen, and Anton Van Den Hengel. Deep anomaly detection with deviation networks. In\nProceedings of the 25th ACM SIGKDD international conference on knowledge discovery &amp; data mining, pages 353–362,\n2019. 1\n[35] Guansong Pang, Choubo Ding, Chunhua Shen, and\nAnton van den Hengel.\nExplainable deep few-shot\nanomaly detection with deviation networks. arXiv preprint\narXiv:2108.00462, 2021. 2, 5, 6\n[36] T-YLPG Ross and GKHP Dollár. Focal loss for dense object detection. In proceedings of the IEEE conference on\ncomputer vision and pattern recognition, pages 2980–2988,\n2017. 6\n[37] Mohammadreza Salehi, Niousha Sadjadi, Soroosh\nBaselizadeh, Mohammad H Rohban, and Hamid R Rabiee. Multiresolution knowledge distillation for anomaly\ndetection.\nIn Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages\n14902–14912, 2021. 6\n[38] Yuyang Shi, Valentin De Bortoli, Andrew Campbell, and Arnaud Doucet. Diffusion schrödinger bridge matching. Ad-\n\nvances in Neural Information Processing Systems, 36, 2024.\n2\n[39] Javier Silvestre-Blanes, Teresa Albero-Albero, Ignacio Miralles, Rubén Pérez-Llorens, and Jorge Moreno. A public\nfabric database for defect detection methods and results. Autex Research Journal, 19(4):363–374, 2019. 6\n[40] Domen Tabernik, Samo Sela, Jure Skvarc, and Danijel Skocaj. Segmentation-based deep-learning approach for surfacedefect detection. Journal of Intelligent Manufacturing, 31\n(3):759–776, 2020. 6\n[41] Jihoon Tack, Sangwoo Mo, Jongheon Jeong, and Jinwoo\nShin. Csi: Novelty detection via contrastive learning on distributionally shifted instances. Advances in neural information processing systems, 33:11839–11852, 2020. 6\n[42] Yuanzhi Wang, Zhen Cui, and Yong Li. Distributionconsistent modal recovering for incomplete multimodal\nlearning. In Proceedings of the IEEE/CVF International\nConference on Computer Vision, pages 22025–22034, 2023.\n2\n[43] Yuanzhi Wang, Yong Li, and Zhen Cui.\nIncomplete\nmultimodality-diffused emotion recognition. Advances in\nNeural Information Processing Systems, 36:17117–17128,\n2023.\n[44] Yuanzhi Wang, Yong Li, Mengyi Liu, Xiaoya Zhang,\nXin Liu, Zhen Cui, and Antoni B Chan. Re-attentional\ncontrollable video diffusion editing.\narXiv preprint\narXiv:2412.11710, 2024.\n[45] Yuanzhi Wang, Yong Li, Xiaoya Zhang, Xin Liu, Anbo Dai,\nAntoni B Chan, and Zhen Cui. Edit temporal-consistent\nvideos with image diffusion model. ACM Transactions on\nMultimedia Computing, Communications and Applications,\n20(12):1–16, 2024. 2\n[46] Matthias Wieler and Tobias Hahn. Weakly supervised learning for industrial optical inspection. In DAGM symposium\nin, page 11, 2007. 6\n[47] Xincheng Yao, Ruoqi Li, Jing Zhang, Jun Sun, and\nChongyang Zhang. Explicit boundary guided semi-pushpull contrastive learning for supervised anomaly detection.\nIn Proceedings of the IEEE/CVF Conference on Computer\nVision and Pattern Recognition, pages 24490–24499, 2023.\n1, 2\n[48] Xincheng Yao, Ruoqi Li, Zefeng Qian, Lu Wang, and\nChongyang Zhang. Hierarchical gaussian mixture normalizing flow modeling for unified anomaly detection. arXiv\npreprint arXiv:2403.13349, 2024. 1\n[49] Sangdoo Yun, Dongyoon Han, Seong Joon Oh, Sanghyuk\nChun, Junsuk Choe, and Youngjoon Yoo. Cutmix: Regularization strategy to train strong classifiers with localizable\nfeatures. In Proceedings of the IEEE/CVF international conference on computer vision, pages 6023–6032, 2019. 6\n[50] Qihang Zhou, Guansong Pang, Yu Tian, Shibo He, and\nJiming Chen. Anomalyclip: Object-agnostic prompt learning for zero-shot anomaly detection.\narXiv preprint\narXiv:2310.18961, 2023. 1\n[51] Jiawen Zhu, Choubo Ding, Yu Tian, and Guansong Pang.\nAnomaly heterogeneity learning for open-set supervised\nanomaly detection. In Proceedings of the IEEE/CVF Con-\n\n\fference on Computer Vision and Pattern Recognition, pages\n17616–17626, 2024. 1, 2, 6, 7\n[52] Yuansheng Zhu, Wentao Bao, and Qi Yu. Towards open set\nvideo anomaly detection. In European Conference on Computer Vision, pages 395–412. Springer, 2022. 1, 2\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"