"<!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>This CVPR paper is the Open Access version, provided by the Computer Vision Foundation.\nExcept for this watermark, it is identical to the accepted version;\nthe final published version of the proceedings is available on IEEE Xplore.\n\nAnomaly-Related Residual Fields for Cross-domain Anomaly Detection\nKewei Gao1 , Jiayi Xie2 , Zhengda Shen3 , Weijun Qin4 , Lingxiang Jia1 ,\nKejia Chen1 , Zunlei Feng1 , Yijun Bei1 *\n1\nZhejiang University, 2 Zhejiang University of Technology,\n3\nChongqing University, 4 EbTech Co. Ltd, China\n\nAbstract\nLabel-free image anomaly detection is difficult because\nanomalies must be separated from intra-normal variability.\nDiffusion models learn a manifold for normal data, and,\nunder the common assumption that off-manifold anomalies are harder to generate and yield larger prediction errors, many methods build detectors from prediction residuals; yet reverse-process stochasticity and complex but normal structure also produce large residuals, so magnitude\nalone is non-diagnostic. To clarify what is recoverable\nfrom such noisy residuals, the theory examines how residual signals propagate through later reverse steps, showing\nthat variability consistent with normal statistics is gradually absorbed toward stationarity, whereas anomalous regions retain an additional non-stationary signal that persists. Building on this insight, the Residual–Evolution\nField (REF) isolates this persistent signal, with labeled\nsource data calibrating the extractor and Cross-domain\nField Alignment (CFA) transferring it to unlabeled targets.\nA theoretical framework with formal analysis is established,\nand experiments across multiple benchmarks under substantial domain shifts demonstrate state-of-the-art performance, improving over strong baselines by 2.01–14 percentage points (pp).\n\nFigure 1. Motivating schematic for REF. Residuals in both normal and anomalous regions exhibit strong randomness. In anomalous regions, an additional anomaly-aligned component, explainable by the distributional difference between normal and anomaly,\nforms a coherent non-stationary trend (red). REF is designed to\nisolate this hidden component from noisy residuals.\n\n1. Introduction\n\nDiffusion models learn a robust normal manifold\nthat explains such within-normal variability.\nMany\ndiffusion-based approaches therefore learn detectors from\nprediction residuals. However, stochasticity in reverse diffusion and complex local structure can also enlarge residuals, injecting substantial noise into the learned representation and weakening cross-domain generalization. These\nlimitations motivate extracting the anomaly-aligned component from residuals rather than relying on residual magnitude or raw residual features.\n\nLabel-free image anomaly detection is challenging because\nanomalies are hard to distinguish from the intrinsic variability among normal samples. This ambiguity is amplified in\nrealistic data, where training sets often contain both normal\nand anomalous images without labels. A detector must separate within-normal variation on the normal manifold from\ntrue departures. Conventional unsupervised models often\nfail to isolate such distributional departures, and transfer\nmethods remain reliable only under small shifts, offering\nlimited domain-agnostic guidance in practice.\n* Corresponding author: beiyj@zju.edu.cn\n\nTo extract the anomaly-aligned component from diffusion residuals, residual-based statistics are designed to\nquantify how departures from the learned normal distribution influence residual evolution across time and space, providing an interpretable coupling between distributional departure and residual behaviour. Building on this foundation,\nthe analysis examines how residual signals at a given step\ninfluence subsequent reverse transitions. It shows that resid-\n\n35617\n\n\fual variability consistent with intra-normal statistics is progressively absorbed and moves toward stationarity, whereas\nresiduals from anomalous regions carry an additional nonstationary signal that persists rather than being absorbed.\nThese results motivate testing for a hidden non-stationary\ncomponent via patch-level energy and stationarity indices,\nwith full derivations and bounds in Supplementary Material\n(Supp.) Section S.4–S.5.\nBuilding on these results, the Residual–Evolution\nField (REF) is introduced to detect the non-stationary,\nanomaly-aligned signal hidden in diffusion residuals, as illustrated in Fig. 1. Direct training on unlabeled data is unreliable because this signal is buried under reverse-diffusion\nstochasticity and intra-normal variability. Labeled source\ndata are therefore used to train and calibrate the REF extractor, and a Cross-domain Field Alignment (CFA) module aligns the field space so the detector transfers to unlabeled target domains. Operating in the aligned field space\nreduces domain discrepancy and admits a target-risk bound.\nThe full derivation appears in Supp. S.7.\nThis work develops the REF to isolate the anomalyrelated signal embedded in diffusion residuals, together\nwith CFA for label-free transfer across domains. A theoretical framework with formal support is established, and extensive experiments under substantial domain shifts demonstrate consistent state-of-the-art performance, improving\nover strong baselines by 2.01–14 pp.\n\n2. Related Work\n\nterns and treat poorly explained content as anomalous.\nCFLOW-AD employs conditional normalizing flows with\nmulti-scale decoders for real-time scoring [15]. FastFlow\nperforms 2D flow-based density estimation over features\nfor efficient localization [47]. MemAE adds a prototypical\nmemory to an autoencoder to constrain reconstructions to\nnormal patterns [13]. GANomaly couples adversarial and\nreconstruction losses to expose feature-level deviations [1].\nf-AnoGAN inverts a trained GAN and detects anomalies via\nresidual and latent distances [32].\nDiffusion models. These methods characterize normality through denoising dynamics and expose anomalies\nthrough abnormal diffusion responses. AnoDDPM reconstructs by DDPM and aggregates multi-scale trajectory errors for detection and localization [42]. Denoising-diffusion\nOOD computes score norms or denoising consistency as\nan anomaly cue [14]. DiffAD leverages latent diffusion\nwith noise-conditioned embeddings to improve industrial\nanomaly localization [54]. Unsupervised industrial AD\nwith diffusion models evaluates diffusion-based reconstruction for real-world inspection [43]. Unsupervised OOD\nwith diffusion uses diffusion manifolds for target–inlier separation [24]. DiAD formulates a diffusion-based framework\nfor multi-class anomaly detection with pixel- and featurespace cues [16].\nVision–language models. These methods leverage\nsemantic priors from image–text pretraining to improve\nanomaly detection under limited supervision. WinCLIP\nuses windowed CLIP features and prompt ensembles for\nclassification and segmentation [19]. PromptAD learns\ntask-specific prompts from normal samples to enhance fewshot performance [21]. AnomalyCLIP formulates objectagnostic prompt learning for zero-shot industrial AD [57].\nLimitations. Unsupervised methods mainly constrain normal samples to conform to learned normal patterns, but\nthey do not explicitly enforce separation between normal\nand anomalous samples. This makes it difficult to distinguish benign perturbations of normal samples from subtle\nanomalous deviations, particularly when the anomaly signal is weak and easily mixed with intra-normal variability.\n\nPrior work falls into three categories: unsupervised modeling of normality, supervised anomaly detection, and crossdomain transfer learning.\n\n2.1. Unsupervised anomaly detection\nUnsupervised methods learn normality and identify anomalies by deviations from it. These methods can be grouped\ninto four categories.\nFeature matching and distillation. These methods\ncharacterize normality in pre-trained feature space and\nscore anomalies by deviations from the learned feature patterns. PaDiM models per-location features as multivariate Gaussians and uses Mahalanobis scoring [10]. SPADE\nbuilds dense multi-scale correspondences to a nominal\ngallery for pixel-level anomaly maps [9]. PatchCore compresses nominal features into a coreset to enable fast kNN\nretrieval and high-recall detection [29]. STPM trains a student to align teacher feature pyramids so that mismatches\nindicate anomalies [36]. RD4AD reverses the distillation\ndirection to sharpen residual signals and improve localization [11]. Patch SVDD optimizes a patch-level one-class\nobjective for segmentation [45].\nDensity estimation and reconstruction. These methods model normal data distributions or reconstruction pat-\n\n2.2. Supervised anomaly detection\n\n35618\n\nSupervised anomaly detection methods rely on anomalyrelated supervision to learn discriminative anomaly cues. In\npractice, these methods mainly fall into two types.\nSynthetic supervision. These methods create supervision without real anomaly labels by simulating synthetic\nanomalies. CutPaste synthesizes paste-based perturbations\nto train a anomaly classifier and segmenter [20]. DRAEM\ncombines a reconstruction pathway with a discriminative\nbranch trained on simulated masks [49]. DeSTSeg applies\nsegmentation-guided denoising in a student–teacher framework for fine-grained maps [55]. RealNet generates realis-\n\n\ftic synthetic anomalies with feature selection to reduce bias\n[56]. Outlier Exposure regularizes models with auxiliary\noutliers to improve open-set robustness [17].\nReal-anomaly supervision. These methods learn decision boundaries directly from annotated anomalies or limited labels. SimpleNet uses a lightweight design with multiscale cues for pixel-level detection [25]. Open-set supervised AD explicitly separates known and unknown regions\nduring training [12]. Boundary-guided contrastive learning exploits explicit boundaries to refine localization [44].\nDeep SAD optimizes a hypersphere-based objective with\nlimited labels [30]. DevNet employs a deviation-based loss\nto model anomaly intensity [28].\nLimitations. Supervised pipelines tend to overfit the\nanomaly modes observed during training and degrade on\nrare or unseen anomalies. Pixel-level labels are expensive.\nSynthetic anomalies reduce annotation cost but introduce\nartifacts and domain gaps that bias the decision boundary.\n\nviations. Supervised methods improve anomaly discrimination, yet they rely on limited anomalous samples observed during training and therefore tend to overfit seen\nanomaly patterns. Existing transfer learning methods are\nalso difficult to adapt to anomaly detection scenarios, where\ntarget-domain supervision is unavailable and cross-domain\nheterogeneity further increases the difficulty of preserving\nanomaly-sensitive information.\n\n3. Method\nOverview. This section is organized in three parts. First,\na compact but coherent theory layer explains why a spatio–temporal vector field built from diffusion residuals separates anomaly signal from non–anomalous variability and\nsupports cross–domain reuse. Second, an architecture layer\npresents the end–to–end data flow of REF+CFA: from the\ninput image to field construction, statistics, alignment objectives, and decision functions. Third, a brief summary\nincludes complexity and deployment notes.\n\n2.3. Transfer learning for anomaly detection\nStudies on transfer learning for anomaly detection are still\nlimited. Methods adaptable to cross-domain anomaly detection are summarized into two main categories.\nDomain adaptation. These methods use target-domain\ninformation to align shared structure across domains.\nIWAN estimates instance-level importance to focus alignment on transferable samples [53]. PADA introduces classlevel weights to suppress source-only categories [5]. ETN\nmeasures example transferability to filter harmful supervision [6]. OSBP adds an explicit unknown class to enable\nopen-set separation [31]. Universal DA discovers shared\nand unknown classes for a unified treatment [46].\nDomain Generalization. In this paper, this category\nrefers to methods that transfer a source-trained hypothesis without requiring target-domain labels. SHOT transfers the classifier and maximizes information on target features [23]. TENT minimizes prediction entropy mainly via\nbatch-normalization updates [35]. EATA regularizes testtime updates to prevent catastrophic forgetting [27]. TestTime Training adds a self-supervised auxiliary task to improve robustness under shift [34]. AdaBN adapts batchnormalization statistics to the target domain [22].\nLimitations. Large domain gaps, especially when normal\nmanifolds differ, can suppress anomaly-specific cues after\nalignment. Partial and open-set adaptation assume stable\nlabel overlap that often does not hold for anomaly detection. Source-free and test-time adaptation reduce reliance\non source data but may adapt to spurious correlations and\ndo not explicitly preserve anomaly-sensitive directions.\n\n3.1. Part I: Theory\nSetup and symbols. An image is x ∈ RH×W ×C . The\npixel lattice is Ω with locations u ∈ Ω. Diffusion time is\nt ∈ {1, 2, . . . , T } with T the data time. The forward perturbation is yt = αt x + σt ε with αt2 + σt2 = 1 and ε ∼ N (0, I).\nA score Sθ (y, t) ≈ ∇y log pt (y) (time–t density pt ) induces\nthe same–time Tweedie map Pt (y) = y + σt2 Sθ (y, t) and\nthe probability–flow ODE ż = g(t)Sθ (z, t) with g(t) &gt; 0,\nwhose solution from t to T is Φt→T (y). For a patch\nP ⊂ Ω (center u), define\nP patch–means of a vector field Xt\nby X̄t (P ) = |P |−1 v∈P Xt (v) and time differences by\n∆t X̄t (P ) = X̄t+1 (P ) − X̄P\nt (P ). For any per-pixel scalar\nqt (u), write qt (P ) = |P |−1 v∈P qt (v). Time weights are\nPT\nwt ≥ 0 with t=1 wt = 1, and ϵrid &gt; 0 (used in denominators below) is a small ridge constant distinct from the\nforward noise ε. Norm ∥ · ∥2 and inner product ⟨·, ·⟩ are\nEuclidean. Indices respect 1, 2, . . . , t, t+1, . . . , T .\nComplete assumptions and analysis appear in the supplementary material (assumptions in Supp. S.1; main results in\nSupp. S.2–S.7). The following synopsis records only the\noperational consequences needed in practice:\n1) Residual–distribution coupling. Model pt = (1 −\nπ)pt,N + πpt,A with responsibility γA and scores sN =\n∇ log pt,N , sA = ∇ log pt,A , ∆s = sA − sN . Define the\nreference direction vt (u) = Sθ (Pt (yt ), t)(u) and the prov. Introduce the residual primitives\njection Πv [w] = ⟨w,v⟩\n∥v∥22\nat pixel (u, t):\n\nSummary. Unsupervised methods can model normality,\nbut they do not explicitly constrain anomalous samples to\nstay far from normal patterns, making it difficult to distinguish benign perturbations from subtle anomalous de-\n\n35619\n\nRt (u) = Sθ (yt , t)(u) − Sθ (Pt (yt ), t)(u),\n\n(1)\n\nMt (u) = Sθ (yt , t)(u) − Πvt (u) [Sθ (yt , t)(u)],\n\n(2)\n\nQt (u) = Φt→T (yt )(u) − Φt→T (Pt (yt ))(u).\n\n(3)\n\n\fFigure 2. REF+CFA pipeline. Left (source, supervised): a Residual–Evolution Field is built per patch across diffusion time using three\nvectors—amplitude residual R, directional offset M , and path-integrated drift Q. A field transformer yields time attention and a compact 7D REF signature summarizing energy and non-stationarity, where normal areas are more stationary/low-energy and anomalous areas more\npersistent/non-stationary. Right (target, unsupervised): the same REF is computed and aligned to the source field space via Cross-domain\nField Alignment—temporal alignment, directional subspace alignment, and second-order feature alignment—so that REF response patterns\nmatch across domains. This cross-domain consistency is the basis for reusing the source-trained REF without target labels.\n\ndynamics.\nP Let the projection displacement be Dt (P ) =\n|P |−1 u∈P ∥yt (u) − Pt (yt )(u)∥2 . Under local strong\nconvexity of the normal log–density along normals and a\nstable reverse integrator, there exist factors κt , κ′t ∈ (0, 1)\nand remainders Bt , Bt′ ≥ 0 (collecting discretization and\nscore–approximation terms) such that\n\nThen (Supp. S.2) the following couplings hold: (i) Amplitude–geometry: ∥Rt (u)∥ ≥ µt ∥yt (u)−Pt (yt )(u)∥2 −δt ,\nso ER lower–bounds off–manifold discrepancy (curvature\nµt &gt; 0, approximation δt ); (ii) Directional: letting ∆s⊥\nbe the component of ∆s orthogonal to vt , E∥M̄t (P )∥2 ≥\nc1 E γA ∥∆s⊥ ∥ − c2 E∥R̄t (P )∥2 − c3 δt ; (iii) Accumulation:\n∂t Qt = g(t)R\n∥ζt ∥P≤ c4 δt , hence\nP\nPt + ζt with\n2\n2\n∥\nQ̄\n(P\n)∥\n≥\nc\n∥\nR̄\n(P\n)∥\n−\nc6 t δt2 ; (iv) Stat\n5\nt\n2\n2\nt\nt\ntionarity break: temporal variation of γA ∆s induces a\nlower bound on NSR (and NSM ). A multi–view statistic\nZ = [ER , EM , EQ , NSR , NSM , NSQ , DV]⊤ can improves\nSNR over any single component (Supp. S.2, S.6).\n2) REF field and stationarity statistics.\nDefine the Residual–Evolution Field F(u, t)\n=\n(Rt (u), Mt (u), Qt (u)). On a patch P , use time–weighted\nenergies and stationarity indices\nT\nX\n\n∥X̄t (P )∥22 wt ,\n\n(4)\n\n2\nt=1 ∥X̄t+1 (P ) − X̄t (P )∥2 wt\n,\nPT\n2\nt=1 ∥X̄t (P )∥2 wt + ϵrid\n\n(5)\n\nEX (P ) =\nPT −1\n\nX ∈ {R, M, Q}, and the directional variability DV(P ) =\nPT −1 ∥M̄t+1 (P )−M̄t (P )∥22\nwt . Normal regions tend to ext=1\n∥M̄t (P )∥22 +ϵrid\nhibit small EX and small NSX ; anomalous regions tend to\nsustain energy and break stationarity. (Field definition and\ntest: Supp. S.3; couplings supporting them: Supp. S.2.)\n3) Contraction and non-accumulation under normal\n\n(6)\n\nE∥R̄t+1 (P )∥22 ≤ κ′t E∥R̄t (P )∥22 + Bt′ .\n\n(7)\n\nPT\n2\nConsequently\nt=1 E∥R̄t (P )∥2 is bounded, and discrete stationarity indices are uniformly small (continuous/discrete derivations and Grönwall bounds in\nSupp. S.4 and S.6). This formalizes contraction and\nnon-accumulation of non-anomalous residuals under the\nlearned normal dynamics.\n4) Anomaly-aligned persistence and stationarity\nbreak. Under the mixture model above, the directional\nlower bound and the path–amplitude relation imply that\nanomaly–induced residuals can persist and accumulate into\nnon-vanishing drift:\n\nt=1\n\nNSX (P ) =\n\nEDt+1 (P ) ≤ κt EDt (P ) + Bt ,\n\nE∥M̄t (P )∥2 ≥ c1 E γA ∥∆s⊥ ∥ − c2 E∥R̄t (P )∥2 − c3 δt ,\nX\nX\nX\n∥Q̄t (P )∥22 ≥ c5\n∥R̄t (P )∥22 − c6\nδt2 .\n(8)\nt\n\nt\n\nt\n\nTemporal variability of γA ∆s further forces a stationarity\nbreak in Rt and Mt (Supp. S.5).\n5) Field alignment for cross-domain reuse and risk\nbound. Let W1 be the 1-Wasserstein distance and “#”\n\n35620\n\n\fthe pushforward of measures. For\n\u0001 the per-time REF operator\nF\n,\nW\nF\n#P\n,\nF\n#P\n≤ LF ,t W1 (PS , PT ),\nt\n1\nt\nS\nt\nT\nP\nw\nL\n&lt;\n1\nat\ninformative\ntimes,\nso REF contracts\nt\nF\n,t\nt\ncross-domain discrepancy in field space (Supp. S.7). CFA\nthen aligns time (monotone reparameterization), second order (whiten–recolor), and direction (orthogonal Procrustes),\nand yields a field–space transfer bound:\n\u0001\nεT (h ◦ Ψ) ≤ εS (h ◦ Ψ) + dH∆H Ψ#PS , Ψ#PT + λ⋆ ,\n(9)\nwith Ψ = ΦCFA ◦ΦREF the aligned field mapping, h a detection head, dH∆H the H∆H divergence, and λ⋆ the joint\nerror of the ideal hypothesis. The divergence term is explicitly shrunk by the REF contraction and the CFA terms\n(Supp. S.7). Thus the anomaly response pattern in field\nspace becomes isomorphic across domains, enabling reuse\non unlabeled targets.\n\n3.2. Part II: Architecture\nSetting. A transfer setup is considered with a labeled\nS\nsource domain DS = {(xSi , yiS )}N\ni=1 and an unlabeled tarT NT\nget domain DT = {xj }j=1 , where images x ∈ RH×W ×C .\nBoth domains are mixed (normal and anomalous samples\nco-exist). Labels on DS may be image-level yiimg ∈ {0, 1}\nor patch-level y(P ) ∈ {0, 1}; when onlyQimage labels are\navailable, a MIL aggregator ŷ img = 1 − P (1 − ŷ(P )) is\nused. The spatial lattice is Ω = {1, . . . , H} × {1, . . . , W };\na patch is P ⊂ Ω with center u. Time indices are\nt ∈ {1, 2, . . . , T } with T the data time. All λ• ≥ 0\n(e.g., λns , λtv , λstat , λsp , λcor , λsub ) and η ≥ 0 are scalar\nhyper-parameters.\nAs shown in Figure 2, the method has two components:\n(i) REF construction per domain, and (ii) CFA alignment\nto transfer a source-trained detector to DT without labels.\nA. Source: supervised field detector.\n(1) Score and projection. Train a diffusion score net(S)\nwork SθS (y, t) ≈ ∇y log pt (y) on DS using denoising\nscore matching. Noisy states follow ytS = αt xS + σt ε\nwith schedule αt2 + σt2 = 1 and ε ∼ N (0, I) (forward\nnoise). The same-time Tweedie projection is Pt (y) =\ny + σt2 SθS (y, t). The reverse (probability–flow) dynamics\nare ż = g(t) SθS (z, t) with g(t) &gt; 0; Φt→T (y) denotes the\nsolution at time T for z(t) = y.\n(2) REF per patch. For each P ⊂ Ω, define field components at pixel u and time t (source domain):\n\u0001\nRt (u) = SθS (ytS , t)(u) − SθS Pt (ytS ), t (u),\n(10)\n\u0002\n\u0003\nMt (u) = SθS (ytS , t)(u) − Πvt (u) SθS (ytS , t)(u) , (11)\n\u0001\nvt (u) = SθS Pt (ytS ), t (u),\n(12)\n\u0001\nS\nS\nQt (u) = Φt→T (yt )(u) − Φt→T Pt (yt ) (u),\n(13)\n\nP\nPatch averages are X̄t (P ) = |P |−1 u∈P Xt (u) for X ∈\n{R, M, Q}; the operator vec(·) flattens tensors to vectors.\n(3) Field transformer and adaptive time. Form the\nsequence {vec(R̄t (P ), M̄t (P ), Q̄t (P ))}Tt=1 with temporal\npositional encodings and feed it to a lightweight Field\nTransformer gϕ (a generic sequence model). Outputs\nare\nP (i) time attention αt (P ) = softmax(logitst ) with\nt αt (P ) = 1, and (ii) a patch embedding h(P ). Using\nαt (P ), define adaptive statistics for X ∈ {R, M, Q}:\natt\nEX\n(P ) =\n\nT\nX\n\n2\n\nαt (P ) X̄t (P ) 2 ,\n\n(14)\n\nt=1\n2\n\nPT −1\n\nᾱt,t+1 (P ) X̄t+1 (P ) − X̄t (P ) 2\n,\nPT\n2\nt=1 αt (P ) X̄t (P ) 2 + εrid\n(15)\n\u0001\nwhere ᾱt,t+1 (P ) = 21 αt (P ) + αt+1 (P ) and εrid &gt; 0 is\na small ridge constant in denominators (distinct from the\nGaussian noise ε).\n(4) Patch predictor and supervision on DS . A head fψ\nmaps the concatenation:\nNSatt\nX (P ) =\n\nt=1\n\natt\natt\natt\natt\natt\n[h(P ); ER\n, EM\n, EQ\n, NSatt\nR , NSM , NSQ , DV(P )]\n\n7→ ŷ(P ) ∈ [0, 1],\n\n(16)\n\nwhere the directional variability is\nDV(P ) =\n\n2\n\nT\n−1\nX\n\nM̄t+1 (P ) − M̄t (P ) 2\n\nt=1\n\nM̄t (P ) 2 + εrid\n\n2\n\nαt (P ).\n\n(17)\n\nBinary cross-entropy (BCE) is used for patch labels. With\nonly imageQlabels y img ∈ {0, 1}, the MIL aggregator\nŷ img = 1− P (1−ŷ(P )) is trained with BCE(ŷ img , y img );\nduring training, top-k patches by ŷ(P ) may be sampled for\nstability (k ∈ N, fixed across images).\n(5) Stationarity regularization and spatial prior. For labeled normal patches, a stationarity/energy regularizer enforces contraction/non-accumulation:\nh\nX\n\u0001i\natt\nLstat = EP ∈normal\nEX\n(P ) + λns NSatt\n(P\n)\n.\nX\nX∈{R,M,Q}\n\n(18)\nA weak spatial prior promotes blockwise coherence in the\npixel map A(u) obtained from patches (defined as the average of scores over all patches covering u):\nX\nLsp = λtv\nwuv |A(u) − A(v)|,\n(19)\n(u,v)∈N\n\nwhere N is a fixed 4- or 8-neighborhood on Ω, and wuv ≥ 0\nare edge weights derived from image/field gradients.\n(6) Source objective.\n\nv is the orthogonal projection onto v.\nwhere Πv [w] = ⟨w,v⟩\n∥v∥2\n\nLS = Lsup + λstat Lstat + λsp Lsp ,\n\n2\n\n35621\n\n(20)\n\n\fwith Lsup the supervised loss on patch or image labels.\nThe detector (gϕ , fψ ), the time attention, and the spatial prior are supervised on DS . For feature calibration\nused later, estimate the mean µ0 and covariance Σ0 of\natt\natt\natt\natt\natt\n⊤\nZ(P ) = [ER\n, EM\n, EQ\n, NSatt\nusing\nR , NSM , NSQ , DV]\nnormal source patches; denote by ΣZS the covariance of\nZ over DS .\nB. Target: unsupervised cross domain reuse.\n(1) Target score and REF. Train a separate\n(T )\nscore SθT (y, t) ≈ ∇y log pt (y) on the unlabeled\nmixture DT (same denoising objective).\nBuild\nREF on DT exactly as in the source, obtaining {R̄t (P ), M̄t (P ), Q̄t (P )} and feature vectors:\natt\natt\natt\natt\natt\n⊤\nZT (P )\n=\n[ER\n, EM\n, EQ\n, NSatt\nR , NSM , NSQ , DV] ,\ncomputed with SθT .\n(2) Unsupervised CFA losses. CFA aligns target REF\nfeatures to the source field space without target labels.\nTime alignment learns a monotone reparameterization\nψ : {1, . . . , T } → {1, . . . , T } minimizing\nLtime =\n\nT\nX\n\n2\n\nEP ∼DT R̄t − EP ∼DS R̄ψ(t)\n\nt=1\n\n,\n2\n\n(21)\n\nand applies Xt 7→ Xψ(t) to all time-indexed target features.\nHere EP ∼DT averages over patches from target domain.\nSecond order alignment whitens/recolors target features\n1/2 −1/2\n(ZT − mT ), where mT = EZT and\nvia ZT′ = ΣS ΣT\nΣT = Cov(ZT ) are the target mean/covariance, and ΣS =\nCov(Z) is the source covariance of the same feature Z. A\nCORAL loss matches second moments and means:\n2\n\n2\n\nLcor = ΣZT′ − ΣZS F + η EZT′ − EZS 2 ,\n\n(22)\n\nwith ∥ · ∥F the Frobenius norm.\nDirectional alignment matches principal subspaces of\nstacked {M̄t }t . Let UT , US ∈ Rd×r contain the top-r left\nsingular vectors of the stacked sequences; an orthogonal\nProcrustes rotation R ∈ Rr×r (R⊤ R = I) minimizes\nLsub = ∥UT R − US ∥2F .\n\n(23)\n\n3.3. Part III: Summary and complexity\nSummary. REF casts diffusion–based anomaly detection\nas a dynamical test of residual stationarity and persistence\nin a spatio–temporal vector field, allowing anomaly–related\nsignal to be separated from stochastic and benign variation. Patch–time statistics over the field provide a practical anomaly score that respects the regional nature of real\ndefects. CFA then aligns the field across domains in time,\nscale, and orientation, so that a detector calibrated on a labeled source can be reused on an unlabeled target.\nComplexity. Let T be the number of diffusion steps, P\nthe number of patches per image, Df the Field Transformer\ntoken dimension, cS the cost of one score evaluation, and\nK the average number of reverse–integration steps. For\neach image, REF extraction requires O(P T cS ) to compute (R, M ) and up to O(P T K) for Q if full reverse\ntrajectories are used; in practice, subsampling informative\ntimes keeps K ≪ T . A lightweight L-layer transformer\nwith standard self-attention incurs O(P L (T 2 Df + T Df2 ))\ntime and O(P T Df ) memory, which can be reduced to\nO(P L T Df2 ) with linear–time attention variants. CFA operates on low-dimensional REF statistics Z (e.g., m =\ndim(Z) ≈ 7) and low-rank subspaces, so its cost is dominated by O(nm2 ) for covariance estimation with n patches\nand O(m3 + dr2 ) for whitening/recoloring and Procrustes\nalignment (ambient dimension d, subspace rank r). Overall, the added REF + CFA overhead is modest compared to\ntraining the diffusion score networks, while remaining compatible with standard diffusion runtime budgets.\n\n4. Experiments\n4.1. Experiments Setup\n\n(3) Target objective and reuse.\nLT = Ltime + λcor Lcor + λsub Lsub .\n\nT1 Train SθT on DT (mixture). Stage T2 Build REF on\nDT , optimize LT (unsupervised CFA). Inference Apply\nCFA to target features and run (gϕ , fψ ) to obtain A(u) and\nimage-level scores (e.g., mean over top-p% pixels of A for\na fixed p ∈ (0, 100]).\n\n(24)\n\nAfter optimizing CFA on DT , apply the learned ψ, the\nwhitening/recoloring map, and the Procrustes rotation to\ntarget features, then run (gϕ , fψ ) to produce patch probabilities ŷ(P ) and the pixel map A(u). No target labels are\nrequired. The risk bound supporting this reuse appears in\nSupp. Sec. S.7.\nC. End-to-end training protocol. Stage S1 Train SθS on\nDS (mixture). Stage S2 Build REF on DS , train (gϕ , fψ )\nwith LS (supervised), and estimate (µ0 , Σ0 ) and ΣZS using normal source patches (means/covariances of Z). Stage\n\n35622\n\nDatasets and Source–Target Protocol. We evaluate on\nthree benchmarks with fixed source–target pairings. For\nMVTec [4], the bottle category is used as the source domain, and cable, capsule, and hazelnut are used as target\ndomains. In the VisA [59] setup, candle serves as the source\ndomain, with macaroni1, macaroni2, and pcb2 as target domains. For DAGM [41], Class 2 is chosen as the source domain due to its strong in-domain performance, and Class 1,\nClass 3, and Class 6 are used as target domains to construct\nmore challenging transfer scenarios. In all cases, the source\ndomain is fully labeled, whereas the target-domain training\nset is entirely unlabeled and anomaly-contaminated.\n\n\fTable 1. AUROC (%) comparison on 9 benchmark datasets. Best per column in bold, second best is underlined.\nMethods\n\nSource Domain\n\nMVtec (Bottle)\n\nVisA (candle)\n\nDAGM (Class 2)\n\nAve.\n\nTarget Domain\n\nCable\n\nCapsule\n\nHazelnut\n\nMacaroni1\n\nMacaroni2\n\nPcb2\n\nClass 1\n\nClass 3\n\nClass 6\n\nUnsupervised\nMethods\n\nGeneral-AD\nGLASS\nDDPM\nDDAD\n\n76.70\n74.80\n69.71\n73.91\n\n82.50\n76.50\n69.34\n75.60\n\n81.40\n77.60\n71.85\n76.47\n\n77.80\n94.94\n83.95\n91.69\n\n66.00\n78.37\n76.21\n89.10\n\n76.40\n84.31\n73.08\n77.04\n\n68.30\n80.19\n80.11\n86.00\n\n74.30\n79.48\n75.77\n87.81\n\n95.30\n70.66\n77.43\n82.27\n\n77.63\n79.65\n75.27\n82.21\n\nDomain\nAdaptation\n\nJWO\nPWAN\nMLWE\nCMKD\nUniNet\nANC\nFFTAT\n\n71.40\n61.85\n50.66\n70.89\n56.55\n54.78\n71.41\n\n74.93\n62.35\n73.95\n62.84\n48.02\n59.17\n80.82\n\n89.65\n74.71\n84.74\n79.02\n51.13\n40.05\n78.14\n\n69.55\n57.94\n76.39\n74.79\n60.53\n57.53\n78.53\n\n69.00\n62.15\n74.56\n62.49\n58.41\n57.50\n87.92\n\n68.80\n69.79\n85.93\n84.51\n82.41\n53.47\n84.44\n\n55.71\n50.21\n49.31\n54.93\n48.64\n56.89\n58.38\n\n64.53\n59.94\n47.63\n78.55\n56.08\n57.63\n80.59\n\n81.45\n56.69\n50.62\n94.51\n59.08\n51.96\n86.04\n\n71.67\n61.74\n65.98\n73.61\n57.87\n54.33\n78.47\n\nDomain\nGeneralization\n\nGGA\nBDC\nDDDG\nPMGDG\nDKGPL\n\n64.18\n48.91\n65.74\n55.45\n72.63\n\n50.92\n50.00\n63.40\n55.04\n67.57\n\n60.26\n53.46\n80.34\n51.72\n87.58\n\n64.68\n44.17\n70.12\n70.43\n74.12\n\n62.14\n48.19\n65.50\n73.12\n67.45\n\n65.25\n42.50\n79.38\n57.96\n56.45\n\n58.20\n51.53\n57.65\n51.53\n50.15\n\n52.89\n56.81\n56.73\n44.72\n60.63\n\n74.88\n62.30\n63.53\n71.44\n58.72\n\n61.49\n50.87\n66.93\n59.05\n66.14\n\nOurs\n\nREF+CFA\nIncrease\n\n81.72\n+5.02\n\n85.13\n+2.63\n\n91.66\n+2.01\n\n100.00\n+5.06\n\n99.50\n+10.40\n\n98.95\n+13.02\n\n100.00\n+14.00\n\n100.00\n+12.19\n\n100.00\n+4.70\n\n95.22\n+13.01\n\nBaseline. To ensure a thorough comparison with current state-of-the-art approaches, three baseline categories were evaluated. The unsupervised group comprised General-AD [33], GLASS [7], DDPM [18] and\nDDAD [26]. The domain adaptation group consisted of FFTAT [48], CMKD [58], UniNet [39], ANC [50], JWO [8],\nPWAN [37] and MLWE [40]. The domain generalisation group included BDC [52], DDDG [51], GGA [3],\nPMGDG [2] and DKGPL [38].\nEvaluation Metrics. We assess the performance using\nthe following three standard metrics: AUROC, AUPRC,\nand Rec@K. AUROC (area under the ROC) quantifies the\nmodel’s ability to discriminate between normal and anomalous samples and serves as a stable, threshold-agnostic indicator of performance. AUPRC (area under the PRC)\nsummarizes the precision-recall trade-off, which is particularly informative given the high class imbalance inherent\nin anomaly detection tasks. Rec@K (recall at rank K)\nmeasures the proportion of true anomalies retrieved among\nthe top-K ranked instances, where K equals the number\nof anomalous samples in the test set. Owing to space constraints, AUROC is adopted as the primary metric and its\nresults are reported in the main text.\nMore results about AUPRC, Rec@K are given in the supplementary material.\n\non all target domains, reaching an average AUROC of\n95.22%, which exceeds the best average baseline (DDAD)\nby more than 13 percentage points (82.21%). On the\nthree MVTec transfers (Bottle→Cable/Capsule/Hazelnut),\nREF+CFA improves over the best competing method by approximately 2–5 points, indicating a consistent gain even on\nrelatively saturated benchmarks. On VisA, REF+CFA attains nearly perfect detection, achieving 100.00/99.50/98.95\non Macaroni1/Macaroni2/Pcb2, respectively, with gains of\n+5.06/+10.40/+13.02 points over the best competing methods. On DAGM, REF+CFA reaches 100.00% AUROC on\nClass 1, Class 3, and Class 6, respectively, while outperforming the best prior methods by +14.00/+12.19/+4.70\npoints. These results demonstrate that, across all three\nbenchmark families, the proposed transfer-learning framework substantially outperforms both unsupervised anomaly\ndetectors and state-of-the-art domain adaptation and domain generalization baselines.\n\n4.3. Ablation Study\n\n4.2. Comparison with SOTA\n\nTable 2 reports ablations on three VisA transfers (macaroni1, macaroni2, pcb2), and Fig. 3 visualizes the crossdomain decoupling behaviour. The study examines the contributions of the REF, CFA, and REF-enabled decoupling of\nresidual signals on target domains.\nEffect of REF. Removing any REF component (R: gradient residual, M: directional offset, Q: path-integrated\ndrift) degrades performance, showing that the three views\nare complementary. Dropping the directional term M\ncauses the largest decline (e.g., −13.28 AUROC on macaroni1), indicating the importance of orientation informa-\n\nTable 1 reports AUROC scores on nine source–target transfers across MVTec, VisA, and DAGM. The proposed\nREF+CFA consistently achieves the best performance\n\n35623\n\n\fTable 2. The results (AUROC, %) of the ablation study on different modules. The highest score is highlighted in bold.\nMacaroni1\n\nModel\n\nMacaroni2\n\nPcb2\n\nAverage\n\nAUROC\n\nAUPRC\n\nRec@K\n\nAUROC\n\nAUPRC\n\nRec@K\n\nAUROC\n\nAUPRC\n\nRec@K\n\nAUROC\n\nAUPRC\n\nRec@K\n\nw/o R\nw/o M\nw/o Q\nw/o REF\n\n90.15\n86.72\n87.03\n84.11\n\n88.62\n85.11\n86.40\n82.30\n\n91.03\n87.20\n88.15\n85.00\n\n89.44\n85.79\n86.13\n83.19\n\n87.12\n84.95\n85.02\n81.95\n\n85.33\n83.93\n84.08\n82.50\n\n90.11\n87.46\n88.03\n85.02\n\n88.60\n86.72\n87.01\n83.12\n\n87.15\n85.14\n86.30\n84.00\n\n89.90\n86.66\n87.06\n84.11\n\n88.11\n85.59\n86.14\n82.46\n\n87.84\n85.42\n86.18\n83.83\n\nw/o TA\nw/o DSA\nw/o SFA\nw/o CFA\n\n96.03\n88.19\n92.44\n81.53\n\n95.14\n87.60\n90.81\n80.61\n\n96.33\n89.04\n93.10\n82.86\n\n95.10\n87.90\n91.60\n80.23\n\n94.01\n86.14\n90.11\n80.39\n\n89.02\n85.10\n91.02\n80.98\n\n96.55\n89.10\n93.15\n82.52\n\n93.88\n88.02\n91.04\n81.66\n\n90.89\n87.55\n91.89\n81.45\n\n95.89\n88.40\n92.40\n81.43\n\n94.34\n87.25\n90.65\n80.89\n\n92.08\n87.23\n92.00\n81.76\n\nREF+CFA\n\n100.00\n\n100.00\n\n100.00\n\n99.50\n\n97.00\n\n92.00\n\n98.95\n\n95.94\n\n93.00\n\n99.48\n\n97.65\n\n95.00\n\ngions contract toward stable evolution, yielding a clearer\nseparation between the two.\n\n4.4. Discussion and Future Work\n\nFigure 3. REF-enabled decoupling on target domains.\n\nThe proposed framework demonstrates strong performance\nand robust generalization across diverse source–target pairs.\nBy explicitly decomposing anomaly-aligned residual evolution (REF) and aligning spatio-temporal field representations across domains (CFA), the method maintains high accuracy even under substantial distribution shifts, enabling\neffective cross-domain reuse without target annotations.\nDespite these advantages, the primary limitation lies in\ncomputational cost. REF is built on the reverse dynamics of diffusion models, requiring score-based training in\nboth the source and target domains. This increases training time and restricts scalability to settings where multiple domain pairs must be supported. A promising direction for future work is to reduce the time complexity of\nREF and CFA. Potential avenues include distilling the diffusion backbone into lightweight field predictors, exploring\nsingle-step residual evolution models, or designing amortized cross-domain alignment modules that operate without\nfull diffusion training. Such developments could retain the\nbenefits of field-based anomaly analysis while significantly\nlowering the computational burden.\n\ntion for separating anomaly-aligned signal from stochastic\nnoise. Training directly on raw diffusion residuals (w/o\nREF) further reduces AUROC to 84.11/83.19/85.02, confirming that REF is crucial for stabilizing the anomaly signal under cross-domain transfer.\nEffect of CFA. For cross-domain reuse, each CFA component makes a complementary contribution. Removing\ntemporal alignment (w/o TA) yields moderate performance\nloss but remains significantly better than w/o REF, showing its importance in calibrating temporal drift. Directional\nsubspace alignment (w/o DSA) is the most sensitive component to remove, resulting in large drops across datasets (e.g.,\nAUROC 88.19 on macaroni1), consistent with the role of\norientation alignment in preserving anomaly directionality.\nSecond-order feature alignment (w/o SFA) also provides\nclear gains, especially on pcb2. When the full CFA module is disabled (w/o CFA), cross-domain transfer collapses\n(AUROC 80.23–82.52), demonstrating that alignment in\ntemporal, directional, and second-order feature spaces is indispensable for reliable target-domain detection.\nResidual Decoupling after Field Alignment. Figure 3 qualitatively illustrates REF’s decoupling effect on\ntarget domains. Before processing, residual trajectories\nfrom normal and anomalous regions are closely overlapped\nand largely stochastic. After applying REF, the anomalyaligned trend becomes more pronounced while normal re-\n\n5. Conclusion\n\n35624\n\nThis work presents a diffusion-residual framework for\ncross-domain label-free anomaly detection. The proposed\nREF captures persistent anomaly-related signals from residual evolution, while CFA aligns the resulting field space to\nenable transfer from labeled source domains to unlabeled\ntarget domains. In this way, anomaly-sensitive information\ncan be separated from stochastic and intra-normal variability, enabling reliable cross-domain detection under substantial distribution shifts. Extensive experiments demonstrate\nthat REF+CFA achieves state-of-the-art performance.\n\n\fAcknowledgments\nThis work was supported by the Key R&amp;D Program of Zhejiang (2025C02071) and the project\nEnergy Data Real-Time Acquisition (Project No.\n067).\n\ndetection. In Proceedings of the IEEE/CVF conference on\ncomputer vision and pattern recognition, pages 7388–7398,\n2022. 3\n[13] Dong Gong, Lingqiao Liu, Vuong Le, Budhaditya Saha,\nMoussa Reda Mansour, Svetha Venkatesh, and Anton\nvan den Hengel. Memorizing normality to detect anomaly:\nMemory-augmented deep autoencoder for unsupervised\nanomaly detection. In Proceedings of the IEEE/CVF international conference on computer vision, pages 1705–1714,\n2019. 2\n[14] Mark S. Graham, Walter H. L. Pinaya, Petru-Daniel Tudosiu,\nParashkev Nachev, Sebastien Ourselin, and M. Jorge Cardoso. Denoising diffusion models for out-of-distribution detection. In 2023 IEEE/CVF Conference on Computer Vision\nand Pattern Recognition Workshops (CVPRW), pages 2948–\n2957, 2023. 2\n[15] Denis Gudovskiy, Shun Ishizaka, and Kazuki Kozuka.\nCflow-ad: Real-time unsupervised anomaly detection with\nlocalization via conditional normalizing flows. In Proceedings of the IEEE/CVF winter conference on applications of\ncomputer vision, pages 98–107, 2022. 2\n[16] Haoyang He, Jiangning Zhang, Hongxu Chen, Xuhai Chen,\nZhishan Li, Xu Chen, Yabiao Wang, Chengjie Wang, and Lei\nXie. A diffusion-based framework for multi-class anomaly\ndetection. In Proceedings of the Thirty-Eighth AAAI Conference on Artificial Intelligence and Thirty-Sixth Conference on Innovative Applications of Artificial Intelligence and\nFourteenth Symposium on Educational Advances in Artificial\nIntelligence. AAAI Press, 2024. 2\n[17] Dan Hendrycks, Mantas Mazeika, and Thomas Dietterich.\nDeep anomaly detection with outlier exposure. In International Conference on Learning Representations, 2019. 3\n[18] Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. Advances in neural information\nprocessing systems, 33:6840–6851, 2020. 7\n[19] Jongheon Jeong, Yang Zou, Taewan Kim, Dongqing Zhang,\nAvinash Ravichandran, and Onkar Dabeer. Winclip: Zero/few-shot anomaly classification and segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision\nand Pattern Recognition, pages 19606–19616, 2023. 2\n[20] Chun-Liang Li, Kihyuk Sohn, Jinsung Yoon, and Tomas\nPfister. Cutpaste: Self-supervised learning for anomaly detection and localization. In Proceedings of the IEEE/CVF\nconference on computer vision and pattern recognition,\npages 9664–9674, 2021. 2\n[21] Xiaofan Li, Zhizhong Zhang, Xin Tan, Chengwei Chen,\nYanyun Qu, Yuan Xie, and Lizhuang Ma. Promptad: Learning prompts with only normal samples for few-shot anomaly\ndetection. In Proceedings of the IEEE/CVF Conference on\nComputer Vision and Pattern Recognition, pages 16838–\n16848, 2024. 2\n[22] Yanghao Li, Naiyan Wang, Jianping Shi, Jiaying Liu, and\nXiaodi Hou. Revisiting batch normalization for practical domain adaptation. In 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 2426, 2017, Workshop Track Proceedings. OpenReview.net,\n2017. 3\n\nReferences\n[1] Samet Akcay, Amir Atapour-Abarghouei, and Toby P\nBreckon. Ganomaly: Semi-supervised anomaly detection\nvia adversarial training. In Asian conference on computer\nvision, pages 622–637. Springer, 2018. 2\n[2] Wen An, Zhixi Feng, and Shuyuan Yang. Progressive multiscale generator for domain generalization in hyperspectral\nimage classification with small sample. IEEE Transactions\non Circuits and Systems for Video Technology, pages 1–1,\n2026. 7\n[3] Aristotelis Ballas and Christos Diou. Gradient-guided annealing for domain generalization. In Proceedings of the\nComputer Vision and Pattern Recognition Conference, pages\n20558–20568, 2025. 7\n[4] Paul Bergmann, Michael Fauser, David Sattlegger, and\nCarsten Steger. Mvtec ad – a comprehensive real-world\ndataset for unsupervised anomaly detection. In Proceedings\nof the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2019. 6\n[5] Zhangjie Cao, Lijia Ma, Mingsheng Long, and Jianmin\nWang. Partial adversarial domain adaptation. In Proceedings of the European conference on computer vision (ECCV),\npages 135–150, 2018. 3\n[6] Zhangjie Cao, Kaichao You, Mingsheng Long, Jianmin\nWang, and Qiang Yang. Learning to transfer examples for\npartial domain adaptation. In Proceedings of the IEEE/CVF\nconference on computer vision and pattern recognition,\npages 2985–2994, 2019. 3\n[7] Qiyu Chen, Huiyuan Luo, Chengkan Lv, and Zhengtao\nZhang. A unified anomaly synthesis strategy with gradient ascent for industrial anomaly detection and localization.\nIn European Conference on Computer Vision, pages 37–54.\nSpringer, 2024. 7\n[8] Sentao Chen. Joint weight optimization for partial domain\nadaptation via kernel statistical distance estimation. Neural\nNetworks, 180:106739, 2024. 7\n[9] Niv Cohen and Yedid Hoshen. Sub-image anomaly detection with deep pyramid correspondences. arXiv preprint\narXiv:2005.02357, 2020. 2\n[10] Thomas Defard, Aleksandr Setkov, Angelique Loesch, and\nRomaric Audigier. Padim: a patch distribution modeling\nframework for anomaly detection and localization. In International conference on pattern recognition, pages 475–489.\nSpringer, 2021. 2\n[11] Hanqiu Deng and Xingyu Li. Anomaly detection via reverse\ndistillation from one-class embedding. In Proceedings of\nthe IEEE/CVF conference on computer vision and pattern\nrecognition, pages 9737–9746, 2022. 2\n[12] Choubo Ding, Guansong Pang, and Chunhua Shen. Catching\nboth gray and black swans: Open-set supervised anomaly\n\n35625\n\n\f[23] Jian Liang, Dapeng Hu, Yunbo Wang, Ran He, and Jiashi\nFeng. Source data-absent unsupervised domain adaptation\nthrough hypothesis transfer and labeling transfer. IEEE\nTransactions on Pattern Analysis and Machine Intelligence,\n44(11):8602–8617, 2022. 3\n[24] Zhenzhen Liu, Jin Peng Zhou, Yufan Wang, and Kilian Q\nWeinberger. Unsupervised out-of-distribution detection with\ndiffusion inpainting. In Proceedings of the 40th International Conference on Machine Learning, pages 22528–\n22538. PMLR, 2023. 2\n[25] Zhikang Liu, Yiming Zhou, Yuansheng Xu, and Zilei Wang.\nSimplenet: A simple network for image anomaly detection\nand localization. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages\n20402–20411, 2023. 3\n[26] Arian Mousakhan, Thomas Brox, and Jawad Tayyub.\nAnomaly detection with conditioned denoising diffusion\nmodels. In Pattern Recognition, pages 181–195, Cham,\n2025. Springer Nature Switzerland. 7\n[27] Shuaicheng Niu, Jiaxiang Wu, Yifan Zhang, Yaofo Chen,\nShijian Zheng, Peilin Zhao, and Mingkui Tan. Efficient\ntest-time model adaptation without forgetting. In International conference on machine learning, pages 16888–16905.\nPMLR, 2022. 3\n[28] Guansong Pang, Chunhua Shen, and Anton Van Den Hengel. Deep anomaly detection with deviation networks. In\nProceedings of the 25th ACM SIGKDD international conference on knowledge discovery &amp; data mining, pages 353–362,\n2019. 3\n[29] Karsten Roth, Latha Pemula, Joaquin Zepeda, Bernhard\nSchölkopf, Thomas Brox, and Peter Gehler. Towards total recall in industrial anomaly detection. In Proceedings\nof the IEEE/CVF conference on computer vision and pattern\nrecognition, pages 14318–14328, 2022. 2\n[30] Lukas Ruff, Robert A. Vandermeulen, Nico Görnitz, Alexander Binder, Emmanuel Müller, Klaus-Robert Müller, and\nMarius Kloft. Deep semi-supervised anomaly detection.\nIn International Conference on Learning Representations,\n2020. 3\n[31] Kuniaki Saito, Shohei Yamamoto, Yoshitaka Ushiku, and\nTatsuya Harada. Open set domain adaptation by backpropagation. In Proceedings of the European conference on computer vision (ECCV), pages 153–168, 2018. 3\n[32] Thomas Schlegl, Philipp Seeböck, Sebastian M Waldstein,\nGeorg Langs, and Ursula Schmidt-Erfurth. f-anogan: Fast\nunsupervised anomaly detection with generative adversarial\nnetworks. Medical image analysis, 54:30–44, 2019. 2\n[33] Luc PJ Sträter, Mohammadreza Salehi, Efstratios Gavves,\nCees GM Snoek, and Yuki M Asano. Generalad: Anomaly\ndetection across domains by attending to distorted features.\nIn European Conference on Computer Vision, pages 448–\n465. Springer, 2024. 7\n[34] Yu Sun, Xiaolong Wang, Zhuang Liu, John Miller, Alexei\nEfros, and Moritz Hardt. Test-time training with selfsupervision for generalization under distribution shifts. In\nInternational conference on machine learning, pages 9229–\n9248. PMLR, 2020. 3\n\n35626\n\n[35] Dequan Wang, Evan Shelhamer, Shaoteng Liu, Bruno Olshausen, and Trevor Darrell. Tent: Fully test-time adaptation\nby entropy minimization. In International Conference on\nLearning Representations, 2021. 3\n[36] Guodong Wang, Shumin Han, Errui Ding, and Di Huang.\nStudent-teacher feature pyramid matching for anomaly detection. Proceedings of the British Machine Vision Conference 2021, 2021. 2\n[37] Zi-Ming Wang, Nan Xue, Ling Lei, Rebecka Jörnsten, and\nGui-Song Xia. Partial distribution matching via partial\nwasserstein adversarial networks. IEEE Transactions on Pattern Analysis and Machine Intelligence, 47(9):7944–7959,\n2025. 7\n[38] Jiacheng Wei, Qibin Wang, Guowei Zhang, Hongbo Ma,\nand Yi Wang. Domain knowledge guided pseudo-label generation framework for semi-supervised domain generalization fault diagnosis. Advanced Engineering Informatics, 67:\n103540, 2025. 7\n[39] Shun Wei, Jielin Jiang, and Xiaolong Xu. Uninet: A contrastive learning-guided unified framework with feature selection for anomaly detection. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages\n9994–10003, 2025. 7\n[40] Lisheng Wen, Sentao Chen, Zijie Hong, and Lin Zheng.\nMaximum likelihood weight estimation for partial domain\nadaptation. Information Sciences, 676:120800, 2024. 7\n[41] Matthias Wieler, Tobias Hahn, and Fred A. Hamprecht.\nWeakly supervised learning for industrial optical inspection,\n2007. Dataset. 6\n[42] Julian Wyatt, Adam Leach, Sebastian M. Schmon, and\nChris G. Willcocks. Anoddpm: Anomaly detection with denoising diffusion probabilistic models using simplex noise.\nIn 2022 IEEE/CVF Conference on Computer Vision and\nPattern Recognition Workshops (CVPRW), pages 650–656,\n2022. 2\n[43] Haohao Xu, Shuchang Xu, and Wenzhen Yang. Unsupervised industrial anomaly detection with diffusion models.\nJournal of Visual Communication and Image Representation,\n97:103983, 2023. 2\n[44] Xincheng Yao, Ruoqi Li, Jing Zhang, Jun Sun, and\nChongyang Zhang. Explicit boundary guided semi-pushpull contrastive learning for supervised anomaly detection.\nIn Proceedings of the IEEE/CVF Conference on Computer\nVision and Pattern Recognition, pages 24490–24499, 2023.\n3\n[45] Jihun Yi and Sungroh Yoon. Patch svdd: Patch-level svdd\nfor anomaly detection and segmentation. In Proceedings of\nthe Asian conference on computer vision, 2020. 2\n[46] Kaichao You, Mingsheng Long, Zhangjie Cao, Jianmin\nWang, and Michael I Jordan. Universal domain adaptation.\nIn Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 2720–2729, 2019. 3\n[47] Jiawei Yu, Ye Zheng, Xiang Wang, Wei Li, Yushuang Wu,\nRui Zhao, and Liwei Wu. Fastflow: Unsupervised anomaly\ndetection and localization via 2d normalizing flows. arXiv\npreprint arXiv:2111.07677, 2021. 2\n[48] Xiaowei Yu, Zhe Huang, and Zao Zhang. Feature fusion\ntransferability aware transformer for unsupervised domain\n\n\fadaptation. In 2025 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pages 6752–6761,\n2025. 7\n[49] Vitjan Zavrtanik, Matej Kristan, and Danijel Skočaj. Draema discriminatively trained reconstruction embedding for surface anomaly detection. In Proceedings of the IEEE/CVF\ninternational conference on computer vision, pages 8330–\n8339, 2021. 2\n[50] Chi Zhang, Cheng Jingpu, Yanyu Xu, and Qianxiao Li.\nParameter-efficient fine-tuning with controls. In Forty-first\nInternational Conference on Machine Learning, 2024. 7\n[51] Guowei Zhang, Xianguang Kong, Hongbo Ma, Qibin Wang,\nJingli Du, and Jinrui Wang. Dual disentanglement domain\ngeneralization method for rotating machinery fault diagnosis. Mechanical Systems and Signal Processing, 228:112460,\n2025. 7\n[52] Guowei Zhang, Xianguang Kong, Qibin Wang, Jingli Du,\nand Hongbo Ma. Balancing discrepancy and consistency:\nAdversarial single domain generalization in fault diagnosis.\nIEEE Transactions on Industrial Informatics, 21(10):7923–\n7934, 2025. 7\n[53] Jing Zhang, Zewei Ding, Wanqing Li, and Philip Ogunbona. Importance weighted adversarial nets for partial domain adaptation. In Proceedings of the IEEE conference on\ncomputer vision and pattern recognition, pages 8156–8164,\n2018. 3\n[54] Xinyi Zhang, Naiqi Li, Jiawei Li, Tao Dai, Yong Jiang,\nand Shu-Tao Xia. Unsupervised surface anomaly detection\nwith diffusion probabilistic model. In Proceedings of the\nIEEE/CVF International Conference on Computer Vision,\npages 6782–6791, 2023. 2\n[55] Xuan Zhang, Shiyu Li, Xi Li, Ping Huang, Jiulong Shan,\nand Ting Chen. Destseg: Segmentation guided denoising\nstudent-teacher for anomaly detection. In Proceedings of\nthe IEEE/CVF conference on computer vision and pattern\nrecognition, pages 3914–3923, 2023. 2\n[56] Ximiao Zhang, Min Xu, and Xiuzhuang Zhou. Realnet: A\nfeature selection network with realistic synthetic anomaly for\nanomaly detection. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages\n16699–16708, 2024. 3\n[57] Qihang Zhou, Guansong Pang, Yu Tian, Shibo He, and Jiming Chen. AnomalyCLIP: Object-agnostic prompt learning\nfor zero-shot anomaly detection. In The Twelfth International Conference on Learning Representations, 2024. 2\n[58] Wenlve Zhou and Zhiheng Zhou. Unsupervised domain\nadaption harnessing vision-language pre-training. IEEE\nTransactions on Circuits and Systems for Video Technology,\n34(9):8201–8214, 2024. 7\n[59] Yang Zou, Jongheon Jeong, Latha Pemula, Dongqing Zhang,\nand Onkar Dabeer. Spot-the-difference self-supervised pretraining for anomaly detection and segmentation. In European conference on computer vision, pages 392–408.\nSpringer, 2022. 6\n\n35627\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"