"<!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>RcAE: Recursive Reconstruction Framework for Unsupervised Industrial\nAnomaly Detection\nRongcheng Wu2, 6† , Hao Zhu3† , Shiying Zhang1† , Mingzhe Wang1†∗ , Zhidong Li2 , Hui Li1 ,\nJianlong Zhou2 , Jiangtao Cui1 , Fang Chen2 , Pingyang Sun4 , Qiyu Liao3 , Ye Lin2, 5, 6\n\narXiv:2512.11284v1 [cs.CV] 12 Dec 2025\n\n1\n\nSchool of Computer Science and Technology, Xidian University\n2\nThe Data Science Institute, University of Technology Sydney\n3\nData61, CSIRO\n4\nSchool of Photovoltaic and Renewable Energy Engineering, University of New South Wales\n5\nDepartment of Computing, The Hong Kong Polytechnic University\n6\nMolly Wardaguga Institute for First Nations Birth Rights, Faculty of Health, Charles Darwin University\n\nAbstract\nUnsupervised industrial anomaly detection requires accurately identifying defects without labeled data. Traditional\nautoencoder-based methods often struggle with incomplete\nanomaly suppression and loss of fine details, as their singlepass decoding fails to effectively handle anomalies with varying severity and scale. We propose a recursive architecture\nfor autoencoder (RcAE), which performs reconstruction iteratively to progressively suppress anomalies while refining normal structures. Unlike traditional single-pass models,\nthis recursive design naturally produces a sequence of reconstructions, progressively exposing suppressed abnormal patterns. To leverage this reconstruction dynamics, we introduce\na Cross Recursion Detection (CRD) module that tracks inconsistencies across recursion steps, enhancing detection of\nboth subtle and large-scale anomalies. Additionally, we incorporate a Detail Preservation Network (DPN) to recover\nhigh-frequency textures typically lost during reconstruction.\nExtensive experiments demonstrate that our method significantly outperforms existing non-diffusion methods, and\nachieves performance on par with recent diffusion models\nwith only 10% of their parameters and offering substantially\nfaster inference. These results highlight the practicality and\nefficiency of our approach for real-world applications.\n\nIntroduction\nAnomaly detection is a fundamental task in computer vision with broad applications, such as manufacturing quality\ncontrol (Bergmann et al. 2021) and surveillance (Chandola,\nBanerjee, and Kumar 2009). In industry, accurate defect detection is critical for ensuring product quality and reducing\ncost. However, a major challenge arises from severe data imbalance: normal samples are abundant, while anomalies are\nrare, diverse, and difficult to annotate (Ruff et al. 2021).\n†\n\nThese authors contributed equally.\nCorresponding author: Mingzhe Wang (E-mail address: wangmingzhe@xidian.edu.cn).\nCopyright © 2026, Association for the Advancement of Artificial\nIntelligence (www.aaai.org). All rights reserved.\n∗\n\nFigure 1: Reconstruction comparison of AE and diffusionbased methods. Our recursive design incrementally suppresses anomalies for high-fidelity reconstruction, then\nleverages cross-recursion dynamics for accurate detection.\nTo address this, unsupervised and semi-supervised methods have gained popularity, typically learning the distribution of normal data and detecting deviations at test time as\nanomalies (Tao et al. 2022). Among them, reconstructionbased methods, especially autoencoder (AE) variants, stand\nout for their simplicity and intuitive design: models trained\non normal data are expected to poorly reconstruct unseen\nanomalies (Zavrtanik, Kristan, and Skočaj 2021; Gong et al.\n2019). However, traditional AE-based methods face several\nlimitations in industrial anomaly detection: (1) Overfitting\nto limited and homogeneous normal data (Kingma, Welling\net al. 2019); (2) Expressive latent spaces may reconstruct\nanomalies (Bergmann et al. 2018); (3) Single-pass decoding that oversmooths fine details (Liu et al. 2020; Zavrtanik, Kristan, and Skočaj 2021); (4) Fixed-scale architectures struggle with varying size and severity anomalies (Zavrtanik, Kristan, and Skocaj 2021; Ristea et al. 2022).\nThese limitations lead to poor reconstruction quality in\n\n\ftraditional AEs. To address this, recent works have introduced GANs (Liang et al. 2023), transformers (You et al.\n2022), diffusion models (He et al. 2024; Zhang et al. 2023),\nor augmentation-heavy strategies (Li et al. 2021; Zavrtanik,\nKristan, and Skocaj 2021; Zhang, Xu, and Zhou 2024).\nWhile effective, these methods typically require high computational cost or intricate pre-processing pipelines, limiting\ntheir practicality in industrial settings.\nIn light of these challenges, we revisit a fundamental question: Can high-quality anomaly reconstruction be\nachieved without the overhead of complex or resource-heavy\ndesigns? To this end, we propose a lightweight and effective framework based on simple AEs called Recursive Convolutional Autoencoder (RcAE). As shown in Fig. 1, unlike traditional single-pass AEs, RcAE performs iterative reconstruction, progressively suppressing anomalies and reconstructing normal structures across multiple steps. This\nrecursive formulation enables residual evolution to naturally highlight inconsistent anomalies patterns over recursive steps. To leverage this reconstruction dynamics, we propose a novel Cross Recursion Detection (CRD) module,\nwhich monitors reconstruction inconsistencies of anomalies\nacross recursion steps. CRD captures persistent deviations\nthat reveal both micro-defects and large structural anomalies. Additionally, we introduce a lightweight Detail Preservation Network (DPN) to restore fine textures in normal\nregions that might otherwise be oversmoothed, further reducing false positives caused by detail loss.\nOverall, this paper forms an efficient framework, achieving strong detection performance without significantly high\ncomputational overhead, making it practical for real-world\ndeployment. The main contributions are:\n• Recursive Reconstruction Framework that performs\nanomaly suppression and normal pattern enhancement\nover multiple iterations, enabling significantly robust reconstructions without high computational burden.\n• Cross Recursion Detection: We introduce a novel module that exploits patterns of constantly changing anomalies across recursive steps. By analyzing persistent inconsistencies, Cross Recursion Detection enables unified detection of both subtle and large-scale anomalies.\n• Detail Refinement: While our recursive architecture\nprovide fine reconstructions, we further design a Detail\nPreservation Network that selectively restores fine textures in normal regions, preserving structural fidelity.\n• Efficiency: Our method achieves state-of-the-art performance on par with recent diffusion models, while requiring 10× fewer parameters and offering faster inference,\nmaking it suitable for industrial deployment.\n\nRelated Works\n\nUnsupervised anomaly detection models are trained by only\nnormal data. Reconstruction-based methods remain prominent due to their intuitive logic: a model that learns to reconstruct normal patterns should struggle to reconstruct unseen\nanomalies, thus exposing them by reconstruction errors.\nAutoencoders: Foundations and Challenges. A classical\nrealization of this paradigm is the autoencoder (AE) frame-\n\nwork, which learns to compress and reconstruct normal\ndata (Gong et al. 2019; Bergmann et al. 2022; Park, Noh,\nand Ham 2020). While simple and effective in low-data\nregimes, traditional AEs exhibit several persistent drawbacks: (1) They easily overfit on limited and homogeneous\nnormal data, leading to poor generalization and high false\nnegatives (Kingma, Welling et al. 2019); (2) Expressive latent spaces may reconstruct anomalous regions, diminishing\ndetection contrast and accuracy (Bergmann et al. 2018); (3)\nSingle-pass decoding often smooths out high-frequency details, causing false positives in normal areas (Liu et al. 2020;\nZavrtanik, Kristan, and Skočaj 2021); (4) Fixed-scale architectures struggle with anomalies of varying size and severity, limiting robustness across diverse defect types (Zavrtanik, Kristan, and Skocaj 2021; Ristea et al. 2022). These\nlimitations expose the fragility of single-pass reconstruction\nmechanisms, especially in high-precision use cases.\nBeyond AEs: Better Reconstructions at a Cost. To address\nthe reconstruction limitations of basic AEs, recent research\nhas explored more expressive models: GAN-based approaches (Liang et al. 2023; Akçay, Atapour-Abarghouei,\nand Breckon 2019) introduce adversarial losses to generate\nvisually sharper reconstructions. While enhancing realism,\nthey often suffer from training instability and require largescale data (Akcay, Atapour-Abarghouei, and Breckon 2019),\nlimiting their practicality in sparse-label industrial scenarios. Transformer-based models (You et al. 2022; Mishra\net al. 2021; Pirnay and Chai 2022) leverage self-attention to\ncapture long-range dependencies. For instance, UniAD (You\net al. 2022) unifies multiple object categories under a single framework. However, their high memory cost and complex optimization hinder deployment in real-time applications (Xu et al. 2021). Diffusion-based frameworks (He\net al. 2024; Yao et al. 2025; Zhang et al. 2023; Wyatt et al.\n2022) have recently achieved state-of-the-art reconstruction\nquality by learning denoising trajectories from noise to clean\nsamples. Their iterative nature enables gradual normalization of anomalies, making them powerful but computationally prohibitive, often requiring dozens to hundreds of denoising steps per image (Rombach et al. 2022). Moreover,\ndiffusion models may still suffer from semantic inconsistencies and detail loss (Batzner, Heckler, and König 2024;\nZavrtanik, Kristan, and Skočaj 2021). These reflects a clear\ntrend: improvements in reconstruction typically comes at the\ncost of inference latency, training complexity, or resource requirements, which is a tradeoff that undermines deployment\nin resource-constrained industrial settings.\nLimitations and Our Perspective. Despite ongoing\nprogress, reconstruction-based methods still face several\npersistent challenges: (1) Loss of fine details in normal regions, leading to false positives (Denouden et al. 2018); (2)\nIncomplete suppression of anomalies, causing false negatives (Cai, Chen, and Cheng 2024); (3) Loose boundary\nmodeling of normal distributions, allowing reconstruction\nof anomalies (Pang et al. 2021); (4) High computational demands in high-performing models, leading to poor deployment feasibility (Fučka, Zavrtanik, and Skočaj 2024). Thus,\nimproving reconstruction quality without incurring high cost\n\n\fFigure 2: Overview of the proposed anomaly detection framework. RcAE performs iterative reconstruction to progressively\nsuppress anomalies and stabilize normal structures; DPN selectively restores high-frequency textures; CRD leverages reconstruction dynamics across recursion steps to produce robust pixel-level anomaly maps.\nis still a challenging issue, and we aim to propose a framework that is both high-performing and computationally efficient, striking a better balance for practical deployment.\n\nMethodology\nAs illustrated in Fig. 2, the proposed framework is a\nlightweight yet expressive reconstruction-based pipeline\nwith three key components: (1) a Recursive Autoencoder\n(RcAE) that reformulates reconstruction as a multi-step\nrefinement process, progressively suppressing anomalies\nwhile stabilizes normal structures across iterations; (2) a\nDetail Preservation Network (DPN) that restores highfrequency details in normal regions, reducing false positives\nwhile preserving structural fidelity; and (3) a Cross Recursion Detection (CRD) that exploits reconstruction dynamics across recursion steps to highlight persistent inconsistencies, generating robust anomaly detection.\n\nPreliminaries\nLet input space X ⊂ RH×W ×C contain images with H ×\nW resolution and C channels. The training set Dtrain =\n{x1 , x2 , . . . , xS } contains only normal images xi ∈ X . The\ngoal of unsupervised anomaly detection is to learn a mapping f : X → X such that reconstruction errors |xi −f (xi )|\nexpose anomalies in unseen test images. During inference,\nan anomaly score is assigned to each pixel of a test image\nxtest ∈ X based on deviations from learned normal patterns.\nStandard Autoencoder Framework. A traditional autoencoder consists of an encoder EθE : X → Z and a decoder\nDθD : Z → X , where Z ⊂ Rd is a compact latent space\nwith dimensionality d ≪ H × W × C, θ E and θ D are the\nparameters. The network is trained to minimize the recon-\n\nstruction loss on normal samples:\nPN\n(1)\nLrec = N1 i=1 ∥xi − DθD (EθE (xi ))∥p ,\nwhere ∥ · ∥p denotes the ℓp norm. The reconstruction of an\ninput image x is denoted as x̂ = DθD (EθE (x)). The AEbased methods are simple and efficient, but often fail to fully\nsuppress subtle anomalies and preserve fine details.\n\nRecursive Convolutional Autoencoder\nTraditional deep convolutional autoencoders (ConvAEs) improve reconstruction capacity by stacking N distinct encoder and decoder blocks. Formally, the encoder blocks\n{E1 , E2 , ..., EN } with parameters {θ E1 , θ E2 , ..., θ EN }\nand decoder blocks {D1 , D2 , ..., DN } with parameters\n{θ D1 , θ D2 , ..., θ DN }, define a mapping:\nfdeep (x) = D1 ◦ D2 ◦ ... ◦ DN ◦ EN ◦ ... ◦ E2 ◦ E1 (x), (2)\nwhere each block has it own parameters. While effective but\nsignificantly increases model size and training complexity.\nTo achieve high-quality reconstruction without inflating\nthe parameter count, we propose a Recursive Convolutional\nAutoencoder (RcAE) that replaces these stacked layers with\na compact, recursive design. Instead of using multiple independent blocks, RcAE reuses two shared autoencoders in\nan iterative pipeline to perform progressive compression and\nreconstruction, mimicking the depth and semantic abstraction of a deep ConvAE with far fewer parameters.\nRecursive Structure. As shown in Fig. 2, RcAE consists\nof two phases: a recursive compression phase with encoder\nE(·) and a recursive reconstruction phase with decoder\nD(·), both adopt a standard 4-layer ConvAE with skip connections and parameter sharing within each phase. To simulate the behavior of a deeper AE while preserving the scalespace encoding and decoding, we insert a downsampling\n\n\fconvolution layer (kernel size = 2, stride = 2) after E(·),\nreducing spatial resolution by a factor of 2. Likewise, D(·)\nends with a deconvolutional upsampling layer (kernel size =\n2, stride = 2) to restore resolution. This allows each recursion operates at progressively coarser semantic levels.\nCompression Phase. Given input image x, the compression\nphase progressively compresses it through N recursions using a shared encoder E with parameters θ E :\nIiC = E(Ii−1\nC ; θ E ),\n\ni ∈ {1, 2, ..., N },\n\n(3)\n\nwhere I0C = x. Each recursion step reduces spatial resolution by the shared encoder E : Xi−1 → Xi maps from one\ni\ni\nresolution level to a lower one, where Xi ⊂ RH/2 ×W/2 ×C ,\nenabling hierarchical abstraction of visual content.\nReconstruction Phase. Starting from the compressed representation IN\nC from N -times recursion, the reconstruction\nphase progressively reconstructs the image through N recursions using a shared decoder D with parameters θ D :\nIjR = D(Ij−1\nR ; θ D ),\n\nj ∈ {1, 2, ..., N },\n\n(4)\n\nwhere I0R = IN\nC , and each iteration restores the spatial resolution by the shared decoder D : XN −j+1 → XN −j which\nmaps from one resolution level to a higher one. The final\nreconstruction IN\nR represents the full-resolution anomalynormalized output.\nProgressive Reconstruction Benefits. Together, these components implement a recursive architecture where deeper iteration compresses and reconstructs the image at a coarser\nscale, effectively performing reconstruction at multiple semantic levels: early iterations retain low-level details but\nmay still contain residual anomalies, while later iterations\nbetter suppress anomalies but may over-smooth fine structures. Such progressive refinement allows RcAE to simultaneously suppress anomalies and preserve normal structures,\nimproving robustness without extra parameters.\nTraining. To encourage generalization across varying recursive depths and adapt to anomalies of different intensities,\nthe number of recursions is randomly sampled from [1, N ]\nduring training, which also help avoiding shortcut learning.\nWe supervise both intensity and edge fidelity as follows:\n′\n′N\nLrec = ∥I − IN\nR ∥1 + ∥I − IR ∥1 ,\n\n(5)\n\nwhere I′ and I′N\nR denote the first-order gradients of input and\nthe final reconstruction, respectively.\n\nDetail Preservation Network\nWhile RcAE effectively suppresses anomalies through\nmulti-step reconstruction, the recursive nature of the process\ncan also lead to the accumulation of detail loss in normal regions, leading to false positives.\nTo address this, we propose a Detail Preservation Network\n(DPN), which selectively restores fine details in normal areas while avoiding the reintroduction of anomalies. As illustrated in the 2nd stage of Fig. 2, DPN is a lightweight\n4-layer convolutional autoencoder with skip connections,\nwhich takes the recursive reconstructions {InR } concatenated\n\nwith the first-order derivative of the input I′ , to predict residual maps {ResnD } contains missing details:\nResnD = fDPN ((InR ⊕ I′ ); θ DPN ), InD = InR + ResnD ,\n(6)\nwhere ⊕ denotes channel-wise concatenation, and θ DPN\nis the parameters. The output InD represents the detailenhanced reconstruction for downstream anomaly scoring.\nDPN is supervised by a dual-term ℓ1 loss to recover both\nintensity and edge details:\nLDPN = ∥(ResnD + InR ) − I∥1 + ∥(ResnD + InR )′ − I′ ∥1 ,\n(7)\nwhere I′ and (ResnD + InR )′ denote the gradient maps of I\nand InD , respectively.\nImportantly, RcAE is frozen during DPN training, and\nonly clean normal samples are used. This forces the network to focus on learning residuals caused by recursive detail degradation rather than anomaly-related deviations. In\ninference, since anomalies generate unfamiliar residuals outside the learned distribution, DPN naturally fails to restore\nthem, preserving anomaly suppression. This selective recovery mechanism effectively enhances fine details in normal\nregions while reducing false positives, thereby improving\nthe reliability of pixel-wise anomaly detection.\n\nCross Recursion Detection\nOur recursive design naturally produces a sequence of reconstructions, and the differences between steps reflect\nregion-wise stability, i.e., normal regions stabilize quickly,\nwhile anomalous regions fluctuate due to reconstruction difficulty. Early iterations may retain residual defects but preserve fine details, whereas later iterations suppress anomalies better but may lose subtle textures. To leverage this reconstruction dynamics, we introduce the Cross Recursion\nDetection (CRD) for robust anomaly localization.\nAs shown in the 3rd stage of Fig. 2, CRD is a 4-depth\n3D ConvAE with skip connections that jointly models spatial features and reconstruction dynamics across recursion\nsteps. It takes the concatenation of the input I and the detailenhanced reconstructions InD to predict anomaly map MA :\nMA = fCRD ((InD ⊕ I); θ CRD ), n ∈ {1, 2, ..., N }, (8)\nwhere θ CRD are the learnable parameters. 3D convolutions\nallow CRD to extract cross-recursion temporal patterns,\nhighlighting regions that remain unstable across iterations.\nDuring training, both RcAE and DPN are frozen. We use\nonly normal images, and generate pseudo anomaly masks\nMP via simple augmentations (e.g., color patches, random\nlines, copy-paste). CRD is optimized using a dual-term ℓ2\nloss for spatial and edge consistency:\nLCRD = ∥MA − MP ∥2 + ∥M′A − M′P ∥2 ,\n(9)\n′\nwhere M denotes the gradient map. At test time, CRD outputs the final pixel-wise anomaly map MA . For image-level\nanomaly detection, we follow standard practice of averaging\nthe top-k pixel scores.\nIn contrast to prior methods that rely solely on a single reconstruction, our CRD module fully exploits cross-recursion\ndynamics of RcAE, offering reliable detection of anomalies\nat multiple scales and varying intensities.\n\n\fFlow-based\n\nDiffusion+DINO\n\nDRAEM\n\nPatchCore\n\nRD4AD\n\nEfficientAD\n\nOurs\n\nD3AD\n\nDiAD\n\nDiffAD\n\nMSFlow\n\nGLAD\n\n✓\n\n✗\n\n✗\n\n✗\n\n✓\n\n✗\n\n✗\n\n✓\n\n✗\n\n✗\n\nObjects\n\nBottle\nCable\nCapsule\nHazelnut\nMetal Nut\nPill\nScrew\nToothbrush\nTransistor\nZipper\n\n99.2/99.1\n91.8/94.7\n98.5/94.3\n100/99.7\n98.7/99.5\n98.9/97.6\n93.9/97.6\n100/98.1\n93.1/90.9\n100/98.8\n\n100/98.6\n99.5/98.4\n98.1/98.8\n100/98.7\n100/98.4\n96.6/97.4\n97.0/99.1\n100/98.7\n100/96.3\n99.4/98.8\n\n100/99.0\n95.0/99.4\n96.3/97.3\n99.9/98.2\n100/99.6\n96.6/95.7\n97.0/99.1\n99.5/93.0\n96.7/95.4\n98.5/98.2\n\n99.9/98.7\n95.2/98.8\n97.9/99.2\n99.4/98.8\n99.6/98.5\n98.6/98.7\n97.0/98.7\n100/97.7\n99.9/97.2\n99.7/96.3\n\n100/99.1\n97.4/97.1\n94.4/97.9\n100/99.5\n99.8/98.8\n98.4/98.9\n95.8/98.7\n100/99.4\n98.6/96.6\n100/99.6\n\n100/98.6\n97.8/93.3\n96.6/97.9\n98.0/98.8\n98.9/96.1\n99.2/98.2\n83.9/99.0\n100/99.0\n96.8/95.6\n98.2/98.3\n\n99.7/98.4\n94.8/96.8\n89.0/97.1\n99.5/98.3\n99.1/97.3\n95.7/95.7\n90.7/97.9\n99.7/99.0\n99.8/95.1\n95.1/96.2\n\n100/98.8\n94.6/96.8\n97.5/98.2\n100/99.4\n100/99.4\n97.7/97.7\n97.2/99.0\n100/99.2\n96.1/93.7\n100/99.0\n\n100/99.0\n99.5/98.5\n99.2/98.1\n100/98.7\n100/99.3\n99.6/98.8\n97.8/99.1\n100/98.5\n100/98.3\n100/99.2\n\n100/98.9\n99.9/98.1\n99.5/98.5\n100/99.5\n100/98.8\n98.1/97.9\n96.9/99.1\n100/99.4\n98.3/96.2\n98.5/97.9\n\nTexture\n\nCarpet\nGrid\nLeather\nTile\nWood\n\n97.0/95.5\n99.9/99.7\n100/98.6\n99.6/99.2\n99.1/96.4\n\n98.7/99.0\n98.2/98.7\n100/99.3\n98.7/95.6\n99.2/95.0\n\n98.9/98.8\n100/97.0\n100/98.6\n99.3/98.9\n99.2/99.3\n\n99.3/96.3\n99.9/94.1\n100/97.7\n99.9/91.5\n99.5/90.9\n\n100/99.6\n100/99.7\n100/99.8\n99.2/97.8\n100/97.9\n\n94.2/97.6\n100/99.2\n98.5/99.4\n95.5/94.7\n99.7/95.9\n\n99.4/98.6\n98.5/96.6\n99.8/98.8\n96.8/92.4\n99.7/93.3\n\n98.3/98.1\n100/99.7\n100/99.1\n100/99.4\n100/96.7\n\n100/99.4\n99.8/99.4\n100/99.7\n100/98.2\n100/97.1\n\n99.0/98.5\n100/99.6\n100/99.8\n100/98.7\n99.4/98.4\n\nCategory\n\nNon-Diffusion Method\n\nVisA Dataset\n\nMVTec AD Dataset\n\nFrom Scratch?\n\nDiffusion-based\n\nAvg.\n\n98.0/97.3\n\n99.1/98.1\n\n98.5/97.8\n\n99.1/96.9\n\n98.9/98.7\n\n97.2/97.4\n\n97.2/96.8\n\n98.7/98.3\n\n99.7/98.8\n\n99.3/98.6\n\nCandle\nCapsules\nCashew\nChewinggum\nFryum\nMacaroni1\nMacaroni2\nPcb1\nPcb2\nPcb3\nPcb4\nPipe fryum\n\n89.6/91.0\n89.2/99.0\n88.3/85.0\n96.4/97.7\n94.7/82.5\n93.9/99.4\n88.3/99.7\n84.7/98.4\n96.2/94.0\n97.4/94.3\n98.9/97.6\n94.7/65.8\n\n98.7/99.2\n68.8/96.5\n97.7/99.2\n99.1/98.9\n91.6/95.9\n90.1/98.5\n63.4/93.5\n96.0/99.8\n95.1/98.4\n93.0/98.9\n99.5/98.3\n99.0/99.3\n\n94.3/98.7\n90.8/99.4\n97.4/94.1\n98.4/97.4\n96.2/96.7\n98.6/99.6\n89.5/99.2\n97.1/99.7\n97.0/98.6\n96.4/99.2\n99.9/97.7\n94.6/98.7\n\n98.4/99.1\n93.5/98.2\n97.2/99.2\n99.9/99.2\n96.5/96.5\n99.4/99.9\n96.7/99.8\n98.5/99.8\n99.5/99.3\n98.9/99.4\n98.9/99.1\n99.7/99.3\n\n99.9/99.3\n98.7/99.6\n96.9/96.2\n99.8/99.4\n99.9/97.6\n99.7/99.3\n97.1/99.5\n99.7/99.7\n99.5/98.1\n99.5/98.3\n99.9/98.7\n99.9/97.5\n\n95.6/88.5/94.2/99.7/96.5/94.3/92.5/97.7/98.3/97.4/99.8/96.9/-\n\n92.8/97.3\n58.2/97.3\n91.5/90.9\n99.1/94.7\n89.8/97.6\n85.7/94.1\n62.5/93.6\n88.1/98.7\n91.4/95.2\n86.2/96.7\n99.6/97.0\n96.2/99.4\n\n90.4/87.6/81.4/94.0/87.1/87.6/90.7/75.0/94.6/94.7/97.7/92.7/-\n\n97.7/98.3\n98.0/96.2\n94.9/98.7\n93.6/99.7\n88.2/99.6\n97.6/97.6\n98.0/89.5\n96.0/98.9\n93.5/97.8\n94.4/98.9\n93.0/99.5\n97.0/98.9\n\n99.9/94.8\n99.1/99.6\n98.4/97.0\n99.6/99.1\n99.4/96.9\n99.9/99.8\n98.9/99.8\n99.6/99.6\n100/98.6\n99.9/98.9\n99.9/99.5\n98.9/99.4\n\nAvg.\n\n92.4/92.0\n\n91.0/98.1\n\n95.8/98.3\n\n98.1/99.1\n\n99.2/98.6\n\n96.0/97.9\n\n86.8/96.0\n\n89.5/-\n\n95.2/97.8\n\n99.5/98.6\n\nAvg. All\n\n95.6/94.9\n\n95.4/98.0\n\n97.3/98.0\n\n98.6/97.8\n\n99.0/98.7\n\n96.6/97.4\n\n92.5/96.4\n\n94.6/-\n\n97.7/98.3\n\n99.4/98.6\n\nTable 1: Comparison of anomaly detection and localization performance on MVTec AD and VisA. Each entry reports I-AUROC\n/ P-AUROC (%). Bold and underlined numbers indicate the best and second-best results, respectively.\n\nTraining Strategy\nOur framework is trained in three independent stages on normal data to ensure stability and modular effectiveness. Note\nthat all components are trained from scratch:\n• Stage 1: Train RcAE with Lrec . To prevent shortcut learning and overfitting to a fixed recursion depth, the recursion depth is randomly selected from [1, N ] per batch.\n• Stage 2: Freeze RcAE, train DPN with loss LDPN to restore high-frequency details via InD = InR + ResnD .\n• Stage 3: Freeze RcAE and DPN, train CRD with LCRD\nusing I and {InD } to predict anomaly map MA . Pseudo\nmasks MP are generated via lightweight augmentations.\nAugmentation: We adopt simple perturbations in Stages 1\nand 3, including: (1) Random color blocks, (2) Copy &amp; paste\npatches, (3) Random lines (1–4) of length 50–150 forming\ncrack-like structures. These are applied to random blocks of\nsize 32, 64, or 128 with varying coverage (0–100%).\n\nExperiments\nWe comprehensively evaluate the proposed method on both\nimage-level and pixel-level anomaly detection tasks, and analyze computational efficiency. Comparisons are made on\nthe MVTec AD (Bergmann et al. 2021) and VisA (Zou\n\net al. 2022) datasets with representative approaches across\nthree categories: (1) Non-diffusion methods: DRAEM (Zavrtanik, Kristan, and Skocaj 2021), PatchCore (Roth et al.\n2022), RD4AD (Deng and Li 2022), EfficientAD (Batzner,\nHeckler, and König 2024); (2) Flow-based methods: MSFlow (Zhou et al. 2025); (3) Diffusion-based methods:\nD3AD (Tebbe and Tayyub 2024), DiAD (He et al. 2024),\nDiffAD (Zhang et al. 2023), and GLAD (Yao et al. 2025).\nEvaluation Metrics: Following common practice, we report image-level AUROC (I-AUROC) and pixel-level AUROC (P-AUROC) as primary evaluation metrics.\nTraining Setup: We train all components from scratch using Adam optimizer (η=10−4 , β1 =0.9, β2 =0.999, ϵ=10−8 ).\nStage 1/2/3 are trained for 1500/400/300 epochs, respectively, with recursion depth N =5 and input size 1024×1024.\nExperiments are conducted on NVIDIA RTX4090 with\nPython 3.10, and all baselines follow their official settings.\n\nAnomaly Detection and Localization\nTable 1 summarizes the anomaly detection and localization\nperformance on the MVTec AD and VisA datasets. Our\nmethod consistently delivers strong results in both image\nand pixel level metrics while maintaining high efficiency.\nOn MVTec AD, our method achieves an average of\n98.9% I-AUROC and 98.7% P-AUROC, outperforming\n\n\f(a) Inputs\n\n(b) ConvAE\n\n(c) RcAE w/o\nshared weight\n\n(d) RcAE (N =3)\nw/o DPN\n\n(e) RcAE (N =5)\nw/o DPN\n\n(f) RcAE (N =5)\nw/ DPN\n\nFigure 3: Qualitative ablation on reconstruction. (a) Input. (b) ConvAE: blurry outputs with residual anomalies. (c) RcAE w/o\nweight sharing: partial anomaly memorization and detail loss. (d) RcAE (N =3): significantly improved reconstruction but\nanomalies remain. (e) RcAE (N =5): stronger suppression with slight texture erosion. (f) RcAE (N =5) + DPN: fine textures\nrestored while anomalies remain suppressed.\nnon-diffusion baselines such as RD4AD (98.5/97.8%) and\nDRAEM (98.0/97.3%), and also surpassing diffusion models like D3AD (97.2/97.4%), DiAD (97.2/96.8%), and DiffAD (98.7/98.3%). Notably, we achieve higher pixel-level\naccuracy than GLAD (98.7% vs. 98.6%), despite GLAD\nutilizing a large vision model (DINO (Caron et al. 2021))\nwith latent diffusion. This highlights the effectiveness of our\npipeline, which achieves high performance without relying\non pretrained models or heavy designs.\nOn the more challenging VisA dataset, which features\ncomplex object structures and diverse anomaly types, many\nmethods exhibit performance degradation. Our method\nachieves 99.2% I-AUROC and 98.6% P-AUROC, tying\nGLAD for the second-best localization performance and\nranking second in detection. It ranks among the top-2 in 10\nout of 12 categories, highlighting strong robustness under\nrealistic and challenging conditions.\nOverall, our method achieves the highest avg. P-AUROC\n(98.7%) and the second-highest I-AUROC (99.0%) across\nboth datasets. These results validate the effectiveness of our\nrecursive reconstruction pipeline, highlighting our approach\nis highly suitable for practical industrial applications.\n\nAblation Study\nEffectiveness of Core Components. Table 2 presents a\nstep-wise ablation. Starting from a plain ConvAE baseline (82.4/90.8% I-/P-AUROC), introducing RcAE already\nlifts performance to 94.1/95.8% by progressively suppressing anomalies and refining normal structures. Adding the\nDPN improves results to 95.7/96.6% by selectively restoring\nhigh-frequency details that may be smoothed during recursive reconstruction. Finally, integrating CRD yields the full\nmodel with 98.9/98.7%, leveraging cross-recursion residual\n\nRcAE\n\nDPN\n\nCRD\n\nAccuracy\n\n✗\n✓\n✓\n✓\n\n✗\n✗\n✓\n✓\n\n✗\n✗\n✗\n✓\n\n82.4/90.8\n94.1/95.8\n95.7/96.6\n98.9/98.7\n\nTable 2: Ablation on core components of our method. Each\nentry shows I-AUROC / P-AUROC (%) on MVTec AD.\ndynamics for robust anomaly localization. Fig. 3 provides\nqualitative evidence: ConvAE outputs are blurry with residual defects, RcAE progressively normalizes anomalies, and\nDPN restores textures without reintroducing them.\nImpact of Recursion Depth of RcAE. We analyze the effect of recursion depth N in Table 3. At N =1, RcAE equals\nto two ConvAEs with limited capacity (86.2/87.4%). Increasing N strengthens anomaly suppression and semantic\nrefinement, with the largest gain between N =1 and N =3,\nand a peak at N =5. Beyond this, performance plateaus or\nslightly declines, suggesting diminishing returns and minor\nover-smoothing. This validates the benefit of recursive architecture in reconstruction quality and exposing anomalies.\nFig. 3 illustrates these trends qualitatively, and more reconstruction results can be seen in Supplementary Materials.\nDataset\nMVTec\nVisA\n\nNumber of Iterations (N )\nN =1\n\nN =2\n\nN =3\n\nN =4\n\nN =5\n\nN =6\n\n86.2/87.4\n89.3/88.7\n\n90.8/89.9\n93.2/92.1\n\n96.3/96.8\n97.3/96.4\n\n98.0/98.3\n98.9/98.1\n\n98.9/98.7\n99.2/98.6\n\n98.7/98.4\n99.2/98.1\n\nTable 3: Effect of RcAE recursion depth N on anomaly detection (I-AUROC / P-AUROC (%)).\n\n\fImpact of RcAE Architecture. Table 4 shows how skip\nconnections and parameter sharing affect RcAE performance. Replacing the basic ConvAE (65.2/72.4%) with a\nrecursive design significantly improves accuracy, and skip\nconnections further boosts it to 98.9/98.7%. Conversely, removing weight sharing drops performance to 71.3/74.2%,\nhighlighting the importance of both recursion and constrained parameterization. Notably, for anomaly detection,\nskip connections often lead to shortcut learning in ConvAE.\nIn RcAE, the repeated compression–reconstruction suppress\nshortcuts, while skip connections enhance shallow feature\npropagation, improving reconstruction quality.\nModel\n\nSkip Conn.\n\nShared Weights\n\nConvAE\nConvAE\nRcAE\nRcAE\nRcAE\n\n✓\n✗\n✗\n✓\n✓\n\n✗\n✗\n✓\n✗\n✓\n\nAccuracy\nMVTec AD\n\nVisA\n\n65.2 / 72.4\n82.4 / 90.8\n92.2 / 95.2\n71.3 / 74.2\n98.9 / 98.7\n\n68.5 / 70.1\n79.7 / 78.5\n94.3 / 95.9\n73.5 / 75.0\n99.2 / 98.6\n\nTable 4: Effect of skip connections and parameter sharing in\nRcAE (I-AUROC / P-AUROC (%)).\n\nCRD (Table 6). Using only the final reconstruction (NR =1,\nstep 5) provides a strong baseline (95.7/96.6%). Incorporating intermediate reconstructions (NR =3, steps 1/3/5) improves results to 98.0/97.1%, and using all steps (NR =5,\nsteps 1–5) achieves 98.9/98.7%. This demonstrates that\nleveraging reconstruction dynamics across recursion steps\nyields more reliable anomaly localization than a single residual map.\n\nComputational Complexity\nAs shown in Fig. 4, our method achieves a favorable balance between accuracy and efficiency. The recursive architecture slightly increases inference time compared to singlepass ConvAEs , but it maintains a compact parameter count\nwith high performance and remains much faster than diffusion. Despite this lightweight design without pretraining or\nexternal priors, the accuracy is on par with GLAD, which\nrequires both latent diffusion and DINO. This combination\nof high performance, small size, and good latency makes our\nmethod practical for real-world applications.\n\nData Efficiency. Table 5 shows that RcAE consistently outperforms ConvAE across all training data ratios. With only\n10% of the training data, RcAE already surpasses the fulldata ConvAE, demonstrating superior data efficiency, which\nis important for industrial scenarios with scarce samples.\nTraining Data Percentage\n\nMethod\nConvAE\nRcAE\n\n10%\n\n25%\n\n50%\n\n75%\n\n100%\n\n62.3/61.5\n84.1/93.4\n\n68.9/77.2\n91.2/93.7\n\n71.4/87.8\n95.5/95.1\n\n79.1/88.9\n97.2/96.8\n\n82.4/90.8\n98.9/98.7\n\nTable 5: Impact of training data size on anomaly detection\nperformance on MVTec AD (I-AUROC / P-AUROC (%)).\nEffectiveness of Detail Preservation Network. Detail\nPreservation Network mitigates detail loss that can lead to\nfalse positives. Table 2 shows that adding DPN improves\nI-/P-AUROC from 94.1/95.8% to 95.7/96.6%. It also improves reconstruction quality with average SSIM and PSNR\ngains of 0.059 and 0.61 dB (up to 0.32 and 2.61 dB).\nAs shown in Fig. 3(e-f), DPN selectively restores details while maintaining anomaly suppression, especially on\nhighly textured samples (e.g., leather), confirming that DPN\npreserves details without reintroducing anomalies.\nNR\n\nRecon steps fed to CRD\n\nI-AUROC / P-AUROC\n\n1\n3\n5\n\n{5}\n{1, 3, 5}\n{1–5}\n\n95.7 / 96.6\n98.0 / 97.1\n98.9 / 98.7\n\nTable 6: Impact of the number of RcAE reconstructions used\nby CRD (I-AUROC / P-AUROC (%) on MVTec AD).\nEffectiveness of Cross Recursion Detection. We fix N =5\nin RcAE and vary the number of reconstructions NR fed into\n\nFigure 4: Trade-off between computation cost and accuracy.\nCircle size indicates model parameter count.\n\nConclusion\nWe proposed an efficient recursive autoencoder framework\nfor industrial anomaly detection. By sharing parameters\nacross iterations, the model progressively refines reconstructions without increasing model size and leverages crossrecursion dynamics for robust anomaly localization. Trained\nentirely from scratch without external priors, our method\nachieves state-of-the-art performance with practical computational efficiency. Despite these advantages, the current\ndesign may be less effective for high-level logical anomalies that require semantic reasoning. Future work will explore integrating lightweight prior knowledge or hybrid architectures to address such cases, and extending the recursive paradigm to broader industrial vision tasks facing similar efficiency and data limitations.\n\n\fAcknowledgments\nThis work was supported by the National Natural Science\nFoundation of China (No. 62306223), the China Postdoctoral Science Foundation (No. 2024M752533), the Young\nTalent Fund of Xi’an Association for Science and Technology (No. 959202413053), the Fundamental Research Funds\nfor the Central Universities (No. XJSJ24020), the Postdoctoral Science Foundation of Shaanxi Province, the Xiaomi\nYoung Talents Program, and the Digital Finance CRC (supported by the Cooperative Research Centres program, an\nAustralian Government initiative).\n\nReferences\nAkcay, S.; Atapour-Abarghouei, A.; and Breckon, T. P.\n2019. Ganomaly: Semi-supervised anomaly detection via\nadversarial training. In ACCV, 622–637. Springer.\nAkçay, S.; Atapour-Abarghouei, A.; and Breckon, T. P.\n2019. Skip-ganomaly: Skip connected and adversarially\ntrained encoder-decoder anomaly detection. In International\nJoint Conference on Neural Networks (IJCNN), 1–8.\nBatzner, K.; Heckler, L.; and König, R. 2024. EfficientAD:\nAccurate visual anomaly detection at millisecond-level latencies. In IEEE Winter Conference on Applications of Computer Vision (WACV), 128–138.\nBergmann, P.; Batzner, K.; Fauser, M.; Sattlegger, D.; and\nSteger, C. 2021. The MVTec anomaly detection dataset: a\ncomprehensive real-world dataset for unsupervised anomaly\ndetection. IJCV, 129(4): 1038–1059.\nBergmann, P.; Batzner, K.; Fauser, M.; Sattlegger, D.; and\nSteger, C. 2022. Beyond dents and scratches: Logical constraints in unsupervised anomaly detection and localization.\nIJCV, 130(4): 947–969.\nBergmann, P.; Löwe, S.; Fauser, M.; Sattlegger, D.; and Steger, C. 2018. Improving unsupervised defect segmentation\nby applying structural similarity to autoencoders. arXiv\npreprint arXiv:1807.02011.\nCai, Y.; Chen, H.; and Cheng, K.-T. 2024. Rethinking autoencoders for medical anomaly detection from a theoretical\nperspective. In International Conference on Medical Image\nComputing and Computer-Assisted Intervention, 544–554.\nSpringer.\nCaron, M.; Touvron, H.; Misra, I.; Jégou, H.; Mairal, J.;\nBojanowski, P.; and Joulin, A. 2021. Emerging properties\nin self-supervised vision transformers. In Proceedings of\nthe IEEE/CVF international conference on computer vision,\n9650–9660.\nChandola, V.; Banerjee, A.; and Kumar, V. 2009. Anomaly\ndetection: A survey. ACM Computing Surveys (CSUR),\n41(3): 1–58.\nDeng, H.; and Li, X. 2022. Anomaly detection via reverse\ndistillation from one-class embedding. In CVPR, 9737–\n9746.\nDenouden, T.; Salay, R.; Czarnecki, K.; Abdelzad, V.; Phan,\nB.; and Vernekar, S. 2018. Improving reconstruction autoencoder out-of-distribution detection with mahalanobis distance. arXiv preprint arXiv:1812.02765.\n\nFučka, M.; Zavrtanik, V.; and Skočaj, D. 2024.\nTransFusion–a transparency-based diffusion model for\nanomaly detection. In ECCV, 91–108. Springer.\nGong, D.; Liu, L.; Le, V.; Saha, B.; Mansour, M. R.;\nVenkatesh, S.; and Hengel, A. v. d. 2019. Memorizing normality to detect anomaly: Memory-augmented deep autoencoder for unsupervised anomaly detection. In ICCV, 1705–\n1714.\nHe, H.; Zhang, J.; Chen, H.; Chen, X.; Li, Z.; Chen, X.;\nWang, Y.; Wang, C.; and Xie, L. 2024. A diffusion-based\nframework for multi-class anomaly detection. In AAAI, volume 38, 8472–8480.\nKingma, D. P.; Welling, M.; et al. 2019. An introduction\nto variational autoencoders. Foundations and Trends® in\nMachine Learning, 12(4): 307–392.\nLi, C.-L.; Sohn, K.; Yoon, J.; and Pfister, T. 2021. Cutpaste:\nSelf-supervised learning for anomaly detection and localization. In CVPR, 9664–9674.\nLiang, Y.; Zhang, J.; Zhao, S.; Wu, R.; Liu, Y.; and Pan, S.\n2023. Omni-frequency channel-selection representations for\nunsupervised anomaly detection. IEEE TIP.\nLiu, W.; Li, R.; Zheng, M.; Karanam, S.; Wu, Z.; Bhanu,\nB.; Radke, R. J.; and Camps, O. 2020. Towards visually\nexplaining variational autoencoders. In CVPR, 8642–8651.\nMishra, P.; Verk, R.; Fornasier, D.; Piciarelli, C.; and Foresti,\nG. L. 2021. VT-ADL: A vision transformer network for image anomaly detection and localization. In IEEE International Symposium on Industrial Electronics, 01–06.\nPang, G.; Shen, C.; Cao, L.; and Hengel, A. V. D. 2021.\nDeep Learning for Anomaly Detection: A Review. ACM\nComput. Surv., 54(2).\nPark, H.; Noh, J.; and Ham, B. 2020. Learning memoryguided normality for anomaly detection. In CVPR, 14372–\n14381.\nPirnay, J.; and Chai, K. 2022. Inpainting transformer for\nanomaly detection. In International Conference on Image\nAnalysis and Processing, 394–406.\nRistea, N.-C.; Madan, N.; Ionescu, R. T.; Nasrollahi,\nK.; Khan, F. S.; Moeslund, T. B.; and Shah, M. 2022.\nSelf-supervised predictive convolutional attentive block for\nanomaly detection. In CVPR, 13576–13586.\nRombach, R.; Blattmann, A.; Lorenz, D.; Esser, P.; and Ommer, B. 2022. High-resolution image synthesis with latent\ndiffusion models. In CVPR, 10684–10695.\nRoth, K.; Pemula, L.; Zepeda, J.; Schölkopf, B.; Brox, T.;\nand Gehler, P. 2022. Towards total recall in industrial\nanomaly detection. In CVPR, 14318–14328.\nRuff, L.; Kauffmann, J. R.; Vandermeulen, R. A.; Montavon,\nG.; Samek, W.; Kloft, M.; Dietterich, T. G.; and Müller, K.R. 2021. A unifying review of deep and shallow anomaly\ndetection. Proceedings of the IEEE, 109(5): 756–795.\nTao, X.; Gong, X.; Zhang, X.; Yan, S.; and Adak, C. 2022.\nDeep learning for unsupervised anomaly localization in industrial images: A survey. IEEE Transactions on Instrumentation and Measurement, 71: 1–21.\n\n\fTebbe, J.; and Tayyub, J. 2024. Dynamic Addition of\nNoise in a Diffusion Model for Anomaly Detection. In\n2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, 3940–3949.\nWyatt, J.; Leach, A.; Schmon, S. M.; and Willcocks, C. G.\n2022. Anoddpm: Anomaly detection with denoising diffusion probabilistic models using simplex noise. In CVPR,\n650–656.\nXu, J.; Wu, H.; Wang, J.; and Long, M. 2021. Anomaly\ntransformer: Time series anomaly detection with association\ndiscrepancy. arXiv preprint arXiv:2110.02642.\nYao, H.; Liu, M.; Yin, Z.; Yan, Z.; Hong, X.; and Zuo, W.\n2025. GLAD: Towards better reconstruction with global and\nlocal adaptive diffusion models for unsupervised anomaly\ndetection. In ECCV, 1–17.\nYou, Z.; Cui, L.; Shen, Y.; Yang, K.; Lu, X.; Zheng, Y.; and\nLe, X. 2022. A Unified Model for Multi-class Anomaly Detection. In NeurIPS, volume 35, 4571–4584.\nZavrtanik, V.; Kristan, M.; and Skocaj, D. 2021. DRAEM A Discriminatively Trained Reconstruction Embedding for\nSurface Anomaly Detection. In ICCV, 8330–8339.\nZavrtanik, V.; Kristan, M.; and Skočaj, D. 2021. Reconstruction by inpainting for visual anomaly detection. Pattern\nRecognition, 112: 107706.\nZhang, X.; Li, N.; Li, J.; Dai, T.; Jiang, Y.; and Xia, S.-T.\n2023. Unsupervised surface anomaly detection with diffusion probabilistic model. In ICCV, 6782–6791.\nZhang, X.; Xu, M.; and Zhou, X. 2024. RealNet: A Feature Selection Network with Realistic Synthetic Anomaly\nfor Anomaly Detection. In CVPR, 16699–16708.\nZhou, Y.; Xu, X.; Song, J.; Shen, F.; and Shen, H. T. 2025.\nMSFlow: Multiscale Flow-Based Framework for Unsupervised Anomaly Detection. IEEE TNNLS, 36(2): 2437–2450.\nZou, Y.; Jeong, J.; Pemula, L.; Zhang, D.; and Dabeer, O.\n2022. Spot-the-difference self-supervised pre-training for\nanomaly detection and segmentation. In ECCV, 392–408.\n\n\fSupplementary Material for\nRcAE: Recursive Reconstruction Framework for Unsupervised Industrial\nAnomaly Detection\n\nTheoretical Foundations of RcAE\nTo theoretically support the design choices and superior performance demonstrated by our Recursive Convolutional Autoencoder (RcAE), we present an in-depth analysis highlighting how its recursive design and parameter-sharing\nstrategy contribute to distinct advantages in function space\nconstraints, generalization performance, anomaly suppression, and multi-scale information capacity.\nAs introduced in Section 3 of the main paper, our recursive architecture repeatedly leverages shared encoder and\ndecoder modules. Below, we rigorously elucidate how this\narchitecture inherently provides beneficial inductive biases\nand theoretical guarantees, which align closely with the experimental observations presented in Sections 4.\n\nScale-Space Analysis\nFrom a scale-space theoretical perspective, RcAE implements hierarchical processing of input images. Traditional\ndeep autoencoder architectures typically implement multiscale feature processing using distinct parameters for each\nscale. As empirically shown in our ablation studies (Table\n4), such a design can result in overfitting to scale-specific\nfeatures, causing undesirable anomaly memorization effects\nand limited generalization. In contrast, our recursive architecture implements a hierarchical analysis of the input image via shared encoder and decoder functions applied recursively.\nLet Tσ : X → X represent a transformation that processes features at scale σ. In conventional deep networks\nwith encoder-decoder architecture, these transformations are\nimplemented with distinct parameters:\nTσi (x) = Di ◦ Di+1 ◦ ... ◦ DN ◦ EN ◦ ... ◦ Ei+1 ◦ Ei (x),\ni ∈ {1, 2, ..., N },\n(1)\nwhere each encoder block Ei and decoder block Di has its\nown parameters θ Ei and θ Di , respectively. In contrast, our\nrecursive approach implements multi-scale analysis through\nrepeated application of shared encoder and decoder functions:\nTσn (x) = D(n) (E (n) (x)),\n\nn ∈ {1, 2, ..., N },\n\n(2)\n\nCopyright © 2026, Association for the Advancement of Artificial\nIntelligence (www.aaai.org). All rights reserved.\n\nwhere E (n) represents n recursive applications of our shared\nencoder with shared parameters θ E , and D(n) represents\nn recursive applications of our shared decoder with shared\nparameters θ D . This parameter sharing enforces scaleconsistency constraints through gradient accumulation during backpropagation:\n\nand\n\nn\n∂Tσn (x) X ∂D(n) (E (n) (x)) ∂E (i) (x)\n=\n·\n,\n∂θ E\n∂θ E\n∂E (i) (x)\ni=1\nn\n∂Tσn (x) X ∂D(j) (E (n) (x))\n=\n.\n∂θ D\n∂θ D\nj=1\n\n(3)\n\n(4)\n\nDuring backpropagation, this gradient accumulation across\nscales forces the network to learn features that are consistent\nacross multiple scales rather than scale-specific features that\nmight enable anomaly memorization.\nThis theoretical property is directly reflected in our practical experiments (Tables 2 and 3), this multi-scale processing\ndirectly translates to effective detection of diverse anomalies: early iterations (n = 1) detect local defects (e.g., surface scratches), while later iterations (n = 5) capture global\nstructural anomalies (e.g., missing components).\n\nFunction Space Constraints\nTo further analyze the effects of parameter sharing, we formally establish in Theorem 1 that RcAE inherently operates\nin a more restricted function space compared to conventional\ndeep autoencoders. Such a constraint provides a strong inductive bias towards learning scale-consistent transformations, which is especially beneficial for anomaly detection.\nIn Section 4, our experiments clearly demonstrate that\nconventional deep autoencoders without recursive constraints suffer from severe anomaly memorization, reflected\nby inferior anomaly detection metrics. Conversely, RcAE’s\nconstrained function space significantly mitigates this issue.\nWe rigorously support this observation with the following\ntheorem:\nTheorem 1 (Function Space Constraint). Let Fdeep =\n{fdeep : X → X | fdeep (x) = D1 ◦D2 ◦...◦DN ◦EN ◦...◦E2 ◦\nE1 (x)} be the set of functions representable by conventional\ndeep autoencoders with N distinct encoder-decoder pairs,\nand Frec = {frec : X → X | frec (x) = D(N ) (E (N ) (x))} be\n\n\fthe set of functions representable by our recursive architecture with shared encoder E and decoder D applied N times.\nThen:\nFrec ⊂ Fdeep .\n(5)\nThis theorem establishes that the recursive architecture\noperates in a strictly smaller function space than conventional architectures, limiting its capacity to memorize arbitrary patterns.\n\nmaintain coherence when applied repeatedly. This regularized functional framework is key to understanding why the\nRcAE effectively normalizes anomalous regions while preserving normal structures. During training on normal samples, the network learns to project inputs onto the normal\ndata manifold through the combined process of recursive\ncompression followed by recursive reconstruction, building\nan increasingly accurate representation at each iteration.\n\nProof. (Theorem 1) Let frec ∈ Frec be any function\nrepresentable by our recursive architecture. By definition,\nfrec (x) = D(N ) (E (N ) (x)), where E and D are functions\nparameterized by shared parameters θ E and θ D , respectively.\nWe can construct an equivalent function fdeep ∈ Fdeep by\nsetting:\nE1 = E2 = . . . = EN = E\n(6)\nD1 = D2 = . . . = DN = D\n\nAnomaly Memorization Prevention\n\nwith identical parameters θ Ei = θ E and θ Di = θ D for all\ni ∈ {1, 2, . . . , N }.\nUnder this construction, fdeep (x) = D1 ◦ D2 ◦ . . . ◦ DN ◦\nEN ◦ . . . ◦ E2 ◦ E1 (x) = D(N ) (E (N ) (x)) = frec (x). Therefore, for every frec ∈ Frec , there exists an fdeep ∈ Fdeep such\nthat fdeep = frec .\nConversely, let us consider a function fdeep ∈ Fdeep where\nat least one pair of encoder blocks or decoder blocks differ\nin their parameters, i.e., there exist i, j ∈ {1, 2, . . . , N } such\nthat θ Ei ̸= θ Ej or θ Di ̸= θ Dj . Such a function cannot be\nrepresented in Frec because, by definition, Frec requires all\nencoder blocks to share the same parameters and all decoder\nblocks to share the same parameters.\nSince Frec ⊆ Fdeep and there exist functions in Fdeep that\nare not in Frec , we conclude that Frec ⊂ Fdeep .\nQ.E.D.\n\nThis constraint induces a strong inductive bias toward\nfunctions that exhibit scale consistency, which is particularly\nrelevant for anomaly detection. For our two-phase approach\nwith shared encoder E and decoder D, the combined transformation can be expressed as f (x) = D(N ) (E (N ) (x)), and\nthe inductive bias can be characterized through the unified\nfunction:\nZ\nΩ[f ] =\n∥D(N ) (E (N ) (x)) − fnormal (x)∥2 p(x)dx, (7)\nX\n\nwhere fnormal represents the ideal transformation that maps\nany input to its anomaly-free equivalent, and p(x) is the\nprobability density of inputs. For our recursive architecture,\nthis functional is minimized under additional constraints:\nΩrec [f ] = Ω[f ] + λ · R(f ),\n\n(8)\n\nwhere the regularization term R(f ) captures consistency\nacross recursive iterations in both phases:\nR(f ) =\n\nN\nX\n\nn=1\n\nD(n) (E (n) (x)) − D(n−1) (E (n−1) (x))\n\n2\n\n.\n\n(9)\nThis term explicitly penalizes inconsistency across recursive\niterations, forcing the network to learn transformations that\n\nBuilding upon the function space constraints, we formally\nprove in Theorem 2 that RcAE inherently prevents anomaly\nmemorization. Specifically, we show that reconstruction error for anomalous patterns has a positive lower bound, which\nensures anomalies cannot be memorized without severely\ncompromising normal reconstruction.\nThis theoretical result aligns strongly with our empirical\nevidence in Section 4, where the anomaly reconstruction errors of RcAE consistently surpass those of normal patterns,\nleading to significant improvements in anomaly detection\nmetrics (e.g., pixel-level AUROC).\nTheorem 2 (Anomaly Memorization Prevention). Let\nXnormal be the set of normal patterns and Xanomaly be the\nset of anomalous patterns. For our recursive architecture\nwith shared encoder E and decoder D with parameters θ E\nand θ D optimized on Xnormal with regularization R(f ) =\nPN\n(n)\n(E (n) (x)) − D(n−1) (E (n−1) (x))∥2 , the exn=1 ∥D\npected reconstruction error for anomalies is bounded below\nby:\nEx∈Xanomaly [∥x − D(N ) (E (N ) (x; θ E ); θ D )∥] ≥\n\nα · d(Xnormal , Xanomaly ),\n\n(10)\n\nwhere d(Xnormal , Xanomaly ) represents the minimum distance\nbetween normal and anomalous distributions, and α &gt; 0 is\na constant that depends on the number of recursive iterations N .\nThis theorem establishes a lower bound on the reconstruction error for anomalies, showing that our recursive architecture cannot effectively memorize anomalous patterns without compromising normal reconstruction.\nProof. (Theorem 2) Consider an anomalous input xa ∈\nXanomaly . The parameters θ E and θ D of our recursive architecture are optimized on normal samples to minimize:\nL(θ E , θ D ) = Ex∈Xnormal [∥x − D(N ) (E (N ) (x; θ E ); θ D )∥]\n+λ · R(f ),\n(11)\nwhere the regularization term R(f ) enforces consistency between consecutive recursion depths:\nR(f ) =\n\nN\nX\n\nn=1\n\n∥D(n) (E (n) (x)) − D(n−1) (E (n−1) (x))∥2 .\n\n(12)\nLet us analyze how this constraint affects the representation of anomalies. When processing an anomalous input xa ,\nwe can decompose it as:\nxa = xn + ∆a ,\n\n(13)\n\n\fwhere xn is the nearest normal pattern to xa , and ∆a represents the anomalous component. By definition, ∥∆a ∥ =\nd(xa , Xnormal ).\nFirst, we examine the compressed representation after n\niterations. Due to the parameter sharing constraint, the network must use the same parameters θ E optimized for normal data. Let us define a compression operator Cn : X →\nXn that maps inputs to their compressed representation after\nn iterations:\nCn (x) = E (n) (x; θ E ).\n(14)\nFor normal patterns, the compression operator is trained\nto preserve essential structure while discarding noise. For\nanomalous patterns, however, the compression operator was\nnever trained to preserve anomalous components. Therefore,\nthe compressed representation of an anomalous input satisfies:\n∥Cn (xa ) − Cn (xn )∥ ≤ β · ∥∆a ∥,\n(15)\n\nGeneralization Advantages\nAdditionally, we leverage statistical learning theory to\ndemonstrate the generalization advantage provided by the\nrecursive and parameter-sharing structure of RcAE. In Theorem 3, we establish\n√ that RcAE achieves a generalization\ngap approximately N times smaller compared to conventional deep autoencoders due to the significant reduction in\nparameter count.\nThe practical significance of this theoretical result is validated in Section 4, where experiments using only 10% of\nthe training samples from the MVTec AD dataset show that\nRcAE maintains significantly higher performance compared\nto standard deep AE models. This underscores the practical\nutility of RcAE’s superior generalization ability, especially\nimportant in industrial scenarios with limited training data.\n\nwhere β ∈ (0, 1) is a contraction factor that depends on the\nnetwork’s capacity and training. This inequality states that\nthe distance between compressed representations of anomalous and normal inputs is smaller than the original distance.\nNext, we examine the reconstruction process. Let Rn :\nXn → X be the reconstruction operator that maps compressed representations back to the input space:\n\nTheorem 3 (Generalization Advantage). Given a training\ndataset of m normal samples, with probability at least 1 − δ,\nthe recursive architecture achieves\na generalization gap that\n√\nis approximately a factor of N smaller than a conventional\ndeep architecture:\ns\nGrec\nlog(|Frec |) + log(1/δ)\n1\n,\n(21)\n≤√ ·\nGdeep\nlog(|Fdeep |) + log(1/δ)\nN\n\nRn (z) = D(n) (z; θ D ).\n\nwhere G represents the generalization gap between training\nand test error.\n\n(16)\n\nThe regularization term R(f ) enforces a smooth progression of reconstructions across iterations. For normal patterns, this ensures gradual refinement of details. For anomalous patterns, however, this constraint prevents the reconstruction of anomalous components that were not present in\nthe training data.\nThe final reconstruction error for the anomalous input can\nbe bounded as follows:\n∥xa − D(N ) (E (N ) (xa ; θ E ); θ D )∥\n=∥xn + ∆a − RN (CN (xa ))∥\n≥∥∆a ∥ − ∥xn − RN (CN (xa ))∥.\n\n(17)\n\n∥xn − RN (CN (xa ))∥ ≤ γ · ∥∆a ∥,\n\n(18)\n\nSince RN (CN (xa )) is constrained to lie close to the normal data manifold due to the regularization term, we have:\nwhere γ ∈ (0, 1) is a factor that depends on the network’s\ncapacity and training.\nCombining these inequalities, we get:\n∥xa − D(N ) (E (N ) (xa ; θ E );θ D )∥ ≥ (1 − γ) · ∥∆a ∥\n= (1 − γ) · d(xa , Xnormal ).\n(19)\nTaking the expectation over all anomalies, and setting\nα = (1 − γ), we obtain:\nEx∈Xanomaly [∥x − D(N ) (E (N ) (x; θ E ); θ D )∥] ≥\nwhich completes the proof.\n\nα · d(Xnormal , Xanomaly ).\n\n(20)\nQ.E.D.\n\nThese theorems formally establish the key advantages of\nour recursive architecture: a constrained function space that\nprevents anomaly memorization and significantly improved\ngeneralization with limited training data.\nProof. (Theorem 3) From statistical learning theory, the\ngeneralization gap for a hypothesis class F trained on m\nsamples is bounded with probability at least 1 − δ by:\nr\nlog(|F|) + log(1/δ)\nG(F) ≤\n,\n(22)\n2m\nwhere |F| represents the size of the function class, which\ncan be approximated by the number of distinct functions the\nclass can represent.\nFor neural networks, the size of the function class is related to the number of parameters. Specifically, for a network with p parameters, each quantized to b bits, the size of\nthe function class is bounded by 2bp . Therefore, log(|F|) ≈\nbp.\nLet pdeep and prec denote the number of parameters in the\nconventional deep and recursive architectures, respectively.\nFor the conventional architecture with N distinct encoderdecoder pairs, we have:\npdeep =\n\nN\nX\ni=1\n\n|θ Ei | +\n\nN\nX\ni=1\n\n|θ Di |.\n\n(23)\n\nFor the recursive architecture with shared parameters, we\nhave:\nprec = |θ E | + |θ D |.\n(24)\n\n\fAssuming uniformity in the encoder and decoder blocks,\ni.e., |θ Ei | ≈ |θ E | and |θ Di | ≈ |θ D | for all i, we get:\npdeep ≈ N · (|θ E | + |θ D |) = N · prec .\n\n(26)\n\nNow, applying the generalization bound, the ratio of generalization gaps becomes:\nq\nlog(|Frec |)+log(1/δ)\nGrec\n2m\n=q\nGdeep\nlog(|Fdeep |)+log(1/δ)\n2m\n(27)\ns\n=\n\nlog(|Frec |) + log(1/δ)\n.\nlog(|Fdeep |) + log(1/δ)\n\nWhen log(|Frec |) and log(|Fdeep |) are both large compared to log(1/δ), which is typically the case for neural networks with many parameters, we can approximate:\ns\nlog(|Frec |)\nGrec\n≈\nGdeep\nlog(|Fdeep |)\n(28)\nr\n1\n1\n≈\n=√ .\nN\nN\nThis shows that the recursive architecture achieves\n√ a generalization gap that is approximately a factor of N smaller\nthan the conventional deep architecture, completing the\nproof.\nQ.E.D.\n\nMulti-Scale Information Capacity\nFinally, employing information-theoretic principles, we formally establish how RcAE captures multi-scale information consistently across recursion depths. Theorem 4 demonstrates that mutual information between intermediate reconstructions and input images monotonically increases with recursion depth in normal patterns. Moreover, the incremental\ninformation gains across scales remain nearly constant for\nnormal samples, but become unstable for anomalies.\nThis theoretical result provides a solid foundation for our\nCross Recursion Detection (CRD) module, as introduced in\nSection 3, effectively exploiting the disparity in scale-wise\ninformation gain to detect anomalies robustly. The empirical\nimpact of CRD, shown in Table 6, confirms our theoretical\nexpectations, substantially enhancing anomaly detection accuracy.\nTheorem 4 (Multi-Scale Information Capacity). The recursive architecture with N iterations captures multi-scale information equivalent to a depth-N conventional network but\nwith enhanced scale consistency. Specifically, for an input x\nand scale level n:\nI(InR ; x) ≥ I(In−1\nR ; x),\n\nI(InR ; x) − I(In−1\nR ; x)\n≈ constant\nn−2\nI(In−1\n;\nx)\n−\nI(I\nR\nR ; x)\n\n(25)\n\nTherefore, the ratio of the logarithms of the function class\nsizes is:\nbprec\nprec\n1\nlog(|Frec |)\n≈\n=\n≈ .\nlog(|Fdeep |)\nbpdeep\npdeep\nN\n\nwhere I(·; ·) represents mutual information, and the incremental information gain at each scale is consistent:\n\n(29)\n\n(30)\n\nfor normal data, but not for anomalous data.\nThis theorem establishes the theoretical foundation for\nour Multi-Scale Anomaly Detection approach, showing how\nthe recursive architecture inherently captures hierarchical information that can distinguish between normal and anomalous patterns.\nProof. (Theorem 4) We begin with the data processing inequality from information theory, which states that for any\nprocessing function f , the mutual information between the\ninput and output cannot increase:\nI(x; f (x)) ≤ I(x; x) = H(x),\n\n(31)\n\nI(InR ; x) ≥ I(In−1\nR ; x).\n\n(33)\n\nwhere H(x) is the entropy of x.\nLet us define the intermediate reconstructions at different\nscales as:\nInR = D(n) (E (N ) (x)),\n(32)\nn\nwhere n ∈ {1, 2, . . . , N }. Note that IR represents the result of applying the shared decoder n times to the final compressed representation E (N ) (x).\nWe want to show that the mutual information between\nthese reconstructions and the original input increases monotonically with n:\nFor normal data, the encoder E and decoder D are trained\nto preserve information relevant to reconstruction. Each application of the decoder D refines the reconstruction by\nincorporating additional details. Therefore, InR contains at\nleast as much information about x as In−1\ndoes.\nR\nMore formally, we can define a residual function ∆n such\nthat:\nInR = In−1\n+ ∆n (In−1\n(34)\nR\nR ).\nFor normal data, ∆n is trained to add relevant details that\nbring the reconstruction closer to the original input. Therefore:\nn−1\nI(InR ; x) = I(In−1\n+ ∆n (In−1\nR\nR ); x) ≥ I(IR ; x). (35)\n\nNext, we examine the consistency of information gain\nacross iterations. For normal data, the recursive architecture\nwith shared parameters is trained to add information at a\nconsistent rate across iterations. The regularization term:\nR(f ) =\n\nN\nX\n\nn=1\n\n∥D(n) (E (n) (x)) − D(n−1) (E (n−1) (x))∥2\n\n(36)\nenforces smooth transitions between consecutive reconstructions, which leads to approximately constant information gain ratios:\nI(InR ; x) − I(In−1\nR ; x)\n≈ constant.\nn−1\nI(IR ; x) − I(In−2\nR ; x)\n\n(37)\n\n\fFor anomalous data, however, this consistency breaks\ndown. Since the network was trained only on normal data,\nit has not learned to consistently recover anomalous patterns\nacross iterations. The parameter-sharing constraint prevents\nthe network from adapting specifically to anomalies at different scales. Therefore, the information gain is not consistent for anomalous data:\nI(InR ; xa ) − I(In−1\nR ; xa )\n̸= constant,\n(38)\nn−1\nI(IR ; xa ) − I(In−2\nR ; xa )\nwhere xa is an anomalous input.\nThis difference in information gain consistency between\nnormal and anomalous data enables effective multi-scale\nanomaly detection. By analyzing the pattern of information\ngain across scales, we can distinguish between normal and\nanomalous inputs even if the final reconstruction quality is\nsimilar.\nQ.E.D.\n\nSummary of Theoretical Analysis\nIn summary, our theoretical analysis provides clear insights\ninto the core advantages of RcAE:\n• Recursive architecture and parameter sharing impose\nscale-consistent and restrictive function-space constraints;\n• Constrained function space inherently prevents anomaly\nmemorization;\n• Parameter sharing substantially improves the generalization ability of RcAE;\n• Recursive design naturally generates stable multi-scale\nrepresentations beneficial for robust anomaly detection.\nThese theoretical properties have been comprehensively\nvalidated by empirical experiments detailed in Sections 4,\nhighlighting the efficacy and practical value of RcAE for industrial anomaly detection tasks.\n\nAdditional Implementation Details\n\nThis section provides comprehensive implementation details\nof our proposed method to facilitate reproducibility and clarify architectural and procedural design choices. We first describe the training and inference procedures, including a\nmulti-stage training strategy tailored for stable and efficient\nmodule optimization. Pseudocode for both training and inference workflows is presented to illustrate step-by-step operations. Subsequently, we detail the network architectures\nof each component: Recursive Convolutional Autoencoder\n(RcAE), Detail Preservation Network (DPN), and Cross Recursion Detection (CRD), through layer-wise specifications\nand structural annotations.\n\nTraining and Inference Procedure\nWe employ a three-stage training strategy to ensure stable\nand modular optimization of each component (summarized\nin Algorithm 1):\n• Stage 1: RcAE Training. RcAE is trained solely on normal images using the recursive reconstruction loss Lrec .\nTo prevent shortcut learning and overfitting to specific recursion depths, we randomly select N ∈ [1, 5] for each\ntraining batch.\n\n• Stage 2: DPN Training. RcAE is frozen, and DPN is\ntrained to enhance fine details via residual maps ResnD ,\nadded to RcAE outputs InR . To provide structural guidance, the input image’s gradient map I′ j is concatenated\nwith InR as DPN’s input.\n• Stage 3: CRD Training. RcAE and DPN are both\nfrozen. CRD is trained to predict anomaly maps MA\nusing pseudo ground-truth masks MP derived from\nlightweight augmentations. The CRD input includes both\naugmented image Îj and the refined reconstruction InD .\nOptimization uses the anomaly localization loss LCRD .\n\nThis modular training strategy ensures that each component learns a specialized function while avoiding interference between stages. We apply augmentations such as random color blocks, copy-paste patches, and synthetic crack\nlines to generate augmented image Î and corresponding\npseudo-masks MP for CRD training (details in Section 3).\nAlgorithm 1: Multi-Stage Training Procedure\nRequire: Training set Dtrain = {Ii }Si=1 contains S normal\nimages I; set recursive depth = 5\nEnsure: Trained RcAE, DPN, and CRD models\n\n1: Stage 1: Train RcAE solely\n2: for each batch {Ij } in Dtrain do\n3:\nApply augmentation: Îj ← Augment(Ij )\n4:\nRandomly select recursion depth N ∈ [1, 5]\n5:\nPerform N -step recursive reconstruction to get IN\nR\n6:\nCompute Lrec between IN\nR and Ij\n7:\nUpdate RcAE parameters θE and θD\n8: end for\n9: Stage 2: Train DPN with RcAE frozen\n10: for each batch {Ij } in Dtrain do\n11:\nGet In\nR (n = 1...N ) via RcAE with fixed recursion depth\nN =5, and concatenate with gradient map I′ j of the input\n12:\nDPN predicts residual details Resn\nD\nn\nn\n13:\nEnhance details by In\nD = IR + ResD\nn\n14:\nCompute LDPN between ID and Ij\n15:\nUpdate DPN parameters θDPN\n16: end for\n17: Stage 3: Train CRD with RcAE and DPN frozen\n18: for each batch {Ij } in Dtrain do\n19:\nApply augmentation Îj ← Augment(Ij )\n20:\nGenerate pseudo-mask MP of augmentation\n21:\nGenerate In\nD , (n = 1...N ) via RcAE and DPN, and concatenate with the input Îj\n22:\nCRD predicts anomaly map MA\n23:\nCompute LCRD between MA and MP\n24:\nUpdate CRD parameters θCRD\n25: end for\n\nWe train all components of our framework from scratch\nusing the Adam optimizer with a learning rate η = 10−4 ,\nβ1 = 0.9, β2 = 0.999, and ϵ = 10−8 . Training is conducted in three stages with the following schedule: Stage 1\nfor 1500 epochs, Stage 2 for 400 epochs, and Stage 3 for 300\nepochs. The recursion depth is set to N = 5, input size is\n1024 × 1024 during training and inference. All experiments\nare conducted using an NVIDIA RTX 4090 GPU , running\non Ubuntu 22.04 with Python 3.8 and PyTorch 2.7.1. Our\n\n\fcode is implemented with mixed-precision training to accelerate computation and reduce memory usage.\nDuring inference (Algorithm 2), the test image undergoes n-step recursive reconstruction, followed by DPN refinement. CRD predicts the final anomaly map MA , from\nwhich the pixel-level anomaly score is directly obtained. The\nimage-level score is computed as the average of the top-k\npixel values in MA .\nAlgorithm 2: Inference Procedure\nRequire: Test image I; trained RcAE, DPN, CRD\nOutput: Anomaly map MA and image-level anomaly score\n1: Perform N -step recursive reconstruction on I via RcAE to obtain In\nR\nn\nn\n′\nn\n2: DPN refines result by In\nD = IR + ResD using I and IR\nn\n3: CRD predicts anomaly map MA using I and ID\n4: Output MA as final anomaly score map, and avg. Top-k of\nMA as image-level score\n\nNetwork Architecture\nThe detailed architecture of our proposed method is summarized in the following tables, which include: the Recursive\nConvolutional Autoencoder (RcAE), composed of encoder\nE(·) and decoder D(·) (Tables S1 and S2), the Detail PreserTable S1: Layer-wise specification of E(·) in RcAE, and\nskip connections use element-wise addition.\nStage\n\nLayer(s)\n\nInput\n\n-\n\n-\n\n3\n\nH×W\n\nEnc1-a\nEnc1-b\nDown1\n\nConv 3×3 + IN + ReLU\nConv 3×3 + IN + ReLU\nConv 2×2\n\n3/1\n3/1\n2/2\n\n32\n32\n32\n\nEnc2-a\nEnc2-b\nDown2\n\nConv 3×3 + IN + ReLU\nConv 3×3 + IN + ReLU\nConv 2×2\n\n3/1\n3/1\n2/2\n\n64\n64\n64\n\nH×W\nH×W\nH\nW\n2× 2\n\nEnc3-a\nEnc3-b\nDown3\n\nConv 3×3 + IN + ReLU\nConv 3×3 + IN + ReLU\nConv 2×2\n\n3/1\n3/1\n2/2\n\n128\n128\n128\n\nEnc4-a\nEnc4-b\nDown4\n\nConv 3×3 + IN + ReLU\nConv 3×3 + IN + ReLU\nConv 2×2\n\n3/1\n3/1\n2/2\n\n256\n256\n256\n\nBott-a\nBott-b\n\nConv 3×3 + IN + ReLU\nConv 3×3 + IN + ReLU\n\n3/1\n3/1\n\n512\n512\n\nUpConv4 T-Conv 2×2\nDec4-a\nConv 3×3 + IN + ReLU\nDec4-b\nConv 3×3 + IN + ReLU\n\n2/2\n3/1\n3/1\n\n256\n256\n256\n\nUpConv3 T-Conv 2×2\nDec3-a\nConv 3×3 + IN + ReLU\nDec3-b\nConv 3×3 + IN + ReLU\n\n2/2\n3/1\n3/1\n\n128\n128\n128\n\nUpConv2 T-Conv 2×2\nDec2-a\nConv 3×3 + IN + ReLU\nDec2-b\nConv 3×3 + IN + ReLU\n\n2/2\n3/1\n3/1\n\n64\n64\n64\n\nUpConv1 T-Conv 2×2\nDec1-a\nConv 3×3 + IN + ReLU\nDec1-b\nConv 3×3 + IN + ReLU\n\n2/2\n3/1\n3/1\n\n32\n32\n32\n\nH×W\nH×W\nH×W\n\nOutput\n\n2/2\n\n3\n\nH\nW\n2× 2\n\nConv 2×2 + Sigmoid\n\nTable S2: Layer-wise specification of D(·) in RcAE, and\nskip connections use element-wise addition.\nStage\n\nLayer(s)\n\nInput\n\n-\n\n-\n\n3\n\nEnc1-a\nEnc1-b\nDown1\n\nConv 3×3 + IN + ReLU\nConv 3×3 + IN + ReLU\nConv 2×2\n\n3/1\n3/1\n2/2\n\n32\n32\n32\n\nEnc2-a\nEnc2-b\nDown2\n\nConv 3×3 + IN + ReLU\nConv 3×3 + IN + ReLU\nConv 2×2\n\n3/1\n3/1\n2/2\n\n64\n64\n64\n\nEnc3-a\nEnc3-b\nDown3\n\nConv 3×3 + IN + ReLU\nConv 3×3 + IN + ReLU\nConv 2×2\n\n3/1\n3/1\n2/2\n\n128\n128\n128\n\nEnc4-a\nEnc4-b\nDown4\n\nConv 3×3 + IN + ReLU\nConv 3×3 + IN + ReLU\nConv 2×2\n\n3/1\n3/1\n2/2\n\n256\n256\n256\n\nBott-a\nBott-b\n\nConv 3×3 + IN + ReLU\nConv 3×3 + IN + ReLU\n\n3/1\n3/1\n\n512\n512\n\nUpConv4 T-Conv 2×2\nDec4-a\nConv 3×3 + IN + ReLU\nDec4-b\nConv 3×3 + IN + ReLU\n\n2/2\n3/1\n3/1\n\n256\n256\n256\n\nUpConv3 T-Conv 2×2\nDec3-a\nConv 3×3 + IN + ReLU\nDec3-b\nConv 3×3 + IN + ReLU\n\n2/2\n3/1\n3/1\n\n128\n128\n128\n\nUpConv2 T-Conv 2×2\nDec2-a\nConv 3×3 + IN + ReLU\nDec2-b\nConv 3×3 + IN + ReLU\n\n2/2\n3/1\n3/1\n\n64\n64\n64\n\nUpConv1 T-Conv 2×2\nDec1-a\nConv 3×3 + IN + ReLU\nDec1-b\nConv 3×3 + IN + ReLU\n\n2/2\n3/1\n3/1\n\n32\n32\n32\n\nOutput\n\n2/2\n\n3\n\nT-Conv 2×2 + Sigmoid\n\nKernel / Str. Channels Output size\nH\nW\n2× 2\nH\nW\n×\n2\n2\nH\nW\n2× 2\nH\nW\n4× 4\nH\nW\n4× 4\nW\nH\n4× 4\nH\nW\n×\n8\n8\nW\nH\n8× 8\nH\nW\n8× 8\nH\nW\n16 × 16\nW\nH\n16 × 16\nH\nW\n×\n16 16\nH\nW\n32 × 32\nH\nW\n32 × 32\nH\nW\n×\n32 32\nW\nH\n16 × 16\nH\nW\n16 × 16\nH\nW\n16 × 16\nH\nW\n8× 8\nH\nW\n8× 8\nW\nH\n8× 8\nH\nW\n4× 4\nH\nW\n×\n4\n4\nH\nW\n×\n4\n4\nH\nW\n2× 2\nH\nW\n2× 2\nH\nW\n×\n2\n2\n\nH×W\n\nKernel / Str. Channels Output size\n\nH\nW\n2× 2\nH\nW\n2× 2\nW\nH\n×\n4\n4\nH\nW\n4× 4\nH\nW\n4× 4\nH\nW\n8× 8\nH\nW\n8× 8\nH\nW\n×\n8\n8\nH\nW\n16 × 16\nH\nW\n16 × 16\nH\nW\n×\n16 16\nH\nW\n8× 8\nH\nW\n8× 8\nH\nW\n×\n8\n8\nH\nW\n4× 4\nH\nW\n4× 4\nH\nW\n4× 4\nH\nW\n2× 2\nH\nW\n×\n2\n2\nH\nW\n2× 2\n\nvation Network (DPN, Table S3), and the Cross Recursion\nDetection module (CRD, Table S4).\nRcAE: Recursive Convolutional Autoencoder. RcAE is\ncomposed of two shared AEs E(·) and D(·), detailed layer\nspecifications for E(·) and D(·) are provided in Tables S1\nand S2. Here, T-Conv denote transposed convolution layers,\nand IN refers to Instance Normalization. To mitigate shortcut learning and improve generalization, we adopt recursive\nreconstruction with parameter sharing and train RcAE on\nnormal data only. All convolution layers use Instance Normalization and ReLU activation, while the final layer uses a\nsigmoid activation to map outputs to [0, 1].\nDPN: Detail Preservation Network. The DPN adopts a\nlightweight AE architecture (Table S3) with four downsampling and upsampling stages, using LeakyReLU activations\nfor better feature discrimination. The input to DPN is a concatenation of the RcAE output InR and a gradient map of the\ninput image, which provides structural guidance for detail\nrecovery. The output of DPN is a residual map ResnD added\nto InR to produce the enhanced reconstruction InD .\nCRD: Cross Recursion Detection Module. The CRD is\na 3D convolutional autoencoder (Table S4) that processes\nstacked reconstructions {I1D , ..., IN\nD } to detect anomalies\nacross recursive iterations. It captures both spatial and crossrecursion patterns by treating the recursion depth as the third\n\n\fTable S3: Layer-wise specification of the DPN, and skip\nconnections use element-wise addition.\n\nTable S4: Layer-wise specification of CRD, and skip connections use element-wise addition.\n\nStage\n\nLayer(s)\n\nKernel/Str.\n\nCh.\n\nOutput\n\nStage\n\nLayer\n\nInput\n\n-\n\n-\n\n4\n\nH×W\n\nInput\n\n-\n\nEnc1-a\nEnc1-b\nDown1\n\nConv 3×3 + IN + LeakyReLU\nConv 3×3 + IN + LeakyReLU\nConv 2×2\n\n3/1\n3/1\n2/2\n\n16\n16\n16\n\nEnc1-a\nEnc1-b\nDown1\n\nEnc2-a\nEnc2-b\nDown2\n\nConv 3×3 + IN + LeakyReLU\nConv 3×3 + IN + LeakyReLU\nConv 2×2\n\n3/1\n3/1\n2/2\n\n32\n32\n32\n\nH×W\nH×W\nH\nW\n2× 2\n\nEnc3-a\nEnc3-b\nDown3\n\nConv 3×3 + IN + LeakyReLU\nConv 3×3 + IN + LeakyReLU\nConv 2×2\n\n3/1\n3/1\n2/2\n\n64\n64\n64\n\nEnc4-a\nEnc4-b\nDown4\n\nConv 3×3 + IN + LeakyReLU\nConv 3×3 + IN + LeakyReLU\nConv 2×2\n\n3/1\n3/1\n2/2\n\n128\n128\n128\n\nBott-a\nBott-b\n\nConv 3×3 + IN + LeakyReLU\nConv 3×3 + IN + LeakyReLU\n\n3/1\n3/1\n\n256\n256\n\nUp4\nDec4-a\nDec4-b\n\nT-Conv 2×2\nConv 3×3 + IN + LeakyReLU\nConv 3×3 + IN + LeakyReLU\n\n2/2\n3/1\n3/1\n\n128\n128\n128\n\nUp3\nDec3-a\nDec3-b\n\nT-Conv 2×2\nConv 3×3 + IN + LeakyReLU\nConv 3×3 + IN + LeakyReLU\n\n2/2\n3/1\n3/1\n\n64\n64\n64\n\nUp2\nDec2-a\nDec2-b\n\nT-Conv 2×2\nConv 3×3 + IN + LeakyReLU\nConv 3×3 + IN + LeakyReLU\n\n2/2\n3/1\n3/1\n\n32\n32\n32\n\nUp1\nDec1-a\nDec1-b\n\nT-Conv 2×2\nConv 3×3 + IN + LeakyReLU\nConv 3×3 + IN + LeakyReLU\n\n2/2\n3/1\n3/1\n\n16\n16\n16\n\nH×W\nH×W\nH×W\n\nFinal-1\nFinal-2\n\nConv 3×3\nConv 3×3\n\n3/1\n3/1\n\n3\n3\n\nH×W\nH×W\n\nH\nW\n2× 2\nW\nH\n2× 2\nH\nW\n×\n4\n4\nH\nW\n4× 4\nH\nW\n4× 4\nH\nW\n×\n8\n8\nH\nW\n8× 8\nW\nH\n8× 8\nH\nW\n×\n16 16\nH\nW\n16 × 16\nH\nW\n×\n16 16\nH\nW\n8× 8\nH\nW\n8× 8\nH\nW\n×\n8\n8\nH\nW\n4× 4\nH\nW\n4× 4\nH\nW\n×\n4\n4\nH\nW\n2× 2\nH\nW\n2× 2\nH\nW\n×\n2\n2\n\ndimension of a 3D input tensor. All 3D convolution layers\nare followed by Instance Normalization and ReLU activations, except the final layer, which uses a sigmoid function\nto produce the anomaly map MA .\n\nAdditional Experimental Results\nIn this section, we provide supplementary experimental results to further validate the effectiveness of our proposed\nframework. We analyze the quantitative and qualitative contributions of key components, with a particular focus on the\nDetail Preservation Network (DPN) and the recursive reconstruction process. Additionally, we compare reconstruction quality against state-of-the-art methods to highlight our\nmethod’s practical advantages in both fidelity and efficiency.\n\nKernel\n\nStride\n\nCh.\n\nOutput size\n\n-\n\n-\n\n1\n\nConv3D + IN + ReLU\nConv3D + IN + ReLU\nConv3D\n\n33\n33\n1×2×2\n\n13\n13\n1, 2, 2\n\n32\n32\n32\n\nD×H ×W\n\nEnc2-a\nEnc2-b\nDown2\n\nConv3D + IN + ReLU\nConv3D + IN + ReLU\nConv3D\n\n33\n33\n1×2×2\n\n13\n13\n1, 2, 2\n\n64\n64\n64\n\nEnc3-a\nEnc3-b\nDown3\n\nConv3D + IN + ReLU\nConv3D + IN + ReLU\nConv3D\n\n33\n33\n1×2×2\n\n13\n13\n1, 2, 2\n\n128\n128\n128\n\nEnc4-a\nEnc4-b\nDown4\n\nConv3D + IN + ReLU\nConv3D + IN + ReLU\nConv3D\n\n33\n33\n1×2×2\n\n13\n13\n1, 2, 2\n\n256\n256\n256\n\nBott-a\nBott-b\n\nConv3D + IN + ReLU\nConv3D + IN + ReLU\n\n33\n33\n\n13\n13\n\n512\n512\n\nUp4\nDec4-a\nDec4-b\n\nT-Conv3D\nConv3D + IN + ReLU\nConv3D + IN + ReLU\n\n1×2×2\n33\n33\n\n1, 2, 2\n13\n13\n\n256\n256\n256\n\nUp3\nDec3-a\nDec3-b\n\nT-Conv3D\nConv3D + IN + ReLU\nConv3D + IN + ReLU\n\n1×2×2\n33\n33\n\n1, 2, 2\n13\n13\n\n128\n128\n128\n\nUp2\nDec2-a\nDec2-b\n\nT-Conv3D\nConv3D + IN + ReLU\nConv3D + IN + ReLU\n\n1×2×2\n33\n33\n\n1, 2, 2\n13\n13\n\n64\n64\n64\n\nUp1\nDec1-a\nDec1-b\n\nT-Conv3D\nConv3D + IN + ReLU\nConv3D + IN + ReLU\n\n1×2×2\n33\n33\n\n1, 2, 2\n13\n13\n\n32\n32\n32\n\nFinal-1\nFinal-2\n\nConv3D\nConv3D + Sigmoid\n\nD×3×3\n13\n\n13\n13\n\n1\n1\n\nD×H ×W\nD×H ×W\nW\nD× H\n2 × 2\nW\nD× H\n2 × 2\nW\nD× H\n2 × 2\nW\nD× H\n×\n4\n4\nW\nD× H\n4 × 4\nW\nD× H\n4 × 4\nW\nD× H\n8 × 8\n\nW\nD× H\n8 × 8\nW\nD× H\n×\n8\n8\nH\nD × 16\n×W\n16\nH\n×W\nD × 16\n16\nH\nD × 16\n×W\n16\nW\nD× H\n8 × 8\nW\nD× H\n×\n8\n8\nW\nD× H\n8 × 8\nW\nD× H\n4 × 4\nW\nD× H\n×\n4\n4\nW\nD× H\n×\n4\n4\nW\nD× H\n2 × 2\nW\nD× H\n2 × 2\nW\nD× H\n×\n2\n2\n\nD×H ×W\nD×H ×W\nD×H ×W\n1×H ×W\n1×H ×W\n\n(n = 5), with and without DPN. As summarized in Table S5,\nDPN yields average SSIM and PSNR gains of 0.059 and\n0.61 dB, respectively, with maximum improvements reaching 0.32 and 2.61 dB. Additionally, when DPN is combined\nwith CRD, it leads to further AUROC improvements of 0.5%\n(image-level) and 0.7% (pixel-level), demonstrating its contribution to anomaly detection performance.\nFigure S1 further provides a qualitative comparison of reconstruction results with and without DPN on representative\nsamples. The standard RcAE output I5R often suffers from\nloss of fine details, especially on highly textured surfaces\nsuch as leather and zipper. In contrast, the DPN-enhanced\noutput I5D restores critical texture and structural information, while maintaining anomaly suppression. This selective detail enhancement capability arises from DPN’s independent training on normal samples, which prevents rein-\n\nEffectiveness of Detail Preservation Network\nTo evaluate the contribution of the Detail Preservation Network (DPN), we analyze its impact on both anomaly detection performance and reconstruction quality. As shown\nin Table 2 of the main paper, incorporating DPN (without\nCRD) improves image-level and pixel-level AUROC from\n94.1% / 95.8% to 95.7% / 96.6%.\nFor reconstruction quality evaluation, we compute PSNR\nand SSIM on normal images using the final recursive output\n\nTable S5: Quantitative evaluation of DPN. Inference cost is\nmeasured per image.\nModel\n\nInference\nCost\n\n+DPN\n\n+2.1 ms\n\nMax.\n\nQuality Gain\nAvg.\n\nAUROC\nGain\n\nSSIM: +0.32\nPSNR: +2.61 dB\n\nSSIM: +0.059\nPSNR: +0.61 dB\n\nI: +0.5\nP: +0.7\n\n\fbut may preserve some anomalies, whereas later iterations\nsuppress anomalies more effectively but may lose fine structures. This trade-off enables our method to detect both small\nand large anomalies by aggregating multi-scale residual information across iterations. This hierarchical processing offers superior semantic representation compared to conventional single-pass autoencoders.\n\nComparison of Reconstruction Quality\n\n(a) Input images\n\n(b) I5R (w/o DPN)\n\n(c) I5D (w/ DPN)\n\nFigure S1: Qualitative comparison of reconstruction results\nwith/without DPN. DPN enhances fine details while preserving anomaly suppression, particularly on textured surfaces such as leather and zipper.\ntroduction of anomalies. However, while the improvements\nare most notable on highly textured surfaces, such as leather\nand zipper, the effect of DPN is less pronounced on objects\nwith smooth or homogeneous textures (e.g., bottle and grid),\nwhere detail loss is minimal.\n\nReconstruction Dynamics of the RcAE\nAs discussed in Section 3 in the main paper, the recursive\nconvolutional autoencoder (RcAE) progressively transforms\nthe input into an anomaly-free reconstruction via shared parameters across recursive iterations. A unique advantage of\nour framework is its ability to utilize intermediate reconstructions {I1D , . . . , IN\nD } for anomaly detection.\nFigure S2 illustrates the reconstruction results at different\nrecursion depths. Early iterations retain more local details\n\nFigure S3 presents a visual comparison of reconstruction\nresults from our method and several state-of-the-art approaches on MVTec AD. For fair comparison with conventional single-pass methods, we use the final recursive output\nI5D from our framework.\nAmong non-diffusion baselines, DREAM, EdgRec, and\nUniAD exhibit limited capability in anomaly removal, often\nleaving visible defects in reconstructed images. Additionally, these methods tend to over-smooth textures, resulting\nin loss of fine structural details.\nDiffusion-based methods such as DiAD and GLAD generally offer higher reconstruction fidelity. However, DiAD\ncan effectively suppress many anomalies, but in some cases\nwith huge structure anomalies (i.e., transistor) it fails to\nfully remove abnormal patterns, leaving subtle traces in the\noutput. GLAD achieves strong reconstruction quality, but\noccasionally introduces semantic or details inconsistencies\n(such as metal nut and grid), potentially due to the stochastic nature of diffusion sampling. Moreover, both DiAD and\nGLAD incur substantial computational costs due to their iterative sampling steps, which often requiring hundreds of\nforward passes per image, causing in high latency and significant resource demands. This complexity limits their applicability in real-time or edge-computing scenarios.\nIn contrast, our method delivers high-fidelity reconstructions that are both detail-preserving and anomalyfree, closely matching the quality of GLAD. Notably, this\nis achieved with substantially lower computational cost\nand fewer parameters, enabling practical deployment in\nresource-constrained environments (see Figure 4 in the main\npaper). These results underscore the strength of our approach in balancing visual quality, detection accuracy, and\ninference efficiency.\nFurthermore, as shown in Table 1 of the main paper, our\nmethod achieves the highest localization performance and\ncompetitive detection accuracy across all datasets, demonstrating strong and consistent generalization.\n\nBroader Impact Discussion\nWe proposed an efficient recursive autoencoder framework\nfor unsupervised industrial anomaly detection, achieving\nstate-of-the-art performance with a few computational cost\nand no external priors. Its lightweight, self-supervised design is ideal for real-world industrial applications such as\nautomated defect inspection, predictive maintenance, and\nequipment monitoring, especially where computational resources or annotated data are limited.\nBeyond industrial use cases, the core principles of our\napproach in this paper (i.e., recursive reconstruction refine-\n\n\f(a) Input images\n\n(b) I1D\n\n(c) I2D\n\n(d) I3D\n\n(e) I4D\n\n(f) I5D\n\n(g) Groundtruths\n\n(h) Results\n\nFigure S2: Qualitative reconstruction results at different recursion steps (n = 1 to 5) using RcAE (N = 5), along with ground\ntruth masks and final anomaly maps. Early iterations (b–d) retain more local details but may preserve anomalies. Later iterations\n(e–f) progressively normalize anomalies but can lose fine textures. The final anomaly map leverages multi-scale features across\nall recursive outputs {I1D , . . . , I5D }, enabling robust detection of both small and large anomalies.\n\n\f(a) Input images\n\n(b) EdgRec\n\n(c) DREAM\n\n(d) UniAD\n\n(e) DiAD\n\n(f) GLAD\n\n(g) Ours (I5D )\n\nFigure S3: Comparison of reconstruction results between our method and prior work. For our method, the final recursive\nreconstruction I5D is used. Non-diffusion methods (b–d) fail to fully suppress anomalies and recover fine details. Diffusionbased methods (e–f) achieve high fidelity but at high computational cost, and GLAD occasionally introduces semantic or\ndetails inconsistencies. Our method (g) achieves comparable visual quality to GLAD while being significantly more efficient.\nment, parameter sharing, and multi-scale anomaly localization) offer broad applicability. Potential extensions include\nmedical imaging (e.g., anomaly detection in radiology), remote sensing (e.g., disaster assessment), and AI security\n(e.g., defense of backdoor attack in vision models), where\n\nefficient, unsupervised solutions are in high demand. Our future work will explore integrating lightweight domain priors\nor hybrid architectures to enhance semantic understanding\nand extend our recursive framework to other vision tasks requiring both precision and efficiency.\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"