"<!DOCTYPE html>\n<html lang=\"zh\" data-theme=\"light\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>fulltext.txt — Vercel Design System</title>\n<link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">\n<link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>\n<link href=\"https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap\" rel=\"stylesheet\">\n<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css\">\n<style>\n\n:root {\n  /* Vercel Palette */\n  --geist-foreground: #171717;\n  --geist-background: #ffffff;\n  --geist-secondary: #4d4d4d;\n  --geist-tertiary: #666666;\n  --geist-quaternary: #808080;\n  --geist-border: #ebebeb;\n  --geist-surface-tint: #fafafa;\n  \n  /* Workflow Accents */\n  --develop-blue: #0a72ef;\n  --preview-pink: #de1d8d;\n  --ship-red: #ff5b4f;\n  \n  /* Interactive & Status */\n  --link-blue: #0072f5;\n  --ds-focus-color: hsla(212, 100%, 48%, 1);\n  --badge-blue-bg: #ebf5ff;\n  --badge-blue-text: #0068d6;\n  \n  /* Shadow-as-Border Philosophy */\n  --shadow-border: rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;\n  --shadow-border-hover: rgba(0, 0, 0, 0.16) 0px 0px 0px 1px;\n  --shadow-card: rgba(0, 0, 0, 0.08) 0px 0px 0px 1px, rgba(0, 0, 0, 0.04) 0px 2px 2px, #fafafa 0px 0px 0px 1px;\n  --shadow-card-hover: rgba(0, 0, 0, 0.12) 0px 0px 0px 1px, rgba(0, 0, 0, 0.06) 0px 4px 6px, #fafafa 0px 0px 0px 1px;\n  --shadow-card-full: rgba(0, 0, 0, 0.08) 0px 0px 0px 1px, rgba(0, 0, 0, 0.04) 0px 2px 2px, rgba(0, 0, 0, 0.04) 0px 8px 8px -8px, #fafafa 0px 0px 0px 1px;\n  --shadow-ring: rgb(235, 235, 235) 0px 0px 0px 1px;\n  \n  /* Radius Scale */\n  --radius-xs: 2px;\n  --radius-sm: 4px;\n  --radius-md: 6px;\n  --radius-lg: 8px;\n  --radius-xl: 12px;\n  --radius-pill: 9999px;\n}\n\n[data-theme=\"dark\"] {\n  --geist-foreground: #ededed;\n  --geist-background: #000000;\n  --geist-secondary: #a1a1a1;\n  --geist-tertiary: #888888;\n  --geist-quaternary: #666666;\n  --geist-border: #222222;\n  --geist-surface-tint: #0a0a0a;\n  \n  --shadow-border: rgba(255, 255, 255, 0.14) 0px 0px 0px 1px;\n  --shadow-border-hover: rgba(255, 255, 255, 0.28) 0px 0px 0px 1px;\n  --shadow-card: rgba(255, 255, 255, 0.12) 0px 0px 0px 1px, rgba(0, 0, 0, 0.4) 0px 2px 4px, #111111 0px 0px 0px 1px;\n  --shadow-card-hover: rgba(255, 255, 255, 0.2) 0px 0px 0px 1px, rgba(0, 0, 0, 0.5) 0px 6px 12px, #111111 0px 0px 0px 1px;\n  --shadow-card-full: rgba(255, 255, 255, 0.12) 0px 0px 0px 1px, rgba(0, 0, 0, 0.5) 0px 8px 16px -4px, #111111 0px 0px 0px 1px;\n  --shadow-ring: rgb(40, 40, 40) 0px 0px 0px 1px;\n  \n  --badge-blue-bg: rgba(10, 114, 239, 0.15);\n  --badge-blue-text: #70b5ff;\n}\n\n* { box-sizing: border-box; }\nhtml { scroll-behavior: smooth; }\nbody {\n  margin: 0;\n  font-family: \"Geist\", Arial, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif;\n  background-color: var(--geist-background);\n  color: var(--geist-foreground);\n  font-feature-settings: \"liga\" 1;\n  -webkit-font-smoothing: antialiased;\n  min-height: 100vh;\n}\n\na {\n  color: inherit;\n  text-decoration: none;\n  transition: color 0.15s ease;\n}\n\n/* 导航栏 (Vercel Clean Sticky Nav) */\n.vercel-nav {\n  position: sticky;\n  top: 0;\n  background-color: var(--geist-background);\n  box-shadow: var(--shadow-border);\n  z-index: 100;\n  padding: 0 24px;\n  height: 64px;\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n}\n.nav-brand {\n  display: flex;\n  align-items: center;\n  gap: 12px;\n}\n.vercel-triangle {\n  width: 22px;\n  height: 19px;\n  fill: var(--geist-foreground);\n}\n.nav-title {\n  font-size: 16px;\n  font-weight: 600;\n  letter-spacing: -0.32px;\n  color: var(--geist-foreground);\n}\n.nav-badge-pill {\n  font-family: \"Geist Mono\", ui-monospace, monospace;\n  font-size: 11px;\n  font-weight: 500;\n  text-transform: uppercase;\n  background: var(--badge-blue-bg);\n  color: var(--badge-blue-text);\n  padding: 2px 8px;\n  border-radius: var(--radius-pill);\n}\n\n.nav-links {\n  display: flex;\n  align-items: center;\n  gap: 24px;\n}\n.nav-link {\n  font-size: 14px;\n  font-weight: 500;\n  color: var(--geist-secondary);\n  text-decoration: none;\n  transition: color 0.15s;\n}\n.nav-link:hover, .nav-link.active {\n  color: var(--geist-foreground);\n}\n.nav-link.active {\n  font-weight: 600;\n}\n\n.nav-actions {\n  display: flex;\n  align-items: center;\n  gap: 12px;\n}\n\n/* 按钮规范 */\n.btn-primary-dark {\n  background: var(--geist-foreground);\n  color: var(--geist-background);\n  border: none;\n  padding: 8px 16px;\n  border-radius: var(--radius-md);\n  font-size: 14px;\n  font-weight: 500;\n  cursor: pointer;\n  text-decoration: none;\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  transition: opacity 0.15s;\n}\n.btn-primary-dark:hover {\n  opacity: 0.9;\n}\n.btn-secondary-white {\n  background: var(--geist-background);\n  color: var(--geist-foreground);\n  box-shadow: var(--shadow-border);\n  border: none;\n  padding: 8px 16px;\n  border-radius: var(--radius-md);\n  font-size: 14px;\n  font-weight: 500;\n  cursor: pointer;\n  text-decoration: none;\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  transition: background 0.15s, box-shadow 0.15s;\n}\n.btn-secondary-white:hover {\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border-hover);\n}\n.theme-toggle-btn {\n  background: transparent;\n  border: none;\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  width: 36px;\n  height: 36px;\n  cursor: pointer;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  color: var(--geist-foreground);\n}\n\n/* 核心容器 */\n.vercel-container {\n  max-width: 1200px;\n  margin: 0 auto;\n  padding: 56px 24px 100px;\n}\n\n/* Hero Section (Gallery Emptiness + Negative Letter-spacing) */\n.vercel-hero {\n  text-align: center;\n  max-width: 860px;\n  margin: 0 auto 56px;\n}\n.hero-stage-badge {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border);\n  padding: 4px 14px;\n  border-radius: var(--radius-pill);\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-secondary);\n  margin-bottom: 24px;\n}\n.stage-dot {\n  width: 7px;\n  height: 7px;\n  border-radius: 50%;\n}\n.vercel-hero h1 {\n  font-size: 48px;\n  font-weight: 600;\n  line-height: 1.05;\n  letter-spacing: -2.4px;\n  color: var(--geist-foreground);\n  margin: 0 0 16px;\n}\n.vercel-hero p {\n  font-size: 20px;\n  font-weight: 400;\n  line-height: 1.80;\n  color: var(--geist-secondary);\n  margin: 0 auto 28px;\n}\n\n/* Workflow Pipeline (Develop -> Preview -> Ship) */\n.workflow-pipeline {\n  display: grid;\n  grid-template-columns: repeat(3, 1fr);\n  gap: 16px;\n  margin-bottom: 48px;\n}\n@media (max-width: 768px) {\n  .workflow-pipeline { grid-template-columns: 1fr; }\n}\n.workflow-step {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 20px 22px;\n  transition: box-shadow 0.2s;\n}\n.workflow-step:hover {\n  box-shadow: var(--shadow-card-hover);\n}\n.step-mono-label {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 12px;\n  font-weight: 500;\n  text-transform: uppercase;\n  letter-spacing: 0.5px;\n  margin-bottom: 8px;\n  display: flex;\n  align-items: center;\n  gap: 6px;\n}\n.step-title {\n  font-size: 20px;\n  font-weight: 600;\n  letter-spacing: -0.96px;\n  color: var(--geist-foreground);\n  margin-bottom: 6px;\n}\n.step-desc {\n  font-size: 14px;\n  color: var(--geist-secondary);\n  line-height: 1.5;\n}\n\n/* Metric Cards (Section 4 Spec) */\n.metric-grid {\n  display: grid;\n  grid-template-columns: repeat(4, 1fr);\n  gap: 16px;\n  margin-bottom: 48px;\n}\n@media (max-width: 900px) {\n  .metric-grid { grid-template-columns: repeat(2, 1fr); }\n}\n.metric-card {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 20px;\n}\n.metric-number {\n  font-size: 40px;\n  font-weight: 600;\n  line-height: 1.0;\n  letter-spacing: -2.4px;\n  color: var(--geist-foreground);\n  margin-bottom: 8px;\n  font-feature-settings: \"tnum\" 1;\n}\n.metric-label {\n  font-size: 14px;\n  color: var(--geist-secondary);\n  line-height: 1.4;\n}\n\n/* VAD 专栏 Banner (Ship Red & Vercel Clean) */\n.vad-showcase {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card-full);\n  border-radius: var(--radius-xl);\n  padding: 32px;\n  margin-bottom: 48px;\n  position: relative;\n}\n.vad-header-row {\n  display: flex;\n  align-items: baseline;\n  justify-content: space-between;\n  flex-wrap: wrap;\n  gap: 12px;\n  margin-bottom: 12px;\n}\n.vad-header-row h2 {\n  font-size: 32px;\n  font-weight: 600;\n  letter-spacing: -1.28px;\n  color: var(--geist-foreground);\n  margin: 0;\n}\n.vad-pillars-grid {\n  display: grid;\n  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));\n  gap: 14px;\n  margin-top: 24px;\n}\n.vad-pillar-item {\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  padding: 14px 16px;\n}\n.vad-pillar-title {\n  font-size: 14px;\n  font-weight: 600;\n  color: var(--ship-red);\n  margin-bottom: 4px;\n}\n.vad-pillar-text {\n  font-size: 13px;\n  color: var(--geist-secondary);\n  line-height: 1.5;\n}\n.vad-filter-bar {\n  display: flex;\n  flex-wrap: wrap;\n  align-items: center;\n  justify-content: space-between;\n  gap: 12px;\n  margin: 24px 0 16px;\n  padding: 12px 16px;\n  background: var(--geist-surface-tint);\n  border-radius: var(--radius-md);\n  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);\n}\n.vad-filter-btn {\n  font-family: 'Geist', sans-serif;\n  font-size: 13px;\n  font-weight: 500;\n  padding: 6px 14px;\n  border-radius: 9999px;\n  border: none;\n  background: transparent;\n  color: var(--geist-secondary);\n  cursor: pointer;\n  transition: all 0.15s ease;\n}\n.vad-filter-btn:hover {\n  color: var(--geist-foreground);\n  background: rgba(0,0,0,0.05);\n}\n.vad-filter-btn.active {\n  background: #171717;\n  color: #ffffff;\n}\n.vad-search-input {\n  font-family: 'Geist', sans-serif;\n  font-size: 13px;\n  padding: 7px 12px;\n  border-radius: 6px;\n  border: 1px solid var(--geist-border);\n  background: #ffffff;\n  color: var(--geist-foreground);\n  width: 280px;\n  outline: none;\n  transition: border-color 0.15s, box-shadow 0.15s;\n}\n.vad-search-input:focus {\n  border-color: #0a72ef;\n  box-shadow: 0 0 0 2px rgba(10, 114, 239, 0.2);\n}\n\n/* 控制栏：搜索、视图、筛选 */\n.control-bar {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  gap: 16px;\n  margin-bottom: 24px;\n  flex-wrap: wrap;\n}\n.search-input-wrap {\n  position: relative;\n  flex: 1;\n  max-width: 480px;\n}\n.search-input {\n  width: 100%;\n  height: 40px;\n  padding: 0 38px 0 14px;\n  font-family: \"Geist\", sans-serif;\n  font-size: 14px;\n  color: var(--geist-foreground);\n  background: var(--geist-background);\n  box-shadow: var(--shadow-border);\n  border: none;\n  border-radius: var(--radius-md);\n  outline: none;\n  transition: box-shadow 0.15s;\n}\n.search-input:focus {\n  outline: 2px solid var(--ds-focus-color);\n  box-shadow: none;\n}\n.search-kbd {\n  position: absolute;\n  right: 12px;\n  top: 50%;\n  transform: translateY(-50%);\n  font-family: \"Geist Mono\", monospace;\n  font-size: 11px;\n  color: var(--geist-quaternary);\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border);\n  padding: 2px 6px;\n  border-radius: var(--radius-sm);\n}\n\n.view-switcher {\n  display: flex;\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  background: var(--geist-background);\n  padding: 2px;\n}\n.view-btn {\n  background: transparent;\n  border: none;\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-tertiary);\n  padding: 6px 12px;\n  border-radius: var(--radius-sm);\n  cursor: pointer;\n  transition: color 0.15s, background 0.15s;\n}\n.view-btn.active {\n  background: var(--geist-surface-tint);\n  color: var(--geist-foreground);\n  font-weight: 600;\n}\n\n/* 筛选芯片行 (Filter Pill Strip) */\n.filter-group-strip {\n  display: flex;\n  flex-direction: column;\n  gap: 12px;\n  margin-bottom: 28px;\n  padding: 16px 20px;\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-lg);\n}\n.filter-row {\n  display: flex;\n  align-items: center;\n  gap: 8px;\n  flex-wrap: wrap;\n}\n.filter-label-mono {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 11px;\n  font-weight: 500;\n  text-transform: uppercase;\n  color: var(--geist-quaternary);\n  min-width: 68px;\n}\n.pill-badge {\n  background: var(--geist-background);\n  color: var(--geist-secondary);\n  box-shadow: var(--shadow-border);\n  border: none;\n  padding: 3px 12px;\n  border-radius: var(--radius-pill);\n  font-size: 12px;\n  font-weight: 500;\n  cursor: pointer;\n  transition: all 0.15s;\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n}\n.pill-badge:hover {\n  color: var(--geist-foreground);\n  box-shadow: var(--shadow-border-hover);\n}\n.pill-badge.active {\n  background: var(--geist-foreground);\n  color: var(--geist-background);\n  font-weight: 600;\n  box-shadow: none;\n}\n.pill-badge.active-blue {\n  background: var(--develop-blue);\n  color: #ffffff;\n  box-shadow: none;\n}\n.pill-badge.active-red {\n  background: var(--ship-red);\n  color: #ffffff;\n  box-shadow: none;\n}\n\n/* Bento Grid Cards (Section 4 & 6 Spec) */\n.card-grid-bento {\n  display: grid;\n  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));\n  gap: 16px;\n}\n.vercel-card {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 20px;\n  display: flex;\n  flex-direction: column;\n  justify-content: space-between;\n  transition: box-shadow 0.2s, transform 0.2s;\n  text-decoration: none;\n  color: inherit;\n  overflow: hidden;\n  min-width: 0;\n  word-break: break-word;\n}\n.vercel-card:hover {\n  box-shadow: var(--shadow-card-hover);\n  transform: translateY(-2px);\n}\n.card-top {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  margin-bottom: 12px;\n  gap: 8px;\n}\n.card-tag-mono {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 11px;\n  font-weight: 500;\n  text-transform: uppercase;\n  color: var(--geist-quaternary);\n  letter-spacing: 0.5px;\n}\n.status-pill-badge {\n  padding: 2px 8px;\n  border-radius: var(--radius-pill);\n  font-size: 11px;\n  font-weight: 500;\n  flex-shrink: 0;\n}\n.pub-accepted { background: #ebfdf2; color: #027a48; }\n.pub-workshop { background: #eff8ff; color: #175cd3; }\n.pub-submitted { background: #fff8e6; color: #b54708; }\n.pub-preprint { background: #f2f4f7; color: #475467; }\n.pub-other { background: #f9f5ff; color: #6941c6; }\n\n[data-theme=\"dark\"] .pub-accepted { background: rgba(2, 122, 72, 0.2); color: #32d583; }\n[data-theme=\"dark\"] .pub-workshop { background: rgba(23, 92, 211, 0.2); color: #84caff; }\n[data-theme=\"dark\"] .pub-submitted { background: rgba(181, 71, 8, 0.2); color: #fec84b; }\n[data-theme=\"dark\"] .pub-preprint { background: rgba(71, 84, 103, 0.2); color: #98a2b3; }\n[data-theme=\"dark\"] .pub-other { background: rgba(105, 65, 198, 0.2); color: #d6bbfb; }\n\n/* 必读标杆徽章 (Vercel Amber Accent) */\n.milestone-badge {\n  display: inline-flex;\n  align-items: center;\n  gap: 3px;\n  padding: 2px 7px;\n  border-radius: var(--radius-pill);\n  font-size: 11px;\n  font-weight: 600;\n  white-space: nowrap;\n  flex-shrink: 0;\n  transition: all 0.15s ease;\n}\n.milestone-badge.ms-idea, .milestone-badge:not([class*=\"ms-\"]) {\n  color: #b54708;\n  background: #fff8e6;\n  border: 1px solid rgba(247, 144, 9, 0.35);\n  box-shadow: 0 1px 2px rgba(181, 71, 8, 0.05);\n}\n[data-theme=\"dark\"] .milestone-badge.ms-idea, [data-theme=\"dark\"] .milestone-badge:not([class*=\"ms-\"]) {\n  color: #fec84b;\n  background: rgba(181, 71, 8, 0.22);\n  border-color: rgba(254, 200, 75, 0.35);\n}\n.milestone-badge.ms-writing {\n  color: #6941c6;\n  background: #f9f5ff;\n  border: 1px solid rgba(105, 65, 198, 0.3);\n  box-shadow: 0 1px 2px rgba(105, 65, 198, 0.05);\n}\n[data-theme=\"dark\"] .milestone-badge.ms-writing {\n  color: #d6bbfb;\n  background: rgba(105, 65, 198, 0.22);\n  border-color: rgba(214, 187, 251, 0.35);\n}\n.milestone-badge.ms-value {\n  color: #027a48;\n  background: #ebfdf2;\n  border: 1px solid rgba(2, 122, 72, 0.3);\n  box-shadow: 0 1px 2px rgba(2, 122, 72, 0.05);\n}\n[data-theme=\"dark\"] .milestone-badge.ms-value {\n  color: #32d583;\n  background: rgba(2, 122, 72, 0.22);\n  border-color: rgba(50, 213, 131, 0.35);\n}\n\n/* 论文正文图表与插图卡片样式 (Geist Design) */\n.paper-figure, .article-body figure {\n  margin: 32px auto;\n  text-align: center;\n  max-width: 100%;\n}\n.paper-figure img, .article-body img {\n  max-width: 96%;\n  height: auto;\n  border-radius: var(--radius-md);\n  border: 1px solid var(--geist-border);\n  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);\n  background: #ffffff;\n  transition: transform 0.2s ease, box-shadow 0.2s ease;\n  display: block;\n  margin: 0 auto;\n}\n.paper-figure img:hover, .article-body img:hover {\n  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);\n}\n.paper-figure figcaption, .article-body figcaption {\n  font-size: 13px;\n  color: var(--geist-secondary);\n  margin-top: 10px;\n  line-height: 1.6;\n  font-style: italic;\n  max-width: 850px;\n  margin-left: auto;\n  margin-right: auto;\n}\n\n/* VAD 视图切换器 View Switcher */\n.vad-view-switcher {\n  display: inline-flex;\n  padding: 3px;\n  background: var(--geist-secondary-bg);\n  border: 1px solid var(--geist-border);\n  border-radius: 8px;\n  margin-bottom: 20px;\n  gap: 2px;\n}\n.view-switch-btn {\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  padding: 6px 14px;\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-secondary);\n  border-radius: 6px;\n  text-decoration: none;\n  transition: all 0.15s ease;\n}\n.view-switch-btn:hover {\n  color: var(--geist-foreground);\n  background: rgba(0, 0, 0, 0.04);\n}\n[data-theme=\"dark\"] .view-switch-btn:hover {\n  background: rgba(255, 255, 255, 0.06);\n}\n.view-switch-btn.active {\n  background: var(--geist-background);\n  color: var(--geist-foreground);\n  font-weight: 600;\n  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n}\n\n/* 关系图谱 Graph View Styles */\n.graph-container {\n  position: relative;\n  width: 100%;\n  height: 720px;\n  background: var(--geist-background);\n  border: 1px solid var(--geist-border);\n  border-radius: var(--radius-lg);\n  overflow: hidden;\n  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);\n  margin-bottom: 40px;\n}\n.graph-toolbar {\n  position: absolute;\n  top: 14px;\n  left: 14px;\n  right: 14px;\n  z-index: 10;\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  background: var(--geist-background);\n  border: 1px solid var(--geist-border);\n  padding: 8px 14px;\n  border-radius: 8px;\n  box-shadow: 0 4px 16px rgba(0,0,0,0.06);\n  flex-wrap: wrap;\n  gap: 8px;\n}\n.graph-tool-title {\n  font-size: 13px;\n  font-weight: 700;\n  display: flex;\n  align-items: center;\n  gap: 6px;\n  color: var(--geist-foreground);\n}\n.graph-filter-group {\n  display: flex;\n  gap: 6px;\n  align-items: center;\n  flex-wrap: wrap;\n}\n.graph-chip {\n  font-size: 11px;\n  padding: 3px 8px;\n  border-radius: 4px;\n  border: 1px solid var(--geist-border);\n  background: var(--geist-background);\n  color: var(--geist-foreground);\n  cursor: pointer;\n  transition: all 0.15s ease;\n}\n.graph-chip:hover { background: var(--geist-secondary-bg); }\n.graph-chip.active {\n  background: var(--geist-foreground);\n  color: var(--geist-background);\n  border-color: var(--geist-foreground);\n}\n.graph-search-input {\n  padding: 3px 8px;\n  font-size: 11px;\n  border-radius: 4px;\n  border: 1px solid var(--geist-border);\n  background: var(--geist-background);\n  color: var(--geist-foreground);\n  outline: none;\n  width: 150px;\n}\n#vad-graph-svg {\n  width: 100%;\n  height: 100%;\n  cursor: grab;\n}\n#vad-graph-svg:active { cursor: grabbing; }\n.graph-legend {\n  position: absolute;\n  bottom: 14px;\n  left: 14px;\n  background: var(--geist-background);\n  border: 1px solid var(--geist-border);\n  border-radius: 8px;\n  padding: 10px 14px;\n  font-size: 11px;\n  box-shadow: 0 4px 16px rgba(0,0,0,0.06);\n  z-index: 10;\n  line-height: 1.6;\n  pointer-events: none;\n}\n.graph-legend-row { display: flex; align-items: center; gap: 8px; }\n.graph-legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }\n.graph-info-drawer {\n  position: absolute;\n  top: 66px;\n  right: 14px;\n  width: 310px;\n  max-height: 620px;\n  background: var(--geist-background);\n  border: 1px solid var(--geist-border);\n  border-radius: 8px;\n  box-shadow: 0 8px 30px rgba(0,0,0,0.12);\n  z-index: 10;\n  padding: 16px;\n  overflow-y: auto;\n  display: none;\n  backdrop-filter: blur(10px);\n  transition: transform 0.2s ease, opacity 0.2s ease;\n}\n.graph-drawer-close {\n  position: absolute;\n  top: 10px;\n  right: 12px;\n  cursor: pointer;\n  font-size: 16px;\n  color: var(--geist-tertiary);\n}\n.graph-drawer-badge {\n  display: inline-block;\n  padding: 2px 6px;\n  border-radius: 4px;\n  font-size: 10px;\n  font-weight: 600;\n  margin-bottom: 6px;\n}\n.graph-drawer-title {\n  font-size: 13px;\n  font-weight: 700;\n  line-height: 1.4;\n  margin-bottom: 8px;\n  color: var(--geist-foreground);\n}\n.graph-drawer-meta {\n  font-size: 11px;\n  color: var(--geist-secondary);\n  margin-bottom: 12px;\n}\n.graph-drawer-core {\n  font-size: 12px;\n  line-height: 1.6;\n  color: var(--geist-foreground);\n  background: var(--geist-secondary-bg);\n  padding: 8px 10px;\n  border-radius: 6px;\n  margin-bottom: 12px;\n  border: 1px solid var(--geist-border);\n}\n.graph-drawer-link {\n  display: block;\n  text-align: center;\n  padding: 7px 12px;\n  background: var(--geist-foreground);\n  color: var(--geist-background);\n  border-radius: 6px;\n  font-size: 12px;\n  font-weight: 600;\n  text-decoration: none;\n  transition: opacity 0.15s ease;\n  margin-bottom: 6px;\n}\n.graph-drawer-link:hover { opacity: 0.85; }\n.graph-drawer-pdf-link {\n  display: block;\n  text-align: center;\n  padding: 6px 12px;\n  background: var(--geist-secondary-bg);\n  color: var(--geist-foreground);\n  border: 1px solid var(--geist-border);\n  border-radius: 6px;\n  font-size: 11px;\n  font-weight: 500;\n  text-decoration: none;\n  transition: all 0.15s ease;\n}\n.graph-drawer-pdf-link:hover { background: var(--geist-border); }\n.node-circle {\n  cursor: pointer;\n  transition: r 0.2s, stroke-width 0.2s;\n}\n.node-label {\n  font-size: 10px;\n  font-weight: 600;\n  fill: var(--geist-foreground);\n  pointer-events: none;\n  text-shadow: 0 1px 2px var(--geist-background);\n}\n.link-line {\n  stroke: var(--geist-border);\n  stroke-opacity: 0.6;\n  stroke-width: 1.2;\n  transition: stroke 0.2s, stroke-width 0.2s, stroke-opacity 0.2s;\n}\n.link-label {\n  font-size: 9px;\n  fill: var(--geist-tertiary);\n  pointer-events: none;\n  text-anchor: middle;\n}\n\n/* 引用框与警示框 Alerts */\n.callout-alert {\n  margin: 20px 0;\n  padding: 14px 18px;\n  border-radius: var(--radius-md);\n  transition: all 0.15s ease;\n}\n.callout-important, .callout-idea {\n  border-left: 4px solid #b54708;\n  background: rgba(181, 71, 8, 0.06);\n  box-shadow: inset 0 0 0 1px rgba(247, 144, 9, 0.3);\n}\n[data-theme=\"dark\"] .callout-important, [data-theme=\"dark\"] .callout-idea {\n  border-left-color: #fec84b;\n  background: rgba(181, 71, 8, 0.18);\n  box-shadow: inset 0 0 0 1px rgba(254, 200, 75, 0.25);\n}\n.callout-writing {\n  border-left: 4px solid #6941c6;\n  background: rgba(105, 65, 198, 0.06);\n  box-shadow: inset 0 0 0 1px rgba(105, 65, 198, 0.3);\n}\n[data-theme=\"dark\"] .callout-writing {\n  border-left-color: #d6bbfb;\n  background: rgba(105, 65, 198, 0.18);\n  box-shadow: inset 0 0 0 1px rgba(214, 187, 251, 0.25);\n}\n.callout-value {\n  border-left: 4px solid #027a48;\n  background: rgba(2, 122, 72, 0.06);\n  box-shadow: inset 0 0 0 1px rgba(2, 122, 72, 0.3);\n}\n[data-theme=\"dark\"] .callout-value {\n  border-left-color: #32d583;\n  background: rgba(2, 122, 72, 0.18);\n  box-shadow: inset 0 0 0 1px rgba(50, 213, 131, 0.25);\n}\n\n.card-title {\n  font-size: 16.5px;\n  font-weight: 600;\n  line-height: 1.42;\n  letter-spacing: -0.4px;\n  color: var(--geist-foreground);\n  margin: 0 0 10px;\n  word-break: break-word;\n  overflow-wrap: anywhere;\n  hyphens: auto;\n}\n.card-title a {\n  color: var(--geist-foreground);\n  text-decoration: none;\n  display: inline;\n  transition: color 0.15s ease;\n}\n.card-title a:hover {\n  color: var(--develop-blue);\n  text-decoration: none;\n}\n.card-id-mono {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-quaternary);\n  margin-right: 5px;\n}\n.card-meta-row {\n  display: flex;\n  gap: 6px;\n  flex-wrap: wrap;\n  margin-bottom: 12px;\n}\n.meta-token {\n  font-size: 12px;\n  color: var(--geist-tertiary);\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-ring);\n  padding: 2px 7px;\n  border-radius: var(--radius-sm);\n  white-space: nowrap;\n}\n.card-body-text {\n  font-size: 13.5px;\n  color: var(--geist-secondary);\n  line-height: 1.6;\n  margin-bottom: 16px;\n  flex-grow: 1;\n  word-break: break-word;\n  overflow-wrap: anywhere;\n}\n.card-body-text strong {\n  color: var(--geist-foreground);\n  font-weight: 600;\n}\n\n.card-footer {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  border-top: 1px solid var(--geist-border);\n  padding-top: 14px;\n}\n.card-link-action {\n  font-size: 13.5px;\n  font-weight: 500;\n  color: var(--link-blue);\n  display: inline-flex;\n  align-items: center;\n  gap: 4px;\n  text-decoration: none;\n  transition: all 0.15s ease;\n}\n.card-link-action:hover {\n  opacity: 0.85;\n  transform: translateX(2px);\n}\na.meta-token {\n  transition: all 0.15s ease;\n  cursor: pointer;\n  text-decoration: none;\n}\na.meta-token:hover {\n  background: var(--geist-selection);\n  color: var(--geist-foreground);\n  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);\n}\n\n/* 紧凑列表视图 (List View) */\n.card-list-view {\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n}\n.list-row-item {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-md);\n  padding: 12px 18px;\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  gap: 16px;\n  transition: box-shadow 0.15s;\n}\n.list-row-item:hover {\n  box-shadow: var(--shadow-card-hover);\n}\n\n/* 阅读详情页 (Report Detail) */\n.reading-container {\n  display: grid;\n  grid-template-columns: minmax(0, 1fr) 260px;\n  gap: 40px;\n  align-items: start;\n}\n@media (max-width: 960px) {\n  .reading-container { grid-template-columns: 1fr; }\n  .reading-sidebar { display: none; }\n}\n\n.report-header-card {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 28px 32px;\n  margin-bottom: 28px;\n}\n.crumb-bar {\n  font-size: 13px;\n  color: var(--geist-tertiary);\n  margin-bottom: 10px;\n}\n.report-title {\n  font-size: 32px;\n  font-weight: 600;\n  letter-spacing: -1.28px;\n  margin: 0 0 16px;\n  color: var(--geist-foreground);\n}\n.report-action-buttons {\n  display: flex;\n  align-items: center;\n  gap: 10px;\n  flex-wrap: wrap;\n  border-top: 1px solid var(--geist-border);\n  padding-top: 16px;\n  margin-top: 16px;\n}\n\n.article-body {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card-full);\n  border-radius: var(--radius-lg);\n  padding: 36px 42px 80px;\n  font-size: 16px;\n  line-height: 1.75;\n  color: var(--geist-foreground);\n}\n.article-body h1, .article-body h2, .article-body h3 {\n  color: var(--geist-foreground);\n  scroll-margin-top: 80px;\n}\n.article-body h1 { font-size: 28px; font-weight: 600; letter-spacing: -1.28px; border-bottom: 1px solid var(--geist-border); padding-bottom: 8px; margin-top: 32px; }\n.article-body h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.96px; border-bottom: 1px solid var(--geist-border); padding-bottom: 6px; margin-top: 36px; }\n.article-body h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.32px; margin-top: 26px; }\n.article-body table {\n  width: 100%;\n  border-collapse: collapse;\n  margin: 24px 0;\n  font-size: 14px;\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  overflow: hidden;\n}\n.article-body th, .article-body td {\n  padding: 10px 14px;\n  text-align: left;\n  border-bottom: 1px solid var(--geist-border);\n}\n.article-body th {\n  background: var(--geist-surface-tint);\n  font-weight: 600;\n  color: var(--geist-foreground);\n}\n.article-body blockquote {\n  border-left: 2px solid var(--geist-foreground);\n  margin: 20px 0;\n  padding: 8px 18px;\n  color: var(--geist-secondary);\n  font-style: normal;\n}\n.article-body code {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 13.5px;\n  box-shadow: var(--shadow-ring);\n  background: var(--geist-surface-tint);\n  padding: 2px 6px;\n  border-radius: var(--radius-sm);\n}\n.article-body pre {\n  position: relative;\n  background: #000000;\n  color: #ededed;\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  padding: 18px;\n  margin: 24px 0;\n  overflow-x: auto;\n}\n.article-body pre code {\n  background: transparent;\n  box-shadow: none;\n  padding: 0;\n  color: inherit;\n  font-size: 13px;\n}\n.copy-code-btn {\n  position: absolute;\n  top: 8px;\n  right: 10px;\n  font-family: \"Geist Mono\", monospace;\n  font-size: 11px;\n  background: #171717;\n  color: #ffffff;\n  border: 1px solid #333333;\n  padding: 3px 8px;\n  border-radius: var(--radius-sm);\n  cursor: pointer;\n}\n\n/* 侧边大纲 (TOC) */\n.reading-sidebar {\n  position: sticky;\n  top: 80px;\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 20px;\n  max-height: calc(100vh - 100px);\n  overflow-y: auto;\n}\n.sidebar-toc-title {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 12px;\n  font-weight: 500;\n  text-transform: uppercase;\n  letter-spacing: 0.5px;\n  color: var(--geist-quaternary);\n  margin-bottom: 12px;\n}\n.reading-sidebar ul {\n  list-style: none;\n  padding-left: 0;\n  margin: 0;\n  font-size: 13px;\n}\n.reading-sidebar li {\n  margin: 6px 0;\n}\n.reading-sidebar ul ul {\n  padding-left: 14px;\n}\n.reading-sidebar a {\n  color: var(--geist-secondary);\n  text-decoration: none;\n  transition: color 0.15s;\n}\n.reading-sidebar a:hover, .reading-sidebar a.active {\n  color: var(--geist-foreground);\n  font-weight: 600;\n}\n\n/* 后台管理 (/admin) */\n.admin-card-container {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card-full);\n  border-radius: var(--radius-lg);\n  padding: 32px;\n  margin-bottom: 32px;\n}\n.form-row-2 {\n  display: grid;\n  grid-template-columns: 1fr 1fr;\n  gap: 16px;\n  margin-bottom: 16px;\n}\n@media (max-width: 600px) {\n  .form-row-2 { grid-template-columns: 1fr; }\n}\n.form-field {\n  display: flex;\n  flex-direction: column;\n  gap: 6px;\n  margin-bottom: 16px;\n}\n.form-field label {\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-foreground);\n}\n.form-field input, .form-field select, .form-field textarea {\n  font-family: \"Geist\", sans-serif;\n  font-size: 14px;\n  padding: 9px 12px;\n  background: var(--geist-background);\n  box-shadow: var(--shadow-border);\n  border: none;\n  border-radius: var(--radius-md);\n  color: var(--geist-foreground);\n  outline: none;\n}\n.form-field input:focus, .form-field select:focus, .form-field textarea:focus {\n  outline: 2px solid var(--ds-focus-color);\n  box-shadow: none;\n}\n\n/* 语法高亮 (Console Blue / Purple / Pink) */\n.codehilite .k, .codehilite .kd, .codehilite .kn { color: #eb367f; font-weight: 500; }\n.codehilite .s, .codehilite .s1, .codehilite .s2 { color: #0070f3; }\n.codehilite .nf, .codehilite .na { color: #7928ca; font-weight: 500; }\n.codehilite .c, .codehilite .c1 { color: #666666; font-style: italic; }\n.codehilite .mi, .codehilite .mf { color: #ff5b4f; }\n\n</style>\n\n</head>\n<body>\n\n    <nav class=\"vercel-nav\">\n      <div class=\"nav-brand\">\n        <a href=\"/\" style=\"display:flex;align-items:center;gap:10px;text-decoration:none\">\n          <svg class=\"vercel-triangle\" viewBox=\"0 0 76 65\" fill=\"none\">\n            <path d=\"M37.5274 0L75.0548 65H0L37.5274 0Z\" fill=\"currentColor\"/>\n          </svg>\n          <span class=\"nav-title\">Agent Harness KB</span>\n        </a>\n        <span class=\"nav-badge-pill\">Geist 2.0</span>\n      </div>\n\n      <div class=\"nav-links\">\n        <a class=\"nav-link \" href=\"/\">全景总览</a>\n        <a class=\"nav-link \" href=\"/vad\" style=\"color:var(--ship-red)\">🎯 VAD 专栏 (144)</a>\n        <a class=\"nav-link\" href=\"https://m0rtzz.github.io/paper-notes/\" target=\"_blank\" rel=\"noopener\">顶会 669 篇 ↗</a>\n        <a class=\"nav-link\" href=\"/download/all\">整库打包</a>\n        \n      </div>\n\n      <div class=\"nav-actions\">\n        \n        <button class=\"theme-toggle-btn\" id=\"theme-toggle-btn\" onclick=\"toggleTheme()\" title=\"切换亮暗主题\">🌙</button>\n      </div>\n    </nav>\n    \n<main class=\"vercel-container\">\n\n        <div class=\"report-header-card\">\n          <div class=\"crumb-bar\"><a href=\"/\">Home</a> / <b>fulltext.txt</b></div>\n          <h1 class=\"report-title\">fulltext.txt</h1>\n          <div class=\"report-action-buttons\">\n            <a class=\"btn-primary-dark\" href=\"?dl=1\">Download Text</a>\n          </div>\n        </div>\n        <article class=\"article-body\"><pre><code>This CVPR paper is the Open Access version, provided by the Computer Vision Foundation.\nExcept for this watermark, it is identical to the accepted version;\nthe final published version of the proceedings is available on IEEE Xplore.\n\nLayoutAD: Exploring Semantic-Geometric Misalignment Reasoning for Scene\nLayout Anomaly Detection\nZhichao Zeng, Jiasheng Zhang, Jiyun Sun, Jiangtao Cui, Xiaotian Qiao∗\nSchool of Computer Science and Technology, Xidian University\n\n“a dog is on the\nbench.”\n\n“the horse\ngallops.”\n\n“a person, a\nlaptop, a cup.”\n\n“a lake, a car, a\ntree.”\n\nLayoutAD\n\nVisual anomaly detection is vital for quality control applications by identifying deviations from normal patterns.\nPrevious structural or logical anomaly detection methods\nmainly focus on pixel-level deviations like texture defects\nand reconstruction errors, ignoring the object-level structural and contextual inconsistencies. These overlooked layout anomalies remain critical yet underexplored, e.g., factually defective hallucinations appeared in generative textto-image models. Based on the above observation, in this\npaper, we introduce scene layout anomaly detection, a new\ntask that predicts an object-level anomaly map from the input image to reveal the semantic plausibility and geometric\nconsistency of each object in the scene. Specifically, we propose LayoutAD, an unsupervised learning framework that\nconstructs semantic and geometric graphs to jointly reason\nover semantic-geometric misalignment among objects. Under this formulation, we are able to detect diverse layout\ndeviations, including object attribute implausibilities and\nrelationship mismatches. Extensive experiments show that\nLayoutAD outperforms baselines qualitatively and quantitatively across various scenarios, benefiting scene understanding and generation applications like video anomaly\ndetection and self-corrected image generation.\n\nT2I [12]\n\nAbstract\n\n0.0\n\n(a) Object Attribute Anomaly\n\n1.0\n\n(b) Object Relation Anomaly\n\n1. Introduction\n\nFigure 1. Scene layout anomaly detection. Given an input image\n(e.g., generated by Stable Diffusion 3 [12]), LayoutAD can accurately detect diverse layout anomalies to reveal implausible object\nattributes (a) or relation inconsistencies (b) in the scene.\n\nAnomaly detection, which aims to identify unexpected\npattern deviations from normal data, is of great importance in many applications ranging from industrial inspection [2, 33, 53] to autonomous navigation [43]. While recent\nyears have witnessed an emergent interest and great success\nin this field, visual anomaly detection is still non-trivial, due\nto diverse data modalities and complex anomaly types.\nTowards this objective, structural [29, 41, 52] or logical anomaly detection [1, 3] have been proposed, focusing\non pixel-level deviations with a simple background under\n∗ Corresponding author: Xiaotian Qiao.\n\n35567\n\nindustrial or medical settings. For object-level deviations\nin natural scenes, while there has been a line of research\non anomaly segmentation [24, 26], only the basic objectbackground anomalous relationship has been studied yet.\nNote that existing anomaly detection methods largely ignore diverse implausible object placements or relational inconsistencies. These overlooked layout anomalies are invisible to pixel-level detectors but critical for downstream\napplications like text-to-image generation. Take Figure 1\nas an example. Vanilla models remain vulnerable to these\nlayout anomalies, failing to correct object attribute (e.g., a\ndog with 5 legs) or spatial relation (e.g., a car on the lake)\nhallucinations. The above issues motivate us to raise a fundamental question: Can machines detect high-level scene\nanomalies, i.e., what objects should exist, where they belong, and how they interact?\nIn this paper, we take a step towards the above question and introduce the new task of scene layout anomaly\ndetection. As shown in Figure 1, given an input image, our\ngoal is to predict an anomaly map that indicates semantic\nor geometric deviations among objects in the layout space.\nNote that this new problem is fundamentally different from\neither visual anomaly detection or hallucination detection.\n\n\fOn one hand, visual anomaly detection focuses primarily on\nlow-level, pixel-wise deviations, while largely overlooking\nobject-level structural and contextual inconsistencies. On\nthe other hand, existing hallucination detection methods are\ninherently prompt-conditioned by measuring misalignment\nbetween the generated image and the text prompt. Such\na conditional input may be unavailable or irrelevant in real\nphotographs or surveillance scenarios. However, such a task\nis challenging as it involves intricate reasoning about both\nthe semantic and geometric relationships among objects.\nOur key insight is that humans perceive scene anomalies\nby concurrently reasoning over semantic context (i.e., what\nthe objects are and how they interact) and geometric structure (i.e., where and how they are spatially arranged) [11].\nInspired by this observation, we propose LayoutAD, an unsupervised learning framework for detecting scene layout\nanomalies via semantic-geometric misalignment reasoning.\nIn particular, given an input image, we first construct semantic and geometric graphs to represent the scene layout.\nWe then perform message passing to jointly reason over\nsemantic-geometric misalignment among objects. Finally,\nobject attribute and relationship scores are fused to yield an\nanomaly score for each object in the scene.\nTo evaluate the effectiveness of our model, we construct\nCOCOAD, a new benchmark with 1033 samples, and conduct extensive experiments across scenarios. In particular, we extend the COCO dataset [25] with various layout anomaly patterns (e.g., unexpected distributions of object categories, shapes, sizes, positions, and relationships\nwith other objects or background). Experimental results\ndemonstrate that LayoutAD can detect a variety of scene\nanomaly types, outperforming several strong baselines both\nqualitatively and quantitatively. We further show downstream scene understanding and generation applications enabled by our model, including image anomaly segmentation, video anomaly detection and self-corrected image generation. Our main contributions are summarized as follows:\n• We make the first attempt to tackle the problem of scene\nlayout anomaly detection, aiming to identify diverse implausible object attributes or relation inconsistencies.\n• We propose LayoutAD, an unsupervised learning framework that jointly reasons over semantic and geometric\nmisalignment to estimate the anomaly degree of each object in the scene.\n• The extensive experiments show that our method outperforms baselines qualitatively and quantitatively, enabling\nboth scene understanding and generation applications.\n\n2. Related Work\nStructural Anomaly Detection. Structural anomaly detection traditionally focuses on identifying visual defects\nin industrial or medical scenarios, where anomalies manifest as texture inconsistencies or structural degradations.\n\n35568\n\nEarly works, such as RIAD [47], f-AnoGAN [34], and\nMemAE [15], rely on reconstruction-based paradigms that\nreconstruct normal patterns and detect deviations via residual maps. DRAEM [46] further combines anomaly-free reconstruction with discriminative anomaly embedding, improving anomaly localization beyond purely reconstructive schemes. However, these methods often reconstruct\nanomalous content as normal, especially in cluttered or\ntexture-rich conditions. Feature-based approaches, such as\nPaDiM [8], PatchCore [33], Reverse Distillation [9], and\nSimpleNet [28], leverage pretrained backbones and detect\ndefects via embedding-space deviations. Recent diffusionbased models [13, 17, 49] have been introduced to improve\nanomaly localization and normal-pattern restoration. For\ninstance, TransFusion [13] introduces transparency-aware\nreconstruction, while DiffusionAD [49] leverages normguided one-step denoising diffusion to reconstruct normal\npatterns and enhance anomaly localization.\nHowever, most of these methods are primarily constrained to localizing appearance-based defects of individual objects via pixel-wise prediction. In contrast, our approach focuses on identifying layout anomalies in natural\ncomplex scenarios via object-wise prediction.\nLogical Anomaly Detection. Logical anomaly detection [19, 50] aims to identify violations of predefined logical constraints like object arrangement. SINBAD [7] identifies fine-grained outliers in structured scenes by modeling object-set-level regularities and detecting deviations\nfrom them. WinCLIP [18] adapts vision-language models\nfor zero- and few-shot semantic anomaly classification and\nsegmentation by aligning image regions with textual concepts. SALAD [14] introduces a semantics-aware logical\nanomaly detection framework that explicitly models composition map distributions to capture spatial and semantic relationships between object components. Other works,\nsuch as LogicQA [22], leverage pretrained vision-language\nmodels to detect mismatches between images and prompts,\nusing external knowledge to guide semantic reasoning.\nThe above works mainly consider logical anomaly detection with a simple background under industrial or medical settings, ignoring the underlying complex contextual relationships among objects and background. Unlike these\nworks, our goal is to predict an anomaly map indicating the\nanomaly degree of each object in natural scenarios.\nScene Anomaly Segmentation. A variety of scene\nanomaly segmentation methods have been proposed,\nprimarily categorized into uncertainty estimation [21],\nreconstruction-based detection [39], and outlier exposure\nstrategies [16, 48]. SynBoost [10] combines semantic\nsegmentation with generative reconstruction, computing a\ndissimilarity map between input and synthesized images\n\n\fv\n\nRelation\nScore\n\nk\nq\n\nGeometric Graph\n\nv\n\nGraph Construction\n\nCross Attn\n\nInput\n\nSelf Attn\n\nGeometric\nMessage\nPassing\n\n1.0\n\nFusion\n\nAttribute\nScore\n\nFFN\n\nq\n\nFFN\n\nSelf Attn\n\nSemantic Graph\n\nSemantic\nMessage\nPassing\n\nCross Attn\n\nk\n\nCLIP\nEncoder\n\nOutput\n\n0.0\n\nxN\n\nMisalignment Reasoning\n\nAnomaly Ranking\n\nFigure 2. The overall pipeline of LayoutAD for scene layout anomaly detection. Given an input image, we first construct semantic and geometric graphs by the Graph Construction Module (GCM), representing the holistic scene layout structures. The Misalignment Reasoning\nModule (MRM) then performs intra-graph message passing and cross-graph attention to reason over semantic–geometric misalignment\namong objects. Finally, the Anomaly Ranking Module (ARM) estimates attribute and relation anomaly likelihoods and aggregates them\ninto a unified anomaly score for each object to output the layout anomaly map.\n\nGgeo = (Vgeo , Egeo ). These graphs serve as the structured\nrepresentation of object appearance and spatial configuration. The constructed graphs are then fed into MRM, which\njointly models semantic and geometric relationships among\nobjects and identifies potential misalignment between these\ntwo modalities. Finally, ARM systematically evaluates both\nobject attribute and relation anomaly scores and fuses them\nto obtain the anomaly degree of each object, which is then\nvisualized as the output anomaly map.\n\nto highlight potential anomalies. PEBAL [37] enhances\nrobustness by introducing an energy-based abstention\nmechanism to selectively abstain from uncertain regions.\nSML [21] refines softmax-based scores to suppress noisy\nresponses along object boundaries. More recent advances\nexplore transformer-based and zero-shot architectures for\nopen-set anomaly segmentation. Mask2Anomaly [31] introduces a mask-transformer framework that unifies semantic segmentation and anomaly localization.\nWhile a variety of anomaly types may exist in a scene,\nonly object-background anomalous relationships have been\nconsidered, leaving other scene anomaly types unexplored.\nMoreover, all these works adopt pixel-wise anomaly scoring followed by a thresholding strategy, often resulting\nin fragmented detection results and severe artifacts. In\ncontrast, we introduce the new problem of scene layout\nanomaly detection to identify diverse layout anomalies via\nobject-wise semantic-geometric misalignment reasoning.\n\n3. Method\n3.1. Overview\nThe goal of scene layout anomaly detection is to develop a\nmodel D that identifies object-level irregularities based on\nboth semantic and geometric context within a scene. Given\nan input image, we first extract object instances using a pretrained segmentation model [6], yielding an object set O to\nrepresent the scene layout. Based on O, the output scene\nlayout anomaly map M̂ is obtained as follows:\n  \\begin {aligned} \\hat {M} = \\mathcal {D}(\\mathcal {O}). \\end {aligned} \n\n(1)\n\nAs shown in Figure 2, our framework comprises three\nmain components: a graph construction module (GCM), a\nmisalignment reasoning module (MRM), and an anomaly\nranking module (ARM). In particular, GCM builds two\ncomplementary graphs from the object set, i.e., a semantic graph Gsem = (Vsem , Esem ), and a geometric graph\n\n35569\n\n3.2. Graph Construction Module\nGiven the object set O extracted from the input image,\nGCM transforms the scene into two complementary graphs\nthat describe its semantic context and geometric structure.\nFor each object oi ∈ O, we compute a semantic feature\nsi ∈ Rds , where ds denotes the dimension based on the\nconcatenation of the CLIP-based [30] appearance embedding and the category-level text representation. In parallel,\nwe derive a geometric feature gi ∈ Rdg , where dg corresponds to normalized spatial descriptors such as centroid\nposition, shape, size, and aspect ratio derived from the object mask. These features are utilized to construct the node\nrepresentations of the semantic graph Gsem and the geometric graph Ggeo , respectively.\nTo model object relationships in the scene, we adopt a\nhybrid k-nearest-neighbor and distance-threshold strategy,\nensuring both local context and long-range interactions can\nbe preserved. In particular, semantic edge features are obtained by measuring appearance and category-embedding\nsimilarity between objects, while geometric edge features\nare derived from relative spatial cues such as displacement,\ndistance, size ratio, and overlap.\n\n3.3. Misalignment Reasoning Module\nMRM aims to capture both intra-graph structure and crossgraph semantic-geometric alignment, enabling the model\n\n\f3.4. Anomaly Ranking Module\n\nto identify layout inconsistencies. Given the semantic\nand geometric graphs constructed by GCM, we begin with\nmodality-specific message passing. Each graph is processed with GATv2 [5] layers, which iteratively update\nnode and edge features by attending to their neighbors, respectively. This yields semantic and geometric representations Zsem and Zgeo that capture the initial scene context. To thoroughly learn the semantic and geometric scene\ncontext, these embeddings are processed by a cross-graph\ntransformer [38], which consists of self-attention and crossattention layers. The semantic representation Ẑsem is updated by a set of queries (Qsem ), keys (Ksem ), and values\n(Vsem ) in each layer:\n  \\begin {aligned} \\hat {Z}_{sem} = \\text {Attn}(Q_{sem}, K_{sem}, V_{sem}). \\end {aligned} \n\n(2)\n\nARM aims to evaluate how well each object and each\npairwise relation conforms to the distribution of normal\nscene layouts. Given the refined semantic and geometric graph representations together with the global feature,\nARM performs probability modeling, allowing object-level\nand relation-level plausibility to be assessed under the holistic scene context.\nTo measure semantic–geometric consistency in the\nscene, ARM models the likelihood of one modality conditioned on the other under the global scene context. Denoting ẑisem and ẑigeo as the updated semantic and geometric node embeddings of object i in the scene, the object\nattribute anomaly score sattr\nis computed with a mixturei\ndensity–based [4] normality estimator as follows:\n\nThe geometric representation Ẑgeo is updated similarly.\nThese layers aggregate long-range dependencies within\neach modality.\nTo further consider semantic-to-geometric alignment,\nthe semantic tokens or geometric tokens act as queries,\nwhile geometric tokens or semantic tokens provide keys and\nvalues in a bidirectional way as follows:\n\n  \\begin {aligned} s_i^{attr} &amp;=-\\lambda _1 \\log p\\!\\left (\\hat {z}_{i}^{sem}\\mid \\hat {z}_{i}^{geo},\\, z_{global}\\right ) \\\\ &amp;\\quad -\\lambda _2 \\log p\\!\\left (\\hat {z}_{i}^{geo}\\mid \\hat {z}_{i}^{sem},\\, z_{global}\\right ), \\end {aligned} \n\nwhere λ1 and λ2 are learnable weights.\nIn addition to object attribute anomalies, we also consider relational inconsistencies in the scene. Let r̂ij denote\nthe updated geometric relation feature between objects i and\nj. We evaluate the plausibility of each pairwise relation as\nfollows:\n\n  \\begin {aligned} \\hat {Z}_{sem} = \\text {Attn}(Q_{sem}, K_{geo}, V_{geo}), \\\\ \\hat {Z}_{geo} = \\text {Attn}(Q_{geo}, K_{sem}, V_{sem}). \\end {aligned} \n(3)\n\n  s_{ij}^{rel} = -\\log p\\!\\left ( \\hat {r}_{ij}\\mid \\hat {z}_{i}^{sem},\\, \\hat {z}_{j}^{sem},\\, z_{global} \\right ). \n\nThese bidirectional interactions allow the model to detect\nsemantic–geometric inconsistencies, such as objects whose\nappearance contradicts their spatial placement, or objects\nthat are placed plausibly but mismatch the semantic context.\nIn addition, we introduce an edge-aware relational bias\ninto the attention logits. For any pair of tokens i and j, the\nattention score ℓij is:\n  \\begin {aligned} \\ell _{ij} = \\frac {Q_i K_j^\\top }{\\sqrt {d}} + b_{ij}, \\end {aligned} \n\n(7)\n\nTo obtain the object-wise relational anomaly score, the\nrelation likelihoods around each object are aggregated:\n  \\begin {aligned} s_i^{rel} = \\log \\sum _{j:(i,j)\\in E} \\exp (s_{ij}^{rel}). \\end {aligned} \n\n(8)\n\nFinally, the overall anomaly score si for each object\ncombines both the attribute anomaly score sattr\nand the rei\nlation anomaly score srel\n:\ni\n\n(4)\n\nwhere bij encodes the semantic or geometric relation between the corresponding objects, ensuring that attention respects the layout structure captured in the graphs.\nFinally, the aligned semantic and geometric representations Ẑsem and Ẑgeo are obtained after several layers of\nintra- and inter-graph reasoning. We further derive a scenelevel global feature by applying a global aggregation operator to the semantic and geometric representations:\n  z_{global} = \\mathcal {G}(\\hat {Z}_{sem},\\, \\hat {Z}_{geo}), \n\n(6)\n\n  \\begin {aligned} s_i = (1-\\alpha )s_i^{attr} + \\alpha s_i^{rel}, \\end {aligned} \n\n(9)\n\nwhere α balances object-centric and relation-centric cues.\n\n3.5. Training\n\n(5)\n\nOur model is trained using two complementary likelihoodbased objectives, including an attribute-level loss that models semantic–geometric consistency, and a relation-level\nloss that models spatial plausibility between objects.\nFor each object i, ARM predicts the conditional density\nof one modality given the other, both under the global scene\ncontext. The training objective is:\n\nwhere G(·) denotes a learnable aggregation and integration function that summarizes multi-object semantic and\ngeometric cues into a holistic scene representation. The\nrefined semantic and geometric graph representations, together with the global feature, are passed to the anomaly\nranking module for scene layout anomaly detection.\n\n35570\n\n  \\begin {aligned} \\mathcal {L}_i^{attr} &amp;= -\\lambda _1 \\log p\\!\\left (\\hat {z}_{i}^{sem}\\mid \\hat {z}_{i}^{geo},\\, z_{global}\\right ) \\\\ &amp;\\quad -\\lambda _2 \\log p\\!\\left (\\hat {z}_{i}^{geo}\\mid \\hat {z}_{i}^{sem},\\, z_{global}\\right ), \\end {aligned} \n\n(10)\n\n\fwhere λ1 and λ2 are learnable weights. p(x|h) is modeled\nas a K-component Gaussian mixture:\n\n  \\begin {aligned} p(x|h) = \\sum _{k=1}^K \\pi _k(h)\\mathcal {N}\\!\\bigl (x \\mid \\mu _k(h), \\mathrm {diag}(\\sigma _k^2(h))\\bigr ) \\end {aligned} \n\n(11)\n\nwhere the parameters are predicted from the conditional input h. The negative log-likelihood encourages the model to\nassign higher probability to semantically coherent and geometrically plausible object attributes.\nIn addition to object attribute anomalies, layout plausibility also hinges on object relation anomalies. For each\nconnected pair (i, j), ARM models the density of their geometric relation feature r̂ij conditioned on the semantic context of both objects and the global feature:\n  \\begin {aligned} \\mathcal {L}_{ij}^{rel} = -\\log p(\\hat {r}_{ij}| \\hat {z}_{i}^{sem}, \\hat {z}_{j}^{sem}, z_{global}). \\end {aligned} \n\n(12)\n\nIn the end, the training loss is a weighted sum of the\nobject-level and relation-level likelihoods:\n  \\begin {aligned} \\mathcal {L}_{total} = \\beta _{attr} \\sum _i \\mathcal {L}_i^{attr} + \\beta _{rel} \\sum _{(i,j)\\in E} \\mathcal {L}_{ij}^{rel}, \\end {aligned} \n\n(13)\n\nwhere βattr and βrel are controllable weights.\n\n4. Experiment\n4.1. Experiment Setup\nImplementation Details. Our model is trained with a single NVIDIA RTX 4090 GPU. The input images are resized\nto 640 × 640. Training is conducted for 30 epochs using\nthe AdamW optimizer with a learning rate of 1e − 4, and\nweight decay of 1e − 4. We adopt learning rate scheduling\nwith a 5-epoch warm-up. βattr is 3.0, and βrel is 1.0.\nDataset.\nTo evaluate our approach, we construct\nCOCOAD, a benchmark derived from the COCO2017\ndataset [25]. We select images that contain multiple objects\nwith clear spatial arrangements, and use them to generate\ndiverse scene layout anomalies. We then employ the QwenImage model [42] in text-guided mode to insert one or more\nanomalous objects, while preserving the global scene composition, including the camera viewpoint, background, and\nthe original object layout.\nWe consider anomalies in COCOAD from two aspects.\nFirst, the object attribute anomaly indicates inconsistencies of visual or geometric properties within an object.\nSecond, the object relation anomaly indicates violations\nof inter-object relationships, including physically impossible spatial configurations or semantically incompatible cooccurrences. In the end, the COCOAD benchmark contains\n1033 anomaly images, serving as a unified benchmark for\nassessing intra- and inter-object inconsistency.\nCompared Methods. To comprehensively evaluate the\neffectiveness of our proposed LayoutAD, we compare it\n\nwith representative anomaly detection approaches across\nthree mainstream paradigms, i.e., structural anomaly detection, logical anomaly detection, and anomaly segmentation. Note that these baselines are primarily designed for\npixel-level anomaly localization, while LayoutAD performs\nobject-centric reasoning in the layout space. For a fair and\nconsistent comparison, we project the object-level anomaly\nscores predicted by LayoutAD onto the pixel space using\nthe corresponding segmentation masks, ensuring all methods are evaluated in the pixel space.\nFor structural anomaly detection, we evaluate PatchCore [33], SimpleNet [28], UCAD [27], GeneralAD[36],\nUniAD [45], and DualAnoDiff [20]. These approaches\nmodel normal appearance or texture statistics through feature reconstruction or distance modeling, effectively capturing low-level structural deviations. For logical anomaly\ndetection, we include SINBAD [7], and WinCLIP[18],\nwhich detect high-level semantic or contextual anomalies using set-based reasoning or foundation-model embeddings. For anomaly segmentation, we choose SynBoost [10] and PixOOD [40], which aim to segment anomalous regions by combining pixel-level reconstruction and\nout-of-distribution detection. While effective in identifying\nunseen or foreign objects, these methods primarily focus on\nOOD anomaly localization rather than relational or layoutlevel inconsistencies between objects. All methods are retrained on the same subset of COCO and evaluated on the\nCOCOAD benchmark.\nEvaluation Metrics. Image-level anomaly detection is\nevaluated using the Area Under the Receiver Operating\nCharacteristic Curve (AUROC) computed from the final\nanomaly score of each image. For anomaly localization, the\nprediction result is assessed using pixel-wise AUROC (PAUROC) and anomaly-pixel AUROC (A-P-AUROC). Following prior work [33], we report the mean AUROC on\nCOCOAD. For fair comparison across methods, the objectlevel anomaly scores produced by LayoutAD are projected\nonto the pixel space and lightly smoothed to obtain stable\nlocalization maps.\n\n4.2. Results\n\n35571\n\nQualitative Evaluation. Figure 3 provides qualitative\ncomparisons between our approach and representative baselines from structural, logical, and segmentation-based\nanomaly detection paradigms. Structural-anomaly detectors like UniAD [45] primarily respond to local feature or\ntexture deviations, resulting in scattered activations that fail\nto reflect the actual relational inconsistencies in the scene.\nLogical anomaly methods like WinCLIP [18] rely heavily on global semantic priors and tend to highlight broad\ncontextual regions, often missing fine-grained mismatches.\nSegmentation-oriented approaches, such as PixOOD [40]\nand SynBoost [10], emphasize visually salient regions but\n\n\fInput\nSynBoost [10] PixOOD [40] WinCLIP [18] UniAD [45]\n\nMethod\n\nI-AUROC ↑\n\nP-AUROC ↑\n\nA-P-AUROC ↑\n\nPatchCore [33]\nSimpleNet [28]\nUCAD [27]\nUniAD [45]\nDualAnoDiff [20]\nGeneralAD [36]\n\n0.539\n0.551\n0.547\n0.479\n0.573\n0.543\n\n0.571\n0.571\n0.678\n0.575\n0.572\n0.565\n\n0.565\n0.515\n0.682\n0.508\n–\n0.314\n\nSynBoost [10]\nPixOOD [40]\n\n0.542\n0.538\n\n0.773\n0.720\n\n0.777\n0.722\n\nSINBAD [7]\nWinCLIP [18]\n\n0.449\n0.455\n\n–\n0.54\n\n–\n–\n\nOurs\n\n0.586\n\n0.871\n\n0.883\n\nOurs\n\nTable 1. Quantitative comparison of the proposed method with the\nbaselines on COCOAD. The best results are highlighted in bold.\n\nFigure 3. Qualitative comparison between the baselines and our\nmodel. Given an input image (1st row), we show the anomaly\ndetection results from different baselines (2nd to 5th rows) and\nour model (6th row).\n\nfrequently misinterpret normal areas as anomalous, reflecting their limited ability to reason over holistic scene context. In contrast, our LayoutAD precisely localizes both\nobject attribute anomalies and object relation anomalies\nby explicitly reasoning over semantic–geometric alignment.\nTake the second column in Figure 3 as an example. LayoutAD distinctly activates on the horse region and suppresses background responses, correctly identifying the implausible object–context relation. Similarly, in the third column case, LayoutAD accurately highlights the inconsistent\nspatial configuration between the boat and the surrounding\nsnow terrain, while baseline methods respond diffusely to\nunrelated areas. These results demonstrate that our model\nis able to generate semantically interpretable and spatially\ncompact anomaly maps, effectively detecting layout inconsistencies in the scene.\nQuantitative Evaluation. As shown in Table 1, LayoutAD consistently delivers the best overall performance\nacross all three metrics, underscoring the effectiveness\nof explicit semantic–geometric reasoning for scene layout\nanomaly detection. Structural anomaly detection methods,\nsuch as PatchCore [33], SimpleNet [28], UCAD [27], GeneralAD [36] and UniAD [45], rely primarily on appearanceor feature-level deviations, making them insufficiently sen-\n\nsitive to layout-level irregularities arising from implausible\nobject attributes or spatial relations. Logical anomaly detection approaches, including SINBAD [7] and WinCLIP [18],\nemphasize semantic consistency but do not explicitly model\nfine-grained geometric relations, limiting their ability to\ncapture subtle relational inconsistencies. Segmentationbased methods, such as SynBoost [10] and PixOOD [40],\nperform competitively at the pixel level. However, their performance largely stems from detecting visually unfamiliar\nregions rather than assessing inter-object plausibility.\nIn contrast, LayoutAD explicitly models object-level semantics, geometry, and their interactions, making it possible to detect a broad range of anomalies that are overlooked by existing methods. The performance improvement\ndemonstrates the benefit of jointly reasoning about object\nattributes and spatial relationships within complex scenes.\n\n4.3. Ablation Study\nTo understand how each design choice contributes to scene\nlayout anomaly detection, we conduct ablation studies of\nnetwork components and training objectives by considering\nthe following variants:\n• G+G &amp; S+S: We restrict both graph branches to use only\ngeometric (G+G) or only semantic (S+S) features to evaluate the necessity of semantic and geometric interactions.\n• w/o GNN: We remove the iterative message passing to\nevaluate the effect of localized structural dependencies.\n• w/o Transformer: We remove the cross-graph Transformer to evaluate the semantic–geometric alignment.\n• w/o Global: we remove the global conditional modeling\nto evaluate global scene context.\n• w/o Attribute / Relation Loss: We train the model without\nthe object-level or relation-level likelihood terms.\nTable 2 shows the results of the ablation studies. Without utilizing both geometric and semantic cues, the performance drops significantly. This indicates that crossmodal information is complementary and essential for cap-\n\n35572\n\n\fI-AUROC ↑\n\nP-AUROC ↑\n\nA-P-AUROC ↑\n\nG+G\nS+S\nw/o GNN\nw/o Transformer\nw/o Global\nw/o Attribute Loss\nw/o Relation Loss\n\n0.473\n0.535\n0.546\n0.509\n0.522\n0.527\n0.530\n\n0.765\n0.842\n0.848\n0.794\n0.837\n0.857\n0.851\n\n0.772\n0.843\n0.852\n0.815\n0.848\n0.864\n0.866\n\nOurs (full)\n\n0.586\n\n0.871\n\n0.883\n\nMethod\n\nTable 2. Results of the ablation study. The best results are highlighted in bold.\n\nInput\n\nSynboost [10]\n\nPixOOD [40]\n\nOurs\n\nFigure 4. Qualitative results of image anomaly detection. LayoutAD identifies layout anomaly in real-world scenes.\n\nturing context-incompatible anomalies. If the cross-graph\nTransformer is removed, the performance becomes worse,\nimplying that semantic-geometric alignment is crucial to\nidentifying implausible configurations. Without the GNN\nor global aggregation, the model struggles to encode finegrained structural dependencies and resolve ambiguities via\nholistic context. In addition, with the help of attribute and\nrelation-level losses, our model learns to accurately rank\nboth attribute-centric and relational anomalies, achieving\nthe highest performance.\n\n5. Applications\n\nsoning plausibility over object attributes and relationships\nin the scene, making it suitable for identifying contextual\nanomalies in complex scenarios.\nWe conduct evaluations on the StreetScene [32] dataset\nusing the non-temporal Region-Based Detection Criterion\n(RBDC) metric. Our approach achieves the best performance with a final score of 25.4%, outperforming traditional motion-based methods such as Flow [32] (11.0%),\nFG [32] (21.0%), and EVAL [35] (24.3%). The results\ndemonstrate that even without temporal modeling, LayoutAD can identify video anomalies by leveraging efficient\nsemantic–geometric reasoning, making it a promising and\ncomplementary direction for video anomaly detection.\n\n5.1. Image Anomaly Segmentation\nImage anomaly segmentation aims to identify and localize out-of-distribution regions or unexpected obstacles that\ndeviate from the normal distribution. While existing approaches [10, 40] are effective in detecting pixel-level unfamiliar textures, they tend to be vulnerable to background\nvariations, such as shadows, illumination changes, or complex textures. In contrast, LayoutAD reasons explicitly\nover object-level attributes and relations in the layout space,\nmaking it robust to irrelevant background noise.\nWe evaluate the performance of our model and existing\nmethods on the Road Anomaly dataset [26]. As shown in\nFigure 4, baseline methods tend to generate broad, noisy\nheatmaps that spread across multiple irrelevant background\nregions, while LayoutAD produces clean, object-aligned\nanomaly masks that correspond directly to underlying layout inconsistencies.\n\n5.3. Self-corrected Image Generation\n\n5.2. Video Anomaly Detection\n\nAlthough modern T2I diffusion models [12, 23] demonstrate impressive visual quality, they frequently generate\nscenes containing layout-level anomalies that violate commonsense knowledge in the physical world. For example,\nanimals with distorted proportions, objects floating in the\nair, or implausible spatial relations between entities. As illustrated in Figure 1, current generative models lack explicit\nmechanisms to reason about object interactions or evaluate\nthe plausibility of the resulting layout.\nTo address this issue, we adopt LayoutAD as a layoutlevel structural critic to form a closed-loop self-corrected\nimage generation pipeline. Given an image synthesized by\na T2I model, we obtain its object masks via an off-the-shelf\nsegmentation model [6]. LayoutAD then evaluates the semantic–geometric coherence of the scene and outputs an\nanomaly map, indicating which objects violate learned layout priors. Based on the predicted anomaly map, we resample a new image from the T2I model based on the identified object attribute or relationship inconsistencies. The\nautomatic self-correction would iteratively updated until no\nanomaly pattern could be detected.\nThe results are shown in Figure 5. For the 1st row, the\n\nVideo anomaly detection aims to identify events or behaviors that deviate from normal spatiotemporal patterns in\nvideos. Most existing approaches [44, 51] focus on modeling temporal dynamics to detect unusual activities. While\neffective for motion-based anomalies, these methods may\nbe less effective in scenarios where temporal cues are weak\nor unavailable. In contrast, LayoutAD is able to detect spatial–semantic inconsistencies within a single frame by rea-\n\n35573\n\n\f“four dogs on the\ngrass.”\n“several cows and\nsheep are grazing.”\n“a tree, a bench, a\ndog.”\n\nPrompt\n\nSD-3 [12]\n\nLayoutAD\n\nFlux [23]\n\nSD-3 [12]+LayoutAD\n\nLayoutAD\n\nFlux [23]+LayoutAD\n\nFigure 5. Self-corrected image generation. LayoutAD can be applied to identify and correct factually defective hallucinations that appear\nin generative text-to-image models (e.g., SD-3 [12] and Flux [23]).\n\ninitial SD-3 generation for “four dogs on the grass” produces severely distorted objects. LayoutAD identifies these\nas high-scoring object attribute anomalies accurately. Unlike methods that rely on manual inspection or expensive\nfine-grained constraints, our approach requires no modification or retraining of the underlying T2I model. LayoutAD serves as a verifier to ensure layout plausibility during the generation process. Overall, combining LayoutAD\nwith diffusion models forms a robust self-corrected generation paradigm that effectively enforces semantic–geometric\nconsistency in the generated image.\n\nInput Image\n\nSemantic Segmentation\n\nAnomaly Detection\n\nFigure 6. Failure cases. Given an input complex scene image\n(left), when the segmentation results are noisy (middle), our model\nmay fail to identify anomaly objects properly (right). The noisy\nobject masks may mislead the graph construction process, leading\nto semantically plausible regions being flagged incorrectly.\n\n6. Conclusion\nstruct the layout graph. As illustrated in Figure 6, the noisy\nobject masks may mislead the graph construction process,\nleading to semantically plausible regions being flagged incorrectly. One possible solution is to utilize the power of the\nmultimodal large language model to improve the scene understanding abilities. Second, our current self-corrected image generation pipeline performs anomaly removal through\niterative resampling. As future work, we plan to explore the\nprecise integration of LayoutAD with T2I models to support\ncontrollable image correction with less computational costs.\n\nIn this paper, we take a step towards the new problem of\nscene layout anomaly detection. To this end, we propose\nLayoutAD, an unsupervised learning framework that constructs semantic and geometric graphs to jointly reason over\nsemantic-geometric misalignment among objects. Under\nthis formulation, we are able to detect diverse layout deviations, including object attribute implausibilities and relationship mismatches. Extensive experiments on the COCOAD benchmark demonstrate that our method outperforms existing baselines across multiple metrics. Furthermore, we showcase its potential in applications such as image anomaly segmentation, video anomaly detection and\nself-corrected image generation.\nThough impressive results have been achieved by our\nmodel, as the first attempt for scene layout anomaly detection, LayoutAD still has some limitations. First, our model\nrelies on accurate object masks and category labels to con-\n\n35574\n\nAcknowledgments: This work was supported in\npart by National Natural Science Foundation of China\n(No.62302356, No.62372352), and CCF-ALIMAMA\nTECH Kangaroo Fund (NO.CCF-ALIMAMA OF\n2025007).\n\n\fReferences\n[1] Kilian Batzner, Lars Heckler, and Rebecca König. Efficientad: Accurate visual anomaly detection at millisecond-level\nlatencies. In WACV, 2024. 1\n[2] Paul Bergmann, Sindy Löwe, Michael Fauser, David Sattlegger, and Carsten Steger. Improving unsupervised defect segmentation by applying structural similarity to autoencoders.\narXiv preprint arXiv:1807.02011, 2018. 1\n[3] Paul Bergmann, Kilian Batzner, Michael Fauser, David Sattlegger, and Carsten Steger. Beyond dents and scratches:\nLogical constraints in unsupervised anomaly detection and\nlocalization. IJCV, 2022. 1\n[4] Christopher M Bishop. Mixture density networks. 1994. 4\n[5] Shaked Brody, Uri Alon, and Eran Yahav. How attentive are\ngraph attention networks? arXiv preprint arXiv:2105.14491,\n2021. 4\n[6] Bowen Cheng, Ishan Misra, Alexander G Schwing, Alexander Kirillov, and Rohit Girdhar. Masked-attention mask\ntransformer for universal image segmentation. In CVPR,\n2022. 3, 7\n[7] Niv Cohen, Issar Tzachor, and Yedid Hoshen. Set features for fine-grained anomaly detection. arXiv preprint\narXiv:2302.12245, 2023. 2, 5, 6\n[8] Thomas Defard, Aleksandr Setkov, Angelique Loesch, and\nRomaric Audigier. Padim: a patch distribution modeling\nframework for anomaly detection and localization. In ICPR,\n2021. 2\n[9] Hanqiu Deng and Xingyu Li. Anomaly detection via reverse\ndistillation from one-class embedding. In CVPR, 2022. 2\n[10] Giancarlo Di Biase, Hermann Blum, Roland Siegwart, and\nCesar Cadena. Pixel-wise anomaly detection in complex\ndriving scenes. In CVPR, 2021. 2, 5, 6, 7\n[11] Robert Egly, Jon Driver, and Robert D Rafal. Shifting visual attention between objects and locations: evidence from\nnormal and parietal lesion subjects. Journal of Experimental\nPsychology: General, 1994. 2\n[12] Patrick Esser, Sumith Kulal, Andreas Blattmann, Rahim\nEntezari, Jonas Müller, Harry Saini, Yam Levi, Dominik\nLorenz, Axel Sauer, Frederic Boesel, et al. Scaling rectified flow transformers for high-resolution image synthesis.\nIn ICML, 2024. 1, 7, 8\n[13] Matic Fučka, Vitjan Zavrtanik, and Danijel Skočaj.\nTransfusion–a transparency-based diffusion model for\nanomaly detection. In ECCV, 2024. 2\n[14] Matic Fučka, Vitjan Zavrtanik, and Danijel Skočaj. Salad–\nsemantics-aware logical anomaly detection. In ICCV, 2025.\n2\n[15] Dong Gong, Lingqiao Liu, Vuong Le, Budhaditya Saha,\nMoussa Reda Mansour, Svetha Venkatesh, and Anton\nvan den Hengel. Memorizing normality to detect anomaly:\nMemory-augmented deep autoencoder for unsupervised\nanomaly detection. In ICCV, 2019. 2\n[16] Dan Hendrycks, Mantas Mazeika, and Thomas Dietterich.\nDeep anomaly detection with outlier exposure. arXiv\npreprint arXiv:1812.04606, 2018. 2\n\n[17] Teng Hu, Jiangning Zhang, Ran Yi, Yuzhen Du, Xu Chen,\nLiang Liu, Yabiao Wang, and Chengjie Wang. Anomalydiffusion: Few-shot anomaly image generation with diffusion\nmodel. In AAAI, 2024. 2\n[18] Jongheon Jeong, Yang Zou, Taewan Kim, Dongqing Zhang,\nAvinash Ravichandran, and Onkar Dabeer. Winclip: Zero/few-shot anomaly classification and segmentation. In\nCVPR, 2023. 2, 5, 6\n[19] Er Jin, Qihui Feng, Yongli Mou, Gerhard Lakemeyer, Stefan Decker, Oliver Simons, and Johannes Stegmaier. Logicad: Explainable anomaly detection via vlm-based text feature extraction. In AAAI, 2025. 2\n[20] Ying Jin, Jinlong Peng, Qingdong He, Teng Hu, Jiafu Wu,\nHao Chen, Haoxuan Wang, Wenbing Zhu, Mingmin Chi, Jun\nLiu, et al. Dual-interrelated diffusion model for few-shot\nanomaly image generation. In CVPR, 2025. 5, 6\n[21] Sanghun Jung, Jungsoo Lee, Daehoon Gwak, Sungha Choi,\nand Jaegul Choo. Standardized max logits: A simple yet\neffective approach for identifying unexpected road obstacles\nin urban-scene segmentation. In ICCV, 2021. 2, 3\n[22] Yejin Kwon, Daeun Moon, Youngje Oh, and Hyunsoo\nYoon.\nLogicqa: Logical anomaly detection with vision language model generated questions. arXiv preprint\narXiv:2503.20252, 2025. 2\n[23] Black Forest Labs. Flux. https://github.com/\nblack-forest-labs/flux, 2024. 7, 8\n[24] Jingtao Li, Xinyu Wang, Hengwei Zhao, Shaoyu Wang, and\nYanfei Zhong. Anomaly segmentation for high-resolution\nremote sensing images based on pixel descriptors. In AAAI,\n2023. 1\n[25] Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays,\nPietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence\nZitnick. Microsoft coco: Common objects in context. In\nECCV, 2014. 2, 5\n[26] Krzysztof Lis, Krishna Nakka, Pascal Fua, and Mathieu\nSalzmann. Detecting the unexpected via image resynthesis.\nIn ICCV, 2019. 1, 7\n[27] Jiaqi Liu, Kai Wu, Qiang Nie, Ying Chen, Bin-Bin\nGao, Yong Liu, Jinbao Wang, Chengjie Wang, and Feng\nZheng. Unsupervised continual anomaly detection with\ncontrastively-learned prompt. In AAAI, 2024. 5, 6\n[28] Zhikang Liu, Yiming Zhou, Yuansheng Xu, and Zilei Wang.\nSimplenet: A simple network for image anomaly detection\nand localization. In CVPR, 2023. 2, 5, 6\n[29] Wei Luo, Yunkang Cao, Haiming Yao, Xiaotian Zhang,\nJianan Lou, Yuqi Cheng, Weiming Shen, and Wenyong Yu.\nExploring intrinsic normal prototypes within a single image\nfor universal anomaly detection. In CVPR, 2025. 1\n[30] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya\nRamesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry,\nAmanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In ICML, 2021. 3\n[31] Shyam Nandan Rai, Fabio Cermelli, Barbara Caputo, and\nCarlo Masone. Mask2anomaly: Mask transformer for universal open-set segmentation. IEEE TPAMI, 2024. 3\n\n35575\n\n\f[32] Bharathkumar Ramachandra and Michael Jones. Street\nscene: A new dataset and evaluation protocol for video\nanomaly detection. In WACV, 2020. 7\n[33] Karsten Roth, Latha Pemula, Joaquin Zepeda, Bernhard\nSchölkopf, Thomas Brox, and Peter Gehler. Towards total\nrecall in industrial anomaly detection. In CVPR, 2022. 1, 2,\n5, 6\n[34] Thomas Schlegl, Philipp Seeböck, Sebastian M Waldstein,\nGeorg Langs, and Ursula Schmidt-Erfurth. f-anogan: Fast\nunsupervised anomaly detection with generative adversarial\nnetworks. Medical Image Analysis, 2019. 2\n[35] Ashish Singh, Michael J Jones, and Erik G Learned-Miller.\nEval: Explainable video anomaly localization. In CVPR,\n2023. 7\n[36] Luc PJ Sträter, Mohammadreza Salehi, Efstratios Gavves,\nCees GM Snoek, and Yuki M Asano. Generalad: Anomaly\ndetection across domains by attending to distorted features.\nIn ECCV, 2024. 5, 6\n[37] Yu Tian, Yuyuan Liu, Guansong Pang, Fengbei Liu, Yuanhong Chen, and Gustavo Carneiro. Pixel-wise energy-biased\nabstention learning for anomaly segmentation on complex\nurban driving scenes. In ECCV, 2022. 3\n[38] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia\nPolosukhin. Attention is all you need. NeurIPS, 2017. 4\n[39] Tomas Vojir, Tomáš Šipka, Rahaf Aljundi, Nikolay\nChumerin, Daniel Olmeda Reino, and Jiri Matas. Road\nanomaly detection by partial image reconstruction with segmentation coupling. In ICCV, 2021. 2\n[40] Tomáš Vojı́ř, Jan Šochman, and Jiřı́ Matas. Pixood: Pixellevel out-of-distribution detection. In ECCV, 2024. 5, 6, 7\n[41] Xiaolei Wang, Xiaoyang Wang, Huihui Bai, Eng Gee Lim,\nand Jimin Xiao. Decad: Decoupling anomalies in latent\nspace for multi-class unsupervised anomaly detection. In\nICCV, 2025. 1\n[42] Chenfei Wu, Jiahao Li, Jingren Zhou, Junyang Lin, Kaiyuan\nGao, Kun Yan, Sheng-ming Yin, Shuai Bai, Xiao Xu, Yilei\nChen, et al. Qwen-image technical report. arXiv preprint\narXiv:2508.02324, 2025. 5\n[43] Zhenhua Xu, Yan Bai, Yujia Zhang, Zhuoling Li, Fei Xia,\nKwan-Yee K Wong, Jianqiang Wang, and Hengshuang Zhao.\nDrivegpt4-v2: Harnessing large language model capabilities\nfor enhanced closed-loop autonomous driving. In CVPR,\n2025. 1\n[44] Zhiwei Yang, Jing Liu, Zhaoyang Wu, Peng Wu, and Xiaotao\nLiu. Video event restoration based on keyframes for video\nanomaly detection. In CVPR, 2023. 7\n[45] Zhiyuan You, Lei Cui, Yujun Shen, Kai Yang, Xin Lu,\nYu Zheng, and Xinyi Le. A unified model for multi-class\nanomaly detection. NeurIPS, 2022. 5, 6\n[46] Vitjan Zavrtanik, Matej Kristan, and Danijel Skočaj. Draema discriminatively trained reconstruction embedding for surface anomaly detection. In ICCV, 2021. 2\n[47] Vitjan Zavrtanik, Matej Kristan, and Danijel Skočaj. Reconstruction by inpainting for visual anomaly detection. Pattern\nRecognition, 2021. 2\n\n[48] Dan Zhang, Kaspar Sakmann, William Beluch, Robin Hutmacher, and Yumeng Li. Anomaly-aware semantic segmentation via style-aligned ood augmentation. In ICCV, 2023.\n2\n[49] Hui Zhang, Zheng Wang, Dan Zeng, Zuxuan Wu, and YuGang Jiang. Diffusionad: Norm-guided one-step denoising\ndiffusion for anomaly detection. IEEE TPAMI, 2025. 2\n[50] Jinjin Zhang, Guodong Wang, Yizhou Jin, and Di Huang.\nTowards training-free anomaly detection with vision and language foundation models. In CVPR, 2025. 2\n[51] Menghao Zhang, Jingyu Wang, Qi Qi, Haifeng Sun, Zirui\nZhuang, Pengfei Ren, Ruilong Ma, and Jianxin Liao. Multiscale video anomaly detection by multi-grained spatiotemporal representation learning. In CVPR, 2024. 7\n[52] Ximiao Zhang, Min Xu, and Xiuzhuang Zhou. Realnet: A\nfeature selection network with realistic synthetic anomaly for\nanomaly detection. In CVPR, 2024. 1\n[53] Jiawen Zhu and Guansong Pang. Toward generalist anomaly\ndetection via in-context residual learning with few-shot sample prompts. In CVPR, 2024. 1\n\n35576\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"