"<!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>arXiv:2305.20050v1 [cs.LG] 31 May 2023\n\nLet’s Verify Step by Step\nHunter Lightman∗\nBowen Baker\n\nVineet Kosaraju∗\n\nTeddy Lee\n\nJan Leike\n\nYura Burda∗\nJohn Schulman\n\nHarri Edwards\nIlya Sutskever\n\nKarl Cobbe∗\n\nOpenAI\n\nAbstract\nIn recent years, large language models have greatly improved in their\nability to perform complex multi-step reasoning. However, even stateof-the-art models still regularly produce logical mistakes. To train more\nreliable models, we can turn either to outcome supervision, which provides\nfeedback for a final result, or process supervision, which provides feedback\nfor each intermediate reasoning step. Given the importance of training\nreliable models, and given the high cost of human feedback, it is important to carefully compare the both methods. Recent work has already\nbegun this comparison, but many questions still remain. We conduct our\nown investigation, finding that process supervision significantly outperforms outcome supervision for training models to solve problems from the\nchallenging MATH dataset. Our process-supervised model solves 78% of\nproblems from a representative subset of the MATH test set. Additionally,\nwe show that active learning significantly improves the efficacy of process\nsupervision. To support related research, we also release PRM800K, the\ncomplete dataset of 800,000 step-level human feedback labels used to train\nour best reward model.\n\n1\n\nIntroduction\n\nLarge language models are capable of solving tasks that require complex multistep reasoning by generating solutions in a step-by-step chain-of-thought format\n(Nye et al., 2021; Wei et al., 2022; Kojima et al., 2022). However, even stateof-the-art models are prone to producing falsehoods — they exhibit a tendency\nto invent facts in moments of uncertainty (Bubeck et al., 2023). These hallucinations (Maynez et al., 2020) are particularly problematic in domains that\nrequire multi-step reasoning, since a single logical error is enough to derail a\nmuch larger solution. Detecting and mitigating hallucinations is essential to\nimprove reasoning capabilities.\n∗ Primary authors. Correspondence to: Karl Cobbe &lt;karl@openai.com&gt;\n\n1\n\n\fOne effective method involves training reward models to discriminate between desirable and undesirable outputs. The reward model can then be used\nin a reinforcement learning pipeline (Ziegler et al., 2019; Stiennon et al., 2020;\nNakano et al., 2021; Ouyang et al., 2022) or to perform search via rejection sampling (Nichols et al., 2020; Shen et al., 2021; Cobbe et al., 2021). While these\ntechniques are useful, the resulting system is only as reliable as the reward\nmodel itself. It is therefore important that we study how to most effectively\ntrain reliable reward models.\nIn closely related work, Uesato et al. (2022) describe two distinct methods for training reward models: outcome supervision and process supervision.\nOutcome-supervised reward models (ORMs) are trained using only the final\nresult of the model’s chain-of-thought, while process-supervised reward models\n(PRMs) receive feedback for each step in the chain-of-thought. There are compelling reasons to favor process supervision. It provides more precise feedback,\nsince it specifies the exact location of any errors that occur. It also has several advantages relevant to AI alignment: it is easier for humans to interpret,\nand it more directly rewards models for following a human-endorsed chain-ofthought. Within the domain of logical reasoning, models trained with outcome\nsupervision regularly use incorrect reasoning to reach the correct final answer\n(Zelikman et al., 2022; Creswell et al., 2022). Process supervision has been\nshown to mitigate this misaligned behavior (Uesato et al., 2022).\nDespite these advantages, Uesato et al. (2022) found that outcome supervision and process supervision led to similar final performance in the domain of\ngrade school math. We conduct our own detailed comparison of outcome and\nprocess supervision, with three main differences: we use a more capable base\nmodel, we use significantly more human feedback, and we train and test on the\nmore challenging MATH dataset (Hendrycks et al., 2021).\nOur main contributions are as follows:\n1. We show that process supervision can train much more reliable reward\nmodels than outcome supervision. We use our state-of-the-art PRM to\nsolve 78.2% of problems from a representative subset of the MATH test\nset.\n2. We show that a large reward model can reliably approximate human supervision for smaller reward models, and that it can be used to efficiently\nconduct large-scale data collection ablations.\n3. We show that active learning leads to a 2.6× improvement in the data\nefficiency of process supervision.\n4. We release our full process supervision dataset, PRM800K, to promote\nrelated research.\n\n2\n\n\f2\n\nMethods\n\nWe perform a comparison of outcome and process supervision, following a similar methodology to Uesato et al. (2022). Outcome supervision can be provided\nwithout humans, since all problems in the MATH dataset have automatically\ncheckable answers. In contrast, there is no simple way to automate process supervision. We therefore rely on human data-labelers to provide process supervision, specifically by labelling the correctness of each step in model-generated\nsolutions.\nWe conduct experiments in two separate regimes: large-scale and smallscale. Each has its own advantages, and they offer complimentary perspectives.\nAt large-scale, we finetune all models from GPT-4 (OpenAI, 2023). We focus\non advancing the state-of-the-art by training the most reliable ORM and PRM\npossible. Unfortunately the training sets for these reward models are not directly\ncomparable, for reasons we will discuss in Section 3. These models are therefore\nnot ideal for making an apples-to-apples comparison of outcome and process\nsupervision. To address this flaw, we also train models at small-scale, where\nwe can conduct a more direct comparison. In order to remove our dependence\non costly human feedback, we use a large-scale model to supervise small-scale\nmodel training. This setup enables us to conduct several important ablations\nthat would otherwise be infeasible.\n\n2.1\n\nScope\n\nAt each model scale, we use a single fixed model to generate all solutions. We\ncall this model the generator. We do not attempt to improve the generator with\nreinforcement learning (RL). When we discuss outcome and process supervision,\nwe are specifically referring to the supervision given to the reward model. We do\nnot discuss any supervision the generator would receive from the reward model\nif trained with RL. Although finetuning the generator with RL is a natural next\nstep, it is intentionally not the focus of this work.\nWe instead focus exclusively on how to train the most reliable reward model\npossible. We evaluate a reward model by its ability to perform best-of-N search\nover uniformly sampled solutions from the generator. For each test problem we\nselect the solution ranked highest by the reward model, automatically grade it\nbased on its final answer, and report the fraction that are correct. A reward\nmodel that is more reliable will select the correct solution more often.\n\n2.2\n\nBase Models\n\nAll large-scale models are finetuned from the base GPT-4 model (OpenAI, 2023).\nThis model has been pretrained solely to predict the next token; it has not been\npretrained with any Reinforcement Learning from Human Feedback (RLHF)\n(Christiano et al., 2017). The small-scale base models are similar in design to\nGPT-4, but they were pretrained with roughly 200 times less compute. As an\nadditional pretraining step, we finetune all models on a dataset of roughly 1.5B\n\n3\n\n\fFigure 1: A screenshot of the interface used to collect feedback for each step in\na solution.\nmath-relevant tokens, which we call MathMix. Similar to Lewkowycz et al.\n(2022), we find that this improves the model’s mathematical reasoning capabilities. Details on how this dataset was constructed can be found in Appendix A.\n\n2.3\n\nGenerator\n\nTo make parsing individual steps easier, we train the generator to produce\nsolutions in a newline delimited step-by-step format. Specifically, we few-shot\ngenerate solutions to MATH training problems, filter to those that reach the\ncorrect final answer, and finetune the base model on this dataset for a single\nepoch. This step is not intended to teach the generator new skills; it is intended\nonly to teach the generator to produce solutions in the desired format.\n\n2.4\n\nData Collection\n\nTo collect process supervision data, we present human data-labelers with stepby-step solutions to MATH problems sampled by the large-scale generator.\nTheir task is to assign each step in the solution a label of positive, negative,\nor neutral, as shown in Figure 1. A positive label indicates that the step is correct and reasonable. A negative label indicates that the step is either incorrect\nor unreasonable. A neutral label indicates ambiguity. In practice, a step may\nbe labelled neutral if it is subtly misleading, or if it is a poor suggestion that\nis technically still valid. We permit neutral labels since this allows us to defer\nthe decision about how to handle ambiguity: at test time, we can treat neutral\nlabels as either positive or negative. A more detailed description of the labelling\ninstructions is provided in Appendix D.\nWe label solutions exclusively from the large-scale generator in order to\nmaximize the value of our limited human-data resource. We refer to the entire dataset of step-level labels collected as PRM800K. The PRM800K training\nset contains 800K step-level labels across 75K solutions to 12K problems. To\n4\n\n\fminimize overfitting, we include data from 4.5K MATH test problems in the\nPRM800K training set, and we therefore evaluate our models only on the remaining 500 MATH test problems. More details about this test set can be found\nin Appendix C.\nDuring data collection, we must decide which solutions to surface to datalabelers. The most straightforward strategy is to uniformly surface solutions\nproduced by the generator. However, if we surface solutions that make obvious\nerrors, the human feedback we get is less valuable. We would prefer to surface\nsolutions that are more likely to fool our best reward model. To that end, we attempt to strategically select which solutions to show data-labelers. Specifically,\nwe choose to surface convincing wrong-answer solutions. We use the term convincing to refer to solutions that are rated highly by our current best PRM, and\nwe use wrong-answer to refer to solutions that reach an incorrect final answer.\nWe use this slightly verbose phrasing to emphasize the fact that correctness is\ndetermined solely by checking the final answer, a process which occasionally\nleads to misgraded solutions. We expect to gain more information from labeling\nconvincing wrong-answer solutions, since we know the PRM is mistaken about\nat least one step in each such solution.\nIn addition to using this selection strategy, we also iteratively re-train our\nPRM using the latest data at several points in the data collection process. At\neach iteration, we generate N solutions per problem and surface only the top K\nmost convincing wrong-answer solutions to data-labelers. We experiment with\neither applying this top-K filtering at a problem level (K solutions per problem)\nor globally across the dataset (K solutions in total, unequally distributed among\nproblems). Since the data collection process is expensive, it was not feasible\nto conduct at-scale ablations of these decisions. However, we perform several\nsurrogate ablations in Section 4, using our largest PRM as a labelling oracle for\na smaller PRM. More details about data collection can be found in Appendix B.\n\n2.5\n\nOutcome-supervised Reward Models (ORMs)\n\nWe train ORMs following a similar methodology to Cobbe et al. (2021). We\nuniformly sample a fixed number of solutions per problem from the generator,\nand we train the ORM to predict whether each solution is correct or incorrect.\nIn practice, we usually determine correctness by automatically checking the\nfinal answer, but in principle these labels could be provided by humans. At test\ntime, we use the ORM’s prediction at the final token as the overall score for the\nsolution. We note the automatic grading used to determine ORM targets is not\nperfectly reliable: false positives solutions that reach the correct answer with\nincorrect reasoning will be misgraded. We discuss additional ORM training\ndetails in Appendix E.\n\n2.6\n\nProcess-supervised Reward Models (PRMs)\n\nWe train PRMs to predict the correctness of each step after the last token in\neach step. This prediction takes the form of a single token, and we maximize the\n5\n\n\fFigure 2: Two solutions to the same problem, graded by the PRM. The solution\non the left is correct while the solution on the right is incorrect. A green\nbackground indicates a high PRM score, and a red background indicates a low\nscore. The PRM correctly identifies the mistake in the incorrect solution.\nlog-likelihood of these target tokens during training. The PRM can therefore\nbe trained in a standard language model pipeline without any special accommodations. To determine the step-level predictions at test time, it suffices to\nperform a single PRM forward pass over the whole solution. We visualize largescale PRM scores for two different solutions in Figure 2. To compare multiple\nsolutions, it is necessary to compute a single score for each solution. This is an\nimportant but straightforward detail: we define the PRM score for a solution to\nbe the probability that every step is correct under the PRM. We implement this\nas the product of the correctness probabilities for each step. We describe other\npossible scoring strategies and additional PRM training details in Appendix F.\nWhen we provide process supervision, we deliberately choose to supervise\nonly up to the first incorrect step. This makes the comparison between outcome and process supervision more straightforward. For correct solutions, both\nmethods provide the same information, namely that every step is correct. For\nincorrect solutions, both methods reveal the existence of at least one mistake,\nand process supervision additionally reveals the precise location of that mistake.\nIf we were to provide additional process supervision beyond the first mistake,\nthen process supervision would have an even greater information advantage.\nThis decision also keeps the labelling cost similar for humans: without relying\non an easy-to-check final answer, determining the correctness of a solution is\nequivalent to identifying its first mistake. While most MATH problems do have\neasy-to-check final answers, we expect this to not remain true in more complex\ndomains.\n\n6\n\n\f% Solved (Best-of-1860)\n\nORM\n72.4\n\nPRM\n78.2\n\nMajority Voting\n69.6\n\n78\n\n% Problems Solved (Best-of-N)\n\n76\n74\n72\n70\n68\n66\nProcess-Supervised RM\nOutcome-Supervised RM\nMajority Voting\n\n64\n62\n101\n\n102\nN = number of solutions per problem\n\n103\n\nFigure 3: A comparison of outcome-supervised and process-supervised reward\nmodels, evaluated by their ability to search over many test solutions. Majority\nvoting is shown as a strong baseline. For N ≤ 1000, we visualize the variance\nacross many subsamples of the 1860 solutions we generated in total per problem.\n\n3\n\nLarge-scale Supervision\n\nWe train the large-scale PRM using the step-level labels in PRM800K. To ensure\nthe large-scale ORM baseline is as strong as possible, we train on 100 uniform\nsamples per problem from the generator. This means the ORM training set has\nno overlap with PRM800K, and it is an order of magnitude larger. Although\nthese two training sets are not directly comparable, each represents our best\nattempt to advance the state-of-the-art with each form of supervision. We note\nthat training the ORM solely on PRM800K solutions would be problematic,\nsince our active learning strategy has heavily biased the dataset towards wronganswer solutions. We did explore training the ORM on a superset of PRM800K\nsolutions, by mixing in uniformly sampled solutions, but we found that this did\nnot improve ORM performance.\nFigure 3 shows how the best-of-N performance of each reward model varies\nas a function of N. Since majority voting is known to be a strong baseline (Wang\net al., 2022; Lewkowycz et al., 2022), we also include this method as a point of\ncomparison. While the ORM performs slightly better than the majority voting\nbaseline, the PRM strongly outperforms both. Not only does the PRM reach\nhigher performance for all values of N, but the performance gap widens as N\nincreases. This indicates that the PRM is more effective than both the ORM and\nmajority voting at searching over a large number of model-generated solutions.\n7\n\n\f% Problems Solved (Best-of-N)\n\n% Problems Solved (Best-of-500)\n\n60\n55\n50\n45\n40\n35\n30\n25\n100\n\nPRM + Active Learning\nPRM (PRMlarge supervised)\nORM (PRMlarge supervised)\nORM (final-answer supervised)\n101\n102\nNumber of solutions labelled per problem\n\n(a) Four series of reward models\ntrained using different data collection\nstrategies, compared across training\nsets of varying sizes.\n\n60\n55\n50\n45\n40\n35\n30\n25\n20\n\n100\n\nPRM (PRMlarge supervised)\nORM (PRMlarge supervised)\nORM (final-answer supervised)\n101\n102\n103\nN = number of solutions per problem\n\n(b) Three reward models trained on\n200 samples/problem using different\nforms of supervision, compared across\nmany test-time compute budgets.\n\nFigure 4: A comparison of different forms of outcome and process supervision.\nMean and standard deviation is shown across three seeds.\nWe experimented with using RM-weighted voting (Li et al., 2022; Uesato et al.,\n2022) to combine the benefits of the PRM and majority voting, but this did not\nnoticeably improve performance. We use a specific subset of the MATH test set\nfor evaluation, which we describe in Appendix C. We further break down these\nresults by problem difficulty in Appendix G.\n\n4\n\nSmall-scale Synthetic Supervision\n\nWe find that the PRM outperforms the ORM at large-scale, but this result alone\npaints an incomplete picture. To better compare outcome and process supervision, there are two confounding factors that must be isolated. First, the training\nsets for the ORM and the PRM are not directly comparable: the PRM training\nset was constructed using active learning, is biased towards answer-incorrect\nsolutions, and is an order of magnitude smaller. Second, the final-answer grading will provide positive labels to spurious solutions that reach the correct final\nanswer despite incorrect reasoning. This could damage ORM performance, an\neffect we may or may not want to attribute to outcome supervision more generally.\nDue to the high cost of collecting human feedback, we cannot easily ablate\nthese factors using human labelers. We instead perform the relevant ablations\nby using the large-scale PRM to supervise smaller models. This setup enables\nus to simulate a large amount of data collection at a modest cost. For the\nremainder of this section, we refer to the large-scale PRM from Section 3 as\nPRMlarge .\n\n8\n\n\f4.1\n\nProcess vs Outcome Supervision\n\nWe now conduct a direct comparison of outcome and process supervision. We\nfirst sample between 1 and 200 solutions per problem from a small-scale generator. For each dataset, we provide three forms of supervision: process supervision\nfrom PRMlarge , outcome supervision from PRMlarge , and outcome supervision\nfrom final-answer checking. The choice of supervision is the only difference\nbetween these three series of reward models, which are otherwise trained on\nidentical datasets. See Appendix H for more details about how PRMlarge is\nused for outcome and process supervision.\nIn Figure 4a, we evaluate each reward model by its best-of-500 selection. We\nsee that process supervision significantly outperforms both forms of outcome\nsupervision at all data collection scales. In Figure 4b, we evaluate the best\nreward model from each series by its best-of-N performance across different\nvalues of N. We see that using PRMlarge for outcome supervision is noticeably\nmore effective than final-answer checking. This can be explained by the fact\nthat PRMlarge provides better supervision for solutions that reach the correct\nfinal answer using incorrect reasoning.\nIt is not clear whether supervision by PRMlarge or by final-answer checking\nrepresents the more appropriate outcome supervision baseline. While finalanswer supervision is more explicitly outcome based, its main weakness — the\nexistence of false positives — is arguably over-emphasized in the MATH dataset.\nOutcome supervision by PRMlarge better represents outcome supervision in domains that are less susceptible to false positives. We consider outcome supervision by PRMlarge to be the more relevant baseline, but we encourage the reader\nto draw their own conclusions.\n\n4.2\n\nActive Learning\n\nFinally, we investigate the impact of active learning. We train a small-scale\nreward model, PRMselector , on a single sample from each problem, and we use\nthis model to score 1000 samples per problem. To train each of our larger reward models, we select N samples per problem such that 80% are the most\nconvincing (according to PRMselector ) wrong-answer samples, and 20% are the\nmost convincing samples that remain (right- or wrong-answer). We score the\nselected samples with PRMlarge and train on those scores. This process ensures\nthat all samples are relatively convincing under PRMselector , that a large fraction are known to contain at least one mistake, and that our overall dataset\nis not too heavily biased toward wrong-answer solutions. Performance of this\ndata labelling scheme is shown in Figure 4a. By comparing the slopes of the\nline of best fit with and without active learning, we estimate that this form\nof active learning is approximately 2.6x more data efficient than uniform data\nlabelling. We note that the model trained on the largest active learning dataset\n(200 samples per problem) appears to slightly underperform the expected trend\nline. Our best explanation for this observation is that 200 samples represents\na significant fraction of the overall selection pool (1000 samples) and that this\n\n9\n\n\fAP Calculus\nAP Chemistry\nAP Physics\nAMC10/12\nAggregate\n\nORM\n68.9%\n68.9%\n77.8%\n49.1%\n63.8%\n\nPRM\n86.7%\n80.0%\n86.7%\n53.2%\n72.9%\n\nMajority Vote\n80.0%\n71.7%\n82.2%\n32.8%\n61.3%\n\n# Problems\n45\n60\n45\n84\n234\n\nTable 1: We measure out-of-distribution generalization using recent STEM tests.\nWe evaluate the outcome-supervised RM, the process-supervised RM, and majority voting using 100 test samples per problem.\nrelative lack of diversity limits the possible upside from active learning.\nWe also performed a preliminary investigation into the impact of iteratively\nretraining PRMselector throughout data collection. Between iterations, we retrained PRMselector using all currently labeled data. Unfortunately, we observed\ninstability in this process which we were unable to diagnose. The resulting\nreward models performed no better than the models described above. We expect\nsome form of iterative retraining to be beneficial in active learning, but we\ncurrently have no concrete evidence to support this claim. We consider this a\ncompelling direction for future research.\n\n5\n\nOOD Generalization\n\nTo get some measure of out-of-distribution generalization, we evaluate our largescale ORM and PRM on a held-out set of 224 STEM questions, pulled from the\nmost recent AP Physics, AP Calculus, AP Chemistry, AMC10, and AMC12 exams. Since these tests were released after the pre-training dataset was compiled,\nwe can have high confidence that the model has not seen these problems. We\nreport the best-of-100 performance of the ORM, PRM and majority voting in\nTable 1. We observe results similar to those in Section 3: the PRM outperforms\nboth the ORM and majority voting. This shows us that the PRM can tolerate\na modest amount of distribution shift and that its strong performance holds up\non fresh test questions.\n\n6\n\nDiscussion\n\n6.1\n\nCredit Assignment\n\nOne clear advantage of process supervision is that it provides more precise\nfeedback than outcome supervision. A reward model trained with outcome\nsupervision faces a difficult credit-assignment task — to generalize well, it must\ndetermine where an incorrect solution went wrong. This is particularly difficult\nfor hard problems: most model-generated solutions contain an error somewhere,\nso the marginal value of a negative label from outcome supervision is low. In\n\n10\n\n\fcontrast, process supervision provides a richer signal: it specifies both how\nmany of the first steps were in fact correct, as well as the precise location of\nthe incorrect step. Process supervision makes credit assignment easier, and we\nbelieve that this explains its strong performance.\n\n6.2\n\nAlignment Impact\n\nProcess supervision has several advantages over outcome supervision related\nto AI alignment. Process supervision is more likely to produce interpretable\nreasoning, since it encourages models to follow a process endorsed by humans.\nProcess supervision is also inherently safer: it directly rewards an aligned chainof-thought rather than relying on outcomes as a proxy for aligned behavior\n(Stuhlmüller and Byun, 2022). In contrast, outcome supervision is harder to\nscrutinize, and the preferences conveyed are less precise. In the worst case,\nthe use of outcomes as an imperfect proxy could lead to models that become\nmisaligned after learning to exploit the reward signal (Uesato et al., 2022; Cotra,\n2022; Everitt et al., 2017).\nIn some cases, safer methods for AI systems can lead to reduced performance\n(Ouyang et al., 2022; Askell et al., 2021), a cost which is known as an alignment\ntax. In general, any alignment tax may hinder the adoption of alignment methods, due to pressure to deploy the most capable model. Our results show that\nprocess supervision in fact incurs a negative alignment tax. This could lead to\nincreased adoption of process supervision, which we believe would have positive\nalignment side-effects. It is unknown how broadly these results will generalize\nbeyond the domain of math, and we consider it important for future work to\nexplore the impact of process supervision in other domains.\n\n6.3\n\nTest Set Contamination\n\nThe test set of the MATH dataset contains problems that are discussed in\nseveral online venues, and it is likely that some of these problems appear in\nthe pretraining dataset for our models. We attempted to remove all MATH\nproblems from our MathMix dataset using string-matching heuristics, but since\nhumans can post hard-to-detect rephrasings of a problem online, it is difficult\nto make any strong guarantees about the overlap between MathMix and the\nMATH dataset.\nIn our experience inspecting model-generated solutions, we saw no clear signs\nof our models memorizing MATH problems. However, it is impossible to rule\nout subtle forms of memorization that would slip past manual inspection, and\nit is still possible that some degree of contamination has slightly inflated our\nperformance on the MATH test set. Even in that case, we would expect any\ncontamination to manifest similarly across all methods, and that the relative\ncomparisons made throughout this work would remain mostly unaffected.\nWe also note that the PRM regularly surfaces correct solutions to MATH\nproblems that have a low single-digit percentage solve-rate under the generator, some examples of which can be seen in Appendix I. The generator’s low\n11\n\n\fsolve-rate is an additional indication that it has not encountered such problems\nvia test set contamination. Our generalization results from Section 5 further\nstrengthen our claim that test set contamination has not significantly impacted\nthis work, since we observe qualitatively similar results on problems that are\nguaranteed to be uncontaminated.\n\n7\n\nRelated Work\n\n7.1\n\nOutcome vs Process Supervision\n\nIn work closely related to our own, Uesato et al. (2022) compare the impact\nof outcome and process supervision in the domain of grade school math. They\nfound that both methods led to similar final-answer error rates, and that process\nsupervision achieved those results with less data. While our core methodology is\nvery similar, there are three main details that differ. First, we use a more capable\nmodel to collect PRM800K dataset and to perform our large-scale experiments.\nHowever, our small-scale results in Section 4 suggest that large-scale models are\nnot necessary to observe benefits from process supervision. Second, we evaluate\non the MATH dataset, which is significantly more challenging than GSM8K.\nThird, we collect a much larger quantity of process supervision data.\nOn the surface, the results from Uesato et al. (2022) may seem to conflict\nwith our claim that process supervision leads to better performance. However,\nwe believe the apparent conflict can be explained by the difference in the scale\nof the supervision. The data scaling trend in Figure 4a suggests that a small\namount of process supervision and a large amount of outcome supervision do\nin fact lead to similar performance, consistent with the results from Uesato\net al. (2022). The trend also shows that process supervision beats outcome\nsupervision when scaled up, even when judged based solely on outcomes. This\nis consistent with our results in Section 3. We believe these results make a\nstrong case for using process supervision.\n\n7.2\n\nSynthetic Supervision\n\nSimilar to our work in Section 4, Gao et al. (2022) use a large reward model to\nsupervise the training of smaller models. They study the over-optimization that\noccurs during RLHF, with experiments that require large quantities of human\npreference data. To work around this challenge, they use a gold-standard reward\nmodel to replace human feedback. Our use of a large-scale reward model to\nsupervise smaller reward models shares similarities with their approach.\n\n7.3\n\nNatural Language Reasoning\n\nSeveral recent studies that have examined the reasoning ability of large language\nmodels are implicitly relevant to our work. Lewkowycz et al. (2022) showed that\nfinetuning models on a large corpus of technical content led to significantly improved performance on MATH. Wang et al. (2022) showed that self-consistency\n12\n\n\fleads to remarkably strong performance on many reasoning benchmarks, notably without requiring any additional finetuning. Wei et al. (2022) and Nye\net al. (2021) demonstrate the importance of explicitly performing intermediate\nreasoning steps via a chain of thought or a scratchpad in order to solve tasks\nthat require multi-step reasoning. Kojima et al. (2022) show that models are\nable to perform this behavior zero-shot, conditioned only on a simple prompt.\n\n8\n\nConclusion\n\nWe have shown that process supervision can be used to train much more reliable\nreward models than outcome supervision in the domain of mathematical reasoning. We have also shown that active learning can be used to lower the cost of\nhuman data collection by surfacing only the most valuable model completions\nfor human feedback. We release PRM800K, the full dataset of human feedback\nused to train our state-of-the-art reward model, with the hope that removing\nthis significant barrier to entry will catalyze related research on the alignment of\nlarge language models. We believe that process supervision is currently underexplored, and we are excited for future work to more deeply investigate the\nextent to which these methods generalize.\n\nAcknowledgements\nWe thank Joshua Achiam, Mark Chen, Jonathan Gordon, Dan Hendrycks,\nLukasz Kaiser, Oleg Murk, Ben Sokolowsky, Francis Song, and Jonathan Uesato\nfor valuable feedback and thoughtful discussions; Giambattista Parascandolo\nand Daniel Selsam for their contributions to the MathMix dataset; Jonathan\nWard for contributing to the data collection interface; Wojciech Zaremba for encouraging us to scale up data collection; Peter Hoeschele and Aris Kostantinidis\nfor supporting our data collection; the research acceleration and supercomputing teams at OpenAI for providing infrastructure support; and the team at Scale\nand the many data-labelers who created PRM800K.\n\nReferences\nA. Askell, Y. Bai, A. Chen, D. Drain, D. Ganguli, T. Henighan, A. Jones,\nN. Joseph, B. Mann, N. DasSarma, et al. A general language assistant as a\nlaboratory for alignment. arXiv preprint arXiv:2112.00861, 2021.\nS. Bubeck, V. Chandrasekaran, R. Eldan, J. Gehrke, E. Horvitz, E. Kamar,\nP. Lee, Y. T. Lee, Y. Li, S. Lundberg, et al. Sparks of artificial general\nintelligence: Early experiments with gpt-4. arXiv preprint arXiv:2303.12712,\n2023.\n\n13\n\n\fP. F. Christiano, J. Leike, T. Brown, M. Martic, S. Legg, and D. Amodei.\nDeep reinforcement learning from human preferences. Advances in neural\ninformation processing systems, 30, 2017.\nK. Cobbe, V. Kosaraju, M. Bavarian, M. Chen, H. Jun, L. Kaiser, M. Plappert,\nJ. Tworek, J. Hilton, R. Nakano, et al. Training verifiers to solve math word\nproblems. arXiv preprint arXiv:2110.14168, 2021.\nA.\nCotra.\nWithout\nspecific\ncountermeasures,\nthe\neasiest path to transformative AI likely leads to AI takeover.\nhttps://www.alignmentforum.org/posts/pRkFkzwKZ2zfa3R6H/\nwithout-specific-countermeasures-the-easiest-path-to, 2022.\nA. Creswell, M. Shanahan, and I. Higgins. Selection-inference: Exploiting\nlarge language models for interpretable logical reasoning. arXiv preprint\narXiv:2205.09712, 2022.\nT. Everitt, V. Krakovna, L. Orseau, M. Hutter, and S. Legg. Reinforcement\nlearning with a corrupted reward channel. arXiv preprint arXiv:1705.08417,\n2017.\nL. Gao, J. Schulman, and J. Hilton. Scaling laws for reward model overoptimization. arXiv preprint arXiv:2210.10760, 2022.\nD. Hendrycks, C. Burns, S. Kadavath, A. Arora, S. Basart, E. Tang, D. Song,\nand J. Steinhardt. Measuring mathematical problem solving with the math\ndataset. arXiv preprint arXiv:2103.03874, 2021.\nT. Kojima, S. S. Gu, M. Reid, Y. Matsuo, and Y. Iwasawa. Large language\nmodels are zero-shot reasoners. arXiv preprint arXiv:2205.11916, 2022.\nA. Lewkowycz, A. Andreassen, D. Dohan, E. Dyer, H. Michalewski, V. Ramasesh, A. Slone, C. Anil, I. Schlag, T. Gutman-Solo, et al. Solving\nquantitative reasoning problems with language models. arXiv preprint\narXiv:2206.14858, 2022.\nY. Li, Z. Lin, S. Zhang, Q. Fu, B. Chen, J.-G. Lou, and W. Chen. On\nthe advance of making language models better reasoners. arXiv preprint\narXiv:2206.02336, 2022.\nJ. Maynez, S. Narayan, B. Bohnet, and R. McDonald. On faithfulness and\nfactuality in abstractive summarization. arXiv preprint arXiv:2005.00661,\n2020.\nR. Nakano, J. Hilton, S. Balaji, J. Wu, L. Ouyang, C. Kim, C. Hesse, S. Jain,\nV. Kosaraju, W. Saunders, et al. Webgpt: Browser-assisted questionanswering with human feedback. arXiv preprint arXiv:2112.09332, 2021.\nE. Nichols, L. Gao, and R. Gomez. Collaborative storytelling with large-scale\nneural language models. In Proceedings of the 13th ACM SIGGRAPH Conference on Motion, Interaction and Games, pages 1–10, 2020.\n14\n\n\fM. Nye, A. J. Andreassen, G. Gur-Ari, H. Michalewski, J. Austin, D. Bieber,\nD. Dohan, A. Lewkowycz, M. Bosma, D. Luan, et al. Show your work:\nScratchpads for intermediate computation with language models. arXiv\npreprint arXiv:2112.00114, 2021.\nOpenAI. Gpt-4 technical report. arXiv preprint arXiv:2303.08774, 2023.\nL. Ouyang, J. Wu, X. Jiang, D. Almeida, C. L. Wainwright, P. Mishkin,\nC. Zhang, S. Agarwal, K. Slama, A. Ray, et al. Training language models to\nfollow instructions with human feedback. arXiv preprint arXiv:2203.02155,\n2022.\nJ. Shen, Y. Yin, L. Li, L. Shang, X. Jiang, M. Zhang, and Q. Liu. Generate\n&amp; rank: A multi-task framework for math word problems. arXiv preprint\narXiv:2109.03034, 2021.\nN. Stiennon, L. Ouyang, J. Wu, D. Ziegler, R. Lowe, C. Voss, A. Radford,\nD. Amodei, and P. F. Christiano. Learning to summarize with human feedback. Advances in Neural Information Processing Systems, 33:3008–3021,\n2020.\nA. Stuhlmüller and J. Byun. Supervise process, not outcomes. https://ought.\norg/updates/2022-04-06-process, 2022.\nJ. Uesato, N. Kushman, R. Kumar, F. Song, N. Siegel, L. Wang, A. Creswell,\nG. Irving, and I. Higgins. Solving math word problems with process-and\noutcome-based feedback. arXiv preprint arXiv:2211.14275, 2022.\nX. Wang, J. Wei, D. Schuurmans, Q. Le, E. Chi, and D. Zhou. Self-consistency\nimproves chain of thought reasoning in language models. arXiv preprint\narXiv:2203.11171, 2022.\nJ. Wei, X. Wang, D. Schuurmans, M. Bosma, E. Chi, Q. Le, and D. Zhou.\nChain of thought prompting elicits reasoning in large language models. arXiv\npreprint arXiv:2201.11903, 2022.\nE. Zelikman, Y. Wu, J. Mu, and N. Goodman. Star: Bootstrapping reasoning with reasoning. Advances in Neural Information Processing Systems, 35:\n15476–15488, 2022.\nD. M. Ziegler, N. Stiennon, J. Wu, T. B. Brown, A. Radford, D. Amodei,\nP. Christiano, and G. Irving. Fine-tuning language models from human preferences. arXiv preprint arXiv:1909.08593, 2019.\n\n15\n\n\fA\n\nMathMix\n\nSimilar to Lewkowycz et al. (2022) we construct a large-scale dataset of highquality math-relevant tokens for use in a lightweight pretraining stage, before\nfinetuning on comparably smaller datasets like MATH and PRM800K. This\ndataset, which we call MathMix, has two main differences compared to the one\nused to train Minerva. First, it is smaller and more aggressively filtered to highquality math problem-solving content, and second, it does not explicitly mix in\ngeneral language data.\nMinerva was trained on 38.5B tokens of arXiv documents and webscrape\npages with LaTeX content, while MathMix consists of a smaller set of 1.5B\ntokens containing individual math problems and their solutions, free-form text\ndiscussing math problems and concepts, and synthetic data (Table 2). While\nMinerva was pretrained on a dataset with 5% general natural language data,\nwe chose not to mix in any natural language data explicitly, primarily because\nMathMix already contains plenty of natural language data.\nData type\nMath problems and solutions\nFree-form math discussion text (1)\nFree-form math discussion text (2)\nSynthetic data (1)\nSynthetic data (2)\nCritiques grading data\n\nToken count\n∼ 275M\n∼ 430M\n∼ 450M\n∼ 30M\n∼ 100M\n∼ 500M\n\nPresent in pretraining?\nNo\nNo\nYes\nNo\nYes\nNo\n\nTable 2: MathMix dataset components.\nNote that when training smaller models, as in Section 4, we use a slightly\nsmaller variant of MathMix that excludes the critiques data and only consists of\n1B tokens. For our large models experiments, we train on MathMix for roughly\n3B tokens (2 epochs). For our small models experiments, we train for 6 epochs\n(roughly 6.6B tokens).\nWe apply a set of decontamination checks on MathMix against the test\nsplit of the MATH dataset, including stripping out LaTeX and searching for\nmatching n-grams, but we can make no strong guarantees on the efficacy of this\ndecontamination. As discussed in Section 6.3, we would not expect the relative\ncomparisons made throughout this work to be significantly impacted by test set\ncontamination.\n\n16\n\n\fB\n\nPRM800K\n\nWe collected 1,085,590 step-level labels over 101,599 solution samples. We\npresent the whole unfiltered dataset as PRM800K. During training we discard\nlabels used for quality control, as well as any step-level labels for which the\nlabeler was unable to complete the task. The filtered dataset contains about\n800,000 step-level labels over 75,000 solutions. The full PRM800K dataset is\navailable at https://github.com/openai/prm800k.\nThe data collection was split into two separate phases. In phase 1, we collected labels for multiple alternative completions at each step of a solution. This\nseeded our dataset but was cumbersome—for many steps the alternatives were\nrepetitive, and we found labelers spent a lot of time supervising long uninteresting solutions. As a result, the step-level labels we collected in this phase are\nmore repetitive than those collected later. In total, phase 1 represents about\n5% of PRM800K, or about 40,000 step-level labels.\nThe majority of our labels were collected as part of phase 2, during which we\nscaled up and streamlined the data collection process. Phase 2 data collection\nis split into 10 generations. For each generation, we sample N solutions per\nproblem from the generator. We rank these solutions with our current best\nPRM and surface the highest scoring wrong-answer solutions to our labelers.\nWe retrain this PRM between each generation using all the latest data. This\nactive learning strategy changes the balance of our data considerably. Though\nwe sometimes surfaced correct solutions (either by manually injecting correct\nsolutions or because of errors in our automatic grading), the vast majority of the\nlabels we collected in this phase are for incorrect solutions. Table 3 breaks down\nthe balance of correct/incorrect steps and solutions between the different phases\nof data collection. Though we mostly collected labels on incorrect solutions, we\nstill collected many labels for correct individual steps. In fact, our small-scale\nablations in Section 4.2 suggest that this active learning strategy, which favors\nlabelling high-scoring wrong-answer solutions, improves performance despite the\nresulting imbalance in the dataset.\n\n% end in correct solution\n% correct steps\n\nphase 1\n85.1\n58.6\n\nphase 2\n13.2\n74.1\n\ncombined\n14.2\n73.1\n\nTable 3: Distribution of positive/negative steps/solutions.\nSome of our phase 2 questions are intended for quality control. For a quality\ncontrol question, researchers mark which steps are reasonable to label as incorrect. Then we assess that labelers are able to consistently mark those steps\nas incorrect. Prior to starting on phase 2, we required all labelers to label 30\nquality control questions. This served as a screening test, and we only admitted\nlabelers that agreed with our gold labels at least 75% of the time.\nWe then designated 10-20 problems per generation as additional quality\ncontrol questions, and we randomly served them to labelers as they worked\n17\n\n\fthrough the task. We used the results of this continuous quality control to\nremove labelers whose quality slipped too far, as well as to prepare educational\nmaterial on common mistakes in order to improve labeler alignment with our\ninstructions.\n\nC\n\nEvaluation\n\nAs we scaled up the project, we began having to collect labels on multiple\nsolutions for the same training problem. In order to avoid the risk of over-fitting\non the 7,500 MATH training problems, we expanded the training set to include\n4,500 MATH test split problems. We therefore evaluate our models only on the\nremaining 500 held-out problems. We selected these 500 test problems uniformly\nat random. In Figure 5, we show that the distribution of difficulty levels and\nsubjects in this subset is representative of the MATH test set as a whole. The\nspecific test set we used can be found at https://github.com/openai/prm800k.\nWe leave it for future work to explore how many distinct training problems are\nactually necessary, and how quickly our methods overfit to the training set.\n\nFigure 5: Two histograms comparing the distribution of problem difficulty levels\nand subjects in both the original MATH test set and in our 500 problem test\nsubset.\n\n18\n\n\fD\n\nLabelling Instructions\n\nLabelers were tasked to look at steps in a solution and label each one as positive, negative, or neutral. A step is considered neutral if it is appropriate in\ncontext, reasonable, correct, and contains only computations that can be verified easily. A step is positive if it is neutral and also progresses towards the\nsolution. All other steps are considered negative. Labelers were not given reference solutions, but they were given the ground truth final answers. We chose\nnot to provide reference solutions to avoid biasing them towards one particular\npath to the solution. We chose to provide ground truth final answers since this\ninformation can sometimes help labelers resolve their own misunderstandings.\nIn phase 1, labelers were permitted to enter their own steps in the case that\nall candidate steps were negative. Then the solution would progress from a\nrandomly selected positive step (or neutral if their were no positive ones).\nThis often resulted in trajectories that got stuck in endless sequences of neutral\nsteps that said reasonable things but made frustratingly slow progress towards a\nsolution or negative steps that needed constant human supervision. In phase 2,\nwe pre-generate whole solutions and end the task as soon as the first negative\nstep is encountered. The full instructions given to labelers can be found at\nhttps://github.com/openai/prm800k/tree/main/prm800k/instructions.\n\nE\n\nORM Training Details\n\nWe train outcome-supervised reward models in the same manner as token-level\nverifiers from Cobbe et al. (2021), with a few subtle differences to hyperparameters. In particular, we only train for a single epoch on each dataset of model\nsamples and reward model labels, without dropout, and without jointly learning a language modeling objective. We find that performance is not sensitive to\nmost other hyperparameters, within a reasonable range.\nTo collect model samples, we simply sample uniformly from the generator at\na temperature of 1.0 without applying any rebalancing of positives or negatives.\nAt training time, the reward model makes predictions for every token in the\ncontext. The target for each token in a solution is the same, based on whether\nthe solution is labelled correct or incorrect. At test time, we simply use the\nscore of the final token in the completion as the overall score of the solution.\nWe note that this setup is identical to the way token-level verifiers were trained\nin Cobbe et al. (2021).\n\n19\n\n\fF\n\nPRM Details\n\nF.1\n\nTraining\n\nWe train our PRMs by fine-tuning the MathMix model to predict the probability\nof positive, negative, and neutral labels given a solution prefix ending in one of\nour labeled steps. We sweep over hyperparameters using a dataset containing\nthe first ∼ 10% of PRM800K. Fine-tuning an LLM from its ordinary language\nmodeling task to a classification task like this is a large distribution shift, and\nwe found low learning rates were important to stable PRM training.\nAll of our PRMs are trained for 2 epochs. On smaller datasets (such as\nin phase 1 and the first few generations of phase 2) this improves the final\nperformance over training for just 1 epoch. Additional epochs, up to some point,\ndon’t noticeably help or hurt performance. On larger datasets, the benefits of\n2 epoch training diminishes, but we continue doing it for consistency.\n\nF.2\n\nScoring\n\nThere are multiple ways of using the PRM to score solutions. In general, we\nproduce a single solution-level score by performing a reduction over step-level\nscores, where the step-level score is the probability that the step’s label is positive. This involves two specific implementation decisions. First, when determining a step-level score, we either consider a neutral label to be positive or\nnegative. Second, when determining a solution-level score, we either use the\nminimum or the product over step-level scores as a reduction.\nWe show results from all four scoring strategies in Table 4. The best performing strategy is to take the product of step-level scores and to consider the\nneutrals as positives, but the difference in performance between all strategies\nis minor. Throughout the rest of this work, we consider neutral steps to be\npositive, and we define the solution score to be the product of step-level scores.\nUsing the product instead of the minimum as the reduction does create a slight\nbias against solutions with a larger number of steps.\n\nneutral = positive\nneutral = negative\n\nproduct\n78.2%\n77.4%\n\nminimum\n77.6%\n77.8%\n\nTable 4: Best-of-1860 test performance using the PRM with four different scoring strategies.\n\n20\n\n\fG\n\nDifficulty Breakdown\n\nWe show performance of our ORM and PRM on each quintile of the MATH\ndataset. We determine quintiles based on the pass rate under the generator.\nIt is interesting to note that the performance gap is not only apparent on high\ndifficulty problems: it is in fact apparent across all difficulties. For the lowest\ndifficulty problems, we see that it is possible to find adversarial examples that\nfool the ORM, since the ORM’s performance slightly decreases as the number of\nsamples increases. In contrast, the PRM remains highly robust over this same\nset of samples.\nWe also see that increasing the number of samples has the largest positive\neffect on the highest difficulty problems. This is to be expected, since a large\nnumber of generator samples may be required to find a true and convincing\nsolution to a hard problem.\n1.0\n\nQuintile 1 (easiest)\n\nQuintile 2\n\nQuintile 3\n\nQuintile 4\n\nQuintile 5 (hardest)\n\n% Problems Solved (Best-of-N)\n\n0.8\n0.6\n0.4\n0.2\n0.0\n\nPRM\nORM\n101\n\n103\n\n101\n\n101\n103\n103\nN = number of solutions per problem\n\n101\n\n103\n\n101\n\n103\n\nFigure 6: A breakdown of ORM vs PRM performance by problem difficulty.\n\n21\n\n\fH\n\nSynthetic Supervision Details\n\nWe can use PRMlarge to provide either outcome or process supervision for\nsmaller models. We determine the labels for individual steps based on the\nstep-level probabilities outputted by PRMlarge . To do this, we set an arbitrary\nthreshold: any step that PRMlarge assigns a negative label with greater than\n20% probability is considered incorrect. We choose this threshold based on the\nobservation that PRMlarge is slightly miscalibrated in the direction of favoring\npositive labels.\nTo provide process supervision for a solution, we directly return the steplevel labels (positive or negative) provided by PRMlarge , up until the first step\nthat is marked as negative. This mimics our true human data collection process.\nTo provide outcome supervision, we mark the solution as correct if and only if\nPRMlarge considers every step to be correct (using the same thresholding logic).\n\n22\n\n\fI\n\nPRM Visualizations\n\nAll examples shown come from the large-scale generator (GPT-4). We note\nthe pass-rate under the generator to give some sense of the difficulty of these\nproblems.\n\nI.1\n\nTrue Positives\n\nThese cherry-picked examples show the best-of-1860 solution from the generator\nas ranked by the large-scale PRM.\nProblem 1. Generator pass-rate: 0.1%. This challenging trigonometry problem\nrequires applying several identities in a not-at-all obvious succession. Most\nsolution attempts fail, because it is hard to choose which identities are actually\nhelpful. Though successful solutions to this problem are rare, the reward model\ncorrectly recognizes when a valid chain-of-thought has been found.\n\n23\n\n\fProblem 2. Generator pass-rate: 5.8%. In step 7 and 8, the generator starts\nperforming guess-and-check. This is a common place the model might hallucinate, by claiming a particular guess is successful when it isn’t. In this case,\nthe reward model verifies each step and determines that the chain-of-thought is\ncorrect.\n\nProblem 3. Generator pass-rate: 1.7%. The generator successfully applies several trigonometric identities to simplify the expression.\n\n24\n\n\fProblem 4. Generator pass-rate: 4.5%. Here, the generator successfully performs a complex series of polynomial factorizations. The use of the SophieGermain identity in step 5 is an important step that could be considered insightful.\n\nI.2\n\nTrue Negatives\n\nProblem 5. Generator pass-rate: 4.5%. The generator attempts to use the\ndifference of squares formula in step 12 on an expression that isn’t in fact a\ndifference of squares. The reward model catches this mistake.\n\n25\n\n\fProblem 6. Generator pass-rate: 93.5%. In step 7, the generator makes an\nincorrect attempt to simplify an expression. The reward model catches this\nmistake.\n\nProblem 7. Generator pass-rate: 48.0%. In step 11, the generator makes a\nsimple calculation error. The reward model catches this mistake.\n\n26\n\n\fProblem 8. Generator pass-rate: 5.8%. The justification in step 8 is strange,\nbut the reward model lets it slide. In step 9, though, the model incorrectly\nfactors the expression. The reward model catches this mistake.\n\nI.3\n\nFalse Positives\n\nProblem 9. Generator pass-rate: 18.5%. The generator makes a subtle counting\nerror in step 9. On the surface, it appears reasonable to claim that there are 5\nways to exchange the same colored ball since there are 5 colors. However, this\nundercounts by a factor of 2, since Bob has 2 choices for which ball to return\nto Alice. The reward model is fooled by this mistake.\n\n27\n\n\fProblem 10. Generator pass-rate: 17.6%. In step 13, the generator attempts\nto simplify the equation by combining like terms. It correctly moves and combines the linear terms to the left-hand side, but then mistakenly leaves the\nright-hand side untouched. The reward model is fooled by this mistake.\n\nProblem 11. Generator pass-rate: 13.4%. The generator attempts to perform long division, but in step 16, it forgets to include the leading zeros in the\nrepeating part of the decimal. The reward model is fooled by this mistake.\n\n28\n\n\fProblem 12. Generator pass-rate: 9.1%. In step 4, the generator falsely\nclaims that the sequence repeats itself every 12 terms, when it’s in fact every\n10 terms. This sort of counting mistake occasionally fools the reward model.\n\n29\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"