"<!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>arXiv:2510.21296v2 [cs.LG] 28 Jan 2026\n\nAn Evidence-Based Post-Hoc Adjustment Framework\nfor Anomaly Detection Under Data Contamination\n\nSukanya Patra\nDepartment of Computer Science\nUniversity of Mons\nMons, Belgium\nsukanya.patra@umons.ac.be\n\nSouhaib Ben Taieb∗\nDepartment of Statistics and Data Science\nMohamed bin Zayed University of Artificial Intelligence\nAbu Dhabi, United Arab Emirates\nsouhaib.bentaieb@mbzuai.ac.ae\n\nAbstract\nUnsupervised anomaly detection (AD) methods typically assume clean training\ndata, yet real-world datasets often contain undetected or mislabeled anomalies,\nleading to significant performance degradation. Existing solutions require access\nto the training pipelines, data or prior knowledge of the proportions of anomalies\nin the data, limiting their real-world applicability. To address this challenge, we\npropose EPHAD, a simple yet effective test-time adaptation framework that updates\nthe outputs of AD models trained on contaminated datasets using evidence gathered at test time. Our approach integrates the prior knowledge captured by the\nAD model trained on contaminated datasets with evidence derived from multimodal foundation models like Contrastive Language-Image Pre-training (CLIP),\nclassical AD methods like the Local Outlier Factor or domain-specific knowledge.\nWe illustrate the intuition behind EPHAD using a synthetic toy example and validate its effectiveness through comprehensive experiments across eight visual AD\ndatasets, twenty-six tabular AD datasets, and a real-world industrial AD dataset.\nAdditionally, we conduct an ablation study to analyse hyperparameter influence\nand robustness to varying contamination levels, demonstrating the versatility and\nrobustness of EPHAD across diverse AD models and evidence pairs. To ensure\nreproducibility, our code is publicly available2 .\n\n1\n\nIntroduction\n\nAnomaly detection (AD) is the basis of many critical applications, including cybersecurity (Xiao\net al., 2024; Li et al., 2023a), healthcare (Bijlani et al., 2024; Huang et al., 2024), and industrial\nmaintenance (Schwarz et al., 2025; Patra et al., 2024). By enabling the identification of abnormalities,\npotential threats, or critical system failures, AD contributes to the robustness and safety of real-world\nsystems. Despite its significance, AD remains a challenging task due to the inherent difficulty in\ncharacterising anomalous behaviours and the lack of prior knowledge about anomalous samples (Ruff\net al., 2021). Consequently, AD is commonly approached as an unsupervised representation learning\nproblem without access to labelled anomalies (Batzner et al., 2024; You et al., 2022).\nA standard approach in unsupervised AD involves training a model to learn a “compact” representation\nof the normal samples from a training dataset under the assumption that the training data is “clean\",\ni.e. contains only normal samples (Ruff et al., 2021). Then, anomalies are identified as deviations\nfrom this learned normality. One-class (OC) classification methods (Ruff et al., 2018; Tax and Duin,\n2004) learn a decision boundary that encompasses all the normal samples. In contrast, density-based\nmethods (Gudovskiy et al., 2022; Yu et al., 2021) learn the probability distribution of normal samples.\nFurthermore, memory bank-based approaches (Roth et al., 2022) store the features corresponding\n∗\n2\n\nAffiliated with the Department of Computer Science, University of Mons.\nhttps://github.com/sukanyapatra1997/EPHAD\n\n39th Conference on Neural Information Processing Systems (NeurIPS 2025).\n\n\fto normal samples in a memory bank. However, real-world datasets are often contaminated with\nundetected anomalies (Das et al., 2025; Hien et al., 2024; Qiu et al., 2022). For example, a dataset\ncollected for industrial maintenance may already include unnoticed defects. This leads to biased AD\nmodels that struggle to reliably distinguish between normal and anomalous instances.\nWe consider the more realistic setting where the training data may be contaminated with anomalies.\nExisting approaches to handle contamination in the unsupervised setting primarily follow two\nstrategies. The first employs an auxiliary OC classifier to filter out suspected anomalies (Yoon et al.,\n2022; Jiang et al., 2022), while the second modifies the training pipeline to enhance robustness against\ncontamination (Qiu et al., 2022; Eduardo et al., 2020). Although effective, these methods rely on prior\nknowledge of the proportion of anomalies in the training data, i.e. the contamination ratio, which is\ntypically unknown. Also, such methods are often computationally expensive. In the semi-supervised\nsetting, methods leverage additional labelled datasets containing normal and anomalous samples\n(Hien et al., 2024; Ruff et al., 2020). However, their effectiveness diminishes when the anomalous\ninstances encountered during training do not replicate real-world anomalies (Perini et al., 2025).\nIn this work, we aim to mitigate the possible adverse effects of data contamination on the performance\nof unsupervised AD models (Bouman et al., 2024). Specifically, we address the challenging setting\nin which training pipelines, data, or prior knowledge of the proportions of anomalies cannot be\naccessed. This scenario reflects the growing trend of deploying proprietary AD models in real-world\napplications, where access to internal model components is often restricted. Even when fine-tuning is\npermitted, it is not only computationally intensive but also unreliable due to the absence of guaranteed\nclean training data, as anomalies are inherently unknown a priori. This setup aligns with preparationagnostic test-time adaptation (TTA) methods (Karmanov et al., 2024; Zhang et al., 2023; Xiao and\nSnoek, 2024) , which remain largely unexplored in the context of AD. To address this gap, we\nintroduce the Evidence-based Post-Hoc Adjustment Framework for Anomaly Detection (EPHAD),\na simple yet effective method that adjusts the outputs of a pretrained AD model post-hoc, using\nevidence collected at test time.\nNotably, we establish conceptual links between EPHAD and recent advances in test-time alignment for\ngenerative models (Mudgal et al., 2024; Li et al., 2024; Korbak et al., 2022), underscoring its broader\nsignificance. EPHAD is flexible and can incorporate various forms of evidence, including foundation\nmodels like Contrastive Language–Image Pre-training (CLIP) (Zhou et al., 2024; Jeong et al., 2023),\nclassical AD methods such as Local Outlier Factor (LOF) (Breunig et al., 2000), and domain-specific\nknowledge. Our core contributions are summarised below:\n• We introduce EPHAD, a simple yet effective TTA framework for unsupervised AD models\ntrained on contaminated datasets. Unlike existing approaches, it requires no access to\ntraining pipelines, data or prior knowledge of the proportions of anomalies in the data,\nmaking it highly practical for real-world deployments.\n• EPHAD performs TTA by combining the prior knowledge captured by the AD model trained\non the contaminated dataset and an evidence gathered at test-time. This principled formulation allows for conceptual connections to recent test-time alignment techniques in generative\nmodelling.\n• We illustrate the intuition behind EPHAD using a carefully designed toy example. Furthermore, extensive experiments across eight visual AD, twenty-six tabular AD datasets, and\na real-world industrial AD dataset demonstrate the effectiveness of EPHAD across diverse\nunsupervised AD models, evidence pairs.\n\n2\n\nRelated work\n\nUnsupervised AD. Over the years, numerous approaches have been developed for unsupervised\nAD, which can be broadly categorised into four main families: one-class classifiers (OCCs), feature\nembedding-based, density-based, and reconstruction-based methods. OCCs aim to learn a decision\nboundary that encapsulates all normal samples. Classical OCC approaches employ shallow models\nsuch as support vector-based methods that learn a maximum-margin hyperplane (Schölkopf et al.,\n2001) or a hypersphere (Tax and Duin, 1999). To mitigate the limitations of manual feature engineering and extend to high-dimensional data, deep learning-based variants like DeepSVDD (Ruff\net al., 2018) have been introduced. Feature embedding-based methods, on the other hand, leverage\npre-trained deep models to extract representations of input data. These representations are then either\n2\n\n\fstored in a memory bank (Roth et al., 2022; Lee et al., 2022) or used to train a student-teacher network\n(Zhang et al., 2024; Batzner et al., 2024; Patra and Ben Taieb, 2024). Density-based methods detect\nanomalies by estimating the probability distribution of normal samples, assuming that anomalies\nreside in low-density regions. While early methods include KDE (Kim and Scott, 2012), more recent\ndeep-learning-based variants include DAGMM (Zong et al., 2018), CFLOW (Gudovskiy et al., 2022),\nand FastFlow (Yu et al., 2021). Lastly, reconstruction-based approaches learn to map normal samples\ninto a lower-dimensional bottleneck and reconstruct them. The inability to accurately reconstruct\nsamples during inference serves as a detection criterion. For a more comprehensive survey, we refer\nreaders to Liu et al. (2024) and Ruff et al. (2021).\nData contamination. Handling dataset contamination in AD typically assumes a low proportion\nof anomalies, allowing methods to prioritise normal instances (inlier priority) (Wang et al., 2019).\nHowever, in practice, this assumption is difficult to ensure since anomalies are often unknown. To\nmitigate contamination, Yoon et al. (2022) proposed a data refinement approach using an ensemble\nof one-class classifiers (OCCs) to filter suspected anomalies and create a cleaner dataset. While\neffective, this method incurs high computational costs and discards anomalies rather than leveraging\nthem for improved generalisation via Outlier Exposure (Hendrycks et al., 2019). To address this, Qiu\net al. (2022) introduced Latent Outlier Exposure (LOE), which iteratively assigns anomaly scores and\ninfers labels using block coordinate descent while incorporating the contamination ratio to prevent\ndegenerate solutions. However, estimating the contamination ratio remains a challenge. Perini et al.\n(2022) tackled this by leveraging an auxiliary dataset with a known contamination ratio, assuming\ndomain similarity. Alternatively, Perini et al. (2023) fits a Dirichlet Process Gaussian Mixture Model\nto anomaly scores, though this approach lacks a closed-form solution. Despite these advancements,\nexisting methods introduce computational overhead and are often impractical for modern pre-trained\nproprietary models, limiting their real-world applicability.\n\n3\n\nBackground\n\nLet X ∈ X and Y ∈ Y denote a pair of random variables following a joint probability distribution\nPX,Y over the space X × Y, where X ⊆ Rd and Y := {−1, +1}. Here, Y = +1 corresponds to\nthe normal class, while Y = −1 represents the anomalous class. The conditional distribution of\n+\nnormal samples is PX|Y =+1 denoted as P+\nX with PDF fX . Likewise, the conditional distribution of\n−\n−\n+\nanomalous samples is PX|Y =−1 denoted as PX , with PDF fX\n. The training dataset Dtrain\n:= {xi }m\ni=1\niid\n\ncontains only normal samples (uncontaminated) i.e., xi ∼ P+\nX . We denote the test dataset as\niid\n\nDtest := {(xi , yi )}ni=1 which contains both normal and anomalous samples i.e, (xi , yi ) ∼ PX,Y .\nDensity-based anomaly detection. An anomaly can be defined as “an observation that deviates\nsignificantly from some concept of normality” (Ruff et al., 2021). This definition comprises two\nkey aspects: the concept of normality and the significant deviation from it, which can be formalised\nusing a probabilistic framework. The concept of normality is defined as the probability distribution of\nnormal samples P+\nX . To formalise this further, we adopt the concentration assumption (Steinwart et al.,\n2005), which posits that although the data space X is unbounded, the high-density regions of P+\nX are\nbounded and concentrated. In contrast, P−\nis\nassumed\nto\nbe\nnon-concentrated\n(Schölkopf\nand\nSmola,\nX\n+\n2002), and is often approximated by a uniform distribution over X (Tax, 2001). Given the PDF fX\n+\nassociated with PX , which we refer to as inlier density, a data point x ∈ X is identified as an anomaly\nif it deviates substantially from this concept of normality, i.e., if it resides in a low-probability region\n+\nunder P+\nX . However, since fX is typically unknown in practice, density-based methods approximate\nit using a density estimator.\nScore-based anomaly detection. Density estimation poses significant challenges, particularly in\nhigh-dimensional spaces or when data is sparse, and often incurs substantial computational cost.\nFortunately, in the context of anomaly detection, the goal is typically not to recover the exact data\nlikelihood but rather to establish a ranking of data points based on their degree of normality. This\nmotivates an alternative strategy: learning an anomaly score function sout (x) : X → R , which directly\nassigns an anomaly score to a data point x ∈ X , thereby quantifying its degree of anomalousness\n(Ruff et al., 2021). To complement this, the inlier score function is defined as sin (x) = −sout (x) ,\ncapturing the degree of normality, where higher values indicate that x is normal. For AD, first, we\n+\ntrain a model to learn the anomaly score function s+\nout (x) using Dtrain . Then, we define the anomaly\n3\n\n\fdetector as\n\u001a\ngλs (x) =\n\n+1, if s+\nout (x) ≤ λs\n−1, if s+\nout (x) &gt; λs\n\n(1)\n\nwhere λs ≥ 0 is a pre-determined threshold (Perini et al., 2023, 2022). The density-based AD method\ncan also be interpreted as a specific case of the score-based AD methods where the anomaly score\n+\ns+\nout (x) = −ϕ(fX (x)) and ϕ(·) is an order-preserving transformation chosen to be the logarithm.\nData contamination. For training the AD method, a common assumption is that the training dataset\n+\nDtrain\nconsists solely of i.i.d. samples from the normal data distribution P+\nX , without anomalies.\nHowever, this assumption is rarely satisfied in practice, since anomalies are typically unknown a\npriori. As a result, the training dataset is often contaminated with undetected anomalies. A more\n±\nrealistic assumption is that the dataset Dtrain\n:= {xi }m\ni=1 contains both normal and anomalous\n±\n±\nsamples drawn from a mixture distribution PX with PDF fX\n(Huber and Ronchetti, 2011; Huber,\n1992). Letting ϵ = P(Y = −1) denote the contamination factor, P±\nX can be written as\n−\n+\nP±\nX = ϵ PX + (1 − ϵ) PX .\n\n(2)\n\n±\nAs ϵ increases, the model trained on Dtrain\nbecomes biased towards the anomalous regions, reducing\nits ability to separate normal from anomalous samples (Qiu et al., 2022; Yoon et al., 2022). The\nexisting literature examining the impact of contamination on unsupervised AD methods (Jiang et al.,\n2022; Qiu et al., 2022; Hien et al., 2024; Perini et al., 2023, 2022) typically considers contamination\nlevels ranging from 0% to 20%. Additionally, an analysis of 57 datasets spanning Natural Language\nProcessing and Computer Vision in ADBench (Han et al., 2022) [Appendix B.2, Figure B1] revealed\nthat nearly 70% of the datasets exhibit anomaly ratios below 10%, with a median of 5%.\n\n4\n\nEPHAD: An evidence-based post-hoc adjustment framework\n\nWe consider the realistic scenario in which an AD model has already been trained on a possibly\n±\ncontaminated dataset Dtrain\n. Instead of retraining the model, our goal is to adapt its test-time\npredictions to mitigate the impact of contamination. To this end, we introduce a novel Evidence-based\nPost-Hoc Adjustment Framework for Anomaly Detection (EPHAD), that corrects model predictions\nusing an evidence function at test-time. The evidence function T (x) : X → R assigns higher values\nto samples deemed more likely to be normal and can incorporate domain-specific knowledge. Thus,\nEPHAD aligns with preparation-agnostic TTA methods (Xiao and Snoek, 2024).\nFor density-based AD (refer to Section 3), anomalies are identified as samples lying in the low-density\nregions under the distribution of normal samples P+\nX . However, due to data contamination, the trained\n±\nmodel estimates the PDF fX\nof the contaminated distribution P±\nX , as defined in (2), rather than\n+\n±\nthe inlier PDF fX . Given an evidence function T (x), EPHAD computes a revised PDF fˇX\nusing\nexponential tilting as:\n±\n\nf (x) exp(T (x)/β)\n±\n(x) = X\nfˇX\n,\nβ\nZX\n\n(3)\n\nβ\nwhere\nR ± exp(T (x)/β) is the evidence scaled by a temperature parameter β ∈ R and ZX =\nf (x) exp(T (x)/β) dx is the normalising constant. This formulation upweights normal samples\nX X\naccording to the evidence while maintaining consistency with the model’s original density.\nProposition 4.1 provides a condition under which the revised PDF fˇ± is closer to the inlinear PDF of\nX\n\n+\n±\nnormal samples fX\nthan the contaminated PDF fX\n, in terms of Kullback–Leibler (KL) divergence.\n+\n±\n±\nProposition 4.1. Let fX , fX , and fˇX be PDFs over the same domain X . Then the KL divergence\n+\n±\n+\n±\nbetween fX\nand fˇX\nis strictly less than the divergence between fX\nand fX\niff\n\"\n#\nexp(T (x)/β)\nEx∼P+ log\n&gt; 0.\n(4)\nβ\nX\nZX\n\nThe proof is provided in Appendix A.1. Consequently, when condition (4) holds, the revised\n±\ndensity fˇX\n(x) assigns higher relative likelihoods to true inliers, leading to improved separation\n4\n\n\fbetween normal and anomalous samples. Hence, we expect EPHAD to yield better anomaly detection\n±\nperformance than the unadjusted model fX\n(x), provided that a suitable detection threshold is used.\nMoreover, it can be shown that (3) is the optimal solution to the KL-regularised objective\n±\n±\n±\nJKL (fˇX\n) := Ex∼fˇ± [T (x)] − β KL(fˇX\n∥fX\n).\nX\n\n(5)\n\nThis objective balances two competing goals: aligning the adjusted PDF with the evidence (first\nterm) and maintaining fidelity to the original PDF (second term). The temperature parameter β\ncontrols this trade-off, recovering the evidence-driven solution as β → 0 and reverting to the original\nmodel as β → ∞. For the proof of (5), see Korbak et al. (2022). This interpretation also highlights\na close connection to well-established TTA approaches used in generative models (Korbak et al.,\n2022; Mudgal et al., 2024; Li et al., 2024), where the model is viewed as an RL policy fine-tuned\nwith a reward function encoding evidence or alignment criteria. In this view, EPHAD performs a\n±\nKL-regularised shift of the contaminated density fX\ntoward regions favored by the evidence function\n±\nT (x) while preserving consistency with fX through the KL term.\n4.1\n\nExtension to score-based anomaly detection\n\nSince estimating explicit densities is often infeasible in high-dimensional spaces, most modern AD\nmethods rely on scores rather than PDFs. Recall that the inlier score function is an order-preserving\n+\ntransformation of the inlier PDF, i.e., s+\nin (x) = ϕ(fX (x)), where ϕ(·) is a monotonic transformation\n±\nsuch as the logarithm. When trained on contaminated data Dtrain\n, the model learns a contaminated\n±\n±\ninlier score sin (x) = ϕ(fX (x)). Although ϕ is typically unknown and possibly non-invertible, the\n±\nsample ranking induced by s±\nin (x) is identical to that induced by fX (x)).\nFollowing energy-based model (EBM) formulations (LeCun et al., 2006), we can define the associated\ncontaminated PDF as\nexp(s±\n±\nin (x))\nf˜X\n(x) =\n,\n(6)\ne\nZX\nR\ne\n˜±\nwhere ZX\n= X exp(s±\nin (x)) is the normalising constant. Applying exponential tilting to fX (x) as\nin (3), we obtain:\nf˜ (x) exp(T (x)/β)\nexp(sin (x)) exp(T (x)/β)\nˇ±\nf˜X\n(x) = X\n=\n.\nβ\nβ e\nZX\nZX\nZX\n±\n\n±\n\n(7)\n\nˇ±\nUnder Proposition 4.1, when condition (4) holds, the revised f˜X\nis closer to the true inlier density\n±\n+\n˜\nfX in KL divergence than the unadjusted fX . Because AD depends only on the relative ordering\nof samples, the normalization constants in (7) can be ignored. The exponential mapping is strictly\nmonotonic, so ranking and decision regions are preserved. Consequently, we can write\nˇ±\n±\nf˜X\n(x) ∝ exp(s±\nin (x) + T (x)/β) := šin (x),\n\n(8)\n\nwhere we define š±\nin as the revised inlier score. The anomaly detector in (1) can thus be redefined as\n(\n+1, if š±\nin (x) ≥ λs ,\ngλs (x) =\n(9)\n−1, otherwise.\nThis extension allows EPHAD to operate directly on score-based AD models, enabling post-hoc\ncorrection of models trained on contaminated datasets without requiring retraining or access to the\noriginal training procedure. In all subsequent experiments, we adopt this score-based formulation of\nEPHAD, reflecting the dominance of score-based methods in modern anomaly detection practice.\n4.2\n\nAn illustrative example\n\nTo illustrate the effect of EPHAD, we use a toy dataset inspired by Qiu et al. (2022). The dataset\nis generated using a two-dimensional mixture model comprising three Gaussian components:\nc1 := N (µ1 , Σ1 ), c2 := N (µ2 , Σ2 ), c3 := N (µ3 , Σ3 ). Here, each component follows a Gaus+\nsian distribution N (µ, Σ) with mean µ and covariance Σ. Normal samples are drawn from fX\n= c1 ,\n5\n\n\fNormal\nGround truth\n\nBlind\n\n0.2\n\n0.2\n\nEPHAD (Ours)\n\n1.0\n\n0.4\n\n0.6\n\n0.8\n0.2\n\n0.8\n\n0.2\n\n0.8\n\n0.2\n\n0.2\n\n0.4\n\n0.4\n\nAnomaly\nRefine\n\n0.6\n0.8\n\n0.6\n\n0.6\n\n0.4\n\n0.4\n\n0.4\n\n0.2\n\n0.8\n\n0.2\n\n0.6\n\n0.2\n\n0.2\n\n0.0\n\nFigure 1: DeepSVDD trained on 2D synthetic contaminated training data with different configurations:\n(I) Supervised AD with ground truth labels for reference, (ii)“Blind” considering all samples as\nnormal, (iii) “Refine” filtering out a fraction of the anomalies, and (iv) EPHAD updating the “Blind”\nanomaly detector using evidence computed on the samples available at test-time.\nwith µ1 = [1, 1]T and Σ1 = 0.07 I2 . Anomalous samples are drawn from a mixture distribution\n−\nfX\n:= 0.5c2 + 0.5c3 where µ2 = [−0.25, 2.5]T , µ3 = [−1, 0.5]T and Σ2 = Σ3 = 0.03 I2 . The\nextended implementation details is provided in Appendix B.2. Using this setting, we create a contaminated dataset consisting 100 data points. We compare the baseline DeepSVDD (Ruff et al., 2018)\nacross three configurations as illustrated in Figure 1: (i) “Blind”, (ii) “Refine”, and (iii) with EPHAD.\nWe refer to the baseline model that treats all samples as normal as “Blind”, while “Refine” denotes\na model that iteratively filters out suspected anomalies during training. As an evidence function in\nEPHAD, LOF (Breunig et al., 2000) is computed on test samples at test time. The results in Figure\n1 demonstrate that the “Blind” configuration mistakenly considers all anomalies as normal. The\n“Refine” configuration improves performance by filtering out a subset of anomalies. Finally, EPHAD\nestablishes a clearer boundary around normal samples.\n4.3\n\nDetermining the temperature parameter β\n\nAs previously discussed, EPHAD has only a single hyperparameter, β, which controls the trade-off between reliance on the original AD model and the evidence function T (x). A straightforward approach\nto selecting β would involve evaluating the AD performance of the prior and T (x) individually on a\nvalidation set and choosing β accordingly. However, this strategy introduces additional computational\noverhead at test time and requires access to a labelled validation set of sufficient size to ensure reliable\nperformance estimation – conditions often impractical in real-world deployments. To address this\nlimitation, we propose an adaptive extension of our approach, termed EPHAD-Ada, that determines\nthe optimal β in an unsupervised manner using only test data at test time. This adaptation is inspired\nby the principle of Entropy Minimisation (EM) (Press et al., 2024), a widely-used technique in\ntest-time adaptation (Xiao and Snoek, 2024). Motivated by the observation from Wang et al. (2021)\nthat models tend to be more accurate when predictions are made with high confidence, we apply it\nto compute the hyperparameter β. Specifically, the computation of β depends on the entropy of the\ninlier probabilities derived from the scores of both the original model and the evidence function.\nComputing inlier probability from the output scores. For an output score s ∈ R, the class label\ngiven the score can be modelled as a conditional random variable Y | S = s. Following this, the\ninlier probability can be expressed as\npY =+1 (s) := P(Y = +1 | S = s) = P(S &gt; s) = 1 − ps ,\n\n(10)\n\nwhere ps := P(S ≤ s). Since ps is unknown in practice, we follow the approach of Perini et al.\n(2021) and treat it as a random variable Ps with a prior distribution Beta(1, 1), corresponding to a\nuniform prior over [0, 1]. Given that the label Y ∈ {+1, −1}, we model the conditional distribution\nY | S = s as a Bernoulli random variable. To estimate ps , we draw samples s′ ∼ S by first sampling\nx ∼ X and then computing the corresponding anomaly score s′ . We record a success (b = 1) if\ns′ ≤ s, and a failure (b = 0) otherwise. Repeating this procedure n times yields t successes and\nn − t failures. Then, according to Theorem 2 in Perini et al. (2021), the posterior distribution of Ps\ngiven the observed binary outcomes b1 , . . . , bn is Beta(1 + t, 1 + n − t). We estimate ps using the\nposterior mean of Ps as\n1+t\nps := E[Ps ] =\n.\n(11)\n2+n\n6\n\n\fIn practice, the posterior is inferred from test samples, so the sample size n is constrained by the\nnumber of available test points. Finally, combining Equations (10) and (11), we obtain the estimated\ninlier probability for a data point x with anomaly score s as\npY =+1 (s) = 1 − ps = 1 −\n\n1+t\n.\n2+n\n\n(12)\n\nFinally, using (12), we compute the inlier probabilities poY =+1 (x) := pY =+1 (s±\nin (x)) and\npeY =+1 (x) := pY =+1 (T (x)) from the scores of the original model and the evidence function,\nrespectively.\nComputing the value of the hyperparameter β. We define the empirical entropy of the binary\npredictive PMF pY (x) as\nX\nH(pY ) = −\n[pY =+1 (x) log pY =+1 (x) + pY =−1 (x) log pY =−1 (x)] .\n(13)\nx∈Dtest\n\nThe adaptive temperature parameter is then defined as\nβada =\n\nH(peY )\n,\nH(poY ) + δ\n\n(14)\n\nwhere δ &gt; 0 is a small constant introduced to ensure numerical stability. A low H(poY ) indicates that\nthe original AD model produces confident (low-entropy) predictions, suggesting that a higher value\nof β should be used to place greater trust in this model. Conversely, a lower H(peY ) implies higher\nconfidence in the evidence function, motivating a smaller β. Through this formulation, EPHAD-Ada\nenables unsupervised, test-time determination of β, thereby improving practicality and eliminating\nthe need for labelled validation data.\n\n5\n\nExperiments\n\nWe evaluate the effectiveness of EPHAD for unsupervised AD across a range of datasets, including\nvisual AD datasets (Section 5.1), tabular AD datasets (Section 5.2), and an industrial AD use case\n(Appendix C.2). To systematically investigate the impact of contamination at different levels in a\nrigorous and reproducible way, we introduce controlled contamination into the data, adhering to\nthe experimental design employed in several prior studies (Jiang et al., 2022; Wang et al., 2025;\nZhou and Wu, 2024). The evidence functions employed in the experiments are computed in an\nunsupervised manner without utilising ground-truth labels in the test set Dtest , mitigating the risk\nof overfitting. Unless stated otherwise, we use a contamination factor of ϵ = 0.1 and a parameter\nβ = 0.5. An ablation study on different values of ϵ and β is presented in Section 5.3. For image and\ntabular datasets, we evaluate performance using the AUROC. Following prior work (Roth et al., 2022;\nGudovskiy et al., 2022), AUROC is averaged across all categories for each dataset.\n5.1\n\nExperiments on visual AD datasets\n\nBenchmark datasets. We assess the effectiveness of EPHAD in both sensory and semantic anomaly\ndetection. Sensory AD focuses on detecting physical defects or imperfections, such as a broken\ncapsule or a cut in a carpet, while semantic AD identifies anomalies belonging to a different semantic\nclass—for instance, treating cats as normal and any other animal as anomalous. For sensory AD\nin industrial contexts, we evaluate performance using four well-established benchmark datasets:\nMVTecAD (Bergmann et al., 2019), MPDD (Jezek et al., 2021), ViSA (Zou et al., 2022), and RealIAD\n(Wang et al., 2024). For semantic AD, we utilise four commonly used datasets, including CIFAR-10,\nFashion-MNIST, MNIST, and SVHN. Following the one-vs-rest protocol (Qiu et al., 2022), we\nconstruct k AD tasks per dataset, where k corresponds to the number of classes. For MVTecAD,\nViSA, MPDD and RealIAD, we adopt the “overlap” setting, introducing ϵ% contamination into the\ntraining set by randomly selecting anomalous samples from the test set while retaining them in the test\nset Jiang et al. (2022). For the remaining datasets, we follow the “non-overlapping” setting, excluding\nanomalous samples used for contamination simulation from the test set. Our implementation is based\non the public codebase from Jiang et al. (2022). Additional details are provided in Appendix B.1.\nBaseline AD methods. We evaluate the performance of several state-of-the-art unsupervised anomaly\ndetection methods, including PatchCore (Roth et al., 2022), PaDim (Defard et al., 2021), CFLOW\n7\n\n\fTable 1: Performance on both sensory and semantic AD benchmarking datasets with 10% contamination ratio. Style: AUROC % (± SE). Best in bold.\nMethod\nCLIP\nCFLOW\n+ EPHAD\n+ EPHAD-Ada\nDRÆM\n+ EPHAD\n+ EPHAD-Ada\nFastFlow\n+ EPHAD\n+ EPHAD-Ada\nPaDiM\n+ EPHAD\n+ EPHAD-Ada\nPatchCore\n+ EPHAD\n+ EPHAD-Ada\nRD\n+ EPHAD\n+ EPHAD-Ada\nULSAD\n+ EPHAD\n+ EPHAD-Ada\n\nMNIST\n\nFMNIST\n\nNon-overlap\nCIFAR10\n\nSVHN\n\nRealIAD\n\nMVTec\n\nOverlap\nMPDD\n\nViSA\n\n71.15\n77.24 (± 1.01)\n78.40 (± 0.81)\n78.08 (± 0.91)\n71.44 (± 0.29)\n73.51 (± 0.39)\n72.88 (± 0.33)\n82.65 (± 0.43)\n83.20 (± 0.43)\n82.83 (± 0.44)\n87.50 (± 0.23)\n87.45 (± 0.22)\n87.56 (± 0.23)\n86.33 (± 0.09)\n86.36 (± 0.1)\n86.38 (± 0.1)\n77.33 (± 0.09)\n78.19 (± 0.28)\n78.91 (± 0.21)\n90.83 (± 0.08)\n90.41 (± 0.06)\n90.8 (± 0.07)\n\n95.63\n72.87 (± 0.48)\n92.97 (± 0.19)\n91.63 (± 0.29)\n76.53 (± 0.18)\n92.46 (± 0.25)\n84.96 (± 0.97)\n83.66 (± 0.06)\n93.49 (± 0.07)\n92.10 (± 0.14)\n86.84 (± 0.06)\n94.66 (± 0.03)\n92.87 (± 0.02)\n78.97 (± 0.06)\n94.73 (± 0.01)\n89.99 (± 0.2)\n84.11 (± 0.72)\n95.77 (± 0.03)\n95.64 (± 0.04)\n88.64 (± 0.13)\n95.03 (± 0.07)\n94.55 (± 0.08)\n\n98.63\n65.47 (± 0.02)\n97.38 (± 0.01)\n96.43 (± 0.0)\n63.41 (± 0.26)\n97.17 (± 0.02)\n87.73 (± 1.52)\n62.94 (± 0.37)\n97.34 (± 0.02)\n96.24 (± 0.05)\n62.53 (± 0.4)\n97.10 (± 0.03)\n90.23 (± 0.67)\n75.69 (± 0.09)\n97.74 (± 0.01)\n96.63 (± 0.09)\n66.29 (± 0.31)\n98.40 (± 0.0)\n98.0 (± 0.17)\n72.45 (± 0.18)\n97.90 (± 0.02)\n97.29 (± 0.02)\n\n58.46\n55.09 (± 0.09)\n55.82 (± 0.06)\n55.78 (± 0.04)\n51.55 (± 0.07)\n54.18 (± 0.07)\n53.79 (± 0.36)\n54.02 (± 0.11)\n55.07 (± 0.07)\n55.26 (± 0.17)\n55.49 (± 0.28)\n56.94 (± 0.22)\n57.09 (± 1.05)\n69.64 (± 0.04)\n61.31 (± 0.0)\n68.4 (± 0.52)\n55.54 (± 0.58)\n57.38 (± 0.14)\n57.78 (± 0.5)\n64.27 (± 0.22)\n58.17 (± 0.18)\n59.68 (± 0.16)\n\n65.74\n76.42 (± 0.47)\n71.58 (± 0.17)\n73.86 (± 0.24)\n67.46 (± 0.21)\n69.89 (± 0.23)\n70.15 (± 0.05)\n82.03 (± 0.08)\n77.22 (± 0.08)\n81.1 (± 0.06)\n80.39 (± 0.35)\n75.94 (± 0.25)\n79.56 (± 0.28)\n70.08 (± 0.07)\n69.76 (± 0.2)\n77.18 (± 0.09)\n89.13 (± 0.18)\n69.35 (± 0.26)\n72.78 (± 0.43)\n89.06 (± 0.01)\n80.58 (± 0.06)\n85.84 (± 0.04)\n\n86.34\n87.58 (± 0.77)\n87.98 (± 0.12)\n89.84 (± 0.3)\n70.55 (± 1.97)\n87.13 (± 0.39)\n87.24 (± 0.39)\n84.24 (± 1.07)\n87.68 (± 0.5)\n88.07 (± 0.8)\n77.85 (± 0.43)\n86.58 (± 0.38)\n86.10 (± 0.52)\n70.51 (± 0.7)\n86.45 (± 0.14)\n83.53 (± 0.18)\n80.08 (± 1.32)\n85.82 (± 0.31)\n86.69 (± 0.38)\n91.93 (± 0.15)\n91.31 (± 0.06)\n92.25 (± 0.07)\n\n60.02\n66.69 (± 2.06)\n65.22 (± 0.93)\n67.81 (± 1.63)\n62.32 (± 1.96)\n67.02 (± 0.29)\n69.55 (± 0.42)\n71.94 (± 0.87)\n66.84 (± 0.34)\n70.08 (± 0.41)\n36.58 (± 2.58)\n55.48 (± 0.72)\n49.06 (± 1.52)\n53.58 (± 0.54)\n60.58 (± 1.12)\n56.97 (± 1.23)\n75.08 (± 1.75)\n62.62 (± 0.27)\n63.97 (± 0.88)\n77.67 (± 0.42)\n72.79 (± 1.05)\n76.31 (± 1.04)\n\n74.47\n75.71 (± 1.28)\n78.53 (± 0.27)\n79.64 (± 0.63)\n69.61 (± 1.57)\n76.89 (± 0.99)\n74.95 (± 1.15)\n77.83 (± 0.22)\n80.29(± 0.07)\n80.71 (± 0.08)\n73.07 (± 0.27)\n77.73 (± 0.27)\n76.62 (± 0.38)\n27.2 (± 0.31)\n62.94 (± 0.41)\n48.60 (± 0.51)\n86.33 (± 0.46)\n77.76 (± 0.19)\n79.42 (± 0.34)\n86.58 (± 0.13)\n85.82 (± 0.1)\n87.23 (± 0.05)\n\n(Gudovskiy et al., 2022), FastFLOW (Yu et al., 2021), DRÆM (Zavrtanik et al., 2021), Reverse\nDistillation (RD) (Deng and Li, 2022), and ULSAD (Patra and Ben Taieb, 2024), both with and\nwithout the integration of EPHAD. Implementations for all methods, except ULSAD, are based on the\nAnomalib library (Akcay et al., 2022), while ULSAD is implemented using its official public code.\nSince, to the best of our knowledge, no existing AD method with contaminated data offers post-hoc\nadaptation in the same manner as EPHAD, our primary objective is to demonstrate the effectiveness of\nEPHAD by comparing its relative performance against the AD model and the evidence function alone.\nWe also provide comparative analyses with three existing frameworks “Refine” (Yoon et al., 2022),\nLatent Outlier Exposure (LOE) (Qiu et al., 2022), and SoftPatch (Jiang et al., 2022) in Appendix C.3.\nEvidence function. For the experiments, we employ Contrastive Language-Image Pre-training (CLIP)\n(Radford et al., 2021) as the evidence function for image-based datasets, following the anomaly\ndetection approach as in WinCLIP (Jeong et al., 2023). We use CLIP as the evidence function\nT (x) in EPHAD. We start by defining two lists of textual prompt templates, TN = {n1 , · · · , nk } and\nTA = {a1 , · · · , ak }, corresponding to normal and anomalous classes, respectively. These templates\nare dataset-dependent, reflecting subjectivity (e.g., “missing wire\" as anomalous for cables). For each\nlabel, compute the mean of text embeddings tN and tA . Finally, given an input image x, the evidence\nT (x) at test-time is computed as:\nT (x) :=\n\nexp (⟨ei (x), tN ⟩/γ)\n.\nexp (⟨ei (x), tN ⟩/γ) + exp (⟨ei (x), tA ⟩/γ)\n\nAdditional implementation details are provided in Appendix B.3.1.\nWhile CLIP has been previously applied as a standalone zero-shot anomaly detector, our methodology\nleverages it differently: we employ CLIP not as a complete detection system, but as an auxiliary\nsource of evidence integrated into a more general and flexible framework. Importantly, EPHAD is not\nlimited to foundation models such as CLIP; it can seamlessly incorporate domain-specific knowledge\nas well (see Section C.2), thereby broadening its applicability across diverse domains.\nResults. In our experiments, as we adopt CLIP in the same manner as WinCLIP (Jeong et al.,\n2023), the baseline CLIP results reported here directly correspond to the standalone performance of\nWinCLIP. In Table 1, we observe that while zero-shot AD using CLIP performs well on real-world\nimage datasets such as CIFAR10 and FMNIST, its effectiveness declines on domain-specific datasets\nlike MVTec, MPDD, and ViSA, where existing AD methods, such as ULSAD, achieve superior\nperformance. However, when these AD methods are used within the EPHAD framework with CLIP\nas an evidence function in a post-hoc manner, their performance improves in most cases. Notably,\neven when CLIP-based AD alone does not achieve the best results, as seen in SVHN, incorporating it\n8\n\n\fTable 2: Performance on tabular AD benchmarking datasets with 10% contamination ratio. Style:\nAUROC % (± SE). Best in bold. † represents transductive inference.\nDataset\nLOF†\nCOPOD\n+ EPHAD\n+ EPHAD-Ada\nDeepSVDD\n+ EPHAD\n+ EPHAD-Ada\nECOD\n+ EPHAD\n+ EPHAD-Ada\nIForest\n+ EPHAD\n+ EPHAD-Ada\nLOF\n+ EPHAD\n+ EPHAD-Ada\n\naloi\ncover\nglass\nionosphere\nletter\n72.64 (± 0.1) 52.12 (± 0.1) 77.52 (± 0.93) 82.43 (± 0.16) 83.15 (± 0.73)\n51.46 (± 0.05) 78.7 (± 0.03) 76.11 (± 0.77) 79.42 (± 1.03) 56.71 (± 0.12)\n52.55 (± 0.06) 79.01 (± 0.02) 79.45 (± 0.95) 81.67 (± 0.95) 57.62 (± 0.09)\n53.65 (± 0.17) 79.57 (± 0.01) 81.77 (± 1.28) 84.15 (± 0.38) 71.03 (± 0.99)\n54.06 (± 0.54) 75.11 (± 11.37) 64.52 (± 6.87) 83.09 (± 0.57) 50.51 (± 2.54)\n64.36 (± 0.21) 75.74 (± 11.06) 80.94 (± 3.31) 84.9 (± 0.17) 61.26 (± 2.42)\n70.67 (± 0.22) 75.58 (± 10.82) 80.94 (± 2.52) 85.03 (± 0.25) 65.9 (± 2.88)\n53.14 (± 0.03) 85.34 (± 0.02) 67.65 (± 0.44) 73.04 (± 0.84) 56.41 (± 0.29)\n54.33 (± 0.05) 85.45 (± 0.02) 72.59 (± 0.61) 74.34 (± 0.85) 57.17 (± 0.29)\n55.47 (± 0.18) 85.45 (± 0.01) 78.43 (± 1.72) 78.14 (± 0.49) 70.15 (± 1.15)\n54.05 (± 0.21) 72.59 (± 1.59) 78.5 (± 1.47) 89.58 (± 1.57) 59.84 (± 0.64)\n71.75 (± 0.08) 63.64 (± 0.92) 79.12 (± 1.01) 83.5 (± 0.16) 81.53 (± 0.59)\n57.49 (± 0.31) 73.15 (± 1.57) 83.15 (± 1.86) 90.05 (± 1.22) 71.38 (± 0.86)\n73.57 (± 0.1) 22.44 (± 0.1) 71.79 (± 1.08) 94.64 (± 0.52) 85.74 (± 0.54)\n73.62 (± 0.07) 44.2 (± 0.07)\n76.4 (± 0.68) 89.74 (± 0.55) 84.84 (± 0.39)\n73.85 (± 0.05) 36.78 (± 0.23) 75.67 (± 0.75) 91.85 (± 0.68) 85.31 (± 0.36)\n\npendigits\n47.21 (± 0.12)\n88.44 (± 0.2)\n88.38 (± 0.2)\n87.09 (± 0.22)\n74.87 (± 9.91)\n72.68 (± 8.72)\n74.08 (± 9.18)\n90.63 (± 0.17)\n90.65 (± 0.17)\n89.66 (± 0.2)\n81.86 (± 1.48)\n55.56 (± 0.98)\n79.5 (± 1.5)\n14.87 (± 0.18)\n37.64 (± 0.13)\n30.16 (± 1.01)\n\nvowels\n89.1 (± 0.67)\n56.1 (± 0.32)\n58.87 (± 0.34)\n75.39 (± 0.88)\n64.47 (± 2.55)\n76.61 (± 1.24)\n82.12 (± 0.9)\n54.29 (± 0.06)\n56.82 (± 0.14)\n75.39 (± 0.91)\n66.01 (± 0.57)\n88.59 (± 0.65)\n80.76 (± 0.6)\n93.04 (± 0.54)\n91.3 (± 0.1)\n91.85 (± 0.12)\n\nwine\n97.57 (± 1.46)\n80.51 (± 1.36)\n86.78 (± 1.96)\n93.96 (± 1.66)\n82.26 (± 2.29)\n92.94 (± 1.74)\n93.96 (± 1.77)\n67.12 (± 2.04)\n74.97 (± 2.88)\n89.27 (± 2.95)\n80.4 (± 3.42)\n97.51 (± 1.51)\n93.56 (± 2.15)\n99.94 (± 0.05)\n99.94 (± 0.05)\n99.94 (± 0.05)\n\nwithin EPHAD still leads to significant improvements. For instance, CFLOW, PaDiM, and RD exhibit\nenhanced performance after using EPHAD, surpassing both CLIP and the standalone AD methods.\nThis highlights the effectiveness of EPHAD in refining anomaly scores for better AD performance. In\nsome cases, such as ULSAD on SVHN, we observe a decline in performance when integrating EPHAD\ncompared to the standalone AD method. This typically occurs when the AD method substantially\noutperforms the evidence function. In such scenarios, overly relying on the evidence can diminish\noverall performance. To mitigate this effect, careful tuning of β enables the framework to adapt\neffectively to different datasets, AD methods, and evidence functions. A detailed analysis of the\nimpact of varying β values is presented in Section 5.3.\nUsing the adaptive variant, EPHAD-Ada, we observe further improvements in certain settings, such as\nwith PatchCore and DREAM on the RealIAD dataset. Interestingly, in cases where the default value\nof β = 0.5 led to decreased performance (e.g., ULSAD on SVHN or MPDD), EPHAD-Ada manages\nto overcome the problem, highlighting its effectiveness. Nevertheless, while EPHAD-Ada offers an\nunsupervised mechanism for determining β, its performance is often comparable to, or slightly below,\nthat of EPHAD with the default value for β.\n5.2\n\nExperiments on tabular AD datasets\n\nBenchmark datasets. We evaluate our proposed framework on 26 classical benchmark datasets from\nADBench (Han et al., 2022). The classical datasets include datasets from different domains such as\nhealthcare (e.g., annthyroid, breastw), astronautics (e.g. satellite), and finance (fraud). Following Qiu\net al. (2022), we preprocess, split the dataset into the train and test sets and simulate contamination\nusing synthetic anomalies created by adding zero-mean Gaussian noise with a large variance to the\nanomalous sample from the test set.\nBaseline AD methods. We compare EPHAD against IFOREST (Liu et al., 2012), LOF (Breunig et al.,\n2000), DeepSVDD (Ruff et al., 2018), ECOD (Li et al., 2023b) and COPOD (Li et al., 2020) using\nADBench (Han et al., 2022).\nEvidence function. We use the output of Local Outlier Factor (LOF) (Breunig et al., 2000) and\nIsolation Forest (IForest) (Liu et al., 2012). Additional details provided in the Appendix B.3.2.\nResults. The experimental results for a subset of the 26 benchmarking datasets are presented in\nTable 2, with the extended version provided in Appendix C.1. We observe that most AD methods\nbenefit from our post-hoc adjustment framework EPHAD, often achieving performance improvements\nthat surpass both the evidence function and the AD method in isolation. For example, COPOD,\nwhen updated with LOF as the evidence function on cover, glass and pendigits datasets, shows\nthis behaviour. Additionally, as seen in the image-based experiments, performance degradation in\ncertain cases arises when the framework places excessive emphasis on an evidence function that is\nsubstantially weaker than the AD method. However, as previously discussed, this limitation can\nbe mitigated by appropriately tuning β. Similar to the results in the image-based experiments, we\n9\n\n\f(a) Ablation on ϵ.\n\n(b) Ablation on β.\n\nFigure 2: Ablation on parameters.\nobserve improvements when using the adaptive variant EPHAD-Ada. In some scenarios, we also\nobserve that EPHAD-Ada avoids the performance drop observed with EPHAD, such as with LOF on\nthe ionosphere dataset and with DeepSVDD on the pendigits dataset. Nonetheless, the performance\nin most cases is similar to EPHAD with default value β, suggesting the need for further exploration.\n5.3\n\nAblation study\n\nIn this section, we first analyse the sensitivity of EPHAD to various contamination ratios. Then, we\ninvestigate the effect of the temperature β on AD performance.\nEffect of varying contamination ratio. Here, we evaluate the sensitivity of our proposed framework\nby varying the contamination ratio {0%, 5%, 10%, 15%}. The results are summarised in the Figure 2a.\nApplying EPHAD results in improvements across all contamination ratios for most of the AD methods.\nFurthermore, in the presence of a strong evidence function, such as CLIP, we can observe that the\nperformance becomes almost constant even as the contamination ratio increases from 5% to 15%.\nAn extended version is provided in Figure 3.\nEffect of temperature parameter β. We also analyse the performance of the EPHAD by varying\nthe temperature parameter β. In Figure 2b, we can see how β allows for controlling the trade-off\nbetween the prior AD method and the evidence. As discussed earlier, we observe that setting β ≈ 0\nresults in full reliance on T (x), while with increasing β, T (x) is disregarded and it defaults to the\nprior. Additionally, EPHAD-Ada achieves performance comparable to the best configuration of EPHAD\nacross the explored range of β, highlighting its effectiveness. An extended version is provided in\nFigure 4.\n\n6\n\nConclusion\n\nLimitations and future work. While existing AD methods can serve as domain-agnostic evidence\nfunctions within EPHAD, the full potential of our framework is best realised by designing evidence\nfunctions that incorporate domain-specific knowledge. Exploring the interplay between datasets,\nAD methods, and evidence functions remains an open direction for future work. Another limitation\nconcerns the parameter β, which has a significant influence on overall performance, as demonstrated\nin our experiments. Although we introduced an unsupervised strategy for estimating β in EPHAD-Ada,\nthis approach does not always lead to performance improvements. We hypothesize that this may stem\nfrom uncalibrated inlier probability. Future work should thus investigate more reliable approaches for\ninferring β based on the anomaly scores and the underlying distributions of normal and anomalous\nsamples in the test set. Finally, integrating explainability techniques into EPHAD represents an\ninteresting direction for future research, as it could provide deeper insights for real-world applications.\nConcluding remarks. Unsupervised AD methods typically assume anomaly-free training data,\nyet real-world datasets often contain undetected or mislabeled anomalies, leading to significant\nperformance degradation. Existing approaches to address contamination often require access to\nmodel parameters, training data, or the training pipeline, limiting their practicality in real-world\ndeployments. In this work, we introduce EPHAD, a simple, post-hoc adjustment framework that refines\nthe outputs of any AD method trained on contaminated data by incorporating evidence collected\nat test-time. Extensive experiments demonstrate the effectiveness of EPHAD across diverse sources\nof evidence, multiple AD methods, and various datasets. Additionally, ablation studies analyse the\nimpact of hyperparameters and varying contamination levels, highlighting the robustness of EPHAD.\n10\n\n\fAcknowledgments and Disclosure of Funding\nThis work is supported by the FLARACC research project (Federated Learning and Augmented\nReality for Advanced Control Centers), funded by the Wallonia region in Belgium.\n\nReferences\nAkcay, S., Ameln, D., Vaidya, A., Lakshmanan, B., Ahuja, N., and Genc, U. (2022). Anomalib: A\nDeep Learning Library for Anomaly Detection. In 2022 IEEE International Conference on Image\nProcessing (ICIP), pages 1706–1710. IEEE.\nBatzner, K., Heckler, L., and König, R. (2024). Efficientad: Accurate visual anomaly detection at\nmillisecond-level latencies. In Proceedings of the IEEE/CVF Winter Conference on Applications\nof Computer Vision (WACV), pages 128–138.\nBergmann, P., Fauser, M., Sattlegger, D., and Steger, C. (2019). MVTEC ad-A comprehensive\nreal-world dataset for unsupervised anomaly detection. Proceedings of the IEEE Computer Society\nConference on Computer Vision and Pattern Recognition, pages 9584–9592.\nBijlani, N., Carneiro, G., Barnaghi, P., and Kouchaki, S. (2024). Explainable anomaly detection\nin sensor-based remote healthcare monitoring with adaptive temporal contrast. In ICLR 2024\nWorkshop on Learning from Time Series For Health.\nBouman, R., Bukhsh, Z., and Heskes, T. (2024). Unsupervised anomaly detection algorithms on\nreal-world data: how many do we need? Journal of Machine Learning Research, 25(105):1–34.\nBreunig, M. M., Kriegel, H.-P., Ng, R. T., and Sander, J. (2000). Lof: identifying density-based local\noutliers. In Proceedings of the 2000 ACM SIGMOD International Conference on Management of\nData, SIGMOD ’00, page 93–104, New York, NY, USA. Association for Computing Machinery.\nChen, T., Kornblith, S., Norouzi, M., and Hinton, G. (2020). A simple framework for contrastive\nlearning of visual representations. In III, H. D. and Singh, A., editors, Proceedings of the 37th\nInternational Conference on Machine Learning, volume 119 of Proceedings of Machine Learning\nResearch, pages 1597–1607. PMLR.\nDas, A. S., Pang, G., and Bhuyan, M. (2025). Adaptive deviation learning for visual anomaly\ndetection with data contamination. In 2025 IEEE/CVF Winter Conference on Applications of\nComputer Vision (WACV), page 8863–8872. IEEE.\nDefard, T., Setkov, A., Loesch, A., and Audigier, R. (2021). Padim: A patch distribution modeling\nframework for anomaly detection and localization. In Del Bimbo, A., Cucchiara, R., Sclaroff, S.,\nFarinella, G. M., Mei, T., Bertini, M., Escalante, H. J., and Vezzani, R., editors, Pattern Recognition.\nICPR International Workshops and Challenges, pages 475–489, Cham. Springer International\nPublishing.\nDeng, H. and Li, X. (2022). Anomaly detection via reverse distillation from one-class embedding. In\nProceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR),\npages 9737–9746.\nEduardo, S., Nazábal, A., Williams, C. K. I., and Sutton, C. (2020). Robust variational autoencoders\nfor outlier detection and repair of mixed-type data. In Chiappa, S. and Calandra, R., editors,\nProceedings of the Twenty Third International Conference on Artificial Intelligence and Statistics,\nvolume 108 of Proceedings of Machine Learning Research, pages 4056–4066. PMLR.\nGudovskiy, D., Ishizaka, S., and Kozuka, K. (2022). Cflow-ad: Real-time unsupervised anomaly\ndetection with localization via conditional normalizing flows. In Proceedings of the IEEE/CVF\nWinter Conference on Applications of Computer Vision (WACV), pages 98–107.\nHan, S., Hu, X., Huang, H., Jiang, M., and Zhao, Y. (2022). Adbench: Anomaly detection benchmark.\nIn Koyejo, S., Mohamed, S., Agarwal, A., Belgrave, D., Cho, K., and Oh, A., editors, Advances in\nNeural Information Processing Systems, volume 35, pages 32142–32159. Curran Associates, Inc.\n11\n\n\fHendrycks, D., Mazeika, M., and Dietterich, T. (2019). Deep anomaly detection with outlier exposure.\nIn International Conference on Learning Representations.\nHien, L. T. K., Patra, S., and Ben Taieb, S. (2024). Anomaly detection with semi-supervised\nclassification based on risk estimators. Transactions on Machine Learning Research.\nHuang, C., Jiang, A., Feng, J., Zhang, Y., Wang, X., and Wang, Y. (2024). Adapting visual-language\nmodels for generalizable anomaly detection in medical images. In Proceedings of the IEEE/CVF\nConference on Computer Vision and Pattern Recognition (CVPR), pages 11375–11385.\nHuber, P. J. (1992). Robust estimation of a location parameter. In Breakthroughs in statistics:\nMethodology and distribution, pages 492–518. Springer.\nHuber, P. J. and Ronchetti, E. M. (2011). Robust statistics. John Wiley &amp; Sons.\nJeong, J., Zou, Y., Kim, T., Zhang, D., Ravichandran, A., and Dabeer, O. (2023). Winclip: Zero-/fewshot anomaly classification and segmentation. In Proceedings of the IEEE/CVF Conference on\nComputer Vision and Pattern Recognition (CVPR), pages 19606–19616.\nJezek, S., Jonak, M., Burget, R., Dvorak, P., and Skotak, M. (2021). Deep learning-based defect\ndetection of metal parts: evaluating current methods in complex conditions. In 2021 13th International Congress on Ultra Modern Telecommunications and Control Systems and Workshops\n(ICUMT), pages 66–71.\nJiang, X., Liu, J., Wang, J., Nie, Q., WU, K., Liu, Y., Wang, C., and Zheng, F. (2022). Softpatch:\nUnsupervised anomaly detection with noisy data. In Koyejo, S., Mohamed, S., Agarwal, A.,\nBelgrave, D., Cho, K., and Oh, A., editors, Advances in Neural Information Processing Systems,\nvolume 35, pages 15433–15445. Curran Associates, Inc.\nKarmanov, A., Guan, D., Lu, S., El Saddik, A., and Xing, E. (2024). Efficient test-time adaptation of\nvision-language models. In Proceedings of the IEEE/CVF Conference on Computer Vision and\nPattern Recognition (CVPR), pages 14162–14171.\nKim, J. and Scott, C. D. (2012). Robust kernel density estimation. Journal of Machine Learning\nResearch, 13(82):2529–2565.\nKorbak, T., Perez, E., and Buckley, C. (2022). RL with KL penalties is better viewed as Bayesian\ninference. In Findings of the Association for Computational Linguistics: EMNLP 2022, pages\n1083–1091, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.\nLeCun, Y., Chopra, S., Hadsell, R., Ranzato, M., Huang, F., et al. (2006). A tutorial on energy-based\nlearning. Predicting structured data, 1(0).\nLee, S., Lee, S., and Song, B. C. (2022). Cfa: Coupled-hypersphere-based feature adaptation for\ntarget-oriented anomaly localization. IEEE Access, 10:78446–78454.\nLi, R., Li, Q., Zhang, Y., Zhao, D., Jiang, Y., and Yang, Y. (2023a). Interpreting unsupervised anomaly\ndetection in security via rule extraction. In Oh, A., Naumann, T., Globerson, A., Saenko, K., Hardt,\nM., and Levine, S., editors, Advances in Neural Information Processing Systems, volume 36, pages\n62224–62243. Curran Associates, Inc.\nLi, X., Zhao, Y., Wang, C., Scalia, G., Eraslan, G., Nair, S., Biancalani, T., Ji, S., Regev, A., Levine,\nS., and Uehara, M. (2024). Derivative-free guidance in continuous and discrete diffusion models\nwith soft value-based decoding.\nLi, Z., Zhao, Y., Botta, N., Ionescu, C., and Hu, X. (2020). COPOD: copula-based outlier detection.\nIn IEEE International Conference on Data Mining (ICDM), pages 1118–1123. IEEE.\nLi, Z., Zhao, Y., Hu, X., Botta, N., Ionescu, C., and Chen, G. H. (2023b). Ecod: Unsupervised outlier\ndetection using empirical cumulative distribution functions. IEEE Transactions on Knowledge and\nData Engineering, 35(12):12181–12193.\nLiu, F. T., Ting, K. M., and Zhou, Z.-H. (2012). Isolation-based anomaly detection. ACM Trans.\nKnowl. Discov. Data, 6(1).\n12\n\n\fLiu, J., Xie, G., Wang, J., Li, S., Wang, C., Zheng, F., and Jin, Y. (2024). Deep industrial image\nanomaly detection: A survey. Machine Intelligence Research, 21(1):104–135.\nMudgal, S., Lee, J., Ganapathy, H., Li, Y., Wang, T., Huang, Y., Chen, Z., Cheng, H.-T., Collins, M.,\nStrohman, T., Chen, J., Beutel, A., and Beirami, A. (2024). Controlled decoding from language\nmodels. In Salakhutdinov, R., Kolter, Z., Heller, K., Weller, A., Oliver, N., Scarlett, J., and\nBerkenkamp, F., editors, Proceedings of the 41st International Conference on Machine Learning,\nvolume 235 of Proceedings of Machine Learning Research, pages 36486–36503. PMLR.\nPatra, S. and Ben Taieb, S. (2024). Revisiting deep feature reconstruction for logical and structural\nindustrial anomaly detection. Transactions on Machine Learning Research.\nPatra, S., Sournac, N., and Taieb, S. B. (2024). Detecting abnormal operations in concentrated\nsolar power plants from irregular sequences of thermal images. In Proceedings of the 30th ACM\nSIGKDD Conference on Knowledge Discovery and Data Mining, KDD ’24, page 5578–5589, New\nYork, NY, USA. Association for Computing Machinery.\nPerini, L., Bürkner, P.-C., and Klami, A. (2023). Estimating the contamination factor’s distribution in\nunsupervised anomaly detection. In Krause, A., Brunskill, E., Cho, K., Engelhardt, B., Sabato, S.,\nand Scarlett, J., editors, Proceedings of the 40th International Conference on Machine Learning,\nvolume 202 of Proceedings of Machine Learning Research, pages 27668–27679. PMLR.\nPerini, L., Rudolph, M., Schmedding, S., and Qiu, C. (2025). Uncertainty-aware evaluation of\nauxiliary anomalies with the expected anomaly posterior. Transactions on Machine Learning\nResearch.\nPerini, L., Vercruyssen, V., and Davis, J. (2021). Quantifying the confidence of anomaly detectors\nin their example-wise predictions. In Hutter, F., Kersting, K., Lijffijt, J., and Valera, I., editors,\nJoint European Conference on Machine Learning and Knowledge Discovery in Databases, pages\n227–243, Cham. Springer International Publishing.\nPerini, L., Vercruyssen, V., and Davis, J. (2022). Transferring the Contamination Factor between\nAnomaly Detection Domains by Shape Similarity. Proceedings of the AAAI Conference on\nArtificial Intelligence, 36(4):4128–4136.\nPress, O., Shwartz-Ziv, R., Lecun, Y., and Bethge, M. (2024). The entropy enigma: Success and\nfailure of entropy minimization. In Salakhutdinov, R., Kolter, Z., Heller, K., Weller, A., Oliver,\nN., Scarlett, J., and Berkenkamp, F., editors, Proceedings of the 41st International Conference on\nMachine Learning, volume 235 of Proceedings of Machine Learning Research, pages 41064–41085.\nPMLR.\nQiu, C., Li, A., Kloft, M., Rudolph, M., and Mandt, S. (2022). Latent outlier exposure for anomaly\ndetection with contaminated data. In Chaudhuri, K., Jegelka, S., Song, L., Szepesvari, C., Niu, G.,\nand Sabato, S., editors, Proceedings of the 39th International Conference on Machine Learning,\nvolume 162 of Proceedings of Machine Learning Research, pages 18153–18167. PMLR.\nQiu, C., Pfrommer, T., Kloft, M., Mandt, S., and Rudolph, M. (2021). Neural transformation learning\nfor deep anomaly detection beyond images. In Meila, M. and Zhang, T., editors, Proceedings of\nthe 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine\nLearning Research, pages 8703–8714. PMLR.\nRadford, A., Kim, J. W., Hallacy, C., Ramesh, A., Goh, G., Agarwal, S., Sastry, G., Askell, A.,\nMishkin, P., Clark, J., Krueger, G., and Sutskever, I. (2021). Learning transferable visual models\nfrom natural language supervision. In Meila, M. and Zhang, T., editors, Proceedings of the 38th\nInternational Conference on Machine Learning, volume 139 of Proceedings of Machine Learning\nResearch, pages 8748–8763. PMLR.\nRoth, K., Pemula, L., Zepeda, J., Schölkopf, B., Brox, T., and Gehler, P. (2022). Towards total recall\nin industrial anomaly detection. In Proceedings of the IEEE/CVF Conference on Computer Vision\nand Pattern Recognition (CVPR), pages 14318–14328.\nRuff, L., Kauffmann, J. R., Vandermeulen, R. A., Montavon, G., Samek, W., Kloft, M., Dietterich,\nT. G., and Müller, K.-R. (2021). A unifying review of deep and shallow anomaly detection.\nProceedings of the IEEE, 109(5):756–795.\n13\n\n\fRuff, L., Vandermeulen, R., Goernitz, N., Deecke, L., Siddiqui, S. A., Binder, A., Müller, E., and\nKloft, M. (2018). Deep one-class classification. In Dy, J. and Krause, A., editors, Proceedings of\nthe 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine\nLearning Research, pages 4393–4402. PMLR.\nRuff, L., Vandermeulen, R. A., Görnitz, N., Binder, A., Müller, E., Müller, K.-R., and Kloft, M.\n(2020). Deep semi-supervised anomaly detection. In International Conference on Learning\nRepresentations.\nSchölkopf, B. and Smola, A. J. (2002). Learning with kernels: support vector machines, regularization, optimization, and beyond. MIT press.\nSchwarz, A., Rahal, J. R., Sahelices, B., Barroso-García, V., Weis, R., and Duque Antón, S. (2025).\nData augmentation in predictive maintenance applicable to hydrogen combustion engines: a review.\nArtificial Intelligence Review, 58(1):1–24.\nSchölkopf, B., Platt, J. C., Shawe-Taylor, J., Smola, A. J., and Williamson, R. C. (2001). Estimating\nthe support of a high-dimensional distribution. Neural Computation, 13(7):1443–1471.\nSteinwart, I., Hush, D., and Scovel, C. (2005). A classification framework for anomaly detection.\nJournal of Machine Learning Research, 6(2).\nTax, D. M. (2001). One-class classification. PhD thesis, Technische Universiteit Delft.\nTax, D. M. and Duin, R. P. (1999). Support vector domain description. Pattern Recognition Letters,\n20(11-13):1191–1199.\nTax, D. M. and Duin, R. P. (2004). Support Vector Data Description. Machine Learning, 54(1):45–66.\nWang, C., Jiang, X., Gao, B.-B., Gan, Z., Liu, Y., Zheng, F., and Ma, L. (2025). Softpatch+: Fully\nunsupervised anomaly classification and segmentation. Pattern Recognition, 161:111295.\nWang, C., Zhu, W., Gao, B.-B., Gan, Z., Zhang, J., Gu, Z., Qian, S., Chen, M., and Ma, L. (2024).\nReal-iad: A real-world multi-view dataset for benchmarking versatile industrial anomaly detection.\nIn Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR),\npages 22883–22892.\nWang, D., Shelhamer, E., Liu, S., Olshausen, B., and Darrell, T. (2021). Tent: Fully test-time\nadaptation by entropy minimization. In International Conference on Learning Representations.\nWang, S., Zeng, Y., Liu, X., Zhu, E., Yin, J., Xu, C., and Kloft, M. (2019). Effective end-toend unsupervised outlier detection via inlier priority of discriminative network. In Wallach, H.,\nLarochelle, H., Beygelzimer, A., d'Alché-Buc, F., Fox, E., and Garnett, R., editors, Advances in\nNeural Information Processing Systems, volume 32. Curran Associates, Inc.\nXiao, J., Xu, Z., Zou, Q., Li, Q., Zhao, D., Fang, D., Li, R., Tang, W., Li, K., Zuo, X., Hu, P., Jiang, Y.,\nWeng, Z., and Lyu, M. R. (2024). Make your home safe: Time-aware unsupervised user behavior\nanomaly detection in smart homes via loss-guided mask. In Proceedings of the 30th ACM SIGKDD\nConference on Knowledge Discovery and Data Mining, KDD ’24, page 3551–3562, New York,\nNY, USA. Association for Computing Machinery.\nXiao, Z. and Snoek, C. G. (2024). Beyond model adaptation at test time: A survey. arXiv preprint\narXiv:2411.03687.\nYoon, J., Sohn, K., Li, C.-L., Arik, S. O., Lee, C.-Y., and Pfister, T. (2022). Self-supervise, refine,\nrepeat: Improving unsupervised anomaly detection. Transactions on Machine Learning Research.\nYou, Z., Cui, L., Shen, Y., Yang, K., Lu, X., Zheng, Y., and Le, X. (2022). A unified model for\nmulti-class anomaly detection. In Koyejo, S., Mohamed, S., Agarwal, A., Belgrave, D., Cho,\nK., and Oh, A., editors, Advances in Neural Information Processing Systems, volume 35, pages\n4571–4584. Curran Associates, Inc.\nYu, J., Zheng, Y., Wang, X., Li, W., Wu, Y., Zhao, R., and Wu, L. (2021). FastFlow: Unsupervised\nAnomaly Detection and Localization via 2D Normalizing Flows. arXiv preprint arXiv:2111.07677.\n14\n\n\fZavrtanik, V., Kristan, M., and Skočaj, D. (2021). Dræm - a discriminatively trained reconstruction embedding for surface anomaly detection. In Proceedings of the IEEE/CVF International\nConference on Computer Vision (ICCV), pages 8330–8339.\nZhang, J., Suganuma, M., and Okatani, T. (2024). Contextual affinity distillation for image anomaly\ndetection. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision\n(WACV), pages 149–158.\nZhang, Y., Wang, X., Jin, K., Yuan, K., Zhang, Z., Wang, L., Jin, R., and Tan, T. (2023). AdaNPC:\nExploring non-parametric classifier for test-time adaptation. In Krause, A., Brunskill, E., Cho,\nK., Engelhardt, B., Sabato, S., and Scarlett, J., editors, Proceedings of the 40th International\nConference on Machine Learning, volume 202 of Proceedings of Machine Learning Research,\npages 41647–41676. PMLR.\nZhou, J. and Wu, Y. (2024). Outlier-probability-based feature adaptation for robust unsupervised\nanomaly detection on contaminated training data. IEEE Transactions on Circuits and Systems for\nVideo Technology, 34(10):10023–10035.\nZhou, Q., Pang, G., Tian, Y., He, S., and Chen, J. (2024). AnomalyCLIP: Object-agnostic prompt\nlearning for zero-shot anomaly detection. In The Twelfth International Conference on Learning\nRepresentations.\nZong, B., Song, Q., Min, M. R., Cheng, W., Lumezanu, C., Cho, D., and Chen, H. (2018). Deep\nautoencoding gaussian mixture model for unsupervised anomaly detection. In International\nConference on Learning Representations.\nZou, Y., Jeong, J., Pemula, L., Zhang, D., and Dabeer, O. (2022). Spot-the-difference self-supervised\npre-training for anomaly detection and segmentation. In Avidan, S., Brostow, G., Cissé, M.,\nFarinella, G. M., and Hassner, T., editors, European Conference on Computer Vision, pages\n392–408, Cham. Springer Nature Switzerland.\n\n15\n\n\fNeurIPS Paper Checklist\n1. Claims\nQuestion: Do the main claims made in the abstract and introduction accurately reflect the\npaper’s contributions and scope?\nAnswer: [Yes]\nJustification: The contributions are summarised in the introduction and also discussed in the\nabstract.\nGuidelines:\n• The answer NA means that the abstract and introduction do not include the claims\nmade in the paper.\n• The abstract and/or introduction should clearly state the claims made, including the\ncontributions made in the paper and important assumptions and limitations. A No or\nNA answer to this question will not be perceived well by the reviewers.\n• The claims made should match theoretical and experimental results, and reflect how\nmuch the results can be expected to generalize to other settings.\n• It is fine to include aspirational goals as motivation as long as it is clear that these goals\nare not attained by the paper.\n2. Limitations\nQuestion: Does the paper discuss the limitations of the work performed by the authors?\nAnswer: [Yes]\nJustification: We have discussed limitations of this work in the Conclusion section.\nGuidelines:\n• The answer NA means that the paper has no limitation while the answer No means that\nthe paper has limitations, but those are not discussed in the paper.\n• The authors are encouraged to create a separate \"Limitations\" section in their paper.\n• The paper should point out any strong assumptions and how robust the results are to\nviolations of these assumptions (e.g., independence assumptions, noiseless settings,\nmodel well-specification, asymptotic approximations only holding locally). The authors\nshould reflect on how these assumptions might be violated in practice and what the\nimplications would be.\n• The authors should reflect on the scope of the claims made, e.g., if the approach was\nonly tested on a few datasets or with a few runs. In general, empirical results often\ndepend on implicit assumptions, which should be articulated.\n• The authors should reflect on the factors that influence the performance of the approach.\nFor example, a facial recognition algorithm may perform poorly when image resolution\nis low or images are taken in low lighting. Or a speech-to-text system might not be\nused reliably to provide closed captions for online lectures because it fails to handle\ntechnical jargon.\n• The authors should discuss the computational efficiency of the proposed algorithms\nand how they scale with dataset size.\n• If applicable, the authors should discuss possible limitations of their approach to\naddress problems of privacy and fairness.\n• While the authors might fear that complete honesty about limitations might be used by\nreviewers as grounds for rejection, a worse outcome might be that reviewers discover\nlimitations that aren’t acknowledged in the paper. The authors should use their best\njudgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers\nwill be specifically instructed to not penalize honesty concerning limitations.\n3. Theory assumptions and proofs\nQuestion: For each theoretical result, does the paper provide the full set of assumptions and\na complete (and correct) proof?\nAnswer: [Yes]\n16\n\n\fJustification: For each theoretical result, we provide all necessary details and the proof in\nthe Appendix.\nGuidelines:\n• The answer NA means that the paper does not include theoretical results.\n• All the theorems, formulas, and proofs in the paper should be numbered and crossreferenced.\n• All assumptions should be clearly stated or referenced in the statement of any theorems.\n• The proofs can either appear in the main paper or the supplemental material, but if\nthey appear in the supplemental material, the authors are encouraged to provide a short\nproof sketch to provide intuition.\n• Inversely, any informal proof provided in the core of the paper should be complemented\nby formal proofs provided in appendix or supplemental material.\n• Theorems and Lemmas that the proof relies upon should be properly referenced.\n4. Experimental result reproducibility\nQuestion: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions\nof the paper (regardless of whether the code and data are provided or not)?\nAnswer: [Yes]\nJustification: We have used all publicly available datasets, and our code can be found here.\nGuidelines:\n• The answer NA means that the paper does not include experiments.\n• If the paper includes experiments, a No answer to this question will not be perceived\nwell by the reviewers: Making the paper reproducible is important, regardless of\nwhether the code and data are provided or not.\n• If the contribution is a dataset and/or model, the authors should describe the steps taken\nto make their results reproducible or verifiable.\n• Depending on the contribution, reproducibility can be accomplished in various ways.\nFor example, if the contribution is a novel architecture, describing the architecture fully\nmight suffice, or if the contribution is a specific model and empirical evaluation, it may\nbe necessary to either make it possible for others to replicate the model with the same\ndataset, or provide access to the model. In general. releasing code and data is often\none good way to accomplish this, but reproducibility can also be provided via detailed\ninstructions for how to replicate the results, access to a hosted model (e.g., in the case\nof a large language model), releasing of a model checkpoint, or other means that are\nappropriate to the research performed.\n• While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the\nnature of the contribution. For example\n(a) If the contribution is primarily a new algorithm, the paper should make it clear how\nto reproduce that algorithm.\n(b) If the contribution is primarily a new model architecture, the paper should describe\nthe architecture clearly and fully.\n(c) If the contribution is a new model (e.g., a large language model), then there should\neither be a way to access this model for reproducing the results or a way to reproduce\nthe model (e.g., with an open-source dataset or instructions for how to construct\nthe dataset).\n(d) We recognize that reproducibility may be tricky in some cases, in which case\nauthors are welcome to describe the particular way they provide for reproducibility.\nIn the case of closed-source models, it may be that access to the model is limited in\nsome way (e.g., to registered users), but it should be possible for other researchers\nto have some path to reproducing or verifying the results.\n5. Open access to data and code\nQuestion: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental\nmaterial?\n17\n\n\fAnswer: [Yes]\nJustification: We have used all publicly available datasets, and our code can be found here.\nGuidelines:\n• The answer NA means that paper does not include experiments requiring code.\n• Please see the NeurIPS code and data submission guidelines (https://nips.cc/\npublic/guides/CodeSubmissionPolicy) for more details.\n• While we encourage the release of code and data, we understand that this might not be\npossible, so “No” is an acceptable answer. Papers cannot be rejected simply for not\nincluding code, unless this is central to the contribution (e.g., for a new open-source\nbenchmark).\n• The instructions should contain the exact command and environment needed to run to\nreproduce the results. See the NeurIPS code and data submission guidelines (https:\n//nips.cc/public/guides/CodeSubmissionPolicy) for more details.\n• The authors should provide instructions on data access and preparation, including how\nto access the raw data, preprocessed data, intermediate data, and generated data, etc.\n• The authors should provide scripts to reproduce all experimental results for the new\nproposed method and baselines. If only a subset of experiments are reproducible, they\nshould state which ones are omitted from the script and why.\n• At submission time, to preserve anonymity, the authors should release anonymized\nversions (if applicable).\n• Providing as much information as possible in supplemental material (appended to the\npaper) is recommended, but including URLs to data and code is permitted.\n6. Experimental setting/details\nQuestion: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer, etc.) necessary to understand the\nresults?\nAnswer: [Yes]\nJustification: We have provided key experimental details in the main paper and extended\ninformation in the Appendix.\nGuidelines:\n• The answer NA means that the paper does not include experiments.\n• The experimental setting should be presented in the core of the paper to a level of detail\nthat is necessary to appreciate the results and make sense of them.\n• The full details can be provided either with the code, in appendix, or as supplemental\nmaterial.\n7. Experiment statistical significance\nQuestion: Does the paper report error bars suitably and correctly defined or other appropriate\ninformation about the statistical significance of the experiments?\nAnswer: [Yes]\nJustification: We provide standard errors for the extended tables provided in the Appendix.\nGuidelines:\n• The answer NA means that the paper does not include experiments.\n• The authors should answer \"Yes\" if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support\nthe main claims of the paper.\n• The factors of variability that the error bars are capturing should be clearly stated (for\nexample, train/test split, initialization, random drawing of some parameter, or overall\nrun with given experimental conditions).\n• The method for calculating the error bars should be explained (closed form formula,\ncall to a library function, bootstrap, etc.)\n• The assumptions made should be given (e.g., Normally distributed errors).\n18\n\n\f• It should be clear whether the error bar is the standard deviation or the standard error\nof the mean.\n• It is OK to report 1-sigma error bars, but one should state it. The authors should\npreferably report a 2-sigma error bar than state that they have a 96% CI, if the hypothesis\nof Normality of errors is not verified.\n• For asymmetric distributions, the authors should be careful not to show in tables or\nfigures symmetric error bars that would yield results that are out of range (e.g. negative\nerror rates).\n• If error bars are reported in tables or plots, The authors should explain in the text how\nthey were calculated and reference the corresponding figures or tables in the text.\n8. Experiments compute resources\nQuestion: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce\nthe experiments?\nAnswer: [Yes]\nJustification: We have provided information on the computer resources in the Appendix.\nGuidelines:\n• The answer NA means that the paper does not include experiments.\n• The paper should indicate the type of compute workers CPU or GPU, internal cluster,\nor cloud provider, including relevant memory and storage.\n• The paper should provide the amount of compute required for each of the individual\nexperimental runs as well as estimate the total compute.\n• The paper should disclose whether the full research project required more compute\nthan the experiments reported in the paper (e.g., preliminary or failed experiments that\ndidn’t make it into the paper).\n9. Code of ethics\nQuestion: Does the research conducted in the paper conform, in every respect, with the\nNeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines?\nAnswer: [Yes]\nJustification: We ensured that our work adheres to the code of ethics.\nGuidelines:\n• The answer NA means that the authors have not reviewed the NeurIPS Code of Ethics.\n• If the authors answer No, they should explain the special circumstances that require a\ndeviation from the Code of Ethics.\n• The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction).\n10. Broader impacts\nQuestion: Does the paper discuss both potential positive societal impacts and negative\nsocietal impacts of the work performed?\nAnswer: [NA]\nJustification: [NA]\nGuidelines:\n• The answer NA means that there is no societal impact of the work performed.\n• If the authors answer NA or No, they should explain why their work has no societal\nimpact or why the paper does not address societal impact.\n• Examples of negative societal impacts include potential malicious or unintended uses\n(e.g., disinformation, generating fake profiles, surveillance), fairness considerations\n(e.g., deployment of technologies that could make decisions that unfairly impact specific\ngroups), privacy considerations, and security considerations.\n19\n\n\f• The conference expects that many papers will be foundational research and not tied\nto particular applications, let alone deployments. However, if there is a direct path to\nany negative applications, the authors should point it out. For example, it is legitimate\nto point out that an improvement in the quality of generative models could be used to\ngenerate deepfakes for disinformation. On the other hand, it is not needed to point out\nthat a generic algorithm for optimizing neural networks could enable people to train\nmodels that generate Deepfakes faster.\n• The authors should consider possible harms that could arise when the technology is\nbeing used as intended and functioning correctly, harms that could arise when the\ntechnology is being used as intended but gives incorrect results, and harms following\nfrom (intentional or unintentional) misuse of the technology.\n• If there are negative societal impacts, the authors could also discuss possible mitigation\nstrategies (e.g., gated release of models, providing defenses in addition to attacks,\nmechanisms for monitoring misuse, mechanisms to monitor how a system learns from\nfeedback over time, improving the efficiency and accessibility of ML).\n11. Safeguards\nQuestion: Does the paper describe safeguards that have been put in place for responsible\nrelease of data or models that have a high risk for misuse (e.g., pretrained language models,\nimage generators, or scraped datasets)?\nAnswer: [NA]\nJustification: [NA]\nGuidelines:\n• The answer NA means that the paper poses no such risks.\n• Released models that have a high risk for misuse or dual-use should be released with\nnecessary safeguards to allow for controlled use of the model, for example by requiring\nthat users adhere to usage guidelines or restrictions to access the model or implementing\nsafety filters.\n• Datasets that have been scraped from the Internet could pose safety risks. The authors\nshould describe how they avoided releasing unsafe images.\n• We recognize that providing effective safeguards is challenging, and many papers do\nnot require this, but we encourage authors to take this into account and make a best\nfaith effort.\n12. Licenses for existing assets\nQuestion: Are the creators or original owners of assets (e.g., code, data, models), used in\nthe paper, properly credited and are the license and terms of use explicitly mentioned and\nproperly respected?\nAnswer: [Yes]\nJustification: We have used publicly available datasets, and for code, we have used opensource GitHub repositories after citing them in the paper.\nGuidelines:\n• The answer NA means that the paper does not use existing assets.\n• The authors should cite the original paper that produced the code package or dataset.\n• The authors should state which version of the asset is used and, if possible, include a\nURL.\n• The name of the license (e.g., CC-BY 4.0) should be included for each asset.\n• For scraped data from a particular source (e.g., website), the copyright and terms of\nservice of that source should be provided.\n• If assets are released, the license, copyright information, and terms of use in the\npackage should be provided. For popular datasets, paperswithcode.com/datasets\nhas curated licenses for some datasets. Their licensing guide can help determine the\nlicense of a dataset.\n• For existing datasets that are re-packaged, both the original license and the license of\nthe derived asset (if it has changed) should be provided.\n20\n\n\f• If this information is not available online, the authors are encouraged to reach out to\nthe asset’s creators.\n13. New assets\nQuestion: Are new assets introduced in the paper well documented and is the documentation\nprovided alongside the assets?\nAnswer: [Yes]\nJustification: Our anonymized code is accessible from here. We have also shared the details\nfor setting up the environment and running the code.\nGuidelines:\n• The answer NA means that the paper does not release new assets.\n• Researchers should communicate the details of the dataset/code/model as part of their\nsubmissions via structured templates. This includes details about training, license,\nlimitations, etc.\n• The paper should discuss whether and how consent was obtained from people whose\nasset is used.\n• At submission time, remember to anonymize your assets (if applicable). You can either\ncreate an anonymized URL or include an anonymized zip file.\n14. Crowdsourcing and research with human subjects\nQuestion: For crowdsourcing experiments and research with human subjects, does the paper\ninclude the full text of instructions given to participants and screenshots, if applicable, as\nwell as details about compensation (if any)?\nAnswer: [NA]\nJustification: [NA]\nGuidelines:\n• The answer NA means that the paper does not involve crowdsourcing nor research with\nhuman subjects.\n• Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be\nincluded in the main paper.\n• According to the NeurIPS Code of Ethics, workers involved in data collection, curation,\nor other labor should be paid at least the minimum wage in the country of the data\ncollector.\n15. Institutional review board (IRB) approvals or equivalent for research with human\nsubjects\nQuestion: Does the paper describe potential risks incurred by study participants, whether\nsuch risks were disclosed to the subjects, and whether Institutional Review Board (IRB)\napprovals (or an equivalent approval/review based on the requirements of your country or\ninstitution) were obtained?\nAnswer: [NA]\nJustification: [NA]\nGuidelines:\n• The answer NA means that the paper does not involve crowdsourcing nor research with\nhuman subjects.\n• Depending on the country in which research is conducted, IRB approval (or equivalent)\nmay be required for any human subjects research. If you obtained IRB approval, you\nshould clearly state this in the paper.\n• We recognize that the procedures for this may vary significantly between institutions\nand locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the\nguidelines for their institution.\n• For initial submissions, do not include any information that would break anonymity (if\napplicable), such as the institution conducting the review.\n21\n\n\f16. Declaration of LLM usage\nQuestion: Does the paper describe the usage of LLMs if it is an important, original, or\nnon-standard component of the core methods in this research? Note that if the LLM is used\nonly for writing, editing, or formatting purposes and does not impact the core methodology,\nscientific rigorousness, or originality of the research, declaration is not required.\nAnswer: [No]\nJustification: LLM is solely used for grammar check and formatting purposes.\nGuidelines:\n• The answer NA means that the core method development in this research does not\ninvolve LLMs as any important, original, or non-standard components.\n• Please refer to our LLM policy (https://neurips.cc/Conferences/2025/LLM)\nfor what should or should not be described.\n\n22\n\n\fA\n\nProofs\n\nA.1\n\nProof of Proposition 4.1\n\nProof. From (2), we have\n\n±\n−\n+\nfX\n(x) = ϵfX\n(x) + (1 − ϵ)fX\n(x).\n\nAdditionally, from (3), we have\n±\n\nf (x) exp(T (x)/β)\n±\nfˇX\n(x) = X\nβ\nZX\nThen,\n\u0015\n\u0014\nf + (x)\n+ ˇ±\nDKL (fX\n∥fX ) = Ex∼P+ log X\n±\nX\nfˇX\n(x)\n\u0002\n\u0003\n+\n±\n= Ex∼P+ log fX (x) − log fˇX\n(x)\nX\n#\n\"\n±\nfX\n(x) exp(T (x)/β)\n+\n= Ex∼P+ log fX (x) − log\nβ\nX\nZX\n\u0014\n\u0015\nT (x)\nβ\n+\n±\n= Ex∼P+ log fX (x) − log fX (x) −\n+ log ZX\nX\nβ\n\u0015\n\u0014\nT (x)\nβ\n+\n±\n− log ZX\n= DKL (fX ∥fX ) − Ex∼P+\nX\nβ\n\"\n#\nexp(T (x)/β)\n+\n±\n= DKL (fX ∥fX ) − Ex∼P+ log\n.\nβ\nX\nZX\n+\n±\nWe aim to increase the alignment between fX\nand fˇX\n. Since the KL divergence is non-negative, if\nthe expectation term is positive, we obtain\nDKL (f + ∥fˇ± ) ≤ DKL (f + ∥f ± ).\nX\n\nX\n\nX\n\nX\n\nTherefore, the following condition should hold:\n\"\n#\nexp(T (x)/β)\nEx∼P+ log\n≥ 0.\nβ\nX\nZX\n\nB\n\nAdditional implementation details\n\nB.1\n\nBenchmark datasets\n\nFor sensory AD in industrial settings, we use three widely recognised benchmark datasets. MVTecAD\n(Bergmann et al., 2019) comprises images from 15 categories (10 objects and 5 textures) with 3629\nnormal training images and 1258 anomalous and 467 normal test images, each containing pixel-level\nannotations of defects. MPDD (Jezek et al., 2021) targets metal part defects under varying conditions,\noffering 888 training images and test datasets consisting of 176 normal and 282 anomalous images\nacross 6 metal part categories. ViSA (Zou et al., 2022) provides 10821 high-resolution images\n(9621 normal and 1200 anomalous) spanning 12 categories, capturing a range of anomalies such\nas scratches, cracks, missing parts, and misplacements. Each defect type is represented by 15–20\nimages, and some images feature multiple defects. RealIAD (Wang et al., 2024) is a large-scale\nindustrial AD dataset comprising ∼ 150k images across 30 categories and having various types of\ndefects such as scratches, dirt and missing parts. For experiments with RealIAD, we use the training\nsplit with 10% contamination and the test split provided by the authors. For the semantic datasets,\nusing the one-vs-rest protocol, we create k AD tasks for each dataset, where k is the number of\nclasses. In each task, one class is designated as normal, while the remaining classes are treated as\nanomalous. Across both sensory and semantic AD, the training datasets consist of a mixture of\nnormal samples and a fraction ϵ of anomalous samples, reflecting realistic contamination scenarios.\n23\n\n\fB.2\n\nDetails of the experiment using synthetic Data\n\nThe synthetic dataset is generated using a 2D Gaussian mixture model with three components.\n+\nNormal samples are drawn from fX\n(x) := N ([1, 1]T , 0.07I2 ), while anomalous samples are sampled\n−\nT\nfrom fX (x) := N ([−0.25, 2.5] , 0.03I2 ) + N ([−1, 0.5]T , 0.03I2 ). For the experiments, we use\nDeepSVDD with a one-layer radial basis function (RBF) network. The hidden layer comprises\nthree neurons, with their centres fixed at the mean of each Gaussian component, while the scales are\noptimized during training. The RBF network outputs a 1D scalar obtained as a linear combination of\nthe outputs from the hidden layer. The centre is initialized randomly and made trainable, with an\nadded bias term in the final layer. Although these modifications are not recommended by Ruff et al.\n(2018) to avoid collapse to a trivial solution, Qiu et al. (2022) observed that these changes enhance\nmodel flexibility and convergence. Following this, we train DeepSVDD using the Adam optimizer\nwith a learning rate of 0.01, 200 epochs, and a mini-batch size of 25.\nB.3\n\nComputing evidence functions\n\nEPHAD relies on an evidence function T (x), computed during test-time, to refine anomaly scores by\n−\nassigning higher values to samples from P+\nX than those from PX . In this section, we introduce domainagnostic evidence functions applicable to image (Section B.3.1) and tabular datasets (Section B.3.2).\nWhile these functions are commonly used as standalone methods for anomaly detection, their role as\nevidence functions is novel and complementary to our framework. By operating in a transductive\nsetting, they refine the outputs of an AD model initially trained in an inductive setting. Moreover,\nas shown in Section 5, using these evidence functions solely as anomaly scores does not always\nyield strong AD performance. However, when integrated into EPHAD, they significantly enhance the\nperformance of a pre-trained model. Finally, the choice of an T (x) is not restricted to AD methods\nand can be adapted to incorporate domain-specific knowledge for improved effectiveness.\nB.3.1\n\nEvidence for visual datasets\n\nFor the evidence function in image-based AD, we propose using Contrastive Language-Image Pretraining (CLIP) (Radford et al., 2021), a robust large-scale framework that learns joint vision-language\nrepresentations from web-collected image-text pairs. While CLIP has been explored in prior work as\na zero-shot AD method (Jeong et al., 2023; Zhou et al., 2024), its performance varies across different\ndatasets. Although CLIP excels in detecting anomalies in real-world image datasets such as CIFAR10,\nit faces significant challenges when applied to domain-specific datasets, particularly those used for\nindustrial inspection, like MVTec. This limitation stems from the lack of domain-specific knowledge\nin CLIP’s pre-training. In this section, we describe how CLIP is integrated into EPHAD as an evidence\nfunction T (x), leveraging its strengths while mitigating its limitations in specialized domains.\nGiven a dataset D := {(xj , tj )}nj=1 , CLIP trains an image encoder ei and a text encoder et using\ncontrastive learning (Chen et al., 2020), maximizing the cosine similarity between ei (xj ) and\net (tj ) for all (xj , tj ) ∈ D. For an input image x, CLIP performs zero-shot classification (Radford\net al., 2021) by computing a k-way categorical distribution over a set of candidate class texts\nC = {c1 , . . . , ck }\nexp (⟨ei (x), et (cj )⟩/γ)\n,\ns∈C exp (⟨ei (x), et (s)⟩/γ)\n\np(c = cj | x; c ∈ C) := P\n\nwhere ⟨·, ·⟩ denotes the cosine similarity, and γ is a temperature parameter that controls the sharpness\nof the distribution. Pairing class labels c ∈ C with prompt templates (e.g., a photo of a [c])\nimproves classification accuracy, and aggregating embeddings from multiple prompt variations (e.g.,\na cropped photo of a [c]) further enhances performance.\nBuilding on Jeong et al. (2023), we use CLIP as evidence function T (x) in EPHAD. We start by defining\ntwo lists of textual prompt templates, TN = {n1 , · · · , nk } and TA = {a1 , · · · , ak }, corresponding\nto normal and anomalous classes, respectively. The list of prompts is provided in Table 3. These\ntemplates are dataset-dependent, reflecting subjectivity (e.g., “missing wire\" as anomalous for cables).\nFor each label, we generate two lists of prompts for normal and anomalous cases using TN and TA\nand compute the mean of text embeddings tN and tA . Finally, given an input image x, the evidence\n24\n\n\fTable 3: Prompts for CLIP where \"c\" denotes the category.\nSemantic AD\nSensory AD\nNormal\nAnomalous\nNormal\nAnomalous\n\"c\"\ndamaged \"c\"\na photo of the number \"c\" a photo of something\nflawless \"c\"\n\"c\" with flaw\nperfect \"c\"\n\"c\" with defect\nunblemished \"c\"\n\"c\" with damage\n\"c\" without flaw\n\"c\" without defect\n\"c\" without damage\n\nT (x) during test-time is computed as:\nT (x) :=\n\nexp (⟨ei (x), tN ⟩/γ)\n.\nexp (⟨ei (x), tN ⟩/γ) + exp (⟨ei (x), tA ⟩/γ)\n\nOne potential concern when using pre-trained models like CLIP is the overlap between their training\ndata and the test samples encountered in downstream tasks. Such overlap could challenge the\nassumption that test-time statistics are based solely on test data. However, Radford et al. (2021)\nprovides an extensive analysis of this issue and shows that excluding all overlapping samples\nfrom CLIP’s pre-training corpus leads to only a negligible performance drop. This result suggests\nthat CLIP’s effectiveness stems primarily from its generalisation ability rather than memorisation.\nAccordingly, our experiments emphasise this generalisation property, ensuring that the use of CLIP\nwithin our framework remains valid.\nB.3.2\n\nEvidence for tabular datasets\n\nFor tabular datasets, we use the output of two classical unsupervised AD methods as evidence\nfunctions T (x), namely, Local Outlier Factor (LOF) (Breunig et al., 2000) and Isolation Forest\n(IForest) (Liu et al., 2012).\nLocal Outlier Factor. To detect anomalies, the local density of a point is compared to that of its\nk-nearest neighbours. Specifically, given a dataset D := {xj }nj=1 , the k-distance of a point x, denoted\nas k-distance(x), is defined as the distance from x to its k-th nearest neighbor.\nBased on this, the k-distance neighborhood of x, denoted as Nk (x), consists of all points whose\ndistance from x is at most k-distance(x). Additionally, the reachability distance of x from a neighbor\nxi is computed as reach-distk (x, xi ) = max{k-distance(x), d(x, xi )}, where d(x, xi ) represents the\ndistance between x and xi .\nThen, local reachability density (LRD) of x is computed as\n\"P\n#−1\nxi ∈Nk (x) reach-distk (x, xi )\nLRDk (x) =\n.\n|Nk (x)|\nFinally, the LOF-based evidence is computed as\nP\nT (x) = −\n\nLRDk (xi )\nxi ∈Nk (x) LRDk (x)\n\n.\n|Nk (x)|\nIsolation Forest. Anomalies are identified by recursively partitioning the data using a tree-based\nmethod, where features and split values are selected randomly. IForest operates under the assumption\nthat anomalies are more susceptible to isolation due to their sparsity and distinctiveness in the feature\nspace. Given D, IForest constructs multiple isolation trees (ITrees), where each data point x is\nassigned a depth representing the number of splits required to isolate it, referred to as the path length.\nSpecifically, the evidence function T (x) is computed as:\nE(h(x))\n\nT (x) = −2− c(n) ,\nwhere h(x) is the path length of x, i.e., the number of edges traversed from the root node to the leaf\nnode where x is isolated in an ITree. E(h(x)) is the expected path length, i.e., the average path length\nacross multiple ITrees, and c(n) is the average path length of an unsuccessful search.\n25\n\n\fB.4\n\nExperimental setup\n\nFor training the base AD methods, we use open-source Anomalib and ADBench libraries for experiments with image and tabular datasets, respectively. Our decision to rely on these public libraries was\nintentional, ensuring transparency and facilitating unbiased comparisons. For the training of each\nbase AD model, we used a single NVIDIA A100 GPU. Then, we run inference using EPHAD on CPU.\n\nC\n\nExtended results\n\nC.1\n\nAdditional experiments on tabular Datasets\n\nTable 4, 5, 6, and 7 summarise the results on a larger set of tabular datasets from ADBench. Each\nexperiment is repeated with three seeds. We can observe that in most cases AD methods benefit from\nour post-hoc adjustment framework EPHAD, often achieving performance improvements that surpass\nboth the evidence function and the AD method in isolation.\nTable 4: Performance of EPHAD on tabular datasets with 10% contamination ratio and LOF as evidence\nfunction. Style: AUROC % (± SE). Best in bold. † represents transductive inference.\nDataset\naloi\nannthyroid\nbackdoor\nbreastw\nceleba\ncover\nfault\nfraud\nglass\nhttp\nionosphere\nletter\nlymphography\nmammography\nmnist\nmusk\noptdigits\npendigits\nsatellite\nsatimage-2\nshuttle\nsmtp\nthyroid\nvowels\nwilt\nwine\n\nLOF†\n72.64 (± 0.1)\n68.53 (± 0.12)\n70.43 (± 0.08)\n46.31 (± 0.92)\n41.45 (± 0.32)\n52.12 (± 0.1)\n55.00 (± 0.53)\n45.75 (± 0.13)\n77.52 (± 0.93)\n37.65 (± 0.09)\n82.43 (± 0.16)\n83.15 (± 0.73)\n99.44 (± 0.26)\n67.29 (± 0.19)\n59.63 (± 0.19)\n39.44 (± 0.57)\n59.58 (± 0.26)\n47.21 (± 0.12)\n52.90 (± 0.31)\n52.80 (± 0.15)\n55.54 (± 0.11)\n89.77 (± 0.55)\n75.91 (± 0.79)\n89.10 (± 0.67)\n64.63 (± 0.72)\n97.57 (± 1.46)\n\nCOPOD\nDeepSVDD\nBlind\n+ EPHAD\nBlind\n+ EPHAD\n51.46 (± 0.05) 52.55 (± 0.06) 54.06 (± 0.54) 64.36 (± 0.21)\n73.45 (± 0.08) 73.82 (± 0.08) 62.69 (± 3.33) 67.00 (± 2.15)\n75.06 (± 0.07) 78.88 (± 0.08) 78.34 (± 1.21) 76.48 (± 0.57)\n99.46 (± 0.06) 98.52 (± 0.14) 98.65 (± 0.05) 95.13 (± 0.97)\n72.09 (± 0.01) 61.86 (± 0.1) 67.51 (± 3.07) 55.60 (± 2.13)\n78.70 (± 0.03) 79.01 (± 0.02) 75.11 (± 11.37) 75.74 (± 11.06)\n45.69 (± 0.58) 45.66 (± 0.57) 47.34 (± 0.99) 48.59 (± 0.99)\n94.39 (± 0.0) 94.24 (± 0.0) 89.98 (± 0.97)\n85.1 (± 0.66)\n76.11 (± 0.77) 79.45 (± 0.95) 64.52 (± 6.87) 80.94 (± 3.31)\n94.91 (± 0.01) 90.26 (± 0.04) 99.17 (± 0.08) 94.97 (± 0.2)\n79.42 (± 1.03) 81.67 (± 0.95) 83.09 (± 0.57) 84.90 (± 0.17)\n56.71 (± 0.12) 57.62 (± 0.09) 50.51 (± 2.54) 61.26 (± 2.42)\n99.52 (± 0.22) 99.76 (± 0.19) 98.57 (± 0.74) 99.53 (± 0.19)\n89.29 (± 0.05) 89.28 (± 0.05) 87.23 (± 0.95) 87.29 (± 1.22)\n75.87 (± 0.03) 75.89 (± 0.03) 74.26 (± 4.38) 73.93 (± 4.24)\n91.95 (± 0.32) 91.91 (± 0.33) 88.57 (± 5.4) 87.17 (± 5.87)\n62.26 (± 0.24) 62.49 (± 0.23) 40.01 (± 10.2) 46.77 (± 8.53)\n88.44 (± 0.2) 88.38 (± 0.2) 74.87 (± 9.91) 72.68 (± 8.72)\n64.33 (± 0.25) 64.40 (± 0.25) 60.59 (± 1.77) 62.63 (± 1.38)\n97.03 (± 0.06) 97.20(± 0.06) 92.65 (± 0.46) 96.16 (± 0.31)\n99.26 (± 0.0) 99.19 (± 0.0) 97.83 (± 0.91) 97.78 (± 0.79)\n79.64 (± 0.01) 80.56 (± 0.12) 84.05 (± 0.57) 86.10 (± 0.5)\n88.45 (± 0.35) 88.71 (± 0.31) 86.73 (± 3.72) 88.33 (± 3.15)\n56.10 (± 0.32) 58.87 (± 0.34) 64.47 (± 2.55) 76.61 (± 1.24)\n33.45 (± 0.11) 35.55 (± 0.1) 35.79 (± 1.97)\n46.44 (± 1.4)\n80.51 (± 1.36) 86.78 (± 1.96) 82.26 (± 2.29) 92.94 (± 1.74)\n\nECOD\nBlind\n+ EPHAD\n53.14 (± 0.03) 54.33 (± 0.05)\n76.05 (± 0.11) 76.31 (± 0.11)\n83.00 (± 0.09) 85.48 (± 0.08)\n99.01 (± 0.04) 97.44 (± 0.03)\n73.99 (± 0.01) 63.2 (± 0.09)\n85.34 (± 0.02) 85.45 (± 0.02)\n47.00 (± 0.4) 46.87 (± 0.4)\n93.86 (± 0.0) 93.62 (± 0.01)\n67.65 (± 0.44) 72.59 (± 0.61)\n92.35 (± 0.02) 87.88 (± 0.04)\n73.04 (± 0.84) 74.34 (± 0.85)\n56.41 (± 0.29) 57.17 (± 0.29)\n99.60 (± 0.23) 99.76 (± 0.19)\n89.38 (± 0.06) 89.26 (± 0.05)\n72.62 (± 0.05) 72.64 (± 0.05)\n71.84 (± 0.34) 71.78 (± 0.34)\n54.04 (± 0.21) 54.36 (± 0.21)\n90.63 (± 0.17) 90.65 (± 0.17)\n57.57 (± 0.16) 57.61 (± 0.16)\n94.21 (± 0.03) 94.39 (± 0.02)\n98.82 (± 0.01) 98.64 (± 0.01)\n87.98 (± 0.02) 88.28 (± 0.09)\n94.91 (± 0.14) 94.85 (± 0.14)\n54.29 (± 0.06) 56.82 (± 0.14)\n38.06 (± 0.13) 39.80 (± 0.15)\n67.12 (± 2.04) 74.97 (± 2.88)\n\nIForest\nBlind\n+ EPHAD\n54.05 (± 0.21) 71.75 (± 0.08)\n71.39 (± 0.34) 70.41 (± 0.13)\n51.29 (± 1.29) 70.13 (± 0.12)\n99.46 (± 0.04) 64.05 (± 1.17)\n40.09 (± 0.83) 40.32 (± 0.23)\n72.59 (± 1.59) 63.64 (± 0.92)\n58.08 (± 0.94) 55.92 (± 0.68)\n92.95 (± 0.29) 61.88 (± 0.49)\n78.50 (± 1.47) 79.12 (± 1.01)\n96.82 (± 0.37) 69.51 (± 0.62)\n89.58 (± 1.57) 83.50 (± 0.16)\n59.84 (± 0.64) 81.53 (± 0.59)\n99.76 (± 0.19) 99.52 (± 0.19)\n80.44 (± 0.29) 73.93 (± 0.04)\n71.27 (± 0.7) 62.75 (± 0.16)\n89.39 (± 1.88) 57.06 (± 2.03)\n40.87 (± 4.5) 56.80 (± 0.68)\n81.86 (± 1.48) 55.56 (± 0.98)\n76.31 (± 0.7) 63.85 (± 0.4)\n98.91 (± 0.09) 70.75 (± 0.44)\n99.57 (± 0.02) 81.72 (± 0.27)\n89.27 (± 0.88) 89.80 (± 0.5)\n93.67 (± 0.27) 83.42 (± 0.29)\n66.01 (± 0.57) 88.59 (± 0.65)\n42.92 (± 1.11) 61.30 (± 0.81)\n80.40 (± 3.42) 97.51 (± 1.51)\n\nLOF\nBlind\n+ EPHAD\n73.57 (± 0.1) 73.62 (± 0.07)\n72.12 (± 0.57) 71.06 (± 0.24)\n46.65 (± 0.26) 69.11 (± 0.1)\n73.39 (± 1.35) 62.4 (± 1.25)\n42.97 (± 0.23) 40.52 (± 0.38)\n22.44 (± 0.1) 44.20 (± 0.07)\n64.41 (± 1.35) 59.93 (± 0.37)\n33.92 (± 0.34) 45.26 (± 0.16)\n71.79 (± 1.08) 76.40 (± 0.68)\n17.85 (± 2.03) 24.61 (± 0.89)\n94.64 (± 0.52) 89.74 (± 0.55)\n85.74 (± 0.54) 84.84 (± 0.39)\n98.57 (± 0.59) 99.36 (± 0.32)\n69.70 (± 0.36) 72.29 (± 0.18)\n94.55 (± 0.36) 83.26 (± 0.45)\n20.17 (± 0.48) 32.93 (± 0.04)\n18.45 (± 0.59) 50.59 (± 0.07)\n14.87 (± 0.18) 37.64 (± 0.13)\n61.01 (± 0.29) 66.72 (± 0.28)\n24.52 (± 0.87) 47.14 (± 0.17)\n99.21 (± 0.01) 99.69 (± 0.02)\n43.01 (± 1.57) 89.82 (± 0.27)\n73.59 (± 1.69) 77.10 (± 0.53)\n93.04 (± 0.54) 91.30 (± 0.1)\n81.09 (± 0.41) 73.37 (± 0.3)\n99.94 (± 0.05) 99.94 (± 0.05)\n\nTable 5: Performance of EPHAD on tabular datasets with 10% contamination ratio and IForest as\nevidence function. Style: AUROC % (± SE). Best in bold. † represents transductive inference.\nDataset\naloi\nannthyroid\nbackdoor\nbreastw\nceleba\ncover\nfault\nfraud\nglass\nhttp\nionosphere\nletter\nlymphography\nmammography\nmnist\nmusk\noptdigits\npendigits\nsatellite\nsatimage-2\nshuttle\nsmtp\nthyroid\nvowels\nwilt\nwine\n\nIForest†\n54.18 (± 0.31)\n78.62 (± 1.01)\n67.83 (± 1.69)\n97.97 (± 0.14)\n66.62 (± 1.04)\n86.11 (± 1.6)\n52.02 (± 0.18)\n94.87 (± 0.11)\n77.60 (± 1.77)\n99.99 (± 0.0)\n81.80 (± 0.28)\n61.76 (± 0.26)\n99.92 (± 0.07)\n83.98 (± 0.32)\n75.50 (± 0.08)\n99.29 (± 0.33)\n58.65 (± 3.55)\n92.04 (± 0.23)\n64.44 (± 0.57)\n99.43 (± 0.07)\n98.97 (± 0.08)\n90.95 (± 0.28)\n96.65 (± 0.26)\n72.73 (± 0.8)\n42.57 (± 1.63)\n58.98 (± 0.68)\n\nCOPOD\nDeepSVDD\nBlind\n+ EPHAD\nBlind\n+ EPHAD\n51.46 (± 0.05) 51.48 (± 0.04) 54.06 (± 0.54) 54.43 (± 0.51)\n73.45 (± 0.08) 73.85 (± 0.05) 62.69 (± 3.33) 66.63 (± 2.19)\n75.06 (± 0.07) 75.06 (± 0.06) 78.34 (± 1.21) 81.43 (± 0.72)\n99.46 (± 0.06) 99.46 (± 0.05) 98.65 (± 0.05) 98.96 (± 0.04)\n72.09 (± 0.01) 72.00 (± 0.01) 67.51 (± 3.07) 68.20 (± 2.59)\n78.70 (± 0.03) 79.01 (± 0.09) 75.11 (± 11.37) 77.54 (± 9.82)\n45.69 (± 0.58) 45.73 (± 0.58) 47.34 (± 0.99) 47.89 (± 0.94)\n94.39 (± 0.0) 94.40 (± 0.0) 89.98 (± 0.97) 92.26 (± 0.5)\n76.11 (± 0.77) 76.29 (± 0.8) 64.52 (± 6.87) 69.28 (± 5.85)\n94.91 (± 0.01) 96.84 (± 0.05) 99.17 (± 0.08) 99.24 (± 0.05)\n79.42 (± 1.03) 79.49 (± 1.0) 83.09 (± 0.57) 83.57 (± 0.62)\n56.71 (± 0.12) 56.76 (± 0.12) 50.51 (± 2.54) 52.37 (± 2.32)\n99.52 (± 0.22) 99.52 (± 0.22) 98.57 (± 0.74) 99.28 (± 0.41)\n89.29 (± 0.05) 89.22 (± 0.04) 87.23 (± 0.95) 87.76 (± 0.85)\n75.87 (± 0.03) 75.88 (± 0.03) 74.26 (± 4.38) 76.20 (± 3.66)\n91.95 (± 0.32) 92.00 (± 0.32) 88.57 (± 5.4) 91.39 (± 4.15)\n62.26 (± 0.24) 62.25 (± 0.26) 40.01 (± 10.2) 42.56 (± 9.28)\n88.44 (± 0.2) 88.58 (± 0.21) 74.87 (± 9.91) 79.77 (± 8.09)\n64.33 (± 0.25) 64.33 (± 0.25) 60.59 (± 1.77) 60.84 (± 1.49)\n97.03 (± 0.06) 97.06 (± 0.06) 92.65 (± 0.46) 95.23 (± 0.06)\n99.26 (± 0.0) 99.28 (± 0.01) 97.83 (± 0.91) 98.30 (± 0.78)\n79.64 (± 0.01) 81.14 (± 0.06) 84.05 (± 0.57) 87.46 (± 0.73)\n88.45 (± 0.35) 89.21 (± 0.32) 86.73 (± 3.72) 89.21 (± 2.86)\n56.10 (± 0.32) 56.50 (± 0.31) 64.47 (± 2.55) 66.27 (± 2.37)\n33.45 (± 0.11) 33.70 (± 0.17) 35.79 (± 1.97) 36.43 (± 1.88)\n80.51 (± 1.36) 80.34 (± 1.39) 82.26 (± 2.29) 81.07 (± 2.51)\n\nECOD\nBlind\n+ EPHAD\n53.14 (± 0.03) 53.16 (± 0.03)\n76.05 (± 0.11) 76.20 (± 0.09)\n83.00 (± 0.09) 82.95 (± 0.09)\n99.01 (± 0.04) 99.07 (± 0.04)\n73.99 (± 0.01) 73.87 (± 0.01)\n85.34 (± 0.02) 85.44 (± 0.06)\n47.00 (± 0.4) 47.04 (± 0.39)\n93.86 (± 0.0) 93.87 (± 0.01)\n67.65 (± 0.44) 68.26 (± 0.52)\n92.35 (± 0.02) 94.49 (± 0.07)\n73.04 (± 0.84) 73.21 (± 0.85)\n56.41 (± 0.29) 56.47 (± 0.29)\n99.60 (± 0.23) 99.68 (± 0.17)\n89.38 (± 0.06) 89.24 (± 0.04)\n72.62 (± 0.05) 72.65 (± 0.05)\n71.84 (± 0.34) 71.92 (± 0.35)\n54.04 (± 0.21) 54.09 (± 0.24)\n90.63 (± 0.17) 90.73 (± 0.18)\n57.57 (± 0.16) 57.60 (± 0.16)\n94.21 (± 0.03) 94.27 (± 0.03)\n98.82 (± 0.01) 98.85 (± 0.0)\n87.98 (± 0.02) 88.41 (± 0.04)\n94.91 (± 0.14) 95.06 (± 0.15)\n54.29 (± 0.06) 54.65 (± 0.06)\n38.06 (± 0.13) 38.14 (± 0.17)\n67.12 (± 2.04) 67.06 (± 2.08)\n\n26\n\nIForest\nBlind\n+ EPHAD\n54.05 (± 0.21) 54.26 (± 0.22)\n71.39 (± 0.34) 76.91 (± 0.88)\n51.29 (± 1.29) 66.48 (± 1.43)\n99.46 (± 0.04) 98.98 (± 0.09)\n40.09 (± 0.83) 60.55 (± 1.07)\n72.59 (± 1.59) 82.94 (± 1.71)\n58.08 (± 0.94) 53.76 (± 0.41)\n92.95 (± 0.29) 94.60 (± 0.08)\n78.50 (± 1.47) 77.85 (± 1.64)\n96.82 (± 0.37) 99.63 (± 0.02)\n89.58 (± 1.57) 85.24 (± 0.63)\n59.84 (± 0.64) 61.35 (± 0.32)\n99.76 (± 0.19) 99.84 (± 0.13)\n80.44 (± 0.29) 83.14 (± 0.17)\n71.27 (± 0.7) 74.86 (± 0.18)\n89.39 (± 1.88) 98.74 (± 0.21)\n40.87 (± 4.5) 53.81 (± 1.83)\n81.86 (± 1.48) 90.40 (± 0.11)\n76.31 (± 0.7) 68.34 (± 0.51)\n98.91 (± 0.09) 99.41 (± 0.06)\n99.57 (± 0.02) 99.46 (± 0.04)\n89.27 (± 0.88) 90.78 (± 0.3)\n93.67 (± 0.27) 96.02 (± 0.18)\n66.01 (± 0.57) 71.08 (± 0.84)\n42.92 (± 1.11) 42.66 (± 1.4)\n80.40 (± 3.42) 68.47 (± 2.3)\n\nLOF\nBlind\n+ EPHAD\n73.57 (± 0.1) 69.30 (± 0.18)\n72.12 (± 0.57) 76.67 (± 0.39)\n46.65 (± 0.26) 66.23 (± 1.04)\n73.39 (± 1.35) 81.16 (± 1.08)\n42.97 (± 0.23) 49.73 (± 0.63)\n22.44 (± 0.1) 76.71 (± 2.42)\n64.41 (± 1.35) 58.97 (± 0.96)\n33.92 (± 0.34) 85.94 (± 0.34)\n71.79 (± 1.08) 81.23 (± 0.95)\n17.85 (± 2.03) 94.04 (± 0.05)\n94.64 (± 0.52) 94.23 (± 0.68)\n85.74 (± 0.54) 80.36 (± 0.32)\n98.57 (± 0.59) 99.68 (± 0.26)\n69.70 (± 0.36) 83.30 (± 0.15)\n94.55 (± 0.36) 91.46 (± 0.39)\n20.17 (± 0.48) 89.22 (± 2.5)\n18.45 (± 0.59) 38.72 (± 2.67)\n14.87 (± 0.18) 68.81 (± 1.12)\n61.01 (± 0.29) 72.19 (± 0.45)\n24.52 (± 0.87) 92.79 (± 0.16)\n99.21 (± 0.01) 99.89 (± 0.01)\n43.01 (± 1.57) 88.96 (± 0.35)\n73.59 (± 1.69) 93.41 (± 0.25)\n93.04 (± 0.54) 91.68 (± 0.34)\n81.09 (± 0.41) 71.40 (± 0.64)\n99.94 (± 0.05) 99.72 (± 0.12)\n\n\fTable 6: Performance od EPHAD-Ada on tabular datasets with 10% contamination ratio and LOF as\nevidence function. Style: AUROC % (± SE). Best in bold. † represents transductive inference.\nLOF†\n\nDataset\naloi\nannthyroid\nbackdoor\nbreastw\nceleba\ncover\nfault\nfraud\nglass\nhttp\nionosphere\nletter\nlymphography\nmammography\nmnist\nmusk\noptdigits\npendigits\nsatellite\nsatimage-2\nshuttle\nsmtp\nthyroid\nvowels\nwilt\nwine\n\n72.64 (± 0.1)\n68.53 (± 0.12)\n70.43 (± 0.08)\n46.31 (± 0.92)\n41.45 (± 0.32)\n52.12 (± 0.1)\n55.0 (± 0.53)\n45.75 (± 0.13)\n77.52 (± 0.93)\n37.65 (± 0.09)\n82.43 (± 0.16)\n83.15 (± 0.73)\n99.44 (± 0.26)\n67.29 (± 0.19)\n59.63 (± 0.19)\n39.44 (± 0.57)\n59.58 (± 0.26)\n47.21 (± 0.12)\n52.9 (± 0.31)\n52.8 (± 0.15)\n55.54 (± 0.11)\n89.77 (± 0.55)\n75.91 (± 0.79)\n89.1 (± 0.67)\n64.63 (± 0.72)\n97.57 (± 1.46)\n\nCOPOD\nDeepSVDD\nBlind\n+ EPHAD-Ada\nBlind\n+ EPHAD-Ada\n51.46 (± 0.05) 53.65 (± 0.17) 54.06 (± 0.54) 70.67 (± 0.22)\n73.45 (± 0.08) 73.91 (± 0.06) 62.69 (± 3.33) 69.27 (± 0.94)\n75.06 (± 0.07) 75.04 (± 0.07) 78.34 (± 1.21) 78.31 (± 1.21)\n99.46 (± 0.06) 97.73 (± 0.06) 98.65 (± 0.05) 92.94 (± 1.83)\n72.09 (± 0.01) 70.85 (± 0.07) 67.51 (± 3.07) 64.46 (± 3.06)\n78.7 (± 0.03) 79.57 (± 0.01) 75.11 (± 11.37) 75.58 (± 10.82)\n45.69 (± 0.58) 45.79 (± 0.58) 47.34 (± 0.99) 50.25 (± 0.65)\n94.39 (± 0.0) 94.38 (± 0.01) 89.98 (± 0.97) 89.93 (± 0.97)\n76.11 (± 0.77) 81.77 (± 1.28) 64.52 (± 6.87) 80.94 (± 2.52)\n94.91 (± 0.01) 94.91 (± 0.01) 99.17 (± 0.08) 99.17 (± 0.08)\n79.42 (± 1.03) 84.15 (± 0.38) 83.09 (± 0.57) 85.03 (± 0.25)\n56.71 (± 0.12) 71.03 (± 0.99) 50.51 (± 2.54)\n65.9 (± 2.88)\n99.52 (± 0.22) 99.84 (± 0.13) 98.57 (± 0.74) 99.45 (± 0.23)\n89.29 (± 0.05) 89.23 (± 0.05) 87.23 (± 0.95) 87.11 (± 0.95)\n75.87 (± 0.03) 74.27 (± 0.12) 74.26 (± 4.38)\n61.3 (± 0.69)\n91.95 (± 0.32) 85.69 (± 0.87) 88.57 (± 5.4) 81.67 (± 7.04)\n62.26 (± 0.24) 65.13 (± 0.22) 40.01 (± 10.2) 58.64 (± 0.91)\n88.44 (± 0.2) 87.09 (± 0.22) 74.87 (± 9.91) 74.08 (± 9.18)\n64.33 (± 0.25) 66.71 (± 0.3) 60.59 (± 1.77) 63.44 (± 1.53)\n97.03 (± 0.06) 98.53 (± 0.07) 92.65 (± 0.46) 96.14 (± 0.32)\n99.26 (± 0.0) 99.26 (± 0.01) 97.83 (± 0.91) 89.97 (± 1.95)\n79.64 (± 0.01) 79.69 (± 0.01) 84.05 (± 0.57) 83.73 (± 0.4)\n88.45 (± 0.35) 88.54 (± 0.25) 86.73 (± 3.72) 85.53 (± 3.6)\n56.1 (± 0.32) 75.39 (± 0.88) 64.47 (± 2.55) 82.12 (± 0.9)\n33.45 (± 0.11) 38.4 (± 0.73) 35.79 (± 1.97) 59.53 (± 1.51)\n80.51 (± 1.36) 93.96 (± 1.66) 82.26 (± 2.29) 93.96 (± 1.77)\n\nECOD\nBlind\n+ EPHAD-Ada\n53.14 (± 0.03) 55.47 (± 0.18)\n76.05 (± 0.11) 76.23 (± 0.06)\n83.0 (± 0.09) 82.99 (± 0.09)\n99.01 (± 0.04) 96.87 (± 0.26)\n73.99 (± 0.01) 72.89 (± 0.06)\n85.34 (± 0.02) 85.45 (± 0.01)\n47.0 (± 0.4) 46.81 (± 0.39)\n93.86 (± 0.0) 93.84 (± 0.01)\n67.65 (± 0.44) 78.43 (± 1.72)\n92.35 (± 0.02) 92.35 (± 0.02)\n73.04 (± 0.84) 78.14 (± 0.49)\n56.41 (± 0.29) 70.15 (± 1.15)\n99.6 (± 0.23) 99.84 (± 0.13)\n89.38 (± 0.06) 89.32 (± 0.06)\n72.62 (± 0.05) 70.83 (± 0.19)\n71.84 (± 0.34) 65.84 (± 0.57)\n54.04 (± 0.21) 58.99 (± 0.28)\n90.63 (± 0.17) 89.66 (± 0.2)\n57.57 (± 0.16) 59.69 (± 0.2)\n94.21 (± 0.03) 96.41 (± 0.07)\n98.82 (± 0.01) 98.8 (± 0.01)\n87.98 (± 0.02) 88.0 (± 0.03)\n94.91 (± 0.14) 94.06 (± 0.1)\n54.29 (± 0.06) 75.39 (± 0.91)\n38.06 (± 0.13) 42.06 (± 0.48)\n67.12 (± 2.04) 89.27 (± 2.95)\n\nIForest\nBlind\n+ EPHAD-Ada\n54.05 (± 0.21) 57.49 (± 0.31)\n71.39 (± 0.34) 72.24 (± 0.36)\n51.29(± 1.29) 51.29 (± 1.29)\n99.46 (± 0.04) 97.71 (± 0.21)\n40.09 (± 0.83) 37.54 (± 0.87)\n72.59 (± 1.59) 73.15 (± 1.57)\n58.08 (± 0.94) 57.61 (± 0.9)\n92.95 (± 0.29) 92.94 (± 0.29)\n78.5 (± 1.47) 83.15 (± 1.86)\n96.82 (± 0.37) 96.82 (± 0.37)\n89.58 (± 1.57) 90.05 (± 1.22)\n59.84 (± 0.64) 71.38 (± 0.86)\n99.76 (± 0.19) 99.92 (± 0.07)\n80.44 (± 0.29) 80.37 (± 0.29)\n71.27 (± 0.7) 70.59 (± 0.56)\n89.39 (± 1.88) 82.04 (± 3.01)\n40.87 (± 4.5) 48.26 (± 3.08)\n81.86(± 1.48) 79.5 (± 1.5)\n76.31 (± 0.7) 76.08 (± 0.46)\n98.91 (± 0.09) 98.16 (± 0.3)\n99.57 (± 0.02) 99.57 (± 0.02)\n89.27 (± 0.88) 89.27 (± 0.88)\n93.67 (± 0.27) 93.11 (± 0.19)\n66.01 (± 0.57) 80.76 (± 0.6)\n42.92 (± 1.11) 47.27 (± 0.39)\n80.4 (± 3.42) 93.56 (± 2.15)\n\nLOF\nBlind\n+ EPHAD-Ada\n73.57 (± 0.1) 73.85 (± 0.05)\n72.12 (± 0.57) 71.79 (± 0.39)\n46.65 (± 0.26) 61.97 (± 1.74)\n73.39 (± 1.35) 66.12 (± 1.49)\n42.97 (± 0.23) 40.96 (± 0.34)\n22.44 (± 0.1) 36.78 (± 0.23)\n64.41 (± 1.35) 61.29 (± 0.9)\n33.92 (± 0.34) 43.01 (± 0.84)\n71.79 (± 1.08) 75.67 (± 0.75)\n17.85 (± 2.03) 18.31 (± 1.96)\n94.64 (± 0.52) 91.85 (± 0.68)\n85.74 (± 0.54) 85.31 (± 0.36)\n98.57 (± 0.59) 99.28 (± 0.39)\n69.7 (± 0.36) 73.82 (± 0.06)\n94.55 (± 0.36) 88.51 (± 0.49)\n20.17 (± 0.48) 28.5 (± 0.74)\n18.45 (± 0.59) 42.52 (± 0.89)\n14.87 (± 0.18) 30.16 (± 1.01)\n61.01 (± 0.29) 66.71 (± 0.29)\n24.52 (± 0.87) 41.8 (± 0.72)\n99.21 (± 0.01) 99.82 (± 0.02)\n43.01 (± 1.57) 63.18 (± 2.15)\n73.59 (± 1.69) 76.74 (± 0.69)\n93.04 (± 0.54) 91.85 (± 0.12)\n81.09 (± 0.41) 76.62 (± 0.9)\n99.94 (± 0.05) 99.94 (± 0.05)\n\nTable 7: Performance od EPHAD-Ada on tabular datasets with 10% contamination ratio and IForest\nas evidence function. Style: AUROC % (± SE). Best in bold. † represents transductive inference.\nIForest†\n\nDataset\naloi\nannthyroid\nbackdoor\nbreastw\nceleba\ncover\nfault\nfraud\nglass\nhttp\nionosphere\nletter\nlymphography\nmammography\nmnist\nmusk\noptdigits\npendigits\nsatellite\nsatimage-2\nshuttle\nsmtp\nthyroid\nvowels\nwilt\nwine\n\nC.2\n\n54.18 (± 0.31)\n78.62 (± 1.01)\n67.83 (± 1.69)\n97.97 (± 0.14)\n66.62 (± 1.04)\n86.11 (± 1.6)\n52.02 (± 0.18)\n94.87 (± 0.11)\n77.6 (± 1.77)\n99.99 (± 0.0)\n81.8 (± 0.28)\n61.76 (± 0.26)\n99.92 (± 0.07)\n83.98 (± 0.32)\n75.5 (± 0.08)\n99.29 (± 0.33)\n58.65 (± 3.55)\n92.04 (± 0.23)\n64.44 (± 0.57)\n99.43 (± 0.07)\n98.97 (± 0.08)\n90.95 (± 0.28)\n96.65 (± 0.26)\n72.73 (± 0.8)\n42.57 (± 1.63)\n58.98 (± 0.68)\n\nBlind\n\nCOPOD\n+ EPHAD-Ada\n\n51.46 (± 0.05)\n73.45 (± 0.08)\n75.06 (± 0.07)\n99.46 (± 0.06)\n72.09 (± 0.01)\n78.7 (± 0.03)\n45.69 (± 0.58)\n94.39 (± 0.0)\n76.11 (± 0.77)\n94.91 (± 0.01)\n79.42 (± 1.03)\n56.71 (± 0.12)\n99.52 (± 0.22)\n89.29 (± 0.05)\n75.87 (± 0.03)\n91.95 (± 0.32)\n62.26 (± 0.24)\n88.44 (± 0.2)\n64.33 (± 0.25)\n97.03 (± 0.06)\n99.26 (± 0.0)\n79.64 (± 0.01)\n88.45 (± 0.35)\n56.1 (± 0.32)\n33.45 (± 0.11)\n80.51 (± 1.36)\n\nDeepSVDD\nBlind\n+ EPHAD-Ada\n\n52.42 (± 0.1) 54.06 (± 0.54)\n77.13 (± 0.43) 62.69 (± 3.33)\n73.35 (± 0.54) 78.34 (± 1.21)\n99.29 (± 0.03) 98.65 (± 0.05)\n69.51 (± 0.51) 67.51 (± 3.07)\n84.05 (± 1.15) 75.11 (± 11.37)\n48.69 (± 0.37) 47.34 (± 0.99)\n94.81 (± 0.07) 89.98 (± 0.97)\n77.78 (± 1.44) 64.52 (± 6.87)\n99.45 (± 0.03) 99.17 (± 0.08)\n81.84 (± 0.61) 83.09 (± 0.57)\n59.61 (± 0.28) 50.51 (± 2.54)\n99.76 (± 0.19) 98.57 (± 0.74)\n87.06 (± 0.13) 87.23 (± 0.95)\n76.47 (± 0.02) 74.26 (± 4.38)\n97.37 (± 0.45) 88.57 (± 5.4)\n60.85 (± 1.93) 40.01 (± 10.2)\n90.69 (± 0.26) 74.87 (± 9.91)\n64.72 (± 0.3) 60.59 (± 1.77)\n98.75 (± 0.06) 92.65 (± 0.46)\n99.42 (± 0.05) 97.83 (± 0.91)\n88.06 (± 0.17) 84.05 (± 0.57)\n94.35 (± 0.26) 86.73 (± 3.72)\n65.07 (± 0.52) 64.47 (± 2.55)\n37.63 (± 0.95) 35.79 (± 1.97)\n74.58 (± 1.48) 82.26 (± 2.29)\n\n54.21 (± 0.32)\n77.91 (± 0.79)\n72.05 (± 1.0)\n98.85 (± 0.06)\n68.83 (± 1.07)\n84.6 (± 3.81)\n51.44 (± 0.25)\n94.84 (± 0.11)\n76.33 (± 2.04)\n99.52 (± 0.01)\n83.72 (± 0.5)\n56.79 (± 1.64)\n99.92 (± 0.07)\n84.27 (± 0.27)\n76.04 (± 0.24)\n97.34 (± 1.28)\n58.15 (± 3.71)\n90.09 (± 2.25)\n62.43 (± 0.92)\n98.19 (± 0.24)\n98.98 (± 0.09)\n91.05 (± 0.32)\n95.8 (± 0.48)\n70.74 (± 1.46)\n41.82 (± 1.71)\n73.34 (± 2.89)\n\nBlind\n\nECOD\n+ EPHAD-Ada\n\n53.14 (± 0.03)\n76.05 (± 0.11)\n83.0 (± 0.09)\n99.01 (± 0.04)\n73.99 (± 0.01)\n85.34 (± 0.02)\n47.0 (± 0.4)\n93.86 (± 0.0)\n67.65 (± 0.44)\n92.35 (± 0.02)\n73.04 (± 0.84)\n56.41 (± 0.29)\n99.6 (± 0.23)\n89.38 (± 0.06)\n72.62 (± 0.05)\n71.84 (± 0.34)\n54.04 (± 0.21)\n90.63 (± 0.17)\n57.57 (± 0.16)\n94.21 (± 0.03)\n98.82 (± 0.01)\n87.98 (± 0.02)\n94.91 (± 0.14)\n54.29 (± 0.06)\n38.06 (± 0.13)\n67.12 (± 2.04)\n\n53.72 (± 0.11)\n77.84 (± 0.5)\n78.27 (± 0.46)\n99.1 (± 0.06)\n70.52 (± 0.49)\n86.56 (± 0.94)\n49.3 (± 0.31)\n94.63 (± 0.09)\n74.08 (± 1.16)\n99.25 (± 0.04)\n78.3 (± 0.51)\n59.37 (± 0.28)\n99.76 (± 0.19)\n87.51 (± 0.12)\n74.8 (± 0.04)\n90.7 (± 1.37)\n57.14 (± 2.15)\n92.11 (± 0.18)\n61.03 (± 0.21)\n97.87 (± 0.08)\n99.08 (± 0.06)\n90.21 (± 0.17)\n96.2 (± 0.21)\n64.37 (± 0.67)\n39.62 (± 0.84)\n63.73 (± 0.96)\n\nBlind\n\nIForest\n+ EPHAD-Ada\n\n54.05 (± 0.21)\n71.39 (± 0.34)\n51.29 (± 1.29)\n99.46 (± 0.04)\n40.09 (± 0.83)\n72.59 (± 1.59)\n58.08 (± 0.94)\n92.95 (± 0.29)\n78.5 (± 1.47)\n96.82 (± 0.37)\n89.58 (± 1.57)\n59.84 (± 0.64)\n99.76(± 0.19)\n80.44 (± 0.29)\n71.27 (± 0.7)\n89.39 (± 1.88)\n40.87 (± 4.5)\n81.86 (± 1.48)\n76.31 (± 0.7)\n98.91 (± 0.09)\n99.57 (± 0.02)\n89.27 (± 0.88)\n93.67 (± 0.27)\n66.01 (± 0.57)\n42.92 (± 1.11)\n80.4 (± 3.42)\n\n54.27 (± 0.12)\n75.66 (± 0.69)\n61.25 (± 0.57)\n99.17 (± 0.08)\n54.01 (± 0.64)\n80.23 (± 1.78)\n55.16 (± 0.61)\n94.32 (± 0.09)\n77.96 (± 1.6)\n99.37 (± 0.01)\n86.62 (± 0.87)\n60.93 (± 0.4)\n99.76 (± 0.19)\n82.57 (± 0.09)\n73.83 (± 0.38)\n96.77 (± 0.15)\n50.42 (± 1.43)\n88.36 (± 0.42)\n69.99 (± 0.41)\n99.31 (± 0.07)\n99.56 (± 0.02)\n90.49 (± 0.4)\n95.5 (± 0.14)\n69.74 (± 0.81)\n42.76 (± 1.28)\n73.62 (± 3.11)\n\nBlind\n\nLOF\n+ EPHAD-Ada\n\n73.57 (± 0.1)\n72.12 (± 0.57)\n46.65 (± 0.26)\n73.39 (± 1.35)\n42.97 (± 0.23)\n22.44 (± 0.1)\n64.41 (± 1.35)\n33.92 (± 0.34)\n71.79 (± 1.08)\n17.85 (± 2.03)\n94.64 (± 0.52)\n85.74 (± 0.54)\n98.57 (± 0.59)\n69.7 (± 0.36)\n94.55 (± 0.36)\n20.17 (± 0.48)\n18.45 (± 0.59)\n14.87 (± 0.18)\n61.01 (± 0.29)\n24.52 (± 0.87)\n99.21 (± 0.01)\n43.01 (± 1.57)\n73.59 (± 1.69)\n93.04 (± 0.54)\n81.09 (± 0.41)\n99.94 (± 0.05)\n\n62.1 (± 0.6)\n77.98 (± 0.7)\n67.81 (± 1.68)\n92.91 (± 0.52)\n60.04 (± 0.95)\n80.33 (± 2.26)\n52.81 (± 0.11)\n94.86 (± 0.1)\n83.73 (± 1.51)\n99.98 (± 0.0)\n89.88 (± 0.6)\n79.09 (± 0.62)\n99.84 (± 0.13)\n83.91 (± 0.31)\n90.56 (± 0.41)\n77.73 (± 2.96)\n38.14 (± 3.6)\n79.82 (± 0.64)\n72.04 (± 0.39)\n95.39 (± 0.14)\n99.79 (± 0.03)\n90.9 (± 0.22)\n95.67 (± 0.1)\n90.01 (± 0.24)\n61.95 (± 2.3)\n97.29 (± 0.64)\n\nExperiments on industrial use case\n\nCSP plant dataset. For the industrial setting, we utilise the simulated dataset introduced by Patra\net al. (2024), which is generated by training a variational autoencoder on real-world data collected\nfrom an operational CSP plant. The dataset consists of thermal images of solar panels captured\nusing infrared (IR) cameras, distinguishing it from the semantic and sensory anomaly datasets, as the\nimages lack semantic structure and do not depict specific objects.\nBaseline AD method. We evaluate the performance of the forecasting-based anomaly detection\nmethod ForecastAD, as proposed by the original authors, both with and without the integration of\nEPHAD. All experiments are conducted using the original implementation provided by the authors.\nRule-based evidence. Foundation models, such as CLIP, which were previously used in our experiments on image datasets, are not applicable in specialised applications, such as detecting anomalous\nbehaviour in solar power plants, due to the lack of semantic content in thermal images. This makes\nzero-shot methods like WinCLIP and AnoCLIP inapplicable. In contrast, while EPHAD can in27\n\n\fcorporate evidence from foundation models like CLIP, it also allows the seamless integration of\ndomain-specific knowledge. To compute evidence, we utilise two of the four rules proposed by Patra\net al. (2024) that indicate normal operational behaviour of the CSP plant. The first rule (R1) is based\non the difference between consecutive images. Under normal conditions, the plant’s temperature is\nexpected to remain relatively stable; therefore, substantial deviations from one image to the next\nsuggest potential anomalies. To quantify this, pixel-wise squared differences are computed between\nevery pair of consecutive images, and the 95th percentile of these differences is extracted as the\nrepresentative evidence for each pair. The second rule (R2) involves the difference from the average\ndaily temperature. Here, samples with average temperatures significantly diverging from the typical\ndaily average could indicate anomalous behaviour. For this, the mean temperature of each day is\nfirst determined, and then the absolute difference between each image’s average temperature and that\nday’s mean is computed to serve as the evidence.\nResults. The results presented in Table 8 underscore the effectiveness and adaptability of our ap- Table 8: Performance on CSP plant dataset.\nproach. Under a 10% contamination setting, the baseSetting\nMethod\nAUROC (± SE)\nline method ForecastAD experiences a performance\ndrop of approximately 5%. However, by incorporatClean\nForecastAD\n94.91 (±0.09)\ning domain-specific rules R1 and R2 as sources of\nEvidence\nRule-based (R1, R2) 69.46 (± 0.0)\nevidence using EPHAD and further using EPHAD-Ada, Contaminated ForecastAD\n90.45 (± 0.8)\n(ϵ = 0.1)\n+ EPHAD 93.51 (± 0.45)\nthe performance nearly matches that on the clean\n+ EPHAD-Ada 93.57 (± 0.43)\ndataset. It emphasises the value of leveraging structured, context-aware evidence to enhance the detection of anomalies. Importantly, foundation models like CLIP are unsuitable in this context due to\nthe lack of semantic content in thermal imagery, rendering zero-shot approaches such as WinCLIP\n(Jeong et al., 2023) and AnoCLIP (Zhou et al., 2024) ineffective. EPHAD addresses this limitation by\nproviding a flexible framework that integrates both powerful foundation models, where applicable,\nand domain-specific knowledge when necessary. This versatility enables EPHAD to deliver robust\nperformance across diverse real-world anomaly detection tasks while maintaining efficiency and ease\nof deployment.\n\nC.3\n\nComparison against LOE and SoftPatch\n\nTo ensure a comprehensive evaluation, we compare the performance of our proposed post-hoc\nframework against SoftPatch (Jiang et al., 2022) and both variants of LOE (Qiu et al., 2022). However,\nit is important to note that, unlike our approach, both SoftPatch and LOE modify the training process\nto account for contamination, making it inapplicable to pre-trained networks without access to the\ntraining dataset and pipeline, which is our main focus.\n\nNTL\n\nFirst, for comparison with LOE,\nTable 9: Comparison with LOE (AUROC %)\nwe conduct experiments usSemantic AD\nSensory AD\ning the Neural TransformaMethod\nMNIST\nFMNIST\nCIFAR10\nSVHN\nMVTec\nMPDD ViSA\ntion Learning-based (NTL) AD\nCLIP\n71.15\n95.63\n98.63\n58.46 86.34\n60.02 74.47\nmethod (Qiu et al., 2021) and\nBlind\n90.15\n89.01\n90.79\n61.82 78.13\n80.41 61.95\nevaluate it under four configuraRefine\n91.35\n91.37\n92.79\n61.78\n82.54\n87.32 65.63\ntions: “Blind”, “Refine”, LOELOE-Hard 86.89\n90.53\n93.10\n53.86 79.28\n83.34 78.82\nHard and LOE-Soft.\nAddiLOE-Soft 91.56\n92.89\n94.71\n61.69 85.46\n92.31 74.5\ntionally, we follow the same\nEPHAD\n78.96\n95.99\n98.65\n57.64 86.20\n59.88 74.22\nsetup as LOE by extracting image features using pre-trained\nResNet152 and WideResNet50 for semantic and sensory datasets, respectively, which are then\nused to train NTL. The results, summarised in Table 9, show that given a good evidence function,\ni.e. the performance of the evidence is better than the “Blind” configuration, our simple test-time\nframework outperforms LOE. Results on MVTec, CIFAR10, FMIST, and SVHN are examples of\nthis behaviour. Also, on the ViSA dataset, the performance improves over the “Blind” and “Refine”\nconfigurations. In the converse situations where the performance of the evidence is lower than the\n“Blind” configuration, we observe a reduction in performance which can be accounted for by putting\nmore emphasis on the AD model by adjusting β.\n28\n\n\fNow, we compare it against SoftPatch, an approach built upon PatchCore (Roth et al., 2022). SoftPatch\nenhances PatchCore by incorporating traditional anomaly detection (AD) techniques to refine the\nmemory bank, specifically by identifying and re-weighting patches based on their outlier scores\nduring training. While this strategy improves performance, it introduces a strong dependency on the\nchoice of AD method and increases the computational burden of the training pipeline.\n\nPatchCore\n\nFor a fair comparison, we adopt the Local Outlier Fac- Table 10: Comparison with SoftPatch\ntor (LOF) as the AD method, as it has been empirically\nfound to be the most effective for SoftPatch. As shown\nSensory AD\nMethod\nin Table 10, our method, EPHAD, achieves competitive reMVTec MPDD ViSA\nsults despite being a fully post-hoc approach that requires\nCLIP\n86.34\n60.02 74.47\nno modification to the training process. Crucially, while\nBlind\n70.02\n51.41 19.91\nSoftPatch is tailored for memory-bank-based methods,\nSoftPatch 90.40\n67.00 86.54\nEPHAD is inherently model-agnostic and can be seamlessly\nEPHAD\n86.45\n60.58 62.94\napplied to any combination of a pre-trained model and\nan evidence function. This versatility highlights EPHAD’s\nbroad applicability and practical utility across a diverse range of settings.\nC.4\n\nAblation on ϵ and β\n\nExtended ablation on ϵ and β can be found in Figure 3, 4. We can make similar conclusions as\ndiscussed above in Section 5.3.\n\nFigure 3: Ablation on ϵ.\n\nFigure 4: Ablation on β.\nC.5\n\nEffect of test set size n\n\nThe performance of our proposed framework, EPHAD, is influenced by both the pre-trained AD\nmethod and the evidence function. While the pre-trained AD method is affected only by the training\ndata, for the evidence function, we evaluated two scenarios: (1) When using foundation models\nsuch as CLIP, the evidence function remains independent of the test sample distribution. (2) When\nemploying traditional AD methods like Isolation Forest or Local Outlier Factor, the evidence function\n29\n\n\frelies on the local density of test samples, meaning that an insufficient number of test samples could\nlead to less informative evidence which can be accounted for in EPHAD by adjusting the temperature\nparameter β. In Figure 5, we analyse the impact of varying the proportion of anomalies in the test set,\nwhich exhibits consistent improvements across all tested settings.\n\nFigure 5: Ablation on varying proportion of anomalies in the test set.\n\n30\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"