"<!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>Random Walk on Pixel Manifolds for Anomaly\nSegmentation of Complex Driving Scenes\n\narXiv:2404.17961v2 [cs.CV] 15 Sep 2024\n\nZelong Zeng1\n\nand Kaname Tomite1\n\nSenseTime Japan, Tokyo, Japan\n{zengzelong,tomite}@sensetime.jp\n\nAbstract. In anomaly segmentation for complex driving scenes, stateof-the-art approaches utilize anomaly scoring functions to calculate anomaly\nscores. For these functions, accurately predicting the logits of inlier classes\nfor each pixel is crucial for precisely inferring the anomaly score. However, in real-world driving scenarios, the diversity of scenes often results\nin distorted manifolds of pixel embeddings in the space. This effect is\nnot conducive to directly using the pixel embeddings for the logit prediction during inference, a concern overlooked by existing methods. To\naddress this problem, we propose a novel method called Random Walk\non Pixel Manifolds (RWPM). RWPM utilizes random walks to reveal the\nintrinsic relationships among pixels to refine the pixel embeddings. The\nrefined pixel embeddings alleviate the distortion of manifolds, improving\nthe accuracy of anomaly scores. Our extensive experiments show that\nRWPM consistently improve the performance of the existing anomaly\nsegmentation methods and achieve the best results. Code is available at:\nhttps://github.com/ZelongZeng/RWPM.\nKeywords: Autonomous vehicles · Anomaly segmentation · Semantic\nsegmentation\n\n1\n\nIntroduction\n\nSemantic segmentation [9–11,13,40] plays a crucial role in the field of automated\ndriving, which can aid the automated driving system in perceiving and understanding the surrounding environment, thereby facilitating the system make accurate decision. Typically, the semantic segmentation models are trained on\nclosed-datasets with fixed semantic categories, showing good recognition capabilities for inlier classes (e.g., roads, vehicles, etc.). However, these models often\nfail to effectively detect potential outlier class objects (e.g., animals, fallen tires,\netc.) in real-world scenarios. Due to the critical importance of correctly detecting outlier class targets for the safety of autonomous driving, there is a growing\nfocus on addressing this task, namely, anomaly segmentation.\nThe standard paradigm for anomaly segmentation is assigning an anomaly\nscore to each pixel of an input image, where a higher score indicates a greater\nprobability that the pixel belongs to an outlier. Thus, the way used for estimating the anomaly score is crucial for anomaly segmentation methods. In\n\n\f2\n\nZ. Zeng et al.\n\n(i) An ideal manifold structure\n\nInlier pixel\n\n(ii) A distorted manifold structure\n\nInlier class prototype\n\n(iii) A refined manifold structure\n\nOutlier pixel\n\nFig. 1: A toy example about manifolds of pixel embeddings. The dashed circles indicate regions with high predicted logit to the corresponding inlier class. For\nthe pixel in these regions, its anomaly score is small. The prototype is the vector of\nnetwork weights of the classifier for the corresponding inlier class. (i) An ideal manifold structure. All inlier pixels are within the corresponding high logit region, whereas\nall outlier pixels are outside the areas. The anomaly score derived from the anomaly\nscoring function effectively discriminates between them. (ii) The manifolds are affected\nby the diversity of data, causing some inlier pixels to deviate from the corresponding\nhigh logit region, while some outlier pixels approach the regions. This results in false\npositives/negatives in the anomaly scores. However, pixels of the same class are\nstill in the same manifold, indicating that the manifold structure can be\nutilized to reveal the intrinsic relationships between pixels. (iii) Our RWPM\nutilizes random walks to capture the manifold structure to diffuse and update pixel\nembeddings. The embeddings within the same manifold tend to become more similar\nafter the updating. Fig 3 and Fig 4 respectively present the visualization of\nembedding distributions and the qualitative results of real examples, consistent with the description of this toy example.\n\nearly approaches, the anomaly score is often given by estimating the prediction uncertainty [16, 21, 27, 29], or by comparing the discrepancy between the\noriginal image and its reconstructed image generated based on the semantic\nsegmentation predictions [14, 15, 31, 36]. Different from early methods, recent\nmethods [12, 19, 33, 35, 37, 38] adopt Outlier Exposure (OE) strategy [22], which\ndirectly learn a pixel-level anomaly class to detect anomalous pixels that deviate\nfrom inlier classes. Specifically, these methods propose anomaly scoring functions to infer the anomaly scores and, based on the functions, leverage auxiliary\noutlier data to fine-tune a semantic segmentation model. The auxiliary outlier\ndata is typically generated by extracting outlier-class objects from other datasets\n(e.g., COCO [30]) and incorporating them into driving scene images [35, 37, 38].\nFurthermore, some of them [19,35,37] adopt mask-based segmentation networks\ninstead of pixel-based segmentation networks, achieving state-of-the-art (SOTA)\nperformance in anomaly segmentation. In this paper, we concentrate on the current methods using OE strategy. These methods indicate superior performance\nto the early methods using prediction uncertainty or image reconstruction.\nThe anomaly scoring functions in OE methods infer anomaly scores based on\nthe inlier class logit predictions from a semantic segmentation model. Specifically,\nthe logic of these functions can be represented as follows: when the predicted\nlogits of a pixel embedding are small across all inlier classes, indicating that the\n\n\fRWPM\n\n3\n\npixel is dissimilar to all inlier classes and is an outlier with high probability, the\nfunction yields a higher anomaly score. Therefore, accurately measuring the logits of each pixel is crucial for precisely evaluating the anomaly score. However, in\npractical open-world driving scenarios, various environmental conditions (such\nas lighting, road materials, etc.) and a diverse range of unknown class objects\nare present. During the inference phase, the diversity of driving scenes often results in distorted manifolds of pixel embedding in the embedding space, causing\npixel embeddings to deviate from the ideal distribution. This phenomenon has\nbeen validated in previous works of metric learning [3,25,41,42]. Since the logits\nare calculated from the inner product (i.e., cosine distance) of the pixel embeddings and the vectors of classifiers’ network weights, the distorted manifolds are\nnot conducive to directly using the pixel embeddings for the logit prediction.\nHowever, current anomaly segmentation methods ignore this issue and directly\nuse the pixel embeddings for the logit prediction in the inference phase, so the\nresults often fail to accurately reflect the anomaly score for the corresponding\npixels, causing high false positive/negative rate (see Fig. 1(i) and Fig. 1(ii)).\nIn this paper, we propose a novel method, called Random Walk on Pixel\nManifolds (RWPM), to alleviate the effect of data diversity on the manifolds.\nRWPM utilizes random walks to capture the manifold structure of the pixel\nembeddings to diffuse and update the embedding of each pixel. Since the structure of data manifolds implicitly contains the intrinsic relationship among data\npoints (see Fig. 1(ii)) [3,24,41,44], using random walks to measure the similarity\nbetween pixels on manifolds (i.e., distance on manifolds rather than Euclidean\ndistance) better reflects the intrinsic relationships between pixels. Consequently,\ndiffusing and updating pixel embeddings based on the similarity on manifolds\nresults in high similarity among pixels on the same manifold and low similarity\namong pixels on different manifolds. In the embedding space, this manifests as\npixel embeddings on the same manifold forming more compact clusters, thereby\nmitigating the distortion effect of data diversity on the manifolds, which facilitates the logit prediction (see Fig. 1(iii)). Furthermore, since the typically large\nnumber of pixels in an image, utilizing all pixels for the random walks results in\nsignificant memory and computational overhead, which damages the deployment\nand real-time execution of our RWPM. To address this issue, we introduce the\nPartial Random Walk strategy for RWPM, reducing memory consumption and\nenhancing the operational efficiency of RWPM. Note that, RWPM is proposed\nto use in the inference phase, thus no any additional training is required. Additionally, RWPM can be directly integrated into existing anomaly segmentation\nframework without the need for any extra modification to the network structure.\nExtensive experiments in various anomaly segmentation benchmarks of road\nscenes, namely Fishyscapes [5], Road Anomaly [31], and SMIYC [6], demonstrate that RWPM consistently improves the performance of existing methods,\nachieving SOTA results. To summarise, our contributions are the following:\n– We introduce that the diversity of driving scenes results in distorted manifolds of pixel embedding, thereby affecting the accuracy of anomaly scoring\n\n\f4\n\nZ. Zeng et al.\n\nfunctions in inferring anomaly scores. This problem is ignored by existing\nanomaly segmentation methods.\n– We propose the Random Walk on Pixel Manifolds (RWPM) that utilizes\nrandom walks to reveal the intrinsic relationships among pixels to refine the\npixel embeddings. This way alleviate the effect on manifolds caused by the\ndriving scene diversity.\n– We propose the Partial Random Walk strategy for RWPM to reduce the\nmemory consumption and improve the operational efficiency.\n\n2\n\nRelated Work\n\nAnomaly Segmentation. Anomaly segmentation aims to detect the outlier\nclass object in some specific scenes, such as complex driving scenes [6, 13, 31].\nExisting anomaly segmentation can be broadly divided into three categories:\n(a) Uncertainty-based methods, (b) Reconstruction-based methods and (c) Outlier Exposure methods. Uncertainty-based methods assume that outlier samples\nresult in low-confidence predictions. Based on this assumption, they focus on\nmeasuring the pixel-wise anomaly score by estimating the prediction uncertainty\nthrough various ways, such as ensembles [27], Bayesian estimation [16], maximum softmax probability [21, 29], and logit [20, 26]. Since segmentation models\nare trained on close-set, they may misclassify unseen classes with high confidence,\nleading uncertainty-based methods fail to detect anomalies. Reconstructionbased methods detect anomaly pixel by comparing the discrepancy between\nthe original image and its reconstructed image generated based on the semantic segmentation predictions [14,15,31,36]. These methods are challenged by the\naccuracy of segmentation prediction and the difficulties of training. Recent methods [7, 12, 19, 35, 37, 38] introduce the Outlier Exposure (OE) strategy [22] that\nutilizes auxiliary outlier data and anomaly scoring functions to learn models.\nThe auxiliary outlier data is the image from other datasets (e.g., COCO [30]),\nor cutting the outlier objects from other datasets and pasting them into the inlier scenes, and the anomaly scoring functions are used to calculate the anomaly\nscore for each pixel. Compared with previous works, OE strategy can reach better\nperformance. More recently, some OE methods [19,35,37] adopt mask-based segmentation networks [10, 11], instead of pixel-based segmentation networks [8, 9],\nas their backbones. Based on the powerful capability of mask-based networks\nin segmentation tasks, these methods significantly reduces false detection rates,\nachieving SOTA results. In this paper, we only concentrate on the OE methods.\nThe anomaly scoring functions employed in OE methods are based on the predicted logits of inlier classes. However, during the inference phase, the diversity\nof driving scenes results in distorted manifolds of pixel embeddings. As a result,\nthe scoring functions may fail to use the embeddings to accurately calculate\nlogits, thereby affects the accuracy of measuring anomaly scores. Current OE\nmethods ignore this problem. Our proposed RWPM addresses this problem by\nutilizing random walks on pixel manifolds to reveal the intrinsic relationships\namong pixels and refine the pixel embeddings. To the best of our knowledge,\nRWPM is the first work to propose and resolve this problem.\n\n\fRWPM\n\n5\n\nMining on Data Manifolds. Mining on data manifolds, also known as diffusion process, is a well-established technique commonly used in retrieval tasks [3,\n4, 25, 41, 44]. These works utilize random walks on data manifolds to capture\nthe data manifold structure for revealing the intrinsic relationship between data\npoints. The data manifold is constructed by a graph, where each node represents\na sample and each edge presents the connection between a node and its neighborhoods, weighted proportionally according to their distance. For retrieval tasks,\nthe images of the same object may be shown in different conditions (e.g., lighting\nand angles). This diversity often leads to the manifold structure is not conducive\nto accurately ranking using distance metrics directly [25,41]. Thus, diffusion process is used to diffuse the state (typically initialized to 1) of a query image on\nthe data manifolds. If a sample is on the same data manifold with the query\n(the distance on manifolds is close), then more energy of the state will flow to\nthat sample. Therefore, the final state of all samples can be seen as the accurate\nranking scores. Moreover, diffusion process is also adopted in semi-supervised\nlearning [24, 43] to propagate the label of labeled samples to unlabeled samples. Similarly, some unsupervised segmentation works [17, 23] utilize diffusion\nprocess to propagate the labels of manually annotated pixels to the unlabeled\npixels. These existing works utilize random walks on data manifolds for ranking or label propagation. Different from these works, our target is to solve the\nproblem occurring in pixel manifolds for anomaly scoring functions. We propose\ninnovatively using random walks to diffuse and update pixel embeddings, eliminating the effect of distorted manifolds directly at the embedding-level, thereby\nimproving the accuracy of subsequent processing.\n\n3\n\nProposed Method\n\n3.1\n\nPreliminaries\n\nWe denote an image space X ⊂ R3×H×W , where H and W are the height\nand width, respectively. During the inference phase, the goal for an anomaly\nsegmentation model f is to map an input image x ∈ X to an anomaly space,\ni.e., f : x 7→ Z ⊂ RH×W . Specifically, an anomaly segmentation model typically\nconsists of the backbone encoder-decoder F and the classifier C. For an input\nimage x, firstly, its pixel embedding map is encoded as p = F (x) ∈ Rd×H×W ,\nwhere d is the dimension of the pixel embedding. Then, its logit map l is predicted\nby l = C (F (x)) ∈ RK×H×W , where K is the number of inlier classes. Note\nthat, depending on the backbone network, the size of the embedding map and\nlogit map may sometimes be smaller than the original image. For the sake of\nconvenience in this paper, we do not make a special distinction. Finally, a scoring\nfunction is used to calculate the anomaly score map z ∈ Z based on the logit\nmap l.\nFor anomaly scoring functions, their logic can be represented as follows: when\nthe predicted logits of a pixel embedding are small across all inlier classes, indicating that the pixel is dissimilar to all inlier classes and is likely an outlier,\nthe function generates a higher anomaly score. For example, let’s define lh,w (k)\n\n\f6\n\nZ. Zeng et al.\nRWPM\n\nInput\n\nEncoder-Decoder\n\nPixel\nEmbeddings\n\nRandom\nWalk\nRandom\nWalk\n\nconcat\n\nRefined Pixel\nEmbeddings\n\nlogits\n\nAnomaly\nFunction\n\nRandom\nWalk\ndivide\n\nClassifier\n\nRandom\nWalk\n\nOutput\n\nFig. 2: Overview. This figure illustrates the application of RWPM to an existing\nanomaly segmentation framework during the inference phase. The red dashed box\nhighlights the RWPM part. First, the encoder-decoder is used to extract the pixel\nembedding map of the input image. The pixel embedding map are subsequently partitioned into n2 sub-maps. For each sub-map, we update its pixel embeddings by using\nrandom walks to obtain a refined sub-map. Finally, the refined sub-maps are concatenated to form the refined embedding map, which are then input into the subsequent\nnetwork structure. Notably, RWPM can be directly integrated into existing frameworks\nwithout requiring extra training or changes to the network structure.\n\nis the logit ofPa pixel xh,w for class k. The scoring function in PEBAL [38] is\nEh,w = − log k∈{1···K} exp (lh,w (k)). Obviously, when the anomaly score Eh,w\nis large, it indicates that the logits of the pixel across all inlier classes are small,\ni.e., the pixel xh,w is dissimilar from all inlier classes (see Section S.2 of the\nsupplementary material for the analysis of other anomaly scoring functions).\n3.2\n\nGraph Construction\n\nWe begin by constructing a graph to represent the manifolds of pixel embeddings. In our approach, we utilize an affinity matrix based on cosine similarity\nto characterize the relationships between pixels. Specifically, we first use the\nencoder-decoder component of an anomaly segmentation model to extract the\npixel embeddings p ∈ Rd×H×W . For ease of description and computation, we\nreshape the p as pr ∈ RHW ×d , where each row represents a pixel’s embedding.\nbr , i.e., p\nbri = pri /∥pri ∥. The affinity\nWe then normalize each row of pr to obtain p\nHW ×HW\nmatrix is define as W ∈ R\n, where each component is obtained by:\n  \\mathbf {W}_{ij}=\\left \\{\\begin {matrix} \\left \\langle \\widehat {\\boldsymbol {p}}^{r}_{i},\\widehat {\\boldsymbol {p}}^{r}_{j} \\right \\rangle &amp; i\\neq j\\\\ 0&amp; i=j \\end {matrix}\\right . , \\label {eq:affinity} \n\n(1)\n\nwhere ⟨·, ·⟩ denotes inner product, Wii = 0 is guaranteed to circumvent self-loops\nin the graph represented by W.\nTo mitigate the influence of noise, locally constrained random walk methods [24, 41, 42] adopt local constraints to construct the graph, i.e., each point\nis only connected to its locally nearest neighbors in the graph. Determining the\nnearest neighbors for each point traditionally involves applying nearest neighbor\nsearch algorithms, such as the k-NN algorithm. However, in anomaly segmentation tasks, the size of the graph is large and the graph is constructed online,\n\n\fRWPM\n\n7\n\nmaking the search algorithms impractical. To benefit from the local constraints,\nwe utilize a softmax function to normalize each row of W to obtain locally\nconstrained graph S:\n  \\mathbf {S}_{ij}=\\left \\{\\begin {matrix} \\frac {\\exp \\left ( \\mathbf {W}_{ij}/\\tau \\right )}{\\sum _{i=1,i\\neq j}^{HW}\\exp \\left (\\mathbf {W}_{ij}/\\tau \\right )} &amp; i \\neq j\\\\ 0 &amp; i=j \\end {matrix}\\right . , \\label {eq:affinity_softmax} \n\n(2)\n\nwhere τ is a temperature hyper-parameter, we set its value less than 1.0 to\nremove the effect of non-neighbor points. Compared to typical search algorithms,\nEq. 2 can impose local constraints more efficiently and effectively (see Section S.4\nof the supplementary material), and keep the scale of embedding in subsequent\nrandom walks.\n3.3\n\nRandom Walk Process\n\nNow we have constructed the graph S, we can start the random walks. Different\nfrom previous mining on data manifolds works utilizing random walks to propagate the states of known samples to other unknown samples, we use a random\nwalk to propagate the embedding between pixels on manifolds.\nWe first define mt ∈ RHW ×d as the updated pixel embeddings in the t-th\nstep of the random walks. m0 is initialized as pr . Then, each iteration step of\nthe random walks is described as:\n  \\begin {matrix} \\mathbf {m}^{t+1} = \\alpha \\mathbf {S} \\mathbf {m}^{t}+\\left (1-\\alpha \\right )\\mathbf {m}^{0}, &amp; \\alpha \\in \\left (0,1\\right ) \\end {matrix} , \\label {eq:random_walk} \n\n(3)\n\nwhere α is the probability continuing the random walk from the current state\nmt , while (1 − α) represents the probability of restarting from the initial state\nm0 . At each iteration, guided by the manifold structure, each pixel diffuses its\nembedding to other pixels while also receiving embedding from other pixels for\nupdating its own embedding. The updated pixel embedding can be seen as a\nweighted ensemble of other pixel embeddings. If pixels are similar on manifolds,\ntheir embeddings will gradually become similar. Mathematically speaking, the\nwhole iteration process can be written as a closed-from as follows [44]:\n  \\mathbf {m}^{\\infty } = \\left (1-\\alpha \\right )\\left (\\mathbf {I}-\\alpha \\mathbf {S}\\right )^{-1}\\mathbf {m}^{0} , \\label {eq:random_walk_inf} \n\n(4)\n\nwhere I ∈ RHW ×HW is an identity matrix. Finally, m∞ is used as the refined\npixel embeddings for the subsequent anomaly segmentation process.\n3.4\n\nPartial Random Walk\n\nWhen the size of the image is large, the size of the relevant matrices used for the\ncalculation of random walks becomes extremely huge as well. For instance, when\nthe image size is (512 × 1024), the size of matrix S reaches (524288 × 524288).\nThis significantly increases the memory consumption and computational time of\nRWPM, which is not conducive to online operation. Unfortunately, in the field\n\n\f8\n\nZ. Zeng et al.\n\nof autonomous driving, the image size of driving scenes is generally large. To\naddress this problem, we propose Partial Random Walk, which consists of the\nfollowing two aspects: embedding map partitioning and limited iteration.\nTo improve efficiency, we first propose embedding map partitioning strategy to reduce the size of the pixel embedding map used for random walks.\nSpecifically, for a pixel\nRd×H×W , we equally divide it\nn embedding 2map\no p ∈ H\nW\ninto n × n sub-maps p(1) , · · · , p(n ) ∈ Rd× n × n . Then, for each sub-map\nn\no\n2\nin p(1) , · · · , p(n ) , we follow the steps of Eq. 1 and Eq. 2 to construct their\nn\no\nHW\nHW\nsub-graphs S p(1) , · · · , S p(n2 ) ∈ Rd× n2 × n2 . We also attempted other methods to reduce the number of pixel embeddings, such as resize or superpixel [1].\nExperimental results indicate that embedding map partitioning is the optimal\nsolution among them (see Section 4.2).\nNext, for each sub-map p(i) , we perform random walks with the limited iteration strategy in their corresponding sub-graphs S p(i) . That is, we use Eq. 3 for\na small number of iterations instead of using the closed-form Eq. 4. We found\nthat a few iterations by using Eq. 3 are enough to yield high quality results. The\n2\ntime complexity of Eq. 3 with T iterations for each sub-map is O(T d( HW\nn2 ) ),\nHW 3\nHW 2\nwhile the time complexity of Eq. 4 is O(( n2 ) ) + O(d( n2 ) ). Since T d is\nmuch smaller than HW\nn2 , the limited iteration strategy can significantly improve\nthe efficiency of RWPM. After the random walks, we obtain the refined pixel\nembeddings sub-map mTp(i) for each sub-map p(i) . Finally, we concatenate the\nrefined sub-maps based on their positions to obtain the final refined pixel embedding map. Additionally, When n is large (observed experimentally as n &gt; 2),\ndue to spatial constraints, the baseline values of anomaly scores outputted on\neach sub-map may vary. Hence, a calibration is performed. For adjacent refined\n′\n′\nsub-maps p(i) and p(j) , we compute the average anomaly scores I and J of\n′\nall pixels on their adjacent edges, respectively. Subsequently, using p(i) as the\nI\nreference, we calculate the ratio J , and then multiply all anomaly scores on\n′\nsub-map p(j) by this ratio to achieve the calibration.\nFig. 2 shows the workflow of the proposed RWPM.\n\n4\n\nExperiment\n\nDataset: We evaluate our approach on three standard benchmark datasets for\nanomaly segmentation, i.e., Fishyscapes Lost&amp;Found [5], Road Anomaly [31]\nand Segment Me If You Can (SMIYC) [6]. Fishyscapes Lost&amp;Found has 100 validation images. The domain of this dataset is similar to that of Cityscapes [13]\ndataset. Road Anomaly dataset contains 60 images of real-world road scenes. Unlike the Fishyscapes Lost&amp;Found dataset, the images in Road Anomaly contain\nvarious classes and sizes of anomaly objects, making it more challenging. SMIYC\nconsists of two subsets, Anomaly track and Obstacle track. The Anomaly track\nfocuses on detecting large anomalous objects, while the Obstacle track emphasizes detecting small anomalous objects on the road. Anomaly track contains 10\n\n\fRWPM\n\n9\n\nvalidation images and 100 online test images, while Obstacle track contains 30\nvalidation images and 327 online test images. The Road Anomaly and SMIYC\ndatasets both exhibit high domain shifts compared to the Cityscapes dataset.\nEvaluation Metrics: Following the previous works, we evaluate our method on\nthe standard metrics for anomaly segmentation. On the Fishyscapes Lost&amp;Found\nand Road Anomaly, we adopt the the area under receiver operating characteristics (AUROC), average precision (AP), and the false positive rate at a true\npositive rate of 95% (FPR95). On the SMIYC, in addition to reporting per-pixel\nmetrics such as AP and FPR95, we also calculate results for component-level\nmetrics [6] such as the component-wise intersection over union (sIoU), positive\npredictive value (PPV), and mean F1.\nImplementation Details: To demonstrate the effectiveness of RWPM for\nanomaly segmentation methods, we selected representative methods from both\npixel-based and mask-based networks. For pixel-based methods, we chose PEBAL [38] and Balanced Energy [12]. These methods all utilize DeepLabv3+ [9]\nwith WideResnet38 as the backbone and were trained on the Cityscapes dataset\nand COCO OE images [38]. For mask-based methods, we selected RbA [35] and\nMask2Anomaly [37]. These methods use Mask2Former [10] with Swin-L [34] as\nthe backbone and were also trained on the Cityscapes and COCO OE images.\nAll experiments are conducted on a single NVIDIA RTX A6000 GPU. To ensure\nefficient implementation on a single GPU for all experiments, we adopt embedding map partitioning and limited iteration in all experiments. Specifically, for\npixel-based methods, we set the partitioning parameter n = 4. For mask-based\nmethods, as their embedding map size is smaller, we set n = 2. Additionally, for\nthe random walk, if not specifically emphasized, we set the number of iterations\nT = 20/T = 5 for the Road Anomaly/the other datasets and the transition\nprobability α = 0.99 for all datasets. The τ is set as 0.01. It is important to note\nthat our method is used in the inference phase. In other words, RWPM is directly applied to the pre-trained models of other existing anomaly segmentation\nmethods, thus requiring no additional training.\n4.1\n\nEffectiveness of RWPM\n\nFirst, to validate that RWPM can improve the performance of existing anomaly\nsegmentation methods, we integrate our approach with four recent representative methods, namely PEBAL [38], Balanced Energy [12], Mask2Anomaly [37]\nand RbA [35]. PEBAL and Balanced Energy employ pixel-based networks as\ntheir backbones, whereas Mask2Anomaly and RbA utilize mask-based networks\nas their backbones. We evaluate the results on both the Fishyscapes Lost&amp;Found\nvalidation set and Road Anomaly test set. The experimental results are reported\nin Table 1. These results demonstrate that our proposed RWPM consistently and\nsignificantly enhances the performance of existing anomaly segmentation methods, across different backbone architectures. Additional results and parameters\ndetails are shown in Section S.3 of the supplementary material.\n2\n\nWe carefully reproduce the experiments by using the official code.\n\n\f10\n\nZ. Zeng et al.\n\nTable 1: Comparison with strong and representative anomaly segmentation baselines across different backbone Architectures (Arch). Bold denotes the better results\nbetween using RWPM and not using RWPM with the same anomaly segmentation\nbaselines. † indicates that use the calibration in sub-map concatenation as described\nin Section 3.4.\nBenchmark→\n\nFishyscapes Lost&amp;Found\n\nMethod ↓\n\nArch\n\nPEBAL [38]\nPEBAL + RWPM† (Ours)\n\nRoad Anomaly\n\nAuROC↑\n\nAP↑\n\nFPR95↓\n\nAuROC↑\n\nAP↑\n\nFPR95↓\n\nPixel-based\nPixel-base\n\n98.96\n99.20\n\n58.81\n66.85\n\n4.77\n3.68\n\n87.63\n89.48\n\n45.10\n50.29\n\n44.58\n36.81\n\nBalanced Energy [12]\nBalanced Energy + RWPM† (Ours)\n\nPixel-based\nPixel-base\n\n99.03\n99.29\n\n67.07\n72.95\n\n2.93\n2.38\n\n88.31\n90.51\n\n41.48\n48.26\n\n41.46\n32.10\n\nMask2Anomaly [37]\nMask2Anomaly + RWPM (Ours)\n\nMask-based\nMask-base\n\n95.47\n95.48\n\n65.27\n65.38\n\n7.79\n7.33\n\n96.54\n97.44\n\n80.04\n80.09\n\n13.95\n7.45\n\nRbA [35]\nRbA + RWPM (Ours)\n\nMask-based\nMask-base\n\n98.62\n98.82\n\n70.81\n71.16\n\n6.30\n6.12\n\n97.99\n98.04\n\n85.42\n87.34\n\n6.92\n5.27\n\n2\n\nTable 2: Comparison with state-of-the-art anomaly segmentation methods across different backbone Architectures (Arch). Bold and underline denote the best and the\nsecond best results, respectively.\nBenchmark→\nMethod ↓\n\nFishyscapes L&amp;F Road Anomaly Anomaly Track Obstacle Track\nArch\n\nFPR95↓\n\nAP↑\n\nFPR95↓\n\nAP↑\n\nFPR95↓\n\nAP↑\n\nFPR95↓\n\nAP↑\n\nFPR95↓\n\n60.58\n22.74\n41.31\n4.65\n10.29\n43.47\n69.79\n58.81\n67.07\n70.61\n69.44\n52.03\n\n31.02\n33.49\n37.69\n24.36\n22.11\n13.11\n5.09\n4.77\n2.93\n2.52\n9.22\n20.51\n\n41.84\n25.82\n48.84\n34.42\n31.39\n45.10\n41.48\n71.61\n80.04\n66.67\n\n59.72\n49.47\n31.77\n47.90\n63.97\n44.58\n41.46\n17.74\n13.95\n13.42\n\n56.44\n46.8\n85.47\n37.52\n36.61\n77.96\n49.14\n83.49\n88.62\n76.3\n\n61.86\n39.5\n15.00\n70.76\n63.49\n9.81\n40.82\n11.68\n14.57\n93.9\n\n71.34\n3.4\n85.07\n0.82\n10.44\n87.08\n4.98\n85.93\n93.10\n66.9\n\n3.15\n36.8\n0.75\n46.38\n41.54\n0.24\n12.68\n0.58\n0.20\n17.9\n\n57.46\n24.69\n65.13\n65.56\n39.58\n77.91\n82.87\n65.48\n\n38.94\n39.82\n21.30\n19.78\n25.71\n8.13\n9.49\n36.43\n\nMask-based 70.81\nMask-based 71.16\n\n6.30\n6.12\n\n85.42\n87.34\n\n6.92\n5.27\n\n90.86\n92.00\n\n11.59\n10.15\n\n91.85\n93.30\n\n0.46\n0.28\n\n84.73\n86.00\n\n6.33\n5.46\n\nSynboost [15] (CVPR’21)\nPixel-based\nPixel-based\nSML [26] (ICCV’21)\nMeta-OOD [7] (ICCV’21)\nPixel-based\nLearning Embedding [5](IJCV’21) Pixel-based\nVoid Classifier [5](IJCV’21)\nPixel-based\nPixel-based\nGMMSeg-DL [28] (NeurIPS’22)\nDenseHybrid [18] (ECCV’22)\nPixel-based\nPEBAL [38] (ECCV’22)\nPixel-based\nBalanced Energy [12] (CVPR’23) Pixel-based\nRPL-CoroCL [33] (ICCV’23)\nPixel-based\nMask2Anomaly [37] (ICCV’23)\nMask-based\nM2F-EAM [19] (CVPRW’23)\nMask-based\nRbA [35] (ICCV’23)\nRbA + RWPM (Ours)\n\nAverage\n\nAP↑\n\nSecond, to further demonstrate the effectiveness of our RWPM, we compare\nit with other state-of-the-art (SOTA) methods. Specifically, we adopt the combination of RbA with RWPM as our instance approach for the comparison. In\naddition to the Fishyscapes and Road Anomaly datasets, we also evaluate our\napproach on a more challenging dataset, i.e., SMIYC online test set (Anomaly\ntrack and Obstacle track). SMIYC is characterized by its high domain shift and\ndiversity of objects. Table 2 presents the results. The results indicate that our\nmethod can consistently achieve high performance across various datasets, while\nthe previous SOTA methods fail to do so. We also compare all approaches by\ncomputing the average results of AP and FPR95. The results shows that our\napproach outperforms the previous methods and achieve the best results.\nFurthermore, in addition to pixel-level metrics, we also utilize componentlevel metrics [6] to evaluate performance on the SMIYC online test set. Compared\nto pixel-level metrics, component-level metrics provide a better evaluation of the\ndetection results for all anomalous objects in the scene. We report the results\nin Table 3. The experimental results show that RWPM significantly improves\n\n\fRWPM\n\n11\n\nthe performance of RbA in component-level metrics, surpassing other existing\nSOTA methods by a large margin. This indicates that RWPM can assist models\nin better detecting anomalous objects and achieving more precise localization of\nthese anomalies [6].\nTable 3: Component level evaluation: Comparison with state-of-the-art anomaly segmentation methods on the SMIYC online test set. Bold denote the best results.\nBenchmark→\n\nAnomaly Track\n\nObstacle Track\n\nMethod ↓\n\nArch\n\nsIoU ↑\n\nPPV↑\n\nmean F1↑\n\nsIoU ↑\n\nPPV↑\n\nmean F1↑\n\nSynboost [15] (CVPR’21)\nSML [26] (ICCV’21)\nMeta-OOD [7] (ICCV’21)\nVoid Classifier [5](IJCV’21)\nLearning Embedding [5](IJCV’21)\nJSRNet [39] (ICCV’21)\nDenseHybrid [18] (ECCV’22)\nPEBAL [38] (ECCV’22)\nRPL-CoroCL [33] (ICCV’23)\nMask2Fromer [37] (ICCV’23)\nMaskomaly [2] (BMVC’23)\n\nPixel-based\nPixel-based\nPixel-based\nPixel-based\nPixel-based\nPixel-based\nPixel-based\nPixel-based\nPixel-based\nMask-based\nMask-based\n\n34.68\n26.00\n49.31\n21.14\n33.86\n20.20\n54.17\n38.88\n49.76\n25.20\n55.4\n\n17.81\n24.70\n39.51\n22.13\n20.54\n29.27\n24.13\n27.20\n29.96\n18.20\n51.6\n\n9.99\n12.20\n28.72\n6.49\n7.90\n13.66\n31.08\n14.48\n30.16\n15.30\n50.0\n\n44.28\n5.10\n47.87\n6.34\n35.64\n18.55\n45.74\n29.91\n52.61\n5.00\n-\n\n41.75\n13.30\n63.64\n20.27\n2.87\n24.46\n50.10\n7.55\n56.65\n21.90\n-\n\n37.57\n3.00\n48.51\n5.41\n2.31\n11.02\n50.72\n5.54\n56.69\n4.80\n-\n\nRbA [35] (ICCV’23)\nRbA + RWPM (Ours)\n\nMask-based\nMask-based\n\n55.69\n57.00\n\n52.14\n61.25\n\n46.80\n58.44\n\n58.36\n58.89\n\n58.78\n72.51\n\n60.85\n69.85\n\n4.2\n\nAblation Study\n\nIf not specifically emphasized, all the results reported in this section are conducted on a RTX A6000 GPU.\nThe effect of the partitioning parameter n and calibration: We first test\nthe effect of the embedding map partitioning parameter n and the calibration,\nand we report the results in Table 4. FPS denotes the frames-per-second results.\nRow n = 1 displays the RWPM results without utilizing the embedding map partitioning strategy, indicating significant computational and memory overhead.\nHowever, the partitioning strategy (n = 2, 4, 8) significantly improves the running speed and reduces memory consumption while maintaining effectiveness.\nAdditionally, as n increases, the running efficiency also improves, albeit with\na slight decrease in performance. However, when n &gt; 2, the calibration can\nenhance the performance, particularly for the FPR95 metrics.\nThe effect of iteration number T : Table 5 shows that, compared to using\nEq. 4 (T = ∞), utilizing the limited iteration strategy (T = 5 ∼ 100) can lead to\nhigher efficiency, resulting in even better performance for RWPM. Additionally,\nas the number of iterations increases, performance tends to improve, but running\nefficiency (FPS) decreases accordingly.\nDifferent strategies for reducing the number of pixel embedding: We\nalso attempt other strategies to reduce the number of pixel embedding for\nRWPM, such as resizing the embedding map or use SLIC [1] algorithm to extract superpixels. Table 6(Left) presents the results. The resize strategy achieves\ngood performance but requires preserving a larger map size. Therefore, it fails\n\n\f12\n\nZ. Zeng et al.\n\nTable 4: The effect of the partitioning parameter n and calibration. We set T = 20\nfor all experiments. † indicates that use the calibration in sub-map concatenation.\nBenchmark→\n\nRoad Anomaly\nAP↑\n\nFPR95↓\n\nFPS↑\n\nRbA w/o RWPM\n\n85.42\n\n6.92\n\n11.12\n\nGPU Memory Usage↓\n3.49GiB\n\nn=1 (two GPUs)\n\n87.90\n\n5.17\n\n0.32\n\n74.96GiB\n\nn=2\nn=2†\n\n87.34\n87.18\n\n5.27\n5.25\n\n2.04\n2.04\n\n7.24GiB\n7.24GiB\n\nn=4\nn=4†\n\n87.05\n87.17\n\n6.31\n5.32\n\n4.35\n4.35\n\n3.49GiB\n3.49GiB\n\nn=8\nn=8†\n\n86.67\n86.91\n\n6.42\n5.41\n\n6.26\n6.26\n\n3.55GiB\n3.55GiB\n\nTable 5: The effect of iteration number T . We set n = 2 for all experiments.\nBenchmark→\n\nRoad Anomaly\nAP↑\n\nFPR95↓\n\nFPS↑\n\nGPU Memory Usage↓\n\nRbA w/o RWPM\n\n85.42\n\n6.92\n\n11.12\n\n3.49GiB\n\nT=∞\n\n87.51\n\n5.24\n\n0.29\n\n8.88GiB\n\nT=5\nT=10\nT=20\nT=50\nT=100\n\n86.89\n87.08\n87.34\n87.36\n87.54\n\n5.98\n5.77\n5.27\n5.08\n5.02\n\n3.70\n2.78\n2.04\n0.92\n0.50\n\n7.24GiB\n7.24GiB\n7.24GiB\n7.24GiB\n7.24GiB\n\nto substantially reduce the number of pixel embeddings, resulting in significant\nGPU memory usage. On the other hand, the superpixel strategy requires a considerable amount of runtime for the superpixel extraction. In comparison, our\nproposed partitioning strategy can achieve good results with higher efficiency\nand lower resource consumption. This makes it more suitable for applications on\npractical platforms.\nIn-distribution segmentation performance on Cityscapes validation\nset: We report the results on the Cityscapes validation set in Table 6(Right). All\nmethods use Mask2Former [10] as their backbones. We observe that most SOTA\nmethods affect the in-distribution segmentation performance of Mask2Former,\nsuch as RbA (drop from 82.25 to 81.93). However, RWPM can alleviate this\nproblem. Additionally, even for the SOTA segmentation method (Mask2Former),\nRWPM can further enhance its in-distribution segmentation performance.\nTable 6: Ablation Tables: (Left) shows the results of different strategies for reducing the number of pixel embedding. We find that partitioning is the best. (Right)\nshows the segmentation performance on the Cityscapes validation set. RWPM can also\nimprove the segmentation performance of in-distribution.\nBenchmark→\n\nRoad Anomaly\n\nStrategy↓\n\nAP↑\n\nFPR95↓\n\nFPS↑\n\nMemory\n\nResize (0.9 full size)\nResize (0.8 full size)\n\n87.80\n87.24\n\n5.39\n5.44\n\n1.41\n2.15\n\n23.82GiB\n15.98GiB\n\nSuperpixel (30000 pixels)\nSuperpixel (20000 pixels)\n\n87.51\n87.03\n\n5.50\n5.98\n\n0.19\n0.32\n\n11.46GiB\n6.31GiB\n\nPartitioning (n = 2)\n\n87.34\n\n5.27\n\n2.04\n\n7.24GiB\n\nBenchmark→\n\nCityscapes\n\nMethod↓\n\nmIoU↑\n\nPEBAL-Mask [35]\nDenseHybrid-Mask [35]\n\n75.32\n80.27\n\nRbA [35]\nRbA+RWPM(Ours)\n\n81.93\n82.16\n\nMask2Former [10]\nMask2Former+RWPM(Ours)\n\n82.25\n82.43\n\n\fRWPM\n\n4.3\n\n13\n\nVisualization of Pixel Embedding Distribution\n\nTo investigate the effect of RWPM in the embedding space, we visualized the\ndistribution of pixel embeddings by using t-SNE. We selected an image from the\nRoad Anomaly dataset (as shown in Fig 3(a)). Due to the gravel road surface in\nthis image, there is a significant domain gap between the road in this image and\nthe roads in the training set, resulting in many false positives on the road (as\nshown in the PEBAL results in Fig 3(a)). Then, we randomly selected 300 inlier\npixels and 150 outlier pixels from the red dashed box region of this image for\nvisualization. Fig 3(b) and Fig 3(c) respectively show the distributions of these\npixels in the space without and with applying RWPM. In Fig 3(b) and Fig 3(c),\ndeep blue circles represent inlier pixels (road), light blue circles represent outlier pixels (boar), and X symbols represent the inlier class prototype (the vector\nof network weights of classifier). From Fig 3(b), we observe that without using\nRWPM, due to the influence of data diversity, the distribution of inliers and outliers is distorted. Consequently, it is difficult for an anomaly scoring function to\ndistinguish between inlier and outlier pixels based on their logits. However, from\nFig 3(c), we find that RWPM can significantly alleviate the problem. Specifically,\nthe pixel embeddings of the same category form more compact clusters, enabling\nthe anomaly scoring function to clearly discriminate between inliers and outliers\nbased on the logit. This is consistent with the description in the toy sample in\nFig 1. Note that, in the top left corner of Fig 3(c), some inlier points become\nvery close to outlier points after applying RWPM. This is because these points\nare located in the boundaries of anomalous objects, making it very difficult to\ndiscriminate them.\n\n1.0\n\n1.0\n\n0.8\n\n0.8\n\n0.6\n\n0.6\n\n0.4\n\n0.4\n\n0.2\n\n0.2\n\n0.0\nPEBAL\n\n(a) Sample Image\n\n0.0\n0.0\n\nPEBAL+RWPM\n\n0.2\n\n0.4\n\n0.6\n\n0.8\n\n1.0\n\n(b) Distribution w/o RWPM\n\n0.0\n\n0.2\n\n0.4\n\n0.6\n\n0.8\n\n1.0\n\n(c) Distribution with RWPM\n\nFig. 3: The visualization of pixel embedding distribution. All embeddings are\nextracted from PEBAL model. We use cosine distance as the distance metric. We\nobserved that RWPM can optimize the distribution of pixel embeddings in the space.\n\n4.4\n\nQualitative Result\n\nFinally, to visually demonstrate the effectiveness of RWPM, we present qualitative results. Specifically, we compare the results of RbA on the Road Anomaly\ndataset without and with RWPM. The qualitative results are illustrated in Fig 4.\n\n\f14\n\nZ. Zeng et al.\n\nFig 4 shows that RWPM significantly improves the performance of RbA, reducing both the false positive rate and false negative rate. For example, in the first\nrow, RbA generates some false positive results on the road and some false negative results on the manhole region (third column of the first row). However, after\napplying RWPM, these false positive/negative results are effectively eliminated\n(fourth column of the first row). Additionally, RWPM assists the RbA model\nto accurately detect and localize each anomalous object at the component level,\nsuch as more precise edge detection. This observation aligns with the results of\nthe component-level metrics presented in Table 3.\nInput\n\nGround Truth\n\nRbA\n\nRbA+RWPM(Ours)\n\nInput\n\nGround Truth\n\nRbA\n\nRbA+RWPM(Ours)\n\nInput\n\nGround Truth\n\nRbA\n\nRbA+RWPM(Ours)\n\nFig. 4: Qualitative results: The first column displays the input image, while the\nsecond column shows its corresponding ground truth. The third column displays the\nanomaly score results generated by RbA, and the fourth column presents the anomaly\nscore results after applying RWPM to RbA. Yellow indicates high anomaly scores.\n\n5\n\nConclusions and Discussions\n\nIn this paper, we propose a simple yet effective method, called Random Walk\non Pixel Manifolds (RWPM), to improve the performance of existing anomaly\nsegmentation methods. RWPM is a post-processing method that can be directly\nintegrated into existing anomaly detection frameworks without requiring additional training or modifications to the network structure. RWPM mitigates the\nimpact of data diversity on manifold structure by diffusing and updating pixel\nembeddings on pixel manifolds using random walk. This process enables anomaly\nscoring functions to obtain more accurate estimations of anomaly scores. Additionally, we propose Partial Random Walk strategy, which significantly improve\nthe efficiency of RWPM.\nWhile RWPM achieves significant results in most cases, it is limited when\nthe pre-trained model itself exhibits significant inaccuracies. To address this\nlimitation, we plan to enhance the model’s generalization ability during training\nto accurately detect a broader range of diverse and unknown anomalies.\n\n\fRWPM\n\n15\n\nAcknowledgements\nThis work was supported by SenseTime Japan.\n\nReferences\n1. Achanta, R., Shaji, A., Smith, K., Lucchi, A., Fua, P., Süsstrunk, S.: Slic superpixels compared to state-of-the-art superpixel methods. IEEE transactions on pattern\nanalysis and machine intelligence 34(11), 2274–2282 (2012)\n2. Ackermann, J., Sakaridis, C., Yu, F.: Maskomaly: Zero-shot mask anomaly segmentation. arXiv preprint arXiv:2305.16972 (2023)\n3. Bai, S., Bai, X., Tian, Q., Latecki, L.J.: Regularized diffusion process for visual\nretrieval. In: Proceedings of the AAAI conference on artificial intelligence. vol. 31\n(2017). https://doi.org/10.1609/aaai.v31i1.11216\n4. Bai, S., Zhou, Z., Wang, J., Bai, X., Jan Latecki, L., Tian, Q.: Ensemble diffusion\nfor retrieval. In: Proceedings of the IEEE International conference on computer\nvision. pp. 774–783 (2017)\n5. Blum, H., Sarlin, P.E., Nieto, J., Siegwart, R., Cadena, C.: The fishyscapes benchmark: Measuring blind spots in semantic segmentation. International Journal of\nComputer Vision 129, 3119–3135 (2021). https://doi.org/10.1007/s11263021-01511-6\n6. Chan, R., Lis, K., Uhlemeyer, S., Blum, H., Honari, S., Siegwart, R., Fua, P.,\nSalzmann, M., Rottmann, M.: Segmentmeifyoucan: A benchmark for anomaly segmentation. arXiv preprint arXiv:2104.14812 (2021)\n7. Chan, R., Rottmann, M., Gottschalk, H.: Entropy maximization and meta classification for out-of-distribution detection in semantic segmentation. In: Proceedings\nof the ieee/cvf international conference on computer vision. pp. 5128–5137 (2021)\n8. Chen, L.C., Papandreou, G., Kokkinos, I., Murphy, K., Yuille, A.L.: Deeplab: Semantic image segmentation with deep convolutional nets, atrous convolution, and\nfully connected crfs. IEEE transactions on pattern analysis and machine intelligence 40(4), 834–848 (2017)\n9. Chen, L.C., Zhu, Y., Papandreou, G., Schroff, F., Adam, H.: Encoder-decoder with\natrous separable convolution for semantic image segmentation. In: Proceedings of\nthe European conference on computer vision (ECCV). pp. 801–818 (2018). https:\n//doi.org/10.1007/978-3-030-01234-2_49\n10. Cheng, B., Misra, I., Schwing, A.G., Kirillov, A., Girdhar, R.: Masked-attention\nmask transformer for universal image segmentation. In: Proceedings of the\nIEEE/CVF conference on computer vision and pattern recognition. pp. 1290–1299\n(2022). https://doi.org/10.1109/CVPR52688.2022.00135\n11. Cheng, B., Schwing, A., Kirillov, A.: Per-pixel classification is not all you need for\nsemantic segmentation. Advances in Neural Information Processing Systems 34,\n17864–17875 (2021)\n12. Choi, H., Jeong, H., Choi, J.Y.: Balanced energy regularization loss for out-ofdistribution detection. In: Proceedings of the IEEE/CVF Conference on Computer\nVision and Pattern Recognition. pp. 15691–15700 (2023)\n13. Cordts, M., Omran, M., Ramos, S., Rehfeld, T., Enzweiler, M., Benenson, R.,\nFranke, U., Roth, S., Schiele, B.: The cityscapes dataset for semantic urban scene\nunderstanding. In: Proceedings of the IEEE conference on computer vision and pattern recognition. pp. 3213–3223 (2016). https://doi.org/10.1109/CVPR.2016.\n350\n\n\f16\n\nZ. Zeng et al.\n\n14. Creusot, C., Munawar, A.: Real-time small obstacle detection on highways using\ncompressive rbm road reconstruction. In: 2015 IEEE Intelligent Vehicles Symposium (IV). pp. 162–167. IEEE (2015)\n15. Di Biase, G., Blum, H., Siegwart, R., Cadena, C.: Pixel-wise anomaly detection in\ncomplex driving scenes. In: Proceedings of the IEEE/CVF conference on computer\nvision and pattern recognition. pp. 16918–16927 (2021). https://doi.org/10.\n1109/CVPR46437.2021.01664\n16. Gal, Y., Ghahramani, Z.: Dropout as a bayesian approximation: Representing\nmodel uncertainty in deep learning. In: international conference on machine learning. pp. 1050–1059. PMLR (2016)\n17. Grady, L.: Random walks for image segmentation. IEEE transactions on pattern\nanalysis and machine intelligence 28(11), 1768–1783 (2006)\n18. Grcić, M., Bevandić, P., Šegvić, S.: Densehybrid: Hybrid anomaly detection for\ndense open-set recognition. In: European Conference on Computer Vision. pp.\n500–517. Springer (2022)\n19. Grcić, M., Šarić, J., Šegvić, S.: On advantages of mask-level recognition for outlieraware segmentation. In: Proceedings of the IEEE/CVF Conference on Computer\nVision and Pattern Recognition. pp. 2936–2946 (2023)\n20. Hendrycks, D., Basart, S., Mazeika, M., Zou, A., Kwon, J., Mostajabi, M., Steinhardt, J., Song, D.: Scaling out-of-distribution detection for real-world settings.\narXiv preprint arXiv:1911.11132 (2019)\n21. Hendrycks, D., Gimpel, K.: A baseline for detecting misclassified and out-ofdistribution examples in neural networks. In: International Conference on Learning\nRepresentations (2017), https://openreview.net/forum?id=Hkg4TI9xl\n22. Hendrycks, D., Mazeika, M., Dietterich, T.: Deep anomaly detection with outlier\nexposure. arXiv preprint arXiv:1812.04606 (2018)\n23. Huang, Z., Li, S.: From difference to similarity: A manifold ranking-based hyperspectral anomaly detection framework. IEEE Transactions on Geoscience and\nRemote Sensing 57(10), 8118–8130 (2019)\n24. Iscen, A., Tolias, G., Avrithis, Y., Chum, O.: Mining on manifolds: Metric learning\nwithout labels. In: Proceedings of the IEEE Conference on Computer Vision and\nPattern Recognition. pp. 7642–7651 (2018). https://doi.org/10.1109/CVPR.\n2018.00797\n25. Iscen, A., Tolias, G., Avrithis, Y., Furon, T., Chum, O.: Efficient diffusion on\nregion manifolds: Recovering small objects with compact cnn representations. In:\nProceedings of the IEEE conference on computer vision and pattern recognition.\npp. 2077–2086 (2017). https://doi.org/10.1109/CVPR.2017.105\n26. Jung, S., Lee, J., Gwak, D., Choi, S., Choo, J.: Standardized max logits: A simple yet effective approach for identifying unexpected road obstacles in urban-scene\nsegmentation. In: Proceedings of the IEEE/CVF International Conference on Computer Vision. pp. 15425–15434 (2021)\n27. Lakshminarayanan, B., Pritzel, A., Blundell, C.: Simple and scalable predictive\nuncertainty estimation using deep ensembles. Advances in neural information processing systems 30 (2017)\n28. Liang, C., Wang, W., Miao, J., Yang, Y.: Gmmseg: Gaussian mixture based generative semantic segmentation models. Advances in Neural Information Processing\nSystems 35, 31360–31375 (2022)\n29. Liang, S., Li, Y., Srikant, R.: Enhancing the reliability of out-of-distribution image\ndetection in neural networks. In: International Conference on Learning Representations (2018), https://openreview.net/forum?id=H1VGkIxRZ\n\n\fRWPM\n\n17\n\n30. Lin, T.Y., Maire, M., Belongie, S., Hays, J., Perona, P., Ramanan, D., Dollár, P., Zitnick, C.L.: Microsoft coco: Common objects in context. In: Computer\nVision–ECCV 2014: 13th European Conference, Zurich, Switzerland, September 6-12, 2014, Proceedings, Part V 13. pp. 740–755. Springer (2014). https:\n//doi.org/10.1007/978-3-319-10602-1_48\n31. Lis, K., Nakka, K., Fua, P., Salzmann, M.: Detecting the unexpected via image\nresynthesis. In: Proceedings of the IEEE/CVF International Conference on Computer Vision. pp. 2152–2161 (2019). https://doi.org/10.1109/ICCV.2019.00224\n32. Liu, W., Wang, X., Owens, J., Li, Y.: Energy-based out-of-distribution detection.\nAdvances in neural information processing systems 33, 21464–21475 (2020)\n33. Liu, Y., Ding, C., Tian, Y., Pang, G., Belagiannis, V., Reid, I., Carneiro, G.:\nResidual pattern learning for pixel-wise out-of-distribution detection in semantic segmentation. In: Proceedings of the IEEE/CVF International Conference on\nComputer Vision. pp. 1151–1161 (2023)\n34. Liu, Z., Lin, Y., Cao, Y., Hu, H., Wei, Y., Zhang, Z., Lin, S., Guo, B.: Swin\ntransformer: Hierarchical vision transformer using shifted windows. In: Proceedings\nof the IEEE/CVF international conference on computer vision. pp. 10012–10022\n(2021)\n35. Nayal, N., Yavuz, M., Henriques, J.F., Güney, F.: Rba: Segmenting unknown regions rejected by all. In: Proceedings of the IEEE/CVF International Conference\non Computer Vision. pp. 711–722 (2023)\n36. Ohgushi, T., Horiguchi, K., Yamanaka, M.: Road obstacle detection method based\non an autoencoder with semantic segmentation. In: Proceedings of the Asian Conference on Computer Vision (2020)\n37. Rai, S.N., Cermelli, F., Fontanel, D., Masone, C., Caputo, B.: Unmasking anomalies in road-scene segmentation. In: Proceedings of the IEEE/CVF International\nConference on Computer Vision. pp. 4037–4046 (2023)\n38. Tian, Y., Liu, Y., Pang, G., Liu, F., Chen, Y., Carneiro, G.: Pixel-wise energybiased abstention learning for anomaly segmentation on complex urban driving scenes. In: European Conference on Computer Vision. pp. 246–263. Springer\n(2022). https://doi.org/10.1007/978-3-031-19842-7_15\n39. Vojir, T., Šipka, T., Aljundi, R., Chumerin, N., Reino, D.O., Matas, J.: Road\nanomaly detection by partial image reconstruction with segmentation coupling.\nIn: Proceedings of the IEEE/CVF International Conference on Computer Vision.\npp. 15651–15660 (2021)\n40. Xie, E., Wang, W., Yu, Z., Anandkumar, A., Alvarez, J.M., Luo, P.: Segformer:\nSimple and efficient design for semantic segmentation with transformers. Advances\nin Neural Information Processing Systems 34, 12077–12090 (2021)\n41. Yang, F., Hinami, R., Matsui, Y., Ly, S., Satoh, S.: Efficient image retrieval via\ndecoupling diffusion into online and offline processing. In: Proceedings of the AAAI\nconference on artificial intelligence. vol. 33, pp. 9087–9094 (2019). https://doi.\norg/10.1609/aaai.v33i01.33019087\n42. Yang, F., Wang, Z., Xiao, J., Satoh, S.: Mining on heterogeneous manifolds for\nzero-shot cross-modal image retrieval. In: Proceedings of the AAAI Conference on\nArtificial Intelligence. vol. 34, pp. 12589–12596 (2020)\n43. Zhou, D., Bousquet, O., Lal, T., Weston, J., Schölkopf, B.: Learning with local and\nglobal consistency. Advances in neural information processing systems 16 (2003)\n44. Zhou, D., Weston, J., Gretton, A., Bousquet, O., Schölkopf, B.: Ranking on data\nmanifolds. Advances in neural information processing systems 16 (2003)\n\n\fSupplementary Material for “Random Walk on\nPixel Manifolds for Anomaly Segmentation of\nComplex Driving Scenes”\nZelong Zeng1\n\nand Kaname Tomite1\n\nSenseTime Japan, Tokyo, Japan\n{zengzelong,tomite}@sensetime.jp\n\nAbstract. The following items are included in the supplementary material.\n- The Architecture of Pixel-based and Mask-based Networks.\n- Anomaly Scoring Function Details.\n- Additional Results and Implementation Details.\n- Different Methods for Constructing Locally Constrained Graph.\n- Analysis for RWPM.\n- Some Reviewers’ Comments and Our Explanations.\n\n1\n\nThe Architecture of Pixel-based and Mask-based\nNetworks\n\nIn this section, we introduce the structures of pixel-based and mask-based segmentation models, respectively. Additionally, we also illustrate the position of\nthe pixel embedding map used by RWPM in different network architectures.\nIn the main paper, we utilize the Deeplabv3+ [9] with WideResNet38 as the\npixel-based segmentation model, and the Mask2Former [10] with Swin-L as the\nmask-based segmentation model.\nFig 1 illustrates their architecture. Specifically, Fig 1(a) shows the architecture of the Deeplabv3+ with WideResNet38, which consists of three parts: a\nWideResNet38 backbone, a Atrous Spatial Pyramid Pooling (ASPP) layers and\na Segmentation Head (Seg Head). During inference, the input image will be fed\ninto the backbone first to produce a feature map. Then, this feature map will go\nthrough the ASPP layers to output a feature map with multiscale information.\nFinally, such feature map will be classified by the Seg Head to produce the dense\npredictions. The last layer of Seg Head is a classifier. In the main paper, we use\nthe output from the penultimate layer of the Seg Head as the pixel embedding\nmap for RWPM.\nFig 1(b) depicts the architecture of the Mask2Former with Swin-L, consisting of a Pixel Encoder-Decoder, a Transformer Decoder, a Linear Classifier and\na Multilayer Perceptron (MLP). During inference, the input image is first fed\ninto the Pixel Encoder-Decoder to generate a feature map. Simultaneously, the\nintermediate upsampled features from the Pixel Encoder-Decoder are fed to the\n\n\fSupplementary Material for RWPM\n\n19\n\nTransformer Decoder. Next, N learnable queries go through the Transformer Decoder with the intermediate upsampled features to produce N refined queries.\nThese N refined queries are then fed into the Linear Classifier and MLP. The Linear Classifier is the classifier of queries, generating the class predictions of each\nrefined query. Meanwhile, the MLP adjusts the dimension of each refined queries\nto match the size of the feature map from the Pixel Encoder-Decoder. After going through the MLP, the N refined queries can be seen as N binary classifiers,\nwhich are multiplied with the feature map from the Pixel Encoder-Decoder to\nproduce the mask predictions. Finally, by combining the mask predictions with\nthe corresponding class predictions, the model outputs the classification predictions for each pixel of the input image. In summary, each refined query generates\na mask on the image, where the prediction scores on the mask represent the binary classification results of corresponding pixels, describing the confidence level\nof the refined query for that pixel. Then, the Linear Classifier categorizes each\nrefined query, obtaining classification predictions for the corresponding refined\nqueries. The classification prediction for each pixel is obtained by the weighted\nsum of the classification predictions of all refined queries. The weight is the mask\nprediction score generated by each refined query for that pixel. In other words,\nthe higher the confidence level of a refined query for a pixel, the more similar\nthe classification result of that pixel is to the classification result of the refined\nquery. In the main paper, we use the output from the Pixel Encoder-Decoder as\nthe pixel embeddings map for RWPM.\n\nQueries\n\nQueries\n\nTransformer\nDecoder\n\nWideResNet38\n\nASPP\n\nSeg Head\n\nLabel prediction\n\nLinear\n\nMLP\n\nLabel prediction\n\nPixel Encoder-Decoder\n\nPixel embedding map:\nthe output from the\npenultimate layer\n\nPixel embedding map:\nthe output from the pixel\nencoder-decoder\n\n(a) Deeplabv3+ with WideResNet38\n\n(b) Mask2Former with Swin-L\n\nFig. 1: The architecture of pixel-based and mask-based networks. (a) depicts\nthe architecture of the pixel-based network used in the main paper, namely Deeplabv3+\nwith WideResNet38. (b) illustrates the architecture of the mask-based network used\nin the main paper, which is Mask2Former with Swin-L. The red arrows indicate the\nposition of the pixel embeddings map used by RWPM in different network architectures.\n\n\f20\n\n2\n\nZ. Zeng et al.\n\nAnomaly Scoring Function Details\n\nIn our main paper, we integrate our RWPM with four recent representative\nanomaly segmentation methods, namely PEBAL [38], Balanced Energy [12],\nRbA [35] and Mask2Anomaly [37]. In this section, we provide a detailed introduction to the anomaly scoring functions of these methods.\n2.1\n\nPEBAL and Balanced Energy\n\nPEBAL and Balanced Energy utilize Deeplabv3+ (see Fig 1(a)), a pixel-based\nnetwork, as their backbones. Both methods utilize the EBM function [32] as their\nanomaly scoring function. Let’s define lh,w (k) as the logit of a pixel xh,w for\nclass k. lh,w (k) is calculated from the inner product of the pixel embedding and\nthe vector of network weights for class k of the classifier. The anomaly scoring\nfunction at the pixel xh,w is defined as:\n  E(\\boldsymbol {x})_{h,w}=-\\log \\sum _{k\\in \\left \\{1\\cdots K\\right \\}} \\exp \\left (\\boldsymbol {l}_{h,w}\\left (k\\right )\\right ) , \\label {eq:pebal} \n\n(1)\n\nwhere K is the number of inlier class. Obviously, when the anomaly score\nE(x)h,w is large, it indicates that the logits of the pixel across all inlier classes\nare small, i.e., the pixel xh,w is dissimilar from all inlier classes.\n2.2\n\nRbA\n\nRbA uses Mask2Former (see Fig 1(b)), a mask-based network, as its backbone.\nLet’s define lh,w (k) is the class logit of a pixel xh,w for class k. In Mask2Former\nmodel, the lh,w (k) is described as:\n  \\boldsymbol {l}_{h,w}\\left (k\\right ) = \\sum _{i=1}^N P_n(\\boldsymbol {x_{h,w}};k) M_n(\\boldsymbol {x_{h,w}}) , \\label {eq:mask_logit} \n\n(2)\n\nwhere N is the total number of refined query in the network, Mn (xh,w ) denotes the mask prediction score, generated by the n-th query, on the pixel xh,w ,\nand Pn (xh,w ; k) indicates the k-th class predicted probability of the n-th query.\nIn other words, the class logit lh,w (k) is the weighted sum of the classification\npredictions of each query, and the weights are the mask prediction scores generated by each query for the pixel xh,w . Based on the Eq 2, the anomaly scoring\nfunction RbA is defined as:\n  \\textup {RbA}(\\boldsymbol {x_{h,w}}) = -\\sum _{k=1}^K \\sigma (\\boldsymbol {l}_{h,w}\\left (k\\right )) , \\label {eq:rba1} \n\n(3)\n\nwhere K is the total number of inlier class. When the anomaly score has a large\nvalue, it indicates that all class logits, lh,w (k) where k ∈ {1, · · · , K}, are small.\nThis means that the mask scores generated by each refined query for this pixel\nare all small, indicating that the pixel is not similar to any inlier class.\n\n\fSupplementary Material for RWPM\n\n2.3\n\n21\n\nMask2Anomaly\n\nSimilar to RbA, Mask2Anomaly also uses Mask2Former as its backbone. Therefore, its definition of the class logit lh,w (k) is the same as Eq 2. Mask2Anomaly\ncompute the anomaly score f (xh,w ) as:\n  f(\\boldsymbol {x_{h,w}}) = 1-\\max _{k=1}^K \\sigma (\\boldsymbol {l}_{h,w}\\left (k\\right )) , \\label {eq:rba2} \n\n(4)\n\nWhen the value of f (xh,w ) is large, it implies that the value of maxK\nk=1 σ(lh,w (k))\nis small, meaning that all class logits, lh,w (k) where k ∈ {1, · · · , K}, are small.\nThis indicates that the mask scores generated by each refined query for this pixel\nare small, implying that the pixel is not similar to any inlier class.\n\n3\n\nAdditional Results and Implementation Details\n\nIn our main paper, we validate that the proposed RWPM can improve the performance of existing anomaly segmentation methods by integrating our approach\nwith four recent representative methods (see Section 4.1 of the main paper).\nHowever, due to page limitations, we only present results on the Fishyscapes\nLost &amp; Found dataset and the Road Anomaly dataset. Therefore, in Table 1, we\nprovide additional results, including on the Anomaly track and Obstacle track\nof the SMYIC dataset. From Table 1, it demonstrates that our proposed RWPM\nconsistently and significantly enhances the performance of existing anomaly segmentation methods across different datasets.\nFurthermore, in Table 2, we present the implementation details of the RWPM\nparameters α (the transition probability) and T (the number of iteration) in each\nexperiments in Table 1.\nTable 1: Comparison with strong and representative anomaly segmentation baselines across different backbone Architectures (Arch). Bold denotes the better results\nbetween using RWPM and not using RWPM with the same anomaly segmentation\nbaselines. † indicates that use the calibration in sub-map concatenation as described\nin Section 3.4 of the main paper.\nBenchmark→\n\nFishyscapes Lost&amp;Found\n\nMethod ↓\n\nArch\n\nPEBAL [38]\nPEBAL + RWPM† (Ours)\n\nRoad Anomaly\n\nAnomaly Track\n\nObstacle Track\n\nAuROC↑\n\nAP↑\n\nFPR95↓\n\nAuROC↑\n\nAP↑\n\nFPR95↓\n\nAP↑\n\nFPR95↓\n\nAP↑\n\nFPR95↓\n\nPixel-based\nPixel-based\n\n98.96\n99.20\n\n58.81\n66.85\n\n4.77\n3.68\n\n87.63\n89.48\n\n45.10\n50.29\n\n44.58\n36.81\n\n49.13\n51.49\n\n40.87\n34.04\n\n4.96\n14.47\n\n12.71\n11.23\n\nBalanced Energy [12]\nBalanced Energy + RWPM† (Ours)\n\nPixel-based\nPixel-based\n\n99.03\n99.29\n\n67.07\n72.95\n\n2.93\n2.38\n\n88.31\n90.51\n\n41.48\n48.26\n\n41.46\n32.10\n\n47.70\n50.44\n\n52.00\n51.13\n\n9.07\n20.00\n\n18.78\n16.65\n\nMask2Anomaly [37]\nMask2Anomaly + RWPM (Ours)\n\nMask-based\nMask-based\n\n95.47\n95.48\n\n65.27\n65.38\n\n7.79\n7.33\n\n96.54\n97.44\n\n80.04\n80.09\n\n13.95\n7.45\n\n88.62\n88.98\n\n14.57\n15.88\n\n93.10\n93.82\n\n0.20\n0.18\n\nRbA [35]\nRbA + RWPM (Ours)\n\nMask-based\nMask-based\n\n98.62\n98.82\n\n70.81\n71.16\n\n6.30\n6.12\n\n97.99\n98.04\n\n85.42\n87.34\n\n6.92\n5.27\n\n90.86\n92.00\n\n11.59\n10.15\n\n91.85\n93.30\n\n0.46\n0.28\n\n1\n\n1\n\nWe carefully reproduce the experiments by using the official code.\n\n\f22\n\nZ. Zeng et al.\n\nTable 2: The implementation detail of RWMP parameters α (the transition probability) and T (the number of iteration) for each experiment in in Table 1. † indicates\nthat use the calibration in sub-map concatenation as described in Section 3.4 of the\nmain paper.\n\n4\n\nBenchmark→\n\nFishyscapes L&amp;F\n\nRoad Anomaly\n\nAnomaly Track\n\nMethod ↓\n\nα\n\nT\n\nα\n\nT\n\nα\n\nT\n\nObstacle Track\nα\n\nT\n\nPEBAL + RWPM† (Ours)\nBalanced Energy + RWPM† (Ours)\nMask2Anomaly + RWPM (Ours)\nRbA + RWPM (Ours)\n\n0.99\n0.90\n0.10\n0.50\n\n5\n5\n5\n5\n\n0.99\n0.99\n0.99\n0.99\n\n20\n20\n20\n20\n\n0.99\n0.99\n0.90\n0.99\n\n5\n5\n5\n5\n\n0.99\n0.99\n0.70\n0.90\n\n5\n5\n5\n5\n\nDifferent Methods for Constructing Locally\nConstrained Graph\n\nIn our main paper (see Section 3.2), we utilize a Softmax function to obtain\nlocally constrained graph. In this section, we first present a comparison between\nusing the Softmax function and employing k-NN search algorithm in our RWPM.\nWhen using the k-NN algorithm, for each pixel, we only retain its connections to\nthe k most similar pixels (neighborhoods) in the graph S. Table 3 shows the results. We observe that when using the k-NN algorithm, as the value of k decreases\n(from k = 500 to k = 50), the performance improves due to the reduction of\nnoise effect. This demonstrates the effectiveness of the locally constrained graph.\nHowever, when the value of k becomes too small (from k = 50 to k = 10), it leads\nto the loss of relationship information between pixels, resulting in a decrease in\nperformance. Nevertheless, although the k-NN algorithm can achieve good performance, it significantly reduces operational efficiency (with only 0.93 FPS).\nIn contrast, our proposed Softmax method can achieve better performance and\nhigher operational efficiency (with 2.04 FPS). This demonstrates the superiority\nof our Softmax method.\n\nTable 3: The comparison between the performance of Softmax functions and k-NN\nsearch algorithms using different k values. We set T = 20 and n = 2 for all experiments.\nBold and underline denote the best and the second best results, respectively.\nBenchmark→\n\nRoad Anomaly\nAP↑\n\nFPR95↓\n\nFPS↑\n\nk-NN (k = 10)\nk-NN (k = 20)\nk-NN (k = 50)\nk-NN (k = 100)\nk-NN (k = 200)\nk-NN (k = 500)\n\n86.38\n86.65\n86.71\n86.24\n84.61\n81.00\n\n6.57\n6.47\n5.96\n6.00\n6.72\n19.08\n\n0.93\n0.93\n0.93\n0.93\n0.93\n0.93\n\nSoftmax (τ = 0.01)\n\n87.34\n\n5.27\n\n2.04\n\n\fSupplementary Material for RWPM\n\n23\n\nAdditionally, we show the effect of the temperature parameter τ in the Softmax function. A smaller τ results in fewer neighborhoods being connected to\neach pixel in the graph S, which resembles the reduction of the k value in k-NN.\nTable 4 presents the results. We can observe a similar phenomenon to that in\nTable 3, where the locally constrained graph can improve the performance, but\nwhen too few pixels are connected to each pixel, it may actually decrease the\nperformance. In our experiments, the best results were achieved when τ = 0.01.\nTable 4: The effect of temperature parameter τ . We set n = 2 and T = 20 for all\nexperiments. Bold denotes the best results.\nBenchmark→\n\nRoad Anomaly\nAP↑\n\n5\n\nFPR95↓\n\nRbA w/o RWPM\n\n85.42\n\n6.92\n\nτ = 1.0\nτ = 0.1\nτ = 0.01\nτ = 0.001\nτ = 0.0001\n\n21.60\n31.45\n87.34\n85.97\n85.57\n\n79.25\n68.65\n5.27\n6.70\n6.93\n\nAnalysis for RWPM\n\nIn this section, we analyze why RWPM can optimize pixel embeddings. In the\nmain paper, the process of RWPM can be described as:\n  \\begin {matrix} \\mathbf {m}^{t+1} = \\alpha \\mathbf {S} \\mathbf {m}^{t}+\\left (1-\\alpha \\right )\\mathbf {m}^{0}, &amp; \\alpha \\in \\left (0,1\\right ) \\end {matrix} , \\label {eq:random_walk_supp} \n\n(5)\n\nwhere S denotes the graph representing the manifolds of pixel embeddings, m0\ndenotes the original pixel embeddings, mt denotes the updated pixel embeddings\nin the t-th iteration of the random walks and α denotes the continuing probability. Eq 5 shows that each updated pixel embedding is obtained by taking a\nweighted ensemble of other pixel embeddings. The weights are determined by\nthe similarities between the pixels depicted on graph S. As shown in Fig 2, after\nupdating, each pixel will become more similar with its neighborhoods. In other\nwords, all pixel embeddings in the same manifolds will become more similar and\nform a more compact cluster.\nAdditionally, similar to the derivation in [3], the closed-form solution of Eq 5\ncan be formulated as the following optimization problem:\n  \\min _{\\mathbf {m}^{\\infty }} \\frac {1}{2} \\sum _{i,j=1}^{HW} \\mathbf {S}_{ij}\\left (\\mathbf {m}^{\\infty }_i - \\mathbf {m}^{\\infty }_j \\right )+\\frac {1-\\alpha }{\\alpha } \\sum _{i=1}^{HW} \\left (\\mathbf {m}^{\\infty }_i - \\mathbf {m}^{o}_i \\right )^2 , \\label {eq:random_walk_optim} \n\n(6)\n\nwhere m∞ is the finial updated embeddings, mi denotes the embedding of the\ni-th pixel and Sij depicts the similarity between the i-th and j-th pixels on\n\n\f24\n\nZ. Zeng et al.\n\nthe manifolds. We can observe that Eq 6 consists of two terms: The first term\nindicates that if two pixels are more similar on manifolds, their final embeddings\nwill also be more similar. In other words, the first term considers higher-order\ninformation among pixels. For example, if the i-th pixel is similar to the j-th\npixel, and the j-th pixel is similar to the k-th pixel, then in the final state,\nthe embedding of the i-th pixel will also be similar to that of the k-th pixel.\nThese encourage pixels on the same manifold to form more compact clusters,\nconsistent with the description and experimental results in the main paper. The\nsecond term suggests that the initial embeddings should be retain to a certain\ndegree. In our limited iteration strategy, mt is regarded as an approximation of\nm∞ .\n\n0.02\n\n0.02\n0.15\n0.4\n0.35\n\n0.08\n\n0.15\n0.4\n\n0.08\n\n0.35\n\n(a) Pixel Distribution (b) Pixel and Its Neighborhoods (c) Pixel Embedding Updating\nFig. 2: The process of updating pixel embeddings. (a) shows the distribution\nof pixel embeddings, all data points belong to the same category. (b) shows a pixel\nembedding (red circle) that deviates from the clustering and its 5 neighborhoods (blue\ncircle). The number inside each neighborhood (blue circle) represents its similarity to\nthe pixel embedding (red circle). (c) shows that, after the computation by the weighted\nensemble, the updated pixel embedding moves closer to the clustering.\n\n6\n\nSome Reviewers’ Comments and Our Explanations\n\nComment#1 [Why are random walks particularly effective for anomaly\nsegmentation?]:\nExisting anomaly score functions rely on the logits output by segmentation models to infer anomaly scores. However, diverse real-world driving scenarios often\ndistort manifolds of pixel features (but most pixels of same class still lie on the\nsame manifold), leading to inaccurate anomaly score inference (see Fig. 1 of the\nmain paper). Thus, we employ random walks on manifolds to propagate and\nupdate pixel features. Random walks can measure the similarity of pixels on\nmanifolds (i.e., distance on manifolds rather than Euclidean distance), resulting\nin high similarity for pixels on the same manifold and low similarity for pixels\non different manifolds. This forms more compact clusters on each manifold, mitigating manifold distortion. This is why random walks are effective for anomaly\nsegmentation.\n\n\fSupplementary Material for RWPM\n\n25\n\nComment#2 [The proposed partitioning strategy sounds reasonable,\nbut what effect does it have when anomaly parts are split among\ndifferent sub-maps? Did the authors observe this as an issue?]:\nFrom the analysis of numerous samples, we observe that when the number of\nsub-maps n is small, the high similarity between sub-maps contents ensures that\ndividing the anomaly target into separate parts does not affect the results. However, when n is larger, our proposed calibration method can alleviate the issue\n(see Section 3.4 of the main paper). Naturally, finding more elegant solutions to\nthis problem will be part of our future work.\nComment#3 [It would be interesting to know RWPM’s limitations\nand which solutions could be adopted to alleviate/solve such limitations.]:\nOne limitation of RWPM is running efficiency. Although we have proposed Partial Random Walk and verified its effectiveness in improving efficiency, there are\nstill some methods that can further enhance operational efficiency in practical\napplications. For instance, in practical applications, we can use image segmentation results to remove background elements (e.g., sky) or other irrelevant regions.\nThis significantly reduces the pixel count and improves computational efficiency,\nhelping to meet real-time requirements. Besides, as we mentioned in the conclusions section, another limitation is that RWPM’s effectiveness depends on\nthe model’s quality. Training models with RWPM to enhance generalization is\na promising solution.\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"