"<!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>Unraveling Normal Anatomy via Fluid-Driven Anomaly Randomization\nPeirong Liu1\n\narXiv:2501.13370v1 [eess.IV] 23 Jan 2025\n\n1\n\nAna Lawry Aguila1\n\nJuan E. Iglesias1,2,3\n\nHarvard Medical School and Massachusetts General Hospital\n\n2\n\nUCL\n\nMIT\n\nHealthy ↔ Healthy\n\nDiseased → Healthy\n\nFluid-Driven Anomaly Randomization\n\n3\n\nV\n(i)\nD\n\nt=0\n\nt=5\n\nInitial condition:\n\nt = 10\n\nI0\n\nT1w\nMRI\n\n→\n\nT1w\nMRI\n\n↔\n\nT2w\nMRI\n\n→\n\nT2w\nMRI\n\n↔\n\nFLAIR\nMRI\n\n→\n\nFLAIR\nMRI\n\n↔\n\nCT\n\n→\n\nCT\n\n↔\n\nI\n\n(i) a realistic pathology annotation map\n(ii) a random map generated from Perlin noise\n\nV\n(ii)\nD\n\nt=0\n\nt=5\n\nt = 10\n\nI0\n\nI\n\nFigure 1. Powered by the proposed fluid-driven anomaly randomization, UNA can handle a range of pathological patterns without requiring\npaired pathology annotations for training. (i) By bridging the gap between healthy and diseased anatomy, UNA enables the use of general\nanalysis models for images containing pathology; (ii) By reconstructing anatomy in a modality-agnostic manner, UNA facilitates analysis\nwith standard tools designed for high-resolution, healthy T1w MRI.\n\nAbstract\n\nuse of general-purpose models on diseased images, opening\nup new opportunities for large-scale analysis of uncurated\nclinical images in the presence of pathology. Code is available at https://github.com/peirong26/UNA.\n\nData-driven machine learning has made significant\nstrides in medical image analysis. However, most existing methods are tailored to specific modalities and assume a particular resolution (often isotropic). This limits\ntheir generalizability in clinical settings, where variations\nin scan appearance arise from differences in sequence parameters, resolution, and orientation. Furthermore, most\ngeneral-purpose models are designed for healthy subjects\nand suffer from performance degradation when pathology is\npresent. We introduce UNA (Unraveling Normal Anatomy),\nthe first modality-agnostic learning approach for normal\nbrain anatomy reconstruction that can handle both healthy\nscans and cases with pathology. We propose a fluid-driven\nanomaly randomization method that generates an unlimited\nnumber of realistic pathology profiles on-the-fly. UNA is\ntrained on a combination of synthetic and real data, and\ncan be applied directly to real images with potential pathology without the need for fine-tuning. We demonstrate UNA’s\neffectiveness in reconstructing healthy brain anatomy and\nshowcase its direct application to anomaly detection, using\nboth simulated and real images from 3D healthy and stroke\ndatasets, including CT and MRI scans. By bridging the\ngap between healthy and diseased images, UNA enables the\n\n1. Introduction\nRecent machine learning based methods have significantly\nadvanced the speed and accuracy of brain image analysis\ntasks, such as image segmentation [13, 29, 43, 49], registration [5, 11, 63], and super-resolution [54, 57]. Human brain\nimaging in vivo is primarily dominated by Computed Tomography (CT) and Magnetic Resonance Imaging (MRI)\n[25]. CT is faster and preferred in emergency cases, while\nMRI provides superior contrast for soft tissues such as the\nbrain. Unlike CT, which is a standardized modality that produces quantitative measurements in Hounsfield units, MRI\nis generally not calibrated and can generate a wide range\nof imaging contrasts (e.g., T1w, T2w, FLAIR) to visualize\ndifferent tissues and abnormalities. This diversity in contrast and the lack of standardization complicate the quantitative analysis of MRI scans. As a result, most existing\nMRI analysis methods are contrast-specific and often suffer from performance degradation when voxel size or MRI\ncontrast differs between training and testing datasets [60].\n1\n\n\f2. Related Work\n\nThis limits the generalizability of machine learning models and leads to redundant data collection and training efforts for new datasets. Recent contrast-agnostic models that\nleverage synthetic data [7, 23, 26, 27, 38] have demonstrated\nimpressive results, significantly extending their applicability to diverse clinical acquisition protocols. However, these\nmodels are primarily designed for analyzing healthy brain\nanatomy and typically struggle to produce reliable results in\nthe presence of extensive abnormalities (Figs. 3 and 4).\nTo the best of our knowledge, the recently proposed\nPEPSI [39] is the only contrast-agnostic brain MRI analysis method that is compatible with extensive pathology. PEPSI leverages synthetic data to estimate T1w and\nFLAIR MRI from input scans containing pathology. However, it has several limitations: (i) It relies on paired pathology segmentation map associated with each brain anatomy\nduring training, which limits its application to datasets that\nprovide pathology annotations; (ii) It requires access to pretrained pathology segmentation models to compute the implicit pathology segmentation loss; and (iii) It requires additional fine-tuning to detect anomalies.\nHere, we introduce UNA, the first modality-agnostic\nlearning method for Unraveling Normal Anatomy. UNA\nleverages the power of synthetic data, and can be applied\nto real images (CT and MRI) of both healthy and diseased\npopulations, without the need for fine-tuning (Fig. 1).\n1) We propose fluid-driven anomaly randomization (Sec. 3)\nto overcome the scarcity of pathology segmentation annotations. Using only limited existing pathology segmentations as initial conditions, our fluid-driven anomaly generator generates unlimited new pathology profiles on-thefly through advection-diffusion partial differential equations (PDEs). This formulation offers a continuous and\ncontrollable trajectory for pathology evolution and also\nnaturally enforces realistic constraints on brain abnormalities through boundary conditions (Fig. 1 (left)).\n2) We introduce a modality-agnostic learning framework to\nreconstruct healthy brain anatomy from images with potential pathology (Sec. 4). Our framework leverages symmetry priors of brain anatomy and incorporates subjectspecific anatomical features from contralateral healthy\ntissue in a self-contrastive learning fashion.\n3) We extensively evaluate the healthy anatomy reconstruction performance of UNA on simulated and real images\nwith stroke lesions, in both CT and different MR contrasts\n(T1w, T2w, and FLAIR) (Secs. 5.1 and 5.2). We further demonstrate the direct application of UNA to anomaly\ndetection, without fine-tuning (Sec. 5.3). UNA achieves\nstate-of-the-art performance in all tasks and modalities.\nBy bridging the gap between healthy and diseased anatomy\nUNA enables the use of general-purpose models for images\ncontaining pathology, unlocking the tremendous potential\nfor analyzing clinical images with pathology.\n\nFoundation Models in Medical Imaging. Large-scale\ndatasets in medical imaging require significantly more effort to compile than those in natural imaging or language\ndue to varying acquisition protocols and privacy requirements across institutions. Consequently, medical foundation models are not as well developed as their natural image\ncounterparts. There have been, nevertheless, some notable\nefforts. SAM-Med3D-MoE [59] provides a 3D foundation\nmodel for medical image segmentation, trained on 22,000\nscans. The MONAI [1] project includes a model zoo with\npre-trained models, which are highly task-specific and sensitive to particular image contrasts. Zhou et al. [65] constructed a medical foundation model designed for detecting eye and systemic health conditions from retinal scans.\nStill, it only functions with color fundus photography and\noptical coherence tomography modalities. Recently, generalist biomedical AI systems, e.g., GMAI [46] and MedPaLM M [52, 58], have demonstrated significant potential\nin biomedical tasks within a vision-language context, including visual question answering, image classification, and\nradiology report generation. However, they have not tackled more complex dense 3D prediction tasks such as reconstruction, segmentation, and registration.\nContrast-Agnostic Learning for MRI. MRI scans acquired across sites vary substantially in appearance due to\ndifferences in contrast, resolution, and orientation. This heterogeneity leads to duplicate training efforts for approaches\nthat are sensitive to specific MR contrast. Classical approaches in brain segmentation used Bayesian inference\nfor contrast robustness [17, 32], but require long processing times and struggle with resolutions that are not high\nand isotropic [26, 48]. SynthSeg [7, 8] achieves contrastand resolution-agnostic segmentation with a synthetic generator that simulates widely diverse contrasts and resolutions. The same generator has been used to achieve contrast\ninvariance in tasks like image registration [12, 23], superresolution [27], or skull stripping [24]. Brain-ID [38] explored contrast-agnostic feature representations that generalize across various fundamental medical image analysis\ntasks, including image synthesis, segmentation, and superresolution. However, all these general-purpose methods are\neither trained exclusively on healthy anatomical labels, or\nrequire paired anatomy-pathology annotations, which limits their application primarily to healthy subjects or every\nspecific pathology (e.g., white matter lesions) – as opposed\nto previously unseen pathology profiles (Figs. 3 and 4).\nFluid-Based Dynamics Modeling. Fluid dynamics is a\nfundamental topic in physics and plays a crucial role in\nvarious real-world applications such as weather forecasting,\nairflow analysis [10], optical flow [53, 55], image registration [51, 56, 64], and perfusion analysis [37]. In fluid dy2\n\n\fnamics, advection-diffusion PDEs are commonly employed\nto describe the fluid transport processes. Liu et al. [40]\nintroduced regularization-free representations to ensure the\ncompressibility and positive semi-definiteness of estimated\nvelocity and diffusion fields. Franz et al. [19] simulated 3D\ndensity and velocity fields from single-view data without\n3D supervision. Xing et al. [62] proposed to learn the velocity field from past physical observations using Helmholtz\ndynamics, eliminating the need for ground truth velocity.\nIn these studies, the inverse problem of velocity estimation\nprovides interpretable insights for predicting future fluid behavior. We build upon the concept of fluid flow simulation\nand frame anomaly pattern randomization as a forward process of advection-diffusion PDEs. This formulation naturally enables us to ensure that simulated anomaly outcomes\nare well posed, through controllable velocity fields and established boundary conditions (Sec. 3.1).\n\nAlgorithm 1: Fluid-Driven Anomaly Randomization\nDataset: Healthy images with anatomy labels (DSynth );\nGold standard pathology annotations (DPathol )\nSettings: Ω, Ωp , n, Tmax in Eq. (2); θl , θµ , θσ in Eq. (4)\nInput: Anatomy label L, or, real image I0\nOutput: Image (I) which is encoded with the randomized\npathology profile (P )\n/* Initialization\n\n*/\n\nRandomly select P0 ∈ DPathol\n2 Randomly select label L or image I ∈ DSynth\n1\n\n/* Fluid-Driven Forward Randomization\n\n*/\n\nRandomly sample potential fields Ψ and Φ in Eq. (3)\n4 while t ≤ Tmax do\n5\nRandomly pick anomaly transport time T ≤ Tmax\n6\nReconstruct V and D via Eq. (3)\n7\nCompute forward scheme via Eqs. (1) and (2)\n\n3\n\n8\n\nObtain randomized P = P (x, Tmax )\n/* Random Modality Generation\n\n*/\n\nif L as input then\n10\nSynthesize random modality I0 via Eq. (4)\n9\n\n3. Fluid-Driven Anomaly Randomization\n\n/* Anomaly Profile Encoding\n11\n\nManually annotating pathology to create gold-standard segmentation is extremely costly, particularly for 3D medical\nimages. This process not only requires specialized expertise from clinicians, but is also highly time-consuming and\nnot reproducible. Consequently, large-scale datasets with\ngold-standard pathology annotations are almost inexistent\n(BraTS [42] being a notable exception). In addition, discrepancies often arise among the gold-standard pathology\nsegmentation maps provided by different datasets. To address these issues, we seek to design an anomaly randomization approach that is:\n\n*/\n\nEncode randomized P into I0 via Eqs. (5) and (6)\n\n3.1. Anomaly Profile Randomization\nBackground. Advection-diffusion PDEs describe a large\nfamily of fluid dynamics processes, e.g., heat conduction,\nwind dynamics, and blood flow [10, 37, 62]. In general,\nthe advection term refers to the mass transport driven by\nfluid flow, while the diffusion term refers to the gradient\nof mass concentration. Inspired by the advection-diffusion\nprocess, which computes the natural progression of mass\nintensities, we propose to randomize an unlimited variety\nof anomaly profiles by formulating the generation as a forward advection-diffusion, starting from either a single realistic pathology annotation map or a random shape.\n\ni. Expressive: the generated anomaly profiles should exhibit\ndiverse and expressive shapes and intensities that sufficiently reflect the variety of pathological appearances encountered in clinical practice.\nii. Realistic: the randomized abnormalities must conform to\nrealistic constraints. For example, abnormalities in white\nmatter should not appear in other tissue structures, brain\ntumors should be localized within the brain region.\n\nProblem Setup. Let P (x, t) denote the pathology probability at location x in a bounded domain of interest Ω ⊂ R3\n(e.g., brain), at time t. The local pathology probability\nchanges of an anomaly randomization process are described\nby the advection-diffusion PDE:\n  \\frac {\\partial P({\\mathbf {x}},\\,t)}{\\partial t} = \\underbrace {- \\nabla \\left ({\\mathbf {V}}({\\mathbf {x}}) \\cdot P({\\mathbf {x}},\\,t) \\right )}_{\\text {Flow}} + \\underbrace {\\nabla \\cdot \\left (D({\\mathbf {x}})\\, \\nabla P({\\mathbf {x}},\\,t)\\right )}_{\\text {Diffusion}}, \\label {eq: full_adv_diff} \\vspace {-0.75 cm} \n\nTo achieve these two aims, we propose randomizing unlimited, diverse anomaly profiles by formulating the generation as a forward mass transport process, with realistic constraints naturally guaranteed by boundary conditions.\nOur anomaly randomization consists of three steps (Alg. 1):\n(i) Initializations of random anomaly (P0 ), velocity (V),\nand diffusion (D) for anomaly transport; (ii) Forward transport of abnormal intensities for random time steps; (iii) Appearance encoding of the generated anomaly on healthy images of any modality. Sec. 3.1 below describes the generation of abnormal profiles (i-ii), and Sec. 3.2 introduces the\nencoding of abnormalities on healthy images (iii).\n\n(1)\n  s.t. ~ \\underbrace {P({\\mathbf {x}}, \\, 0) = P_0({\\mathbf {x}})}_{\\text {Initial Condition}},\\, \\underbrace {\\frac {P({\\mathbf {x}}, \\, t)}{\\partial \\mathbf {n}}\\bigg |_{\\partial \\Omega _p} = 0}_{\\text {Zero-Neumann}},\\, t \\leq T_{\\text {max}} \\,, \\label {eq: constraint} \\vspace {-0.15cm}  (2)\n\nwhere t (Tmax ) refers to the (maximum) time steps used\nfor the generation of new anomaly profiles. The spatially\nvarying velocity field V(x) ∈ R3 and diffusion scalar field\nD(x) ∈ R govern the advection and diffusion process of\nan initial anomaly, P0 (x). The zero Neumann boundary\n3\n\n\fmodality and resolution with healthy anatomy (Fig. 2 (left)).\ncondition ensures that the randomization process of P0 satSpecifically, we randomly sample intensities on 3D neuisfies pre-assumed bounds of the anomaly developing reroanatomical segmentation (label maps L), where the ingions. To ensure that the dynamics of anomaly changes are\ntensities are conditioned on the label at each location:\nwell posed, we impose the incompressible flow and non  \\begin {cases} I_0({\\mathbf {x}}) \\sim \\mathcal {N}(\\mu _l,\\, \\sigma _l ) \\,, \\quad l \\in L\\,,\\\\ \\mu _l \\sim \\mathcal {U}(0,\\, 1 \\, \\vert \\, \\theta _{\\mu }, \\, \\theta _{l}) \\,,~ \\sigma _l \\sim \\mathcal {U}(0,\\, 1 \\, \\vert \\, \\theta _{\\sigma }, \\, \\theta _{l}) \\,, \\end {cases} \\label {eq: contrast} \\vspace {-0.2cm} \nnegative diffusion constraints on V and D [40], and rewrite\n(4)\nthe advection-diffusion process in Eq. (1) as:\n  \\begin {aligned} \\frac {\\partial P({\\mathbf {x}},\\, t)}{\\partial t} &amp;= - {\\mathbf {V}}({\\mathbf {x}})\\cdot \\nabla P({\\mathbf {x}},\\, t) + \\nabla \\cdot \\left ({{D}}({\\mathbf {x}})\\, \\nabla P({\\mathbf {x}}, \\, t)\\right ) \\vspace *{-0.2 cm} \\\\ &amp;= \\underbrace {- \\nabla \\times \\boldsymbol {\\Psi }({\\mathbf {x}})\\cdot \\nabla P({\\mathbf {x}}, t)}_{\\text {Incompressible Flow}} + \\underbrace {\\nabla \\cdot \\left ({\\Phi }^2({\\mathbf {x}})\\, \\nabla P({\\mathbf {x}}, t)\\right )}_{\\text {Non-Negative Diffusion}}, \\label {eq: divfree_adv_diff} \\end {aligned} \nwhere µl and σl refer to the mean and variance of the uniform distribution of each label l. θl , θµ , θσ ∈ Θ control\nthe shifts and scales. A random deformation field is then\ngenerated for augmentation purposes, comprising linear and\n(3)\nnon-linear transformations [27, 38].\nwhere Ψ ∈ L3 (Ω)3 and Φ ∈ R+ (Ω) refer to the potential\nAnomaly Profile Encoding.\nWe encode the random\nfields for representing V and D, respectively, such that the\nanomaly\nprofiles\nfrom\nSec.\n3.1\ninto\nthe generated healthy\nresulting flow and diffusion will be incompressible and nonanatomy\nI\n,\nbased\non\na\npriori\nknowledge\non the white and\n0\nnegative by construction.\ngray matter intensities of I0 [31, 39]:\nInitializations of P0 , V, D. To enrich the diversity of\n  I({\\mathbf {x}}) = I_0({\\mathbf {x}}) + \\Delta I({\\mathbf {x}}) * P({\\mathbf {x}})\\,, \\label {eq: pathol_encode} \n(5)\nabnormal profiles, we initialize the anomaly (P0 in Eq. (2))\nfrom two sources: (i) Publicly available pathology annotations from the ATLAS [36] and ISLES [22] stroke datasets,\n  s.t. ~ \\Delta I({\\mathbf {x}}) \\sim \\begin {cases} \\{ 0 \\} \\,, &amp; x \\notin \\Omega _{P}\\\\ \\mathcal {N}(-\\mu _{\\text {w}} / 2 ,\\, \\mu _{\\text {w}} / 2 ) \\,,&amp; x \\in \\Omega _{P}\\,, \\mu _{\\text {w}} &gt; \\mu _{\\text {g}}\\\\ \\mathcal {N}(\\mu _{\\text {w}} / 2 ,\\, \\mu _{\\text {w}} / 2 ) \\,, &amp; x \\in \\Omega _{P}\\,, \\mu _{\\text {w}} \\leq \\mu _{\\text {g}} \\\\ \\end {cases} \\label {eq: pathol_condition} \nwhich include high-quality gold-standard segmentation of\nstroke lesions. (ii) Random shapes using randomly thresh(6)\nolded Perlin noise, a widely used procedural generation alµw (µg ) is the mean of I0 ’s white (gray) matter intensities. A\ngorithm known for creating rich textures. We further genhigher µw resembles T1w, where pathology appears darker,\nerate random Perlin noise for creating random potentials Ψ\nwhile a lower µw resembles T2w/FLAIR, where pathology\nfor V, and Φ for D.\nis\ntypically brighter. Considering extreme scenarios, we\nForward Scheme.\nWe employ a first-order upwind\nrandomly\nassign the sign of ∆I(x) 20% of the time. I furscheme [33] to approximate the differential operators asther\nundergoes\na standard augmentation pipeline [26], introsociated with the advection term, and a nested centralducing\npartial\nvoluming\n[7] and various resolutions, noise,\nforward-backward difference scheme for the diffusion term\nscanning\nartifacts\ncommonly\nfound in clinical practice.\nin Eq. (3). Discretizing the spatial derivatives leads to a\nsystem of ordinary differential equations that can be solved\nwith numerical integration. To enhance numerical stability\nand ensure compliance with the Courant-Friedrichs-Lewy\n(CFL) condition [20, 33], we apply the RK45 method for\nadaptive time-stepping (δt) in advancing to P t+δt .\nAs shown in Fig. 1 (left), we can generate infinite variations from a single pathology profile via the introduced\nfluid-driven anomaly transport, while naturally satisfying\nboundary conditions imposed by the brain contour.\n\n4. Learning Anatomy Beyond Gold Standards\nIn this section, we present UNA’s end-to-end training framework, which learns to unravel normal anatomy from images\nof random modality containing potential pathology.\nContralateral-Paired Input.\nHealthy human brain\nanatomy typically exhibits a high degree of symmetry\nin structure. Based on this fact, we combine the original input image (I) with its contralateral-mirrored image\n(I) to create paired inputs for UNA’s healthy anatomy reconstruction learning. This approach allows our model\nto “borrow” healthy information from the contralateral\ncounterpart, thereby enhancing subject-specific healthy\nanatomy reconstruction. To ensure structural correspondence and minimize computational complexity during training, we pre-compute the deformation (ϕI→I ) between each\ntraining subject’s scan and its axial-flipped image using\nNiftyReg [44,50]. As a result, the contralateral-paired\ninput\n\u0011\n\u0010\nI\n.\nfor each subject sample is represented as I, ϕ−1\n◦\nI→I\n\n3.2. Anomaly Apprearance Randomization\nAs mentioned in Sec. 2, large-scale annotation of 3D medical imaging data requires tremendous effort. UNA is instead\ntrained on a combination of synthetic and real images (many\nof them labeled automatically). Specifically, we encode the\ngenerated pathology profiles, P , into normal anatomy of\nhealthy control scans, enabling the generation of diverse\nimages with random modalities, each exhibiting a distinct\nappearance introduced by P .\nRandom Modality Generation. To generate healthy images with complex structural details, we first leverage domain randomization [38] to synthesize images of random\n\nModality-Agnostic Healthy Anatomy Reconstruction.\nTo enhance model generalizability, UNA is trained on both\n4\n\n\fEq. (3)\n\nEq. (3)\n\nSec. 3.1\n\nSec. 3.1\n\nΨ\n\nV\n\nD\n\nEq. (2)\nSec. 3.1\n\nFluid-Driven\nAnomaly\nRandomization\n\nModality-Agnostic Learning of Healthy Anatomy Beyond Gold Standards\n↑ Intra-Subject Similarity in Healthy Contralateral Anatomy via Eq. (8)\n\nΦ\n\nEq. (3)\n\nForward Scheme\n\nSec. 3.1\nPTmax\n\nP0\n\nAnomaly Profile\nEncoding via\n\nϕ−1\n◦I\nI→I\n\nContralateral-Paired\n\u0010\n\u0011\nInput: I, ϕ−1\n◦I\nI→I\nSec. 4\nIe\n\nEqs. (5) and (6)\nHealthy Subjects Pool\nHCP [15], ADHD200 [9],\nADNI [28], ADNI3 [61],\nOASIS3 [30], AIBL [18]\n\nEq. (4)\n\nI\n\n↑ Intra-Subject Distinctiveness: Healthy v.s. Diseased via Eq. (8)\n\nSec. 3.2\nL\n\nI0\n\nSec. 3\n\nSec. 4\n\nFigure 2. UNA’s framework overview for modality-agnostic learning of healthy anatomy, supported by fluid-driven anomaly randomization.\n\nreal datasets containing pathology (DReal ) and synthetic images (DSynth ) generated from fluid-driven anomaly randomization (Sec. 3), featuring varying simulated modalities and\nabnormality conditions. During training, we define the following healthy anatomy reconstruction loss, which takes\ninto account both the subject-level and the voxel-level abnormality of the input image (I):\n\n  \\mathcal {L}_{\\text {Contrast}} = - ~log~ \\frac {\\displaystyle \\int _{\\Omega _{p\\setminus \\overline {p}}} e^{ \\widetilde {I} \\cdot \\left (\\phi ^{-1}_{I\\to \\overline {I}} \\circ \\overline {I}\\right ) / \\alpha } \\, d\\mathbf {x} }{\\displaystyle \\int _{\\Omega _{p\\setminus \\overline {p}}} e^{ \\widetilde {I} \\cdot \\left (\\phi ^{-1}_{I\\to \\overline {I}} \\circ \\overline {I}\\right ) / \\beta } + e^{ \\widetilde {I} \\cdot I / \\gamma } \\, d\\mathbf {x} } \\,, \\label {eq: loss_contrast} \\vspace {-0.2 cm}  (8)\n\n\u0011\n\u0010\nwhere Ωp\\p = Ωp \\ Ωp ∩ Ωϕ−1 ◦P , ensuring that we\nI→I\nexclude pathologies that appear at the same contralateral\nlocation on both hemispheres. α, β, γ represent the corresponding temperature scaling factors of each term.\nThus, UNA’s end-to-end healthy anatomy reconstruction\ntraining loss is obtained by the sum of Eqs. (7) and (8):\n\n  \\mathcal {L}_{\\text {Recon}} = \\int _{\\Omega }k(\\mathbf {x})~\\{ \\vert \\widetilde {I}(\\mathbf {x}) - I(\\mathbf {x}) \\vert + \\lambda _{\\nabla } \\vert \\nabla \\widetilde {I}(\\mathbf {x}) - \\nabla I(\\mathbf {x}) \\vert \\} \\, d\\mathbf {x} \\nonumber \\label {eq: loss_recon} \\vspace {-0.8 cm} \n  \\hspace *{-0.2cm}s.t.\\quad k(\\mathbf {x}) = \\begin {cases} 1 - d \\cdot p(\\mathbf {x}) \\,, &amp; \\mathbf {x} \\in \\Omega _{P} \\,, \\\\ (1 + \\lambda _{p}) \\cdot (1-d) \\cdot p(\\mathbf {x}) \\,, &amp; \\mathbf {x} \\notin \\Omega _{P} \\,, \\\\ \\end {cases} \\vspace {-0.2cm}  (7)\nwhere d = {1 : I ∈ DReal ; 0 : I ∈ DSynth } indicates\nwhether the current image is sourced from real datasets\n(DReal ) or generated synthetically (DSynth ). The parameters λ∇ and λp control the training weights for gradient L1\nloss and attention to pathology, respectively. Specifically:\n(i) if the current training input image (I) is generated by\nUNA, i.e., the ground truth healthy anatomy of the entire\nbrain region is accessible, we compute the anatomy reconstruction loss across the whole brain (Ω). (ii) Conversely,\nif I is sourced from real datasets, the ground truth healthy\nanatomy of the entire brain is not available. In this case, we\ncompute the voxel-wise reconstruction loss exclusively for\nthe healthy regions, while masking out any abnormalities.\n\n  \\mathcal {L} = \\mathcal {L}_{\\text {Recon}} + \\lambda _{\\text {Contrast}}\\, \\mathcal {L}_{\\text {Contrast}} \\,, \\label {eq: loss} \\vspace {-0.23cm} \n\n(9)\n\nwhere λContrast is the weight of self-contrastive learning loss.\nAs shown in Fig. 1, as a general model for healthy\nanatomy reconstruction, UNA also addresses the following\ntasks: (i) Given an input image without any abnormalities,\nUNA performs anatomy reconstruction; (ii) Given a T1w\nMRI of any resolution, UNA performs super-resolution.\n\n5. Experiments\nWe evaluate UNA’s performance and demonstrate its impact\nfrom three perspectives. (i) The reconstruction of anatomy\nfrom healthy images. This enables analysis with standard\ntools made for high-resolution T1w MRI, such as segmentation and parcellation using FreeSurfer [16], registration\nwith NiftyReg [44, 50], ANTs [4], etc. (ii) The synthesis\nof healthy anatomy from images with pathology. This allows for the application of well-established general-purpose\nmodels to images with extensive pathology. For a more\ncomprehensive assessment, we test on both synthetic data –\nwhere ground truth healthy images are available (Sec. 5.1)\n– and real images from two public stroke datasets – where\nthe ground truth healthy anatomy is unknown (Sec. 5.2).\n(iii) We further demonstrate UNA’s direct application to\nanomaly detection (Sec. 5.3). Our test data includes CT and\nvarious MRI modalities (T1w, T2w, FLAIR).\n\nIntra-Subject Self-Contrastive Learning. In Eq. (7),\nthe anatomy reconstruction in abnormal regions is not supervised when dealing with real images containing pathology. To enhance the performance of learning healthy\nanatomy, we propose an intra-subject learning strategy that\nexploits the (approximate) symmetry of the brain with a\ncontrastive loss that encourages two properties:\ni. Similarity in appearance between the reconstructed\nhealthy anatomy and its contralateral healthy counterpart.\nii. Distinctiveness between the reconstructed anatomy and\nthe original regions that exhibit abnormalities.\nSpecifically, we define this intra-subject contrastive loss as:\n\n5\n\n\fDatasets. We conducted experiments using eight public\ndatasets: ADNI [28], ADNI3 [61], HCP [15], ADHD200 [9],\nAIBL [18], OASIS3 [30], ATLAS [36], ISLES [22].\nATLAS and ISLES include stroke patients, associated with\ngold-standard manual segmentations of stroke lesions (referred to as DStroke hereafter). The other datasets contain\nsubjects with healthy anatomy (DHealthy ). These datasets\ncover both MR (T1w, T2w, FLAIR) and CT images. The\ntrain/test subject splits for each dataset are listed in Tab. 2.\n\nModality\n\nT1w\nMRI\n\nT2w\nMRI\n\nFLAIR\nMRI\n\nCT\n\nSynthetic Data Generation. We use the anatomical labels of training subjects from DHealthy for random modality\ngeneration (Sec. 3.2). The synthetic abnormal profiles are\ngenerated using UNA’s fluid-driven anomaly randomization\n(Sec. 3), with initial profiles either sampled from the gold\nstandard lesion segmentation maps of training subjects in\nDStroke , or Perlin noise (Sec. 3.1). For evaluation on simulated data in Sec. 5.1, we employ our synthetic generator\nto create 1,000 testing samples from DHealthy , encoded with\nrandom anomaly profiles from DStroke . This generation is\nsolely for providing ground truth healthy anatomy; therefore, we encode random anomaly profiles without applying\nany additional deformation and corruption.\n\nL1 (↓)\n\nMethod\n\nSynthSR [26]\nBrain-ID [38]\nPEPSI [39]\nUNA\nSynthSR [26]\nBrain-ID [38]\nPEPSI [39]\nUNA\nSynthSR [26]\nBrain-ID [38]\nPEPSI [39]\nUNA\nSynthSR [26]\nBrain-ID [38]\nPEPSI [39]\nUNA\n\nPSNR (↑)\n\nSSIM (↑)\n\nF\n\nH\n\nD\n\nF\n\nH\n\nD\n\nF\n\nH\n\nD\n\n0.0285\n0.0231\n0.0257\n0.0147\n0.0362\n0.0277\n0.0295\n0.0184\n0.0327\n0.0285\n0.0301\n0.0202\n0.0541\n0.0339\n0.0473\n0.0259\n\n0.0253\n0.0219\n0.0194\n0.0143\n0.0337\n0.0269\n0.0279\n0.0182\n0.0300\n0.0242\n0.0287\n0.0194\n0.0536\n0.0357\n0.0420\n0.0266\n\n0.0010\n0.0007\nN/A\n0.0003\n0.0016\n0.0008\nN/A\n0.0003\n0.0016\n0.0010\nN/A\n0.0007\n0.0029\n0.0018\nN/A\n0.0010\n\n20.71\n22.86\n21.78\n31.98\n18.25\n20.98\n19.33\n25.14\n19.30\n19.98\n19.82\n28.34\n13.97\n20.15\n16.72\n25.63\n\n22.90\n23.71\n23.21\n33.25\n20.66\n22.31\n23.18\n26.22\n21.04\n20.32\n21.59\n28.93\n13.13\n21.20\n16.90\n25.70\n\n36.59\n40.22\nN/A\n45.61\n35.47\n39.62\nN/A\n45.69\n34.88\n38.76\nN/A\n42.91\n28.50\n32.87\nN/A\n42.53\n\n0.823\n0.859\n0.831\n0.981\n0.816\n0.844\n0.820\n0.938\n0.823\n0.840\n0.842\n0.921\n0.712\n0.811\n0.723\n0.883\n\n0.879\n0.890\n0.872\n0.992\n0.864\n0.881\n0.845\n0.981\n0.869\n0.879\n0.850\n0.982\n0.763\n0.824\n0.782\n0.897\n\n0.895\n0.904\nN/A\n0.998\n0.880\n0.892\nN/A\n0.998\n0.895\n0.907\nN/A\n0.996\n0.725\n0.843\nN/A\n0.895\n\nTable 1. Quantitative comparisons of healthy anatomy reconstruction performance between UNA and state-of-the-art contrastagnostic T1w synthesis models, using images with simulated\npathology. PEPSI [39] is designed to emphasize the abnormalities, therefore we do not report its scores within diseased regions.\n(F: full brain; H: healthy region; D: diseased region.)\nInput\n\nSynthSR\n\nBrain-ID\n\nPEPSI\n\nUNA\n\nGround Truth\n\nT1w\n(MRI)\n\nT2w\n(MRI)\n\nMetrics. For anatomy reconstruction and synthesis, we\nuse L1 distance, PSNR, and SSIM. For anomaly detection,\nwe assess performance using Dice scores.\n\nFLAIR\n(MRI)\n\nImplementation Details. For fair comparisons, we adopt\nthe same 3D UNet [49] as utilized in the models [26,38,39]\nwe compare with. The training sample images are sized at\n1603 , with a batch size of 4. We use the AdamW optimizer,\nbeginning with a learning rate of 10−4 for the first 300,000\niterations, which is then reduced to 10−5 for the subsequent\n100,000 iterations. The additional attention parameter (λp\nin Eq. (7)) is set to 1 for healthy anatomy reconstruction in\npathological regions. The intra-subject contrastive learning\nweight (λcontrast in Eq. (9)) is set to 2. The training process\ntook approximately 14 days on an NVIDIA A100 GPU.\n\nCT\n\nFigure 3. Qualitative comparisons on healthy anatomy reconstruction, between UNA, and the state-of-the-art modality-agnostic\nT1w synthesis method. Testing images are generated from real\nhealthy subjects encoded with randomly simulated pathology profiles. Pathology regions are circled in red.\n\n5.1. Simulations with Ground Truth Anatomy\n\nCompeting Models. UNA is the first model achieving\nmodality-agnostic healthy anatomy synthesis and reconstruction. We compare UNA with the closest state-of-theart modality-agnostic models for image reconstruction and\nanomaly detection: (i) SynthSR [26], a modality-agnostic\nsuper-resolution model; (ii) Brain-ID [38], a modalityagnostic feature representation and T1w synthesis model;\n(iii) PEPSI [39], a modality-agnostic pathology representation model for T1w and FLAIR MRI synthesis. Note\nthat PEPSI does not synthesize healthy tissue in regions of\npathology; (iv) VAE [6], an unsupervised anomaly detection\nvariational autoencoder model for brain MRI; (v) LDM [21],\nan out-of-distribution detection model for 3D medical images using latent diffusion.\nAppendices D and E provide further details on metrics,\ndatasets, pre-processing, and implementations.\n\nTo better evaluate UNA’s performance in healthy anatomy\nreconstruction, we first conduct experiments using 1,000\nhealthy images encoded with simulated pathologies, for\nwhich ground truth segmentations are available for quantitative assessment. To explicitly assess the model performance in pathology regions, we report reconstruction scores\nnot only for the entire brain but also separately for areas that\nare originally healthy and diseased in the input image.\nTab. 1 reports the quantitative comparison results between UNA and the state-of-the-art modality-agnostic synthesis models. UNA yields the best performance across all\nmetrics, modalities, and regions of interest – including the\nfull brain, healthy anatomy, and pathological regions. Remarkably, UNA outperforms competing models by a large\nmargin in anatomy reconstruction within diseased tissue.\nVisualization results for each test modality are provided in\n6\n\n\fInput\n\nSynthSR\n\nBrain-ID\n\nPEPSI\n\nUNA\n\nLesion\n\nModality\n\nFLAIR\n(ISLES)\n\nFLAIR\n(ISLES)\n\nT1w\n(ATLAS)\n\nT1w\nMRI\n\nT1w\n(ATLAS)\n✗Failed\n\nFigure 4. Qualitative comparisons on healthy anatomy reconstruction between UNA and state-of-the-art modality-agnostic synthesis\nmodels. Testing images are from real stroke datasets (ISLES [22]\nand ATLAS [36]), where the stroke lesion annotations are provided, yet the ground truth healthy anatomy is unavailable. The\nlast row shows a failure case of UNA, where it “over-corrects” the\ndiseased anatomy. Pathology regions are circled in red.\n\nDataset\n(Train/Test)\n\nMethod\n\nADNI [28]\n(1841/204)\n\nSynthSR [26]\nBrain-ID [38]\nPEPSI [39]\nUNA\n\nReconstruction (on Healthy)\nL1 (↓) PSNR (↑) SSIM (↑)\n0.014\n26.78\n0.984\n0.012\n33.82\n0.993\n0.014\n31.25\n0.989\n0.012\n32.96\n0.995\n\nHCP [15]\n(808/87)\n\nSynthSR [26]\nBrain-ID [38]\nPEPSI [39]\nUNA\n\n0.033\n0.020\n0.023\n0.017\n\n22.13\n27.47\n28.20\n31.61\n\n0.854\n0.957\n0.971\n0.986\n\nADNI3 [61]\n(298/33)\n\nSynthSR [26]\nBrain-ID [38]\nPEPSI [39]\nUNA\n\n0.023\n0.021\n0.020\n0.019\n\n23.60\n29.89\n26.67\n30.01\n\n0.928\n0.966\n0.935\n0.975\n\nADHD200 [9]\n(865/96)\n\nSynthSR [26]\nBrain-ID [38]\nPEPSI [39]\nUNA\n\n0.035\n0.011\n0.015\n0.012\n\n21.67\n32.48\n29.87\n30.12\n\n0.882\n0.996\n0.976\n0.980\n\nAIBL [18]\n(601/67)\n\nSynthSR [26]\nBrain-ID [38]\nPEPSI [39]\nUNA\n\n0.026\n0.009\n0.012\n0.010\n\n22.95\n33.73\n29.86\n32.89\n\n0.916\n0.972\n0.950\n0.964\n\nSynthSR [26]\nBrain-ID [38]\nPEPSI [39]\nUNA\nSynthSR [26]\nBrain-ID [38]\nPEPSI [39]\nUNA\n\n0.030\n0.027\n0.025\n0.020\n0.034\n0.016\n0.018\n0.016\n\n23.50\n26.09\n26.73\n29.10\n21.46\n28.10\n26.45\n28.62\n\n0.881\n0.892\n0.905\n0.974\n0.833\n0.934\n0.915\n0.949\n\nSynthSR [26]\nBrain-ID [38]\nPEPSI [39]\nUNA\nSynthSR [26]\nBrain-ID [38]\nPEPSI [39]\nUNA\n\n0.033\n0.022\n0.024\n0.021\n0.026\n0.017\n0.023\n0.015\n\n20.08\n23.99\n22.93\n24.76\n22.77\n26.44\n25.62\n27.43\n\n0.805\n0.861\n0.859\n0.892\n0.919\n0.927\n0.929\n0.965\n\nSynthSR [26]\nBrain-ID [38]\nPEPSI [39]\nUNA\nSynthSR [26]\nBrain-ID [38]\nPEPSI [39]\nUNA\n\n0.029\n0.019\n0.021\n0.017\n0.041\n0.023\n0.027\n0.022\n\n21.77\n27.25\n25.43\n27.76\n20.93\n25.49\n22.98\n25.68\n\n0.902\n0.936\n0.914\n0.967\n0.758\n0.891\n0.842\n0.897\n\n* Stroke *\nATLAS [36]\n(590/65)\nHCP [15]\n(808/87)\n\nFig. 3. UNA demonstrates consistent performance across\nmodality and resolution. Notably, other models either fail\nto capture any anatomy (SynthSR [26]) or generate unrealistic patterns around the pathology (Brain-ID [38]\nand PEPSI [39]) when given a noisy CT scan (4th row\nin Fig. 3), whereas UNA successfully reconstructs plausible\nhealthy anatomy.\n\nT2w\nMRI\nAIBL [18]\n(272/30)\n\nADNI3 [61]\n(298/33)\nFLAIR\nMRI\n\n5.2. Real-World Datasets with Potential Pathology\n\nAIBL [18]\n(302/34)\n\nWe further evaluate UNA’s performance on all the real\ndatasets as introduced in Sec. 5, among which ATLAS [36]\nand ISLES [22] contain stroke patients. Tab. 2 reports\nthe reconstruction scores over all datasets and their available modalities: (i) For anatomy reconstruction of originally healthy subjects, UNA achieves the highest scores\nacross most datasets, with the remaining scores on par with\nBrain-ID [38], which is specifically designed for healthy\nanatomy; (ii) On the ATLAS stroke dataset, UNA outperforms competing models by a larger margin (≈ 10%).\nAs shown in Fig. 4, other models tend to generate unrealistic patterns within and around abnormalities, whereas\nUNA’s reconstructions are notably more visually coherent.\nAdditionally, we present a failure case (4th row in Fig. 4),\nwhere we observe that UNA tends to “over-distinguish” the\nreconstructed healthy anatomy from the diseased regions,\nparticularly in challenging scenarios where the pathology\npattern completely occludes the underlying anatomy.\n\nCT\n\nOASIS3 [30]\n(795/88)\n\nTable 2. Quantitative comparisons of healthy anatomy reconstruction performance between UNA and state-of-the-art, contrastagnostic T1w synthesis models, evaluated on real images. Since\nwe do not have ground truth anatomy for the stroke datasets, we\nonly report the reconstruction performance within healthy regions.\n(ISLES [22] stroke dataset does not provide T1w MRI scans,\ntherefore we only show qualitative results on ISLES in Fig. 4.)\n\nrectly use the reconstructed healthy anatomy from UNA to\ndetect abnormalities. Specifically, we follow the standard\nevaluation pipeline for unsupervised anomaly detection in\nmedical images [6,21] and compute UNA’s anomaly estimation maps by calculating the voxel-wise absolute differences\nbetween the diseased input and the reconstructed output.\nThe anomaly detection Dice scores are then obtained by\ncomparing the ground truth pathology segmentations with\nthe computed anomaly estimation maps, scaled to the range\n[0, 1] such that they represent the normalized abnormality.\n\n5.3. Direct Application: Anomaly Detection\nUNA’s ability to synthesize diseased-to-healthy anatomy\nnaturally equips it with the potential for application to\nanomaly detection. To demonstrate its effectiveness, we di7\n\n\ftion, i.e., training exclusively with real images with pathology; (b) Training with fluid-driven anomaly randomization,\nbut initializing the anomaly profiles with random noise;\n(c) Training without contralateral-paired input, i.e., using\nonly a single image without its contralateral counterpart;\n(d) Training without the intra-subject self-contrastive loss.\nAs shown in Fig. 6 and Tab. 4, training without fluiddriven anomaly randomization (UNA-(a)) results in the\nlargest performance drop, showing only slight improvement\nover Brain-ID [38] (reported in Fig. 3), which does not\ntrain on diseased inputs at all. Introducing fluid-driven\nanomaly randomization improves overall performance, but\nperformance gaps remain evident when compared to the\nproposed UNA when no real pathology profiles are used for\ninitialization (UNA-(b)). Leveraging subject-specific contralateral information (UNA-(c), UNA-(d)) further enhances\nreconstruction results, particularly within diseased regions.\n\nInput\n\nUNA\nOutput\n\nEstimated\nAnomaly\n\nFigure 5. Visualizations of directly applying UNA’s healthy\nanatomy reconstruction for anomaly detection. The estimated\nanomaly is computed as the absolute difference between diseased\nT1w MRI scans and UNA’s reconstructed healthy anatomy.\nImage Source\n\nDataset\n\nSynthSR [26]\n\nBrain-ID [38]\n\nVAE [6]\n\nLDM [21]\n\nUNA\n\nHealthy T1w\nwith\nSimulated\nPathology\n\nADNI [28]\nHCP [15]\nADHD200 [9]\nADNI3 [61]\nAIBL [18]\n\n0.27\n0.28\n0.23\n0.27\n0.25\n\n0.26\n0.28\n0.25\n0.28\n0.24\n\n0.18\n0.13\n0.15\n0.17\n0.12\n\n0.23\n0.21\n0.23\n0.24\n0.20\n\n0.36\n0.33\n0.34\n0.37\n0.32\n\nStroke T1w\n\nATLAS [36]\n\n0.24\n\n0.24\n\n0.11\n\n0.22\n\n0.31\n\n6. Limitations and Future Work\nHandling Extreme Cases. As discussed in Sec. 5.2, UNA\nappears to “over-correct” its reconstructed healthy anatomy,\nespecially in extreme cases where the pathology in the input\nimage heavily occludes the underlying anatomy. This issue\nwill be further investigated in our future work.\n\nTable 3. Dice scores (↑) of downstream anomaly detection performance based on the voxel-wise absolute differences between\nthe diseased input and the reconstruction. The testing images include healthy T1w MRI scans with simulated pathology, and real\nT1w MRI images from stroke patients in ATLAS [36] dataset.\nInput\n\nUNA-(a)\n\nUNA-(b)\n\nUNA-(c)\n\nUNA-(d)\n\nUNA\n\nBroader Applications.\nBy bridging the gap between\nhealthy and diseased anatomy, UNA opens up a wide range\nof applications beyond anomaly detection. For example,\nit could enable modality-agnostic image registration in the\npresence of pathology, as well as stroke treatment outcome\nprediction based on UNA’s reconstructed healthy anatomy.\nWe plan to further explore these applications of UNA.\n\nGround Truth\n\nFigure 6. Ablations on UNA’s healthy anatomy reconstruction.\nL1 (↓)\n\nMethod\n\nUNA-(a)\nUNA-(b)\nUNA-(c)\nUNA-(d)\nUNA\n\nPSNR (↑)\n\nSSIM (↑)\n\nF\n\nH\n\nD\n\nF\n\nH\n\nD\n\nF\n\nH\n\nD\n\n0.0229\n0.0195\n0.0155\n0.0195\n0.0147\n\n0.0193\n0.0182\n0.0163\n0.0182\n0.0143\n\n0.0008\n0.0005\n0.0004\n0.0005\n0.0003\n\n23.71\n25.79\n30.00\n27.13\n31.98\n\n25.09\n27.30\n31.92\n28.04\n33.25\n\n38.92\n42.35\n43.61\n42.97\n45.61\n\n0.859\n0.903\n0.959\n0.931\n0.981\n\n0.890\n0.925\n0.977\n0.950\n0.992\n\n0.904\n0.950\n0.982\n0.969\n0.998\n\n7. Conclusion\nWe introduce UNA, a modality-agnostic model for reconstructing healthy anatomy that works both with healthy subjects and images with varying degrees of pathology. Our\nfluid-driven anomaly randomization approach enables the\ngeneralization of an unlimited number of anomaly profiles\nfrom just a few real pathology segmentations. UNA can\nbe directly applied to real images containing pathologies\nwithout fine-tuning. We demonstrate UNA’s superior performance across eight public datasets, including MR and CT\nimages from healthy subjects and stroke patients. Additionally, we showcase UNA’s direct applicability to anomaly detection tasks. By bridging the gap between different modalities and the underlying anatomy, as well as between healthy\nand diseased images, we believe UNA opens up exciting opportunities for general image analysis in clinical practice,\nparticularly for images with diverse pathologies.\n\nTable 4. Ablation study on UNA. Testing images are real T1w\nMRI encoded with simulated pathology (same as first-row group\nin Tab. 1). (F: full brain; H: healthy region; D: diseased region.)\n\nThe same procedure is applied to other competing models.\nAs shown in Fig. 5, UNA’s difference maps clearly identify anomalies with varying shapes and sizes. Quantitative\ncomparisons are provided in Tab. 3, where UNA: (i) outperforms other modality-agnostic synthesis models, and the\nstate-of-the-art anomaly detection models; and (ii) demonstrates consistent performance across various datasets.\n\n5.4. Ablation Study\nTo assess the contributions of UNA’s individual components, we perform an ablation study with several variants: (a) Training without fluid-driven anomaly randomiza-\n\nReferences\n[1] MONAI model zoo. https://monai.io/model-zoo.html. 2\n\n8\n\n\f[16] Bruce Fischl, David H Salat, Evelina Busa, Marilyn Albert,\nMegan Dieterich, Christian Haselgrove, et al. Whole brain\nsegmentation: automated labeling of neuroanatomical structures in the human brain. Neuron, 2002. 5, 15\n[17] Bruce R. Fischl, David H. Salat, Evelina Busa, Marilyn S.\nAlbert, Megan Dieterich, Christian Haselgrove, et al. Whole\nbrain segmentation automated labeling of neuroanatomical\nstructures in the human brain. Neuron, 2002. 2\n[18] Christopher Fowler, Stephanie R. Rainey-Smith, Sabine M.\nBird, Julia Bomke, Pierrick T. Bourgeat, et al. Fifteen\nyears of the australian imaging, biomarkers and lifestyle\n(AIBL) study: Progress and observations from 2,359 older\nadults spanning the spectrum from cognitive normality to\nalzheimer’s disease. Journal of Alzheimer’s Disease Reports,\n2021. 5, 6, 7, 8, 14, 15\n[19] Erik Franz, Barbara Solenthaler, and Nils Thuerey. Learning\nto estimate single-view volumetric flow motions without 3d\nsupervision. In ICLR, 2023. 3\n[20] Sigal Gottlieb and Lee-Ad J. Gottlieb. Strong stability preserving properties of Runge-Kutta time discretization methods for linear constant coefficient operators. Journal of Scientific Computing, 2003. 4\n[21] Mark S Graham, Walter Hugo Lopez Pinaya, Paul Wright,\nPetru-Daniel Tudosiu, Yee H Mah, James T Teo, et al. Unsupervised 3d out-of-distribution detection with latent diffusion models. In MICCAI, 2023. 6, 7, 8\n[22] Moritz R Hernandez Petzsche, Ezequiel de la Rosa, Uta\nHanning, Roland Wiest, Waldo Valenzuela, Mauricio Reyes,\net al. ISLES 2022: A multi-center magnetic resonance imaging stroke lesion segmentation dataset. Scientific data, 2022.\n4, 6, 7, 14\n[23] Malte Hoffmann, Benjamin Billot, Douglas N. Greve,\nJuan Eugenio Iglesias, Bruce R. Fischl, and Adrian V. Dalca.\nSynthMorph: Learning contrast-invariant registration without acquired images. IEEE Transactions on Medical Imaging, 2020. 2\n[24] Andrew Hoopes, Jocelyn S. Mora, Adrian V. Dalca, Bruce R.\nFischl, and Malte Hoffmann. SynthStrip: skull-stripping for\nany brain image. NeuroImage, 2022. 2, 14\n[25] Shah Hussain, Iqra Mubeen, Niamat Ullah, Syed Shahab\nUd Din Shah, Bakhtawar Abduljalil Khan, Muhammad Zahoor, et al. Modern diagnostic imaging technique applications and risk factors in the medical field: a review. BioMed\nresearch international, 2022. 1\n[26] Juan Eugenio Iglesias, Benjamin Billot, Yael Balbastre,\nColin G. Magdamo, Steve Arnold, Sudeshna Das, et al.\nSynthsr: A public AI tool to turn heterogeneous clinical\nbrain scans into high-resolution T1-weighted images for 3D\nmorphometry. Science Advances, 2023. 2, 4, 6, 7, 8, 15, 16\n[27] Juan Eugenio Iglesias, Benjamin Billot, Yael Balbastre,\nAzadeh Tabari, John Conklin, Daniel C. Alexander, et al.\nJoint super-resolution and synthesis of 1 mm isotropic MPRAGE volumes from clinical MRI exams with scans of different orientation, resolution and contrast. NeuroImage,\n2020. 2, 4\n[28] Clifford R. Jack, Matt A. Bernstein, Nick C Fox, Paul M.\nThompson, Gene E. Alexander, Danielle J. Harvey, et al. The\n\n[2] Chérif Amrouche, Christine Bernardi, Monique Dauge, and\nVivette Girault. Vector potentials in three-dimensional nonsmooth domains. Mathematical Methods in the Applied Sciences, 1998.\n[3] Chérif Amrouche and Nour El Houda Seloula. Lp-theory for\nvector potentials and sobolev’s inequalities for vector fields:\nApplication to the Stokes equations with pressure boundary\nconditions. Mathematical Models and Methods in Applied\nSciences, 2013.\n[4] Brian B Avants, Nick Tustison, Gang Song, et al. Advanced\nnormalization tools (ANTs). Insight j, 2009. 5\n[5] Guha Balakrishnan, Amy Zhao, Mert Rory Sabuncu, John V.\nGuttag, and Adrian V. Dalca. VoxelMorph: A learning\nframework for deformable medical image registration. IEEE\nTransactions on Medical Imaging, 2018. 1\n[6] Christoph Baur, Stefan Denner, Benedikt Wiestler, Nassir\nNavab, and Shadi Albarqouni. Autoencoders for unsupervised anomaly segmentation in brain MR images: a comparative study. Medical Image Analysis, 2021. 6, 7, 8\n[7] Benjamin Billot, Douglas N. Greve, Oula Puonti, Axel\nThielscher, Koen Van Leemput, Bruce R. Fischl, et al. SynthSeg: Segmentation of brain MRI scans of any contrast and\nresolution without retraining. Medical Image Analysis, 2021.\n2, 4, 15\n[8] Benjamin Billot, Colin Magdamo, You Cheng, Steven E\nArnold, Sudeshna Das, and Juan Eugenio Iglesias. Robust\nmachine learning segmentation for large-scale analysis of\nheterogeneous clinical brain MRI datasets. Proceedings of\nthe National Academy of Sciences, 2023. 2\n[9] Matthew R. G. Brown, Gagan Preet Singh Sidhu, Russell\nGreiner, Nasimeh Asgarian, Meysam Bastani, Peter H. Silverstone, et al. ADHD-200 global competition: diagnosing ADHD using personal characteristic data can outperform\nresting state fMRI measurements. Frontiers in Systems Neuroscience, 2012. 5, 6, 7, 8, 14, 15\n[10] Emmanuel de Bézenac, Arthur Pajot, and Patrick Gallinari.\nDeep learning for physical processes: Incorporating prior\nscientific knowledge. In ICLR, 2018. 2, 3\n[11] Bob D. de Vos, Floris F. Berendsen, Max A. Viergever, Hessam Sokooti, Marius Staring, and Ivana Išgum. A deep learning framework for unsupervised affine and deformable image\nregistration. Medical Image Analysis, 2019. 1\n[12] Neel Dey, Benjamin Billot, Hallee E Wong, Clinton J Wang,\nMengwei Ren, P Ellen Grant, et al. Learning generalpurpose biomedical volume representations using randomized synthesis. arXiv, abs/2411.02372, 2024. 2\n[13] Zhipeng Ding, Xu Han, Peirong Liu, and Marc Niethammer. Local temperature scaling for probability calibration.\nIn ICCV, 2021. 1\n[14] Francois Dubois. Discrete vector potential representation of\na divergence-free vector field in three-dimensional domains:\nNumerical analysis of a model problem. SIAM Journal on\nNumerical Analysis, 1990.\n[15] David C. Van Essen, Kâmil Uğurbil, Edward J. Auerbach, Deanna M. Barch, Timothy Edward John Behrens,\nRichard D. Bucholz, et al. The human connectome project:\nA data acquisition perspective. NeuroImage, 2012. 5, 6, 7,\n8, 14, 15\n\n9\n\n\f[43] Fausto Milletarı̀, Nassir Navab, and Seyed-Ahmad Ahmadi.\nV-Net: Fully convolutional neural networks for volumetric\nmedical image segmentation. 3DV, 2016. 1\n[44] Marc Modat, Gerard R Ridgway, Zeike A Taylor, Manja\nLehmann, Josephine Barnes, David J Hawkes, et al. Fast\nfree-form deformation using graphics processing units.\nComputer methods and programs in biomedicine, 2010. 4, 5\n[45] Marc Modat, Gerard R. Ridgway, Zeike A. Taylor, Manja\nLehmann, Josephine Barnes, David John Hawkes, et al.\nFast free-form deformation using graphics processing units.\nComputer Methods and Programs in Biomedicine, 2010. 14,\n15\n[46] Michael Moor, Oishi Banerjee, Zahra F H Abad, Harlan M.\nKrumholz, Jure Leskovec, Eric J. Topol, and Pranav Rajpurkar. Foundation models for generalist medical artificial\nintelligence. Nature, 2023. 2\n[47] Ken Perlin. Improving noise. In PACMCGIT, 2002. 12\n[48] Oula Puonti, Juan Eugenio Iglesias, and Koenraad Van\nLeemput. Fast and sequence-adaptive whole-brain segmentation using parametric bayesian modeling. NeuroImage,\n2016. 2\n[49] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net:\nConvolutional networks for biomedical image segmentation.\nIn MICCAI, 2015. 1, 6, 16\n[50] Daniel Rueckert, Luke I Sonoda, Carmel Hayes, Derek LG\nHill, Martin O Leach, and David J Hawkes. Nonrigid registration using free-form deformations: application to breast\nMR images. IEEE Transactions on Medical Imaging, 1999.\n4, 5\n[51] Zhengyang Shen, Jean Feydy, Peirong Liu, Ariel H Curiale,\nRuben San Jose Estepar, Raul San Jose Estepar, and Marc\nNiethammer. Accurate point cloud registration with robust\noptimal transport. NeurIPS, 2021. 2\n[52] Karan Singhal, Shekoofeh Azizi, Tao Tu, Said Mahdavi, Jason Wei, Hyung Won Chung, et al. Large language models\nencode clinical knowledge. Nature, 2022. 2\n[53] Deqing Sun, Xiaodong Yang, Ming-Yu Liu, and Jan Kautz.\nPWC-net: CNNs for optical flow using pyramid, warping,\nand cost volume. In CVPR, 2018. 2\n[54] Ryutaro Tanno, Daniel E. Worrall, Enrico Kaden, and\nDaniel C. Alexander. Uncertainty modelling in deep learning\nfor safer neuroimage enhancement: Demonstration in diffusion MRI. NeuroImage, 2020. 1\n[55] Zachary Teed and Jia Deng. Raft: Recurrent all-pairs field\ntransforms for optical flow. In ECCV, 2020. 2\n[56] Lin Tian, Connor Puett, Peirong Liu, Zhengyang Shen,\nStephen R Aylward, Yueh Z Lee, and Marc Niethammer.\nFluid registration between lung CT and stationary chest tomosynthesis images. In MICCAI, 2020. 2\n[57] Qiyuan Tian, Berkin Bilgiç, Qiuyun Fan, Chanon Ngamsombat, Natalia Zaretskaya, Nina E. Fultz, et al. Improving\nin vivo human cerebral cortical surface reconstruction using\ndata-driven super-resolution. Cerebral Cortex, 2020. 1\n[58] Tao Tu, Shekoofeh Azizi, Danny Driess, Mike Schaekermann, Mohamed Amin, Pi-Chuan Chang, et al. Towards\ngeneralist biomedical ai. arXiv, abs/2307.14334, 2023. 2\n\nAlzheimer’s disease neuroimaging initiative (ADNI): MRI\nmethods. Journal of Magnetic Resonance Imaging, 2008. 5,\n6, 7, 8, 14, 15\n[29] Konstantinos Kamnitsas, Christian Ledig, Virginia F. J.\nNewcombe, Joanna P. Simpson, Andrew D. Kane, David K.\nMenon, et al. Efficient multi-scale 3D CNN with fully connected CRF for accurate brain lesion segmentation. Medical\nImage Analysis, 2016. 1\n[30] Pamela J. LaMontagne, Sarah J. Keefe, Wallace Lauren,\nChengjie Xiong, Elizabeth A. Grant, Krista L. Moulder,\net al. OASIS-3: Longitudinal neuroimaging, clinical, and\ncognitive dataset for normal aging and alzheimer’s disease.\nAlzheimer’s &amp; Dementia, 2018. 5, 6, 7, 14, 15\n[31] Pablo Laso, Stefano Cerri, Annabel Sorby-Adams, Jennifer\nGuo, Farrah Mateen, Philipp Goebl, et al. Quantifying white\nmatter hyperintensity and brain volumes in heterogeneous\nclinical and low-field portable MRI. In ISBI, 2024. 4\n[32] Koenraad Van Leemput, Frederik Maes, Dirk Vandermeulen,\nand Paul Suetens. A unifying framework for partial volume\nsegmentation of brain MR images. IEEE Transactions on\nMedical Imaging, 2003. 2\n[33] Randall J. LeVeque. Finite Volume Methods for Hyperbolic\nProblems. Cambridge University Press, 2002. 4\n[34] Mario Lezcano-Casado. Trivializations for gradient-based\noptimization on manifolds. In NeurIPS, 2019.\n[35] Mario Lezcano-Casado and David Martı́nez-Rubio. Cheap\northogonal constraints in neural networks: A simple\nparametrization of the orthogonal and unitary group. In\nICML, 2019.\n[36] Sook-Lei Liew, Julia M Anglin, Nick W Banks, Matt\nSondag, Kaori L Ito, Hosung Kim, et al. A large, open source\ndataset of stroke anatomical brain images and manual lesion\nsegmentations. Scientific data, 2018. 4, 6, 7, 8, 14\n[37] Peirong Liu, Yueh Z. Lee, Stephen R. Aylward, and Marc\nNiethammer. Perfusion imaging: An advection diffusion approach. IEEE Transactions on Medical Imaging, 2021. 2,\n3\n[38] Peirong Liu, Oula Puonti, Xiaoling Hu, Daniel C. Alexander,\nand Juan E. Iglesias. Brain-ID: Learning contrast-agnostic\nanatomical representations for brain imaging. In ECCV,\n2024. 2, 4, 6, 7, 8, 15, 16\n[39] Peirong Liu, Oula Puonti, Annabel Sorby-Adams, William T\nKimberly, and Juan E Iglesias. PEPSI: Pathology-enhanced\npulse-sequence-invariant representations for brain MRI. In\nMICCAI, 2024. 2, 4, 6, 7, 16\n[40] Peirong Liu, Lin Tian, Yubo Zhang, Stephen Aylward, Yueh\nLee, and Marc Niethammer. Discovering hidden physics behind transport dynamics. In CVPR, 2021. 3, 4\n[41] Filippo Maria Denaro. On the application of the HelmholtzHodge decomposition in projection methods for incompressible flows with general boundary conditions. International\nJournal for Numerical Methods in Fluids, 2003.\n[42] Bjoern H Menze, Andras Jakab, Stefan Bauer, Jayashree\nKalpathy-Cramer, Keyvan Farahani, Justin Kirby, et al.\nThe multimodal brain tumor image segmentation benchmark\n(BRATS). IEEE Transactions on Medical Imaging, 2014. 3\n\n10\n\n\f[59] Guoan Wang, Jin Ye, Junlong Cheng, Tianbin Li, Zhaolin\nChen, Jianfei Cai, et al. SAM-Med3D-MoE: Towards a nonforgetting segment anything model via mixture of experts for\n3D medical image segmentation. In MICCAI, 2024. 2\n[60] Mei Wang and Weihong Deng. Deep visual domain adaptation: A survey. Neurocomputing, 2018. 1\n[61] Michael W. Weiner, Dallas P Veitch, Paul S. Aisen, Laurel A Beckett, Nigel J. Cairns, Robert C. Green, et al. The\nAlzheimer’s disease neuroimaging initiative 3: Continued\ninnovation for clinical trial improvement. Alzheimer’s &amp; Dementia, 2017. 5, 6, 7, 8, 14, 15\n[62] Lanxiang Xing, Haixu Wu, Yuezhou Ma, Jianmin Wang, and\nMingsheng Long. HelmFluid: Learning helmholtz dynamics\nfor interpretable fluid prediction. In ICML, 2024. 3\n[63] Xiao Yang, Roland Kwitt, and Marc Niethammer. Quicksilver: Fast predictive image registration – a deep learning\napproach. NeuroImage, 2017. 1\n[64] Xiao Yang, Roland Kwitt, Martin Styner, and Marc Niethammer. Quicksilver: Fast predictive image registration–a deep\nlearning approach. NeuroImage, 2017. 2\n[65] Yukun Zhou, Mark A Chia, Siegfried Karl Wagner, Murat S.\nAyhan, Dominic J Williamson, Robbert R. Struyven, et al.\nA foundation model for generalizable disease detection from\nretinal images. Nature, 2023. 2\n\n11\n\n\fUnraveling Normal Anatomy via Fluid-Driven Anomaly Randomization\n(Appendix)\nThis Appendix provides additional context regarding:\nA: Computing Derivatives of Perlin Noise;\nB: Datasets and Metrics;\nC: Implementation Details.\n\nA. Computing Derivatives of Perlin Noise\nPerlin noise is a gradient noise function invented by Ken Perlin [47]. Unlike traditional random noise, which produces entirely\nchaotic, discontinuous patterns, Perlin noise is smooth and continuous, it generates a field of smoothly varying values that\nappear random but maintain a continuous flow, without abrupt jumps or visible seams. These properties make Perlin noise\nideal for generating natural-looking patterns that have rich textures. In UNA, we resort to Perlin noise for generating random\nshape profiles for anomaly probability initialization as well as the incompressible flow and non-negative diffusion fields in\nSec. 3.\n\nA.1. Perlin Noise and Random Anomaly Initialization\nHere, we present the implementation details of our Perlin noise generation and thresholding for random anomaly shape\nsynthesis. As shown in the code below, the generation of the random anomaly probability map can be summarized into six\nsteps:\n1. Generate a grid of random gradients at lattice points (Line 25-30).\n2. Compute the relative position of the point inside the grid cell (Line 31-44).\n3. Calculate the dot product of the gradients and the relative position vectors (45-52).\n4. Apply the fade function to smooth the interpolation (Line 54-61).\n5. Interpolate between dot products to get a smooth value (Line 62-69).\n6. Threshold to get a random shape of anomaly profile (Line 71-78).\n1\n2\n\nimport os, time\nimport numpy as np\n\n3\n4\n5\n\ndef interpolant(t):\nreturn t*t*t*(t*(t*6 - 15) + 10)\n\n6\n\ndef generate_perlin_noise_3d(shape, res, tileable=(False, False, False), interpolant=interpolant,\npercentile=None,):\n8\n\"\"\"Generate a 3D numpy array of perlin noise.\n7\n\n9\n10\n11\n12\n\n13\n\n14\n15\n\nArgs:\nshape: The shape of the generated array (tuple of three ints). This must be a multiple of res.\nres: The number of periods of noise to generate along each axis (tuple of three ints). Note\nshape must be a multiple of res.\ntileable: If the noise should be tileable along each axis (tuple of three bools). Defaults to (\nFalse, False, False).\ninterpolant: The interpolation function, defaults to t*t*t*(t*(t*6 - 15) + 10).\npercentile: The percentile for random shape thresholding.\n\n16\n17\n18\n19\n20\n21\n22\n23\n\nReturns:\nA numpy array of shape with the generated noise.\n(Optional) A numpy array of thresholded noise given an input percentile.\n\"\"\"\nseed = int(time.time())\nos.environ[’PYTHONHASHSEED’] = str(seed)\nnp.random.seed(seed)\n\n24\n25\n26\n27\n28\n\n# Initialize the grid\ndelta = (res[0] / shape[0], res[1] / shape[1], res[2] / shape[2])\nd = (shape[0] // res[0], shape[1] // res[1], shape[2] // res[2])\ngrid = np.mgrid[0:res[0]:delta[0],0:res[1]:delta[1],0:res[2]:delta[2]]\n\n12\n\n\f29\n30\n31\n32\n33\n34\n35\n36\n37\n38\n39\n40\n41\n42\n43\n44\n45\n46\n47\n48\n49\n50\n51\n52\n53\n54\n55\n56\n57\n58\n59\n60\n61\n62\n63\n64\n65\n66\n67\n68\n69\n\ngrid = np.mgrid[0:res[0]:delta[0],0:res[1]:delta[1],0:res[2]:delta[2]]\ngrid = grid.transpose(1, 2, 3, 0) % 1\n# Gradients\ntheta = 2*np.pi*np.random.rand(res[0] + 1, res[1] + 1, res[2] + 1)\nphi = 2*np.pi*np.random.rand(res[0] + 1, res[1] + 1, res[2] + 1)\ngradients = np.stack(\n(np.sin(phi)*np.cos(theta), np.sin(phi)*np.sin(theta), np.cos(phi)),\naxis=3\n)\nif tileable[0]:\ngradients[-1,:,:] = gradients[0,:,:]\nif tileable[1]:\ngradients[:,-1,:] = gradients[:,0,:]\nif tileable[2]:\ngradients[:,:,-1] = gradients[:,:,0]\ngradients = gradients.repeat(d[0], 0).repeat(d[1], 1).repeat(d[2], 2)\ng000 = gradients[\n:-d[0],\n:-d[1],\n:-d[2]]\ng100 = gradients[d[0]:\n,\n:-d[1],\n:-d[2]]\ng010 = gradients[\n:-d[0],d[1]:\n,\n:-d[2]]\ng110 = gradients[d[0]:\n,d[1]:\n,\n:-d[2]]\ng001 = gradients[\n:-d[0],\n:-d[1],d[2]:\n]\ng101 = gradients[d[0]:\n,\n:-d[1],d[2]:\n]\ng011 = gradients[\n:-d[0],d[1]:\n,d[2]:\n]\ng111 = gradients[d[0]:\n,d[1]:\n,d[2]:\n]\n# Ramps\nn000 = np.sum(np.stack((grid[:,:,:,0] , grid[:,:,:,1] , grid[:,:,:,2] ), axis=3) * g000, 3)\nn100 = np.sum(np.stack((grid[:,:,:,0]-1, grid[:,:,:,1] , grid[:,:,:,2] ), axis=3) * g100, 3)\nn010 = np.sum(np.stack((grid[:,:,:,0] , grid[:,:,:,1]-1, grid[:,:,:,2] ), axis=3) * g010, 3)\nn110 = np.sum(np.stack((grid[:,:,:,0]-1, grid[:,:,:,1]-1, grid[:,:,:,2] ), axis=3) * g110, 3)\nn001 = np.sum(np.stack((grid[:,:,:,0] , grid[:,:,:,1] , grid[:,:,:,2]-1), axis=3) * g001, 3)\nn101 = np.sum(np.stack((grid[:,:,:,0]-1, grid[:,:,:,1] , grid[:,:,:,2]-1), axis=3) * g101, 3)\nn011 = np.sum(np.stack((grid[:,:,:,0] , grid[:,:,:,1]-1, grid[:,:,:,2]-1), axis=3) * g011, 3)\nn111 = np.sum(np.stack((grid[:,:,:,0]-1, grid[:,:,:,1]-1, grid[:,:,:,2]-1), axis=3) * g111, 3)\n# Interpolation\nt = interpolant(grid)\nn00 = n000*(1-t[:,:,:,0]) + t[:,:,:,0]*n100\nn10 = n010*(1-t[:,:,:,0]) + t[:,:,:,0]*n110\nn01 = n001*(1-t[:,:,:,0]) + t[:,:,:,0]*n101\nn11 = n011*(1-t[:,:,:,0]) + t[:,:,:,0]*n111\nn0 = (1-t[:,:,:,1])*n00 + t[:,:,:,1]*n10\nn1 = (1-t[:,:,:,1])*n01 + t[:,:,:,1]*n11\n\n70\n71\n72\n73\n74\n75\n76\n77\n78\n\nnoise = ((1-t[:,:,:,2])*n0 + t[:,:,:,2]*n1)\nif percentile is None:\nreturn noise\nshres = np.percentile(noise, percentile)\nmask = np.zeros_like(noise)\nmask[noise &gt;= shres] = 1.\nnoise *= mask\nreturn noise, mask\n\nA.2. Flow and Diffusion Initialization\nAs discussed in Sec. 3.1, we further utilize Perlin noise for creating the random potentials Ψ for V, and Φ for D. The random\nmap of L initialization, as a scalar field, could be directly obtained from the above function “generate perlin noise 3d”. Here,\nwe show details on the implementation of Ψ initialization, which is a 3-dimensional vector field. As shown in the code below,\nthe generation of the random incompressible flow fields can be summarized into three steps:\n1. Generate three individual Perlin noise maps for the potential (Ψ) construction (Line 6-9).\n2. Reshape the noise map to match the current subject sample’s patch size (Line 11-23).\n3. Surjectively map the random potential to its corresponding incompressible flow space via ?? (Line 25-28).\n1\n\nimport torch\n\n2\n3\n4\n\ndef generate_velocity_3d(shape, perlin_res, V_multiplier, device, save_orig_for_visualize = False):\npad_shape = [ 200, 200, 200 ]\n\n5\n\n13\n\n\f6\n7\n8\n9\n\n# Generate random potentials (back to original shape)\ncurl_a = generate_perlin_noise_3d(pad_shape, perlin_res, tileable=(True, False, False))\ncurl_b = generate_perlin_noise_3d(pad_shape, perlin_res, tileable=(True, False, False))\ncurl_c = generate_perlin_noise_3d(pad_shape, perlin_res, tileable=(True, False, False))\n\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n20\n21\n22\n23\n\n# Back to original shape\ncurl_a = curl_a[(pad_shape[0] - shape[0]) // 2 : (pad_shape[0] - shape[0]) // 2 + shape[0], \\\n(pad_shape[1] - shape[1]) // 2 : (pad_shape[1] - shape[1]) // 2 + shape[1], \\\n(pad_shape[2] - shape[2]) // 2 : (pad_shape[2] - shape[2]) // 2 + shape[2]\n]\ncurl_b = curl_b[(pad_shape[0] - shape[0]) // 2 : (pad_shape[0] - shape[0]) // 2 + shape[0], \\\n(pad_shape[1] - shape[1]) // 2 : (pad_shape[1] - shape[1]) // 2 + shape[1], \\\n(pad_shape[2] - shape[2]) // 2 : (pad_shape[2] - shape[2]) // 2 + shape[2]\n]\ncurl_c = curl_c[(pad_shape[0] - shape[0]) // 2 : (pad_shape[0] - shape[0]) // 2 + shape[0], \\\n(pad_shape[1] - shape[1]) // 2 : (pad_shape[1] - shape[1]) // 2 + shape[1], \\\n(pad_shape[2] - shape[2]) // 2 : (pad_shape[2] - shape[2]) // 2 + shape[2]\n]\n\n24\n25\n26\n27\n28\n\n# Surjective mapping to incompressible flow space\nVx, Vy, Vz = stream_3D(torch.from_numpy(curl_a).to(device),\ntorch.from_numpy(curl_b).to(device),\ntorch.from_numpy(curl_c).to(device))\n\n29\n30\n\nreturn {’Vx’: (Vx * V_multiplier), ’Vy’: (Vy * V_multiplier).to(device), ’Vz’: (Vz * V_multiplier)}\n\nB. Datasets and Metrics\nB.1. Datasets and Preprocessing\nWe test and compare UNA over various datasets including modalities of MR and CT, the MR images further contain T1weighted, T2-weighted, and FLAIR (fluid-attenuated inversion recovery) images.\n• ADNI [28]: we use T1-weighted (2045 cases) MRI scans from the Alzheimer’s Disease Neuroimaging Initiative (ADNI).\nAll scans are acquired at 1 mm isotropic resolution from a wide array of scanners and protocols. The dataset contains aging\nsubjects, some diagnosed with mild cognitive impairment (MCI) or Alzheimer’s Disease (AD). Many subjects present\nstrong atrophy patterns and white matter lesions.\n• HCP [15]: we use T1-weighted (897 cases) and T2-weighted (897 cases) MRI scans of young subjects from the Human\nConnectome Project, acquired at 0.7 mm resolution.\n• ADNI3 [61]: we use T1-weighted (331 cases) and FLAIR (331 cases) MRI scans from ADNI3, which continues the\npreviously funded ADNI1, ADNI-GO, and ADNI2 studies to determine the relationships between the clinical, cognitive,\nimaging, genetic and biochemical biomarker characteristics of the entire spectrum of sporadic late-onset AD.\n• ADHD200 [9]: we use T1-weighted (961 cases) MRI scans from ADH200 Sample, which is a grassroots initiative dedicated\nto the understanding of the neural basis of Attention Deficit Hyperactivity Disorder (ADHD).\n• AIBL [18]: we use T1-weighted (668 cases), T2-weighted (302 cases) and FLAIR (336 cases) MRI scans from The Australian Imaging, Biomarkers and Lifestyle (AIBL) Study, which is a study of cognitive impairment (MCI) and Alzheimer’s\ndisease dementia.\n• OASIS3 [30]: we use CT (885 cases) scans from OASIS3, which is a longitudinal neuroimaging, clinical, and cognitive\ndataset for normal aging and AD. For our experiments, we use CT and T1-weighted MRI pair with the earliest date, from\neach subject.\n• ATLAS [36]: we use T1-weighted (655 cases) MRI scans and the provided gold-standard stroke lesion segmentations, from\nAnatomical Tracings of Lesions After Stroke (ATLAS), which is a study of subacute/chronic stroke.\n• ISLES [22] we use FLAIR (152 cases) MRI scans and the provided gold-standard stroke lesion segmentation, from ISLES\n2022, which is a MICCAI challenge in 2022 for acute/subacute stroke lesion detection and segmentation.\nAmong the above eight datasets, ADNI [28], ADNI3 [61], HCP [15], ADHD200 [9], AIBL [18], OASIS3 [30] contain\nsubjects with healthy anatomy. ATLAS [36], ISLES [22]. ATLAS and ISLES include stroke patients, with gold-standard\nmanual segmentations of stroke lesions provided in both datasets.\nFor all datasets, we skull-strip all the images using SynthStrip [24], and resample them to 1 mm isotropic resolution.\nFor all the modalities other than T1-weighted MRI, we use NiftyReg [45] rigid registration to register all images to their\n14\n\n\fCategory\n\nDeformation\n\nResolution\n\nBias Field\n\nNoises\n\nCorruption Level\n\nParam\naffine-rotationmax\naffine-shearingmax\naffine-scalingmax\nnonlinear-scale µmin\nnonlinear-scale µmax\nnonlinear-scale σmax\nplow-field\npanisotropic\nµmin\nµmax\nσmin\nσmax\nσmin\nσmax\n\nMild\n15\n0.2\n0.2\n0.03\n0.06\n4\n0.1\n0\n0.01\n0.02\n0.01\n0.05\n0.01\n1\n\nMedium\n=\n=\n=\n=\n=\n=\n0.3\n0.1\n0.02\n0.03\n0.05\n0.3\n0.5\n5\n\nSevere\n=\n=\n=\n=\n=\n=\n0.5\n0.25\n0.02\n0.04\n0.1\n0.6\n5\n15\n\nTable B.1. UNA synthetic generator setups: mild, medium, and severe levels. p denotes probability, µ and σ refer to the mean and variance\nof the Gaussian distributions, respectively.\n\nsame-subject T1-weighted MRI counterparts. The brain segmentation label maps are obtained by performing SynthSeg [7]\non the T1-weighted MR images of all the subjects.\nTo ease the computation burden during training, the deformations between gold-standard pathology segmentation maps\nand all healthy training subjects are pre-computed via NiftyReg [45] during data pre-processing. During training, the randomly selected anomaly profiles for UNA’s anomaly randomization initialization are registered to the current training subject\non the fly, using the pre-computed deformation fields.\n\nB.2. Contrast Synthesis and Contralateral-Paired Input\nUNA’s synthetic generator uses brain segmentation labels from FreeSurfer [16], for random-modality generation. In this\nwork, we use the segmentation maps of training subjects from all the healthy datasets (ADNI [28], ADNI3 [61], HCP [15],\nADHD200 [9], AIBL [18], OASIS3 [30]). We follow Brain-ID [38]’s mild-to-severe data corruption strategy for enriching\nthe training sample variations in resolution, orientation, and external artifacts. In Tab. B.1, we list the generator parameters\nfor mild, medium, and severe data corruption levels, respectively. Note that for each level, the setup parameters control the\ncorruption value ranges, since the simulation is randomized, there could still be mildly corrupted samples generated under\nthe “severe” settings. In addition, the random deformation fields are independent of data corruption levels.\nTo ease the burden of computing the deformation between original and hemisphere-flipped images for our contralateralpair input, we preprocess the correspondence from the flipped to the original image for each subject during pre-processing.\nSpecifically, to reduce the effects of the pathological regions for registration, we first use SynthSR [26] to estimate the T1weighted counterpart of both the hemisphere-flipped image and the original image. Then, we use NiftyReg [45] to compute\nthe deformation fields from the hemisphere-flipped image to the original image. During training, the flipped sample is first\nregistered to the domain of the original image using pre-computed deformations, then the contra-lateral paired inputs undergo\nthe same deformation augmentations simultaneously.\n\nB.3. Metrics\nWe resort to various metrics for evaluating individual tasks across multiple aspects:\n• L1: the average L1 distance, it is used for the voxel-wise prediction correctness of anatomy reconstruction.\n• PSNR: the peak signal-to-noise ratio (PSNR) that indicates the fidelity of predictions. It is used in anatomy reconstruction.\n• SSIM: the structural similarity scores between the generated and real images. It is used in anatomy reconstruction evaluation,\n15\n\n\fL1 (↓)\n\nMethod\n\nPSNR (↑)\n\nSSIM (↑)\n\nF\n\nH\n\nD\n\nF\n\nH\n\nD\n\nF\n\nH\n\nD\n\nλp = 0\nλp = 0.5\nUNA (λp = 1)\nλp = 1.5\nλp = 2\n\n0.0165\n0.0150\n0.0147\n0.0149\n0.0152\n\n0.0153\n0.0147\n0.0143\n0.0150\n0.0152\n\n0.0004\n0.0004\n0.0003\n0.0003\n0.0003\n\n28.62\n31.01\n31.98\n30.61\n30.29\n\n29.94\n32.85\n33.25\n31.27\n32.43\n\n42.03\n44.20\n45.61\n45.73\n45.78\n\n0.959\n0.973\n0.981\n0.979\n0.973\n\n0.970\n0.989\n0.992\n0.986\n0.989\n\n0.982\n0.995\n0.998\n0.998\n0.995\n\nλcontrast = 0\nλcontrast = 1\nUNA (λcontrast = 2)\nλcontrast = 3\nλcontrast = 4\n\n0.0195\n0.0158\n0.0147\n0.0150\n0.0154\n\n0.0182\n0.0163\n0.0143\n0.0155\n0.0156\n\n0.0005\n0.0004\n0.0003\n0.0002\n0.0003\n\n27.13\n30.78\n31.98\n31.82\n31.76\n\n28.04\n31.82\n33.25\n32.59\n32.40\n\n42.97\n44.05\n45.61\n45.63\n45.63\n\n0.931\n0.953\n0.981\n0.974\n0.970\n\n0.950\n0.961\n0.992\n0.984\n0.981\n\n0.969\n0.981\n0.998\n0.996\n0.996\n\nTable C.2. Hyperparameter search of UNA. Testing images are real T1w MRI encoded with simulated pathology (same as the first-row\ngroup in Tab. 1). (F: full brain; H: healthy region; D: diseased region.)\n\n• Dice: the similarity score between predicted and ground truth segmentations, and it is used in anomaly detection evaluation.\n\nC. Implementation Details and Additional Experiments\nAs a general learning framework, UNA can use any backbone to extract brain features. For fair comparisons, we adopt the\nsame 3D UNet [49] as utilized in themodels [26, 38, 39] we compare with, with 64 feature channels in the last layer. A linear\nregression layer is added following the feature outputs for anatomy reconstruction.\nUNA is trained on the combination of synthetic and real data, with a probability of 50% and 50%, respectively. The training\nsample images are sized at 1603 , with a batch size of 4. We use the AdamW optimizer, beginning with a learning rate of\n10−4 for the first 300,000 iterations, which is then reduced to 10−5 for the subsequent 100,000 iterations. The entire training\nprocess took approximately 14 days on an NVIDIA A100 GPU.\nThe additional attention parameter (λp in Eq. 7) is set to 1 for healthy anatomy reconstruction in pathological regions. The\nintra-subject contrastive learning weight (λcontrast in Eq. 9) is set to 2. Tab. C.2 provide additional experiments on hyperparameter search of the anomaly attention weight (λp ) and the intra-subject contrastive learning weight (λcontrast ). Specifically,\nwe observe that greater attention to anomalies helps improve the reconstruction of pathology regions, yet it harms the overall\nperformance of originally healthy tissues.\n\n16\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"