"<!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>Plan First, Judge Later, Run Better: A DMAIC-Inspired Agentic System\nfor Industrial Anomaly Detection\nYongzi Yu1 , Ao Li2 , Le Wang3 , Ziyue Li4 ,\nFugee Tsung2 , Yuxuan Liang1 , Man Li†5\n1\nThe Hong Kong University of Science and Technology (Guangzhou),\n2\nThe Hong Kong University of Science and Technology, 3 Shanghai University of Finance and Economics,\n4\nTechnische Universität München, 5 Southwestern University of Finance and Economics\nyyu322@connect.hkust-gz.edu.cn † Corresponding Author\nNo\nK\nN no\nEx o J wled\nec udg ge\nute e\nOn\nly\n\narXiv:2606.04599v1 [cs.AI] 3 Jun 2026\n\nAbstract\nLarge language model (LLM) agents have\nshown promise in automating complex dataanalysis workflows, but their reliable deployment remains challenging in high-stakes industrial scenarios. Industrial anomaly detection (IAD) is essential for manufacturing quality, safety, and efficiency, yet existing LLMbased IAD agents mainly focus on execution while under-exploiting strategy formulation. Consequently, they struggle to handle\nheterogeneous modalities in a unified and costeffective manner. Inspired by the DMAIC\nquality-management framework, we propose\nDMAIC-IAD (DMAIC-inspired Agentic Industrial Anomaly Detection), a \"Plan First,\nJudge Later\" multi-agent system that aligns\nLLM agents with structured industrial problemsolving. DMAIC-IAD distills heterogeneous\nreferences into standardized operating procedures (SOPs) before strategy generation, and\nintroduces a pre-trained execution-free judge\nmodel to rank candidate strategies without\ncostly runtime trials. Extensive experiments\nacross four modalities show that DMAIC-IAD\nimproves average detection performance over\napplicable agentic baselines by 37.76%.\n\n1\n\nIntroduction\n\nAnomaly detection is the process of identifying deviations from the expected behaviors of normal data\n(Chandola et al., 2009). In complex industrial systems, it is widely used to detect faults on the visual\nsurface (Cui et al., 2023; Bergmann et al., 2019),\ntime-series telemetry (Hundman et al., 2018; Wang\net al., 2026), tabular process (Wang et al., 2022;\nHan et al., 2022) and graph signals (Ding et al.,\n2019; Liu et al., 2022). However, the difficulties\nof Industrial Anomaly Detection (IAD) lie in the\ndiversity of industrial scenarios (Liu et al., 2024),\nwhere heterogeneous data modalities may occur\nconcurrently within the same scene. For example,\na single steel-plate manufacturing line may simulta-\n\nData\nProcess\n\nModel Selection\nfrom LLM\n\nCode\nGeneration\n\nDefine\n\nMeasure\n\nAnalyze\n\n- Which\nmodality?\n- Data\ncharacteristic\ns?\n\n-Algorithm\norchestration?\n- hyperparameters?\n\nCode\nExecution\n\n(a) Classical IAD Multi-agent Pipeline\n\n- What is the\nscenario and\ntask scope?\n- Any related\npapers?\n- Domain\nknowledge?\n\nImprove\n\nControl\n\n- Which\nstrategy is the\nbest without\nruntime trial ??\n- S1: S2:\n\n-Deployable\npipeline and\ncoding?\n\nDefine\n\nData\n\nCandidate\n\nOptimal\n\nWorkflow\n\nProfiles\n\nStrategies\n\nStrategies\n\nIAD\nConsultant\n\nData\nInspector\n\nIAD\nStrategist\n\nJudge\nModel\n\nIAD\nExecutor\n\n(b) Our IAD Multi-agent Pipeline\n\nFigure 1: IAD Multi-agent Architecture Comparison:\n(a) Prior LLM-Generated Strategy Framework vs. (b)\nDMAIC-Inspired Design Workflow.\n\nneously require visual inspection of surface defects,\ntime-series monitoring for equipment health, and\ndetection of communication networks.\nDespite extensive research on modality-specific\nIAD methods (Liu et al., 2024), they remain illsuited for unified handling of heterogeneous multimodal data. Consequently, practical deployment for IAD task still relies on scenario-specific\npipeline engineering, and cold-start deployment\nfor novel datasets remains labor-intensive, often\nrequiring manual tuning or costly trial-and-error\nfrom scratch due to reliability requirements.\nThe advent of LLMs has prompted research\ninto agentic systems (Li et al., 2024; Guo et al.,\n2024) for automated anomaly detection (Yang et al.,\n2025a; Ji et al., 2025a). Summarized in Fig. 1,\nexisting pipelines primarily couple heuristic data\nprocessing with direct code generation. Critically,\nthese methods disproportionately emphasize the\nexecution stage while under-exploiting high-level\nstrategy formalization. This imbalance leads to\nsignificant reliability risks, as generated strategies\ncannot be assessed without incurring actual de-\n\n\fployment costs. While iterative refinement via RL\n(Hachaj and Piekarczyk, 2025; Liang et al., 2025)\nor self-evaluation (Fang et al., 2025) offers a potential remedy, the associated computational burden\nrenders it impractical for real-time industrial needs.\nConsequently, a gap remains in building reliable\nLLM-based agents that can achieve truly dependable and autonomous IAD workflows.\nTo introduce discipline and process rigor to IAD\nautomation, we draw inspiration from DMAIC\n(Define-Measure-Analyze-Improve-Control),\nwhich is a data-driven process improvement framework with deep industrial roots in manufacturing,\nsupply chain management, and service industries\n(De Mast and Lokkerbol, 2012). It provides a\nlogical, staged roadmap that systematically defines\nproblems, measures current states, analyzes data,\nimproves strategies, and implements controls to\nsustain results (Ishak et al., 2019; Sm˛etkowska\nand Mrugalska, 2018), which closely parallel our\nindustrial anomaly detection task. Therefore, we\nadopt DMAIC as an explicit organizational framework (Fig. 1) to impose discipline, auditability,\nand stagewise agent responsibilities for strategy\nformulation, pre-execution evaluation, and\ndeployment.\nBuilding upon this DMAIC-inspired perspective,\nwe propose DMAIC-IAD (DMAIC-inspired Agentic Industrial Anomaly Detection), a multi-agent\nsystem designed for the practical constraints of\nIAD. This system first distills domain references\ninto scenario-specific standardized operating procedures (SOPs) to support unified handling of diverse\nscenarios and address cold-start circumstances. Besides, we construct dataset-specific profiles from\ndataset samples or descriptions. These artifacts\nground downstream strategy generation and evaluation. Then we build a pre-trained execution-free\njudge model to automatically score candidate strategies generated from LLMs without running them,\nthereby avoiding costly trials. Finally, an executor\ncompiles the selected strategy into runnable workflows and produces auditable anomaly reports. By\ndecoupling planning from execution, our system\nenables efficient, pre-execution assessment of strategy quality, and thereby realizes the principle \"plan\nfirst, judge later, run better\".\nThe main contributions of this work are summarized as follows:\n• We propose a DMAIC-inspired agentic framework for automated IAD to impose discipline,\n\nauditability, and stagewise agent responsibilities,\nwhich integrates domain knowledge, dataset profiling, and strategy evaluation into a structured\npipeline.\n• We introduce the knowledge distillation mechanism that standardizes SOP construction from\nheterogeneous references, improving cold-start\nstrategy quality for new scenarios.\n• We further design an execution-free judge\nmodel to predict plan–task compatibility from\nstructural and contextual signals, enabling reliable prioritization of candidate strategies without\ncostly runtime trials.\n• Systematic experiment demonstrate that in the\nmajority of cases, the performance of our\nDMAIC-inspired framework is superior to current state-of-the-art methods with average improvement of +37.76%.\n\n2\n\nRelated Work\n\nIndustrial Anomaly Detection. Industrial\nanomaly detection has been extensively studied\nunder unsupervised settings, where only normal\ndata are used for training (Chalapathy and Chawla,\n2019; Ruff et al., 2021). Existing methods\nmainly include reconstruction-based models,\nfeature embedding-based methods (Roth et al.,\n2022; Kirichenko et al., 2020; Xu et al., 2022;\nSu et al., 2019; ?), as well as forecasting- and\ngraph-based approaches for modeling temporal\nand relational dependencies (Sakurada and Yairi,\n2014; Park et al., 2018; Wyatt et al., 2022;\nHundman et al., 2018; Lv et al., 2023). Most deep\nlearning-based methods remain model-centric\nand scenario-dependent, requiring task-specific\ndesign or retraining and thus limiting scalability\nand generalization across heterogeneous industrial\nenvironments (Chalapathy and Chawla, 2019; Li\net al., 2025).\nAgentic Anomaly Detection System. Early\nagent-based anomaly detection methods focused\non distributed monitoring and were later extended\nto collaborative multi-agent systems for improved\nrobustness and scalability (McArthur et al., 2005;\nGarcía, 2019). Recent large model-empowered\nagents have been explored for industrial anomaly\ndetection across time-series (Gu et al., 2025; Yang\net al., 2025b; Qin et al., 2025), visual (Miao et al.,\n2025), and log-based scenarios (Ji et al., 2025b;\nHarbola and Purwar, 2025). However, most of\nthese methods use large models as fixed proces-\n\n\fD\n\nC\n\nefine: Task Understanding &amp; Knowledge Retrieval\n\nontrol: IAD Execution\nIAD Executor\n\nMetal nuts Anomaly\nDetection is an inline\nindustrial quality\ncontrol task to\nautomatically identify\ndiverse surface\ndefects such as\ncracks, scratches, ...…\n\nDefine\n\nControl\n\nMeasure\n\nImprove\n\nIAD\nConsultant\n\nPreprocess: Min Max\nScaling\nFeature Extraction:\nNone\nML Algorithm:\nXGBOOST\n\nAnalyze\n\nM\n\neasure: Dataset Profiling\n\nData\nInspector\n\nData type: image\nRes:1600×1000\nSizes: 2k\nClass imbalance:\nnormal samples /\ndefective ones\nNoise: exist\n......\n\nA\n\nnalyze: Strategy Generation\n\nI\n\nmprove: Optimal Plan Selection\nMetal nuts\nAnomaly\nDetection is\nan inline...…\n\nIAD\nStrategist\n\nRate higher\nPlan better\n\nJudge Model\n\nFigure 2: Overall Framework of DMAIC-IAD: Given scenario descriptions and data samples, it distills domain\nreferences into scenario-specific SOPs, and constructs dataset-specific profiles (Define-Measure). Using these\npriors, it generates candidate strategies, followed by a pre-trained execution-free judge model to score without\nruntime trials (Analyze–Improve). The selected strategy is compiled into a runnable workflow and produces\nauditable anomaly reports during Control, closing the DMAIC loop.\n\nsors rather than adaptive decision-makers for heterogeneous industrial scenarios. Recent frameworks such as AD-AGENT (Yang et al., 2025a)\nand AutoIAD (Ji et al., 2025a) automate executable pipeline construction but mainly focus on\nimplementation-level optimization, with limited attention to high-level decision-making over model\nselection and scenario adaptation. More detailed\nrelated work is provided in Appendix B.\n\n3\n\nMethodology\n\n3.1\n\nArchitecture of DMAIC-IAD\n\nOur DMAIC-IAD framework adopts a processoriented formalization to explicitly encode\nagent roles, primary artifacts, and operational\nmappings onto DMAIC phases, as presented\nin Fig. 2. Concretely, the system is expressed\nby the tuple Ω = ⟨R, D, P, K, Π⟩, where R\ndenotes the domain of task and scenario descriptions, D represents the dataset space, P =\n{Define, Measure, Analyze, Improve, Control}\nencompasses the ordered DMAIC phases and the\nartifacts they produce, K signifies the external\nknowledge base (integrating both static literature\nand real-time web search), and Π is the set of\nexecutable strategies. The framework maps inputs\n(r, d) ∈ R × D through the ordered DMAIC\nphases P to select and execute a strategy π ∈ Π,\nguided by K. There is a case study in Appendix\n\nG, and a notation summary of this work is in\nAppendix C.\nThe workflow is operationalized by specialized\nagents that act as transformation operators within\nthe DMAIC cycle:\n\n• Define: The IAD Consultant Agent initiates the\nprocess by interpreting the industry scenario (R)\nand distilling domain-specific knowledge from\nK into a canonical SOP schema. The resulting scenario-specific SOP defines the problem\nscope and operational constraints for downstream\nphases.\n• Measure: The Data Inspector Agent conducts\nrigorous data analysis on D, identifying distribution shifts and structural requirements to ensure\ndata readiness.\n• Analyze: Synthesizing outputs from the previous\nphases, the IAD Strategist Agent formulates a set\nof candidate strategies Π, mapping the problem\nspace to potential algorithmic solutions.\n• Improve: To optimize the strategy selection, a\nJudge Model evaluates the proposals from the\nStrategist, scoring them to identify the optimal\nplan for execution.\n• Control: Finally, the IAD Executor Agent implements the strategy through code generation,\nvalidation, and execution, and gives a final report.\n\n\f3.2\n\nDefine: Understanding and Knowledge\nDistillation\n\nThe initialized Define phase constitutes the cognitive anchor of the system, executed by the Consultant Agent. This agent orchestrates a dualchannel retrieval mechanism comprising a Research Assistant for academic literature and an AI\nWeb Searcher for real-time online resources. We\nformalize this retrieval-and-distillation process as\nΨcons : R × K → W. Given an unstructured scenario description r ∈ R, the agent first extracts semantic keywords to query the external knowledge\nbase K. Subsequently, the LLMs synthesizes the\naggregated multi-source context into a structured\nSOP, denoted as w.\nw = Ψcons (r, K) = {dscen , ⃗osteps , Mrec },\nwhere dscen provides a refined definition of the\nanomaly detection scenario, ⃗osteps represents the\nordered sequence of methodological steps, and\nMrec denotes the set of recommended models derived from the retrieval results. A specific SOP\ncase is provided in Appendix Fig. 6.\n3.3\n\nMeasure: Dataset Profiling\n\nThe Measure phase is governed by the Data Inspector Agent, which grounds the abstract SOP in\nthe empirical reality of the input data. We formalize this process as a structured diagnostic function\nΨinsp : D → M. To maintain computational\nefficiency while ensuring context awareness, the\nagent operates on a representative subset of samples extracted from the raw dataset D, augmented\nby pre-computed metadata such as label cardinality. The LLM processes these inputs to generate a\ncomprehensive data profile m ∈ M:\nm = Ψinsp ({xi }ki=1 , |Y |) = ⟨ϕf eat , τtask , δmiss ⟩,\nwhere {xi }ki=1 denotes the few-shot data samples\nand |Y | represents the label count. The resulting\noutput tuple encodes the intrinsic data characteristics (ϕf eat ), the inferred task category (τtask ), and a\ndata integrity assessment (δmiss ), specifically highlighting issues such as missing values. This structured analysis combines with the SOP to form the\ncontext state, ensuring that subsequent planning is\nnot only theoretically sound but also strictly compatible with the dataset’s physical constraints. The\ndemo of one dataset profile is in Appendix Fig. 7.\n\n3.4\n\nAnalyze: Strategy Generation\n\nIn the Analyze phase, the Strategist Agent transitions the system from passive observation to active\narchitectural planning. We model this transformation via the generative function Ψstrat : W ×M →\nΠK .\nConditioned on the semantic constraints of the\nSOP w and the empirical characteristics from the\ndata profile m, the LLM synthesizes a diverse set\nof K candidate strategies. We formalize this generation process as:\nΠK = Ψstrat (w, m) = {πk }K\nk=1 ,\n(k)\n\nk\nwhere πk = {τj }L\nj=1 .\nCrucially, each strategy πk extends beyond a\nhigh-level DAG topology, and it is instantiated as a\ngranular, structured execution sequence of length\nLk . There are three kinds of steps in each strategy:\ndata preprocessing, feature extraction, and anomaly\ndetection method. Each step is defined by a tuple\nτj = ⟨i, αact , µalgo , θparam ⟩, which explicitly mandates the step index (i), the required action type\n(αact ), the specific algorithmic method (µalgo ), and\nits corresponding hyperparameters (θparam ). There\nis a strategy case in Appendix Fig. 8. This rigorous\nspecification ensures the system explores the solution space with executable precision rather than\nconverging on ambiguous abstract workflows.\n\n3.5\n\nImprove: Execution-Free Judge Model\n\nThe Improve phase addresses the critical \"Plan Selection Problem\" by identifying the optimal strategy π ∗ from the candidate set ΠK . A naive approach might employ LLMs for self-evaluation\n(Saha et al., 2025); however, the candidate strategies are natively generated by an LLM (the Strategist), and a general LLM lacks the empirical\ngrounding required to distinguish between linguistically plausible and practically executable plans.\nFurthermore, while RL offers a theoretical pathway\nfor policy optimization (Estornell et al., 2025), the\ncomputational overhead of iterative gradient updates on large-scale models proves prohibitive for\nagile industrial deployment. Consequently, we propose a cost-effective, lightweight Judge Model that\nacts as a surrogate for physical execution, distilling historical experience into a predictive scoring\nmechanism.\nWe formalize the Judge as a learnable utility\nfunction Φjudge : Π × R → R, parameterized by\nθ. The architecture leverages a semantic alignment\n\n\fframework: for each candidate strategy πk and\nthe scenario context r, we employ a pre-trained\nSentence Transformer E(·) to map the textual\nconstraints into a dense latent space. These embeddings are concatenated and fed into a Multilayer Perceptron (MLP) regressor. Crucially, the\nmodel is trained via supervised learning to predict\na composite utility score ŷk , which approximates\nthe weighted performance metrics observed in historical execution logs:\nM\nX\n(hist)\nŷk = Fmlp (E(πk ) ⊕ E(r); θ) ≈\nλj · µ j\n,\nj=1\n(hist)\n\nwhere µj\nrepresents the ground-truth historical\nmetrics associated with similar strategy-scenario\npairs, and λj denotes the importance weight of the\nj-th metric. By freezing the encoder and training\nonly the lightweight MLP head, this design decouples high-cost reasoning from high-frequency evaluation. The system finally performs deterministic\nmaximization, π ∗ = arg maxπk ŷk , ensuring the\nselected plan is grounded in data-driven empirical\nevidence rather than hallucinated confidence.\n3.6\n\nControl: IAD Execution\n\nThe final Control phase operationalizes the theoretically optimal plan π ∗ into a concrete, verifiable\nsoftware artifact. This process is orchestrated by\nthe Executor Agent via a streamlined code generation architecture. We model this as a staterefinement loop governed by a generative coding\nfunction Ψcode : Π → C and a runtime validation\noracle V .\nThe agent initiates the process by instantiating\nthe plan into a raw script c(0) = Ψcode (π ∗ ). The oracle V subsequently attempts execution, checking\nfor syntax compliance, API alignment, and runtime integrity. If faults are detected, a diagnostic\nfeedback trace ϵ(t) triggers a self-correction step:\nc(t+1) = Ψref ine (c(t) , ϵ(t) )\n\nfor\n\nt &lt; Tmax\n\nThis iterative cycle continues until validation success or the iteration cap Tmax is exhausted. Upon\nsuccessful deployment, the system computes the\nfinal performance metrics and synthesizes a humanreadable IAD Report, encapsulating both the quantitative detection results and the qualitative methodological justification.\n3.7\n\nEfficient Experience Reuse\n\nTo obviate redundant computation for recurring\nscenarios, the framework integrates a lightweight,\n\nhash-based memory mechanism. We operationalize this as a dual-key lookup table mapping input fingerprints to intermediate artifacts: M =\n{H(r) 7→ w, H(D) 7→ m}. Here, H(·) represents a deterministic hashing function applied to\nthe raw task description r or the dataset schema D.\nUpon initialization, the system executes a\nlookup-first strategy. If a fingerprint match is detected for the task fingerprint H(r), the system\nretrieves the proven SOP w, bypassing the Consultant Agent’s synthesis overhead. Similarly, a match\nfor H(D) allows the immediate reuse of the data\nprofile m. This modular design supports partial\ncaching, which could effectively apply established\nworkflows to novel data instances (rmatch , Dnew ).\nUnder experience reuse, the lookup operation\nachieves average-case O(1) complexity. Detailed\ndescription is provided in Appendix A.\n\n4\n\nExperiment\n\nIn the experimental section, we compare the\nanomaly detection performance of DMAIC-IAD\nwith baseline methods and assess its computational\ncost relative to previous approaches. Besides, we\nalso perform the ablation study examining the system’s performance in the absence of the judge\nmodel or the SOP in 4.2 and 4.3. In 4.4, we visualize the selection performance of the judge model.\nAnd we investigate the impact of utilizing different LLMs as the strategist in 4.5. Furthermore,\nwe conduct the comparison with specific-modality\nmodels in Appendix E, a parameter experiment in\nAppendix F, and a case study in Appendix G.\n4.1\n\nExperiment Setting\n\nData Description. In our experiment, we utilize\ndatasets across four distinct modalities: numeric,\ntime series, graph, and image. We select two representative datasets for each modality. Specifically,\nthe numeric category includes vertebral and arrhythmia datasets from the ADBench (Han et al.,\n2022) classical collection. For time series analysis,\nwe utilize PSM and SWaT datasets from Time Series Library (Wang et al., 2026) to validate. The\ngraph datasets are books and enron from BOND\n(Liu et al., 2022), and the image modality comprises metalnut and tile datasets in Benchmark\nMVTecAD (Bergmann et al., 2019).\nEvaluation Metrics. Given the severe label imbalance prevalent in individual datasets, we primarily employ AUROC (Area Under the Receiver\n\n\fTable 1: IAD Performance Comparison: We compare our proposed method with three baselines and key ablations.\n+ wo Judge Model means our framework without judge model and + wo SOP means our framework without\nConsultant Agent. \"↑\" means the larger the better and \"/\" means this method can not solve the task. The evaluation\nis conducted on eight benchmark datasets using AUROC and AUPRC as the primary metrics. All the results are the\naverage value of 5 repeated experiments. The best results are highlighted in bold.\n\nMethod\nAD-AGENT\nAutoIAD\nStrategist only\nDMAIC-IAD\n+ wo Judge Model\n+ wo SOP\n\nMethod\nAD-AGENT\nAutoIAD\nStrategist only\nDMAIC-IAD\n+ wo Judge Model\n+ wo SOP\n\nTabular Data\nvertebral\narrhythmia\nAUROC↑ AUPRC↑ AUROC↑ AUPRC↑\n0.7024\n0.3273\n0.6750\n0.6030\n/\n/\n/\n/\n0.6190\n0.5601\n0.7772\n0.2647\n0.9617\n0.9138\n0.8799\n0.5913\n0.7276\n0.5650\n0.7181\n0.3211\n0.7962\n0.6936\n0.7357\n0.4239\nGraph Data\nbooks\nenron\nAUROC↑ AUPRC↑ AUROC↑ AUPRC ↑\n0.5235\n0.0265\n0.5000\n0.002\n/\n/\n/\n/\n0.4616\n0.0355\n0.1160\n0.0007\n0.5755\n0.0640\n0.9320\n0.0108\n0.5220\n0.0363\n0.5790\n0.0044\n0.4964\n0.0268\n0.4425\n0.0017\n\nOperating Characteristic Curve) and AUPRC (Area\nUnder the Precision-Recall Curve) to evaluate the\nperformance of the generated code (Alzarooni et al.,\n2025). The specific description of AUROC and\nAUPRC is in Appendix D. To provide a comprehensive system evaluation, we also incorporate Success Rate (SR), execution time, Prompt Token (PT),\nand Completion Token (CT). SR defines the proportion of code instances that execute successfully.\nExecution time measures the latency from system\ninitialization to the final code generation. PT refers\nto the volume of inputs processed by the LLMs,\nand CT aggregates the sum of both input and output tokens across all interactions.\nAgent Model Setting. The agents within our system utilize distinct backend models selected according to their functional requirements. Specifically,\nthe Consultant and Data Inspector employ GPT-4o\n(Achiam et al., 2023). The Strategist Agent operates on GPT-5-Mini (Singh et al., 2025), while\nthe Code Generator leverages Claude-Sonnet-4.5.\nIn Exp. 4.5, we further investigate the impact of\nmodel capability on system performance by comparing GPT-3.5-Turbo (Brown et al., 2020), GPT4o-Mini (Achiam et al., 2023), and GPT-5-Mini\nas alternative backends for the Strategist Agent.\nDetailed configuration is provided in Appendix H.\nJudge Model Setting. For training of the Judge\nModel, we selected a representative dataset for each\n\nTime Series Data\nPSM\nSWaT\nAUROC↑ AUPRC↑ AUROC↑ AUPRC↑\n0.5217\n0.3981\n0.5797\n0.0802\n/\n/\n/\n/\n0.6888\n0.3744\n0.3839\n0.0435\n0.8702\n0.7260\n0.8394\n0.6767\n0.6981\n0.5555\n0.6023\n0.2651\n0.5000\n0.3063\n0.5000\n0.0581\nImage Data\nmetalnut\ntile\nAUROC↑ AUPRC↑ AUROC↑ AUPRC↑\n/\n/\n/\n/\n0.8000\n0.8583\n0.7338\n0.8944\n0.6466\n0.9058\n0.5783\n0.7606\n0.8724\n0.9699\n0.7043\n0.9181\n0.7043\n0.9181\n0.7873\n0.9594\n0.5000\n0.8087\n0.4098\n0.6765\n\nmodality to form the training set. This included the\noptdigits dataset for tabular data, the MSL dataset\nfor time series data, the weibo dataset for graph\ndata, and the screw dataset for image data. For\neach of these datasets, we utilized the Strategist to\ngenerate and execute 50 strategies, resulting in 200\nstrategy-metrics pairs. The final Judge Model was\ntrained on these 200 strategy-metrics pairs aggregated from the four datasets. The training datasets\nare independent of the datasets in the experiment.\nMore details are in Appendix ??.\nBaseline Methods. In our comparative analysis, we evaluate the proposed system against three\nbaseline methods: AD-AGENT, AutoIAD, and a\n\"Strategist only\" variant. Specifically, AD-AGENT\nemploys LLMs to select algorithms from established repositories for time series, tabular, and\ngraph modalities, whereas AutoIAD is tailored to\nthe image domain for model selection and design,\nshown in the modality part of Tab. 3. The \"Strategist only\" baseline serves as an ablation study of\nour framework. It retains only the Analyze and\nControl (AC) components while omitting the Define, Measure, and Improve (DMI) stages.\n4.2\n\nIAD Performance Comparison\n\nTo validate the effectiveness of our method in practical IAD scenarios, we compare different frameworks using AUROC and AUPRC across eight\ndatasets, as shown in Tab. 1.\n\n\fDMAIC-IAD Achieves Strong Overall Performance Across Modalities. As shown in Tab. 1\nand Tab. 5, our method achieves superior performance on most datasets. It improves AUROC over\nAD-AGENT by +37.0% on vertebral, +44.8% on\nSWaT, and +86.4% on enron. For image data, it\nalso surpasses AutoIAD by +9.1% on metalnut.\nOverall, our method outperforms AD-AGENT and\nAutoIAD by 37.76% on average, demonstrating\nstrong robustness across heterogeneous modalities.\nStrategist Only is not Enough. The Strategist\nonly baseline shows unstable performance and is\nclearly inferior to the full DMAIC framework, indicating that the simple AC architecture is insufficient. For example, its AUROC is only 0.6190 on\nvertebral, compared with 0.9617 for our method,\nyielding a +55.4% improvement. The gap is larger\non SWaT, where our method improves AUROC by\n118.7%, and on enron, where AUROC increases\nfrom 0.1160 to 0.9320. These results validate the\nnecessity of the full DMAIC design.\nThe Judge Model Effectively Selects HighPerforming Strategies. The Judge Model further\nimproves strategy selection by filtering suboptimal\ncandidates, as later analyzed in Section 4.4.\nSOPs Substantially Enhance System Performance. The ablation results in Tab. 1 show that removing SOPs causes consistent performance degradation. Without SOPs, AUROC drops by 17.2%\non vertebral, AUPRC also drops sharply on SWaT\nand enron, although the absolute AUPRC on enron\nremains small. These results indicate that SOPs are\nnot merely auxiliary guidance, but a foundational\ncomponent for stable and high-performing IAD.\n4.3\n\nEfficiency Analysis\n\nThis experiment investigates the performance of\nvarious methods in terms of success rate, system\nexecution time, and token consumption. The results in Tab. 2 show that our method achieves the\nhighest success rate, and a deeper analysis reveals\nthe following insights into the trade-offs between\ncost and performance.\nOur Method Balances Performance and Cost.\nAs shown in Tab. 2, our method achieves the highest success rate of 78.19%, outperforming AutoIAD by 3.83%. Although it takes the longest execution time, its token consumption is only 20,467,\nwhich is 78.89% lower than AutoIAD’s 96,906.\nThis shows that our framework achieves strong performance with much lower token cost, making it\nattractive when detection quality and token cost are\n\nTable 2: Comparison of Task Completion and Cost:\nThis table assesses the success rate (SR) (%), execution\ntime, Completion Token (CT) and Prompt Token (PT)\nof our proposed method against three baselines and two\nablation variants, + wo Judge Model and + wo SOP. ↑\nmeans the higher the better and ↓ means the lower the\nbetter. The highest success rate is highlighted.\nModel Name\n\nSR↑\n\nTime(s)↓\n\nCT↓\n\nPT↓\n\nAD-AGENT\nAutoIAD\nStrategist only\nDMAIC-IAD\n+ wo Judge Model\n+ wo SOP\n\n42.76%\n74.36%\n53.90%\n78.19%\n77.23%\n69.33%\n\n57.75\n108.43\n125.07\n298.37\n153.77\n219.62\n\n7,892\n96,906\n13,446\n20,467\n14,868\n16,867\n\n5,863\n65,348\n8,732\n15,320\n10,358\n12,499\n\nprioritized over latency.\nLatency Comes from Reliability-Oriented Design. The longer execution time of our method\nmainly results from two reliability-oriented components. First, our framework generates multiple candidate strategies before Judge Model selection. Comparing DMAIC-IAD with wo Judge\nModel in Tab. 2, the execution time decreases by\nabout 144.60s, which is mainly introduced by repeated strategy generation for constructing the candidate pool. Second, the Control phase adopts an\nexecution-validation-refinement loop. This process\nimproves execution robustness but increases wallclock time. Therefore, the latency of our method is\nmainly the cost of more reliable strategy selection\nand code execution, while its token consumption\nremains much lower than AutoIAD.\nSOPs are Essential for Reliable Performance.\nRemoving SOPs causes substantial degradation\nacross metrics. The success rate drops from\n78.19% to 69.33%, and the AUROC/AUPRC\nscores also decline notably, as shown in Tab. 1. For\nexample, on SWaT, the AUPRC drops by over 91%.\nAlthough SOPs increase execution time, their removal severely harms both task success and detection quality, confirming their foundational role in\nthe framework.\n4.4\n\nJudge Model Discussion\n\nThe Judge Model is crucial for selecting superior\nstrategies from a highly variable candidate pool. As\nshown in Fig. 4, candidate strategies represented\nby Ours wo Judge Model often contain many suboptimal solutions, making robust pre-execution selection necessary.\nThe Judge Model Consistently Improves\nStrategy Selection. Guided by the Judge Model,\n\n\f(a) The AUROC Distribution of Strategies\n\n(b) The AUPRC Distribution of Strategies\n\nFigure 3: Performance Distribution Box Plot of Strategies without Judge Model: (a) shows the AUROC distribution and (b) shows the AUPRC distribution.\n\n(b) The AUPRC Comparison\n(a) The AUROC of Strategists\n\n(b) The AUPRC of Strategists\n\nFigure 5: Average Performance of Strategists Utilizing Different LLMs: (a) shows the average values of\nAUROC on eight datasets and (b) shows the average\nAUPRC values.\n\n4.5\n\n(a) The AUROC Comparison\n\n(b) The AUPRC Comparison\n\nFigure 4: Comparison of Performance between Ours\nand Strategies: Average means the average performance\nwithout judge model and Best_performance means the\nbest performance without judge model. (a) shows the\nAUROC comparison on eight datasets and (b) shows the\nAUPRC metric.\n\nour method consistently outperforms the average\ncandidate strategy. As shown in Fig. 3, candidate AUROC ranges from 0.4998 to 0.9128 on arrhythmia, while our Judge-guided method achieves\n0.8799, 22.5% above the average. And from\n0.5790 to 0.9320 on enron, yielding a 61.0% improvement, as shown in Tab. 1 and Fig. 4. It also\nimproves AUPRC by 30.7% on PSM and reaches\nthe best observed performance on several datasets,\nsuch as arrhythmia, SWaT, and metalnut. These\nresults show that the Judge Model effectively filters suboptimal strategies and pushes performance\ntoward the upper bound of the candidate pool.\nLimitations of the Judge Model. The Judge\nModel can still fail on out-of-distribution scenarios within a known modality. As shown in Fig. 4,\non the tile dataset, an out-of-distribution texturebased image category, it selects a strategy with an\nAUROC of 0.7043. This is likely because we conjecture that weak and strong strategy combinations\nmay become similar in the learned feature space,\nmisleading the model’s selection. This limitation\nsuggests that the Judge Model requires stronger\nscenario- and dataset-aware generalization.\n\nAnalysis of Different LLM-based\nStrategist\n\nTo evaluate how different language models affect\nthe initial strategy pool, we compare the mean AUROC and AUPRC of strategies generated by the\nStrategist using gpt 5 mini, gpt 4o mini, and gpt\n3.5-turbo across datasets, as shown in Fig. 5.\nStrategy Quality Depends on Both Model Capability and Data Modality. Based on AUROC,\ngpt 5 mini outperforms gpt 4o mini and gpt 3.5\non most datasets in Fig. 5, including PSM, SWaT,\nenron, and metalnut. However, this advantage is\nnot universal: on the tabular datasets vertebral and\narrhythmia, gpt 3.5 achieves higher average AUROC than gpt 5 mini. Strategy quality also varies\nsignificantly across modalities. All models produce strong AUPRC on image datasets, with gpt\n5 mini reaching 0.9594 on tile, while the average\nAUPRC remains very low on the graph datasets,\nindicating that graph anomaly detection remains\nchallenging. Moreover, AUROC and AUPRC can\nbe inconsistent: gpt 3.5 achieves high AUROC but\nrelatively low AUPRC on arrhythmia, suggesting\ngood ranking ability but weak anomaly precision.\n\n5\n\nConclusion and Future Work\n\nIn conclusion, we propose a DMAIC-inspired\nmulti-agent framework for reliable automated IAD\nacross heterogeneous modalities. Following the\n\"Plan First, Judge Later\" paradigm, the framework combines SOP distillation with a lightweight\nexecution-free Judge Model for structured planning\nand pre-execution validation. Experiments show\nthat our method achieves state-of-the-art performance and the highest success rate. Future work\nwill focus on improving reliability and generalization for safety-critical industrial deployment.\n\n\f6\n\nLimitation\n\nDespite its overall effectiveness, the execution-free\nJudge Model may still face challenges in out-ofdistribution cases within a known modality. This\nindicates that stronger dataset-aware generalization remains necessary. Besides, this system currently operates as a static framework and does not\nyet possess continuous self-evolving capabilities.\nIn practical industrial environments, anomaly patterns and data distributions may evolve over time,\nrequiring the system to continuously absorb new\nfeedback, refine its strategy pool, and adapt its\ndecision-making process. Developing such a lifelong self-evolution mechanism constitutes an important direction for future work.\n\n7\n\nEthical Considerations\n\nThis work targets agentic industrial anomaly detection, where system outputs may affect quality\ninspection, maintenance decisions, and operational\nsafety. False negatives may leave faults undetected,\nwhile false positives may cause unnecessary production interruptions or maintenance costs. Moreover, LLM-generated strategies and code may still\ncontain incorrect assumptions or implementation\nerrors, particularly under out-of-distribution data.\nTherefore, generated workflows should be audited\nand validated by domain experts before deployment. Since industrial data may contain proprietary or sensitive operational information, practitioners should also ensure proper anonymization,\naccess control, and data governance when applying\nLLM-based agents or external retrieval tools. Our\nexperiments are conducted on public benchmark\ndatasets and do not involve personally identifiable\ninformation.\nIn this paper, AI-assisted technologies were used\nsolely to assist with language polishing and grammar checking. We explicitly state that no AI was\nutilized to generate research ideas, write the core\nmanuscript, generate citations, or create any images\nand data. The authors rigorously cross-checked all\nAI-assisted modifications and take responsibility\nfor the scientific integrity of this manuscript, explicitly ensuring the validity of the empirical findings\nand the precise accuracy of all references.\n\nReferences\nJosh Achiam, Steven Adler, Sandhini Agarwal, Lama\nAhmad, Ilge Akkaya, Florencia Leoni Aleman,\n\nDiogo Almeida, Janko Altenschmidt, Sam Altman,\nShyamal Anadkat, and 1 others. 2023. Gpt-4 technical report. arXiv preprint arXiv:2303.08774.\nAbdelrahman Alzarooni, Ehtesham Iqbal, Samee Ullah\nKhan, Sajid Javed, Brain Moyo, and Yusra Abdulrahman. 2025. Anomaly detection for industrial applications, its challenges, solutions, and future directions:\nA review. arXiv preprint arXiv:2501.11310.\nPaul Bergmann, Michael Fauser, David Sattlegger, and\nCarsten Steger. 2019. Mvtec ad–a comprehensive\nreal-world dataset for unsupervised anomaly detection. In Proceedings of the IEEE/CVF conference\non computer vision and pattern recognition, pages\n9592–9600.\nTom Brown, Benjamin Mann, Nick Ryder, Melanie\nSubbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind\nNeelakantan, Pranav Shyam, Girish Sastry, Amanda\nAskell, and 1 others. 2020. Language models are\nfew-shot learners. Advances in neural information\nprocessing systems, 33:1877–1901.\nRaghavendra Chalapathy and Sanjay Chawla. 2019.\nDeep learning for anomaly detection: A survey.\narXiv preprint arXiv:1901.03407.\nVarun Chandola, Arindam Banerjee, and Vipin Kumar.\n2009. Anomaly detection: A survey. ACM computing surveys (CSUR), 41(3):1–58.\nYajie Cui, Zhaoxiang Liu, and Shiguo Lian. 2023.\nA survey on unsupervised anomaly detection algorithms for industrial images. IEEE Access, 11:55297–\n55315.\nJeroen De Mast and Joran Lokkerbol. 2012. An analysis\nof the six sigma dmaic method from the perspective\nof problem solving. International Journal of Production Economics, 139(2):604–614.\nKaize Ding, Jundong Li, Rohit Bhanushali, and Huan\nLiu. 2019. Deep anomaly detection on attributed\nnetworks. In Proceedings of the 2019 SIAM international conference on data mining, pages 594–602.\nSIAM.\nAndrew Estornell, Jean-Francois Ton, Muhammad Faaiz Taufiq, and Hang Li. 2025. How to train\na leader: Hierarchical reasoning in multi-agent llms.\narXiv preprint arXiv:2507.08960.\nJinyuan Fang, Yanwen Peng, Xi Zhang, Yingxu Wang,\nXinhao Yi, Guibin Zhang, Yi Xu, Bin Wu, Siwei\nLiu, Zihao Li, and 1 others. 2025. A comprehensive\nsurvey of self-evolving ai agents: A new paradigm\nbridging foundation models and lifelong agentic systems. arXiv preprint arXiv:2508.07407.\nNuria Mateos García. 2019. Multi-agent system for\nanomaly detection in industry 4.0 using machine\nlearning techniques. ADCAIJ: Advances in Distributed Computing and Artificial Intelligence Journal, 8(4):33.\n\n\fYile Gu, Yifan Xiong, Jonathan Mace, Yuting Jiang,\nYigong Hu, Baris Kasikci, and Peng Cheng. 2025.\nArgos: Agentic time-series anomaly detection with\nautonomous rule generation via large language models. arXiv preprint arXiv:2501.14170.\nTaicheng Guo, Xiuying Chen, Yaqi Wang, Ruidi Chang,\nShichao Pei, Nitesh V Chawla, Olaf Wiest, and Xiangliang Zhang. 2024. Large language model based\nmulti-agents: A survey of progress and challenges.\narXiv preprint arXiv:2402.01680.\nTomasz Hachaj and Marcin Piekarczyk. 2025. On explainability of reinforcement learning-based machine\nlearning agents trained with proximal policy optimization that utilizes visual sensor data. Applied\nSciences, 15(2):538.\nSongqiao Han, Xiyang Hu, Hailiang Huang, Minqi\nJiang, and Yue Zhao. 2022. Adbench: Anomaly detection benchmark. Advances in neural information\nprocessing systems, 35:32142–32159.\nChitranshu Harbola and Anupam Purwar. 2025. Prescriptive agents based on rag for automated maintenance (param). arXiv preprint arXiv:2508.04714.\nKyle Hundman, Valentino Constantinou, Christopher\nLaporte, Ian Colwell, and Tom Soderstrom. 2018.\nDetecting spacecraft anomalies using lstms and nonparametric dynamic thresholding. In Proceedings of\nthe 24th ACM SIGKDD international conference on\nknowledge discovery &amp; data mining, pages 387–395.\nAulia Ishak, Khawarita Siregar, Asfriyati, and Hansen\nNaibaho. 2019. Quality control with six sigma dmaic\nand grey failure mode effect anaysis (fmea): a review. In IOP Conference Series: Materials Science\nand Engineering, volume 505, page 012057. IOP\nPublishing.\nDongwei Ji, Bingzhang Hu, and Yi Zhou. 2025a. Autoiad: Manager-driven multi-agent collaboration\nfor automated industrial anomaly detection. arXiv\npreprint arXiv:2508.05503.\nXin Ji, Le Zhang, Wenya Zhang, Fang Peng, Yifan\nMao, Xingchuang Liao, and Kui Zhang. 2025b.\nLemad: Llm-empowered multi-agent system for\nanomaly detection in power grid services. Electronics, 14(15):3008.\nPolina Kirichenko, Pavel Izmailov, and Andrew G Wilson. 2020. Why normalizing flows fail to detect outof-distribution data. Advances in neural information\nprocessing systems, 33:20578–20589.\n\nJiaxin Liang, Haotian Miao, Kai Li, Jianheng Tan,\nXi Wang, Rui Luo, and Yueqiu Jiang. 2025. A\nreview of multi-agent reinforcement learning algorithms. Electronics, 14(4):820.\nJiaqi Liu, Guoyang Xie, Jinbao Wang, Shangnian Li,\nChengjie Wang, Feng Zheng, and Yaochu Jin. 2024.\nDeep industrial image anomaly detection: A survey.\nMachine Intelligence Research, 21(1):104–135.\nKay Liu, Yingtong Dou, Yue Zhao, Xueying Ding,\nXiyang Hu, Ruitong Zhang, Kaize Ding, Canyu\nChen, Hao Peng, Kai Shu, Lichao Sun, Jundong\nLi, George H. Chen, Zhihao Jia, and Philip S. Yu.\n2022. Bond: Benchmarking unsupervised outlier\nnode detection on static attributed graphs. Advances\nin Neural Information Processing Systems, 35:27021–\n27035.\nJianming Lv, Yaquan Wang, and Shengjing Chen.\n2023. Adaptive multivariate time-series anomaly\ndetection. Information Processing &amp; Management,\n60(4):103383.\nStephen DJ McArthur, Campbell D Booth, JR McDonald, and Ian T McFadyen. 2005. An agentbased anomaly detection architecture for condition\nmonitoring. IEEE Transactions on Power Systems,\n20(4):1675–1682.\nJunwen Miao, Penghui Du, Yi Liu, Yu Wang, and Yan\nWang. 2025. Agentiad: Tool-augmented single-agent\nfor industrial anomaly detection. arXiv preprint\narXiv:2512.13671.\nDaehyung Park, Yuuna Hoshi, and Charles C Kemp.\n2018. A multimodal anomaly detector for robotassisted feeding using an lstm-based variational autoencoder. IEEE Robotics and Automation Letters,\n3(3):1544–1551.\nZhenkai Qin, Qining Luo, Xunyi Nong, Xiaolong Chen,\nHongfeng Zhang, and Cora Un In Wong. 2025. Maslstm: A multi-agent lstm-based approach for scalable anomaly detection in iiot networks. Processes,\n13(3):753.\nKarsten Roth, Latha Pemula, Joaquin Zepeda, Bernhard\nSchölkopf, Thomas Brox, and Peter Gehler. 2022.\nTowards total recall in industrial anomaly detection.\nIn Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 14318–\n14328.\n\nXinyi Li, Sai Wang, Siqi Zeng, Yu Wu, and Yi Yang.\n2024. A survey on llm-based multi-agent systems: workflow, infrastructure, and challenges. Vicinagearth, 1(1):9.\n\nLukas Ruff, Jacob R Kauffmann, Robert A Vandermeulen, Grégoire Montavon, Wojciech Samek, Marius Kloft, Thomas G Dietterich, and Klaus-Robert\nMüller. 2021. A unifying review of deep and shallow anomaly detection. Proceedings of the IEEE,\n109(5):756–795.\n\nZhuo Li, Yuhao Yan, Xiangheng Wang, Yifei Ge, and\nLin Meng. 2025. A survey of deep learning for industrial visual anomaly detection. Artificial Intelligence\nReview, 58(9):279.\n\nSwarnadeep Saha, Xian Li, Marjan Ghazvininejad, Jason Weston, and Tianlu Wang. 2025. Learning to\nplan &amp; reason for evaluation with thinking-llm-as-ajudge. arXiv preprint arXiv:2501.18099.\n\n\fMayu Sakurada and Takehisa Yairi. 2014. Anomaly\ndetection using autoencoders with nonlinear dimensionality reduction. In Proceedings of the MLSDA\n2014 2nd workshop on machine learning for sensory\ndata analysis, pages 4–11.\n\nXue Yang, Enda Howley, and Michael Schukat. 2025b.\nAgent-based dynamic thresholding for adaptive\nanomaly detection using reinforcement learning.\nNeural Computing and Applications, 37(23):18775–\n18791.\n\nAaditya Singh, Adam Fry, Adam Perelman, Adam Tart,\nAdi Ganesh, Ahmed El-Kishky, Aidan McLaughlin,\nAiden Low, AJ Ostrow, Akhila Ananthram, and 1 others. 2025. Openai gpt-5 system card. arXiv preprint\narXiv:2601.03267.\n\nAppendices\n\nMonika Sm˛etkowska and Beata Mrugalska. 2018. Using six sigma dmaic to improve the quality of the\nproduction process: a case study. Procedia-Social\nand Behavioral Sciences, 238:590–596.\nHaoyang Su, Renqi Chen, Shixiang Tang, Zhenfei Yin,\nXinzhe Zheng, Jinzhe Li, Biqing Qi, Qi Wu, Hui Li,\nWanli Ouyang, and 1 others. 2025. Many heads are\nbetter than one: Improved scientific idea generation\nby a llm-based multi-agent system. In Proceedings\nof the 63rd Annual Meeting of the Association for\nComputational Linguistics (Volume 1: Long Papers),\npages 28201–28240.\nYa Su, Youjian Zhao, Chenhao Niu, Rong Liu, Wei Sun,\nand Dan Pei. 2019. Robust anomaly detection for\nmultivariate time series through stochastic recurrent\nneural network. In Proceedings of the 25th ACM\nSIGKDD International Conference on Knowledge\nDiscovery &amp; Data Mining. ACM.\nMin Wang, Donghua Zhou, and Maoyin Chen. 2022.\nHybrid variable monitoring mixture model for\nanomaly detection in industrial processes. IEEE\nTransactions on Cybernetics, 54(1):319–331.\nYuxuan Wang, Haixu Wu, Jiaxiang Dong, Yong Liu,\nChen Wang, Mingsheng Long, and Jianmin Wang.\n2026. Deep time series models: A comprehensive\nsurvey and benchmark. IEEE Transactions on Pattern Analysis and Machine Intelligence.\n\nAppendices Content\nA Implementation Details of Efficient Experience Reuse\n11\nB Related Work\nB.1 Conventional Industrial Anomaly\nDetection . . . . . . . . . . . . .\nB.2 Agentic System for Anomaly Detection . . . . . . . . . . . . . . .\n\n12\n\nC Notation\n\n13\n\nD Evaluation Metrics\nD.1 Area Under the Receiver Operating\nCharacteristic Curve (AUROC) . .\nD.2 Area Under the Precision-Recall\nCurve (AUPRC) . . . . . . . . . .\n\n13\n\nTiankai Yang, Junjun Liu, Michael Siu, Jiahang Wang,\nZhuangzhuang Qian, Chanjuan Song, Cheng Cheng,\nXiyang Hu, and Yue Zhao. 2025a. Ad-agent: A\nmulti-agent framework for end-to-end anomaly detection. In Proceedings of the 14th International\nJoint Conference on Natural Language Processing\nand the 4th Conference of the Asia-Pacific Chapter of\nthe Association for Computational Linguistics, pages\n191–205.\n\n13\n\n13\n14\n\nE Experiment: Comparison with ModalitySpecific Baselines\n14\nF Experiment: Parameters and Prompt\n\n14\n\nG Case Study\n\n15\n\nH Large Language Model Configuration\n\n15\n\nI\n\nAgent Prompt\nI.1 IAD Data Inspector . . . . . . . .\nI.2 IAD Consultant Agent Prompt . .\nI.3 IAD Strategist Prompt . . . . . .\nI.4 IAD Code Generator Prompt . . .\n\n17\n17\n18\n19\n21\n\nA\n\nImplementation Details of Efficient\nExperience Reuse\n\nJulian Wyatt, Adam Leach, Sebastian M Schmon, and\nChris G Willcocks. 2022. Anoddpm: Anomaly detection with denoising diffusion probabilistic models using simplex noise. In Proceedings of the IEEE/CVF\nconference on computer vision and pattern recognition, pages 650–656.\nJiehui Xu, Haixu Wu, Jianmin Wang, and Mingsheng\nLong. 2022. Anomaly transformer: Time series\nanomaly detection with association discrepancy. In\nInternational Conference on Learning Representations.\n\n12\n\nThis section further clarifies the scope and implementation of the experience reuse mechanism introduced in Section 3.2. The memory module is\nimplemented as an exact-match hash table rather\nthan a vector database. Given a normalized task description r and dataset schema D, the system computes deterministic fingerprints H(r) and H(D)\nand uses them as lookup keys for previously generated SOPs and data profiles, respectively.\n\n\fTable 3: Comparison of anomaly detection agents across modalities and modulars. ✓: explicitly supported and\nevaluated; ✗: not supported or not considered.\n\nAD-AGENT (Yang et al., 2025a)\n\nAutoIAD (Ji et al., 2025a)\n\nOurs\n\nModality\n\nTime Series\nTabular\nGraph\nImage\n\n✓\n✓\n✓\n✗\n\n✗\n✗\n✗\n✓\n\n✓\n✓\n✓\n✓\n\nModular\n\nKnowledge\nData Profile\nStrategy Generation\nStrategy Evaluation\nCode Generator\n\n✗\n✗\n✓\n✗\n✓\n\n✗\n✓\n✓\n✗\n✓\n\n✓\n✓\n✓\n✓\n✓\n\nThe reuse mechanism follows a lookup-first protocol. If H(r) yields a cache hit, the corresponding\nSOP w is directly loaded, and the Consultant Agent\nis skipped. If H(D) yields a cache hit, the stored\ndata profile m is reused, and the Data Inspector\nAgent is skipped. If either key is not found, the\ncorresponding artifact is regenerated through the\nstandard DMAIC workflow and then inserted into\nmemory for future reuse. This design also supports\npartial reuse: for example, an existing SOP can\nbe reused for a recurring industrial scenario even\nwhen the dataset schema is new, while a data profile can be reused when the same dataset schema\nappears under a slightly different task description.\nThe claimed O(1) complexity specifically refers\nto the average-case retrieval complexity of the proposed hash-based experience reuse mechanism,\nrather than the runtime complexity of the entire\npipeline. In our lightweight mode, each recurring\ntask is represented by deterministic fingerprints of\nthe task description and dataset schema, denoted as\nH(r) and H(D), respectively. These fingerprints\nare used as keys in a hash-table memory:\n\nM = {H(r) 7→ w} ∪ {H(D) 7→ m},\n\nwhere w denotes the previously generated SOP and\nm denotes the corresponding data profile. Given a\nnew task, our system first computes its fingerprints\nand directly queries the hash table. Under the standard average-case assumption of hash-table access,\nchecking whether H(r) or H(D) exists in memory\nand retrieving the associated SOP or data profile\nrequires constant time, i.e., O(1), independent of\nthe number of previously stored experiences.\n\nB\n\nRelated Work\n\nB.1\n\nConventional Industrial Anomaly\nDetection\n\nIndustrial anomaly detection has been extensively\nstudied, particularly under unsupervised settings\nwhere only normal data are available for training (Chalapathy and Chawla, 2019; Ruff et al.,\n2021).Existing methods can be broadly categorized\ninto reconstruction-based and feature embeddingbased approaches. Reconstruction-based methods\ndetect anomalies through reconstruction or prediction errors using autoencoders, recurrent models, or, more recently, diffusion models (Sakurada\nand Yairi, 2014; Park et al., 2018; Wyatt et al.,\n2022). Feature embedding-based methods identify anomalies by measuring deviations in learned\nrepresentation spaces, such as memory bank approaches and normalizing flow-based density estimation (Roth et al., 2022; Kirichenko et al., 2020).\nBeyond these paradigms, forecasting-based and\ngraph-based models have also been explored to capture temporal dynamics and relational dependencies in industrial systems (Hundman et al., 2018;\nLv et al., 2023).\nDespite strong performance in constrained environments, most deep learning-based industrial\nanomaly detection methods remain model-centric\nand scenario-dependent, often requiring careful\nmodel design and retraining for each specific setting. This limits their scalability, adaptability, and\ngeneralization across heterogeneous industrial scenarios (Chalapathy and Chawla, 2019; Li et al.,\n2025).\n\n\fB.2\n\nAgentic System for Anomaly Detection\n\nEarly agent-based methods for anomaly detection\nfocused on distributed monitoring, where agents\nobserve system states and trigger alarms upon detecting abnormal behaviors (McArthur et al., 2005).\nSubsequent works extended this paradigm to multiagent systems, enabling collaboration among specialized agents to improve robustness and scalability in complex industrial environments (García,\n2019).\nMore recently, large model empowered agentic\nsystems have emerged as a promising paradigm, enabling agents to reason, plan, and collaborate (Su\net al., 2025). There are some works that leverage\nLLMs or LVMs for IAD. In the time series area, Argos (Gu et al., 2025) utilizes LLMs for autonomous\nrule generation, ADT (Yang et al., 2025b) uses reinforcement learning to realize thresholding control, and MAS-LSTM (Qin et al., 2025) proposes a\nLSTM-based multi-agent system for IoT datasets.\nAs for the vision scenario, AgentIAD (Miao et al.,\n2025) uses LVM for multi-stage visual inspection.\nBesides, LEMAD (Ji et al., 2025b) proposes a\nmulti-agent system for Power Grid Services to process log anomaly detection. PARAM (Harbola and\nPurwar, 2025)uses rag for data knowledge retrieval\nand utilizes a pretrained LLM to realize anomaly\ndetection. These works use LLM as a specific processor without considering using a specific model\nfor different scenarios.\nRepresentative frameworks such as AD-AGENT\n(Yang et al., 2025a) and AutoIAD (Ji et al., 2025a)\nconstruct end-to-end pipelines that autonomously\ngenerate executable code for diverse industrial scenarios. As shown in Table. 3, AD-AGENT proposes a selection model, then code generation and\noptimizing parameters. It focuses on the optimization step to get better parameters. AutoIAD decomposes the data analysis process into its work, augmenting data preparation, data loading, model design, and the training process. They put their attention on the realization process, instead of decisionmaking.\n\nC\n\nNotation\n\nD\n\nEvaluation Metrics\n\nD.1\n\nArea Under the Receiver Operating\nCharacteristic Curve (AUROC)\n\nThe Receiver Operating Characteristic (ROC)\ncurve is a graphical representation used to illustrate\n\nTable 4: Summary of Notation in the DMAIC-Agentic\nFramework\nNotation\n\nDescription\n\nΩ\nR\nD\nK\nP\nW\nM\nΠ\nΠK\nC\n\nThe global tuple defining the IAD Agentic Framework\nDomain of task descriptions (User Scenarios)\nDomain of datasets\nExternal knowledge base (Literature &amp; Web Resources)\nThe ordered set of DMAIC phases\nDomain of Standard Operating Procedures (SOPs)\nSpace of structured data profiles\nSet of executable strategies\nSet of K candidate strategies generated by the Strategist\nSpace of executable code scripts\n\nΨcons\nΨinsp\nΨstrat\nΨcode\nΨref ine\nΦjudge\nFmlp\nV (·)\nE(·)\nH(·)\n⊕\n\nConsultant function: Retrieval and SOP distillation\nInspector function: Feature extraction and profiling\nStrategist function: Candidate strategy generation\nExecutor function: Code generation from strategy\nCode refinement function based on feedback\nJudge utility function for scoring strategies\nMLP regressor function within the Judge Model\nValidation oracle for code execution\nSemantic embedding function (Sentence Transformer)\nDeterministic hash function for fingerprinting\nVector concatenation operator\n\nr\nw\nD\nm\nK\nLk\nπk\nτj\nπ∗\nŷk\nθ\nc(t)\nϵ(t)\nTmax\nµ(hist)\nλj\n\nSpecific input task description (r ∈ R)\nStructured SOP, composed of {dscen , ⃗osteps , Mrec }\nRaw input dataset\nStructured data profile, composed of ⟨ϕf eat , τtask , δmiss ⟩\nThe number of candidate strategies\nThe length (number of steps) of strategy πk\nThe k-th candidate strategy (πk ∈ Π)\nA single step tuple ⟨i, αact , µalgo , θparam ⟩ in a strategy\nThe optimal strategy selected by the Judge\nPredicted utility score for strategy πk\nTrainable parameters of the Judge Model’s MLP\nExecutable code script at iteration t\nError trace or feedback from validation\nMaximum number of iterations for code refinement\nHistorical performance metrics (Ground Truth)\nImportance weight for the j-th historical metric\n\nSets and Domains\n\nFunctions and Operators\n\nVariables and Artifacts\n\n\fthe diagnostic ability of a binary classifier system\nas its discrimination threshold is varied. The curve\nis created by plotting the True Positive Rate (TPR),\nalso known as recall or sensitivity, against the False\nPositive Rate (FPR) at various threshold settings.\nThe TPR is the ratio of correctly predicted positive\nobservations to all actual positives, while the FPR\nis the ratio of incorrectly predicted positive observations to all actual negatives. The Area Under the\nROC Curve (AUROC) quantifies the overall performance of the classifier. It represents the probability that the classifier will rank a randomly chosen\npositive instance higher than a randomly chosen\nnegative one. An AUROC of 1.0 indicates a perfect classifier, while an AUROC of 0.5 suggests a\nclassifier with no discriminative ability, equivalent\nto random guessing. The AUROC is defined by the\nintegral of the ROC curve:\nZ 1\nAUROC =\n\nTPR(FPR−1 (t)) dt\n\n0\n\nWhere TPR(FPR−1 (t)) represents the ROC\ncurve.\nD.2\n\nArea Under the Precision-Recall Curve\n(AUPRC)\n\nThe Precision-Recall (PR) curve is another critical\nevaluation metric for binary classification, which\nplots precision against recall (or TPR) for different\nthresholds. Precision is the ratio of correctly predicted positive observations to the total predicted\npositives, and recall is the same as TPR. The Area\nUnder the PR Curve (AUPRC) summarizes this\nplot into a single value. Unlike AUROC, AUPRC\nis particularly informative when dealing with imbalanced datasets, where the number of negative\nsamples significantly outweighs the number of positive samples. This is because the calculation of\nprecision does not take into account the number of\ntrue negatives, focusing instead on the model’s performance on the positive class. A higher AUPRC\nvalue indicates a better-performing classifier, with\n1.0 being the ideal score. The AUPRC is calculated\nas the area under the PR curve:\nZ 1\nAUPRC =\n\nP (r) dr\n0\n\nWhere P (r) is the precision as a function of\nrecall r.\n\nE\n\nExperiment: Comparison with\nModality-Specific Baselines\n\nTo further evaluate the effectiveness of our framework across different data modalities, we compare\nour method with representative modality-specific\nanomaly detection baselines. Specifically, we use\nSVC (One Class SVM) for tabular data, GNNbased models for graph data, LSTM-based models\nfor time-series data, and AutoEncoder-based models for image data. Table 5 summarizes the comparison between these modality-specific baselines\nand our full framework.\nAs shown in Table 5, our method achieves better performance than modality-specific baselines\non most datasets, especially on graph, time-series,\nand image anomaly detection tasks. Although the\nSVC baseline slightly outperforms our method on\nthe vertebral dataset, our framework demonstrates\nmore consistent adaptability across heterogeneous\nmodalities without manually selecting a fixed algorithm for each task.\n\nF\n\nExperiment: Parameters and Prompt\n\nIn order to further analyze the influence of key design choices, we conduct a parameter experiment\non the MetalNut dataset. Specifically, we evaluate\nthe effects of prompt design, the number of generated candidate strategies, and the hidden dimension\ndmodel of the Judge Model. The default setting of\nour framework uses 10 candidate strategies and sets\ndmodel = 128.\nAs shown in Table 6, the default configuration\nachieves the best performance, indicating that both\nsufficient strategy diversity and an appropriately\nsized Judge Model are important for effective strategy selection. Compared with the simple prompt,\nthe structured prompt used in our framework brings\nclear improvements, demonstrating the benefit of\nexplicitly guiding the agent with task-specific reasoning procedures. Increasing the number of strategies from 1 to 5 improves performance, while using\n10 strategies further enhances the results by providing a richer candidate pool for the Judge Model.\nFor the Judge Model architecture, dmodel = 128\nperforms better than both smaller and larger dimensions, suggesting that an overly small model\nmay lack sufficient representation capacity, while\nan overly large model may introduce unnecessary\ncomplexity.\n\n\fTable 5: Comparison with modality-specific baselines across different modalities. All results are reported in\npercentage (%). The better result between the modality-specific baseline and our method is highlighted in bold.\nModality\n\nDataset\n\nBaseline\n\nBaseline AUROC\n\nBaseline AUPRC\n\nOurs AUROC\n\nOurs AUPRC\n\nTabular\nTabular\nGraph\nGraph\nTime Series\nTime Series\nImage\nImage\n\nvertebral\narrhythmia\nbooks\nenron\nPSM\nSWaT\nmetalnut\ntile\n\nSVC\nSVC\nGNN\nGNN\nLSTM\nLSTM\nAutoEncoder\nAutoEncoder\n\n96.83\n84.37\n37.77\n76.13\n75.87\n50.21\n54.10\n69.34\n\n91.94\n46.59\n2.00\n0.31\n46.88\n5.77\n68.17\n86.76\n\n96.17\n87.99\n57.55\n93.20\n87.02\n83.94\n87.24\n70.43\n\n91.38\n59.13\n6.40\n1.08\n72.60\n67.67\n96.99\n91.81\n\nTable 6: Parameter experiment on the MetalNut dataset.\nWe evaluate the effects of prompt design, the number of\ngenerated strategies, and the hidden dimension dmodel of\nthe Judge Model.\nSetting\nDMAIC-IAD\n10 Strategies, dmodel = 128\nSimple Prompt\n1 Strategy\n5 Strategies\ndmodel = 64\ndmodel = 256\n\nG\n\nAUROC (%)\n\nAUPRC (%)\n\n87.24\n80.32\n69.53\n74.87\n74.65\n83.11\n\n96.99\n87.41\n83.29\n87.33\n85.07\n91.26\n\nCase Study\n\nIn the Define phase, the IAD Consultant identifies the MVTec Tile dataset as a texture-based surface inspection task by retrieving domain-specific\nknowledge. As illustrated in the SOP Display (Fig.\n6), the generated Standard Operating Procedure\n(SOP) formalizes essential workflows tailored to\ntile surfaces, prioritizing structural damage detection (e.g., cracks, pits) through a combination of\nprocedural tiling and hybrid reconstruction-feature\nmatching strategies.\nDuring the Measure phase, the Data Inspector\nprofiles the dataset, confirming its status as an unsupervised learning problem characterized by a\n\"clean\" training set composed entirely of normal\nsamples (as detailed in Fig. 7). This profiling\nclarifies the task structure, confirming that despite\nthe presence of labels, the dataset is optimized for\nlearning normalcy from a distribution of anomalyfree samples.\nBased on these constraints, the Analyze phase\ninvolves the Strategist formulating a concrete execution plan. As shown in Fig. 8, the strategy\nleverages a PatchCore framework, specifically configured with a WideResNet50 backbone to balance\nspatial resolution and high-level semantics. Key\n\nhyperparameters, such as 128 × 128 overlapping\ntiling and the utilization of Layer 3 features, are\nexplicitly defined to optimize local texture analysis.\nThe Improve phase then features an executionfree Judge Model that evaluates these candidate\nplans, validating the PatchCore framework for its\ncomputational efficiency and suitability for this\nspecific texture profile without requiring costly runtime trials. Finally, the Control phase concludes\nwith the IAD Executor generating the corresponding executable code and a comprehensive, auditable\ndetection report.\n\nH\n\nLarge Language Model Configuration\n\nThe pipeline delegates four language-model stages:\npre-analysis, SOP synthesis, meta-planning, and\ncode generation (including per-step agents that\nshare the code-generation backend). Table 7 summarizes the deployed model identifiers, API vendors, completion budgets, and stage responsibilities. Pre-analysis and SOP generation use gpt-4o\nvia the OpenAI API with a maximum output length\nof 4,096 tokens. The default meta-planner is\ngpt-5-mini (8,192 tokens), which emits structured JSON plans covering preprocessing, feature\nextraction, the anomaly-detection algorithm, and\nevaluation metrics. All executable Python—full\npipelines and step-level modules—is produced by\nclaude-sonnet-4-5 through the Anthropic API\n(8,192 tokens). For each dataset run we generate\nK=10 alternative plans; inter-plan diversity is enforced by prompt-level variant constraints and by\nconditioning each new plan on methods already\nchosen in previous variants, rather than by varying\ndecoding hyperparameters at the planner.\nSampling controls differ across API generations.\nStages implemented with Anthropic Claude and\nwith OpenAI GPT-4o for pre-analysis and SOP\nuse deterministic decoding with temperature τ =0.\n\n\fLiterature-Based SOP for MVTec Tile Dataset\nRequirement Summary: Analyze the MVTec Tile dataset for texture-based anomaly detection.\n• Type: Building materials / Surface texture.\n• Anomalies: Cracks, bubbles or pits, color differences, edge chipping.\n• Characteristics: Normal samples have repetitive patterns; anomalies are structural damage. Suited for feature\nmatching or reconstruction methods.\nGenerated Standard Operating Procedure (SOP):\n• Scenario: Anomaly detection for tile surface texture dataset.\n• Data Description: Image dataset of tile surfaces with repetitive patterns. Normal samples exhibit consistent textures,\nwhile anomalies include structural damages.\nOperation Steps:\nStep 1: Data Preprocessing and Tiling: Segment the input images into smaller tiles to enhance the detection of\nlocal anomalies, as described in.\nStep 2: Texture Feature Extraction: Extract texture features using procedural texturing workflows and stochastic\ntexturing methods to capture repetitive patterns.\nStep 3: Reconstruction-Based Anomaly Detection: Implement reconstruction-based methods, training a model on\nnormal samples. Techniques like tiled diffusion can be adapted.\nStep 4: Feature Matching for Anomaly Detection: Apply feature matching to compare test sample features against\na memory bank of normal features, potentially using tools like Bitmap2Material.\nStep 5: Calibration and Evaluation: Calibrate the detection system, drawing inspiration from methods like the\nATLAS Tile Calorimeter calibration [Paper Search Results], and evaluate using statistical metrics.\nRecommendations:\n• Preprocessing: Use tiling to segment images for texture-based models.\n• Feature Extraction: Leverage procedural and stochastic texturing methods.\n• Modeling: Adopt a hybrid approach combining reconstruction-based (e.g., tiled diffusion) and feature-matching\nmethods.\n• Evaluation: Calibrate the system and evaluate using reconstruction error and feature matching accuracy.\n\nFigure 6: An example of a SOP generated for the Tile dataset.\n\nData Profile for MVTec Tile Dataset\nRequirement Summary: Analyze the MVTec Tile dataset for texture-based anomaly detection.\n• Type: Building materials / Surface texture.\n• Anomalies: Cracks, bubbles or pits, color differences, edge chipping.\n• Characteristics: Normal samples exhibit repetitive patterns, while anomalies are mainly structural damage. Suited\nfor feature matching or reconstruction methods.\nGenerated Data Profile:\n• Task Type: classification (Binary)\n• Data Type: Image\n• Supervision: Supervised (due to presence of labels).\n• Label Information:\n– Training Set: Contains 230 samples, all are normal (label 0).\n– Test Set: Contains 117 samples, composed of 33 normal (label 0) and 84 anomalous (label 1) samples.\n• Keywords: tile, surface, anomaly, texture, detection\n• Insights Summary:\nThe dataset is structured for a binary classification task where the training set contains only normal\nsamples, and the test set is imbalanced with both normal and anomalous samples. This setup is typical\nfor evaluating supervised anomaly detection methods that learn a model of normalcy from a \"clean\"\ntraining distribution. Although the domain is texture anomaly detection, the availability of explicit\nlabels defines the technical task as classification.\n\nFigure 7: The data profile automatically generated by our Data Inspector agent for the MVTec Tile dataset.\nIt correctly identifies the task structure, label distribution, and key characteristics, providing a foundation for\nsubsequent strategy generation.\n\n\fExample of an LLM-Generated Execution Strategy (for Tile Dataset)\nUser Requirement: Analyze the Tile image anomaly detection dataset from MVTec AD.\n• Dataset Type: Texture category (building materials).\n• Image Resolution: Approx. 640×640 pixels.\n• Common Anomaly Types: Cracks, bubbles or pits, color differences, edge chipping.\n• Characteristics: Normal samples have repetitive patterns; anomalies are mostly structural. Suitable for\nreconstruction-based or feature matching methods.\nGenerated Execution Steps:\nStep 1: Data Preprocessing\n• Method: Tiling_128x128_stride64\n• Parameters:\n– Tile Size: [128, 128], Stride: [64, 64] (50% overlap).\n– Notes: Segment image into overlapping tiles to capture anomalies spanning boundaries. Tile coordinates\nare kept for later score aggregation.\nStep 2: Feature Extraction\n• Method: WideResNet50_patch_features\n• Parameters:\n– Backbone: WideResNet50 (pretrained on ImageNet).\n– Output Layer: layer3 (1024-dim).\n– Pooling: Spatial-average pooling.\n– Notes: Extract per-tile deep patch descriptors to capture local texture patterns, leveraging pretrained\nfeature priors.\nStep 3: Anomaly Algorithm\n• Method: PatchCore\n• Parameters:\n– Memory Bank: Built via coreset sampling (1% ratio) from normal tiles.\n– Distance Metric: Cosine distance with k=1 neighbor.\n– Thresholding: Calibrated on a validation set of normal tiles (99th percentile).\n– Aggregation: Per-tile scores aggregated to image-level via max-pooling.\n– Notes: Use Faiss for fast nearest neighbor search. Train the memory bank on features from normal tiles\nonly.\n\nFigure 8: A detailed execution strategy generated by our framework for the MVTec Tile dataset. The plan specifies\na concrete sequence of methods, from tiling and feature extraction with WideResNet50 to anomaly detection using\nPatchCore, including key hyperparameters.\n\nFor planner ablations on OpenAI GPT-3.5 and GPT4–family models (gpt-3.5-turbo, gpt-4o-mini),\nthe provider exposes a temperature parameter; in\nour experiments we set τ =1 (the value supported\nfor these endpoints in our deployment). In contrast,\nnewer OpenAI planner backbones in the GPT-5\nfamily (gpt-5-mini, gpt-5.2) do not accept userspecified temperature in our integration: the client\nomits the field and the service applies its fixed\ndefault decoding policy. We therefore mark planner\ntemperature as not applicable (“–”) in Table 7 and\nreport planner comparisons primarily in terms of\nmodel identity and completion budget (Table 8),\nholding non-planner stages fixed.\n\nI\n\nAgent Prompt\n\nI.1\n\nIAD Data Inspector\n\nSystem Prompt:\nYou are a data analysis expert. Infer task_type\nfrom user requirement + data samples.\nRULE: Data structure first. Task type by label\nstructure:\n- train_label_unique=1 class AND\ntest_label_unique=2 classes -&gt;\nanomaly_detection (one-class: train only\nnormal, test has normal+anomaly)\n- One label column, &gt;2 classes -&gt;\nmulti_class_classification\n- Multiple binary label columns -&gt;\nmulti_label_classification\n- One binary label column (both train &amp; test\nhave 2 classes) -&gt; classification\n- Continuous target -&gt; regression\n\n\fTable 7: Large language model settings for the multi-agent anomaly-detection pipeline.\nPipeline stage\n\nModel ID\n\nAPI\n\nMax. output tokens\n\nTemp. (τ )\n\nData Inspector\n\ngpt-4o\n\nOpenAI\n\n4,096\n\n0.0\n\nIAD Consultant\n\ngpt-4o\n\nOpenAI\n\n4,096\n\n0.0\n\nStrategist (default)\n\ngpt-5-mini\n\nOpenAI\n\n8,192\n\n-\n\nCode generation agent\n\nclaude-sonnet-4-5\n\nAnthropic API\n\n8,192\n\n0.0\n\nRole\nInfer task type, schema,\nand data-quality summary from user requirement and sample statistics.\nProduce method-level\nSOP guidance conditioned on pre-analysis.\nEmit JSON execution\nplans (preprocessing,\nfeatures,\nalgorithm,\nmetrics).\nGenerate standalone\nPython implementing\neach plan; step agents\nshare this backend.\n\nMulti-plan setting: K = 10 plans per run.\n\nTable 8: Planner-only LLM variants for ablation (other\nstages fixed as in Table 7).\n\nDeployed model ID\n\nMax. output tokens\n\ngpt-4o-mini\ngpt-5-mini\ngpt-5.2\ngpt-3.5-turbo\n\n8,192\n8,192\n8,192\n8,192\n\n- No label column / unlabeled -&gt;\nanomaly_detection\nOutput JSON only: {\"task_type\": \"...\", \"\nscenario_keywords\": [\"kw1\", ...], \"\nadditional_info\": \"...\"}\nscenario_keywords: 3-5 domain keywords for paper\nsearch. No extra keys, no text outside JSON\n.\n[System]\n{self._system_prompt}\n[User]\nUser requirement description:\n{requirement}\nData information:\n{data_info if data_info else \"No data provided\"}\nImportant: Please determine the task type based\non the DATA STRUCTURE first (especially\nwhether there are label columns and how many\ndistinct label values), then consider the\nrequirement description.\nOutput JSON: task_type, is_supervised,\nscenario_keywords (3-5 domain keywords),\nadditional_info. Output only JSON.\n\nI.2\n\nIAD Consultant Agent Prompt\n\nYou are an SOP (Standard Operating Procedure)\ngenerator for an industrial anomaly\ndetection system.\nTask: Generate standardized operating guidelines\n(SOP guide) based on search results (web\nsearch and paper search) and input\ninformation.\nOutput format: JSON format containing structured\noperation steps and recommendations.\nCRITICAL REQUIREMENTS:\n- You MUST base the SOP guide PRIMARILY on the\nprovided search results (web search and\npaper search results)\n- The operation steps should reflect methods,\nworkflows, and approaches found in the\nsearch results\n- Steps can be arranged flexibly based on the\nsearch results - you do NOT need to follow a\nfixed order (preprocessing -&gt; feature\nextraction -&gt; anomaly detection)\n- You can include specific methods or techniques\nmentioned in the search results\n- DO NOT output generic or irrelevant\ninformation like 'precautions' or '\nbest_practices' that are not directly\nrelated to the search results\n- Focus on actionable, specific steps that\nreflect the knowledge from search results\nOutput JSON structure:\n{\n\"scenario\": \"brief scenario description\",\n\"data_description\": \"brief data description\",\n\"operation_steps\": [\n{\n\"step_id\": \"step_1\",\n\"step_name\": \"step name (should reflect\nmethods from search results)\",\n\"description\": \"detailed description based\non search results\",\n\"order\": 1\n\n\f}\n\n}\n],\n\"recommendations\": {\n\"data_preprocessing\": \"recommendations based\non search results (if applicable)\",\n\"feature_extraction\": \"recommendations based\non search results (if applicable)\",\n\"modeling\": \"recommendations based on search\nresults (if applicable)\",\n\"evaluation\": \"recommendations based on\nsearch results (if applicable)\"\n}\n\nIMPORTANT: Do NOT include 'precautions' or '\nbest_practices' fields in the output. Only\noutput the fields specified above.\nCONSTRAINTS for one-class / MVTec-style image\nanomaly:\n- scenario: Use 'One-class anomaly detection' or\n'Unsupervised image anomaly detection', NOT\n'Classification anomaly detection'\n- data_description: If train has 1 class and\ntest has 2 classes, state: train=normal only\n, test=normal+anomaly\n- feature_extraction: Prefer PatchCore-style,\npretrained CNN patch features. Do NOT\nrecommend 'multi-scale self-referencing\ntemplates'\n- modeling: Prefer PatchCore, kNN on patch\nfeatures, OneClassSVM. Do NOT recommend\nYOLOv5, YOLOv8 or object detection models\n- When train 1 class and test 2 classes: force\nanomaly_detection task, avoid classification\n/detection models\n\nI.3\n\nIAD Strategist Prompt\n\nThe lists below are suggestions/references. You\nare free to use any method that fits the\ntask and data (from any library: sklearn,\npyod, xgboost, tslib, darts, etc.). Some\nplans may already follow SOP; you can also\nchoose other methods as you see fit. The\nonly hard rule: for graph data do NOT use\nPyGOD (pygod); use\ngraph_statistical_features + PyOD/sklearn or\nalternatives.\nReference: Feature Extraction Methods (by data\ntype)\n- Image datasets (MVTec AD, hazelnut, screw,\nmetal_nut, tile, transistor, etc.):\nPatchCore, CNN_backbone, pretrained CNN\npatch features. Do NOT use YOLOv5/YOLOv8 or\nobject detection models. MVTec AD is oneclass: train=normal only, test=normal+\nanomaly.\n- Tabular/high-dim: PCA, statistical_features:\nuse when dimensionality reduction or\nstatistical aggregation is beneficial.\n- Graph data: graph_statistical_features:\nextract node/graph-level features (degree,\nclustering coefficient, centrality via\nNetworkX) and treat as tabular; then use any\nanomaly detection library (PyOD, sklearn,\netc.). DO NOT use PyGOD (pygod) package.\n\n- Time series: PREFER \"none\" for\nfeature_extraction. TSLib models (TimesNet,\nFEDformer, Autoformer, etc.) have built-in\nfeature learning and do NOT require external\nfeature extraction or window-based\nstatistical features. Only use\ntime_series_features/window-based features\nif NOT using TSLib models.\n- Generic: none: pass through raw features when\nno special extraction is needed.\nReference: Methods by Task Type\nFor Anomaly Detection Tasks (task_type:\nanomaly_detection)\n- Image (MVTec AD style): PatchCore, kNN on\npatch features, OneClassSVM. Do NOT use\nYOLOv5/YOLOv8 or object detection.\n1. PyOD (Library: pyod)\nApplicable Data Type: Multivariate Tabular Data,\nGraph Data (after feature extraction)\nDescription: Python Outlier Detection: a\ncomprehensive library with 40+ anomaly\ndetection algorithms\nFor tabular/numeric data prefer classic, wellestablished methods: IsolationForest, LOF,\nOneClassSVM, COPOD, ECOD, ABOD, CBLOF, HBOS\n(fast and robust). Deep methods (AutoEncoder\n, VAE, DeepSVDD) are available for special\ncases where classic methods are insufficient\n.\nAvailable Models: IsolationForest, LOF,\nOneClassSVM, COPOD, ECOD, ABOD, AutoEncoder,\nVAE, DeepSVDD, IForest, CBLOF, HBOS,\nFeatureBagging, LSCP, SUOD\nFor Graph Data: Use graph_statistical_features (\nNetworkX: degree, clustering, PageRank, etc\n.) to convert graph to tabular, then apply\nPyOD, sklearn, or other anomaly detection\nmodels. AVOID PyGOD (pygod): do not use\npygod package.\n2. TSLib (Library: tslib) - PREFERRED FOR TIME\nSERIES DATA\nApplicable Data Type: Time Series Data (msl,\nyahoo, psm, smap, smd, swat, etc.)\nDescription: Deep learning library for time\nseries developed by THUML. These models have\nbuilt-in feature learning and do NOT\nrequire preprocessing or feature extraction\nsteps.\nPRIORITY MODELS (use these first):\n- TimesNet - Default choice for general-purpose\ntime series modeling, strong generalization\nacross all tasks\n- FEDformer - Frequency-domain decomposition\nwith Transformer, captures global seasonal\npatterns efficiently\n- Autoformer - Auto-correlation mechanism,\ncompetitive in anomaly detection\nOther Models: Informer, iTransformer, TimeMixer,\nPatchTST, DLinear, TimeXer\nIMPORTANT for Time Series: When using TSLib\nmodels, set data_preprocessing=[\"none\"] and\nfeature_extraction=[\"none\"] since these\nmodels learn features internally.\n3. Scikit-learn (Library: sklearn)\nApplicable Data Type: Tabular Data\nDescription: General-purpose machine learning\nlibrary\nAnomaly Detection Models: IsolationForest,\nLocalOutlierFactor, OneClassSVM,\n\n\fEllipticEnvelope\nFor Classification Tasks (task_type:\nclassification, multi_class_classification,\nmulti_label_classification)\nScikit-learn (Library: sklearn)\nApplicable Data Type: Tabular Data\nDescription: Supervised learning library with a\nwide range of classifiers\nAvailable Models:\nLinear Models: LogisticRegression, SGDClassifier,\nPerceptron, PassiveAggressiveClassifier\nTree-Based Models: DecisionTreeClassifier,\nRandomForestClassifier, ExtraTreesClassifier\nEnsemble Methods: GradientBoostingClassifier,\nAdaBoostClassifier, VotingClassifier,\nStackingClassifier\nOthers: SVC, KNeighborsClassifier, GaussianNB,\nMLPClassifier\nFor Regression Tasks (task_type: regression)\nScikit-learn (Library: sklearn)\nApplicable Data Type: Tabular Data\nDescription: Supervised learning library with\nregression algorithms\nAvailable Models:\nLinear Models: LinearRegression, Ridge, Lasso,\nElasticNet, BayesianRidge\nTree-Based Models: DecisionTreeRegressor,\nRandomForestRegressor, ExtraTreesRegressor\nEnsemble Methods: GradientBoostingRegressor,\nAdaBoostRegressor,\nHistGradientBoostingRegressor\nOthers: SVR, KNeighborsRegressor, MLPRegressor,\nGaussianProcessRegressor\nFor Forecasting/Prediction Tasks (task_type:\nforecasting)\nTSLib (Library: tslib)\nApplicable Data Type: Time Series Data\nDescription: Deep learning library specialized\nfor time series forecasting\nAvailable Models: Autoformer, Informer, TimesNet,\niTransformer, TimeMixer, PatchTST, DLinear,\nFEDformer, TimeXer\nScikit-learn (Library: sklearn)\nApplicable Data Type: Time Series Data (simple\ncases)\nDescription: Can be used for basic time series\nforecasting via supervised regression models\nAvailable Models: LinearRegression, Ridge, and\nother standard regressors\nVARIANT {variant_index}/{total_variants}\nREQUIREMENTS\nRules:\n1. Each category (data_preprocessing,\nfeature_extraction, anomaly_algorithm) must\nuse EXACTLY ONE method\n2. At least ONE category must use a DIFFERENT\nmethod from previous variants\n3. Parameter-only changes are NOT allowed - must\nchange method names\n4. Diversity in preprocessing/feature_extraction:\nSome variants MAY use alternatives (e.g.\nResNet/WideResNet patch features, PatchCorestyle backbone). Do NOT use YOLOv5/YOLOv8 or\nobject detection models for image anomaly\ndetection.\n\nYou are a planner for a machine learning system.\n{intro}\n{context}\n{variant_guidance}\n{sop_middle_block}\n{efficiency_block}\nPLAN STEPS\n1. data_preprocessing: EXACTLY ONE method. You\nmay use any preprocessing you deem\nappropriate (e.g. none, MinMaxScaler,\nStandardScaler, fill_median, or others). \"\nnone\" is often enough when there are no\nspecial requirements. For time series with\nTSLib models: USE [\"none\"].\n2. feature_extraction: EXACTLY ONE method. Image:\nPatchCore, CNN_backbone, pretrained CNN\npatch features (no YOLOv/object detection).\nGraph: graph_statistical_features. Tabular:\nPCA, statistical_features. Do NOT use PyGOD\n(pygod) for graphs. TSLib: USE [\"none\"].\n3. anomaly_algorithm: EXACTLY ONE algorithm (\nmatch task_type: supervised/unsupervised/\ntime_series). Use any algorithm you think\nsuitable (e.g. from PyOD, sklearn, xgboost,\ntslib, darts, etc.).\nStep format: step_id, agent_type, order,\ndependencies, methods (EXACTLY ONE per\ncategory), method_params\nOutput JSON (example with simple preprocessing/\nextraction):\n{\n\"metrics\": [\"accuracy\", \"precision\", \"recall\",\n\"f1_score\"],\n\"steps\": [\n{\"step_id\": \"step_1\", \"agent_type\": \"\ndata_preprocessing\", \"order\": 1, \"\ndependencies\": [], \"methods\": [\"none\"], \"\nmethod_params\": {\"none\": {\"notes\": \"Skip\npreprocessing - use raw data\"}}},\n{\"step_id\": \"step_2\", \"agent_type\": \"\nfeature_extraction\", \"order\": 2, \"\ndependencies\": [\"step_1\"], \"methods\": [\"none\n\"], \"method_params\": {\"none\": {\"notes\": \"\nPass through\"}}},\n{\"step_id\": \"step_3\", \"agent_type\": \"\nanomaly_algorithm\", \"order\": 3, \"\ndependencies\": [\"step_2\"], \"methods\": [\"\nRandomForestClassifier\"], \"method_params\":\n{\"RandomForestClassifier\": {\"n_estimators\":\n100, \"max_depth\": 10}}}\n]\n}\nMETRICS\nInclude \"metrics\" field: classification/\nregression-&gt;[\"accuracy\", \"f1_score\"],\nanomaly_detection-&gt;[\"precision\", \"recall\", \"\nf1_score\"], forecasting-&gt;[\"mse\", \"rmse\", \"\nmae\"]\nNOTES\n- methods: EXACTLY ONE per category (\ndata_preprocessing, feature_extraction,\nanomaly_algorithm). You are free to choose\nany method; reference lists are for\ninspiration only.\n- DO NOT use PyGOD (pygod) for graph data. Use\n\n\fgraph_statistical_features + PyOD/sklearn or\nother alternatives.\n- method_params: {\"MethodName\": {\"param\": value}}\nor {\"none\": {\"notes\": \"...\"}} for skip\nsteps.\n- If data_rows &gt; 4,000 and using window-based\nfeatures, set window_step_seconds &gt;= 5.\n- Keep model size moderate: avoid extremely highdimensional hidden layers, feature vectors\nor too large n_estimators; prefer small/\nmedium configurations for speed.\nOutput only JSON.\n\nI.4\n\nIAD Code Generator Prompt\n\n.executable, \"-m\", \"pip\", \"install\",\npackage_name])\nUncommon packages (examples): skmultilearn, pyod,\npygod, darts, imbalanced-learn, etc.\nPip name may differ from import name (e.g.,\nscikit-multilearn vs skmultilearn).\nPyGOD IMPORT RULE (CRITICAL)\nIf use pygod, import detectors ONLY from 'pygod.\ndetector' (NOT 'pygod.models'). Example:\nfrom pygod.detector import DOMINANT\nCRITICAL: NumPy Version Compatibility\nIf using PyTorch/ultralytics, check NumPy\nversion at script start and downgrade if\nNumPy &gt;= 2.0:\n\nYou are a code generation expert. Generate a\ncomplete, executable Python script strictly\nfollowing the plan, DO NOT modify, change,\nor use different values for these parameters\n.\n\nimport numpy as np\nif int(np.__version__.split('.')[0]) &gt;= 2:\nimport subprocess, sys, importlib\nsubprocess.check_call([sys.executable, \"-m\",\n\"pip\", \"install\", \"numpy&lt;2.0\", \"--quiet\"])\nimportlib.reload(np)\n\nIMPORTANT OUTPUT RULE:\n\nDo this BEFORE importing PyTorch/ultralytics.\n\nOutput ONLY Python code.\nNO markdown, NO explanations outside code.\nStart with import statements, end with the last\nline of code.\n\nC) REQUIRED FUNCTIONS\nImplement these functions (based on plan steps\nand methods/params):\n\nCRITICAL: The output must be raw Python source\ncode only. Do NOT wrap it in Markdown code\nfences. Do NOT output lines like ```python\nor ``` anywhere.\nThe context_info is: {context_info}\nThe error_hint is: {error_hint}\n======REQUIREMENTS (MANDATORY)\nA) SCRIPT MUST BE COMPLETE &amp; STANDALONE\nInclude ALL necessary imports and helper\nfunctions.\nAt the VERY BEGINNING of the script, include\nautomatic package installation logic for\nuncommon packages.\nUse try-except imports for uncommon packages; on\nImportError, auto-install with pip then reimport.\nCommon packages (e.g., pandas, numpy, scikitlearn, scipy) may be imported directly\nwithout installation logic. Only add tryexcept + install for packages NOT in the\nstandard scientific Python stack.\nCRITICAL: Scikit-learn Version Compatibility\n- For OneHotEncoder: Use 'sparse_output=False' (\nNOT 'sparse=False'). The 'sparse' parameter\nwas deprecated and replaced with '\nsparse_output' in scikit-learn &gt;= 1.2.\n- Example: OneHotEncoder(sparse_output=False,\nhandle_unknown='ignore', drop=None)\n- Always use 'sparse_output' instead of 'sparse'\nto ensure compatibility with modern scikitlearn versions.\nB) PACKAGE INSTALLATION (CRITICAL)\nMust implement install_package() and use\nsubprocess + pip: subprocess.check_call([sys\n\nData Preprocessing: def preprocess_data(df: pd.\nDataFrame) -&gt; pd.DataFrame\nFeature Extraction: def extract_features(df: pd.\nDataFrame) -&gt; pd.DataFrame\nCRITICAL: When computing statistical features (\nmean, std, median, min, max, quantiles, etc\n.), MUST convert DataFrame to numpy array\nfirst (e.g., feature_matrix = df[columns].\nvalues) then use batch/vectorized operations\n(e.g., np.mean(feature_matrix, axis=1)).\nNEVER use row-by-row iteration (iterrows(),\napply() with lambda) for statistical\ncalculations.\nFor sliding window feature extraction: MUST\ncreate all window indices at once (e.g.,\nstart_indices = np.arange(0, n_samples window_size + 1, window_step); end_indices =\nstart_indices + window_size) then batch\nslice the feature matrix. NEVER loop through\nwindows one by one to create slices. Stack\nall windows into 3D array [n_windows,\nwindow_size, n_features] then compute\nstatistics along axis=1 using vectorized\noperations. For skew/kurtosis and delta\nfeatures, compute across all features at\nonce using vectorized numpy operations.\nModeling:\nIf anomaly_detection: def detect_anomalies(X) -&gt;\nTuple[np.ndarray, np.ndarray] returns (\nanomaly_labels, anomaly_scores)\nElse (supervised tasks): def train_model(X, y)\n-&gt; Any\nCRITICAL API &amp; DATA TYPE RULES:\n1. PyGOD vs PyOD API Difference:\n- PyGOD models (e.g., DOMINANT): Use '\ndecision_score_' (singular), returns torch.\nTensor\n\n\f- PyOD models: Use 'decision_scores_' (plural\n), returns numpy.ndarray\n- Example: anomaly_scores = model.\ndecision_score_ # for PyGOD\n- Example: anomaly_scores = model.\ndecision_scores_ # for PyOD\n2. PyOD AutoEncoder Parameter Names (CRITICAL):\n- PyOD AutoEncoder uses 'hidden_neuron_list'\n(NOT 'hidden_neurons')\n- PyOD AutoEncoder uses 'epoch_num' (NOT '\nepochs')\n- PyOD AutoEncoder uses 'lr' (NOT '\nlearning_rate')\n- PyOD AutoEncoder uses 'optimizer_name' (NOT\n'optimizer')\n- PyOD AutoEncoder uses '\nhidden_activation_name' (NOT 'activation' or\n'hidden_activation')\n- Correct example:\nfrom pyod.models.auto_encoder import\nAutoEncoder\nmodel = AutoEncoder(\nhidden_neuron_list=[64, 32], # NOT\nhidden_neurons\nepoch_num=100,\n# NOT\nepochs\nlr=0.001,\n# NOT\nlearning_rate\noptimizer_name='adam',\n# NOT\noptimizer\nhidden_activation_name='relu', # NOT\nactivation\nbatch_size=32,\ncontamination=0.1,\npreprocessing=True,\ndevice=None,\nrandom_state=42\n)\n- WRONG: AutoEncoder(hidden_neurons=[64, 32],\nepochs=100) # These parameter names do NOT\nexist\n- Always check PyOD documentation for correct\nparameter names before using\n3. PyOD VAE Parameter Names (CRITICAL):\n- PyOD VAE uses 'encoder_neuron_list' (NOT '\nencoder_neurons')\n- PyOD VAE uses 'decoder_neuron_list' (NOT '\ndecoder_neurons')\n- PyOD VAE uses 'lr' (NOT 'learning_rate')\n- Correct example: VAE(encoder_neuron_list\n=[32, 16], decoder_neuron_list=[16, 32], lr\n=0.001, epoch_num=100, contamination=0.05)\n- WRONG: VAE(encoder_neurons=[32, 16],\ndecoder_neurons=[16, 32], learning_rate\n=0.001)\n4. PyOD Models WITHOUT random_state (CRITICAL):\n- COPOD, HBOS, ECOD do NOT support '\nrandom_state' parameter - do NOT pass it\n- WRONG: COPOD(contamination=0.05,\nrandom_state=42) # TypeError\n- CORRECT: COPOD(contamination=0.05, n_jobs\n=-1)\n- CORRECT: HBOS(n_bins=10, contamination\n=0.05)\n- CORRECT: ECOD(contamination=0.1)\n4b. PyOD CBLOF beta parameter (CRITICAL):\n\n- CBLOF requires beta in range [1,\n2147483647]. Do NOT use beta=0.1 or any\nvalue &lt; 1.\n- WRONG: CBLOF(alpha=0.9, beta=0.1, ...) #\nValueError: beta is set to 0.1. Not in the\nrange of (1, 2147483647)\n- CORRECT: CBLOF(alpha=0.9, beta=5, ...) or\nbeta=1\n5. PyOD ECOD contamination (CRITICAL):\n- ECOD 'contamination' MUST be a float (e.g.,\n0.1), NOT the string 'auto'\n- WRONG: ECOD(contamination='auto') #\nAttributeError: 'str' object has no\nattribute 'eval'\n- CORRECT: ECOD(contamination=0.1)\n6. PyTorch Tensor to NumPy Conversion (MANDATORY\n):\n- PyGOD/PyTorch models return torch.Tensor,\nbut numpy functions (np.sum, np.mean, etc.)\nrequire numpy arrays\n- ALWAYS convert tensors before using numpy\nfunctions:\nif torch.is_tensor(anomaly_labels):\nanomaly_labels = anomaly_labels.cpu().\nnumpy()\nif torch.is_tensor(anomaly_scores):\nanomaly_scores = anomaly_scores.cpu().\nnumpy()\n# Or use: anomaly_labels = np.asarray(\nanomaly_labels)\n- Example: np.sum(anomaly_labels) requires\nanomaly_labels to be numpy array, not tensor\n7. Data Type Consistency:\n- Ensure all arrays passed to sklearn\nfunctions have consistent dtypes (float32 or\nfloat64)\n- Convert PyTorch tensors to numpy before\nsklearn operations\n- Use .astype(np.float32) or .astype(np.\nfloat64) if dtype mismatches occur\n{DATASET_SPECIFIC_SECTION}\nE) TRAIN-TEST SPLIT RULES\nCRITICAL: The dataloader already returns\nseparated train_x, train_y, test_x, test_y.\nDO NOT re-split the data.\nIMPORTANT RULES:\n1. NEVER merge train and test data then re-split:\nThe dataloader has already separated the\ndata. Merging and re-splitting would:\n- Cause data leakage (test data may contain\ntraining samples)\n- Break the original train/test distribution\n- Lead to incorrect evaluation results\n2. Use train and test data separately:\n- For preprocessing: Fit scalers/\npreprocessors on train_df, then transform\ntest_df\n- For feature extraction: Fit extractors on\ntrain_df, then transform test_df\n- For training: Use processed train data only\n- For evaluation: Use processed test data\nonly\n\n\f3. The is_supervised flag determines how to\nhandle labels:\n- is_supervised=True: Extract labels from\ntrain_df and test_df, use for supervised\ntraining/evaluation\n- is_supervised=False or None: Ignore labels\n(for unsupervised anomaly detection)\n4. Label column identification:\n- All dataloaders return label column as '\nanomaly_label' (check for 'anomaly_label',\nthen 'Normal/Attack', then 'label', else use\nlast column)\n- Extract labels from train_df and test_df\nseparately: train_y = train_df['\nanomaly_label'], test_y = test_df['\nanomaly_label']\nF) EVALUATION METRICS + JSON SAVE (MANDATORY)\nMetrics computation and the exact\nevaluation_metrics dict format are defined\nin the DATA-MODALITY-SPECIFIC section below\n(graph / image / numeric / time_series).\nFollow that section for:\n- How to compute metrics for {task_type} (perclass then macro for numeric; binary or\nforecasting for others)\n- The required keys and types for\nevaluation_metrics\n- Save path: result/metrics; filename: {\nmetrics_timestamp}_{dataset_name}{\nplan_suffix}.json (use exact \"{\nmetrics_timestamp}\" and \"{plan_suffix}\" from\nplan); json.dump(..., indent=2,\nensure_ascii=False); print the saved file\npath.\nG) RESULTS RETURN\nmain_pipeline must return: results_dict (single\ndict containing intermediate outputs and\nfinal evaluation_metrics).\n{gpu_instructions}\n=====TASK TYPE + PLAN (MUST FOLLOW)\nTask Type: {task_type}\nIs Supervised: {is_supervised}\nMetrics to compute: {metrics}\nPLAN STEPS (implement each step's method +\nmethod_params in order):\n{plan_steps_json}\nGenerate the complete Python code now.\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"