"<!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>Published as a conference paper at ICLR 2026\n\nS ELF -H ARMONY: L EARNING TO H ARMONIZE S ELF S UPERVISION AND S ELF -P LAY IN T EST-T IME R EIN FORCEMENT L EARNING\n\narXiv:2511.01191v2 [cs.CL] 2 Mar 2026\n\nRu Wang1 , Wei Huang2,3 , Qi Cao1 , Yusuke Iwasawa1 , Yutaka Matsuo1 , Jiaxian Guo4\n1\nThe University of Tokyo 2 RIKEN Center for Advanced Intelligence Project\n3\nThe Institute of Statistical Mathematics 4 Google Research Australia\n{ru.wang, qi.cao}@weblab.t.u-tokyo.ac.jp\nwei.huang.vr@riken.jp jeffguo@google.com\n\nA BSTRACT\nTest-time reinforcement learning (TTRL) offers a label-free paradigm for adapting models using only synthetic signals at inference, but its success hinges on\nconstructing reliable learning signals. Standard approaches such as majority voting often collapse to spurious yet popular answers. We introduce Self-Harmony,\na framework built on a simple intuition: the correct answer should remain stable\nacross both an original question and its paraphrase. Self-Harmony operationalizes\nthis by employing a single model in two complementary roles: a Solver to produce\nanswers and a Reframer to rephrase the input. Based on this, we further propose\na pseudo-label method: instead of majority voting, it aggregates answer frequencies across these original and reframed views using the harmonic mean. This is a\nprocess that naturally selects for solutions stable under reframing, thereby avoiding the common trap of favoring view-dependent, spurious answers. Crucially,\nthis requires no human supervision or auxiliary models. Across diverse reasoning\nbenchmarks, Self-Harmony achieves state-of-the-art results at the label-free testtime setting, ranking first in 28 of 30 settings across multiple methods. Beyond\naccuracy, it demonstrates unprecedented robustness, with zero training failures in\nall experiments, underscoring its stability and reliability. Our code is publicly\navailable at Self-Harmony.\n\n1\n\nI NTRODUCTION\n\nScaling the reasoning capabilities of Large Language Models (LLMs) has traditionally required massive, human-curated datasets (Cobbe et al., 2021; Hendrycks et al., 2021) for supervised fine-tuning\n(SFT). This reliance on costly data collection has motivated a shift toward test-time adaptation (Sun\net al., 2020; Wang et al., 2021), where models adapt “on the fly” using only unlabeled problems and\navailable compute resources. Within this paradigm, test-time reinforcement learning (TTRL) has\nemerged as a particularly promising approach, enabling models to improve their reasoning by leveraging self-generated feedback signals without the need for external supervision (Zuo et al., 2025;\nZhang et al., 2025; Prabhudesai et al., 2025; Zhao et al., 2025b).\nCurrent TTRL approaches typically involve generating multiple solution candidates and selecting a\n“pseudo-label” for the model to learn from, often through self-consistency or majority voting (Wang\net al., 2023; Zuo et al., 2025; Liu et al., 2025a). However, this mechanism suffers from a critical\nvulnerability: if the model exhibits a systematic reasoning flaw, it may produce a specific incorrect\nanswer more frequently than the correct one. In such cases, majority voting not only fails to correct\nthe error but can actively amplify it by selecting the flawed solution as a training target (Shi &amp; Jin,\n2025; Huang et al., 2024). This limitation highlights the need for TTRL methods that can generate\nrobust reward signals and reliably escape the model’s own “echo chamber” of errors.\nTo address this challenge, we introduce Self-Harmony, a novel TTRL framework that adapts selfplay to generate reliable pseudo-labels in a fully self-contained manner. The core idea is grounded\nin the following intuition: the correct answer should appear robustly across two questions that\n1\n\n\fPublished as a conference paper at ICLR 2026\n\nare semantically equivalent but stylistically distinct, as fragile or spurious reasoning paths are\noften disrupted by changes in phrasing. Self-Harmony operationalizes this intuition by having a\nsingle model dynamically assume two cooperative roles: a Solver, which generates answers to the\noriginal problem, and a Reframer, which rephrases the problem to provide a diverse perspective.\nBuilding on this intuition, we observe that majority voting is not an ideal method for pseudo-label\nselection. Instead, we propose a pseudo-label generation strategy based on the harmonic mean of\nanswer frequencies across both the original and reframed rollouts. This mechanism inherently rewards answers that appear consistently in both distributions while penalizing those that arise\nonly in one, thereby filtering out solutions driven by biased reasoning. With the pseudo-label\nselected by harmonic mean, the two roles engage in cooperative self-play: the Solver is trained to\nalign with the robust pseudo-label, while the Reframer is trained to generate informative reformulations that expose and challenge the Solver’s current biases. This interaction enables the model to\nescape the limitations of majority voting.\nWe demonstrate the effectiveness of Self-Harmony through extensive experiments on multiple reasoning benchmarks using open-source models ranging from 1.7B to 8B parameters. Our contributions are threefold: (1) a novel TTRL framework, Self-Harmony, that adapts self-play to improve\nreasoning without labels or external models; (2) a robust pseudo-label selection mechanism based\non the harmonic mean, which mitigates common failure modes of majority voting; and (3) stateof-the-art results across five open-source models and six challenging reasoning datasets. Notably,\nwith only 16 original and 16 reframed rollouts, Self-Harmony boosts the performance of Llama-3.18B (Grattafiori et al., 2024) on GSM8K (Cobbe et al., 2021) from 60.5% to 91.6%, and improves\nQwen3-4B (Yang et al., 2025) on MATH500 (Lightman et al., 2024) from 60.2% to 78.5%.\n1.0\n\n0.89 0.89 0.86 0.90\n\nCorrect\nConsistency\nWrong\nConsistency\n\nAnswer Consistency Score\n\n0.8\n\nSymbolic\nStyle\n\nCalculating\n31\n28\n\n0.62 0.59\n\n0.6\n\nOriginal Question x\n\nWrong\n120, 28, 0\nModel𝜃\nCorrect\n4495\n\n0.46\n\n0.4\n\nInvariant\nStyle-Insensitive\n\nQuestion\nSemantic\n\n0.33\n\nCorrect\n4495\n\nReframed Question x′\n\n0.2\n0.11\n\n0.12\n0.02\n\n0.0\n\n0.00\n\n-4o -3.5 -4B -8B -3B -8B\nGPTClaude Qwen QwenMA-3.2MA-3.1\nLLa LLa\n\nConcrete\nStyle\n\nConsider the scenario\nwhere you have 31 students\nand need to select a special\ngroup of 28 students for a\nproject. How many different\nways can you choose this\ngroup?\n\n(a)\n\nChanged\nStyle-Sensitive\n\nModel𝜃\nWrong\n28, 2\n\n(b)\n\nFigure 1: (a) The illustration of correct answer consistency and wrong answer consistency of some\nLarge Language models in the original question and semantic reframed question pair. We could\nsee the correct answer consistency is significantly higher than the wrong answer consistency, which\nmeans if models answer the original question correctly, then it will be more likely to keep the\nsame answer asked by a reframed question. (b) Illustration showing that the hypothesis that how\nquestion description style can influence model outputs. The original question x and its faithfully\nparaphrased counterpart x′ share the same underlying semantic meaning but differ in surface style.\nA single model M odelθ answers both questions, producing either correct or incorrect responses.\nThis highlights the hypothesis that correct answers should remain stable across paraphrased\nviews, while spurious errors are more dependent on stylistic variations.\n\n2\n\nR ELATED W ORK\n\n2.1\n\nS ELF -I MPROVEMENT FOR LLM R EASONING AT T EST T IME\n\nA central challenge in advancing LLM reasoning is reducing reliance on large-scale supervised\ndatasets. Test-Time Reinforcement Learning (TTRL) has emerged as a promising paradigm, enabling models to adapt during inference using only unlabeled problems (Zuo et al., 2025; Zhang\net al., 2025; Prabhudesai et al., 2025; Zhao et al., 2025b). Many TTRL methods employ a rulebased verifier to provide learning signals. The most common intrinsic verifier is majority voting\n2\n\n\fPublished as a conference paper at ICLR 2026\n\n(or self-consistency) (Zuo et al., 2025; Liu et al., 2025a), where the most frequent answer across\nmultiple rollouts is selected as a pseudo-label for fine-tuning. While effective in some cases, this\napproach can amplify systematic biases: if a flawed reasoning process consistently produces the\nsame incorrect answer, majority voting will reinforce that error with high confidence. Other methods mitigate this issue by leveraging powerful external models for verification (Lightman et al.,\n2024; Khalifa et al., 2025; Zhao et al., 2025a), or employing external reward models to guide reinforcement learning (Welleck et al., 2024; Lambert et al., 2024). However, such approaches violate\nthe principle of a fully self-contained, test-time setting. In contrast, Self-Harmony operates as a\npure TTRL framework, directly addressing the pseudo-label selection problem without relying on\nexternal supervision.\n2.2\n\nS ELF -P LAY AND DATA AUGMENTATION\n\nSelf-play has been successfully adapted to LLMs, primarily in adversarial contexts where agents\ncompete to identify and exploit vulnerabilities (e.g., “red-teaming”) (Perez et al., 2022; Ge et al.,\n2024; Kuba et al., 2025). In contrast, our work introduces a novel cooperative self-play framework. Rather than competing, a single model assumes two collaborative roles—a Solver and a\nReframer—that work together to produce solutions robust to changes in problem formulation (Xi\net al., 2023; Zhou et al., 2024; Chen et al., 2024; Liu et al., 2024; Liang et al., 2025; Zhang et al.,\n2025). This reframing mechanism can be viewed as a form of online data augmentation, where\nthe objective is to generate diverse perspectives of a problem. The key intuition is that correct answers should remain invariant under such reformulations, whereas incorrect answers arising from\nfragile reasoning patterns will not be consistently reproduced. This cooperative dynamic—aimed\nat distilling stable truths rather than exploiting weaknesses—distinguishes our approach from prior\nadversarial self-play methods (Perez et al., 2022; Ge et al., 2024).\n2.3\n\nU NSUPERVISED S IGNAL S ELECTION BY E NFORCING C ONSISTENCY ACROSS V IEWS\n\nAt its core, Self-Harmony is an unsupervised method that constructs its own supervisory signal without relying on ground-truth labels. Recent work uses self-consistency as an unsupervised signal in\nreasoning and preference learning (Prasad et al., 2024; Huang et al., 2022), but these methods enforce consistency within a single view—typically via majority voting—whereas we seek a stronger\ncriterion that goes beyond simple vote accumulation. Our pseudo-label selection mechanism is inspired by the information maximization (Infomax) principle, which encourages representations that\nremain invariant across different “views” of the data (Linsker, 1988; Bell &amp; Sejnowski, 1995; Hjelm\net al., 2019; Tian et al., 2020). This approach mirrors the principles of Invariant Risk Minimization (Arjovsky et al., 2019) and Group-Invariant Learning (Chen et al., 2020) by treating paraphrases\nas distinct environments, ensuring that selected answers are robust to surface-level transformations\nrather than relying on view-dependent spurious correlations. In our setting, the Solver and Reframer\nproduce solutions to the original and reformulated problems, thereby creating two distinct distributional views. To enforce agreement across these views, we employ the harmonic mean of answer\nfrequencies, which provides a stringent yet practical criterion (Xie et al., 2020; Sohn et al., 2020).\nBecause the harmonic mean heavily penalizes low values, an answer must appear frequently in both\ndistributions to be selected. This effectively filters out spurious solutions that arise from a single\nfragile reasoning path but fail to generalize under reformulation, enabling the model to construct a\nreliable, unsupervised learning signal.\n\n3\n\nM ETHOD\n\nAdapting a pre-trained LLM to a targeted test set without ground-truth labels at test time requires\nthe model to generate and refine its own training signal from uncertain rollouts. In this setting,\npseudo-label selection becomes the bottleneck. To motivate our approach, we first formalize the\nproblem and illustrate the limitations of prevailing pseudo-labeling strategies, and then introduce\nour core mechanism for generating dual-view consistency: using the model itself to paraphrase the\noriginal question and create a new, diverse problem perspective. Building on this, we provide a\ntheoretical analysis showing that harmonic mean consensus is a better pseudo-labeling under multiview consistency. Finally, we introduce Self-Harmony, a practical algorithm that operationalizes\nthis principle through structured self-play and robust policy optimization.\n3\n\n\fPublished as a conference paper at ICLR 2026\n\n3.1\n\nP ROBLEM F ORMULATION AND M OTIVATION\n\nGiven an unlabeled test dataset, for each question x in the set, we aim to adapt our pre-trained LLM\nπθ to get a better performance on that test dataset. To achieve this, the model generates n rollouts\nfor the input question x. Since ground-truth labels are unavailable during test-time adaptation, a\npseudo-label y ⋆ must be inferred from the rollouts and used as feedback for policy optimization.\nThe quality of this pseudo-label directly dictates the stability of the adaptation process.\nA dominant approach is majority voting: the answer most frequently generated by the model is\nselected. However, this simplicity comes at a cost. When p(Correct | x) &lt; p(Wrong | x),\nLiu et al. (2025b) formally shows that as we draw more samples, the chance that majority voting\nrecovers the correct answer actually converges to zero — meaning that majority voting amplifies\nthe wrong solution instead of correcting it. To resolve the “majority-vote trap” in LLM test time\nadaptation, we draw inspiration from a common human robustness heuristic: when confronted with\nuncertainty, people often check solutions across multiple perspectives or reformulate the problem\nto verify consistency (Pólya, 1945; Spiro et al., 1988). We hypothesize that the correct answer,\neven if not the most popular, should appear robustly across different, faithfully paraphrased\nversions of the question. Inspired by this, we argue that pseudo-labels should not be judged solely\nby popularity within a single question description, but rather by invariance across multiple views.\nThis motivates an alternative criterion based on information-theoretic principles.\n3.2\n\nT HEORETICAL A NALYSIS : F ROM M AJORITY VOTING TO H ARMONIC M EAN\n\nOur analysis begins by showing how a simple extension of majority voting to multiple views can still\nfail. We then introduce an information-theoretic objective grounded in a view-invariance assumption. We demonstrate that the harmonic mean emerges as a principled second-order approximation\nof this objective, providing a robust mechanism for selecting pseudo-labels.\nBuilding on prior research in dual-view approaches (Zhang et al., 2025; Federici et al., 2020), we\nextend the idea of majority voting to a multi-view setting. Let p0 (a) be the probability that the\npolicy πθ generates answer a for the original query x, and p1 (a) be the probability that the policy\nπθ generates answer a for a reformulated query x′ . A straightforward extension of the single-view\nmajority voting principle is to aggregate the evidence from both views. This approach, which we\nterm dual-view majority voting,\nselects the answer with the highest combined probability: y ⋆ =\n\u0001\narg maxa p0 (a) + p1 (a) , This method can resolve some single-view failures. For instance, if the\ncorrect answer C is less probable than a wrong answer W in the first view (p0 (C) &lt; p0 (W )) but\nmore probable in the second (p1 (C) &gt; p1 (W )), their sum may correctly favor C. However, dualview majority voting remains vulnerable; it fails when different wrong answers dominate each view,\nas their summed probabilities can easily overwhelm that of the correct answer.\nTo overcome this limitation, we turn to an information-theoretic (Bell &amp; Sejnowski, 1995; Tsai\net al., 2020; Hjelm et al., 2019) approach guided by an assumption about the correct answers.\nWe view the correct answer C as depending only on the underlying semantics of a query, not its\nsuperficial form. Thus, for two queries with equivalent meaning, the probability assigned to C\nshould remain unchanged. This motivates our core assumption below.\nAssumption 3.1 (View-Invariance Assumption). For any two semantically equivalent queries x and\nx′ , the correct label C has an approximately constant probability mass: p(A = C | x) = p(A =\nC | x′ ) where A is the random variable of answer a. In contrast, the probabilities of incorrect labels\nA ̸= C vary across different views, reflecting their dependence on view-specific artifacts.\nTo formalize this, we define an objective that rewards accuracy while penalizing view-dependence.\nLet A be the random variable for the model rollout candidate answer a, X ∈ {x, x′ } the view, and\nZa = I{A = a} an indicator for whether the model’s answer is a or not. We adapt the standard\nInfomax principle, which maximizes the mutual information I(Za ; A), by introducing a penalty\nterm I(Za ; X) that discourages dependence on the specific view. This yields the View-Invariant\nInfomax objective:\nJλ (a) = I(Za ; A) − λI(Za ; X)\nwhere the hyperparameter λ balances the trade-off between accuracy and view-invariance.\n4\n\n\fPublished as a conference paper at ICLR 2026\n\nTheorem 3.2 (Harmonic Mean Selector from Invariant Infomax). Assume the view-invariance condition (Assumption 3.1) holds. Suppose moreover that the following conditions are satisfied.\nA1. Non-degeneracy. For every label a, p0 (a) + p1 (a) &lt; 1. (This simply excludes the trivial case\nin where the majority voting can solve.)\n⋆\nA2. Balanced–Confidence. There\na constant\n\u0002 exists\n\u0003 κ ∈ (0, 1) such that for every maximiser a of\n⋆\n⋆\n⋆\n⋆\nJλ (·) : p0 (a ) − p1 (a ) ≤ κ p0 (a ) + p1 (a ) .\n\nA3. Uniform View Prior. The view variable X ∈ {x, x′ } is assumed to be sampled uniformly, i.e.,\np(X = x) = p(X = x′ ) = 12 . This assumption ensures that the penalty term I(Za ; X) reflects\ndependence on the view itself rather than bias in the sampling distribution.\nThen, for the penalty weight λ = 2, the pseudo label that maximises the second-order approximation\nof the view-invariant Infomax objective J2 (a) = I(Za ; A)−2 I(Za ; X) is obtained by the harmonic\nmean of the two view-probabilities:\ny ⋆ = arg max\na\n\n2 p0 (a) p1 (a)\n∈ arg max J2 (a)\na\np0 (a) + p1 (a)\n\nThe full proof can be found in Appendix G.1. Theorem 3.2 implies that the harmonic mean is not an\narbitrary heuristic but a principled regularizer that enforces view-invariance. It naturally emphasizes\nanswers that maintain consistent support across views while aggressively penalizing those that are\nstrong in one view but weak in another. This aligns well with the intuition that a true answer should\nbe robust to reformulation, while spurious artifacts should not.\n3.3\n\nSelf-Harmony F RAMEWORK\nPolicy Optimization\n\n4495 28\n\nOriginal Question x\n\u0012 \u0013\n31\nCalculating\n28\n\n28 4495\n\nRewards{ri } of {yi }\nRule Verifier\n\n2\nPre-Trained\nLLM\nπθ\n\n28\n\n2\n\n28\n\nCalculate a(each answer candidate)’s frequency in {yi }: p̂0 (a)\nCalculate a(each answer candidate)’s frequency in {yi′ }: p̂1 (a)\n\n1\n\n0\n\n0\n\n1\n\n0\n\n0\n\n0\n\n0\n\nGRPO Objective J\n\nI[yi = y ⋆ ]\n\nReframer Model ρθ\nρθ and πθ share\nparameters\n\nExtracted Rollout Answers {yi } of x\n\nOurs: Harmonic Mean Pseudo Label\n0 (a)·p̂1 (a)\ny ⋆ = arg maxA 2·p̂\np̂0 (a)+p̂1 (a)\ny⋆\n\n=\n\n4495 ✓\n\nBaseline: Majority Voting Pseudo Label\n⋆\n= 28 ×\nymj\n\nReframed Question x′\nConsider the scenario\nwhere you have 31\nstudents and need to select\na special group of 28\nstudents for a project. How\nmany different ways can\nyou choose this group?\n\n120 28 120\n\n0\n\n120\nRule Verifier\n\n0 4495 4495\n\nExtracted Rollout Answers {yi′ } of x′\n\nI[yi′ = y ⋆ ]\n\n0\n\n0\n\n0\n\n0\n\n0\n\n0\n\n1\n\n1\n\nGRPO Objective J ′\n\nRewards{ri′ } of {yi′ }\n\nFigure 2: An overview of our framework. Given an unlabeled question x, the policy model πθ will\nparaphrase it to a new question x′ , and then generate sets of extracted rollout answers {yi } and {yi′ }\nrespectively. A rule-based verifier assigns a reward to each response based on its correctness against\na target y ⋆ got by harmonic mean instead of majority voting. These rewards are aggregated into\nobjective functions, J and J ′ , which guide the optimization of the pre-trained LLM.\nBased on our theoretical analysis which concludes that View-Invariant Infomax pseudo-labeling\nrule for robust multi-view adaptation is to select answers based on their harmonic mean score,\nThe Self-Harmony framework is the practical instantiation of this principle. It operationalizes this\nby having a single model engage in structured self-play. The model generates answers from two\ndistinct perspectives—an original view and a self-generated, reframed view. The harmonic mean\nconsensus rule then identifies the most consistent answer across these views to serve as the training\nsignal, ensuring that only perspective-stable solutions are reinforced.\nSingle Model, Dual Roles for View Generation. Self-Harmony uses a single model (Mθ ) that\nswitches between two roles via prompting. The Solver role πθ generates answers to a query x, while\nthe Reframer role ρθ creates a semantically equivalent paraphrase, x′ . The framework follows an\n5\n\n\fPublished as a conference paper at ICLR 2026\n\nintuitive ”solve → reframe → solve” conceptual sequence. First, the Solver πθ generates answers\nfor x. Second, the Reframer ρθ generates x′ . Third, the Solver πθ is invoked again to generate\nanswers for x′ . For computational efficiency, our practical implementation optimizes this process;\nwe detail this in the Experiments section.\nPseudo-Label Selection via Harmonic Mean Score (HMS). Following our theoretical analysis\n(Theorem 3.2), we select the pseudo-label y ⋆ by identifying the candidate answer a that maximizes\nthe Harmonic Mean Score of its empirical support from the original p̂0 (a) and reframed p̂1 (a) views\n0 (a)p̂1 (a)\naccording: y ⋆ = arg maxa p̂20p̂(a)+\np̂1 (a) .\n3.4\n\nF ROM C ONCEPTUAL F RAMEWORK TO P RACTICAL I MPLEMENTATION\n\nAlgorithm 1 Self-Harmony (Conceptual Flow)\n1: Input: Language Model Mθ , Test Dataset D, Number of rollouts N\n2: Define: Training Step T; Problem Solver πθ , Reframer ρθ . They shared the parameters\n3: Output: Adapted model parameters θT\n4: for t = 1 to T do\n5:\nSample minibatch B ⊂ D\n6:\nfor query x ∈ B do\n7:\nGenerate N extracted rollout answer {y} via y ∼ πθ (· | x)\n// Solver on x\n8:\nGenerate x′ ∼ ρθ (· | x)\n// Reframe question from x to x’\n′\n′\n′\n′\n9:\nGenerate {y } via y ∼ πθ (· | x )\n// Solver on x\n10:\nCalculate A(each answer candidate)’s frequency in {yi }: p̂0 (a) and in {yi′ }: p̂1 (a)\n⋆\n11:\nCompute the pseudo-label y via HMS(p̂0 (a), p̂1 (a)).\n′\n12:\nCompute rewards: Rsolve , Rsolve\n, and diversity reward Rreframe\n13:\nCompute ∇J(θ) + ∇J ′ (θ) via rewards\n14:\nUpdate θ by ascending ∇J(θ) + ∇J ′ (θ)\n15:\nend for\n16: end for\n\nThe core principle of Self-Harmony is a three-step solve → reframe → solve sequence, as outlined\nin Algorithm 1. This conceptual flow isolates three distinct actions: an initial solving action on the\noriginal query, a reframing action, and a final solving action on the paraphrased query.\nHowever, executing this sequence with three separate model calls is computationally inefficient.\nTo create a practical and scalable algorithm, we optimize this flow by fusing the reframing and\nthe second solving steps into a single, structured generative action. This is implemented in\npractice using a system prompt that instructs the model to first paraphrase the question and then\nimmediately solve its own paraphrase within a single generation (see Appendix D.1 the full prompt).\nThis optimization reduces the process to two efficient model calls: one for the initial solution and\none for the joint ”reframe-and-solve” trajectory.\n3.4.1\n\nP OLICY O PTIMIZATION WITH F USED ACTIONS\n\nThis fusion fundamentally changes the optimization problem. Instead of three actions, the policy\nnow executes two, requiring a reward structure that reflects this new dynamic.\nReward for the Initial Solving Action. The first solving action remains unchanged. It is executed\nby the policy πθ and rewarded for matching the pseudo-label y ⋆ , which is determined after both\ntrajectories have been generated. The reward is simply the correctness of the generated answer y:\nRsolve (y) = I[y = y ⋆ ].\nReward for the Fused Reframing-and-Solving Action. The composite action requires a reward\nthat jointly evaluates paraphrase quality and final-answer correctness. A standard additive reward\nis suboptimal, as it grants partial credit for a well-formed paraphrase even when the final answer is\nwrong (see Appendix E.5).\nWe instead design a reward where answer correctness acts as a success gate. A base reward is\ngiven only when the answer is correct and is modulated by two penalty terms: a Format Penalty\npenalty\npenalty\n(Rformat\n) for structural violations, and a Diversity Penalty (Rdiv\n), which is the Jensen-Shannon\ndivergence between the original and reframed queries’ answer. Here, each (1 −w ·Rpenalty ) term acts\nas a reward, so higher penalties reduce the final score. The final reward is defined as Rfused (y ′ ) =\npenalty ′\npenalty ′\n(1 − wf Rformat\n(y ))(1 − wd Rdiv\n(y , y))I[y ′ = y ⋆ ], where I[y ′ = y ⋆ ] is 1 if the predicted answer\n6\n\n\fPublished as a conference paper at ICLR 2026\n\nis correct and 0 otherwise. This ensures that only correct answers receive reward, while the penalties\nshape the signal to favor reframings that are both well-formed and meaningfully different.\nTable 1: Main results on reasoning benchmarks. Self-Harmony consistently outperforms baseline methods across most tested models and datasets, demonstrating both superior performance and\ntraining stability. The best and second-best results are highlighted. Specifically, if a baseline’s performance degrades significantly after its peak, we report the highest score observed across validation\nsteps and mark it with an asterisk (*) while ours Self-Harmony use the score at final step.\nMathematics\n\nMethods\nMATH500\n\nGSM8K\n\nAIME 2024\n\nMulti-Subject\n\nMulti-Task\n\nAMC\n\nGPQA\n\nMMLU-Pro\n\nQwen3-1.7B-Base\nBefore RL\n- GT-Reward\n\n42.70\n71.80\n\n65.58\n85.97\n\n3.33\n20.83\n\n26.50\n53.01\n\n20.30\n53.80\n\n16.61\n85.71\n\n- Intuitor\n- Rent\n- Majority-Voting\n- Co-Reward\n- Self-Harmony\n\n51.12*\n61.08\n64.64\n64.67\n69.60\n\n80.25*\n78.64*\n83.80\n86.59\n87.47\n\n3.75*\n6.45*\n9.37\n6.67\n10.00\n\n23.56*\n32.00*\n37.65\n39.75\n40.51\n\n23.76*\n23.47*\n24.68\n23.66\n27.92\n\n31.25*\n18.04*\n44.82\n47.14\n53.66\n\nBefore RL\n- GT-Reward\n\n60.20\n83.40\n\n55.72\n94.69\n\n6.66\n50.00\n\n34.94\n86.74\n\n16.75\n92.89\n\n27.59\n92.85\n\n- Intuitor\n- Rent\n- Majority-Voting\n- Co-Reward\n- Self-Harmony\n\n72.35*\n74.60\n75.75\n76.54\n78.50\n\n87.53*\n90.49*\n93.44\n93.47\n94.31\n\n10.41*\n12.08*\n20.00\n12.71\n20.00\n\n43.59*\n45.25*\n49.32\n46.98\n49.40\n\n32.39*\n31.78*\n36.51\n24.36\n37.06\n\n64.55*\n66.16*\n52.95\n51.79*\n67.68\n\nBefore RL\n- GT-Reward\n\n66.80\n84.72\n\n84.76\n96.51\n\n10.00\n56.66\n\n45.78\n87.95\n\n33.44\n93.40\n\n50.09\n92.85\n\n- Intuitor\n- Rent\n- Majority-Voting\n- Co-Reward\n- Self-Harmony\n\n78.77*\n77.26*\n78.99\n78.92\n80.00\n\n92.28*\n91.20*\n94.00\n94.80\n95.45\n\n17.08*\n18.54*\n24.16\n15.83\n23.33\n\n51.65*\n50.82*\n59.03\n51.80\n59.04\n\n31.56*\n37.88*\n39.34\n24.42\n38.07\n\n60.54\n69.91*\n77.58\n57.59*\n77.68\n\nQwen3-4B-Base\n\nQwen3-8B-Base\n\nLlama-3.2-3B-Instruct\nBefore RL\n- GT-Reward\n\n39.80\n69.80\n\n16.65\n93.70\n\n6.67\n33.33\n\n19.27\n83.13\n\n3.04\n89.34\n\n34.11\n72.85\n\n- Intuitor\n- Rent\n- Majority-Voting\n- Co-Reward\n- Self-Harmony\n\n47.78*\n47.30*\n46.38\n55.22\n55.40\n\n16.73*\n16.67*\n85.98\n89.14\n89.55\n\n9.16*\n7.70*\n13.33\n13.33\n13.33\n\n23.79*\n23.79*\n20.48\n25.30\n25.30\n\n3.23*\n2.79*\n22.33\n19.79\n29.95\n\n34.64*\n34.38*\n31.43\n34.02*\n44.29\n\nLlama-3.1-8B-Instruct\nBefore RL\n- GT-Reward\n\n41.46\n73.60\n\n60.48\n95.60\n\n3.33\n33.33\n\n20.48\n80.72\n\n14.72\n89.84\n\n43.75\n91.42\n\n- Intuitor\n- Rent\n- Majority-Voting\n- Co-Reward\n- Self-Harmony\n\n48.37*\n45.98*\n46.71*\n48.01*\n50.40\n\n66.25*\n69.88*\n88.78*\n89.48\n91.59\n\n6.45*\n3.95*\n4.13\n3.33\n10.00\n\n6.62*\n21.98*\n21.53\n17.84\n26.51\n\n15.32*\n14.56*\n25.31\n24.36\n28.93\n\n40.00*\n40.80*\n45.36*\n42.77*\n50.00\n\n4\n\nE XPERIMENT\n\n4.1\n\nS ETTINGS\n\nBenchmarks and Baselines. We evaluate our method on a diverse set of reasoning benchmarks:\nMATH500 (Hendrycks et al., 2021), GSM8K (Cobbe et al., 2021), AIME 2024, AMC, GPQADiamond (Rein et al., 2023), and MMLU-Pro (Wang et al., 2024). Following (Zuo et al., 2025),\n7\n\n\fPublished as a conference paper at ICLR 2026\n\nwe report the average pass@1 over 16 rollouts. Our primary baselines are recent label-free methods: Intuitor (Zhao et al., 2025b), Rent (Prabhudesai et al., 2025), TTRL (Zuo et al., 2025), and\nCo-Reward (Zhang et al., 2025). For Co-Reward, we match model sizes for question rewriting\nrather than relying on Qwen3-32B. Specifically, Qwen3-XB-Base uses its corresponding instruct\nmodel, and Llama-Instruct uses its own. For rewriting prompts, we follow the settings described\nin the original papers. To ensure fairness, all methods use the same hyperparameters and official\nimplementations.\nModels and Training Details. To demonstrate the generality of our approach, we evaluate across\na range of open-source models: Qwen3-1.7B-Base, Qwen3-4B-Base, Qwen3-8B-Base (Yang et al.,\n2025), Llama-3.1-8B-Instruct (Grattafiori et al., 2024), and Llama-3.2-3B-Instruct. All experiments\nuse a learning rate of 3 × 10−6 with a cosine schedule. For each dataset, we adopt a fully unsupervised reinforcement learning setting: a separate model is trained on the dataset without using any\nground-truth labels at any stage. Although the same dataset is later used for evaluation, correctness\nlabels are never used to generate pseudo-labels or to form any training signal, so no correctness\ninformation leaks into training. All pseudo-labels during training are produced exclusively by the\nmodel’s own rollouts, and every result reported corresponds to a model independently trained on that\ndataset under this strictly label-free setting. A complete list of hyperparameters and experimental\nsettings is provided in Appendix D.2.\nFair Comparison of Computational Budget. Multi-view methods incur additional computational cost since our framework generates answers from two views. To ensure fairness, all baselines\nwere allocated a comparable budget. Specifically, if Self-Harmony uses Nr rollouts for both the\noriginal and reframed views (totaling 2Nr ), then each baseline was also allowed 2Nr rollouts from\nits single view. This setup guarantees that performance improvements are attributable to methodological effectiveness rather than increased computation.\n4.2\n\nM AIN R ESULTS\n\nWe evaluate Self-Harmony against several baseline reward modeling techniques across five reasoning benchmarks using five base models from the Qwen3 and Llama-3 series. The results are\nsummarized in Table 1.\nDominant Performance Across Benchmarks. Across 30 configurations (5 models × 6 benchmarks), Self-Harmony ranks first in 28 cases and second in the remaining 2, demonstrating strong\ngeneralizability across both model families (Qwen, Llama) and parameter scales (1.7B–8B). For\nexample, on MATH500 with Qwen3-1.7B, accuracy improves from 42.70% to 69.60%, while no\nbaseline exceeds 65%, nearly matching the oracle GT-Reward score of 71.80%.\n0.9\n0.8\n\n0.4\n\n0.7\n\nSelf-Harmony\nTTRL\nCoReward\nReNT\nIntuitor\n\n0.3\n0.2\n\nAccuracy\n\nMath500 Pass@1\n\n0.5\n\n0.6\n0.5\n0.4\n\n0.1\n\nTTRL\nCo-Reward\nSelf-Harmony\n\n0.3\n0.2\n\n0.0\n0\n\n20\n\n40\n\nStep\n\n60\n\n80\n\n20\n\n100\n\n(a) Training Stability\n\n40\n\nStep\n\n60\n\n80\n\n100\n\n(b) Pseudo-label accuracy on Math500-Level3\n\nFigure 3: (a) Self-Harmony demonstrates the highest training stability with Llama-3.1-8B-Instruct\non MATH500. (b) Comparison of pseudo-label accuracy. Self-Harmony consistently generates\npseudo-labels with the highest accuracy throughout training, significantly outperforming Co-Reward\nand TTRL. For Co-Reward, we use the average accuracy for both original branch and reframed\nbranch.\nSuperior Training Stability. As shown in Table 1, Fig. 3a, Self-Harmony remains stable across all\nexperiments, highlighting the robustness of its reward modeling and training framework.\n8\n\n\fPublished as a conference paper at ICLR 2026\n\n4.3\n\nA NALYSIS\n\nIn this section, we conduct a detailed analysis to validate the core mechanisms of our Self-Harmony\nframework. We first analyze our Harmonic Mean Score (HMS), showing that its effectiveness in\ngenerating pseudo-labels corresponds logically with problem difficulty. We then present a comprehensive ablation study that confirms each component of our framework—including the Reframer’s\nreward objectives and our pseudo-label selection strategy—is critical to the model’s success. Collectively, these findings validate the key design principles and overall effectiveness of our approach.\n4.3.1\n\nP SEUDO -L ABEL Q UALITY E VALUATION\n\n0.943 0.952 0.962 0.952 0.952\n\n0.4\n\n0.952 0.952 0.943 0.952 0.943\n\n0.6\n\n0.943 0.952 0.943 0.952 0.952\n\n0.960\n\n0.95\n\n0.955\n\n0.90\n\nPass@1\n\n0.2\n\n0.950\n\nPass@1\n\nFormat Coefficient\n\nThe success of Self-Harmony is driven by the comprehensive quality of its pseudo-labels. We evaluate this quality not only through raw accuracy but also through stability and calibration metrics. As\nshown in Figure 3(b), our method achieves the highest accuracy on MATH500 (Level 3), stabilizing\naround 80–85%. To further elucidate why our approach excels, we analyze additional signal properties—including F1-score and Spearman correlation—in Appendix L. These metrics confirm that\nharmonic mean score provides more calibrated supervision by penalizing spurious, view-dependent\nanswers.\n\n0.945\n0.8\n\n1.0\n\n0.952 0.943 0.952 0.943 0.952\n0.933 0.943 0.962 0.943 0.943\n0.2\n\n0.4\n\n0.6\n\n0.8\n\nDiversity Coefficient\n\n0.85\n0.80\n\nMean Pass@1\nVaried Range\n\n0.940\n\n0.75\n\n0.935\n\n0\n\n1.0\n\n(a) Performance Heatmap\n\n20\n\n40\n\nStep\n\n60\n\n80\n\n100\n\n(b) Performance Range\n\nFigure 4: Sensitivity analysis for the format (wf ) and diversity (wd ) reward coefficients. (a) A\nheatmap showing consistently high performance across a wide range of coefficient values. (b) A\nplot illustrating the uncertainty range, confirming the model’s robustness to hyperparameter choices.\n4.3.2\n\nM ODULE A BLATION S TUDY\n\nTable 2: Ablation study on the MATH500 benchmark. We analyze the impact of removing the\nFormat and Diversity rewards from the Reframer, and replacing our Harmonic Mean Score (HMS)\nbased Pseudo-label Selection with simpler Majority Voting and Cross selection methods. All results\nare averaged over the last three evaluation checkpoints.\nMath500\nQwen3-4b-Base\nQwen3-8b-Base\n\nSelf-Harmony (Full)\n78.50\n79.80\n\nReframer\nw/o Format Reward w/o Diversity Reward\n78.40\n78.20\n77.46\n78.90\n\nPseudo-label Selection\nCross Selection Majority Voting\n76.50\n77.30\n78.40\n79.00\n\nWe conduct ablations to evaluate each component’s contribution (Tab. 2). For the Reframer, removing either the diversity rewardor the format reward consistently degraded performance. On\nQwen3-8B, removing the diversity reward reduced accuracy from 79.80% to 78.90%, showing that\na second view must be meaningfully different to be effective.\nFor Pseudo-label Selection, we compare our HMS with two simpler strategies: (1) Majority Voting,\nwhere branchs uses their majority-voted outputs, and (2) Cross Selection, where branches swap\noutputs. Both underperform HMS, with Qwen3-8B dropping to 79.00% (Majority) and 78.40%\n(Cross) vs. 79.80% for HMS.\nThese trends hold for both 4B and 8B models, confirming the necessity of all core components for\nSelf-Harmony’s effectiveness.\n9\n\n\fPublished as a conference paper at ICLR 2026\n\nOriginal Question 1\n\nReframed Question 1\n\nHow many y-intercepts does the graph\nof the parabola x = y 2 − 4y − 1 have?\n\nA path is described by the equation x =\ny 2 − 4y − 1. How many points on this\npath touch the vertical line at x = 0?\n\nOriginal Question 2\n\nReframed Question 2\nImagine you’re a craftsman dividing a 2foot-long wooden board into smaller, precise segments. You notice that you have\na 3-inch piece that you need.\n\nWhat fraction of 2 feet is 3 inches?\nExpress your answer as a common fraction.\n\nWhat fraction of your 2-foot board\ndoes this 3-inch piece represent?\n\nFigure 5: Examples of original and reframed questions. The Reframer rewrites the problem while\npreserving its semantics and ensuring the correct answer remains unchanged.\n4.3.3\n\nS ENSITIVITY TO R EWARD C OEFFICIENTS\n\nOur Reframer’s reward is governed by two key hyperparameters: the format reward coefficient\nwf and the diversity reward coefficient wd . To assess the sensitivity of Self-Harmony to these\nparameters, we conducted a grid search, varying both coefficients from 0.2 to 1.0.\nThe results, visualized in Figure 4, demonstrate that Self-Harmony is robust to the choice of these\ncoefficients. As shown in the heatmap (Figure 4a), the model’s performance on Math500 remains\nhigh and stable across the entire grid, with accuracy scores consistently above 89.5%. This stability\nis a significant advantage, as it indicates that our method does not require extensive or precise hyperparameter tuning to achieve strong results. Figure 4b further illustrates this robustness by showing\nthe minimal uncertainty in performance across different settings.\n4.4\n\nR EFRAMED Q UESTION E XAMPLES\n\nFigure 5 shows that the Reframer rewrites the problem to introduce stylistic diversity while rigorously preserving the underlying semantic constraints. This confirms the module’s ability to perform\nsemantic-invariant transformations, ensuring that the diversity needed for consistency checking is\ngenerated without altering the problem’s logic. Additional examples are provided in Table 6 and\nTable 7 in Appendix F.\n\n5\n\nC ONCLUSION\n\nEffective test-time reinforcement learning (TTRL) is hindered by the challenge of robust pseudolabel selection, as standard methods like majority voting often amplify an LLM’s inherent reasoning\nflaws. In this work, we introduced Self-Harmony, a label-free framework built on the core insight\nthat such flaws are often fragile and tied to specific problem phrasings. Through a self-play mechanism, a single model acts as both a Solver and a Reframer to generate a second, paraphrased view\nof each problem. We show theoretically that the Harmonic Mean Score (HMS) is a robust criterion\nfor identifying the invariant answer across these views, rewarding solutions that are stable under\nrephrasing. This approach achieves state-of-the-art performance in extensive experiments. Notably,\nacross 30 configurations, Self-Harmony ranks first in 28, demonstrating strong generalizability. For\nexample, on MATH500 with Qwen3-1.7B, Self-Harmony improves accuracy from 42.7% to 69.6%,\nwhile no baseline exceeds 65%, nearly matching the oracle GT-Reward score of 71.8%.\n\n10\n\n\fPublished as a conference paper at ICLR 2026\n\nE THICS S TATEMENT\nOur work focuses on improving the reasoning capabilities of large language models through a labelfree, self-correction mechanism. We primarily use publicly available and widely-cited academic\nbenchmarks (MATH, GSM8K, AIME, AMC, GPQA) and open-source models (Qwen3, Llama3 series), avoiding the collection of new, sensitive, or personally identifiable data. Our method,\nSelf-Harmony, does not introduce new sources of societal bias; however, it relies on foundational\nmodels which may inherit biases from their training data. While our research aims to advance the\nreliability of AI reasoning, a generally beneficial goal, we acknowledge that any advancement in AI\ncapabilities carries a dual-use risk. We have not identified any direct negative societal impacts or\nethical concerns stemming specifically from our proposed method. All research was conducted with\na commitment to academic integrity.\n\nR EPRODUCIBILITY S TATEMENT\nTo ensure the reproducibility of our results, we have made our implementation publicly available.\nThe complete source code for Self-Harmony(check link in Appendix A), along with scripts to replicate the experiments reported in our paper, is included in the supplementary materials. Our experiments are conducted exclusively on publicly available datasets, including MATH500, GSM8K,\nAIME, AMC, and GPQA-DIAMOND. The specific open-source models used (e.g., Qwen3-1.7BBase, Llama-3.1-8B-Instruct) are clearly cited in the main text. Detailed experimental settings,\nincluding all hyperparameters, prompt templates, and specific versions of the models, are documented in the appendix to facilitate replication. Our evaluation metric, pass@1, is standard for these\nbenchmarks, and our comparison with baseline methods uses identical learning hyperparameters to\nensure fairness.\n\nR EFERENCES\nMartin Arjovsky, Léon Bottou, Ishaan Gulrajani, and David Lopez-Paz. Invariant risk minimization.\narXiv preprint arXiv:1907.02893, 2019.\nAnthony J Bell and Terrence J Sejnowski. An information-maximization approach to blind separation and blind deconvolution. Neural computation, 7(6):1129–1159, 1995.\nShuxiao Chen, Edgar Dobriban, and Jane H Lee. A group-theoretic framework for data augmentation. Journal of Machine Learning Research, 21(245):1–71, 2020. URL https://www.\njmlr.org/papers/v21/20-163.html.\nWenqing Chen, Weicheng Wang, Zhixuan Chu, Kui Ren, Zibin Zheng, and Zhichao Lu. Selfpara-consistency: Improving reasoning tasks at low cost for large language models. In LunWei Ku, Andre Martins, and Vivek Srikumar (eds.), Findings of the Association for Computational Linguistics: ACL 2024, pp. 14162–14167, Bangkok, Thailand, August 2024. Association for Computational Linguistics. doi: 10.18653/v1/2024.findings-acl.842. URL https:\n//aclanthology.org/2024.findings-acl.842/.\nKarl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser,\nMatthias Plappert, Jerry Tworek, Henryk Michalewski, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. Training verifiers to solve math word problems. arXiv preprint\narXiv:2110.14168, 2021.\nMarco Federici, Anjan Dutta, Patrick Forré, Nate Kushman, and Zeynep Akata. Learning robust\nrepresentations via multi-view information bottleneck, 2020. URL https://arxiv.org/\nabs/2002.07017.\nSuyu Ge, Chunting Zhou, Rui Hou, Madian Khabsa, Yi-Chia Wang, Qifan Wang, Jiawei Han,\nand Yuning Mao. MART: Improving LLM safety with multi-round automatic red-teaming.\nIn Kevin Duh, Helena Gomez, and Steven Bethard (eds.), Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human\nLanguage Technologies (Volume 1: Long Papers), pp. 1927–1937, Mexico City, Mexico, June\n11\n\n\fPublished as a conference paper at ICLR 2026\n\n2024. Association for Computational Linguistics. doi: 10.18653/v1/2024.naacl-long.107. URL\nhttps://aclanthology.org/2024.naacl-long.107/.\nAaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad\nAl-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Alex Vaughan, Amy Yang, Angela Fan,\nAnirudh Goyal, Anthony Hartshorn, Aobo Yang, Archi Mitra, Archie Sravankumar, Artem Korenev, Arthur Hinsvark, Arun Rao, Aston Zhang, Aurelien Rodriguez, Austen Gregerson, Ava\nSpataru, Baptiste Roziere, Bethany Biron, Binh Tang, Bobbie Chern, Charlotte Caucheteux,\nChaya Nayak, Chloe Bi, Chris Marra, Chris McConnell, Christian Keller, Christophe Touret,\nChunyang Wu, Corinne Wong, Cristian Canton Ferrer, Cyrus Nikolaidis, Damien Allonsius,\nDaniel Song, Danielle Pintz, Danny Livshits, Danny Wyatt, David Esiobu, Dhruv Choudhary,\nDhruv Mahajan, Diego Garcia-Olano, Diego Perino, Dieuwke Hupkes, Egor Lakomkin, Ehab\nAlBadawy, Elina Lobanova, Emily Dinan, Eric Michael Smith, Filip Radenovic, Francisco\nGuzmán, Frank Zhang, Gabriel Synnaeve, Gabrielle Lee, Georgia Lewis Anderson, Govind Thattai, Graeme Nail, Gregoire Mialon, Guan Pang, Guillem Cucurell, Hailey Nguyen, Hannah Korevaar, Hu Xu, Hugo Touvron, Iliyan Zarov, Imanol Arrieta Ibarra, Isabel Kloumann, Ishan Misra,\nIvan Evtimov, Jack Zhang, Jade Copet, Jaewon Lee, Jan Geffert, Jana Vranes, Jason Park, Jay Mahadeokar, Jeet Shah, Jelmer van der Linde, Jennifer Billock, Jenny Hong, Jenya Lee, Jeremy Fu,\nJianfeng Chi, Jianyu Huang, Jiawen Liu, Jie Wang, Jiecao Yu, Joanna Bitton, Joe Spisak, Jongsoo Park, Joseph Rocca, Joshua Johnstun, Joshua Saxe, Junteng Jia, Kalyan Vasuden Alwala,\nKarthik Prasad, Kartikeya Upasani, Kate Plawiak, Ke Li, Kenneth Heafield, Kevin Stone, Khalid\nEl-Arini, Krithika Iyer, Kshitiz Malik, Kuenley Chiu, Kunal Bhalla, Kushal Lakhotia, Lauren\nRantala-Yeary, Laurens van der Maaten, Lawrence Chen, Liang Tan, Liz Jenkins, Louis Martin,\nLovish Madaan, Lubo Malo, Lukas Blecher, Lukas Landzaat, Luke de Oliveira, Madeline Muzzi,\nMahesh Pasupuleti, Mannat Singh, Manohar Paluri, Marcin Kardas, Maria Tsimpoukelli, Mathew\nOldham, Mathieu Rita, Maya Pavlova, Melanie Kambadur, Mike Lewis, Min Si, Mitesh Kumar Singh, Mona Hassan, Naman Goyal, Narjes Torabi, Nikolay Bashlykov, Nikolay Bogoychev, Niladri Chatterji, Ning Zhang, Olivier Duchenne, Onur Çelebi, Patrick Alrassy, Pengchuan\nZhang, Pengwei Li, Petar Vasic, Peter Weng, Prajjwal Bhargava, Pratik Dubal, Praveen Krishnan,\nPunit Singh Koura, Puxin Xu, Qing He, Qingxiao Dong, Ragavan Srinivasan, Raj Ganapathy, Ramon Calderer, Ricardo Silveira Cabral, Robert Stojnic, Roberta Raileanu, Rohan Maheswari, Rohit Girdhar, Rohit Patel, Romain Sauvestre, Ronnie Polidoro, Roshan Sumbaly, Ross Taylor, Ruan\nSilva, Rui Hou, Rui Wang, Saghar Hosseini, Sahana Chennabasappa, Sanjay Singh, Sean Bell,\nSeohyun Sonia Kim, Sergey Edunov, Shaoliang Nie, Sharan Narang, Sharath Raparthy, Sheng\nShen, Shengye Wan, Shruti Bhosale, Shun Zhang, Simon Vandenhende, Soumya Batra, Spencer\nWhitman, Sten Sootla, Stephane Collot, Suchin Gururangan, Sydney Borodinsky, Tamar Herman,\nTara Fowler, Tarek Sheasha, Thomas Georgiou, Thomas Scialom, Tobias Speckbacher, Todor Mihaylov, Tong Xiao, Ujjwal Karn, Vedanuj Goswami, Vibhor Gupta, Vignesh Ramanathan, Viktor\nKerkez, Vincent Gonguet, Virginie Do, Vish Vogeti, Vı́tor Albiero, Vladan Petrovic, Weiwei\nChu, Wenhan Xiong, Wenyin Fu, Whitney Meers, Xavier Martinet, Xiaodong Wang, Xiaofang\nWang, Xiaoqing Ellen Tan, Xide Xia, Xinfeng Xie, Xuchao Jia, Xuewei Wang, Yaelle Goldschlag, Yashesh Gaur, Yasmine Babaei, Yi Wen, Yiwen Song, Yuchen Zhang, Yue Li, Yuning\nMao, Zacharie Delpierre Coudert, Zheng Yan, Zhengxing Chen, Zoe Papakipos, Aaditya Singh,\nAayushi Srivastava, Abha Jain, Adam Kelsey, Adam Shajnfeld, Adithya Gangidi, Adolfo Victoria,\nAhuva Goldstand, Ajay Menon, Ajay Sharma, Alex Boesenberg, Alexei Baevski, Allie Feinstein,\nAmanda Kallet, Amit Sangani, Amos Teo, Anam Yunus, Andrei Lupu, Andres Alvarado, Andrew Caples, Andrew Gu, Andrew Ho, Andrew Poulton, Andrew Ryan, Ankit Ramchandani, Annie Dong, Annie Franco, Anuj Goyal, Aparajita Saraf, Arkabandhu Chowdhury, Ashley Gabriel,\nAshwin Bharambe, Assaf Eisenman, Azadeh Yazdan, Beau James, Ben Maurer, Benjamin Leonhardi, Bernie Huang, Beth Loyd, Beto De Paola, Bhargavi Paranjape, Bing Liu, Bo Wu, Boyu\nNi, Braden Hancock, Bram Wasti, Brandon Spence, Brani Stojkovic, Brian Gamido, Britt Montalvo, Carl Parker, Carly Burton, Catalina Mejia, Ce Liu, Changhan Wang, Changkyu Kim, Chao\nZhou, Chester Hu, Ching-Hsiang Chu, Chris Cai, Chris Tindal, Christoph Feichtenhofer, Cynthia\nGao, Damon Civin, Dana Beaty, Daniel Kreymer, Daniel Li, David Adkins, David Xu, Davide\nTestuggine, Delia David, Devi Parikh, Diana Liskovich, Didem Foss, Dingkang Wang, Duc Le,\nDustin Holland, Edward Dowling, Eissa Jamil, Elaine Montgomery, Eleonora Presani, Emily\nHahn, Emily Wood, Eric-Tuan Le, Erik Brinkman, Esteban Arcaute, Evan Dunbar, Evan Smothers, Fei Sun, Felix Kreuk, Feng Tian, Filippos Kokkinos, Firat Ozgenel, Francesco Caggioni,\nFrank Kanayet, Frank Seide, Gabriela Medina Florez, Gabriella Schwarz, Gada Badeer, Georgia\n12\n\n\fPublished as a conference paper at ICLR 2026\n\nSwee, Gil Halpern, Grant Herman, Grigory Sizov, Guangyi, Zhang, Guna Lakshminarayanan,\nHakan Inan, Hamid Shojanazeri, Han Zou, Hannah Wang, Hanwen Zha, Haroun Habeeb, Harrison Rudolph, Helen Suk, Henry Aspegren, Hunter Goldman, Hongyuan Zhan, Ibrahim Damlaj,\nIgor Molybog, Igor Tufanov, Ilias Leontiadis, Irina-Elena Veliche, Itai Gat, Jake Weissman, James\nGeboski, James Kohli, Janice Lam, Japhet Asher, Jean-Baptiste Gaya, Jeff Marcus, Jeff Tang, Jennifer Chan, Jenny Zhen, Jeremy Reizenstein, Jeremy Teboul, Jessica Zhong, Jian Jin, Jingyi Yang,\nJoe Cummings, Jon Carvill, Jon Shepard, Jonathan McPhie, Jonathan Torres, Josh Ginsburg, Junjie Wang, Kai Wu, Kam Hou U, Karan Saxena, Kartikay Khandelwal, Katayoun Zand, Kathy\nMatosich, Kaushik Veeraraghavan, Kelly Michelena, Keqian Li, Kiran Jagadeesh, Kun Huang,\nKunal Chawla, Kyle Huang, Lailin Chen, Lakshya Garg, Lavender A, Leandro Silva, Lee Bell,\nLei Zhang, Liangpeng Guo, Licheng Yu, Liron Moshkovich, Luca Wehrstedt, Madian Khabsa,\nManav Avalani, Manish Bhatt, Martynas Mankus, Matan Hasson, Matthew Lennie, Matthias\nReso, Maxim Groshev, Maxim Naumov, Maya Lathi, Meghan Keneally, Miao Liu, Michael L.\nSeltzer, Michal Valko, Michelle Restrepo, Mihir Patel, Mik Vyatskov, Mikayel Samvelyan, Mike\nClark, Mike Macey, Mike Wang, Miquel Jubert Hermoso, Mo Metanat, Mohammad Rastegari,\nMunish Bansal, Nandhini Santhanam, Natascha Parks, Natasha White, Navyata Bawa, Nayan\nSinghal, Nick Egebo, Nicolas Usunier, Nikhil Mehta, Nikolay Pavlovich Laptev, Ning Dong,\nNorman Cheng, Oleg Chernoguz, Olivia Hart, Omkar Salpekar, Ozlem Kalinli, Parkin Kent,\nParth Parekh, Paul Saab, Pavan Balaji, Pedro Rittner, Philip Bontrager, Pierre Roux, Piotr Dollar,\nPolina Zvyagina, Prashant Ratanchandani, Pritish Yuvraj, Qian Liang, Rachad Alao, Rachel Rodriguez, Rafi Ayub, Raghotham Murthy, Raghu Nayani, Rahul Mitra, Rangaprabhu Parthasarathy,\nRaymond Li, Rebekkah Hogan, Robin Battey, Rocky Wang, Russ Howes, Ruty Rinott, Sachin\nMehta, Sachin Siby, Sai Jayesh Bondu, Samyak Datta, Sara Chugh, Sara Hunt, Sargun Dhillon,\nSasha Sidorov, Satadru Pan, Saurabh Mahajan, Saurabh Verma, Seiji Yamamoto, Sharadh Ramaswamy, Shaun Lindsay, Shaun Lindsay, Sheng Feng, Shenghao Lin, Shengxin Cindy Zha,\nShishir Patil, Shiva Shankar, Shuqiang Zhang, Shuqiang Zhang, Sinong Wang, Sneha Agarwal,\nSoji Sajuyigbe, Soumith Chintala, Stephanie Max, Stephen Chen, Steve Kehoe, Steve Satterfield, Sudarshan Govindaprasad, Sumit Gupta, Summer Deng, Sungmin Cho, Sunny Virk, Suraj\nSubramanian, Sy Choudhury, Sydney Goldman, Tal Remez, Tamar Glaser, Tamara Best, Thilo\nKoehler, Thomas Robinson, Tianhe Li, Tianjun Zhang, Tim Matthews, Timothy Chou, Tzook\nShaked, Varun Vontimitta, Victoria Ajayi, Victoria Montanez, Vijai Mohan, Vinay Satish Kumar, Vishal Mangla, Vlad Ionescu, Vlad Poenaru, Vlad Tiberiu Mihailescu, Vladimir Ivanov,\nWei Li, Wenchen Wang, Wenwen Jiang, Wes Bouaziz, Will Constable, Xiaocheng Tang, Xiaojian Wu, Xiaolan Wang, Xilun Wu, Xinbo Gao, Yaniv Kleinman, Yanjun Chen, Ye Hu, Ye Jia,\nYe Qi, Yenda Li, Yilin Zhang, Ying Zhang, Yossi Adi, Youngjin Nam, Yu, Wang, Yu Zhao,\nYuchen Hao, Yundi Qian, Yunlu Li, Yuzi He, Zach Rait, Zachary DeVito, Zef Rosnbrick, Zhaoduo Wen, Zhenyu Yang, Zhiwei Zhao, and Zhiyu Ma. The llama 3 herd of models, 2024. URL\nhttps://arxiv.org/abs/2407.21783.\nDan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song,\nand Jacob Steinhardt. Measuring mathematical problem solving with the math dataset. arXiv\npreprint arXiv:2103.03874, 2021.\nR Devon Hjelm, Alex Fedorov, Samuel Lavoie-Marchildon, Karan Grewal, Phil Bachman, Adam\nTrischler, and Yoshua Bengio. Learning deep representations by mutual information estimation and maximization. In International Conference on Learning Representations, 2019. URL\nhttps://openreview.net/forum?id=Bklr3j0cKX.\nJiaxin Huang, Shixiang Shane Gu, Le Hou, Yuexin Wu, Xuezhi Wang, Hongkun Yu, and Jiawei\nHan. Large language models can self-improve. arXiv preprint arXiv:2210.11610, 2022.\nSiyuan Huang, Zhiyuan Ma, Jintao Du, Changhua Meng, Weiqiang Wang, and Zhouhan Lin. Mirrorconsistency: Harnessing inconsistency in majority voting. In Yaser Al-Onaizan, Mohit Bansal,\nand Yun-Nung Chen (eds.), Findings of the Association for Computational Linguistics: EMNLP\n2024, pp. 2408–2420, Miami, Florida, USA, November 2024. Association for Computational\nLinguistics. doi: 10.18653/v1/2024.findings-emnlp.135. URL https://aclanthology.\norg/2024.findings-emnlp.135/.\nMuhammad Khalifa, Rishabh Agarwal, Lajanugen Logeswaran, Jaekyeom Kim, Hao Peng, Moontae Lee, Honglak Lee, and Lu Wang. Process reward models that think. arXiv preprint\narXiv:2504.16828, 2025.\n13\n\n\fPublished as a conference paper at ICLR 2026\n\nJakub Grudzien Kuba, Mengting Gu, Qi Ma, Yuandong Tian, and Vijai Mohan. Language self-play\nfor data-free training, 2025. URL https://arxiv.org/abs/2509.07414.\nNathan Lambert, Valentina Pyatkin, Jacob Morrison, Lester James Validad Miranda, Bill Yuchen\nLin, Khyathi Raghavi Chandu, Nouha Dziri, Sachin Kumar, Tom Zick, Yejin Choi, Noah A.\nSmith, and Hannaneh Hajishirzi. Rewardbench: Evaluating reward models for language modeling. arXiv preprint arXiv:2403.13787, 2024.\nXiao Liang, Zhongzhi Li, Yeyun Gong, Yelong Shen, Ying Nian Wu, Zhijiang Guo, and Weizhu\nChen. Beyond pass@1: Self-play with variational problem synthesis sustains rlvr, 2025. URL\nhttps://arxiv.org/abs/2508.14029.\nHunter Lightman, Vineet Kosaraju, Yuri Burda, Harrison Edwards, Bowen Baker, Teddy Lee, Jan\nLeike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let’s verify step by step. In The Twelfth\nInternational Conference on Learning Representations, 2024. URL https://openreview.\nnet/forum?id=v8L0pN6EOi.\nR. Linsker. Self-organization in a perceptual network. Computer, 21(3):105–117, 1988. doi: 10.\n1109/2.36.\nJia Liu, ChangYi He, YingQiao Lin, MingMin Yang, FeiYang Shen, and ShaoGuo Liu. Ettrl: Balancing exploration and exploitation in llm test-time reinforcement learning via entropy mechanism, 2025a. URL https://arxiv.org/abs/2508.11356.\nQin Liu, Fei Wang, Nan Xu, Tianyi Lorena Yan, Tao Meng, and Muhao Chen. Monotonic paraphrasing improves generalization of language model prompting. In Yaser Al-Onaizan, Mohit Bansal, and Yun-Nung Chen (eds.), Findings of the Association for Computational Linguistics: EMNLP 2024, pp. 9861–9877, Miami, Florida, USA, November 2024. Association\nfor Computational Linguistics. doi: 10.18653/v1/2024.findings-emnlp.576. URL https:\n//aclanthology.org/2024.findings-emnlp.576/.\nYexiang Liu, Zekun Li, Zhi Fang, Nan Xu, Ran He, and Tieniu Tan. Rethinking the role of\nprompting strategies in llm test-time scaling: A perspective of probability theory. arXiv preprint\narXiv:2505.10981, 2025b.\nEthan Perez, Saffron Huang, Francis Song, Trevor Cai, Roman Ring, John Aslanides, Amelia\nGlaese, Nat McAleese, and Geoffrey Irving. Red teaming language models with language models.\nIn Yoav Goldberg, Zornitsa Kozareva, and Yue Zhang (eds.), Proceedings of the 2022 Conference\non Empirical Methods in Natural Language Processing, pp. 3419–3448, Abu Dhabi, United Arab\nEmirates, December 2022. Association for Computational Linguistics. doi: 10.18653/v1/2022.\nemnlp-main.225. URL https://aclanthology.org/2022.emnlp-main.225/.\nMihir Prabhudesai, Lili Chen, Alex Ippoliti, Katerina Fragkiadaki, Hao Liu, and Deepak Pathak.\nMaximizing confidence alone improves reasoning, 2025. URL https://arxiv.org/abs/\n2505.22660.\nArchiki Prasad, Weizhe Yuan, Richard Yuanzhe Pang, Jing Xu, Maryam Fazel-Zarandi, Mohit\nBansal, Sainbayar Sukhbaatar, Jason Weston, and Jane Yu. Self-consistency preference optimization. arXiv preprint arXiv:2411.04109, 2024.\nGeorge Pólya. How to Solve It. Princeton University Press, 1945.\nDavid Rein, Stas Gaskin, Llion Jones, Vamsi Aribandi, Yi Tay, Dara Bahri, Daniel Mendoza, Ekin\nAkyurek, Kellie Fusco, Chen Wu, Ja-Young Sung, Sebastian Gehrmann, Izzeddin Gur, Naman\nGoyal, Srivatsan Ajay, Jonathan Clark, William W. Cohen, and Slav Petrov. Gpqa: A graduatelevel google-proof q&amp;a benchmark. arXiv preprint arXiv:2311.12022, 2023.\nWenlei Shi and Xing Jin. Heimdall: test-time scaling on the generative verification. arXiv preprint\narXiv:2504.10337, 2025.\nKihyuk Sohn, David Berthelot, Nicholas Carlini, Zizhao Zhang, Han Zhang, Colin A Raffel,\nEkin Dogus Cubuk, Alexey Kurakin, and Chun-Liang Li. Fixmatch: Simplifying semi-supervised\nlearning with consistency and confidence. Advances in neural information processing systems,\n33:596–608, 2020.\n14\n\n\fPublished as a conference paper at ICLR 2026\n\nRand J. Spiro, Richard L. Coulson, Paul J. Feltovich, and David K. Anderson. Cognitive flexibility theory: Advanced knowledge acquisition in ill-structured domains. Proceedings of the 10th\nAnnual Conference of the Cognitive Science Society, pp. 375–383, 1988.\nYu Sun, Xiaolong Wang, Zhuang Liu, John Miller, Alexei Efros, and Moritz Hardt. Test-time training with self-supervision for generalization under distribution shifts. In International conference\non machine learning, pp. 9229–9248. PMLR, 2020.\nYonglong Tian, Chen Sun, Ben Poole, Dilip Krishnan, Cordelia Schmid, and Phillip Isola. What\nmakes for good views for contrastive learning? Advances in neural information processing systems, 33:6827–6839, 2020.\nYao-Hung Hubert Tsai, Yue Wu, Ruslan Salakhutdinov, and Louis-Philippe Morency. Selfsupervised learning from a multi-view perspective. arXiv preprint arXiv:2006.05576, 2020.\nDequan Wang, Evan Shelhamer, Shaoteng Liu, Bruno Olshausen, and Trevor Darrell. Tent: Fully\ntest-time adaptation by entropy minimization. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id=uXl3bZLkr3c.\nXuezhi Wang, Jason Wei, Dale Schuurmans, Quoc V Le, Ed H. Chi, Sharan Narang, Aakanksha\nChowdhery, and Denny Zhou. Self-consistency improves chain of thought reasoning in language\nmodels. In The Eleventh International Conference on Learning Representations, 2023. URL\nhttps://openreview.net/forum?id=1PL1NIMMrw.\nYubo Wang, Xueguang Ma, Ge Zhang, Yuansheng Ni, Abhranil Chandra, Shiguang Guo, Weiming\nRen, Aaran Arulraj, Xuan He, Ziyan Jiang, Tianle Li, Max Ku, Kai Wang, Alex Zhuang, Rongqi\nFan, Xiang Yue, and Wenhu Chen. Mmlu-pro: A more robust and challenging multi-task language\nunderstanding benchmark, 2024. URL https://arxiv.org/abs/2406.01574.\nSean Welleck, Amanda Bertsch, Matthew Finlayson, Hailey Schoelkopf, Alex Xie, Graham Neubig,\nIlia Kulikov, and Zaid Harchaoui. From decoding to meta-generation: Inference-time algorithms\nfor large language models. arXiv preprint arXiv:2406.16838, 2024.\nZhiheng Xi, Senjie Jin, Yuhao Zhou, Rui Zheng, Songyang Gao, Jia Liu, Tao Gui, Qi Zhang, and\nXuanjing Huang. Self-Polish: Enhance reasoning in large language models via problem refinement. In Houda Bouamor, Juan Pino, and Kalika Bali (eds.), Findings of the Association\nfor Computational Linguistics: EMNLP 2023, pp. 11383–11406, Singapore, December 2023.\nAssociation for Computational Linguistics. doi: 10.18653/v1/2023.findings-emnlp.762. URL\nhttps://aclanthology.org/2023.findings-emnlp.762/.\nQizhe Xie, Zihang Dai, Eduard Hovy, Thang Luong, and Quoc Le. Unsupervised data augmentation\nfor consistency training. Advances in neural information processing systems, 33:6256–6268,\n2020.\nAn Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang\nGao, Chengen Huang, Chenxu Lv, Chujie Zheng, Dayiheng Liu, Fan Zhou, Fei Huang, Feng Hu,\nHao Ge, Haoran Wei, Huan Lin, Jialong Tang, Jian Yang, Jianhong Tu, Jianwei Zhang, Jianxin\nYang, Jiaxi Yang, Jing Zhou, Jingren Zhou, Junyang Lin, Kai Dang, Keqin Bao, Kexin Yang,\nLe Yu, Lianghao Deng, Mei Li, Mingfeng Xue, Mingze Li, Pei Zhang, Peng Wang, Qin Zhu, Rui\nMen, Ruize Gao, Shixuan Liu, Shuang Luo, Tianhao Li, Tianyi Tang, Wenbiao Yin, Xingzhang\nRen, Xinyu Wang, Xinyu Zhang, Xuancheng Ren, Yang Fan, Yang Su, Yichang Zhang, Yinger\nZhang, Yu Wan, Yuqiong Liu, Zekun Wang, Zeyu Cui, Zhenru Zhang, Zhipeng Zhou, and Zihan\nQiu. Qwen3 technical report, 2025. URL https://arxiv.org/abs/2505.09388.\nZizhuo Zhang, Jianing Zhu, Xinmu Ge, Zihua Zhao, Zhanke Zhou, Xuan Li, Xiao Feng, Jiangchao\nYao, and Bo Han. Co-reward: Self-supervised reinforcement learning for large language\nmodel reasoning via contrastive agreement, 2025. URL https://arxiv.org/abs/2508.\n00410.\nJian Zhao, Runze Liu, Kaiyan Zhang, Zhimu Zhou, Junqi Gao, Dong Li, Jiafei Lyu, Zhouyi Qian,\nBiqing Qi, Xiu Li, and Bowen Zhou. Genprm: Scaling test-time compute of process reward\nmodels via generative reasoning, 2025a. URL https://arxiv.org/abs/2504.00891.\n15\n\n\fPublished as a conference paper at ICLR 2026\n\nXuandong Zhao, Zhewei Kang, Aosong Feng, Sergey Levine, and Dawn Song. Learning to reason\nwithout external rewards, 2025b. URL https://arxiv.org/abs/2505.19590.\nYue Zhou, Yada Zhu, Diego Antognini, Yoon Kim, and Yang Zhang. Paraphrase and solve: Exploring and exploiting the impact of surface form on mathematical reasoning in large language\nmodels. In Kevin Duh, Helena Gomez, and Steven Bethard (eds.), Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human\nLanguage Technologies (Volume 1: Long Papers), pp. 2793–2804, Mexico City, Mexico, June\n2024. Association for Computational Linguistics. doi: 10.18653/v1/2024.naacl-long.153. URL\nhttps://aclanthology.org/2024.naacl-long.153/.\nYuxin Zuo, Kaiyan Zhang, Li Sheng, Shang Qu, Ganqu Cui, Xuekai Zhu, Haozhan Li, Yuchen\nZhang, Xinwei Long, Ermo Hua, et al. Ttrl: Test-time reinforcement learning. arXiv preprint\narXiv:2504.16084, 2025.\n\n16\n\n\fPublished as a conference paper at ICLR 2026\n\nA\n\nC ODE\n\nThe code is publicly available at https://github.com/physicsru/self_harmony. Follow the instructions to run our code and reproduce our results.\n\nB\n\nV ISUALIZATION\n\nB.1\n\nP SUEDO L ABEL S ELECTION\n\n\u001a\n{y}:\n{y ′ }:\n\n\u001b\n\n28,28,2,4995\n\nCount\n\n28,28,2,4995\n\n\u001a\n\n\u001b\n\n120,28,120,120\n0,0,4495,4495\n\n4495\n28\n2\n120\n0\n\np̂0\n\np̂1\n\n0.250\n0.500\n0.250\n0.000\n0.000\n\n0.250\n0.125\n0.000\n0.375\n0.250\n\nHMS Score\n2 · p̂0 · p̂1\np̂0 + p̂1\n\nValue\n\nHMS\n\n4495\n28\n2\n120\n0\n\n0.250\n0.200\n0.000\n0.000\n0.000\n\nSelect\narg max HMS(y)\ny\n\ny⋆ = 4495\n\nFigure 6: Pseudo label selection with pre-computed harmonic mean values.\n\nThe psuedo label selection is like following and shown in Figure 6, counting, calculating the frequency, calculating the harmonic mean score, picking the candidate with largest harmonic mean as\npseudo label.\n\nB.2\n\nF UNCTION OF D IVERSITY R EWARD\n\nOriginal Problem x\na + b = 8, b + c = −3, a + c = −5, what is the value of the product abc?\n\nLow diversity reward\n\nHigh diversity reward\nDistinct distributions\n\nNearly Overlapping distributions\n\nSmall Modification x′\n\nGood Rewrite x′′\n\nYou are given a system of equations with three variables:\na, b, and c. The equations are:\n\nImagine a magical land where there are three mystical\ncreatures, each with a unique power. An Elf, a Gnome,\nand a Troll. The strength of their combined powers\nfollow these ancient laws: The Elf and the Gnome\ntogether have a combined power of 8 units. The Gnome\nand the Troll together have a combined power of -3\nunits. The Elf and the Troll together have a combined\npower of -5 units. A wise wizard has discovered a spell\nthat reveals the product of their powers, abc, where a, b,\nand c represent the power levels of the Elf, the Gnome,\nand the Troll, respectively.\n\na+b=8\nb + c = −3\na + c = −5\nYour task is to find the value of the product abc by\nsolving the system of equations under the constraint that\neach pair of variables adds up to the given values.\n\nFigure 7: The impact of the diversity reward on the Reframer policy. Without a strong diversity\nsignal, the model may produce trivial modifications (x′ ) that fail to test robustness. The diversity\nreward, based on the Jensen-Shannon Divergence between answer distributions, incentivizes the\nmodel to generate creative and semantically rich reformulations (x′′ ) that provide a more challenging\nand effective consistency check.\n\nThe diversity reward incentivize the reframer to reframe a question in a non-trivial way with distribution distance, shown in Figure 7\n17\n\n\fPublished as a conference paper at ICLR 2026\n\nP SEUDO L ABEL CROSS DIFFERENT DIFFICULTIES\n\nPseudo Label Math Pass@1\n\nC\n\n0.8\n0.7\n0.6\n0.5\nL1\nL2\nL3\nL4\nL5\n\n0.4\n0.3\n\n20\n\n40\n\nStep\n\n60\n\n80\n\n100\n\nFigure 8: Pseudo-label accuracy generated by our Harmonic Mean Score over 100 training steps,\ncategorized by math problem difficulty (L1 = easiest, L5 = hardest). The accuracy shows a clear\ncorrelation with problem complexity, achieving high performance on levels L1-L3.\n\nD\n\nI MPLEMENTATION D ETAILS\n\nD.1\n\nP ROMPT D ESIGN\n\nWe design two distinct prompts for the Solver and the Reframer components.\nSolver. During both training and evaluation, the Solver is guided by a straightforward instructionfollowing prompt to promote clear, step-by-step reasoning:\nLet’s think step by step and output the final answer within \\boxed{}.\n\nReframer. The Reframer is tasked with creatively rephrasing the original problem before solving\nit, promoting diversity and robustness. The prompt explicitly instructs the model to first transform\nthe problem using one of several strategies, then solve the transformed version. The transformation must preserve logical and numerical consistency with the original problem, while discouraging\ntrivial paraphrasing. The full prompt is shown below:\nYou are The Reframer, an AI that solves problems with creative flair.\nYour challenge is not just to find the answer, but to find a more\ninteresting way to get there.\nMission:\n1. Transform: DO NOT solve the ORIGINAL PROBLEM directly.\nRewrite it using one of the strategies below to unlock a\nnew perspective.\n2. Solve: Solve the new problem you created. Your solution’s\nstyle must match your chosen transformation.\nStrategies (Toolkit):\n- Concretize: Turn an abstract idea into a tangible story.\n- Generalize: Convert a specific case into a general formula.\n- Domain Shift: Change the domain (e.g., math -&gt; code,\nlogic -&gt; game).\n- Add Noise: Introduce red herrings to test focus.\n- Reverse: Start from the final result and work backward.\n- Incremental Complexity: Solve a simpler warm-up problem\n\n18\n\n\fPublished as a conference paper at ICLR 2026\n\nfirst, then apply the pattern to the original numbers.\n- Focus on Constraints: Frame as a puzzle with strict rules.\n- POV Shift: Narrate from the perspective of an element\ninside the problem.\nRules:\n- State your chosen Strategy first.\n- Core logic, numbers, and the final boxed answer must match\nthe ORIGINAL PROBLEM.\n- Avoid copying 5+ consecutive words from the original text.\nResponse Format:\nSTRATEGY: [Chosen strategy]\nREWRITTEN PROBLEM:\n[Your transformed problem statement.]\nSOLUTION:\n[Step-by-step solution matching the transformed problem.]\n\\boxed{[Final answer]}\nORIGINAL PROBLEM:\n\nD.2\n\nE XPERIMENT D ETAILS\n\nFirst, for all baselines, we use the official code provided in their public repositories. For Co-Reward,\nwe use models of the same size to rewrite questions, instead of relying on Qwen3-32B, to ensure\na fair comparison. When training the Qwen3-XB-Base series, we use the corresponding instruct\nversion of Qwen3-XB for question rewriting. Similarly, for the Llama-Instruct series, we use their\nrespective instruct models. The prompt used for question rewriting follows the one provided in the\noriginal paper Zhang et al. (2025).\nHyperparameters he following hyperparameters are shared across all baseline methods and SelfHarmony. For the format coefficient and diversity coefficient, ususally we set as 0.1 for most cases.\nAnd few of experiment using other setting, check 4a for setting these two parameters.\n\nE\n\nE XTRA E XPERIMENTS\n\nThere are some extra studies in this section.\nE.1\n\nC ONVERGENCE OF P SEUDO -L ABEL S ELECTORS\n\nAt each training step, we use the identical set of rollouts from both views to determine the pseudolabel chosen by two different methods: dual-view majority voting and our proposed Harmonic Mean\nScore (HMS) selector. Figure 9 plots the difference in Pass@1 accuracy between these two selected\nlabels.\nThe plot shows that HMS initially selects more accurate labels, providing a crucial advantage when\nthe model is uncertain. The difference between the two methods converges to zero because our\noverall training dynamic successfully stabilizes the model’s policy. As the model becomes more\nconfident and its answer distribution sharpens, both majority voting and HMS will naturally select\nthe same high-probability answer, causing their choices to converge. This convergence is evidence\nof a successfully stabilized policy, initiated by the early robustness of the HMS criterion.\nE.2\n\nVALIDATING S EMANTIC C ONSISTENCY OF THE R EFRAMER\n\nA critical requirement for Self-Harmony is that the Reframer generates problems that are semantically equivalent to the originals. To validate this, we conducted an analysis using powerful, external\nLarge Language Models (LLMs) as unbiased judges. We randomly sampled 200 problems and used\n19\n\n\fPublished as a conference paper at ICLR 2026\n\nTable 3: Hyperparameters.\nHyperparameter\nMax prompt length\nMax response length\nBatch size\n\nPolicy mini batch size\n\nPolicy micro batch size per GPU\n\nLearning rate\nLR warmup steps ratio\nhline Weight decay\nLearning rate warmup\nOptimizer\nTemperature\nTop k\nTop p\nNumber of samples per example n\n\nNumber of samples per example for Testing\nRemove padding\nUse KL loss\nKL loss coefficient\nKL loss type\nClip ratio\nGrad clip\nTemperature\nVerifier\n\nValue\n1024\n3072\n128 GSM8K\n128 MATH500\n80 AMC\n24 AIME\n32 MMLU-Pro\n192 GPQA\n128 GSM8K\n128 MATH500\n80 AMC\n24 AIME\n32 MMLU-Pro\n192 GPQA\n8 GSM8K\n8 MATH500\n5 AMC\n3 AIME\n4 MMLU-Pro\n4 GPQA\n3 × 10−6\n0.1\n0.01\ncosine\nAdam\n1.0 for Training\n0.8 for Testing\n-1\n1 Training\n0.95 Testing\n16 GSM8K\n16 MATH500\n32 AMC\n32 AIME\n16 MMLU-Pro\n16 GPQA\n16\nTrue\nTrue\n0.005\nlow var kl\n0.2\n1.0\n1.0 Training\n0.8 Testing\nMATH500 verl math verifier\nGSM8K verl math verifier\nAIME ttrl math verifier\nAMC ttrl math verifier\nGPQA ttrl math verifier\nMMLU-Pro ttrl math verifier\n\nour trained Reframer to generate their rewritten counterparts. We then prompted two state-of-the-art\nmodels, GPT-4o and Claude 4 Sonnet, to solve both the original and the rewritten versions.\n20\n\n\fPseudo Label Pass@1 Difference\n(HMS - Majority Voting)\n\nPublished as a conference paper at ICLR 2026\n\nL1\nL2\nL3\nL4\nL5\n\n0.03\n0.02\n0.01\n0.00\n0.01\n0.02\n0\n\n20\n\n40\n\nStep\n\n60\n\n80\n\n100\n\nFigure 9: Pass@1 accuracy difference between labels selected by HMS and dual-view majority\nvoting, using the exact same rollouts at each step. The convergence towards zero indicates that as\nthe model’s policy stabilizes, both selection methods increasingly agree.\nTable 4: Analysis of Reframer-generated problems using external oracle models(GSM8K). The high\nconsistency rates confirm that the rewritten problems are semantically equivalent to the originals.\nMetric (Pass@1 %)\n\nGPT-4o\n\nClaude 4 Sonnet\n\nOriginal Questions\nRewframed Questions\n\n98.41\n87.30\n\n99.24\n87.88\n\nConsistency Rate\n\n88.71\n\n88.55\n\nOur primary metric is the Consistency Rate, which measures the percentage of cases where the\nexternal oracle model produced the same final answer for both the original and rewritten versions of\na problem. The results, presented in Table 4, show a high degree of consistency. For GPT-4o, the\nconsistency rate was 88.71%, and for Claude 4 Sonnet, it was 88.55%.\nThis strong agreement demonstrates that our Reframer reliably generates new problems that preserve\nthe core semantic meaning of the originals. This validation is crucial, as it confirms that the second\nview used in our Harmonic Mean Score calculation is a valid and meaningful perspective on the\noriginal problem.\nE.3\n\nS ENSITIVITY A NALYSIS ON S EMANTIC S HIFT\n\nSmaller language models (0.6B) are more likely to introduce semantic drift, wording biases, or shallow perturbations when paraphrasing, compared to larger models (14B). To test whether such imperfections could cause the Harmonic Mean selector to incorrectly down-weight valid answers, we\nconduct a stress test on the Confident-Correct subset of the math dataset. This subset is constructed\nby running Qwen3 models with 16-rollout majority voting and keeping only questions where the\nmajority count exceeds half the rollouts and the majority answer is correct.\nFor each Solver (Qwen3-1.7B-Base, Qwen3-4B-Base, Qwen3-8B-Base), we fix the Solver and vary\nthe Reframer size across 0.6B, 1.7B, 4B and 14B parameters. This uses model scale as a proxy for\nparaphrase quality: the 0.6B Reframer tends to produce lower-fidelity, noisier paraphrases, while\nthe 14B Reframer yields higher semantic fidelity. If Self-Harmony were highly sensitive to semantic\nshift, we would expect performance to degrade when using small Reframers on this already-correct\nsubset.\nInstead, we observe consistent and substantial gains over the baseline across all Solvers and all Reframer sizes (Table 5). Even with the 0.6B Reframer, Self-Harmony significantly improves Mean\nPass@1 on the Confident-Correct subset (like Qwen3-4B-Base: 83.98% → 96.48%; Qwen3-8B21\n\n\fPublished as a conference paper at ICLR 2026\n\nTable 5: Self-Harmony performance on the Confident-Correct subset under different Reframer\nscales. For each Solver, we fix the Solver and vary the Reframer size; Baseline denotes initial\nmodel.\nSelf-Harmony / Confident-Correct\n\nBaseline\n\n0.6B\n\n1.7B\n\n4B\n\n14B\n\nQwen3-1.7B-Base\nQwen3-4B-Base\nQwen3-8B-Base\n\n86.32\n83.98\n89.06\n\n94.92\n96.48\n97.85\n\n94.92\n97.65\n97.75\n\n95.31\n98.04\n98.02\n\n96.48\n98.36\n99.07\n\nBase: 89.06% → 97.85%). This demonstrates that the Harmonic Mean selector is not overly\nsensitive to small perturbations or imperfect semantic equivalence: it continues to recognize and\npreserve valid answers despite noisy rephrasings. Performance further improves as Reframer size\nincreases (up to 99.07% with Qwen3-8B-Base + 14B Reframer), indicating that even the smallest\n0.6B Reframer is already sufficient to support Self-Harmony, and larger Reframers bring additional\ngains.\nE.4\n\nH ARMONIC M EAN P SEUDO L ABEL S ELECTOR VS . H ARMONIC M EAN R EWARD\n\nMath500 L3 Pass@1\n\n0.800\n0.775\n0.750\n0.725\n0.700\n0.675\n\nHarmonic mean reward\nHarmonic mean pseudo label selector\n\n0.650\n0\n\n50\n\n100\n\nStep\n\n150\n\n200\n\nFigure 10: Performance comparison on the Math500 Pass@1 metric between the harmonic mean\npseudo label selector and the harmonic mean reward baseline over training steps.\nSince there are some paper only using internal signal rather than choosing a pseudo label, an ablation\nstudy is conducted to compare the performance for harmonic mean in two different using way: 1.\nPseudo label selector 2. Harmonic mean as reward. Experiment shows that pseudo label way has\nbetter performance as shown in Figure 10\nE.5\n\nA DDITIVE R EWARD VS . M ULTIPLICATIVE R EWARD\n\nTo further investigate the effect of different reward aggregation strategies, we compare the performance of the additive reward and multiplicative reward schemes. The additive reward uses a\nweighted sum of individual loss components, with weights set to match the proportional influence\nof each component in the multiplicative reward. Specifically, we aligned the weights based on the\neffective gradients derived from a first-order Taylor expansion.Our multiplicative reward is defined\nas:\nRmult = (1 − wf Rf )(1 − wd Rd )Rsolve\nFor correct answers (Rsolve = 1) and small penalty terms, this linearizes to:\nRmult ≈ Rsolve − wf Rf − wd Rd\nTo control for hyperparameter influence, we configured the additive baseline (Radd = w3 Rsolve +\nw1 Rf + w2 Rd ) to match this approximation strictly:w3 = 1w1 = −wf w2 = −wd . This align22\n\n\fPublished as a conference paper at ICLR 2026\n\nMath500 L3 Pass@1\n\n0.95\n\n0.90\n\n0.85\n\n0.80\n\nAdditive Reward\nMultiplicative Reward\n\n0.75\n0\n\n20\n\n40\n\nStep\n\n60\n\n80\n\n100\n\nFigure 11: Comparison between the additive reward (blue) and multiplicative reward (orange)\nformulations on the Math500 L3 Pass@1 metric. The additive reward combines components through\na weighted sum, while the multiplicative reward uses the product of the same components ratio. Both\nrewards are normalized to 1 for fair comparison, and all other training parameters are kept exactly\nthe same.\nment ensures that both models are subject to identical penalty magnitudes for format and diversity\nviolations. Consequently, the superior performance of Self-Harmony can be attributed to the structural advantage of the multiplicative design (which acts as a strict ”AND” gate) rather than disparate hyperparameter settings. For a fair and controlled comparison, both rewards are normalized\nto 1, and all other hyperparameters and training settings are kept exactly the same. As shown in\nFigure 11, while both methods achieve similar final performance, the multiplicative reward demonstrates slightly faster convergence in the early stages of training.\n\nF\n\nE XAMPLES OF R EWRITTEN P ROBLEMS\n\nTo illustrate the role of the Reframer, we present examples of original and rewritten problems.\nWell-formed rewrites are shown in Table 6, while problematic cases are shown in Table 7. In the\nwell-formed examples, the rewritten questions modify the narrative or context but remain functionally equivalent to the originals, ensuring that the correct answers are preserved. In contrast, the\nproblematic rewrites fail to meet these requirements, either by reducing to trivial restatements or by\naltering the correct answers, as demonstrated in Table 7.\n\nG\n\nT HEORETICAL D ISCUSSION\n\nG.1\n\nP ROOF OF T HEOREM 3.2\n\nTheorem G.1 (Harmonic Mean Selector from Invariant Infomax). Assume the view-invariance condition (Assumption 3.1) holds. Suppose moreover that the following conditions are satisfied.\nNon-degeneracy. For every label a,\np0 (a) + p1 (a) &lt; 1\n\n(1)\n\nThis simply excludes the trivial case in where the majority voting can solve.\nBalanced–Confidence. There exists a constant κ ∈ (0, 1) such that for every maximiser a⋆ of Jλ (·)\n\u0002\n\u0003\np0 (a⋆ ) − p1 (a⋆ ) ≤ κ p0 (a⋆ ) + p1 (a⋆ ) .\n(2)\nThen, for the penalty weight λ = 2, the pseudo label that maximises the second-order approximation\nof the view-invariant Infomax objective J2 (a) = I(Za ; A)−2 I(Za ; X) is obtained by the harmonic\n23\n\n\fPublished as a conference paper at ICLR 2026\n\nOriginal Question\nLet z be a complex number such that\n|z| = 1. Find the maximum value of\n|1 + z| + |1 − z + z 2 |.\nHow many y-intercepts does the graph\nof the parabola x = y 2 − 4y − 1 have?\nA train has 172 people traveling on it.\nAt the first stop 47 people get off and\n13 more people get on, and at the next\nstop another 38 people get off. How\nmany people are on the train?\nA whirligig spins at five times\nthe speed of a thingamabob.\nA\nwhatchamacallit spins eleven times\nfaster than a thingamabob.\nA\nwhatchamacallit spins at 121 meters\nper second. How fast does a whirligig\nspin?\nWhat fraction of 2 feet is 3 inches? Express your answer as a common fraction.\nWhat fraction of 2 feet is 3 inches? Express your answer as a common fraction.\n\nLet N be the greatest four-digit positive integer with the property that\nwhenever one of its digits is changed\nto 1, the resulting number is divisible\nby 7. Let Q and R be the quotient and\nremainder, respectively, when N is divided by 1000. Find Q + R.\nFind the value of r such that\n6r2 − 19r − 7\n= 4r − 3.\n2r − 7\nEach vertex of a regular octagon is independently colored either red or blue\nwith equal probability. The probability that the octagon can then be rotated so that all of the blue vertices end\nup at positions where there were originally red vertices is m\n, where m and\nn\nn are relatively prime positive integers.\nWhat is m + n?\nFind the coordinates of point P on the\nline y = −x + 6 such that the distances from P to points A(10, −10)\nand O(0, 0) are equal, i.e., P A = P O.\nExpress your answer as an ordered pair\n(a, b).\n\nRewritten Question\nImagine you’re an elf tasked with finding the maximum healing power\nof two magical spells combined. One spell’s strength is represented\nby |1 + z|, where z is a magical rune with a known power level of 1\n(|z| = 1). The other spell’s strength is |1−z +z 2 |. Your job is to figure\nout the maximum total healing power when using both spells together.\nA path is described by the equation x = y 2 − 4y − 1. How many points\non this path touch the vertical line at x = 0?\nImagine a train journey where the train starts with 172 people. The\ntrain first stops at a station where 47 passengers disembark and 13 new\npassengers board the train. At the next station, 38 more passengers get\noff. How many people remain on the train as it continues its journey?\nImagine the relationship between these spinning objects as a programming task. The thingamabob is like a base class (‘BaseObject‘) from\nwhich other objects inherit properties. A whirligig spins at five times\nthe speed of this base class, making it a derived class (‘FiveTimesObject‘). Similarly, a whatchamacallit spins eleven times faster (‘ElevenTimesObject‘), inheriting the speed from ‘BaseObject‘. Given that the\n‘ElevenTimesObject‘ spins at 121 meters per second, determine the\nspeed of the ‘FiveTimesObject‘.\nImagine you’re a craftsman dividing a 2-foot-long wooden board into\nsmaller, precise segments. You notice that you have a 3-inch piece that\nyou need. What fraction of your 2-foot board does this 3-inch piece\nrepresent?\nImagine you are designing a digital game where objects need to be connected at specific distances. In the game, the main character moves by\ntaking steps of 2 feet, but the tasks require the character to interact with\nobjects placed every 3 inches. What fraction of the main character’s\nstep length (2 feet) should be used to reach the nearest interaction point\n(3 inches)? Express your answer as a common fraction.\nFind the greatest four-digit positive integer N such that changing any\none of its digits to 1 results in a number that is divisible by 7. Then,\ndetermine the quotient Q and remainder R when N is divided by 1000,\nand compute Q + R.\n\n2\n\n−19r−7\nFind a general formula to solve the equation 6r 2r−7\n= 4r − 3 for\nr, and then apply it to find the specific value of r.\n\nConsider a regular octagon with vertices labeled as 0, 1, 2, ..., 7. We\ncolor each vertex either red or blue with equal probability (which we\ncan think of as a coin flip). After painting, we can rotate the octagon\n(which we can think of as performing arithmetic modulo 8) to potentially reposition the blue vertices onto positions originally occupied by\nred vertices. What is the probability of this happening, expressed in the\nform m\nwhere m and n are coprime integers, and find m + n?\nn\nConsider a 2D plane where the line y = -x + 6 is defined. Let’s shift the\ndomain to the set of all complex numbers such that the imaginary part\ncorresponds to the y-coordinate and the real part corresponds to the xcoordinate. We need to find a complex number P = a + bi on the line\ny = −x + 6 (which becomes b = −a + 6) that is equidistant from the\ncomplex numbers representing points A(10, −10) and O(0, 0). This\nmeans finding P such that the distances |P − A| and |P − O| are\nequal. Express P as (a, b) in the original plane coordinates.\n\nTable 6: Examples of original and well-formed rewritten problem statements. The rewrites are\nfunctionally equivalent to the originals, ensuring that the correct answer remains unchanged.\n\n24\n\n\fPublished as a conference paper at ICLR 2026\n\nOriginal Question\nFind the coordinates of point P on the\nline y = −x + 6 such that the distances from P to points A(10, −10)\nand O(0, 0) are equal, i.e., P A = P O.\nExpress your answer as an ordered pair\n(a, b).\nBased on these matrices, choose the\ncorrect statement. Options: A. Z and\nX represent observables. B. (eX ) ∗ Y ∗\n(e−X ) represents a quantum state. C.\nW and X represent the evolution operator of some quantum system. D.\nThere exists a vector to which if one\nmultiplies eX , the norm of the vector\nchanges.\nLet a, b, c, d be positive real numbers.\nFind the minimum value of\n\u0013\n\u0012\n1\n1\n1\n1\n(a + b + c + d)\n+ + +\n.\na\nb\nc\nd\n\nRewritten Question\nFind the coordinates of point P on the line y = −x + 6 such that\nthe distances from P to points A(10, −10) and O(0, 0) are equal, i.e.,\nP A = P O. Express your answer as an ordered pair (a, b).\n\nLet a, b, c, d be positive real numbers.\nFind the minimum value of\n\u0012\n\u0013\n1\n1\n1\n1\n(a + b + c + d)\n+ + +\n.\na\nb\nc\nd\n\nSuppose that four kids carry water from the kitchen to their bath tubs\nin their houses. The four containers have capacities a, b, c and d litres,\nrespectively. The kids have to carry enough water to fill their bath per\na + b + c + d litres of water filled and each kid takes a turn to carry the\nwater. When he carries water, he uses 1/a, 1/b, 1/c and 1/d of time to\ncarry water per bath which is equal to the number of turns each gone\nthe bath tub respectively. What is the minimum total number of turns\nwhich sum up to fill a + b + c + d of water when each kid uses their own\nspecific container? Moreover, during each time unit, the whole amount\nof water a, b, c and d liters is filled and drained from the containers,\nsuch that the water level in each container remains the same. How\nmany minutes does it take until every kid has filled their bath tub?\n\nImagine you’re watching a dramatic play called Q-Matrix. The different acts in this play are represented by matrices W, X, Y, and Z. The\ndirector Z calls out, ”W and X,you two are my favorite scenes. Any\nother order, pfft, they’re iust smoke and mirror tricks!” What does the\ndirector mean by this?\n\nLet S\u0001 be a set of positive real numbers. Find the minimum value of\nS S1 where S is a sum of n positive real numbers. Assume that S ≤\nn2 .\n\nTable 7: Examples of original and problematic rewritten problem statements. These rewrites either\nreduce to trivial restatements or alter the correct answer, violating functional equivalence.\nmean of the two view-probabilities:\ny ⋆ = arg max J2 (a) = arg max\na\n\na\n\n2 p0 (a) p1 (a)\n.\np0 (a) + p1 (a)\n\nProof of Theorem 3.2. First of all, let’s define the two view and objective function:\nThe two views are defined by the random variable X ∈ {x, x′ }, sampled uniformly, so that\np(X = x) = p(X = x′ ) = 21 .\nFor a candidate answer a, write\np0 (a) = p(A = a | X = x),\n\np1 (a) = p(A = a | X = x′ ).\n\n\u0001\np̄(a) = 12 p0 (a) + p1 (a) ,\n\n\u0001\nδ(a) = 12 p0 (a) − p1 (a) ,\n\nWe shall also use\n\nand the Bernoulli indicator Za = I{A = a}.\nBased on infomax principal, we introduce the invariant-Infomax score to be maximised:\nJλ (a) = I(Za ; A) − λ I(Za ; X)\n\n(3)\n\nand the Theorem 3.2 sets λ = 2, where the objective function is\nJ2 (a) = I(Za ; A) − 2 I(Za ; X)\n25\n\n(4)\n\n\fPublished as a conference paper at ICLR 2026\n\nAnd now let’s expand mutual information expression:\nwith mutual information defined in two equivalent ways\n\u0002\n\u0001\u0003\nI(U ; W ) = H(U ) − H(U | W ) = Ew∼W DKL p(U | W = w) ∥ p(U ) .\n\n(⋆)\n\nTaking U = Za , W = A in (⋆):\nI(Za ; A) = H(Za ) − H(Za | A).\nBecause Za is a deterministic function of A (knowing A tells us with certainty whether A = a), the\nconditional entropy vanishes: H(Za | A) = 0. Consequently\nI(Za ; A) = H(Za ).\nMarginally Za is Bernoulli with mean p(Za = 1) = p(A = a) = p̄(a), so\n\u0001\nH(Za ) = h p̄(a) ,\nis the binary entropy.\n\nwhere\n\nh(x) = −x ln x − (1 − x) ln(1 − x)\n\nUsing the second form in (⋆) with U = Za , W = X we obtain\nX\n\u0001\nI(Za ; X) =\np(X) DKL p(Za | X) ∥ p(Za ) .\n\n(5)\n\nX\n\n– Conditional laws. For X = x the answer distribution is p0 (a), For X = x′ the answer distribution\nis p1 (a); therefore Za | X = x ∼ Bern(p0 (a)). Similarly Za | X = x′ ∼ Bern(p1 (a)).\n– Marginal law. By total probability and the uniform prior on X, p(Za = 1) = 12 p0 (a) + 12 p1 (a) =\np̄(a), so Za ∼ Bern(p̄(a)).\n– Substituting in equation 5. Denoting Bern(p) a Bernoulli distribution of mean p,\n\u0001\n\u0001\nI(Za ; X) = 12 DKL Bern(p0 (a)) ∥ Bern(p̄(a)) + 12 DKL Bern(p1 (a)) ∥ Bern(p̄(a)) .\nLet q = p̄(a) for brevity and define\n\u0001\n1−p\np\n.\ng(p) = DKL Bern(p) ∥ Bern(q) = p ln + (1 − p) ln\nq\n1−q\nTaylor-expand g around p = q:\np\n1−p\n1\n1\n− ln\n,\ng ′′ (p) = +\n,\nq\n1−q\np 1−p\nso that g(q) = g ′ (q) = 0 and g ′′ (q) = 1/[q(1 − q)]. For ∆ = p − q small,\ng ′ (p) = ln\n\ng(q + ∆) =\n\n∆2\n+ O(∆3 ).\n2q(1 − q)\n\nSince p0 = q + δ and p1 = q − δ we have g(p0 ) = g(p1 ) = δ 2 /[2q(1 − q)] + O(δ 3 ). Averaging the\ntwo contributions yields\nI(Za ; X) =\n\n\u0001\nδ(a)2\n\u0001 + O δ(a)3 .\n2 p̄(a) 1 − p̄(a)\n\n(6)\n\nSo Second-order Taylor expansion approximation is:\nJ2 (a) = I(Za ; A) − 2 I(Za ; X) ≈ h(p̂(a)) −\n\n26\n\nδ(a)2\n\u0001.\np̄(a) 1 − p̄(a)\n\n(7)\n\n\fPublished as a conference paper at ICLR 2026\n\n1\nUsing Assumption 2, we expand the denominator 1−p̄(a)\n= 1 + p̄(a) + p̄(a)2 + · · · and obtain:\n\n\u0001\nδ(a)2\nδ(a)2\n\u0001=\n− δ(a)2 p̄(a) + p̄(a)2 + · · · .\np̄(a)\np̄(a) 1 − p̄(a)\n{z\n}\n|\nR(a)\n\nBalanced confidence (Assumption 2) implies |δ(a)| ≤ κ p̄(a), so\n|R(a)| ≤\n\n\u0001\nκ2 p̄(a)2\n≤ 2κ2 p̄(a)2 = O p̄(a)2 ,\n1 − p̄(a)\n\nwhich is third-order. Discarding R(a) gives the second-order approximation\n\u0001 δ(a)2\n.\nJ2 (a) ≈ h p̄(a) −\np̄(a)\nNext, by Assumption 1, we have p̄(a) &lt; 12 for all a, and since the binary entropy h is strictly\nincreasing on (0, 12 ), maximising h(p̄(a)) is equivalent to maximising p̄(a) itself. Therefore\n\u0014\n\u0015\nδ(a)2\narg max J2 (a) = arg max p̄(a) −\n.\na\na\np̄(a)\nFinally, using the identity\nδ(a)2\n2 p0 (a) p1 (a)\n=\n,\np̄(a)\np0 (a) + p1 (a)\nwe define the harmonic–mean surrogate score:\np̄(a) −\n\nS(a) =\n\n2 p0 (a) p1 (a)\n.\np0 (a) + p1 (a)\n\nThus, the pseudo-label selected by J2 satisfies\ny ⋆ = arg max\na\n\n2 p0 (a) p1 (a)\n∈ arg max J2 (a)\na\np0 (a) + p1 (a)\n\n(8)\n\nThe proof only assumes two conditional answer distributions, p0 (a) = p(a | X = x) and p1 (a) =\np(a | X = x′ ), indexed by a binary view variable X. These views can be instantiated in multiple\nways:\n(i) two semantically equivalent queries, p0 (a) = p(a | x) and p1 (a) = p(a | x′ );\n(ii) the same query under different system prompts σ, σ ′ , p0 (a) = p(a | x, σ) and p1 (a) = p(a |\nx, σ ′ );\nor any other mechanism that induces two correlated yet distinct answer distributions. Because the\nderivation treats X abstractly, the harmonic-mean selector remains valid for all such pairings.\n\nG.2\n\nG ENERALIZATION OF T HEOREM 1: T UNABLE λ AND G ENERALIZED M EANS\n\nIn this part, we extend the derivation of the Invariant Infomax objective to the general case where the\npenalty weight λ is tunable. We demonstrate that varying λ is theoretically equivalent to selecting\na specific Generalized Mean for aggregating binary view probabilities. Recall the Taylor expansion of the Invariant Infomax objective Jλ (a) = I(Za ; A) − λI(Za ; X). Using the second-order\napproximations derived in the main proof, the objective simplifies to:\nJλ (a) ≈ p̄(a) − λ\n\nδ(a)2\n,\n2p̄(a)\n\n(9)\n\n1 (a)\n1 (a)\nwhere p̄(a) = p0 (a)+p\nis the mean probability and δ(a) = p0 (a)−p\nis the semi-difference\n2\n2\n2\nbetween views. Note that δ(a) is exactly equivalent to the statistical variance of the two view\nprobabilities.\n\n27\n\n\fPublished as a conference paper at ICLR 2026\n\nNow, consider the Generalized Mean with exponent k, defined as Mk (p0 , p1 ) =\nsecond-order Taylor expansion of Mk around the mean p̄ is given by:\nMk (p0 , p1 ) ≈ p̄(a) + (k − 1)\n\nδ(a)2\n.\n2p̄(a)\n\n\u0010 k\n\np0 +pk\n1\n2\n\n\u00111/k\n\n. The\n\n(10)\n\nBy equating the coefficients of the variance term δ(a)2 in Eq. equation 9 and Eq. equation 10, we\nestablish a direct mapping between the penalty weight λ and the mean exponent k:\n−λ = k − 1 =⇒ k = 1 − λ.\n\n(11)\n\nThis mapping allows us to categorize the behavior of the selector across the spectrum of λ. In the\nlist below, we describe the penalty regarding the variance term δ(a)2 :\n• λ = −1 =⇒ k = 2 (Quadratic Mean / RMS): The objective effectively adds a variance\n2\nbonus (≈ p̄ + 2δp̄ ). This is “risk-seeking” and prefers disagreement, making it unsuitable\nfor consistency checking.\n• λ = 0 =⇒ k = 1 (Arithmetic Mean): The objective maximizes p̄ (Standard Voting). It\nignores view consistency entirely (coefficient of δ 2 is 0).\n√\n• λ = 1 =⇒ k = 0 (Geometric Mean): The objective maximizes p0 p1 . It penalizes\n2\nvariance with a coefficient of −1 (≈ p̄ − 2δp̄ ).\n0 p1\n. It penalizes\n• λ = 2 =⇒ k = −1 (Harmonic Mean): The objective maximizes p2p\n0 +p1\n2\n\nvariance with a coefficient of −2 (≈ p̄ − 2 2δp̄ ), effectively doubling the penalty compared\nto the Geometric Mean.\nG.3\n\nM ULTIPLE V IEWS C ASE AND G ENERALIZED H ARMONIC M EAN\n\nIn this part, we extend the analysis of the Harmonic Mean Selector from the binary view setting\n(K = 2) to the general multi-view setting (K ≥ 2). We show that maximizing the view-invariant\nInfomax objective with λ = 2 is theoretically equivalent to maximizing the Generalized Harmonic\nMean of the view probabilities.\nTheorem G.2 (Generalized Harmonic Mean Selector). Let there be K views defined by a random variable X uniformly distributed over {x1 , . . . , xK }. Let pk (a) = p(A = a | X = xk )\nbe the prediction probability for candidate a under view k. Under the same assumptions of nondegeneracy and balanced confidence as Theorem 3.2, maximizing the second-order approximation\nof the objective J2 (a) = I(Za ; A) − 2I(Za ; X) recovers the Generalized Harmonic Mean of the K\nprobabilities:\n!−1\nK\n1 X 1\n⋆\ny = arg max\n.\na\nK\npk (a)\nk=1\n\nProof. We analyze the objective function and the harmonic mean separately using Taylor expansions\nPK\n1\naround the arithmetic mean. Let the arithmetic mean be p̄(a) = K\nk=1 pk (a) and the variance\nPK\n1\n2\nacross views be σ 2 (a) = K\n(p\n(a)\n−\np̄(a))\n.\nk=1 k\n1. Expansion of the Infomax Objective. The mutual information I(Za ; A) remains the entropy of\nthe marginal Za , which approximates to the mean probability for small p:\nI(Za ; A) = H(p̄(a)) ≈ p̄(a)\n\n(up to first order).\n\nThe mutual information between the pseudo-label and the views, I(Za ; X), is the average KLdivergence between the specific view distributions and the mean distribution:\nI(Za ; X) =\n\nK\n\u0001\n1 X\nDKL Bern(pk (a)) ∥ Bern(p̄(a)) .\nK\nk=1\n\n28\n\n\fPublished as a conference paper at ICLR 2026\n\n2\n\n(p−q)\nUsing the second-order Taylor expansion of the KL-divergence, DKL (p ∥ q) ≈ 2q(1−q)\n, we obtain:\nK\n\nI(Za ; X) ≈\n\n1 X (pk (a) − p̄(a))2\nσ 2 (a)\n=\n.\nK\n2p̄(a)(1 − p̄(a))\n2p̄(a)(1 − p̄(a))\nk=1\n\nApplying the simplification from the proof of Theorem 3.2 (where the denominator term 1 − p̄(a) is\ndominated by the first order behavior), the objective with penalty λ = 2 becomes:\nJ2 (a) = I(Za ; A) − 2I(Za ; X) ≈ p̄(a) −\n\nσ 2 (a)\n.\np̄(a)\n\n(12)\n\n2. Expansion of the Generalized Harmonic Mean. Let HK (a) denote the harmonic mean of probabilities {p1 (a), . . . , pK (a)}. We approximate terms of the form 1/pk (a) using a Taylor expansion\nof f (x) = 1/x around the mean p̄(a):\n1 (pk − p̄) (pk − p̄)2\n1\n+\n.\n≈ −\npk\np̄\np̄2\np̄3\nAveraging these inverse terms over K views:\nK\n\n1 X 1\n1 X\n1 σ2\n1\nσ2\n(p\n−\np̄)\n=\n+ 3.\n≈ −\n+\nk\nK\npk\np̄ K p̄2\np̄3\np̄\np̄\nk=1\n|\n{z\n}\n0\n\nFinally, we invert this sum to get HK (a). Using the approximation (A + ϵ)−1 ≈ A−1 − A−2 ϵ:\n\u0012\n\u0013−1\n\u0012 2\u0013\n1 σ2\nσ\nσ 2 (a)\n2\nHK (a) =\n+ 3\n.\n(13)\n≈ p̄ − p̄\n=\np̄(a)\n−\np̄\np̄\np̄3\np̄(a)\nComparing Eq. equation 12 and Eq. equation 13, we see that maximizing the Infomax objective J2\nis equivalent (at the second order) to maximizing the Generalized Harmonic Mean. The variance\n2\n(a)\nterm σp̄(a)\nacts as a penalty, discouraging answers where the model confidence fluctuates heavily\nacross views.\nG.4\n\nN ON - UNIFORM PRIOR AND W EIGHTED I NVARIANT S CORE\n\nNow we generalize Theorem 3.2 to the case of a non-uniform prior over views. Let the prior over\nthe views be parameterized by π ∈ (0, 1), such that:\np(X = x) = π,\n\np(X = x′ ) = 1 − π.\n\nThe marginal probability of an answer a becomes the weighted average:\np̄π (a) = πp0 (a) + (1 − π)p1 (a).\nThe definition of the Mutual Information I(Za ; X) generalizes to the weighted sum of KL divergences:\n\u0001\n\u0001\nI(Za ; X) = πDKL p0 (a) ∥ p̄π (a) + (1 − π)DKL p1 (a) ∥ p̄π (a) .\n(14)\n2\n\n(p−q)\nRecall the second-order approximation of the KL divergence DKL (p ∥ q) ≈ 2q(1−q)\n. We compute\nthe deviations of each view from the weighted marginal. Let ∆(a) = p0 (a) − p1 (a). Then:\n\np0 (a) − p̄π (a) = p0 (a) − [πp0 (a) + (1 − π)p1 (a)]\n= (1 − π)(p0 (a) − p1 (a)) = (1 − π)∆(a).\np1 (a) − p̄π (a) = p1 (a) − [πp0 (a) + (1 − π)p1 (a)]\n= −π(p0 (a) − p1 (a)) = −π∆(a).\n29\n\n\fPublished as a conference paper at ICLR 2026\n\nTable 8: Comparison between generalized mean and TTRL baseline in fine-grained dataset, SelfHarmony achieves best performance\nMethod\n\nConf. Correct\n\nConf. Incorrect\n\nNot-Conf. Correct\n\nNot-Conf. Incorrect\n\n98.83\n99.61\n98.43\n99.22\n99.22\n98.90\n\n76.95\n77.73\n76.25\n76.17\n75.78\n76.81\n\n90.82\n93.28\n89.61\n91.23\n90.10\n92.35\n\n58.13\n61.25\n60.98\n58.89\n60.00\n58.97\n\nArithmetic\nHarmonic\nQuadratic\nGeometry\nFull Infomax\nTTRL\n\nSubstituting these into the Taylor expansion of Eq. equation 14:\n\u0002\n\u0003\n1\nπ(1 − π)2 ∆(a)2 + (1 − π)(−π)2 ∆(a)2\nI(Za ; X) ≈\n2p̄π (a)(1 − p̄π (a))\n\u0002\n\u0003\n∆(a)2\n=\nπ(1 − π)2 + π 2 (1 − π)\n2p̄π (a)(1 − p̄π (a)) |\n{z\n}\nπ(1−π)(1−π+π)=π(1−π)\n\n2\n\n=\n\nπ(1 − π)∆(a)\n.\n2p̄π (a)(1 − p̄π (a))\n\nAssuming the Balanced-Confidence condition holds, we approximate the denominator 1 − p̄π (a) ≈\n1. The objective function J2 (a) then becomes:\nπ(1 − π)(p0 (a) − p1 (a))2\n.\np̄π (a)\nThis Weighted Invariant Score generalizes the Harmonic Mean Selector. When π = 0.5, the variance\nterm is π(1 − π) = 0.25, recovering the original form. For π ̸= 0.5, the objective balances the\nweighted confidence against the consistency penalty, where the penalty strength is modulated by the\nprior variance.\nJ2 (a) ≈ p̄π (a) −\n\nH\n\nE MPIRICAL R ESULT FOR GENERALIZED MEAN COMPARISON\n\nWe further conducted a fine-grained analysis using Qwen-4B-Base on the Math dataset shown in Table 8. We stratified the problems into four categories based on the base model’s inherent confidence\nand correctness:\n• Confident (majority answer ≥ N/2 votes) and correct\n• Not confident (majority answer &lt; N/2 votes) but correct\n• Confident and incorrect\n• Not confident and incorrect\nAcross all four subsets, the harmonic mean yields the best performance, including the most challenging confident and incorrect region where models typically hallucinate with high certainty. These\nresults demonstrate that Self-Harmony improves mean pass@1 at 16 rollouts not only in easy highconfidence settings but also under uncertainty and erroneous certainty, highlighting its robustness\nand general applicability.\n\nI\n\nI NFERENCE - ONLY C OMPARISON\n\nTo evaluate the harmonic mean as a pseudo-label selector without any training, we compare Majority\nVoting versus Self-Harmony under different inference budgets. Following the Confident Correct\ndefinition in Section H, we sweep the number of rollouts from 32 to 256 and report Pass@1 (in %)\nbased on the selected answer among the rollouts shown in Table 9.\nConfident-Correct Dataset\n30\n\n\fPublished as a conference paper at ICLR 2026\n\nTable 9: Inference-only performance (Pass@1, %) under different rollout budgets. Self-Harmony\nconsistently improves or maintains performance as compute increases, whereas Majority Voting may\nplateau or degrade.\nSubset\n\nModel\n\nMethod\n\n32\n\n64\n\n128\n\n256\n\nConfident-Correct\nConfident-Correct\nConfident-Correct\nConfident-Correct\n\nQwen-4B-Base\nQwen-4B-Base\nQwen-8B-Base\nQwen-8B-Base\n\nMajority Voting\nSelf-Harmony\nMajority Voting\nSelf-Harmony\n\n99.61\n99.61\n98.83\n98.83\n\n98.83\n99.61\n99.22\n99.61\n\n98.44\n99.61\n99.22\n99.61\n\n98.44\n99.22\n99.22\n99.61\n\nConfident-Incorrect\nConfident-Incorrect\nConfident-Incorrect\nConfident-Incorrect\n\nQwen-4B-Base\nQwen-4B-Base\nQwen-8B-Base\nQwen-8B-Base\n\nMajority Voting\nSelf-Harmony\nMajority Voting\nSelf-Harmony\n\n75.78\n78.52\n70.70\n71.87\n\n76.95\n78.12\n70.31\n71.48\n\n75.78\n77.34\n69.92\n70.70\n\n75.39\n77.73\n69.14\n71.48\n\nNot-Confident-Correct\nNot-Confident-Correct\nNot-Confident-Correct\nNot-Confident-Correct\n\nQwen-4B-Base\nQwen-4B-Base\nQwen-8B-Base\nQwen-8B-Base\n\nMajority Voting\nSelf-Harmony\nMajority Voting\nSelf-Harmony\n\n90.23\n95.31\n89.45\n94.14\n\n90.23\n94.92\n89.84\n94.92\n\n91.40\n94.53\n90.62\n94.92\n\n91.40\n94.53\n91.01\n95.31\n\nNot-Confident-Incorrect\nNot-Confident-Incorrect\nNot-Confident-Incorrect\nNot-Confident-Incorrect\n\nQwen-4B-Base\nQwen-4B-Base\nQwen-8B-Base\nQwen-8B-Base\n\nMajority Voting\nSelf-Harmony\nMajority Voting\nSelf-Harmony\n\n64.45\n65.62\n60.93\n61.32\n\n64.84\n66.41\n63.28\n64.06\n\n66.01\n66.80\n63.67\n65.23\n\n65.23\n67.19\n63.28\n65.23\n\nAMC\nAMC\nAMC\nAMC\n\nQwen-4B-Base\nQwen-4B-Base\nQwen-8B-Base\nQwen-8B-Base\n\nMajority Voting\nSelf-Harmony\nMajority Voting\nSelf-Harmony\n\n54.22\n56.63\n54.22\n57.83\n\n53.01\n56.63\n56.63\n59.04\n\n54.22\n57.83\n55.42\n59.04\n\n54.22\n57.83\n56.63\n59.04\n\n• Qwen-4B-Base: Majority Voting slightly decreases as rollouts increase (99.61% →\n98.44%), whereas Self-Harmony remains highly stable at ≥ 99.22% across all rollout budgets.\n• Qwen-8B-Base: Both methods improve with more rollouts, but Self-Harmony consistently\nconverges to the highest accuracy (99.61%) and maintains it from 64 to 256 rollouts, while\nMajority Voting plateaus at 99.22%.\nConfident-Incorrect Dataset\n• Qwen-4B-Base: Self-Harmony outperforms Majority Voting at every rollout setting and\nremains stable as rollouts increase; Majority Voting fluctuates and never surpasses SelfHarmony.\n• Qwen-8B-Base: Self-Harmony consistently outperforms Majority Voting across all rollout\nbudgets, while Majority Voting steadily decreases as the number of rollouts increases.\nNot-Confident-Correct Dataset\n• Qwen-4B-Base: Majority Voting improves only slightly with more rollouts (90.23% →\n91.40%), whereas Self-Harmony delivers a large and consistent gain (+4–5%) and remains\nhighly stable across rollout budgets (95.31% → 94.53%), demonstrating strong correction\nability when initial model confidence is low but the answer is correct.\n• Qwen-8B-Base: Majority Voting improves with additional rollouts but remains far below\nSelf-Harmony at every setting (89.45–91.01% vs. 94.14–95.31%). Self-Harmony quickly\nsaturates at high accuracy and preserves it across budgets, indicating that the method reliably preserves valid low-confidence answers without being swayed by sample variance.\nNot-Confident-Incorrect Dataset\n• Qwen-4B-Base: Self-Harmony consistently improves performance as rollouts increase\n(65.62% → 67.19%), whereas Majority Voting remains stagnant and even decreases at\n31\n\n\fPublished as a conference paper at ICLR 2026\n\nhigh rollout counts (64.45% → 65.23%). This shows that Self-Harmony helps correct lowconfidence mistakes rather than reinforcing them.\n• Qwen-8B-Base: Majority Voting shows modest movement with additional rollouts\n(60.93–63.67%) but never closes the gap with Self-Harmony. In contrast, SelfHarmony scales positively with budget and converges to a much higher accuracy range\n(64.06–65.23%), indicating that the harmonic selection mechanism is robust against noise\nwhen confidence is low and the answer is wrong.\nAMC\n• Qwen-4B-Base: Self-Harmony outperforms Majority Voting at all rollout budgets and continues to improve as the sampling budget increases, whereas Majority Voting remains unchanged or fluctuates.\n• Qwen-8B-Base: Majority Voting improves only modestly with additional rollouts, while\nSelf-Harmony achieves the highest accuracy and sustains it from 64 to 256 rollouts.\nOverall. Self-Harmony scales favorably with larger models and can be used in a plug-and-play\nmanner at test time to obtain further accuracy gains without any parameter updates or training.\n\nJ\n\nC OMPARATIVE S IGNAL Q UALITY ACROSS C ONFIDENCE –C ORRECTNESS\nQ UADRANTS\n\nTo pinpoint the source of Self-Harmony’s performance gains, we conduct a fine-grained analysis of\nthe training signals. We categorize the base model’s initial outputs into four subsets based on confidence and correctness: (1) Confident Correct, (2) Confident Incorrect, (3) Not-Confident Correct,\nand (4) Not-Confident Incorrect.\nAs summarized in Table 10, a consistent pattern emerges across all evaluated metrics—Spearman\ncorrelation, F1 score, Average Pass@1, and pseudo-label accuracy:\n• Confident Correct: While both approaches perform well due to saturated correctness\nin this subset, Self-Harmony demonstrates greater stability (like 99.61% vs. 98.90% in\nPass@1), effectively preventing performance degradation.\n• Confident Incorrect: This represents the most challenging subset. Self-Harmony achieves\nsubstantial gains here (like +21.3% in Spearman ρ), indicating a superior capability to\nsuppress confidently wrong answers that typically mislead Majority Voting.\n• Not-Confident Correct: Self-Harmony recovers weak-but-correct signals more effectively, yielding cleaner training supervision for ambiguous or borderline questions.\n• Not-Confident Incorrect: Even when neither confidence nor correctness is reliable, SelfHarmony maintains more discriminative supervision compared to the baseline.\nCollectively, these results demonstrate that Self-Harmony’s improvement is not derived merely from\n“easy” samples. Instead, the framework significantly enhances pseudo-label quality in the critical\nareas where Majority Voting is fragile: specifically, confidently wrong and ambiguous instances.\nThis robustness explains why downstream learning benefits more from Self-Harmony than from\nstandard self-consistency aggregation.\n\nK\n\nI NTERPRETATION O F H ARMONIC M EAN\n\u0014\n\u0015\n2p0 (a)p1 (a)\n1\n(p0 (a) − p1 (a))2\nHarmonic Mean =\n=\n(p0 (a) + p1 (a)) −\n{z\n}\np0 (a) + p1 (a)\n2 |\np0 (a) + p1 (a)\n|\n{z\n}\nSelf Consistency\nView Invariance\n\nThis decomposition provides a clear interpretation of the harmonic mean pseudo-labeling objective.\nThe first term, highlighted in green, rewards high overall confidence from both views — analogous\nto maximizing the likelihood under view-agnostic aggregation. The second term, highlighted in\n32\n\n\fPublished as a conference paper at ICLR 2026\n\nTable 10: Performance breakdown across four confidence–correctness quadrants. Self-Harmony\nconsistently outperforms Majority Voting (MV) in the most difficult subsets (Confident Incorrect\nand Not-Confident Correct) across all metrics.\nConfident\nCorrect\n\nConfident\nIncorrect\n\nNot-Confident\nCorrect\n\nNot-Confident\nIncorrect\n\nSelf-Harmony\nMajority Voting\n\n18.35\n35.82\n\n36.51\n15.19\n\n37.16\n35.83\n\n30.11\n29.34\n\nF1 Score\n(%)\n\nSelf-Harmony\nMajority Voting\n\n99.35\n88.89\n\n75.76\n69.87\n\n93.07\n91.26\n\n66.43\n63.41\n\nPseudo-label\nAccuracy (%)\n\nSelf-Harmony\nMajority Voting\n\n99.22\n96.09\n\n79.69\n65.62\n\n95.31\n90.62\n\n68.75\n60.16\n\nAvg. Pass@1\n(16 rollouts, %)\n\nSelf-Harmony\nMajority Voting\n\n99.61\n98.90\n\n77.73\n76.81\n\n93.28\n92.35\n\n61.25\n58.97\n\nMethod\n\nSpearman Correlation\n(ρ, %)\n\n0.90\n\n0.60\n\n0.8\n\n0.85\n\n0.55\n\n0.7\n\n0.80\n\n0.6\n\n0.75\n\nSpearman Correlation\n\n0.9\n\nF1\n\nAccuracy\n\nMetric\n\n0.5\n\n0.70\n\n0.4\n\n0.65\n\nTTRL\nCo-Reward\nSelf-Harmony\n\n0.3\n0.2\n20\n\n40\n\n60\n\n80\n\nStep\n\n(a) Pseudo-Label Accuracy\n\nTTRL\nCo-Reward\nSelf-Harmony\n\n0.60\n\n100\n\n0.55\n\n20\n\n40\n\n60\n\n80\n\nStep\n\n(b) Pseudo-Label F1\n\nTTRL\nCo-Reward\nSelf-Harmony\n\n0.50\n0.45\n0.40\n0.35\n0.30\n\n100\n\n0.25\n\n20\n\n40\n\n60\n\n80\n\n100\n\nStep\n\n(c) Pseudo-Label Spearman\n\nFigure 12: Comparison of pseudo-label accuracy, F1, and Smoothed spearman correlation across\ntraining steps for TTRL, Co-Reward, and Self-Harmony on Math500 dataset. Self-Harmony provides consistently stronger and more stable training signals than the baselines.\nblue, penalizes disagreement between views, acting as a view-invariance regularizer. Thus, the\nharmonic mean simultaneously prefers labels that are (i) confident according to both views and\n(ii) consistent across views, rather than disproportionately influenced by a single overconfident but\nunreliable prediction.\n\nL\n\nC OMPARISON OF T RAINING S IGNALS\n\nFigure 12 compares three key training-signal properties—pseudo-label accuracy, F1, and smoothed\nSpearman correlation—across optimization steps for TTRL, Co-Reward, and Self-Harmony on\nMath500 dataset. Across all metrics, Self-Harmony consistently provides the strongest and most\nstable supervision.\n\nM\n\nU SAGE OF L ARGE L ANGUAGE M ODELS\n\nIn preparing this paper, we used Large Language Models only to aid with language polishing, grammar refinement, and improving readability. All research ideas, methodological contributions, experimental design, and analysis were conceived and carried out entirely by the authors. The LLM\nwas not involved in ideation, technical writing of results, or scientific claims. The authors take full\nresponsibility for all content of this paper.\n\n33\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"