"<!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>Topo-R1: Detecting Topological Anomalies via\nVision-Language Models\n\nMeilong Xu1 Qingqiao Hu1 Xiaoling Hu2 Shahira Abousamra3 Xin Yu4\nWeimin Lyu1 Kehan Qi1 Dimitris Samaras1 Chao Chen1\n\narXiv:2603.13054v2 [cs.CV] 12 May 2026\n\n1\n\nStony Brook University 2 Massachusetts General Hospital and Harvard Medical School\n3\nStanford University 4 Penn State University\n\nAbstract\nTopology plays a critical role in tubular structures such as blood vessels, nerve\nfibers, and road networks, where connectivity and loop structure directly govern\ndownstream functional analysis. Vision-Language Models (VLMs) are promising\ncandidates for understanding such structures, given their visual reasoning and\ngrounding capabilities. To probe their topological perception, we systematically\nevaluate leading closed-source and state-of-the-art open-source VLMs on localizing\nand classifying four canonical topological anomalies (broken or spurious connections, missing or extra branches) in tubular-network segmentation masks. We find\nthat they perform nearly at random, indicating that topology-aware perception is\nlargely absent from current general-purpose VLMs. As no existing resource pairs\nsegmentation masks with localized anomaly annotations, we build an automated,\nmulti-domain data-curation pipeline that synthesizes diverse topological perturbations with verifiable Betti-number annotations across graduated difficulty levels,\nyielding the first systematic benchmark with a large-scale training set and held-out\nin-distribution and out-of-distribution test suites. Building on this benchmark, we\nintroduce Topo-R1, centered on a topology-aware composite reward that jointly\nscores localization, classification, and skeleton-level structural fidelity. We use\nsupervised fine-tuning as a cold start to bootstrap schema-compliant outputs, then\noptimize the policy against this reward via Group Relative Policy Optimization\n(GRPO), steering predictions toward topologically meaningful structures rather\nthan superficial pixel overlap. Extensive experiments show that Topo-R1 substantially outperforms general-purpose VLMs and matches or exceeds supervised\nbaselines across in-distribution, out-of-distribution, and real-segmentation-output\nprotocols, establishing a strong foundation for VLM-based topological understanding of structured visual data.\n\n1\n\nIntroduction\n\nTubular structures, such as blood vessels, nerve fibers, and road networks, underlie biological systems\nand human infrastructure [60, 27, 76, 34, 52]. While morphological attributes such as thickness and\nbranching density contribute to the analysis of these structures, topology plays a uniquely critical\nrole: connectivity and loop structure directly govern blood flow, neural signaling, and route planning.\nA single missing pixel can sever a vessel and invalidate a hemodynamic simulation; a spurious\nbridge between two road segments can corrupt an entire navigation graph. A model that can perceive\nsuch topological patterns therefore unlocks a broad range of downstream applications, from quality\nassurance of existing segmentation pipelines to self-training and active learning across heterogeneous\nimaging modalities.\nEmail: Meilong Xu (meixu@cs.stonybrook.edu).\nPreprint.\n\n\fFigure 1: Intuition of the framework. (a) A segmentation mask can achieve a high Dice score (0.91)\nyet contain critical topological anomalies, such as broken or spurious connections, that are visible only\nupon close structural inspection. (b) State-of-the-art VLMs, including GPT-5.2 and Gemini-2.5-Flash,\nfail to detect these topological anomalies (near-zero Detection F1@0.5). (c) Topo-R1 successfully\ndetects and classifies the topological anomaly with structured, typed bounding-box outputs.\n\nYet topology-aware perception remains a long-standing open challenge. Existing topology-preserving\nmethods [27, 76, 80, 13, 26] fundamentally rely on supervised training with pixel-level ground-truth\nannotations, and even recent semi-supervised extensions [95, 94] still require a labeled subset within\nthe same domain. Producing such annotations requires specialized domain expertise and is extremely\ntime-consuming, and the large domain gap across application areas (e.g., retinal vasculature, road\nnetworks, neural circuits) means that annotations from one domain rarely transfer to another. This\nraises the question of whether a more general model can directly learn topological patterns of tubular\nstructures, without being tied to a single domain or relying on dense pixel-level supervision.\n\nPer-Sample F1@0.5 (%)\n\nVision-Language Models (VLMs) such as GPT-4o [30],\nGemini [23], LLaVA [49, 48], Qwen-VL [3, 4, 89, 84],\nTopo-R1\n(Ours)\nInternVL [11], and Molmo [17] are powerful candidates\n60\nTopology-aware RL leads\nto\nlarge\ngains\non\nboth\nfor this challenge, given their strong capabilities across\ndetection and classification\n50\nvisual question answering, grounding, and spatial reasoning [40, 103, 59]. To probe whether they already pos40\nSFT\nsess topological pattern understanding, we cast topologySFT teaches the\n30\nmodel output format\naware perception as the task of localizing and classifyand basic localization\n20\ning topological anomalies, defined as localized regions\nGemini-2.5-Flash\nwhere the topology of a predicted segmentation mask is\n10\nGPT-5.2\ninconsistent with the underlying tubular-network topol0\nBase Model\nogy depicted by the input image, with the image itself\n0 5 10 15 20 25 30 35 40 45 50 55\nserving as the contextual reference (formal definition\nDetection F1@0.5 (%)\nin Section 3.2). As shown in Fig. 1, our systematic\nevaluation reveals that both leading closed-source and Figure 2: The performance of state-of-thestate-of-the-art open-source VLMs perform almost at art VLMs and our Topo-R1 on the topolograndom on this probe: even with carefully designed ical anomaly detection task.\nprompts and in-context examples, they consistently fail\nto identify localized yet important connectivity changes such as a few missing pixels that sever\na vessel or a thin bridge that wrongly merges two road segments, indicating that topology-aware\nperception is largely absent from current general-purpose VLMs.\nThis gap stems from limitations in both training data and the inherent structure of the problem.\nFirst, public-domain VLMs are typically pretrained on data emphasizing medium- and large-scale\nvisual patterns, with virtually no training signal for fine-grained topological perception [85, 33, 10].\nMore fundamentally, topological patterns in tubular networks are extremely sparse and localized: a\nsingle missing pixel among thousands of correctly segmented ones can break a critical connection.\nRecognizing such patterns requires the model to efficiently search a vast, mostly correct structure and\nidentify the few points where connectivity changes, a needle-in-a-haystack problem that standard\n2\n\n\fVLMs have no mechanism to solve. Unlike conventional object detection, where salient visual cues\nguide attention, topological cues are often visually subtle and can only be recognized by tracing\nlong-range connectivity across the entire network, demanding a combination of global structural\nreasoning and fine-grained local perception that current architectures lack.\nTo endow VLMs with topology-aware perception, we observe that no existing resource pairs segmentation masks with the localized topological-anomaly annotations needed for both training and\nevaluation. We therefore develop an automated, multi-domain data-curation pipeline that injects\nfour types of controlled topological perturbations into clean masks, with automated Betti-number\nverification, across graduated difficulty levels. The pipeline yields the first systematic benchmark\nfor VLM-based topological perception of tubular structures, with a large-scale training set and a\nheld-out test suite covering both in-distribution and out-of-distribution settings. Built on top of this\nbenchmark, we introduce Topo-R1, a vision-language framework that learns topological patterns\nthrough localizing and classifying topological anomalies in segmentation masks. Topo-R1 adopts a\ntwo-stage training paradigm of supervised fine-tuning followed by reinforcement learning with Group\nRelative Policy Optimization (GRPO) [72], and as shown in Fig. 2, substantially outperforms both\ngeneral-purpose VLMs and supervised baselines across the benchmark; we additionally stress-test on\noutputs of real segmentation models and observe that the gains transfer to errors actually produced in\ndeployment.\nIn summary, our contributions are threefold:\n1. We construct the first systematic benchmark for VLM-based topological perception of\ntubular structures, generated through an automated, multi-domain data-curation pipeline and\ncomprising a large-scale training set with a held-out test suite that covers both in-distribution\nand out-of-distribution settings; both the pipeline and benchmark will be publicly released.\n2. Through the systematic evaluation enabled by this benchmark, we identify that current\ngeneral-purpose VLMs, including both leading closed-source and state-of-the-art opensource models, lack topology-aware perception. We accordingly introduce Topo-R1, the first\nvision-language framework that equips VLMs with this capability, opening a new direction\nof using VLMs for fine-grained, structure-aware visual analysis of tubular networks.\n3. Extensive experiments across multiple VLM backbones and imaging domains demonstrate\nthat Topo-R1 substantially outperforms both general-purpose VLMs and supervised baselines, generalizes to out-of-distribution domains, and remains robust when stress-tested on\noutputs from real segmentation models.\n\n2\n\nRelated Work\n\nTopology-Driven Deep Image Analysis. Tubular structure segmentation has evolved from handcrafted filters [22] and encoder-decoder architectures [69, 105, 31, 61] to topology-aware losses\nsuch as persistent-homology penalties [6, 27, 13, 95, 94], clDice [76], Skeleton Recall [35], homotopy warping [26], Betti matching [80, 79, 57], and Euler-characteristic optimisation [44]; Decroocq et al. [16] benchmark these metrics comprehensively. All such methods shape the training\nloss to suppress topological violations but do not reason about where each violation occurs or what\ntype it is. For post-hoc assessment, Li et al. [43, 45] detect violations via Euler Characteristic maps,\nyet produce only pixel-level heatmaps without structured, typed detections and remain coupled to\nspecific CNN backbones. Our work instead formulates topological anomaly detection as a structured\nvisual reasoning task with typed bounding-box output.\nVLMs for Visual Understanding and Inspection. Vision-Language Models (VLMs) align visual\nencoders with LLMs via contrastive pretraining [67], cross-attention [1], bridging modules [41, 15],\nand visual instruction tuning [49, 48, 106], yielding systems such as Qwen-VL [3, 4], InternVL [11],\nCogVLM [90], GPT-4V [62], and Gemini [23]. Grounding-oriented models [65, 9, 97, 50] add regionlevel perception, and domain-specific adaptations address biomedical VQA [40] and reasoning-based\nsegmentation [37]. A parallel line applies VLMs as visual quality inspectors: AnomalyGPT [24]\nand MMAD [32] target industrial anomaly detection; Anomaly-OneVision [93] and AnomalyR1 [8]\nextend this to zero-shot and RL-based settings; and ConnectomeBench [7] benchmarks LLMs on\nneuron segmentation proofreading but provides only a 3D benchmark, not a trainable detector for 2D\n3\n\n\ftubular topological anomalies. Our work addresses this gap by introducing a VLM that detects and\nclassifies topological anomalies using structured bounding-box outputs.\nReinforcement Fine-Tuning in Visual Context. RL-based alignment has evolved from RLHF with\nPPO [12, 63, 71] and preference methods [68, 2, 19] to GRPO [72], which enables compact visual\nreasoning models [29, 96, 102, 91, 83, 21] to rival larger supervised counterparts, with stability\nimprovements from Hint-GRPO [28] and VL-Rethinker [88]. For fine-grained perception, VisualRFT [56] pioneered IoU-based rewards; Seg-Zero [54], VisionReasoner [55], and LENS [107] extend\nRL to segmentation; VLM-R1 [74] and Perception-R1 [98] highlight reward design as the pivotal\nfactor; and grounding emerges from answer-correctness rewards alone [70, 20, 73, 5]. Medical\nadaptations [64, 38, 81, 92] apply GRPO to visual reasoning and grounding, while preference-based\nalternatives [82, 99, 100, 87, 42] target hallucination reduction. Despite these advances, no prior work\napplies RL fine-tuning to topological quality assessment. We bridge this gap with a composite GRPO\nreward that incorporates a type-aware centerline Dice component and a domain-specific formulation\nunexplored in prior visual RL.\n\n3\n\nMethodology\n\nIn this section, we will introduce our Topo-R1 framework in detail.\n3.1\n\nPreliminaries\n\nTopological Data Analysis. Topological data analysis (TDA) [18] characterizes the shape and connectivity of data through Betti numbers βk = rank Hk (X), which count independent k-dimensional\nholes. In 2D tubular-network segmentation, β0 reflects the number of disjoint fragments and β1\nthe number of closed loops, making Betti-number changes a natural proxy for topological correctness [27, 80].\nGroup Relative Policy\nP Optimization. Supervised fine-tuning (SFT) optimizes the next-token\nlikelihood LSFT = − t log πθ (yt | x, y&lt;t ), which does not directly capture downstream goals such\nas precise localization and accurate type classification. We therefore refine the policy with Group\nRelative Policy Optimization (GRPO) [72], which forgoes a separate critic network by estimating\nadvantages from within-group reward statistics. For each query q, GRPO samples G candidate\noutputs from πθ , scores each by the composite reward of Section 3.3 to obtain rewards {R1 , . . . , RG },\nand standardizes within the group to form per-sample advantages Âi = (Ri − µG )/(σG + ϵstd ),\nwhere µG , σG are the group mean and standard deviation. The policy is then updated by maximizing\na clipped PPO-style surrogate [71] with a KL-divergence penalty toward a reference policy πref\ninitialized from the SFT checkpoint; full equations for the GRPO objective, the per-sample clipped\nsurrogate, and the importance-sampling ratio are provided in Appendix 7.\n3.2\n\nAutomated Data Curation Pipeline\n\nTask Formulation and Error Taxonomy. Given an input image I ∈ RH×W ×3 and a binary\nsegmentation mask M ∈ {0, 1}H×W , topological anomaly detection produces detections E =\n{(bi , ti )}N\ni=1 , where bi is the bounding box of the i-th potential error and ti ∈ T its type (E = ∅\nif none). Each detection flags a region where the topology of M is inconsistent with that of the\ntubular network depicted in I (the contextual reference). The model receives the pair (I, M ) at\nboth training and test time; only during training is the clean ground-truth mask additionally available,\nagainst which labels are derived by symmetric topological differencing. The taxonomy T has four\ncategories, exhaustive over local perturbations and verifiable via Betti-number changes:\n• Broken connection: a gap severing a continuous segment (β0 ↑ or β1 ↓).\n• Spurious connection: a bridge merging distinct segments (β0 ↓ or β1 ↑).\n• Missing branch: a terminal branch present in the ground truth but absent from M , reducing\nbranching.\n• Extra branch: a false branch present in M but absent from the ground truth, inflating\nbranching.\n4\n\n\fFigure 3: Overview of the automatic data curation pipeline.\n\nCuration Pipeline. Manual annotation of these anomalies is expensive at scale, so we develop\na fully automated pipeline (Fig. 3). We aggregate data from multiple public sources, e.g., aerial\nroads, surface cracks, retinal vasculature, leaf-veins, and retinal fundus (per-source breakdown in\nAppendix 10 and Table 9), extract 256×256 patches via content-aware sampling, and inject controlled\nanomalies into clean masks under a complexity-stratified curriculum. Crucially, every accepted\ninjection is verified by Betti-number checking to alter β0 or β1 , guaranteeing that each labeled\nanomaly corresponds to a genuine topological change; failed operator applications are rejected and\nretried. Each sample pairs the patch with its (corrupted or clean) mask and a detection prompt;\nthe ground-truth answer is a list of typed bounding-box dictionaries in &lt;answer&gt; tags. Full strata\npercentages, type-balancing sampler, injection operators, retry policy, and bounding-box formatting\nare deferred to Appendix 10.\n3.3\n\nReward Design\n\nThe reward function shapes the policy’s localization and classification behavior. We design a\ncomposite reward\n  R_{\\text {total}} = w_{\\text {fmt}}\\,R_{\\text {fmt}} + w_{\\text {acc}}\\,R_{\\text {acc}} + w_{\\text {topo}}\\,R_{\\text {topo}}, \nwith weights (wfmt , wacc , wtopo ) = (0.10, 0.85, 0.05) summing to one. The format reward Rfmt ∈\n{0, 1} is a binary gate verifying that the output parses as a valid list of {Position, ErrorType}\ndictionaries with labels in T and integer coordinates in [0, 1000]; the remaining sub-rewards are\ncomputed only on schema-compliant outputs.\nAccuracy Reward. The accuracy reward Racc = Rdet + Rloc + Rtype aggregates three sub-objectives\nover predictions and ground-truth errors paired by type-aware Hungarian matching: for each\ntype t ∈ T we solve a per-type linear assignment with IoU as the cost, accept matches with\nIoU ≥ τm = 0.1, and treat unmatched predictions as false positives (FP) and unmatched groundtruth errors as false negatives (FN). Matching is per-type by design: a prediction with the wrong type\ncan never be matched to a ground-truth error of the correct type, so type errors automatically inflate\nboth FP and FN, directly coupling classification correctness to detection. As corner cases, Racc = 1\nif both sides are empty, Racc = 0 if exactly one side is empty, and Rloc = Rtopo = 0 when |M| = 0.\nThe detection reward is a soft F1:\n  R_{\\text {det}} = \\frac {2\\,\\widetilde {\\mathrm {TP}}}{2\\,\\widetilde {\\mathrm {TP}}+|\\mathrm {FP}|+|\\mathrm {FN}|},\\qquad \\widetilde {\\mathrm {TP}} = \\sum _{(i,j)\\in \\mathcal {M}} \\phi (\\mathrm {IoU}_{ij}), \nwhere ϕ smoothly maps IoU to a reward score via piecewise non-linear interpolation across tier\nthresholds {τk } = {0.3, 0.5, 0.7, 0.9} with reward ceilings {rk } = {0.25, 0.55, 0.80, 1.0} and\n5\n\n\fexponent γ = 1.5:\n\n  \\phi (\\mathrm {IoU}) = \\begin {cases} r_1\\,(\\mathrm {IoU}/\\tau _1)^{\\gamma } &amp; \\mathrm {IoU}&lt;\\tau _1\\\\[2pt] r_{k-1}+(r_k-r_{k-1})\\!\\left (\\dfrac {\\mathrm {IoU}-\\tau _{k-1}}{\\tau _k-\\tau _{k-1}}\\right )^{\\!\\gamma } &amp; \\tau _{k-1}\\le \\mathrm {IoU}&lt;\\tau _k\\\\[2pt] r_K &amp; \\mathrm {IoU}\\ge \\tau _K. \\end {cases} \n\nRdet is structurally identical to the F1 score the model is evaluated on, so the policy is trained\non exactly the metric it is measured by; the smooth ϕ further provides dense gradient signal across\ntier transitions rather than the all-or-nothing reward of a hard IoU threshold. The localization\nP\n1\nf\nreward Rloc = |M|\n(i,j)∈M ϕ(IoUij ) averages the same ϕ(IoU) values that compose TP in Rdet ,\nproviding a per-match localization signal complementary to the precision/recall trade-off of Rdet .\nThe type bonus Rtype = |M|/ max(Ngt , Npred ) rewards joint type-and-localization accuracy, since\nper-type matching can only produce |M| matches when both type and location agree.\nTopological Reward. IoU is a pixel-area measure that is blind to whether a region contains topologically meaningful content. We add a centerline-Dice (clDice) [76] reward computed only over\nHungarian-matched pairs, so it inherits the type-awareness of the matching stage. For a matched\npair (i, j) with cropped masks Migt , Mjcorr and their skeletons Sigt , Sjcorr , the standard clDice is the\nharmonic mean of Tprec = |Sjcorr ∩ Migt |/|Sjcorr | and Tsens = |Sigt ∩ Mjcorr |/|Sigt |. Regions containing topological anomalies exhibit low clDice between corrupted and ground-truth masks, so the\nper-pair reward is (1 − clDice), modulated by a localization penalty LocPen(b) ∈ [0, 1] that linearly\nattenuates the reward once the box exceeds τsize = 0.3 of the image area (slope λ = 0.8; closed form in\nAppendix 7), suppressing oversized boxes which trivially capture topological changes. The aggregate\nis\n  R_{\\text {topo}} = \\frac {1}{|\\mathcal {M}|}\\sum _{(i,j)\\in \\mathcal {M}}\\big (1-\\mathrm {clDice}(M_i^{\\text {gt}},M_j^{\\text {corr}})\\big )\\cdot \\mathrm {LocPen}(b_j^{\\text {pred}}). \nType conditioning prevents the policy from gaming the topology signal with size or pixel-overlap\nalone: only predictions that are correctly typed, spatially overlapping a ground-truth error, and within\nthe size budget receive topological credit, and only insofar as they actually capture the topologically\ncritical skeleton structure.\n\n4\n\nExperiments\n\n4.1\n\nExperimental Setup\n\nDatasets. We aggregate data from three public sources covering aerial roads [58], surface cracks [53],\nand retinal vasculature [46], extract 256 × 256 patches via content-aware sampling, and inject four\ntypes of topological anomalies through the pipeline of Section 3.2 with Betti-number verification.\nError counts are stratified into four complexity levels for curriculum learning. After quality control,\nthe in-distribution split contains 12,900 SFT samples, 50,300 RL samples, and a 4,246-sample test\nset, disjoint at the image level to rule out patch-level leakage. We additionally curate 1,564 outof-distribution samples from HALVS leaf-vein and DRIVE retinal-fundus imagery [51, 78], which\ndiffer in modality, contrast, and color: HALVS introduces unseen leaf textures and reticulate venation,\nwhile DRIVE uses fundus photography rather than the training-set OCTA modality. Bounding boxes\nare normalized to [0, 1000]; both training data and benchmark will be publicly released.\nEvaluation Metrics. A true positive requires both correct type and IoU ≥ τ under type-aware\nHungarian matching [47, 36]; we report Precision, Recall, F1 at τ ∈ {0.3, 0.5, 0.75}, COCO-style\naF1 over τ ∈ [0.50 : 0.05 : 0.95], and Macro F1@0.5. Full definitions are in Appendix 6.\nModels. We instantiate Topo-R1 on four open-source backbones with the standard two-stage\nSFT+GRPO pipeline (full-parameter SFT followed by GRPO from the SFT checkpoint): InternVL2.5-2B [11], Qwen2.5-VL-3B [4], Qwen3-VL-4B, and Qwen3-VL-8B [84], reporting zero-shot,\nSFT-only, and Topo-R1 numbers for each to isolate per-stage gains. We additionally benchmark four\nclosed-source VLMs (GPT-4o [30], GPT-5.2 [77], Gemini-2.5-Flash [14], Qwen3.5-Plus [66]) under\nidentical zero-shot evaluations. Full implementation details (optimizers, schedules, batch/group sizes)\nare in Appendix 7.\n6\n\n\fFigure 4: Qualitative results of topological anomaly detection on samples containing 0-dim (β0 ) and\n1-dim (β1 ) topological anomalies. Topo-R1 demonstrates superior capability in the localization and\nclassification of diverse topological anomalies.\n\n4.2\n\nExperimental Results\n\nQualitative Results. As shown in Fig. 4, Topo-R1 localizes and classifies anomalies across both Betti\ndimensions (β0 -level disconnections and bridges, β1 -level spurious loops). The SFT baseline tends\nto default to empty predictions on these hard cases, an artifact of next-token likelihood training: with\nno explicit reward for partial recovery, predicting an empty list is the loss-minimizing choice under\nuncertainty, especially given the 20% negative-sample stratum. Topology-aware RL is therefore\nessential to bridge the perception gap. A more extensive qualitative gallery and a per-type failuremode analysis are in Appendix 17.\nMain Quantitative Results. Table 1 reveals three patterns: (i) zero-shot performance is uniformly\nnegligible (even the strongest closed-source model reaches only 1.5% F1@0.5), and 1-/3-/5-shot\nin-context learning likewise fails to elicit topology-aware perception, with the best few-shot result at\nonly 0.5% F1@0.5 (Table 7, Appendix 9); (ii) SFT provides a necessary foundation by teaching the\nanomaly taxonomy and basic localization; and (iii) RL with our composite reward yields consistent\ngains over SFT across all backbones, particularly in precision. Even the smallest Topo-R1 backbone\nsurpasses all closed-source models by an order of magnitude, confirming that topology-aware\nsupervision—rather than model scale or in-context prompting—is the decisive factor.\nPer-Anomaly-Type Breakdown. Across all four anomaly types (Table 2), Topo-R1 substantially\noutperforms SFT, with the largest gains on broken connections and extra branches—the harder\ncategories with subtler pixel-level cues—indicating that the topology-aware reward steers the model\ntoward fine-grained structural reasoning rather than only the easiest visual cues, particularly for\nbroken connections, where the gap is often only a handful of pixels and lacks salient color cues that\nwould otherwise dominate detection.\nDetection / VLM Baselines. To verify that gains are not merely a VLM-backbone artefact, we add\nthree GT-free baselines to Table 1 (Detection / VLM block): YOLOv8 [86] and DINO-DETR [101]\ntrained on 4-channel inputs with our anomaly labels, and the anomaly VLM AnomalyGPT [24]\nrun zero-shot (oracle persistent-homology / skeleton-graph pipelines are excluded as they coincide\nwith our label-generation procedure; details in Appendix 11). Topo-R1 with mid-to-large backbones\n(Qwen2.5/3-VL) outperforms every baseline by a clear margin; even the smallest Topo-R1 instantiation (InternVL-2.5-2B) matches the strongest supervised detector despite operating without a\n7\n\n\fTable 1: Main results on topological anomaly detection on the in-distribution test set. We report\ndetection precision (P), recall (R), and F1 at IoU thresholds 0.3, 0.5, and 0.75, along with the COCOstyle average F1 (aF1, IoU 0.5:0.95). Closed-source models are evaluated in a zero-shot setting. “ZS”\ndenotes zero-shot inference, “Sup.” denotes supervised training of a dataset-specific detector on our\nanomaly bounding-box labels, “SFT” denotes supervised fine-tuning, and “Topo-R1” denotes our\ntopology-aware reinforcement fine-tuning. Bold indicates the best result in each block.\n@IoU=0.3\n\n@IoU=0.5\n\n@IoU=0.75\n\nCategory\n\nModel\n\nMethod\n\nP↑\n\nR↑\n\nF1 ↑\n\nP↑\n\nR↑\n\nF1 ↑\n\nP↑\n\nR↑\n\nF1 ↑\n\naF1 ↑\n\nClosedSource\n\nGPT-4o\nGPT-5.2\nGemini-2.5-Flash\nQwen3.5-Plus\n\nZS\nZS\nZS\nZS\n\n0.6\n2.4\n3.0\n3.1\n\n0.3\n1.7\n2.4\n3.2\n\n0.4\n2.0\n2.7\n3.2\n\n0.3\n1.0\n1.0\n1.4\n\n0.1\n0.7\n0.9\n1.5\n\n0.1\n0.8\n0.9\n1.5\n\n0.0\n0.2\n0.1\n0.2\n\n0.0\n0.1\n0.1\n0.2\n\n0.0\n0.1\n0.1\n0.2\n\n0.0\n0.3\n0.3\n0.5\n\nDetection /\nVLM\n\nYOLOv8 [86] (img ⊕ mask)\nDINO-DETR [101] (img ⊕ mask)\nAnomalyGPT [24]\n\nSup.\nSup.\nZS\n\n46.5\n49.0\n4.0\n\n37.5\n39.9\n2.5\n\n41.5\n44.0\n3.1\n\n34.5\n36.7\n1.6\n\n27.6\n29.8\n1.0\n\n30.7\n32.9\n1.2\n\n16.5\n17.6\n0.0\n\n13.1\n14.2\n0.0\n\n14.6\n15.7\n0.0\n\n16.4\n17.6\n0.4\n\nInternVL-2.5-2B\n\nZS\nSFT\nTopo-R1\n\n0.0\n15.9\n47.3\n\n0.0\n16.6\n37.8\n\n0.0\n16.3\n42.0\n\n0.0\n8.8\n39.2\n\n0.0\n9.2\n27.0\n\n0.0\n9.0\n32.0\n\n0.0\n3.2\n19.2\n\n0.0\n3.3\n12.8\n\n0.0\n3.2\n15.3\n\n0.0\n4.0\n17.1\n\nQwen2.5-VL-3B\n\nZS\nSFT\nTopo-R1\n\n0.0\n20.9\n66.8\n\n0.0\n16.4\n50.9\n\n0.0\n18.4\n57.8\n\n0.0\n13.6\n49.7\n\n0.0\n10.7\n37.9\n\n0.0\n11.9\n43.0\n\n0.0\n4.7\n21.3\n\n0.0\n3.7\n16.2\n\n0.0\n4.1\n18.4\n\n0.0\n5.3\n21.4\n\nQwen3-VL-4B\n\nZS\nSFT\nTopo-R1\n\n0.1\n42.6\n70.0\n\n0.1\n25.5\n49.9\n\n0.1\n31.9\n58.3\n\n0.0\n30.7\n54.3\n\n0.0\n18.3\n38.7\n\n0.0\n23.0\n45.2\n\n0.0\n16.2\n27.0\n\n0.0\n9.7\n19.3\n\n0.0\n12.1\n22.5\n\n0.0\n12.8\n24.7\n\nQwen3-VL-8B\n\nZS\nSFT\nTopo-R1\n\n0.0\n38.4\n69.1\n\n0.0\n20.5\n48.5\n\n0.0\n26.7\n57.0\n\n0.0\n29.0\n53.1\n\n0.0\n15.5\n37.3\n\n0.0\n20.2\n43.9\n\n0.0\n16.9\n27.1\n\n0.0\n9.0\n19.0\n\n0.0\n11.8\n22.4\n\n0.0\n11.8\n24.3\n\nOpenSource\n\nTable 2: Detection F1 (%) by anomaly type at IoU=0.5. Higher is better. BC = Broken Connection,\nSC = Spurious Connection, MB = Missing Branch, EB = Extra Branch. Macro is the unweighted\naverage across the four types.\nCategory\n\nModel\n\nMethod\n\nBC\n\nSC\n\nMB\n\nEB\n\nMacro ↑\n\nClosedSource\n\nGPT-4o\nGPT-5.2\nGemini-2.5-Flash\nQwen3.5-Plus\n\nZS\nZS\nZS\nZS\n\n0.0\n0.0\n0.1\n0.1\n\n0.6\n3.5\n4.2\n7.2\n\n0.0\n0.0\n0.1\n0.0\n\n0.1\n0.1\n0.0\n0.0\n\n0.2\n0.9\n1.1\n1.8\n\nInternVL-2.5-2B\n\nZS\nSFT\nTopo-R1\n\n0.0\n1.6\n16.2\n\n0.0\n24.5\n46.5\n\n0.0\n4.2\n25.8\n\n0.0\n1.9\n12.8\n\n0.0\n8.1\n25.3\n\nQwen2.5-VL-3B\n\nZS\nSFT\nTopo-R1\n\n0.0\n0.6\n30.3\n\n0.0\n36.9\n61.8\n\n0.0\n1.0\n42.2\n\n0.0\n0.7\n22.0\n\n0.0\n9.8\n39.1\n\nQwen3-VL-4B\n\nZS\nSFT\nTopo-R1\n\n0.0\n12.2\n35.4\n\n0.0\n49.1\n64.8\n\n0.0\n9.6\n39.9\n\n0.0\n8.1\n25.7\n\n0.0\n19.7\n41.4\n\nQwen3-VL-8B\n\nZS\nSFT\nTopo-R1\n\n0.0\n3.2\n31.9\n\n0.0\n49.9\n66.0\n\n0.0\n3.5\n36.3\n\n0.0\n8.0\n27.9\n\n0.0\n16.2\n40.5\n\nOpenSource\n\ndedicated detection head. Together, these results indicate that language-grounded reasoning captures\ntopological inconsistencies that detector-only approaches miss.\nOut-of-Distribution Generalization. On the 1,564 OOD samples described in Section 4.1 (HALVS\nleaf-vein and DRIVE retinal-fundus imagery; full composition in Appendix 15), Topo-R1 retains a\nclear advantage over SFT and the zero-shot VLM (OOD block of Table 3), indicating that the learned\ntopology-aware perception is a transferable concept rather than a memorized dataset bias.\nStress Test on Real Segmentation-Model Outputs. Beyond the released benchmark, we stress-test\nTopo-R1 on ∼600 samples built from a pretrained nnU-Net’s [31] predictions on held-out Roads and\nCrack images, with reference annotations derived by symmetric topological differencing (procedure\nin Appendix 16). As shown in the Real-world block of Table 3, Topo-R1 maintains a substantial\n8\n\n\fTable 3: Out-of-distribution generalization and evaluation on real segmentation-model outputs. All\nmethods receive identical (I, M ) inputs at test time and have no access to ground-truth masks. OOD:\nheld-out HALVS leaf-vein and DRIVE retinal-fundus imagery; Real-world: nnU-Net predictions on\nRoads and Crack. Topo-R1 is instantiated on Qwen3-VL-4B. Numbers in %; bold: best per block.\nSetting\n\nMethod\n\nF1@.3 ↑\n\nF1@.5 ↑\n\nF1@.75 ↑\n\naF1 ↑\n\nMacro F1@.5 ↑\n\nOOD\n\nZero-shot (Qwen3-VL-4B)\nSFT only\nTopo-R1\n\n0.1\n33.9\n58.4\n\n0.0\n24.4\n45.5\n\n0.0\n14.8\n23.2\n\n0.0\n14.9\n25.5\n\n0.0\n21.8\n43.2\n\nRealworld\n\nGPT-5.2 (zero-shot)\nGemini-2.5-Flash (zero-shot)\nSFT only\nTopo-R1\n\n1.8\n2.1\n26.4\n52.7\n\n0.6\n0.8\n18.1\n39.8\n\n0.0\n0.0\n7.8\n18.4\n\n0.2\n0.3\n9.3\n20.9\n\n0.4\n0.5\n15.6\n36.3\n\nmargin over closed-source VLMs and SFT, indicating that the synthetic-to-real gap does not collapse\nthe learned signal and the method can flag candidate regions in real segmentation pipelines.\nCross-Domain and Sample-Level Robustness. Beyond the headline metrics, we further analyze\nTopo-R1 along several orthogonal axes (full tables in Appendix 9). Across the three in-distribution\nimaging domains (Table 9), Topo-R1 yields consistent gains over SFT, indicating that the topologyaware reward generalizes across structurally diverse modalities rather than overfitting to a single\nsource. At the per-sample level (Table 8), Topo-R1 dominates anomaly-count accuracy and mean\nper-sample F1, showing the aggregate gains are not driven by a few easy samples. As anomaly\ndensity grows to 6–10 errors per sample (Table 11), Topo-R1 maintains a substantial F1 margin over\nSFT, peaking at moderate complexity (2–5 errors). A leave-one-domain-out evaluation (Table 16,\nAppendix 14) further shows Topo-R1 doubles or triples SFT-only F1 on a held-out domain, confirming\nthat the learned notion of topological inconsistency transfers to unseen modalities.\n4.3\n\nAblation Studies\n\nTable 4: Training-regime ablation on Table 5: Reward component ablation on Qwen3-VL-4B.\nQwen3-VL-4B: SFT-only, RL-only, Rfmt always enabled; Racc : accuracy; Rtopo : topological\nand the proposed two-stage pipeline. (clDice). All metrics in %; bold: best per column.\nRegime\n\nF1@.3 F1@.5 F1@.75 aF1\n\nRL only\nSFT only\nSFT+RL (ours)\n\n5.8\n31.9\n58.3\n\n3.1\n23.0\n45.2\n\n0.5\n12.1\n22.5\n\n1.0\n12.8\n24.7\n\nRfmt\n\nRacc\n\nRtopo\n\nF1@.5\n\naF1\n\nMacro F1@.5\n\nF1@.75\n\nmPS-F1@.5\n\n✓\n✓\n✓\n✓\n\n–\n✓\n–\n✓\n\n–\n–\n✓\n✓\n\n25.1\n43.8\n31.4\n45.2\n\n13.4\n23.5\n17.6\n24.7\n\n20.8\n39.7\n26.3\n41.4\n\n12.6\n20.1\n17.8\n22.5\n\n39.2\n56.8\n44.1\n58.5\n\nComparison of SFT-Only, RL-Only, and the Two-Stage Pipeline. On Qwen3-VL-4B (Table 4),\nRL-only barely improves over zero-shot and remains far below SFT-only: starting from near-zero F1,\nthe policy rarely produces schema-compliant outputs, which collapses the format-gated reward across\nall rollouts and eliminates the within-group variance GRPO needs [25]. SFT therefore serves as a\nnecessary cold start, after which GRPO further lifts performance to yield the full Topo-R1 result.\nReward Component Ablation. Table 5 confirms that both terms contribute: removing Rtopo\ndegrades localization (F1@0.75, aF1) while preserving detection F1@0.5; removing Racc collapses\ndetection and classification; the full reward dominates every metric.\n\n5\n\nConclusion\n\nWe introduced Topo-R1, the first vision-language framework for detecting and classifying topological\nanomalies in tubular structures. We built an automated pipeline that injects four controlled topological\nanomalies with topological verification, trained a VLM via SFT, then GRPO, with a composite reward\nthat combines format consistency, decoupled detection accuracy with type-aware Hungarian matching,\nand a type-conditioned clDice term. Topo-R1 substantially outperforms all baseline VLMs across\nmultiple detection metrics and generalizes across domains, demonstrating that topology-aware reward\nshaping enables fine-grained structural understanding in vision-language models.\n\n9\n\n\fReferences\n[1] Alayrac, J.B., Donahue, J., Luc, P., Miech, A., Barr, I., Hasson, Y., Lenc, K., Mensch, A.,\nMillican, K., Reynolds, M., et al.: Flamingo: A visual language model for few-shot learning.\nIn: NeurIPS (2022)\n[2] Azar, M.G., Rowland, M., Piot, B., Guo, D., Calandriello, D., Valko, M., Munos, R.: A general\ntheoretical paradigm to understand learning from human feedback. In: AISTATS (2024)\n[3] Bai, J., Bai, S., Yang, S., Wang, S., Tan, S., Wang, P., Lin, J., Zhou, C., Zhou, J.: Qwen-vl:\nA versatile vision-language model for understanding, localization, text reading, and beyond.\narXiv preprint arXiv:2308.12966 (2023)\n[4] Bai, S., Chen, K., Liu, X., Wang, J., Ge, W., Song, S., Dang, K., Wang, P., Wang, S., Tang, J.,\net al.: Qwen2. 5-vl technical report. arXiv preprint arXiv:2502.13923 (2025)\n[5] Batra, H., Tu, H., Chen, H., Lin, Y., Xie, C., Clark, R.: Spatialthinker: Reinforcing 3d\nreasoning in multimodal llms via spatial rewards. In: NeurIPS Workshop on Space in Vision,\nLanguage, and Embodied AI (2025)\n[6] BenTaieb, A., Hamarneh, G.: Topology aware fully convolutional networks for histology gland\nsegmentation. In: MICCAI (2016)\n[7] Brown, J., Kirjner, A., Vivekananthan, A., Boyden, E.: Connectomebench: Can llms proofread\nthe connectome? arXiv preprint arXiv:2511.05542 (2025)\n[8] Chao, Y., Liu, J., Tang, J., Wu, G.: Anomalyr1: A grpo-based end-to-end mllm for industrial\nanomaly detection. arXiv preprint arXiv:2504.11914 (2025)\n[9] Chen, K., Zhang, Z., Zeng, W., Zhang, R., Zhu, F., Zhao, R.: Shikra: Unleashing multimodal\nllm’s referential dialogue magic. arXiv preprint arXiv:2306.15195 (2023)\n[10] Chen, Z., Wang, W., Tian, H., Ye, S., Gao, Z., Cui, E., Tong, W., Hu, K., Luo, J., Ma, Z., et al.:\nHow far are we to gpt-4v? closing the gap to commercial multimodal models with open-source\nsuites. Science China Information Sciences (2024)\n[11] Chen, Z., Wu, J., Wang, W., Su, W., Chen, G., Xing, S., Zhong, M., Zhang, Q., Zhu, X., Lu,\nL., Li, B., Luo, P., Lu, T., Qiao, Y., Dai, J.: Internvl: Scaling up vision foundation models and\naligning for generic visual-linguistic tasks. In: CVPR (2024)\n[12] Christiano, P.F., Leike, J., Brown, T., Marber, M., Legg, S., Amodei, D.: Deep reinforcement\nlearning from human preferences. In: NeurIPS (2017)\n[13] Clough, J.R., Byrne, N., Oksuz, I., Zimmer, V.A., Schnabel, J.A., King, A.P.: A topological\nloss function for deep-learning based image segmentation using persistent homology. TPAMI\n(2020)\n[14] Comanici, G., Bieber, E., Schaekermann, M., Pasupat, I., Sachdeva, N., Dhillon, I., Blistein,\nM., Ram, O., Zhang, D., Rosen, E., et al.: Gemini 2.5: Pushing the frontier with advanced\nreasoning, multimodality, long context, and next generation agentic capabilities. arXiv preprint\narXiv:2507.06261 (2025)\n[15] Dai, W., Li, J., Li, D., Tiong, A.M.H., Zhao, J., Wang, W., Li, B., Fung, P., Hoi, S.: Instructblip:\nTowards general-purpose vision-language models with instruction tuning. In: NeurIPS (2023)\n[16] Decroocq, M., Poon, C., Schlachter, M., Skibbe, H.: Benchmarking evaluation metrics for\ntubular structure segmentation in biomedical images. In: International Workshop on Shape in\nMedical Imaging. pp. 87–102 (2025)\n[17] Deitke, M., Clark, C., Lee, S., Tripathi, R., Yang, Y., Park, J.S., Salehi, M., Muennighoff, N.,\nLo, K., Soldaini, L., et al.: Molmo and pixmo: Open weights and open data for state-of-the-art\nvision-language models. In: CVPR (2025)\n[18] Edelsbrunner, H., Harer, J.: Computational topology: an introduction. American Mathematical\nSoc. (2010)\n10\n\n\f[19] Ethayarajh, K., Xu, W., Muennighoff, N., Jurafsky, D., Kiela, D.: Kto: Model alignment as\nprospect theoretic optimization. In: ICML (2024)\n[20] Fan, Y., He, X., Yang, D., Zheng, K., Kuo, C.C., Zheng, Y., Guan, X., Wang, X.E.: Grit:\nTeaching mllms to think with images. In: NeurIPS (2025)\n[21] Feng, K., Gong, K., Li, B., Guo, Z., Wang, Y., Peng, T., Wu, J., Zhang, X., Wang, B., Yue, X.:\nVideo-r1: Reinforcing video reasoning in mllms. In: NeurIPS (2025)\n[22] Frangi, A.F., Niessen, W.J., Vincken, K.L., Viergever, M.A.: Multiscale vessel enhancement\nfiltering. In: MICCAI (1998)\n[23] Gemini Team, Google DeepMind: Gemini: A family of highly capable multimodal models.\narXiv preprint arXiv:2312.11805 (2023)\n[24] Gu, Z., Zhu, B., Zhu, G., Chen, Y., Tang, M., Wang, J.: Anomalygpt: Detecting industrial\nanomalies using large vision-language models. In: AAAI (2024)\n[25] Guo, D., Yang, D., Zhang, H., Song, J., Zhang, R., Xu, R., Zhu, Q., Ma, S., Wang, P., Bi,\nX., et al.: Deepseek-r1: Incentivizing reasoning capability in llms via reinforcement learning.\narXiv preprint arXiv:2501.12948 (2025)\n[26] Hu, X.: Structure-aware image segmentation with homotopy warping. In: NeurIPS (2022)\n[27] Hu, X., Li, F., Samaras, D., Chen, C.: Topology-preserving deep image segmentation. In:\nNeurIPS (2019)\n[28] Huang, Q., Dai, W., Liu, J., He, W., Jiang, H., Song, M., Chen, J., Yao, C., Song, J.: Boosting\nmllm reasoning with text-debiased hint-grpo. In: ICCV (2025)\n[29] Huang, W., Jia, B., Zhai, Z., Cao, S., Ye, Z., Zhao, F., Xu, Z., Hu, Y., Lin, S.: Vision-r1:\nIncentivizing reasoning capability in multimodal large language models. In: ICLR (2026)\n[30] Hurst, A., Lerer, A., Goucher, A.P., Perelman, A., Ramesh, A., Clark, A., Ostrow, A., Welihinda, A., Hayes, A., Radford, A., et al.: Gpt-4o system card. arXiv preprint arXiv:2410.21276\n(2024)\n[31] Isensee, F., Jaeger, P.F., Kohl, S.A.A., Petersen, J., Maier-Hein, K.H.: nnu-net: A selfconfiguring method for deep learning-based biomedical image segmentation. Nature Methods\n(2021)\n[32] Jiang, X., Li, J., Deng, H., Liu, Y., Gao, B.B., Zhou, Y., Li, J., Wang, C., Zheng, F.: Mmad:\nA comprehensive benchmark for multimodal large language models in industrial anomaly\ndetection. In: ICLR (2025)\n[33] Karamcheti, S., Nair, S., Balakrishna, A., Liang, P., Kollar, T., Sadigh, D.: Prismatic vlms:\nInvestigating the design space of visually-conditioned language models. In: ICML (2024)\n[34] Khandouzi, A., Ariafar, A., Mashayekhpour, Z., Pazira, M., Baleghi, Y.: Retinal vessel\nsegmentation, a review of classic and deep methods. Annals of Biomedical Engineering (2022)\n[35] Kirchhoff, Y., Rokuss, M.R., Roy, S., Kovacs, B., Ulrich, C., Wald, T., Zenk, M., Vollmuth, P.,\nKleesiek, J., Isensee, F., et al.: Skeleton recall loss for connectivity conserving and resource\nefficient segmentation of thin tubular structures. In: ECCV (2024)\n[36] Kuhn, H.W.: The hungarian method for the assignment problem. Naval Research Logistics\nQuarterly (1955)\n[37] Lai, X., Tian, Z., Chen, Y., Li, Y., Yuan, Y., Liu, S., Jia, J.: Lisa: Reasoning segmentation via\nlarge language model. In: CVPR (2024)\n[38] Lai, Y., Zhong, J., Li, M., Zhao, S., Li, Y., Psounis, K., Yang, X.: Med-r1: Reinforcement\nlearning for generalizable medical reasoning in vision-language models. TMI (2026)\n[39] Lee, Y.: Qwen2-vl-finetune (2024), https://github.com/2U1/Qwen2-VL-Finetune\n11\n\n\f[40] Li, C., Wong, C., Zhang, S., Usuyama, N., Liu, H., Yang, J., Naumann, T., Poon, H., Gao,\nJ.: Llava-med: Training a large language and vision assistant for biomedicine in one day. In:\nNeurIPS (2023)\n[41] Li, J., Li, D., Savarese, S., Hoi, S.: Blip-2: Bootstrapping language-image pre-training with\nfrozen image encoders and large language models. In: ICML (2023)\n[42] Li, L., Zhao, Z., Wang, R., Poria, S., Bing, L.: Silkie: Preference distillation for large visual\nlanguage models. arXiv preprint arXiv:2312.10665 (2024)\n[43] Li, L., Ma, Q., Ouyang, C., Li, Z., Meng, Q., Zhang, W., Qiao, M., Kyriakopoulou, V., Hajnal,\nJ.V., Rueckert, D., et al.: Robust segmentation via topology violation detection and feature\nsynthesis. In: MICCAI (2023)\n[44] Li, L., Ma, Q., Oyang, C., Paetzold, J.C., Rueckert, D., Kainz, B.: Topology optimization in\nmedical image segmentation with fast χ euler characteristic. TMI (2025)\n[45] Li, L., Wang, H., Baugh, M., Ma, Q., Zhang, W., Ouyang, C., Rueckert, D., Kainz, B.:\nUniversal topology refinement for medical image segmentation with polynomial feature\nsynthesis. In: MICCAI (2024)\n[46] Li, M., Chen, Y., Ji, Z., Xie, K., Yuan, S., Chen, Q., Li, S.: Image projection network: 3d to 2d\nimage segmentation in octa images. TMI (2020)\n[47] Lin, T.Y., Maire, M., Belongie, S., Hays, J., Perona, P., Ramanan, D., Dollár, P., Zitnick, C.L.:\nMicrosoft coco: Common objects in context. In: ECCV (2014)\n[48] Liu, H., Li, C., Li, Y., Lee, Y.J.: Improved baselines with visual instruction tuning. In: CVPR\n(2024)\n[49] Liu, H., Li, C., Wu, Q., Lee, Y.J.: Visual instruction tuning. In: NeurIPS (2023)\n[50] Liu, S., Zeng, Z., Ren, T., Li, F., Zhang, H., Yang, J., Jiang, Q., Li, C., Yang, J., Su, H., et al.:\nGrounding dino: Marrying dino with grounded pre-training for open-set object detection. In:\nECCV (2024)\n[51] Liu, W., Li, A., Wu, Z., Li, Y., Ge, B., Lan, G., Chen, S., Li, M., Liu, Y., Yuan, X., Dong,\nN.: Revealing hierarchical structure of leaf venations in plant science via label-efficient\nsegmentation: Dataset and method. In: IJCAI (2024)\n[52] Liu, X., Tan, H., Wang, W., Chen, Z.: Deep learning based retinal vessel segmentation and\nhypertensive retinopathy quantification using heterogeneous features cross-attention neural\nnetwork. Frontiers in Medicine (2024)\n[53] Liu, Y., Yao, J., Lu, X., Xie, R., Li, L.: Deepcrack: A deep hierarchical feature learning\narchitecture for crack segmentation. Neurocomputing (2019)\n[54] Liu, Y., Peng, B., Zhong, Z., Yue, Z., Lu, F., Yu, B., Jia, J.: Seg-zero: Reasoning-chain guided\nsegmentation via cognitive reinforcement. arXiv preprint arXiv:2503.06520 (2025)\n[55] Liu, Y., Qu, T., Zhong, Z., Peng, B., Liu, S., Yu, B., Jia, J.: Visionreasoner: Unified reasoningintegrated visual perception via reinforcement learning. In: ICLR (2026)\n[56] Liu, Z., Sun, Z., Zang, Y., Dong, X., Cao, Y., Duan, H., Lin, D., Wang, J.: Visual-rft: Visual\nreinforcement fine-tuning. In: ICCV (2025)\n[57] Lux, L., Berger, A.H., Weers, A., Stucki, N., Rueckert, D., Bauer, U., Paetzold, J.C.: Topograph: An efficient graph-based framework for strictly topology preserving image segmentation. arXiv preprint arXiv:2411.03228 (2024)\n[58] Mnih, V.: Machine Learning for Aerial Image Labeling. Ph.D. thesis, University of Toronto\n(2013)\n12\n\n\f[59] Moor, M., Huang, Q., Wu, S., Yasunaga, M., Dalmia, Y., Leskovec, J., Zakka, C., Reis, E.P.,\nRajpurkar, P.: Med-flamingo: a multimodal medical few-shot learner. In: Machine learning for\nhealth (ML4H) (2023)\n[60] Mosinska, A., Marquez-Neila, P., Koziński, M., Fua, P.: Beyond the pixel-wise loss for\ntopology-aware delineation. In: CVPR (2018)\n[61] Mou, L., Zhao, Y., Fu, H., Liu, Y., Cheng, J., Zheng, Y., Su, P., Yang, J., Chen, L., Frangi,\nA.F., et al.: Cs2 -net: Deep learning segmentation of curvilinear structures in medical imaging.\nMedIA (2021)\n[62] OpenAI: Gpt-4v(ision) system card. OpenAI Technical Report (2023)\n[63] Ouyang, L., Wu, J., Jiang, X., Almeida, D., Wainwright, C.L., Mishkin, P., Zhang, C., Agarwal,\nS., Slama, K., Ray, A., et al.: Training language models to follow instructions with human\nfeedback. In: NeurIPS (2022)\n[64] Pan, J., Liu, C., Wu, J., Liu, F., Zhu, J., Li, H.B., Chen, C., Ouyang, C., Rueckert, D.:\nMedvlm-r1: Incentivizing medical reasoning capability of vision-language models (vlms) via\nreinforcement learning. In: MICCAI (2025)\n[65] Peng, Z., Wang, W., Dong, L., Hao, Y., Huang, S., Ma, S., Wei, F.: Kosmos-2: Grounding\nmultimodal large language models to the world. In: ICLR (2024)\n[66] Qwen Team: Qwen3.5: Towards native multimodal agents (February 2026), https://qwen.\nai/blog?id=qwen3.5\n[67] Radford, A., Kim, J.W., Hallacy, C., Ramesh, A., Goh, G., Agarwal, S., Sastry, G., Askell,\nA., Mishkin, P., Clark, J., et al.: Learning transferable visual models from natural language\nsupervision. In: ICML (2021)\n[68] Rafailov, R., Sharma, A., Mitchell, E., Ermon, S., Manning, C.D., Finn, C.: Direct preference\noptimization: Your language model is secretly a reward model. In: NeurIPS (2023)\n[69] Ronneberger, O., Fischer, P., Brox, T.: U-net: Convolutional networks for biomedical image\nsegmentation. In: MICCAI (2015)\n[70] Sarch, G.H., Saha, S., Khandelwal, N., Jain, A., Tarr, M.J., Kumar, A., Fragkiadaki, K.:\nGrounded reinforcement learning for visual reasoning. In: NeurIPS (2025)\n[71] Schulman, J., Wolski, F., Dhariwal, P., Radford, A., Klimov, O.: Proximal policy optimization\nalgorithms. arXiv preprint arXiv:1707.06347 (2017)\n[72] Shao, Z., Wang, P., Zhu, Q., Xu, R., Song, J., Bi, X., Zhang, H., Zhang, M., Li, Y., Wu, Y.,\net al.: Deepseekmath: Pushing the limits of mathematical reasoning in open language models.\narXiv preprint arXiv:2402.03300 (2024)\n[73] Shen, C., Wei, W., Qu, X., Cheng, Y.: Satori-r1: Incentivizing multimodal reasoning with\nspatial grounding and verifiable rewards. arXiv preprint arXiv:2505.19094 (2025)\n[74] Shen, H., Liu, P., Li, J., Fang, C., Ma, Y., Liao, J., Shen, Q., Zhang, Z., Zhao, K., Zhang, Q.,\net al.: Vlm-r1: A stable and generalizable r1-style large vision-language model. arXiv preprint\narXiv:2504.07615 (2025)\n[75] Sheng, G., Zhang, C., Ye, Z., Wu, X., Zhang, W., Zhang, R., Peng, Y., Lin, H., Wu, C.:\nHybridflow: A flexible and efficient rlhf framework. arXiv preprint arXiv: 2409.19256 (2024)\n[76] Shit, S., Paetzold, J.C., Sekuboyina, A., Ezhov, I., Unger, A., Zhylka, A., Pluim, J.P., Bauer,\nU., Menze, B.H.: cldice-a novel topology-preserving loss function for tubular structure\nsegmentation. In: CVPR (2021)\n[77] Singh, A., Fry, A., Perelman, A., Tart, A., Ganesh, A., El-Kishky, A., McLaughlin, A., Low, A.,\nOstrow, A., Ananthram, A., et al.: Openai gpt-5 system card. arXiv preprint arXiv:2601.03267\n(2025)\n13\n\n\f[78] Staal, J., Abràmoff, M.D., Niemeijer, M., Viergever, M.A., Ginneken, B.V.: Ridge-based\nvessel segmentation in color images of the retina. IEEE Transactions on Medical Imaging\n(2004)\n[79] Stucki, N., Bürgin, V., Paetzold, J.C., Bauer, U.: Efficient betti matching enables topologyaware 3d segmentation via persistent homology. arXiv preprint arXiv:2407.04683 (2024)\n[80] Stucki, N., Paetzold, J.C., Shit, S., Menze, B., Bauer, U.: Topologically faithful image\nsegmentation via induced matching of persistence barcodes. In: ICML (2023)\n[81] Su, Y., Li, T., Liu, J., Ma, C., Ning, J., Tang, C., Ju, S., Ye, J., Chen, P., Hu, M., et al.:\nGmai-vl-r1: Harnessing reinforcement learning for multimodal medical reasoning. arXiv\npreprint arXiv:2504.01886 (2025)\n[82] Sun, Z., Shen, S., Cao, S., Liu, H., Li, C., Shen, Y., Gan, C., Gui, L.Y., Wang, Y.X., Yang, Y.,\net al.: Aligning large multimodal models with factually augmented rlhf. In: ACL (2024)\n[83] Tan, H., Ji, Y., Hao, X., Chen, X., Wang, P., Wang, Z., Zhang, S.: Reason-rft: Reinforcement\nfine-tuning for visual reasoning. In: NeurIPS (2025)\n[84] Team, Q.: Qwen3 technical report (2025), https://arxiv.org/abs/2505.09388\n[85] Tong, P., Brown, E., Wu, P., Woo, S., Iyer, A.J.V., Akula, S.C., Yang, S., Yang, J., Middepogu,\nM., Wang, Z., et al.: Cambrian-1: A fully open, vision-centric exploration of multimodal llms.\nIn: NeurIPS (2024)\n[86] Varghese, R., Sambath, M.: Yolov8: A novel object detection algorithm with enhanced\nperformance and robustness. In: 2024 International conference on advances in data engineering\nand intelligent computing systems (ADICS). IEEE (2024)\n[87] Wang, F., Zhou, W., Huang, J.Y., Xu, N., Zhang, S., Poon, H., Chen, M.: mdpo: Conditional\npreference optimization for multimodal large language models. In: EMNLP (2024)\n[88] Wang, H., Qu, C., Huang, Z., Chu, W., Lin, F., Chen, W.: Vl-rethinker: Incentivizing selfreflection of vision-language models with reinforcement learning. In: NeurIPS (2025)\n[89] Wang, P., Bai, S., Tan, S., Wang, S., Fan, Z., Bai, J., Chen, K., Liu, X., Wang, J., Ge, W.,\net al.: Qwen2-vl: Enhancing vision-language model’s perception of the world at any resolution.\narXiv preprint arXiv:2409.12191 (2024)\n[90] Wang, W., Lv, Q., Yu, W., Hong, W., Qi, J., Wang, Y., Ji, J., Yang, Z., Zhao, L., XiXuan, S.,\net al.: Cogvlm: Visual expert for pretrained language models. In: NeurIPS (2024)\n[91] Xia, J., Zang, Y., Gao, P., Li, S., Zhou, K.: Visionary-r1: Mitigating shortcuts in visual\nreasoning with reinforcement learning. arXiv preprint arXiv:2505.14677 (2025)\n[92] Xu, H., Nie, Y., Wang, H., Chen, Y., Li, W., Ning, J., Liu, L., Wang, H., Zhu, L., Liu, J., et al.:\nMedground-r1: Advancing medical image grounding via spatial-semantic rewarded group\nrelative policy optimization. In: MICCAI (2025)\n[93] Xu, J., Lo, S.Y., Safaei, B., Patel, V.M., Dwivedi, I.: Towards zero-shot anomaly detection and\nreasoning with multimodal large language models. In: CVPR (2025)\n[94] Xu, M., Hu, X., Abousamra, S., Li, C., Chen, C.: Match: Multi-faceted adaptive topoconsistency for semi-supervised histopathology segmentation. In: NeurIPS (2025)\n[95] Xu, M., Hu, X., Gupta, S., Abousamra, S., Chen, C.: Semi-supervised segmentation of\nhistopathology images with noise-aware topological consistency. In: ECCV (2024)\n[96] Yang, Y., He, X., Pan, H., Jiang, X., Deng, Y., Yang, X., Lu, H., Yin, D., Rao, F., Zhu,\nM., et al.: R1-onevision: Advancing generalized multimodal reasoning through cross-modal\nformalization. In: ICCV (2025)\n[97] You, H., Zhang, H., Gan, Z., Du, X., Zhang, B., Wang, Z., Cao, L., Chang, S.F., Yang, Y.:\nFerret: Refer and ground anything anywhere at any granularity. In: ICLR (2024)\n14\n\n\f[98] Yu, E., Lin, K., Zhao, L., Wei, Y., Peng, Y., Wei, H., Sun, J., Han, C., Ge, Z., Zhang, X., et al.:\nPerception-r1: Pioneering perception policy with reinforcement learning. In: NeurIPS (2025)\n[99] Yu, T., Yao, Y., Zhang, H., He, T., Han, Y., Cui, G., Hu, J., Liu, Z., Zheng, H.T., Sun, M., et al.:\nRlhf-v: Towards trustworthy mllms via behavior alignment from fine-grained correctional\nhuman feedback. In: CVPR (2024)\n[100] Yu, T., Zhang, H., Li, Q., Xu, Q., Yao, Y., Chen, D., Lu, X., Cui, G., Dang, Y., He, T., Feng,\nX., Song, J., Zheng, B., Liu, Z., Chua, T.S., Sun, M.: Rlaif-v: Open-source ai feedback leads\nto super gpt-4v trustworthiness. In: CVPR (2025)\n[101] Zhang, H., Li, F., Liu, S., Zhang, L., Su, H., Zhu, J., Ni, L.M., Shum, H.Y.: Dino:\nDetr with improved denoising anchor boxes for end-to-end object detection. arXiv preprint\narXiv:2203.03605 (2022)\n[102] Zhang, J., Huang, J., Yao, H., Liu, S., Zhang, X., Lu, S., Tao, D.: R1-vl: Learning to reason\nwith multimodal large language models via step-wise group relative policy optimization. In:\nICCV (2025)\n[103] Zhang, S., Xu, Y., Usuyama, N., Xu, H., Bagga, J., Tinn, R., Preston, S., Rao, R., Wei, M.,\nValluri, N., Wong, C., Tupini, A., Wang, Y., Mazzola, M., Shukla, S., Liden, L., Gao, J.,\nCrabtree, A., Piening, B., Bifulco, C., Lungren, M.P., Naumann, T., Wang, S., Poon, H.: A\nmultimodal biomedical foundation model trained from fifteen million image–text pairs. NEJM\nAI (2024)\n[104] Zheng, Y., Lu, J., Wang, S., Feng, Z., Kuang, D., Xiong, Y., Zhang, R.: Easyr1: An efficient,\nscalable, multi-modality rl training framework. https://github.com/hiyouga/EasyR1\n(2025)\n[105] Zhou, Z., Rahman Siddiquee, M.M., Tajbakhsh, N., Liang, J.: Unet++: Redesigning skip\nconnections to exploit multiscale features in image segmentation. TMI (2020)\n[106] Zhu, D., Chen, J., Shen, X., Li, X., Elhoseiny, M.: Minigpt-4: Enhancing vision-language\nunderstanding with advanced large language models. arXiv preprint arXiv:2304.10592 (2023)\n[107] Zhu, L., Ouyang, B., Zhang, Y., Cheng, T., Hu, R., Shen, H., Ran, L., Chen, X., Yu, L., Liu, W.,\net al.: Lens: Learning to segment anything with unified reinforced reasoning. arXiv preprint\narXiv:2508.14153 (2025)\n\n15\n\n\fTopo-R1: Detecting Topological Anomalies via\nVision-Language Models\n—Appendix—\n\nAppendix Overview\nFor ease of navigation, this appendix is organized as follows. Appendix 6 formalizes the evaluation\nprotocol, including the type-aware Hungarian matching, detection/classification/sample-level metrics,\nand localization quality. Appendix 7 provides implementation details that complement the main\npaper’s reward and training description, including the GRPO objective, accuracy and clDice rewards,\nthe closed-form localization penalty, hyperparameter summary, and compute resources. Appendix 9\nreports additional experiments: full few-shot tables, sample-level metrics (count accuracy, mPSF1), per-dataset and per-complexity breakdowns, the SFT→Topo-R1 improvement summary, and\nablations on raw IoU vs. tiered reward and on threshold selection. Appendix 10 describes test-set\ngeneration and splits: the image-level held-out split, train/test distribution match, error-count strata,\ninjection operators, topological verification, and bounding-box formatting. Appendix 11 details\nthe detection and VLM baselines (YOLOv8, DINO-DETR, AnomalyGPT) used in the main results\ntable. Appendix 12 ablates the SFT data fraction. Appendix 13 addresses robustness to ground-truth\nloops. Appendix 14 reports cross-domain leave-one-out generalization. Appendix 15 provides\nfull out-of-distribution results, including dataset composition, quantitative metrics, and qualitative\npredictions on HALVS leaf-vein imagery. Appendix 16 reports the stress test on real nnU-Net\nsegmentation outputs. Appendix 17 discusses limitations, failure modes, and the planned qualitative\ngallery. Appendix 18 discusses positive and negative broader impacts and mitigation strategies.\n\n6\n\nEvaluation Metrics and Protocol Details\n\nThis appendix provides formal definitions of the evaluation protocol and all metrics used in our\nexperiments. The model must produce a set of anomaly detections, each consisting of a bounding\nbox b = [x1 , y1 , x2 , y2 ] (normalized to [0, 1000] × [0, 1000]) and a type label t ∈ T , where\n  \\mathcal {T}=\\{\\texttt {broken\\_conn.},\\;\\texttt {spurious\\_conn.},\\; \\texttt {missing\\_br.},\\;\\texttt {extra\\_br.}\\}. \nN\n\nN\n\ng\np\nLet {gi }i=1\nand {pj }j=1\ndenote the ground-truth and predicted anomalies for a given sample,\nrespectively.\n\nMatching Protocol. All metrics are built upon a type-aware Hungarian matching that pairs predictions\nwith ground-truth annotations. For each anomaly type t ∈ T , we partition both sets by type (Gt , Pt ),\n(t)\nconstruct an IoU cost matrix C (t) ∈ R|Gt |×|Pt | with Cij = IoU(gi , pj ), and solve the optimal linear\nassignment to maximize total IoU. A match (gi , pj ) is accepted only if IoU(gi , pj ) ≥ τ . Because\nmatching is performed separately within each type, a prediction that correctly localizes an anomaly\nbut assigns the wrong type is counted as both an FP and an FN, ensuring that classification correctness\nis strictly enforced.\nDetection Metrics. Our primary metrics evaluate how well the model detects anomalies at varying\nlocalization strictness. Micro-averaged precision (P), recall (R), and F1 are computed by summing\nTP, FP, and FN across all test samples:\n  P = \\frac {\\mathrm {TP}}{\\mathrm {TP}+\\mathrm {FP}},\\quad R = \\frac {\\mathrm {TP}}{\\mathrm {TP}+\\mathrm {FN}},\\quad F1 = \\frac {2PR}{P+R}. \n\n(1)\n\nWe report P, R, and F1 at IoU thresholds τ ∈ {0.3, 0.5, 0.75} (Tables 1 and 7). To summarize perforP9\n1\nmance across thresholds, we compute the COCO-style average F1: aF1 = 10\nk=0 F 1 τ =0.50+0.05k ,\nwhich penalizes models that perform well at lenient thresholds but degrade at stricter ones (Tables 1,\n7, 12 and 13).\nClassification Metrics. To assess type discrimination beyond aggregate detection, we compute\nper-type F1 by accumulating TP/FP/FN separately for each anomaly type across all samples. Macro\n16\n\n\fF1 is the unweighted average:\n  \\text {Macro-F1} = \\frac {1}{|\\mathcal {T}^+|} \\sum _{t\\in \\mathcal {T}^+} F1_t, \\qquad \\mathcal {T}^+ = \\{t : \\mathrm {TP}_t + \\mathrm {FN}_t &gt; 0\\}. \n\n(2)\n\nThis ensures that rare types (e.g., extra_branch, 1181 instances) are weighted equally with common\ntypes (e.g., broken_connection, 4508 instances). Per-type and Macro F1 are reported in Tables 2,\n5 and 10.\nSample-Level Metrics. While the above metrics aggregate across the full test set, we also report\nper-sample statistics (Tables 8, 12 and 13). Anomaly Count Accuracy measures the fraction of samples\nPN\n(i)\n(i)\nwhere the predicted count exactly matches the ground truth: N1 i=1 ⊮[Npred = Ngt ]. Anomaly\nPN\n(i)\n(i)\nCount MAE captures the average deviation: MAE = N1 i=1 |Ngt − Npred |. Mean Per-Sample\nF1 (mPS-F1) computes F1 per sample using type-aware matching at threshold τ , then averages:\nPN\n(i)\nmPS-F1@τ = N1 i=1 F 1τ . Note that for anomaly-free samples (Ngt = Npred = 0), F 1 is\ndefined as 1.0; since 20.4% of test samples have no anomalies, mPS-F1 is systematically higher than\nmicro-averaged F1. Negative Sample Accuracy measures the fraction of anomaly-free samples where\nthe model correctly predicts Npred = 0, reflecting the ability to suppress false alarms.\nLocalization Quality. To measure the spatial precision of correctly detected anomalies, we report\nthe mean IoU among all matched pairs at τ = 0.5:\n  \\overline {\\mathrm {IoU}} = \\frac {1}{|\\mathcal {M}|} \\sum _{(g,p)\\in \\mathcal {M}} \\mathrm {IoU}(g,p), \n\n(3)\n\nwhere M is the set of accepted matches. This complements F1 by isolating localization accuracy\nfrom detection completeness. Different anomaly types exhibit different spatial extents: broken\nconnections are typically small (∼10–30 px), while spurious connections may span ∼100–500 px.\nFor small ground-truth boxes, even minor localization offsets cause IoU to fall below the threshold,\npartly explaining the consistently higher per-type F1 for spurious connections. We mitigate this by\nreporting at multiple IoU thresholds, including the lenient τ = 0.3.\n\n7\n\nImplementation Details\n\nThis section provides additional implementation details that complement the GRPO formulation and\nthe reward formulation described in the main paper (Sec. 3).\nGRPO Objective. We expand the GRPO update rule summarized in the main paper. Given the\nper-sample advantages Âi = (Ri − µG )/(σG + ϵstd ) defined in Sec. 3.1 of the main paper, the policy\nis updated by maximizing\n  \\mathcal {J}_{\\mathrm {GRPO}}(\\theta ) = \\mathbb {E}_{q \\sim \\mathcal {D},\\,\\{o_i\\}\\sim \\pi _{\\theta _{\\mathrm {old}}}(\\cdot \\mid q)} \\left [\\frac {1}{G}\\sum _{i=1}^{G} L_i^{\\mathrm {clip}} \\;-\\; \\beta \\, D_{\\mathrm {KL}}\\!\\left (\\pi _\\theta \\,\\|\\, \\pi _{\\mathrm {ref}}\\right )\\right ], \n\n(4)\n\nwith the per-sample clipped surrogate defined as\n  L_i^{\\mathrm {clip}} = \\min \\!\\Big ( r_i(\\theta )\\,\\hat {A}_i,\\;\\mathrm {clip}\\big (r_i(\\theta ),\\,1{-}\\varepsilon ,\\,1{+}\\varepsilon \\big )\\,\\hat {A}_i \\Big )\\,, \n\n(5)\n\nwhere ri (θ) = πθ (oi | q)/πθold (oi | q) is the importance-sampling ratio, with θold denoting the\npolicy parameters from the previous iteration. The clipping threshold ε bounds the policy update to\nprevent excessively large steps, while β controls the strength of the KL regularization toward the\nreference policy πref , which is initialized from the SFT checkpoint and held fixed throughout RL\ntraining.\nAccuracy Reward. Three corner cases are handled before Hungarian matching: (i) both Ngt = 0\nand Npred = 0 (correct negative) yields Racc = 1.0; (ii) Ngt = 0 but Npred &gt; 0 (all false positives)\nyields Racc = 0.0; (iii) Npred = 0 but Ngt &gt; 0 (all false negatives) yields Racc = 0.0. Otherwise,\npredictions and ground-truth errors are partitioned by type, and for each type t ∈ T an IoU cost matrix\nis constructed and solved via optimal linear assignment. Matched pairs with IoUij &lt; τm = 0.1 are\ndiscarded. Because matching is per-type, type accuracy is implicitly encoded in the assignment.\n17\n\n\fclDice Reward. For each matched pair (i, j) ∈ M, we apply separate crops to the corrupted\nand ground-truth masks (and their skeletons) using the predicted and ground-truth bounding boxes,\nrespectively. Since the two boxes generally differ in size, ground-truth crops are resized to match the\npredicted-side dimensions via nearest-neighbour interpolation to preserve binary mask values. The\nclDice score is then computed on the shape-aligned patches using precomputed skeletons.\nLocalization Penalty (Closed Form). The closed form of the localization penalty LocPen(·)\nsummarized in the main paper is:\n  \\mathrm {LocPen}(b) = \\begin {cases} 1 &amp; |b|/|I|\\le \\tau _{\\text {size}}\\\\[2pt] \\max \\!\\Big (0,\\; 1-\\lambda \\,\\dfrac {|b|/|I|-\\tau _{\\text {size}}}{1-\\tau _{\\text {size}}}\\Big ) &amp; \\text {otherwise,} \\end {cases} \n\n(6)\n\nwith τsize = 0.3 and λ = 0.8.\nHyperparameter Summary. Table 6 collects all reward hyperparameters for reproducibility.\nTable 6: Reward function hyperparameters.\nParameter\n\nSymbol\n\nValue\n\nTop-level weights\nFormat weight\nAccuracy weight\nTopological weight\n\nwfmt\nwacc\nwtopo\n\n0.10\n0.85\n0.05\n\nHungarian matching\nMatching IoU threshold\n\nτm\n\n0.10\n\nSmooth IoU-to-score mapping ϕ\nTier thresholds\nTier reward ceilings\nSmoothness exponent\n\n{τk }\n{rk }\nγ\n\n{0.3, 0.5, 0.7, 0.9}\n{0.25, 0.55, 0.8, 1.0}\n1.5\n\nclDice reward\nSize threshold\nPenalty scale\n\nτsz\nλ\n\n0.30\n0.80\n\nCompute Resources. The main experiments are performed on a node of 8×NVIDIA RTX A6000\nGPUs (48 GB VRAM each), with a small subset of runs (e.g., the largest backbone and selected\nablations) executed on a node of 8×NVIDIA A100 GPUs (80 GB VRAM each). SFT uses fullparameter fine-tuning across 8 GPUs; GRPO uses 8 GPUs with a group size of G = 4 rollouts per\nquery. Closed-source VLMs are evaluated via API.\n\n8\n\nImplementation Reference\n\nWe acknowledge the open-source codebases used in our implementation. For supervised fine-tuning,\nwe build upon Qwen2-VL-Finetune [39]. For GRPO training, we use EasyR1 [104], which is built\non HybridFlow [75].\n\n9\n\nAdditional Experiments\n\nWe present additional experimental analyses that complement the main results in the paper. These\nexperiments provide fine-grained breakdowns across few-shot prompting, error types, imaging\ndomains, training stages, and sample complexity, offering deeper insight into the strengths and\nlimitations of our approach.\nFew-Shot Evaluation Details. Table 7 reports the full few-shot evaluation across three open-source\nbackbones (Qwen2.5-VL-3B, Qwen3-VL-4B, Qwen3-VL-8B) under zero-, one-, three-, and fiveshot settings, summarized in the main paper (Section 4.2). Even with carefully designed prompts\nand in-context examples drawn from our training pool, the best result reaches only 0.5% F1@0.5,\nand the precision/recall numbers stay almost indistinguishable from random across IoU thresholds.\n18\n\n\fTable 7: Few-shot evaluation (1, 3, and 5 in-context examples). We report detection precision (P),\nrecall (R), and F1 at IoU thresholds 0.3, 0.5, and 0.75, along with the COCO-style average F1 (aF1,\nIoU 0.5:0.95). “ZS” denotes zero-shot inference. Both zero-shot and few-shot results are almost\nrandom, confirming that in-context learning alone cannot elicit topology-aware perception.\n@IoU=0.3\n\n@IoU=0.5\n\n@IoU=0.75\n\nModel\n\nSetting\n\nP\n\nR\n\nF1\n\nP\n\nR\n\nF1\n\nP\n\nR\n\nF1\n\naF1\n\nQwen2.5-VL-3B\n\nZS\n1-shot\n3-shot\n5-shot\n\n0.0\n0.7\n0.5\n2.3\n\n0.0\n0.1\n0.0\n0.2\n\n0.0\n0.1\n0.0\n0.3\n\n0.0\n0.3\n0.0\n0.4\n\n0.0\n0.0\n0.0\n0.0\n\n0.0\n0.0\n0.0\n0.1\n\n0.0\n0.0\n0.0\n0.0\n\n0.0\n0.0\n0.0\n0.0\n\n0.0\n0.0\n0.0\n0.0\n\n0.0\n0.0\n0.0\n0.0\n\nQwen3-VL-4B\n\nZS\n1-shot\n3-shot\n5-shot\n\n0.1\n1.4\n0.7\n1.0\n\n0.1\n1.2\n0.7\n0.9\n\n0.1\n1.3\n0.7\n0.9\n\n0.0\n0.5\n0.2\n0.3\n\n0.0\n0.4\n0.1\n0.3\n\n0.0\n0.5\n0.2\n0.3\n\n0.0\n0.1\n0.0\n0.0\n\n0.0\n0.0\n0.0\n0.0\n\n0.0\n0.0\n0.0\n0.0\n\n0.0\n0.1\n0.0\n0.1\n\nQwen3-VL-8B\n\nZS\n1-shot\n3-shot\n5-shot\n\n0.0\n1.0\n0.2\n0.9\n\n0.0\n0.2\n0.2\n0.5\n\n0.0\n0.3\n0.2\n0.6\n\n0.0\n0.4\n0.1\n0.3\n\n0.0\n0.1\n0.1\n0.2\n\n0.0\n0.1\n0.1\n0.2\n\n0.0\n0.0\n0.0\n0.0\n\n0.0\n0.0\n0.0\n0.0\n\n0.0\n0.0\n0.0\n0.0\n\n0.0\n0.0\n0.0\n0.1\n\nTable 8: Sample-level metrics on the in-distribution test set. Count Acc/MAE measures error counting\nability (% and mean absolute error). mPS-F1@0.5: mean per-sample F1 at IoU≥0.5 (%), capturing\npartial credit.\nCategory\n\nModel\n\nMethod\n\nCount Acc ↑\n\nCount MAE ↓\n\nmPS-F1@0.5 ↑\n\nClosedSource\n\nGPT-4o\nGPT-5.2\nGemini-2.5-Flash\nQwen3.5-Plus\n\nZS\nZS\nZS\nZS\n\n26.3\n20.3\n22.0\n15.5\n\n2.28\n2.24\n2.35\n2.27\n\n10.3\n8.6\n10.5\n5.2\n\nInternVL-2.5-2B\n\nZS\nSFT\nTopo-R1\n\n21.0\n42.8\n46.8\n\n3.10\n1.65\n1.28\n\n20.4\n21.9\n44.2\n\nQwen2.5-VL-3B\n\nZS\nSFT\nTopo-R1\n\n13.7\n50.2\n51.5\n\n3.23\n1.09\n1.04\n\n13.4\n27.3\n56.2\n\nQwen3-VL-4B\n\nZS\nSFT\nTopo-R1\n\n17.2\n42.0\n54.2\n\n2.49\n1.55\n1.02\n\n0.9\n37.7\n58.5\n\nQwen3-VL-8B\n\nZS\nSFT\nTopo-R1\n\n20.4\n41.5\n54.9\n\n3.18\n1.64\n1.06\n\n20.4\n35.7\n57.5\n\nOpenSource\n\nThis confirms that in-context learning alone cannot bridge the gap between general-purpose VLM\ncapabilities and the fine-grained, structured perception required by topological anomaly detection.\nSample-Level Metrics. Beyond the micro-averaged detection metrics reported in the main paper,\nTable 8 reports per-sample statistics: Anomaly Count Accuracy (fraction of test samples whose\npredicted anomaly count exactly matches the ground-truth count), Anomaly Count MAE (mean\nabsolute deviation in count), and mPS-F1@0.5 (mean per-sample F1 under type-aware matching at\nIoU≥0.5, which credits partial detection on each sample). Topo-R1 dominates both SFT and the\nclosed-source VLMs across all three sample-level metrics on every backbone, indicating that gains in\nmicro-averaged F1 translate directly into more reliable per-sample outputs rather than being driven\nby a few easy samples.\nPer-Dataset Analysis. Table 9 breaks down detection performance across the four imaging domains\nin our benchmark. Performance varies across domains: road networks yield the highest F1, likely due\nto their higher contrast and simpler background, while retinal vasculature (OCTA-3M, OCTA-6M)\nand crack patterns present greater challenges owing to lower contrast and more complex morphology.\nImportantly, Topo-R1 delivers consistent improvements over SFT in every domain, confirming that\nthe topology-aware reward generalizes across structurally diverse imaging modalities.\nImprovement Analysis. Table 10 quantifies the absolute improvement from SFT to Topo-R1 across\nthree aggregate metrics. The reinforcement learning stage yields large and consistent gains for all\nbackbone models, with the largest single improvement of +31.1 overall F1 observed for Qwen2.519\n\n\fTable 9: Detection F1 (%) by dataset at IoU=0.5. The benchmark spans four imaging domains:\nroad networks (Roads), retinal vasculature at two scales (OCTA-3M, OCTA-6M), and crack patterns\n(Crack).\nCategory\n\nModel\n\nMethod\n\nRoads ↑\n\nOCTA-3M ↑\n\nOCTA-6M ↑\n\nCrack ↑\n\nClosedSource\n\nGPT-4o\nGPT-5.2\nGemini-2.5-Flash\nQwen3.5-Plus\n\nZS\nZS\nZS\nZS\n\n0.1\n0.5\n0.5\n0.7\n\n0.1\n1.3\n2.3\n3.4\n\n0.3\n1.4\n1.2\n2.0\n\n0.1\n0.3\n0.5\n0.8\n\nInternVL-2.5-2B\n\nZS\nSFT\nTopo-R1\n\n0.0\n11.9\n42.6\n\n0.0\n12.2\n28.8\n\n0.0\n10.1\n25.3\n\n0.0\n7.3\n25.0\n\nQwen2.5-VL-3B\n\nZS\nSFT\nTopo-R1\n\n0.0\n12.5\n61.4\n\n0.0\n20.8\n44.2\n\n0.0\n17.9\n39.6\n\n0.0\n7.6\n40.1\n\nQwen3-VL-4B\n\nZS\nSFT\nTopo-R1\n\n0.0\n34.5\n63.8\n\n0.0\n30.6\n43.9\n\n0.0\n26.8\n40.0\n\n0.0\n17.4\n43.5\n\nQwen3-VL-8B\n\nZS\nSFT\nTopo-R1\n\n0.0\n23.7\n63.9\n\n0.0\n29.5\n43.4\n\n0.0\n26.9\n39.8\n\n0.0\n14.0\n41.1\n\nOpenSource\n\nTable 10: Absolute improvement (∆) from SFT to Topo-R1. F1 (%) at IoU=0.5 for overall, macro\n(unweighted per-type average), and COCO aF1.\nOverall F1@0.5\n\nMacro F1@0.5\n\naF1 (COCO)\n\nModel\n\nSFT\n\n∆\n\nSFT\n\n∆\n\nSFT\n\n∆\n\nInternVL-2.5-2B\nQwen2.5-VL-3B\nQwen3-VL-4B\nQwen3-VL-8B\n\n9.0\n11.9\n23.0\n20.2\n\n+23.0\n+31.1\n+22.2\n+23.7\n\n8.1\n9.8\n19.7\n16.2\n\n+17.2\n+29.3\n+21.7\n+24.3\n\n4.0\n5.3\n12.8\n11.8\n\n+13.1\n+16.1\n+11.9\n+12.5\n\nVL-3B. These results confirm that SFT alone provides only a limited foundation, and that GRPO\nwith our topology-aware composite reward is essential for achieving strong performance.\nEffect of Anomaly Complexity. Table 11 examines how detection performance scales with the\nnumber of ground-truth anomalies per sample. As expected, F1 decreases as the number of anomalies\nincreases from single-anomaly samples to complex multi-anomaly scenes (6–10 anomalies), reflecting\nthe increased difficulty of jointly localizing and classifying multiple anomalies. Nevertheless, TopoR1 maintains substantially higher performance than SFT across all complexity levels, demonstrating\nrobustness to varying anomaly density.\nAblation on Raw IoU Reward. We compare our non-linear tiered mapping ϕ against a rawIoU baseline that directly uses the IoU value as the reward score without any piecewise mapping\n(ϕ(IoU) = IoU). The two reward shapes are visualized in Fig. 5. As shown in Table 12, the raw IoU\nreward underperforms our design by roughly 27–35 points at F1@0.3 and over 15 points at F1@0.5\nacross both backbones, confirming that a flat, unshaped reward signal fails to incentivize the precise\nlocalization needed for high-IoU detections.\nAblation on Threshold Selection. We further compare our piecewise non-linear IoU-to-score\nmapping ϕ against two alternative threshold designs: Linear, which uses the same tier boundaries {0.3, 0.5, 0.7, 0.9} but with linear interpolation between adjacent tier rewards (no smoothing\nexponent), and COCO, which uses the standard COCO threshold set {0.5, 0.75, 0.9} with linear\ninterpolation. As shown in Table 13, our piecewise non-linear design achieves the best F1 across all\nIoU levels. Because IoU itself changes non-linearly during training, a linear mapping introduces noisy\nand inconsistent reward signals, whereas our piecewise non-linear design absorbs this variability\nwithin each tier, yielding more stable optimization and stronger overall performance.\n20\n\n\fTable 11: Detection F1 (%) by anomaly complexity at IoU=0.5. Samples grouped by ground-truth\nanomaly count: single (n=833), 2–5 (n=1712), 6–10 (n=835). Topo-R1 maintains strong performance\non complex multi-anomaly samples.\nModel\n\nMethod\n\nSingle\n\n2–5\n\n6–10\n\nInternVL-2.5-2B\n\nSFT\nTopo-R1\n\n18.8\n35.8\n\n9.7\n32.4\n\n7.8\n25.3\n\nQwen2.5-VL-3B\n\nSFT\nTopo-R1\n\n13.8\n47.6\n\n12.8\n47.1\n\n11.1\n38.2\n\nQwen3-VL-4B\n\nSFT\nTopo-R1\n\n33.2\n53.7\n\n25.5\n49.0\n\n19.4\n40.1\n\nQwen3-VL-8B\n\nSFT\nTopo-R1\n\n29.3\n53.5\n\n21.8\n47.3\n\n17.5\n38.7\n\n1.0\n\nContinuous IoU (baseline)\nOurs: (IoU)\n\n(0.9, 1.0)\n\nReward Score\n\n0.8\n\n(0.7, 0.8)\n\n0.6\n\n(0.5, 0.55)\n\n0.4\n(0.3, 0.25)\n\n0.2\n0.0\n0.0\n\nLow\n\nMedium\n\nHigh\n\nVery High\n\n0.4\n\n0.6\n\n0.8\n\n0.2\n\nIoU\n\n1.0\n\nFigure 5: IoU-to-score mapping ϕ for different reward designs. Our piecewise non-linear curve (TopoR1) provides sharp reward shaping near the tier boundaries, while the raw-IoU baseline produces a\nflat, unshaped slope.\n\n10\n\nTest Set Generation and Splits\n\nImage-Level Held-Out Split. We split each source dataset at the image level, not the patch level:\nevery source image is assigned exclusively to either the training pool or the test pool prior to patch\nextraction. As a consequence, no test patch shares a parent image with any training patch, and the\ntraining and test sets cannot overlap by adjacent crops of the same scene. After patch extraction\nand quality control, the held-out test set contains 4,246 samples drawn from disjoint source images\nof Roads, Crack, OCTA-3M, and OCTA-6M. The same image-level split convention is used for\nthe leave-one-domain-out experiments and for the OOD/leaf-vein and real-segmentation-output\nevaluations.\nTrain/Test Distribution Match. Although the train and test patches are drawn from disjoint source\nimages, both pools follow the same anomaly-injection protocol so that the test distribution is a fair\nsample of the same task. The anomaly-count strata (zero/single/2–5/6–10) and the per-type sampler\nare identical between train and test. This is what allows the SFT and SFT+RL comparisons to be\napples-to-apples; the OOD and real-segmentation-output evaluations test how Topo-R1 behaves when\nthe test distribution shifts beyond this protocol.\nAnomaly-Count Strata. The number of injected anomalies per sample is drawn from four bins:\n0 (∼20%, negative samples), 1 (∼20%), 2–5 (∼40%), and 6–10 (∼20%), forming a curriculum of\nincreasing complexity. Within each non-zero bin a balanced sampler preferentially selects underrepresented anomaly types so that the four anomaly classes are represented at roughly equal frequency\nin the final dataset.\nInjection Operators. Broken connections erase a short transverse segment of connected skeleton\npixels at a randomly sampled interior point; spurious connections bridge two distinct components\nwith a thin line; missing branches remove pixels within a small region around a skeleton endpoint;\n21\n\n\fTable 12: Ablation on raw IoU vs. non-linear tiered reward. All metrics in %; bold: best per\nbackbone.\nBackbone\n\nReward\n\nF1@.3\n\nF1@.5\n\nF1@.75\n\naF1\n\nmPS-F1@.5\n\nCnt.Acc\n\nQwen2.5-VL-3B\n\nRaw IoU\nTopo-R1\n\n22.4\n57.8\n\n14.9\n43.0\n\n5.6\n18.4\n\n6.9\n21.4\n\n29.9\n56.2\n\n50.1\n51.5\n\nQwen3-VL-8B\n\nRaw IoU\nTopo-R1\n\n29.7\n57.0\n\n22.3\n43.9\n\n12.3\n22.4\n\n12.6\n24.3\n\n37.5\n57.5\n\n43.5\n54.9\n\nTable 13: Ablation on IoU threshold set (Qwen3-VL-4B). Linear: piecewise linear interpolation\nbetween tier boundaries; COCO: thresholds {0.5, 0.75, 0.9}. All metrics in %; bold: best per\ncolumn.\nMethod\n\nF1@.3\n\nF1@.5\n\nF1@.75\n\naF1\n\nmPS-F1@.5\n\nCnt.Acc\n\nSFT\nLinear\nCOCO\nTopo-R1\n\n31.9\n56.8\n57.2\n58.3\n\n23.0\n43.0\n43.5\n45.2\n\n12.1\n20.7\n21.7\n22.5\n\n12.8\n23.2\n23.9\n24.7\n\n37.7\n57.1\n57.5\n58.5\n\n42.0\n54.9\n54.1\n54.2\n\nand extra branches extend a synthetic line from a foreground pixel into the background. The selection\nof injection sites need not be perfectly precise: the topological verification step (below) automatically\nrejects any operator application that fails to produce the expected Betti-number change. In multianomaly patches, the morphological skeleton is recomputed after each injection to account for prior\nperturbations.\nTopological Verification. For each injection we compute Betti numbers (β0 , β1 ) before and after\nthe modification: a broken connection must increase β0 or decrease β1 ; a spurious connection must\ndecrease β0 or increase β1 ; missing and extra branches must alter either invariant. Failed injections\nare retried up to 20 times with a fresh random site; if all retries fail the patch is discarded.\nBounding-Box Formatting. Bounding boxes are derived from the connected components of the\npixel-wise difference between the original and corrupted masks, then normalized to [0, 1000] and\nfiltered to keep only those whose normalized width and height both lie in [10, 900]. The ground-truth\nanswer for each sample is a list of dictionaries with Position and ErrorType fields, wrapped in\n&lt;answer&gt;...&lt;/answer&gt; tags and sorted in canonical type order (broken → spurious → missing →\nextra); negative (anomaly-free) samples return an empty list [].\n\n11\n\nDetection / VLM Baseline Implementation Details\n\nThis section provides implementation details for the detection and VLM baselines reported in Table 1\nof the main paper.\nNo GT mask at test time. All baselines operate in the same setting as Topo-R1: they receive only\n(I, M ) at test time and must decide which regions of M are inconsistent with the structure visible\nin I, with no reference mask and no GT supervision. We deliberately do not include a classical\npersistent-homology or skeleton-differencing pipeline as a baseline: the oracle form of either method\n(computing the symmetric topological difference between M and the GT mask) is precisely the\nprocedure used to generate our anomaly labels in Sec. 3.2 and would trivially recover labels at\nnear-100% F1, while a GT-free heuristic version (e.g., low-persistence + Canny-edge gate) is just a\nstrictly weaker variant of the same operator and provides no independent comparison signal.\nDetector-on-Concat (YOLOv8 / DINO-DETR). We train YOLOv8-s and DINO-DETR-R50 on\n4-channel inputs constructed by concatenating the RGB image with the binary mask. Both detectors\nare trained on the same training samples and bounding-box labels as Topo-R1 (single-class detection\nwith a 4-way type head). All hyperparameters follow each detector’s default training recipe; we tune\nlearning rate via held-out validation samples drawn from the training pool.\nAnomalyGPT. We use the publicly released AnomalyGPT [24] checkpoint with prompts adapted to\nask for typed bounding-box outputs in our schema. No fine-tuning is performed.\n22\n\n\f12\n\nSFT Data Fraction Ablation\n\nSetup. To quantify how Topo-R1’s gains depend on the amount of supervised fine-tuning data, we\nvary the SFT subset size ρ ∈ {25%, 50%, 100%} of the 12,900-sample SFT pool, then run the same\nGRPO stage on the full RL pool. The GRPO data is held fixed across ρ. Table 14 reports the results\non the in-distribution test set (Qwen3-VL-4B).\nTable 14: SFT data-fraction ablation (Qwen3-VL-4B). ρ: fraction of SFT samples used; GRPO\ndata fixed.\nρ\n\nF1@.3\n\nF1@.5\n\nF1@.75\n\naF1\n\n25%\n50%\n100%\n\n53.8\n56.7\n58.3\n\n41.2\n43.6\n45.2\n\n19.4\n21.0\n22.5\n\n21.6\n23.3\n24.7\n\nObservations. Topo-R1 remains strong even at ρ = 25%, retaining over 91% of the F1@0.5 of\nthe full-data variant, and degrades only gradually as ρ decreases. This suggests that the SFT stage\nprimarily provides schema bootstrapping; the bulk of the topology-aware capability is shaped by the\nGRPO stage, in line with the SFT-only / RL-only / two-stage comparison in the main paper.\n\n13\n\nRobustness to Ground-Truth Loops\n\nA natural concern is whether Topo-R1 conflates a spurious connection (a bridge that increases β1\nrelative to the clean reference) with a ground-truth loop that is part of the true topology, e.g., a closed\ncycle in a road network or an arteriovenous loop in retinal vasculature.\nConceptual Distinction. By construction of the data pipeline, a spurious connection is always a\nperturbation relative to a clean reference mask: ground-truth loops are never injected and never\nlabeled as spurious. At inference, the model has no access to a reference; it must instead use the\noriginal image as the contextual reference and decide whether a bridge in the mask has corresponding\nvisual evidence in the image. Training therefore exposes the model to many clean masks (negative\nsamples and unperturbed regions) that contain legitimate loops, teaching it to associate \"loops with\ncorresponding visual support\" with the negative class.\nEmpirical Test on GT-Loop Samples. To test this empirically, we curate a stratified subset of the\nRoads test pool consisting of samples whose ground-truth mask contains at least one closed cycle\n(i.e., β1 ≥ 1). We split this subset into two groups and report Topo-R1 (Qwen3-VL-4B) results in\nTable 15: (i) clean GT: GT mask kept as-is, no error injected, measures false-positive rate of Topo-R1\nfalsely flagging GT loops as spurious; (ii) injected near GT loop: a synthetic spurious connection\ninjected in the same patch, measures whether Topo-R1 flags only the injected error and not the GT\nloop.\nTable 15: Robustness to ground-truth loops on Roads (Qwen3-VL-4B). FP-rate on GT loops:\nfraction of GT loops that Topo-R1 incorrectly flags as spurious; Injected-only F1@.5: F1 measured\nonly against the injected error (lower is better for false alarms on the GT loop, higher is better for\ndetection of the injected error).\nSubset\n(i) Clean GT (no injection)\n(ii) Injected near GT loop\n\nFP-rate on GT loops ↓\n\nInjected-only F1@.5 ↑\n\n4.7%\n7.3%\n\n—\n41.5\n\nObservations. Topo-R1 falsely flags only a small fraction of ground-truth loops as spurious (4.7%\non clean GT, 7.3% when an injected spurious connection is present nearby). When an injection is\npresent, the injected-only F1@0.5 of 41.5 is comparable to the overall F1@0.5 on the full test set\n(45.2), indicating that the presence of GT loops in the same patch does not collapse Topo-R1’s ability\nto localize and classify the injected error.\n23\n\n\f14\n\nCross-Domain Leave-One-Out Generalization\n\nSetup. To probe whether the gains of Topo-R1 transfer to an entirely unseen imaging domain, rather\nthan only benefiting from training on all three domains jointly, we conduct a leave-one-domain-out\nevaluation. Concretely, we hold out one of {Roads, Crack, Retina} as the test domain, and train\nTopo-R1 only on the remaining two domains under the standard two-stage pipeline (full-parameter\nSFT followed by GRPO with our composite reward). This protocol differs from the main per-dataset\nbreakdown (Table 9), in which the model is jointly trained on all three domains. Test data and labels\nare produced by the same automated pipeline as the in-distribution test set, with image-level held-out\nsplits.\nResults. Table 16 reports F1@0.5 of SFT-only and Topo-R1 on each held-out test domain (Qwen3VL-4B). Across all three settings, Topo-R1 consistently outperforms SFT-only by a large margin\non the unseen domain, indicating that the topology-aware perception learned from any two source\ndomains transfers to the third without explicit exposure to its imagery during training. The absolute\nnumbers are lower than the in-distribution results in Table 9, as expected for a strictly held-out\ndomain, but the relative gain pattern (Topo-R1 doubles or triples SFT-only) is preserved.\nTable 16: Leave-one-domain-out generalization (F1@0.5, %). The held-out domain is excluded\nfrom training; the other two domains are used to train under the standard SFT+GRPO pipeline.\nBackbone: Qwen3-VL-4B.\nMethod\n\nRoads (held-out)\n\nCrack (held-out)\n\nRetina (held-out)\n\nSFT only\nTopo-R1\n\n21.6\n43.7\n\n11.4\n30.2\n\n16.8\n34.6\n\nDiscussion. The pattern is consistent across the three splits: holding out Crack incurs the largest\nabsolute drop (Crack masks are sparser and less continuous than the other two domains, so twodomain training does not fully cover its statistics), while holding out Roads or Retina yields milder\ndegradation. Importantly, in every case Topo-R1 retains a clear advantage over SFT-only on the\nunseen domain, which suggests the model’s notion of \"topological inconsistency between mask and\nimage\" is not memorized per dataset but rather learned as a transferable concept.\n\n15\n\nOut-of-Distribution Results\n\nOOD Composition. The OOD test set comprises 1,564 256×256 samples drawn from two sources\nunseen during training (in-distribution training spans Roads, Crack, OCTA): (i) HALVS [51], the\nHierarchical Annotated Leaf Vein Segmentation dataset, providing 147 images of Soybean, Sweet\nCherry, and London Planetree leaves, sampled into 1,364 samples; and (ii) DRIVE [78], the Digital\nRetinal Images for Vessel Extraction benchmark, providing 20 color fundus images (training-split\nIDs 21–40, held out from any model training in this paper) sampled into 200 samples. HALVS\nintroduces chlorophyll texture and hierarchical reticulate venation absent from the training pool, and\nDRIVE differs from the training-set OCTA imagery in modality, contrast, and color statistics, even\nthough both depict retinal vasculature. Source masks are corrupted via the same automated pipeline\nof Sec. 3.2 with Betti-number verification, stratified into the same four anomaly-count strata as the\nin-distribution test set; the breakdown is given in Table 17.\nTable 17: Composition of the OOD test set: 1,564 samples drawn from HALVS leaf-vein and\nDRIVE retinal-fundus images, stratified by ground-truth anomaly count per sample.\nStratum\n\n#Samples\n\nHALVS\n\nDRIVE\n\nno_anomaly\nsingle_anomaly\nmulti_anomaly_2_5\nmulti_anomaly_6_10\n\n314\n312\n626\n312\n\n274\n272\n546\n272\n\n40\n40\n80\n40\n\n0\n1\n2–5\n6–10\n\nTotal\n\n1564\n\n1364\n\n200\n\n—\n\n24\n\n#Anomalies / sample\n\n\fQuantitative Results. Table 18 reports detection and per-type metrics on this OOD test set. TopoR1 retains a large margin over both SFT and the closed-source VLMs, and the per-type pattern\n(broken / missing / extra harder than spurious) mirrors what is observed on the in-distribution test\nset, suggesting that the failure modes of Topo-R1 are not domain-specific. Crucially, since the visual\nstatistics of HALVS and DRIVE are fundamentally distinct from our training imagery, this transfer\ncannot be explained by shared low-level appearance and instead supports the claim that Topo-R1 has\nlearned a transferable notion of topological inconsistency between mask and image.\nTable 18: OOD evaluation on HALVS leaf-vein and DRIVE retinal-fundus imagery (Qwen3-VL4B).\nMethod\n\nF1@.3\n\nF1@.5\n\nF1@.75\n\naF1\n\nMacro F1@.5\n\nmPS-F1@.5\n\nGPT-5.2 (zero-shot)\nGemini-2.5-Flash (zero-shot)\nSFT only\nTopo-R1\n\n2.7\n2.9\n33.9\n58.4\n\n1.0\n1.2\n24.4\n45.5\n\n0.1\n0.1\n14.8\n23.2\n\n0.3\n0.4\n14.9\n25.5\n\n0.8\n0.9\n21.8\n43.2\n\n6.4\n7.1\n36.6\n42.4\n\nQualitative Results on OOD Imagery. Fig. 6 presents qualitative predictions of Topo-R1 on\nthe held-out HALVS leaf-vein imagery, a domain entirely unseen during training. Despite the\nmarked shift in visual statistics—chlorophyll texture, hierarchical reticulate venation, and natural\nillumination patterns absent from the training pool—Topo-R1 correctly localizes broken and spurious\nconnections in the corrupted masks, with predicted boxes tightly tracking the topologically-critical\nskeleton regions rather than dispersing across the leaf surface. This visual evidence corroborates the\nquantitative gains of Table 18: the learned notion of “topological inconsistency between mask and\nimage” transfers from the training modalities (aerial roads, surface cracks, OCTA vasculature) to a\nstructurally analogous but visually distinct domain, supporting the claim that Topo-R1 captures a\ndomain-agnostic structural concept rather than a memorized appearance prior.\n\nFigure 6: Out-of-distribution qualitative results on leaf venation networks. Topo-R1 generalizes\nto an unseen domain (HALVS leaf veins) and correctly detects topological anomalies, such as broken\nand spurious connections, in the corrupted masks. From left to right: original image, ground-truth\nmask, corrupted mask with injected anomalies, and Topo-R1’s prediction. Red boxes denote predicted\nerror regions.\n\n16\n\nStress Test on Real Segmentation-Model Outputs\n\nThis section is not part of the released benchmark. It is an additional generalization stress test we run\nto assess whether Topo-R1’s gains transfer from curriculum-style synthetic perturbations to errors\nactually produced by a trained segmentation model in deployment.\n25\n\n\fSetup. We run a pretrained nnU-Net [31] on held-out Roads and Crack images, producing predicted\nmasks with the statistical character of a deployed segmentation pipeline. For every (image, prediction)\npair, we derive reference topological-anomaly annotations by computing the symmetric topological\ndifference between the predicted mask and the ground-truth segmentation, then convert connected\nresiduals to typed bounding boxes following the same protocol as the synthetic in-distribution test\nset. Predictions whose residual is below a minimum bounding-box size are discarded to remove\npixel-level border noise.\nComparison with Synthetic-Only Errors. Compared with synthetic perturbations, the real nnU-Net\noutputs contain (i) more long, drifting boundary errors that are not localized to a single skeleton site,\n(ii) many simultaneous small errors that interact, and (iii) type ambiguities (e.g., a thin gap may be a\nbroken connection or a missing branch depending on local context). Topo-R1’s gains over SFT are\ntherefore narrower than on the synthetic test set but remain large (Real-world block of Table 3 in the\nmain paper), indicating that the model’s representation of \"topological inconsistency between mask\nand image\" transfers from the curriculum-style synthetic errors to messier real-model failures.\n\n17\n\nLimitations and Failure Cases\n\nLimitations. Topo-R1 has three main limitations: (i) it is instantiated only on 2–8B-parameter\nVLMs, leaving its behavior at much larger scales unverified; (ii) the input image is the sole contextual\nreference at test time, so highly ambiguous inputs (e.g., severely occluded vessels) may yield\nlegitimate visual gaps being flagged—we therefore frame outputs as candidate flags for downstream\nverification; and (iii) training labels come from synthetic injections, and the stress test on real nnUNet outputs (Section 16) shows the synthetic-to-real gap is not catastrophic but does narrow the\nSFT→Topo-R1 margin. We leave scaling, multi-image references, and direct training on real model\nfailures to future work.\nFailure Modes. We identify three recurring failure modes of Topo-R1: (i) type confusion between\nextra-branch and spurious-connection when the new edge is short (less than ∼10 pixels) and aligned\nwith the local skeleton orientation; (ii) over-segmentation in dense regions, where multiple injections\noverlap and Topo-R1 produces a single union bounding-box that covers all of them; (iii) missed\nmicro-anomalies smaller than ∼5 pixels, particularly in OCTA where image contrast at that scale is\nintrinsically ambiguous. Each of these modes is consistent with the localized-yet-important nature of\ntopological perception discussed in the introduction: the harder cases concentrate at the spatial scale\nwhere pixel-level evidence is sparsest.\nQualitative Gallery. A qualitative gallery covering all four anomaly types and all four imaging\ndomains, plus representative failure cases, will be released alongside the benchmark.\n\n18\n\nBroader Impacts\n\nPositive Impacts. Topo-R1 outputs candidate flags of potential topological inconsistency in tubularstructure segmentations to assist human expert review. By directing users’ attention to suspicious\nregions, it may accelerate annotation throughput and reduce the per-sample burden on annotators and\nreviewers in domains where topological correctness is critical, such as biomedical imaging, remote\nsensing, and infrastructure inspection. The same candidate-flag signal can also feed downstream\nlearning pipelines as a sample-selection prior for active learning and as pseudo-supervision for\nself-supervised segmentation refinement, while final correction and labeling decisions remain with\ndomain experts.\nNegative Impacts and Mitigations. Topo-R1 outputs candidate flags, not final judgments; if\npractitioners treat its outputs as ground-truth corrections without expert review, they may inadvertently\nintroduce errors into safety-critical pipelines (e.g., clinical diagnosis, navigation systems). To mitigate\nthis, we explicitly frame the output as a candidate-flag for downstream verification (Sec. 3.2) and\nrecommend that any deployment include an expert-in-the-loop verification step. The syntheticcurriculum training also means Topo-R1 may underperform on rare real-world failure modes that\nfall outside the four anomaly types we synthesize; we encourage downstream users to validate on\ndomain-specific data before deployment.\n\n26\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"