"<!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>WDT-MD: Wavelet Diffusion Transformers for Microaneurysm\nDetection in Fundus Images\nYifei Sun1, 2 , Yuzhi He3 , Junhao Jia2 , Jinhong Wang1 ,\nRuiquan Ge2 * , Changmiao Wang4∗ , Hongxia Xu1, 5∗\n\narXiv:2511.08987v3 [cs.CV] 13 Dec 2025\n\n1\n\nTransvascular Implantation Devices Research Institute, Zhejiang University, Hangzhou, China\n2\nHangzhou Dianzi University, Hangzhou, China\n3\nXidian University, Xi’an, China\n4\nShenzhen Research Institute of Big Data, Shenzhen, China\n5\nWeDoctor Cloud and Liangzhu Laboratory, Hangzhou, China\n{diaoquesang, cmwangalbert}@gmail.com, 23012100059@stu.xidian.edu.cn,\n{23080631, gespring}@hdu.edu.cn, {wangjinhong, einstein}@zju.edu.cn\nAbstract\n\nMicroaneurysms (MAs), the earliest pathognomonic signs of\nDiabetic Retinopathy (DR), present as sub-60 µm lesions in\nfundus images with highly variable photometric and morphological characteristics, rendering manual screening not only\nlabor-intensive but inherently error-prone. While diffusionbased anomaly detection has emerged as a promising approach for automated MA screening, its clinical application is\nhindered by three fundamental limitations. First, these models often fall prey to “identity mapping”, where they inadvertently replicate the input image. Second, they struggle to\ndistinguish MAs from other anomalies, leading to high false\npositives. Third, their suboptimal reconstruction of normal\nfeatures hampers overall performance. To address these challenges, we propose a Wavelet Diffusion Transformer framework for MA Detection (WDT-MD), which features three key\ninnovations: a noise-encoded image conditioning mechanism\nto avoid “identity mapping” by perturbing image conditions\nduring training; pseudo-normal pattern synthesis via inpainting to introduce pixel-level supervision, enabling discrimination between MAs and other anomalies; and a wavelet diffusion Transformer architecture that combines the global modeling capability of diffusion Transformers with multi-scale\nwavelet analysis to enhance reconstruction of normal retinal\nfeatures. Comprehensive experiments on the IDRiD and eophtha MA datasets demonstrate that WDT-MD outperforms\nstate-of-the-art methods in both pixel-level and image-level\nMA detection. This advancement holds significant promise\nfor improving early DR screening.\n\nCode — https://github.com/diaoquesang/WDT-MD\n\nIntroduction\nDiabetic Retinopathy (DR) is a serious complication affecting individuals with diabetes and can result in severe vision\nloss if not treated promptly (Khan et al. 2025). In the initial stages of DR, retinal capillaries are damaged due to hyperglycemia, which weakens the capillary walls and leads to\nMicroaneurysms (MAs). MAs are small outpouchings in the\nlumen of the retinal vessels, typically measuring 15-60 µm\n* Corresponding authors.\n\n(a) IDRiD\n\n(b) e-ophtha MA\n\nFigure 1: An illustration of MAs in fundus images. (a) is\nsampled from the IDRiD dataset (Porwal et al. 2018), and\n(b) is from the e-ophtha MA dataset (Decenciere et al. 2013).\nThree columns in each sub-figure depict the fundus image,\npatches zooming in MAs, and MA areas marked in red, respectively. Most MAs are within 60 µm in diameter, close\nto 6 pixels in a fundus image with 10 µm pixel spacing.\n\nin diameter. Identification of MAs allows for timely recognition of DR, thus providing an opportunity for early intervention in patients (Arrigo et al. 2024). To analyze them, fundus images are widely used (Mayya, Kamath, and Kulkarni\n2021) where small red dots are an indication of MAs (Raghu\net al. 2019). Nevertheless, as shown in Fig. 1, MAs are tiny\nand inconspicuous with variations in brightness, contrast,\nand shape, making it difficult for physicians to detect them\n(Wu and Jiao 2024). Therefore, automated MA detection\nmethods with high accuracy in fundus images are of great\nsignificance.\nTo achieve this goal, different methods are proposed,\namong which most are discriminative models such as segmentation models (Xu et al. 2024; Jiang et al. 2024; Foo,\nHsu, and Lee 2023; Yap and Ng 2023). In contrast to classification models lacking specific localization capability, segmentation models can provide detailed information about\nthe MA boundaries, thus helping to assess the severity of\nlesions and enhance the interpretability of image-level information (Jiang et al. 2023). Nevertheless, the challenges\nof data annotation and segmentation accuracy restrict the development of these methods. First, the tiny size of MAs and\n\n\ftheir morphological similarity to normal vascular structures\ncreate significant inter-observer variability in manual annotations (Mayya, Kamath, and Kulkarni 2021). This label ambiguity propagates through supervised segmentation frameworks, leading to suboptimal boundary delineation. Second,\nthe class imbalance problem is exacerbated in MA diagnosis, where positive pixels constitute less than 1% of total image area in early-stage DR cases (Porwal et al. 2020). Traditional segmentation methods tend to converge to trivial solutions that ignore subtle MA features.\nUnlike discriminative models, generative models have\nbeen gradually applied to reconstruction-based methods for\nmedical Anomaly Detection (AD), mainly based on AutoEncoders (AEs), Generative Adversarial Networks (GANs)\n(Goodfellow et al. 2014) and diffusion models (Ho, Jain,\nand Abbeel 2020; Ma et al. 2024b, 2025b,a; Sun et al.\n2025c; Shao et al. 2025a). By identifying deviations from\nnormal patterns as anomalies, these methods can effectively\ndetect small, irregular lesions while reducing reliance on\nlarge numbers of accurate pixel-level annotations. Recently,\ndiffusion-based methods (Kumar et al. 2025; Fontanella\net al. 2024; Wyatt et al. 2022; Wolleb et al. 2022) have made\nprogress towards more accurate anomaly localization by iteratively improving the capture of fine-grained lesion details\n(Sun et al. 2025b), holding significant potential for MA detection. Nonetheless, the following challenges still remain:\n• The inherent risk of learning “identity mapping” still\npersists in existing frameworks based on diffusion models. “Identity mapping” refers to the behavior of directly\ncopying the input as output, whether normal or abnormal (Guo et al. 2025). This contradicts the foundational\nassumption that anomalies induce significant reconstruction deviations, ultimately causing false negatives.\n• The inability to distinguish MAs from other anomalies\nleads to high false positives. Existing methods lacking pixel-level supervision signals tend to treat all reconstruction errors as homogeneous indicators of abnormality, disregarding the unique morphological and contextual signatures of the target anomalies. Consequently,\nconfounding factors such as imaging artifacts or coexisting lesions can be indiscriminately flagged as MA candidates, undermining clinical utility.\n• The suboptimal reconstruction quality of normal features hampers the performance of AD. In retinal imaging, incomplete restoration of vascular patterns may introduce spurious reconstruction errors, masking true MA\nlesions or misclassifying normal variations as anomalies.\nExisting diffusion-based methods mitigate “identity mapping” through noise-addition-denoising (Kumar et al. 2025;\nFontanella et al. 2024; Li et al. 2024; Wyatt et al. 2022) in\nthe inference phase. This strategy faces a fundamental resolution conflict: MAs and fine vascular details occupy overlapping high-frequency bands, yet demand diametrically opposed noise treatments. Reliable MA suppression requires\nnear-complete high-frequency erosion, while precise vasculature reconstruction necessitates preserving those exact frequency components. Insufficient noise preserves anomalies\n\nwhile excessive noise obliterates details. Consequently, single noise calibration during inference becomes intrinsically\nparadoxical for these methods.\nFurthermore, the absence of pixel-level supervision elevates false positive rates. These models erroneously classify\nimaging artifacts and non-MA pathologies as MAs, which is\nclinically unacceptable. To introduce pixel-level supervision\nsignals, self-supervised image-conditioned approaches like\nImg-Cond (Baugh et al. 2024) have been proposed. However, unprocessed input conditioning propagates anomalies\nvia “identity mapping”, while the spatial distributional bias\nintroduced by synthetic anomalies could further diminish\nthe performance. Notably, although pixel-level supervision\nhas recently been demonstrated to boost AD performance\nin complex industrial scenarios (Baitieva et al. 2024), analogous exploration and validation remain scarce in the medical\nfield. The intrinsic spatial linkage between lesions and their\nanatomical context (Shao et al. 2025b) poses unique challenges for effective supervision, underscoring the need for\ntailored strategies.\nTo address these challenges, we propose a Wavelet Diffusion Transformer framework for MA Detection (WDT-MD).\nThis is a supervised image-conditioned wavelet-domain\nmodel based on Diffusion Transformers (DiTs) (Peebles and\nXie 2023; Feng et al. 2025). Our contributions can be summarized as follows:\n• In order to mitigate “identity mapping”, we propose\na noise-encoded image conditioning mechanism for\ndiffusion-based MA detection. By perturbing the image\ncondition with random intensities during training, the\nmodel is driven to capture the normal pattern.\n• To alleviate the issue of high false positives, we introduce pixel-level supervision signals in the training process through pseudo-normal pattern synthesis. Specifically, we obtain the pseudo-normal labels align with the\nspatial distribution of real fundus images using inpainting techniques. This enables the model to distinguish\nMAs from other anomalies, thereby improving the detection performance.\n• To improve the reconstruction quality of normal features,\nwe propose a wavelet diffusion Transformer architecture, which combines the global modelling capability of\nDiTs with the multi-scale analysis advantage of wavelet\ndecomposition to better understand the overall structure\nand detailed information of fundus images.\n• Comprehensive experiments on the IDRiD and e-ophtha\nMA datasets demonstrate exceptional performance of\nour WDT-MD, holding significant promise for improving early DR screening.\n\nMethod\nWe propose WDT-MD, a novel Wavelet Diffusion Transformer framework for MA Detection in fundus images, as\nillustrated in Fig. 2. This framework addresses key limitations of existing diffusion-based AD approaches for identifying MAs, which are critical early indicators of DR. The\nWDT-MD method initiates sampling from Gaussian noise\nin the wavelet domain, conditioned on the input fundus data.\n\n\fWavelet Domain\nPixel-Level Prediction\nDenoising DiT\nDiT Blocks\n\nDenoising DiT\n\n···\n\nDiT Blocks\n\nLayer Norm\n\nLayer Norm\n\nLinear\n\nLinear\n\nReshape\n\nReshape\n\nGaussian Noise\n\n𝑧𝑇\n\nWavelet Components\n\nImage Conditioning\n\nRestored Image\n\n𝑧0\n\n𝑧ǁ\n\nReconstruction Residual\nstd\n\nSampling Process\n\nImage-Level Prediction\n\nWavelet Components\n\nInput Image\n\nFigure 2: Overview of our proposed WDT-MD method. It is a supervised DiT-based AD framework operating in the wavelet\ndomain, which focuses on MA detection in fundus images. By synthesizing the normal pattern and subtracting the input from it,\nthe model obtains an anomaly map, which further outputs both pixel-level and image-level predictions. (std: standard deviation)\nThrough T -step iterative sampling, it reconstructs pseudonormal fundus data. Subsequently, in the pixel domain, the\nreconstruction residual is computed by subtracting the input\nimage from the restored pseudo-normal image. This residual\nmap is then processed to yield both pixel-level segmentation\nand image-level classification predictions.\n\nWavelet Diffusion Transformer\nAccurate reconstruction of normal retinal features is critical for reliable MA detection in DR screening. Existing\nTransformer-based backbones like U-ViT (Bao et al. 2023)\noffer powerful global modeling capabilities for diffusion\nmodels, enabling them to better capture contextual information such as the spatial distribution of MAs. Nevertheless, their operation directly in the pixel space presents limitations. These approaches struggle to capture and preserve\nthe intricate multi-scale structural and textural details inherent in retinal vasculature, and incur significant computational costs. To address these issues, subsequent works (Peebles and Xie 2023; Ma et al. 2024a; Esser et al. 2024) migrate the diffusion process into a learnable latent space using AE-based tokenizers. However, this two-stage strategy\nintroduces its own challenges: the computational overhead\nof the tokenizer itself and the potential risk of losing inconspicuous features during the encoding or decoding process.\nThis information loss is particularly problematic for detecting MAs. MAs, often subtle in size, demand a representation\nthat inherently separates low-frequency contextual information such as vessel structures and backgrounds from highfrequency details including tiny lesions and textures.\nTo overcome these limitations as well as inspired by\nthe success of wavelet analysis in low-level vision tasks\n(Zhao et al. 2024; Huang et al. 2024), we integrate Discrete Wavelet Transformation (DWT) with DiTs, proposing a wavelet diffusion Transformer architecture. Compared to AE-based tokenizers, DWT exhibits near-lossless\nreconstruction capabilities (Wang et al. 2024) and incurs\nlower computational overhead. Specifically, for an image\nI ∈ RC×H×W , DWT transforms its Value channel V =\nmax(R, G, B) ∈ R1×H×W into four sub-bands:\nVLL , {VLH , VHL , VHH } = DW T (V ),\n(1)\n\n(a)\n\n(b)\nFundus Image\n\nH Channel\n\nS Channel\n\nV Channel\n\nFigure 3: Visualization of HSV channel decomposition on\n(a) IDRiD and (b) e-ophtha MA. The H and S channels carry\nlittle effective information but notable noise, while V contains almost all crucial structural and textural features.\nwhere VLL , {VLH , VHL , VHH } denote the low-frequency\ncomponent of the image and high-frequency components\nin the vertical, horizontal, and diagonal directions, respectively. The selection of V channel helps alleviate the interference of imaging noise while effectively reducing the computational load, as illustrated in Fig. 3. Subsequently, the subbands are concatenated together, denoted as z:\nz = Concat(VLL , VLH , VHL , VHH ).\n\n(2)\n\nOur wavelet diffusion Transformer incorporates both a\nforward process and a reverse process in the wavelet domain.\nThe forward process can be defined as:\n√\n√\nzt = ᾱt z0 + 1 − ᾱt ϵ, ϵ ∼ N (0, I),\n(3)\nwhere zt is the wavelet components\nat timestep t, ϵ is a\nQt\nGaussian noise map, and ᾱt := s=0 αs . Here, αt = 1 − βt\nis a differentiable function of timestep t. The diffusion loss\nis expressed as:\nL (ϵθ ) =\n\nT\nX\n\nh\ni\n2\nEz0 ,ϵ ∥ϵθ (zt , t, z̃) − ϵ∥2 ,\n\n(4)\n\nt=1\n\nwhere ϵθ represents the predicted noise at timestep t by the\ndenoising DiT with parameters θ, T is the total diffusion\ntimesteps, and z̃ is a given image condition.\nDuring the reverse process, starting from Gaussian noise\nzT ∼ N (0, I), the original sample z0 is predicted through a\n\n\fWavelet Domain\n\n𝑧𝑡\n𝑧0\n\nLinear\n\nGaussian Noise\n\nNoise Scheduler\n\nWavelet Components\n\nPseudo-Normal Label\n\n𝜖ǁ\n\nReshape\n\n𝑡\n\nMask Inpainting\n\nDiT Blocks\n\nWavelet Components 𝑧\n෦𝛿\n\nInput Image\n\nNoise Encoding\n\nLayer Norm\n\n𝑧ǁ\n\n𝑙2 Loss\n\n𝜖\n\nDatasets and Evaluation Metrics\n\nmulti-step denoising process:\n\u001a√\nαt−1 (cout (t)zˆ0 + cskip (t)zt ) + γϵ, 1 &lt; t ⩽ Ts\nzt−1 =\ncout (t)zˆ0 + cskip (t)zt ,\nt = 1,\n(5)\n1−αt\n1−ᾱ\n\nExperiments\n\nGaussian Noise\n\nFigure 4: The training process of our WDT-MD.\n\nzt − √\n\nwhere Vpn represents the pseudo-normal V channel, M denotes the binary MA mask normalized to [0, 1], and I is\nthe inpainting algorithm. Here, we employ Telea, a classical\ninpainting method (Telea 2004). In contrast to synthesizing\nanomalies on normal fundus images (Sun et al. 2025a), our\ncore idea is to infer unknown pseudo-normal regions from\nknown normal pixels guided by MA masks, ensuring the\nspatial distribution accuracy of pixel-level supervision.\n\nϵθ (zt ,t,z̃)\n\n√t\nis the predicted original samwhere zˆ0 =\nαt\n1−αt−1\nple, γ = √\nis the scaling factor for Gaussian noise\n1−ᾱt−1\n\nϵ, Ts is the total sampling timesteps, and both cout (t) and\ncskip (t) are differentiable with cout (0) = 0 and cskip (0) = 1.\nSubsequently, z0 is split by channel and transformed into\nrestored Value channel V0 via Inverse DWT (IDWT):\nV0,LL , V0,LH , V0,HL , V0,HH = Split(z0 ),\n\n(6)\n\nV0 = IDW T (V0,LL , {V0,LH , V0,HL , V0,HH }). (7)\nFinally, V0 is merged with the Hue channel H and Saturation\nchannel S of the input image to obtain the restored image I0 .\n\nNoise-Encoded Image Conditioning\nTo address the “identity mapping” dilemma in diffusion\nmodels, we propose a noise-encoded image conditioning\nmechanism. In contrast to existing noise-addition-denoising\nmethods that adopt single noise calibration during inference,\nwe avoid “identity mapping” by perturbing the image condition z̃ into noise-encoded zeδ during training, denoted as:\n√\n√\nzeδ = ᾱδ z̃ + 1 − ᾱδ ϵ, ϵ ∼ N (0, I),\n(8)\nwhere the added noise is determined by the timestep δ ∈\n{1, 2, . . . , δmax } utilizing the noise scheduler. Correspondingly, the diffusion loss in Eq. (4) becomes as follows:\nT\nh\ni\nX\n2\nL (ϵθ ) =\nEz0 ,δ,ϵ ∥ϵθ (zt , t, zeδ ) − ϵ∥2 .\n(9)\nt=1\n\nBy introducing dynamic noise perturbations during training,\nthis mechanism enforces the model to learn the underlying normal patterns of retinal structures rather than directly\ncopying input pixels, as illustrated in Fig. 4.\n\nEvaluation Metrics. To evaluate the MA detection performance, we calculate the Area Under Curve (AUC), Accuracy (ACC), F1 score, Sensitivity (SEN) and Specificity\n(SPE) for both pixel-level and image-level detection.\n\nImplementation Details\nAll experiments were performed using PyTorch 2.5.1 on a\nsingle NVIDIA V100 32 GB GPU within Ubuntu 22.04.\nWDT-MD was trained from scratch over 600 epochs with\na batch size of 4 utilizing the AdamW optimizer, complemented by a dynamic learning rate schedule initialized at\n10−4 . The noise scheduling parameter βt followed a scaled\nlinear trajectory ranging from 0.00085 to 0.012 across T =\n1000 diffusion timesteps. The sampling steps Ts was set to\n50 using the LCM sampler (Luo et al. 2023). In pseudonormal pattern synthesis, the inpainting radius r is set to 3\npixels. For wavelet decomposition, the Daubechies 6 basis\nwas selected to balance computational efficiency and timefrequency localization (Wang, Xu, and Zhao 2024).\n\nMain Results\n\nPseudo-Normal Pattern Synthesis\nTo mitigate false positives, we synthesize pseudo-normal\nlabels using inpainting techniques, thus introducing pixellevel supervision signals in the training process, which can\nbe briefly expressed as follows:\nVpn = (1 − M ) ⊙ V + M ⊙ I(V, M ),\n\nData Preparation. Two publicly available datasets,\nnamely IDRiD (Porwal et al. 2018) and e-ophtha MA (Decenciere et al. 2013), are adopted for extensive evaluation.\nThe IDRiD dataset, a benchmark resource for diabetic\nretinopathy analysis, was adapted for our study. For MA\ndetection, we curated a subset of 249 samples, including\n199 training cases, 24 validation cases, and 26 test cases.\nSpecifically, the training set contains 134 normal images and\n65 abnormal images. Contrast Limited Adaptive Histogram\nEqualization (CLAHE) was applied with 8 × 8 tile grids and\na 2.0 clip limit to enhance contrast. Considering the computational overhead, we implemented dimension standardization through bilinear downsampling to 300 × 200 pixels.\nThe e-ophtha MA dataset consists of 381 cases divided\ninto 304 training, 38 validation, and 39 test samples. Specifically, the training set contains 188 normal images and 116\nabnormal images. The preprocessing pipeline maintained\nstrict consistency with IDRiD: (1) CLAHE (8 × 8 tile grids,\n2.0 clip limit); (2) downsampling to 300 × 200 pixels.\n\n(10)\n\nOn both the IDRiD and e-ophtha MA datasets, we benchmark our WDT-MD against other state-of-the-art methods: (1) diffusion-based AD methods DTU-Net (Kumar\net al. 2025), Dif-fuse (Fontanella et al. 2024) and AnoDDPM (Wyatt et al. 2022); (2) a GAN-based AD method\nGatingAno (Zhang et al. 2024); (3) AE-based AD methods\n\n\fMethod\n\nSource\n\nAnoDDPM\nCPC\nDAE\nHACDR-Net\nAE[doptimal ]\nDif-fuse\nGatingAno\nDTU-Net\nWDT-MD\n\nPixel-level\n\nImage-level\n\nAUC\n\nACC\n\nF1\n\nSEN\n\nSPE\n\nAUC\n\nACC\n\nF1\n\nSEN\n\nSPE\n\nCVPR22\nWACV23\nMedIA23\nAAAI24\nMICCAI24\nTMI24\nPR24\nWACV25\n\n81.76\n76.77\n71.52\n56.38\n75.06\n81.82\n78.73\n75.70\n\n99.91\n99.93\n99.69\n95.07\n99.24\n99.95\n92.07\n99.95\n\n53.34\n49.75\n35.64\n4.03\n19.52\n69.55\n11.49\n58.68\n\n63.62\n53.63\n43.23\n18.82\n50.88\n63.65\n63.04\n51.44\n\n99.93\n99.96\n99.72\n95.12\n99.27\n99.97\n92.09\n99.97\n\n71.90\n77.45\n56.86\n63.07\n62.75\n71.57\n54.25\n68.63\n\n76.92\n80.77\n53.85\n65.38\n61.54\n73.08\n53.85\n69.23\n\n62.50\n70.59\n50.00\n52.63\n54.55\n63.16\n45.45\n60.00\n\n55.56\n66.67\n66.67\n55.56\n66.67\n66.67\n55.56\n66.67\n\n88.24\n88.24\n47.06\n70.59\n58.82\n76.47\n52.94\n70.59\n\nOurs\n\n82.80\n\n99.96\n\n74.43\n\n65.61\n\n99.98\n\n85.95\n\n88.46\n\n82.35\n\n77.78\n\n94.12\n\nTable 1: Quantitative comparison of the proposed WDT-MD method with the state-of-the-art methods on the IDRiD dataset.\nBest results are highlighted as first , second and third . (Unit: %)\n\nMethod\n\nSource\n\nAnoDDPM\nCPC\nDAE\nHACDR-Net\nAE[doptimal ]\nDif-fuse\nGatingAno\nDTU-Net\nWDT-MD\n\nPixel-level\n\nImage-level\n\nAUC\n\nACC\n\nF1\n\nSEN\n\nSPE\n\nAUC\n\nACC\n\nF1\n\nSEN\n\nSPE\n\nCVPR22\nWACV23\nMedIA23\nAAAI24\nMICCAI24\nTMI24\nPR24\nWACV25\n\n79.26\n76.28\n72.64\n54.13\n78.86\n80.82\n78.27\n80.72\n\n99.96\n99.98\n99.95\n98.03\n99.98\n99.96\n98.83\n99.98\n\n32.09\n35.34\n21.96\n3.53\n32.21\n32.48\n2.253\n42.99\n\n58.56\n52.57\n45.31\n9.56\n57.75\n61.67\n58.45\n61.46\n\n99.97\n99.98\n99.96\n98.04\n99.98\n99.96\n98.84\n99.98\n\n60.00\n65.42\n57.08\n41.67\n62.08\n61.25\n63.33\n49.58\n\n61.54\n66.67\n56.41\n43.59\n64.10\n61.54\n64.10\n48.72\n\n51.61\n58.06\n51.43\n31.25\n53.33\n54.55\n56.25\n44.44\n\n53.33\n60.00\n60.00\n33.33\n53.33\n60.00\n60.00\n53.33\n\n66.67\n70.83\n54.17\n50.00\n70.83\n62.50\n66.67\n45.83\n\nOurs\n\n81.08\n\n99.99\n\n57.70\n\n62.16\n\n99.99\n\n70.83\n\n71.79\n\n64.52\n\n66.67\n\n75.00\n\nTable 2: Quantitative comparison of the proposed WDT-MD method with the state-of-the-art methods on the e-ophtha MA\ndataset. Best results are highlighted as first , second and third . (Unit: %)\n\nτ\n\nψ\n\n%\n%\n!\n!\n\n%\n!\n%\n!\n\nPixel-level\n\nImage-level\n\nAUC\n\nACC\n\nF1\n\nSEN\n\nSPE\n\nAUC\n\nACC\n\nF1\n\nSEN\n\nSPE\n\n73.17\n49.98\n67.20\n82.80\n\n97.17\n98.78\n68.84\n99.96\n\n6.39\n0.53\n0.87\n74.43\n\n49.28\n0.30\n62.60\n65.61\n\n97.20\n98.84\n68.84\n99.98\n\n48.37\n42.81\n42.16\n85.95\n\n46.15\n42.31\n34.62\n88.46\n\n41.67\n34.78\n41.38\n82.35\n\n55.56\n44.44\n66.67\n77.78\n\n41.18\n41.18\n17.65\n94.12\n\nTable 3: Ablation study of core components of WDT-MD on IDRiD. τ denotes noise encoding in image conditioning, and ψ\ndenotes pixel-level supervision. Best results are highlighted as first , second and third . (Unit: %)\n\nτ\n\nψ\n\n%\n%\n!\n!\n\n%\n!\n%\n!\n\nPixel-level\n\nImage-level\n\nAUC\n\nACC\n\nF1\n\nSEN\n\nSPE\n\nAUC\n\nACC\n\nF1\n\nSEN\n\nSPE\n\n58.78\n51.69\n68.06\n81.08\n\n97.03\n98.14\n79.84\n99.99\n\n0.36\n5.29\n0.17\n57.70\n\n20.47\n4.05\n56.97\n62.16\n\n97.04\n98.15\n79.84\n99.99\n\n47.08\n45.83\n61.25\n70.83\n\n48.72\n48.72\n61.54\n71.79\n\n37.50\n33.33\n54.55\n64.52\n\n40.00\n33.33\n60.00\n66.67\n\n54.17\n58.33\n62.50\n75.00\n\nTable 4: Ablation study of core components of WDT-MD on e-ophtha MA. τ denotes noise encoding in image conditioning,\nand ψ denotes pixel-level supervision. Best results are highlighted as first , second and third . (Unit: %)\n\n\fTokenizer\n\nPixel-level\n\nImage-level\n\nParams (M) FLOPs (G)\n\nAUC\n\nACC\n\nF1\n\nSEN\n\nSPE\n\nAUC\n\nACC\n\nF1\n\nSEN\n\nSPE\n\n81.03\n80.81\n81.31\n81.37\n\n99.92\n99.93\n99.91\n99.95\n\n64.24\n67.53\n68.19\n69.82\n\n62.09\n61.65\n62.65\n62.76\n\n99.94\n99.95\n99.93\n99.97\n\n77.45\n68.95\n71.57\n77.45\n\n80.77\n73.08\n73.08\n80.77\n\n70.59\n58.82\n63.16\n70.59\n\n66.67\n55.56\n66.67\n66.67\n\n88.24\n82.35\n76.47\n88.24\n\n41.49\n36.04\n36.24\n39.00\n\n478.30\n229.36\n146.75\n150.96\n\nDWT (Ours) 82.80 99.96 74.43 65.61 99.98 85.95 88.46 82.35 77.78 94.12\n\n35.04\n\n119.76\n\n%\nAE-KL\nVQ-VAE\nVQGAN\n\nTable 5: Impact of various tokenizers for compression in WDT-MD on the IDRiD dataset. Best results are highlighted as first ,\nsecond and third . (Unit: %, Params: number of model parameters)\n\nTokenizer\n\nPixel-level\n\nImage-level\n\nParams (M) FLOPs (G)\n\nAUC\n\nACC\n\nF1\n\nSEN\n\nSPE\n\nAUC\n\nACC\n\nF1\n\nSEN\n\nSPE\n\n77.81\n78.22\n79.89\n79.98\n\n99.90\n99.94\n99.94\n99.97\n\n19.86\n22.52\n27.49\n41.02\n\n55.70\n56.50\n59.84\n59.99\n\n99.91\n99.94\n99.95\n99.97\n\n44.17\n53.75\n55.83\n55.83\n\n43.59\n53.85\n56.41\n56.41\n\n38.89\n47.06\n48.48\n48.48\n\n46.67\n53.33\n53.33\n53.33\n\n41.67\n54.17\n58.33\n58.33\n\n41.49\n36.04\n36.24\n39.00\n\n478.30\n229.36\n146.75\n150.96\n\nDWT (Ours) 81.08 99.99 57.70 62.16 99.99 70.83 71.79 64.52 66.67 75.00\n\n35.04\n\n119.76\n\n%\nAE-KL\nVQ-VAE\nVQGAN\n\nTable 6: Impact of various tokenizers for compression in WDT-MD on the e-ophtha MA dataset. Best results are highlighted as\nfirst , second and third . (Unit: %, Params: number of model parameters)\n\nBackbone\n\nPixel-level\n\nImage-level\n\nParams (M) FLOPs (G)\n\nAUC\n\nACC\n\nF1\n\nSEN\n\nSPE\n\nAUC\n\nACC\n\nF1\n\nSEN\n\nSPE\n\n79.88\n80.89\n79.18\n80.62\n81.22\n81.93\n\n99.86\n99.94\n99.93\n99.92\n99.94\n99.94\n\n56.32\n69.79\n61.31\n61.95\n67.76\n69.43\n\n59.85\n61.81\n58.40\n61.29\n62.46\n63.90\n\n99.88\n99.96\n99.95\n99.95\n99.97\n99.97\n\n71.57\n74.51\n63.07\n71.57\n80.07\n83.01\n\n73.08\n76.92\n65.38\n73.08\n80.77\n84.62\n\n63.16\n66.67\n52.63\n63.16\n73.68\n77.78\n\n66.67\n66.67\n55.56\n66.67\n77.78\n77.78\n\n76.47\n82.35\n70.59\n76.47\n82.35\n88.24\n\n382.98\n59.67\n5.78\n8.44\n13.76\n24.40\n\n193.48\n313.89\n10.17\n20.14\n40.06\n79.91\n\nDiT (N = 12, Ours) 82.80 99.96 74.43 65.61 99.98 85.95 88.46 82.35 77.78 94.12\n\n35.04\n\n119.76\n\nAttention U-Net\nU-ViT\nDiT (N = 1)\nDiT (N = 2)\nDiT (N = 4)\nDiT (N = 8)\n\nTable 7: Impact of various backbones of the noise estimator network in WDT-MD on the IDRiD dataset. Best results are\nhighlighted as first , second and third . (N: number of DiT blocks, Unit: %, Params: number of model parameters)\n\nBackbone\n\nPixel-level\n\nImage-level\n\nParams (M) FLOPs (G)\n\nAUC\n\nACC\n\nF1\n\nSEN\n\nSPE\n\nAUC\n\nACC\n\nF1\n\nSEN\n\nSPE\n\n79.70\n80.39\n76.99\n77.41\n79.97\n80.10\n\n99.96\n99.96\n99.97\n99.97\n99.97\n99.97\n\n37.85\n31.57\n33.90\n36.68\n44.37\n44.48\n\n59.43\n60.83\n54.02\n54.85\n59.96\n60.21\n\n99.96\n99.96\n99.97\n99.98\n99.98\n99.98\n\n52.50\n61.25\n57.08\n55.83\n51.67\n57.08\n\n53.85\n61.54\n56.41\n56.41\n51.28\n56.41\n\n43.75\n54.55\n51.43\n48.48\n45.71\n51.43\n\n46.67\n60.00\n60.00\n53.33\n53.33\n60.00\n\n58.33\n62.50\n54.17\n58.33\n50.00\n54.17\n\n382.98\n59.67\n5.78\n8.44\n13.76\n24.40\n\n193.48\n313.89\n10.17\n20.14\n40.06\n79.91\n\nDiT (N = 12, Ours) 81.08 99.99 57.70 62.16 99.99 70.83 71.79 64.52 66.67 75.00\n\n35.04\n\n119.76\n\nAttention U-Net\nU-ViT\nDiT (N = 1)\nDiT (N = 2)\nDiT (N = 4)\nDiT (N = 8)\n\nTable 8: Impact of various backbones of the noise estimator network in WDT-MD on the e-ophtha MA dataset. Best results are\nhighlighted as first , second and third . (N: number of DiT blocks, Unit: %, Params: number of model parameters)\n\n\fFigure 5: The qualitative results for WDT-MD compared with other state-of-the-art methods on IDRiD and e-ophtha MA.\nAE[doptimal ] (Cai, Chen, and Cheng 2024) and DAE (Kascenas et al. 2023); (4) U-Net-based segmentation methods\nHACDR-Net (Xu et al. 2024) and CPC (Yap and Ng 2023).\nQuantitative results are presented in Table 1 and Table\n2. WDT-MD demonstrates top performance, outperforming\ncurrent state-of-the-art methods, spanning both AD and segmentation frameworks. At the pixel level, it achieves an\nAUC of 82.80% on IDRiD and 81.08% on e-ophtha MA.\nIn terms of the image level, it reaches 85.95% on IDRiD and\n70.83% on e-ophtha MA. Furthermore, Fig. 5 illustrates the\nqualitative results on both datasets, highlighting WDT-MD’s\nremarkable ability to precisely detect subtle MAs.\n\nAblation Study\nAblation Study of Core Components. Our ablation study\nhighlights the notable improvements brought by our method,\nas shown in Table 3 and Table 4. Specifically, the pixellevel SEN is improved to 65.61% and 62.16% on IDRiD\nand e-ophtha MA, respectively. This underscores that noiseencoded image conditioning effectively mitigates “identity\nmapping” by preventing mere replication from the image\ncondition. Furthermore, the integration of pixel-level supervision markedly reduces false positives, yielding improvements of (31.14%/76.47%) in (pixel-level/image-level) SPE\non IDRiD and (20.15%/12.50%) on e-ophtha MA.\nImpact of Tokenizers. To investigate the impact of different tokenization strategies, we conducted comparative\nexperiments. As presented in Table 5 and Table 6, DWT\nachieves the best performance, with improvements of\n(4.61%/11.76%) in (pixel-level/image-level) F1 score on\nIDRiD and (16.68%/16.04%) on e-ophtha MA. This underscores the advantage of DWT in detail preservation\nand multi-scale feature modeling. Notably, compared with\ntraining-based tokenizers such as VQGAN, the use of DWT\nreduces the Params by 1.00M and the FLOPs by 18.39%,\ndemonstrating its superiority in computational efficiency.\nImpact of Backbones. The impact of different backbones\non WDT-MD performance is evident in Tables 7 and 8. On\nboth IDRiD and e-ophtha MA, our DiT backbone (N=12)\n\n(a) IDRiD\n\n(b) e-ophtha MA\n\nFigure 6: The quantitative results for WDT-MD under different maximum noise encoding timesteps δmax . (Unit: %)\ndelivers the best performance. Notably, compared with Attention U-Net (Dhariwal and Nichol 2021), the most commonly used backbone in diffusion models, our backbone reduces the Params by 90.85% and FLOPs by 38.10%, reinforcing its suitability for clinical deployment.\nImpact of Noise Encoding Timesteps. Furthermore, we\nexplored the impact of varying maximum noise encoding\ntimesteps. As depicted in Fig. 6, our model performs best at\nδmax = 10. This indicates that moderate noise encoding effectively mitigates “identity mapping”, while too large δmax\nimplies excessive noise injection and more difficult model\nconvergence, causing performance degradation.\n\nConclusion\nIn this paper, we introduce WDT-MD, a novel supervised\nAD framework for MA detection. WDT-MD incorporates\nthe noise-encoded image conditioning mechanism to mitigate “identity mapping”, pseudo-normal pattern synthesis to\nreduce false positives, and the wavelet diffusion Transformer\narchitecture to enhance reconstruction quality of normal\nretinal features. Extensive experiments demonstrate WDTMD’s superior performance. In future work, we will explore\nintegration with multimodal ophthalmic data to further expedite clinical adoption of AI-powered early DR screening.\n\n\fAcknowledgments\nThis work was supported by the National Key Research and\nDevelopment Program of China (No. 2024ZD0536605, No.\n2025YFE0103200), Transvascular Implantation Devices\nResearch Institute (TIDRI) (No. KY052025008), National\nNatural Science Foundation of China (No. 61702146,\nNo. 62076084, No. U20A20386, No. U22A2033, No.\n62302399), Zhejiang Key Research and Development\nProgram of China (No. 2024SSYS0026), Zhejiang Key\nLaboratory of Medical Imaging Artificial Intelligence,\nZhejiang Provincial Natural Science Foundation of China\n(No. LY21F020017, No. 2023C03090), GuangDong\nBasic and Applied Basic Research Foundation (No.\n2025A1515011617), and National Undergraduate Innovation and Entrepreneurship Training Program of China (No.\n202510336076, No. 202410336081).\n\nReferences\nArrigo, A.; Aragona, E.; Teussink, M.; Battaglia Parodi,\nM.; and Bandello, F. 2024. Digital histology of retinal microaneurysms as provided by dense B-scan (DART) OCTA:\nCharacteristics and clinical relevance in diabetic retinopathy.\nEye, 38(16): 3108–3112.\nBaitieva, A.; Hurych, D.; Besnier, V.; and Bernard, O. 2024.\nSupervised anomaly detection for complex industrial images. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 17754–17762.\nBao, F.; Nie, S.; Xue, K.; Cao, Y.; Li, C.; Su, H.; and Zhu,\nJ. 2023. All are worth words: A vit backbone for diffusion\nmodels. In Proceedings of the IEEE/CVF Conference on\nComputer Vision and Pattern Recognition, 22669–22679.\nBaugh, M.; Reynaud, H.; Marimont, S. N.; Cechnicka, S.;\nMüller, J. P.; Tarroni, G.; and Kainz, B. 2024. Imageconditioned diffusion models for medical anomaly detection. In International Workshop on Uncertainty for Safe Utilization of Machine Learning in Medical Imaging, 117–127.\nSpringer.\nCai, Y.; Chen, H.; and Cheng, K.-T. 2024. Rethinking autoencoders for medical anomaly detection from a theoretical\nperspective. In International Conference on Medical Image\nComputing and Computer-Assisted Intervention, 544–554.\nSpringer.\nDecenciere, E.; Cazuguel, G.; Zhang, X.; Thibault, G.;\nKlein, J.-C.; Meyer, F.; Marcotegui, B.; Quellec, G.;\nLamard, M.; Danno, R.; et al. 2013. TeleOphta: Machine\nlearning and image processing methods for teleophthalmology. IRBM, 34(2): 196–203.\nDhariwal, P.; and Nichol, A. 2021. Diffusion models beat\ngans on image synthesis. Advances in Neural Information\nProcessing Systems, 34: 8780–8794.\nEsser, P.; Kulal, S.; Blattmann, A.; Entezari, R.; Müller, J.;\nSaini, H.; Levi, Y.; Lorenz, D.; Sauer, A.; Boesel, F.; et al.\n2024. Scaling rectified flow transformers for high-resolution\nimage synthesis. In International Conference on Machine\nLearning, 12606–12633. PMLR.\nFeng, K.; Ma, Y.; Wang, B.; Qi, C.; Chen, H.; Chen, Q.; and\nWang, Z. 2025. Dit4edit: Diffusion transformer for image\n\nediting. In Proceedings of the AAAI Conference on Artificial\nIntelligence, volume 39, 2969–2977.\nFontanella, A.; Mair, G.; Wardlaw, J.; Trucco, E.; and\nStorkey, A. 2024. Diffusion models for counterfactual generation and anomaly detection in brain images. IEEE Transactions on Medical Imaging.\nFoo, A.; Hsu, W.; and Lee, M. L. 2023. Multi-object representation learning via feature connectivity and object-centric\nregularization. Advances in Neural Information Processing\nSystems, 36: 60035–60047.\nGoodfellow, I. J.; Pouget-Abadie, J.; Mirza, M.; Xu, B.;\nWarde-Farley, D.; Ozair, S.; Courville, A.; and Bengio, Y.\n2014. Generative adversarial nets. Advances in Neural Information Processing Systems, 27.\nGuo, J.; Lu, S.; Zhang, W.; Chen, F.; Li, H.; and Liao, H.\n2025. Dinomaly: The less is more philosophy in multiclass unsupervised anomaly detection. In Proceedings of\nthe Computer Vision and Pattern Recognition Conference,\n20405–20415.\nHo, J.; Jain, A.; and Abbeel, P. 2020. Denoising diffusion\nprobabilistic models. Advances in Neural Information Processing Systems, 33: 6840–6851.\nHuang, Y.; Huang, J.; Liu, J.; Yan, M.; Dong, Y.; Lv, J.;\nChen, C.; and Chen, S. 2024. Wavedm: Wavelet-based diffusion models for image restoration. IEEE Transactions on\nMultimedia, 26: 7058–7073.\nJiang, H.; Gao, M.; Liu, Z.; Tang, C.; Zhang, X.; Jiang, S.;\nYuan, W.; and Liu, J. 2024. GlanceSeg: Real-time microaneurysm lesion segmentation with gaze-map-guided foundation model for early detection of diabetic retinopathy. IEEE\nJournal of Biomedical and Health Informatics.\nJiang, H.; Hou, Y.; Miao, H.; Ye, H.; Gao, M.; Li, X.; Jin, R.;\nand Liu, J. 2023. Eye tracking based deep learning analysis\nfor the early detection of diabetic retinopathy: A pilot study.\nBiomedical Signal Processing and Control, 84: 104830.\nKascenas, A.; Sanchez, P.; Schrempf, P.; Wang, C.; Clackett, W.; Mikhael, S. S.; Voisey, J. P.; Goatman, K.; Weir, A.;\nPugeault, N.; et al. 2023. The role of noise in denoising\nmodels for anomaly detection in medical images. Medical\nImage Analysis, 90: 102963.\nKhan, Z.; Gaidhane, A. M.; Singh, M.; Ganesan, S.; Kaur,\nM.; Sharma, G. C.; Rani, P.; Sharma, R.; Thapliyal, S.;\nKushwaha, M.; et al. 2025. Diagnostic accuracy of IDXDR for detecting diabetic retinopathy: A systematic review\nand Meta-Analysis. American Journal of Ophthalmology,\n273: 192–204.\nKumar, K.; Chakraborty, S.; Mahapatra, D.; Bozorgtabar, B.;\nand Roy, S. 2025. Self-supervised anomaly segmentation\nvia diffusion models with dynamic Transformer UNet. In\nProceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, 7928–7938.\nLi, Y.; Feng, Y.; Chen, B.; Chen, W.; Wang, Y.; Hu, X.; Sun,\nB.; Qu, C.; and Zhou, M. 2024. Vague prototype-oriented\ndiffusion model for multi-class anomaly detection. In International Conference on Machine Learning, 27771–27790.\nPMLR.\n\n\fLuo, S.; Tan, Y.; Huang, L.; Li, J.; and Zhao, H. 2023. Latent\nconsistency models: Synthesizing high-resolution images\nwith few-step inference. arXiv preprint arXiv:2310.04378.\nMa, N.; Goldstein, M.; Albergo, M. S.; Boffi, N. M.;\nVanden-Eijnden, E.; and Xie, S. 2024a. Sit: Exploring flow\nand diffusion-based generative models with scalable interpolant transformers. In European Conference on Computer\nVision, 23–40. Springer.\nMa, Y.; He, Y.; Wang, H.; Wang, A.; Shen, L.; Qi, C.; Ying,\nJ.; Cai, C.; Li, Z.; Shum, H.-Y.; et al. 2025a. Follow-yourclick: Open-domain regional image animation via motion\nprompts. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 39, 6018–6026.\nMa, Y.; Liu, H.; Wang, H.; Pan, H.; He, Y.; Yuan, J.; Zeng,\nA.; Cai, C.; Shum, H.-Y.; Liu, W.; et al. 2024b. Follow-youremoji: Fine-controllable and expressive freestyle portrait animation. In SIGGRAPH Asia 2024 Conference Papers, 1–12.\nMa, Y.; Yan, Z.; Liu, H.; Wang, H.; Pan, H.; He, Y.; Yuan,\nJ.; Zeng, A.; Cai, C.; Shum, H.-Y.; et al. 2025b. Followyour-emoji-faster: Towards efficient, fine-controllable, and\nexpressive freestyle portrait animation. arXiv preprint\narXiv:2509.16630.\nMayya, V.; Kamath, S.; and Kulkarni, U. 2021. Automated\nmicroaneurysms detection for early diagnosis of diabetic\nretinopathy: A comprehensive review. Computer Methods\nand Programs in Biomedicine Update, 1: 100013.\nPeebles, W.; and Xie, S. 2023. Scalable diffusion models\nwith transformers. In Proceedings of the IEEE/CVF International Conference on Computer Vision, 4195–4205.\nPorwal, P.; Pachade, S.; Kamble, R.; Kokare, M.; Deshmukh, G.; Sahasrabuddhe, V.; and Meriaudeau, F. 2018. Indian diabetic retinopathy image dataset (IDRiD): a database\nfor diabetic retinopathy screening research. Data, 3(3): 25.\nPorwal, P.; Pachade, S.; Kokare, M.; Deshmukh, G.; Son,\nJ.; Bae, W.; Liu, L.; Wang, J.; Liu, X.; Gao, L.; et al. 2020.\nIdrid: Diabetic retinopathy–segmentation and grading challenge. Medical Image Analysis, 59: 101561.\nRaghu, M.; Zhang, C.; Kleinberg, J.; and Bengio, S. 2019.\nTransfusion: Understanding transfer learning for medical\nimaging. Advances in Neural Information Processing Systems, 32.\nShao, M.; Miao, X.; Duan, H.; Wang, Z.; Chen, J.; Huang,\nY.; Wu, X.; Deng, J.; Long, Y.; and Zheng, Y. 2025a. Trace:\nTemporally reliable anatomically-conditioned 3D CT generation with enhanced efficiency. In International Conference\non Medical Image Computing and Computer-Assisted Intervention, 627–637. Springer.\nShao, M.; Wang, Z.; Duan, H.; Huang, Y.; Zhai, B.; Wang,\nS.; Long, Y.; and Zheng, Y. 2025b. Rethinking brain tumor\nsegmentation from the frequency domain perspective. IEEE\nTransactions on Medical Imaging.\nSun, H.; Cao, Y.; Dong, H.; and Fink, O. 2025a. Unseen\nvisual anomaly generation. In Proceedings of the Computer\nVision and Pattern Recognition Conference, 25508–25517.\nSun, Y.; Chen, Z.; Zheng, H.; Ge, R.; Liu, J.; Min, W.;\nElazab, A.; Wan, X.; and Wang, C. 2025b. Bs-ldm: Effective bone suppression in high-resolution chest X-ray images\n\nwith conditional latent diffusion models. IEEE Journal of\nBiomedical and Health Informatics.\nSun, Y.; Chen, Z.; Zheng, H.; Lu, Y.; Duan, L.; Fan, F.;\nElazab, A.; Wan, X.; Wang, C.; and Ge, R. 2025c. Gllcm: Global-local latent consistency models for fast highresolution bone suppression in chest X-ray images. In International Conference on Medical Image Computing and\nComputer-Assisted Intervention, 222–232. Springer.\nTelea, A. 2004. An image inpainting technique based on\nthe fast marching method. Journal of Graphics Tools, 9(1):\n23–34.\nWang, K.; Bai, Y.; Li, D.; Zhai, D.; Jiang, J.; and Liu, X.\n2024. Learning lossless compression for high bit-depth volumetric medical image. IEEE Transactions on Image Processing.\nWang, Y.; Xu, J.; and Zhao, Y. 2024. Wavelet encoding network for inertial signal enhancement via feature supervision.\nIEEE Transactions on Industrial Informatics.\nWolleb, J.; Bieder, F.; Sandkühler, R.; and Cattin, P. C. 2022.\nDiffusion models for medical anomaly detection. In International Conference on Medical Image Computing and\nComputer-Assisted Intervention, 35–45. Springer.\nWu, Y.; and Jiao, G. 2024. MicroSeg: Multi-scale fusion\nlearning for microaneurysms segmentation. Biomedical Signal Processing and Control, 97: 106700.\nWyatt, J.; Leach, A.; Schmon, S. M.; and Willcocks, C. G.\n2022. Anoddpm: Anomaly detection with denoising diffusion probabilistic models using simplex noise. In Proceedings of the IEEE/CVF Conference on Computer Vision and\nPattern Recognition, 650–656.\nXu, Q.; Luo, X.; Huang, C.; Liu, C.; Wen, J.; Wang, J.; and\nXu, Y. 2024. HACDR-Net: heterogeneous-aware convolutional network for diabetic retinopathy multi-lesion segmentation. In Proceedings of the AAAI Conference on Artificial\nIntelligence, 6342–6350.\nYap, B. P.; and Ng, B. K. 2023. Cut-paste consistency learning for semi-supervised lesion segmentation. In Proceedings of the IEEE/CVF Winter Conference on Applications of\nComputer Vision, 6160–6169.\nZhang, W.; Liu, H.; Xie, J.; Huang, Y.; Zhang, Y.; Li, Y.; Ramachandra, R.; and Zheng, Y. 2024. Anomaly detection via\ngating highway connection for retinal fundus images. Pattern Recognition, 148: 110167.\nZhao, C.; Cai, W.; Dong, C.; and Hu, C. 2024. Waveletbased fourier information interaction with frequency diffusion adjustment for underwater image restoration. In Proceedings of the IEEE/CVF Conference on Computer Vision\nand Pattern Recognition, 8281–8291.\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"