"<!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>Evolutionary Guided Decoding: Iterative Value Refinement for LLMs\nZhenhua Liu1,2 * Lijun Li1 * † Ruizhe Chen3 * Yuxian Jiang4\nTong Zhu2 Zhaochen Su2 Wenliang Chen2† Jing Shao1†\n1\nShanghai Artificial Intelligence Laboratory 2 Soochow University\n3\nZhejiang University 4 Fudan University\nzhliu0106@stu.suda.edu.cn, wlchen@suda.edu.cn, shaojing@pjlab.org.cn\n\nAbstract\n\n(a) The Distributional Gap in Conventional Methods\n\nWhile guided decoding, especially valueguided methods, has emerged as a costeffective alternative for controlling language\nmodel outputs without re-training models, its\neffectiveness is limited by the accuracy of the\nvalue function. We identify that this inaccuracy\nstems from a core distributional gap: existing\nmethods train static value functions on trajectories sampled exclusively from the base policy,\nwhich inherently confines their training to a\nnarrow and suboptimal view of the potential\noutput space. We propose Iterative Value Refinement, a evolutionary framework designed\nto narrow this gap. It employs Value Exploration to provide a more comprehensive and\nrobust training signal, complemented by Iterative Self-Refinement, which uses the improved\nvalue function from one iteration to guide the\ngeneration of higher-quality data for the next.\nExtensive experiments on text summarization,\nmulti-turn dialogue, and instruction following\ndemonstrate the effectiveness of our framework\nin aligning language models. Our approach not\nonly achieves alignment but also significantly\nreduces computational costs by leveraging principled value function optimization for efficient\nand effective control.\n\n1\n\nDistributional\nGap\n\nBase Policy\n\nValue\nExploration\n\nBase Policy\n\nCorresponding author\n\nIterative\nSelf-Refinement\n\nGuided Policy\n\nOptimal Policy\n\nReward\n\nFigure 1: (a) Conventional methods suffer from a distributional gap, limiting the guided policy from reaching\noptimal rewards. (b) Our Iterative Value Refinement\nframework narrows this gap through Value Exploration\nand Iterative Self-Refinement.\n\nReinforcement Learning from Human Feedback\n(RLHF) (Christiano et al., 2017; Bai et al., 2022;\nOuyang et al., 2022) has emerged as a widely\nadopted approach to align advanced language models with human values and task requirements (Wei\net al., 2022; Achiam et al., 2023; Chao et al., 2024;\nSu et al., 2024a). However, traditional RLHF\nmethods like Proximal Policy Optimization (PPO)\n(Christiano et al., 2017; Ouyang et al., 2022) suffer\nfrom high computational costs and training instability (Zheng et al., 2023b; Rafailov et al., 2024),\n†\n\nReward\n\n(b) Our Iterative Value Refinement (IVR) Framework\n\nIntroduction\n\n* Equal contribution\n\nOptimal Policy\n\nGuided Policy\n\nlimiting their practicality for applications requiring flexible behavior control. Among various alternatives, guided decoding methods have gained\nincreasing attention as they can steer model’s generation without expensive model re-training (Snell\net al., 2022; Mudgal et al., 2023; Han et al., 2024;\nChakraborty et al., 2024).\nWithin this framework, value-guided approaches,\nwhich train a value function Vθ to evaluate partial outputs and steer the language model towards\nhigh-reward trajectories, have emerged as particularly promising (Yang and Klein, 2021; Qin et al.,\n2022; Mudgal et al., 2023; Han et al., 2024). Under\nthe KL-regularized Reinforcement Learning framework, given an optimal value function V ∗ , they can\nderive a policy that maximizes expected rewards\nwhile maintaining a bounded KL-divergence from\nthe base policy πbase .\nAs visualized in Figure 1(a), while guided decoding with an estimated value function can shift\nthe base policy’s output distribution towards higherreward regions, this improvement remains suboptimal compared to the theoretical maximum achiev-\n\n3266\nProceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3266–3283\nJuly 2-7, 2026 ©2026 Association for Computational Linguistics\n\n\fable through the optimal value function V ∗ . We\nargue this suboptimality is rooted in the distributional gap between the learned value function and\nthe optimal value function. Specifically, existing\nmethods (Khanov et al., 2024; Mudgal et al., 2023)\ntrain a static value function on trajectories sampled exclusively from the base policy πbase , which\ninherently confines its training to a narrow and suboptimal view of the potential output space. The limitation leads to substantial suboptimality in value\nfunction estimation, ultimately hindering decoding\neffectiveness.\nTo mitigate this distributional gap, we introduce\nIterative Value Refinement (IVR), as shown in Figure 1(b), a unified, self-bootstrapping framework\nthat systematically improves the value function’s\naccuracy and robustness. It employs Value Exploration, which generates multiple trajectories per\nprompt to provide a more comprehensive and robust training signal for each update. This is complemented by Iterative Self-Refinement, where the\nlearned value function from one iteration guides\nthe generation of higher-quality data, progressively\nnarrowing the distributional gap. Through this evolutionary refinement, IVR allows the value function\nto iteratively improve, enabling it to more accurately identify high-reward trajectories far beyond\nthe scope of the initial base policy. Unlike traditional online RLHF methods that require repeatedly\ncollecting preference data and retraining the policy model, IVR achieves policy improvement by\noptimizing only the value function, substantially\nreducing computational costs while maintaining\nthe benefits of iterative refinement.\nOur main contributions are summarized as following:\n• We introduce IVR, a novel framework that narrows the distributional gap in value function training by unifying Value Exploration and Iterative\nSelf-Refinement, enabling the value function to\nbe iteratively improved for greater accuracy and\nrobustness.\n• We demonstrate the generalizability and effectiveness of IVR by conducting extensive experiments across a variety of challenging tasks, including text summarization, multi-turn dialogue,\nand instruction following, showing consistent\nimprovement in performance over existing approaches. Our method outperforms baseline\nmethods in terms of reward scores across all evaluated tasks, which is further corroborated by a\n\n77.52% GPT-4 win rate on the Multi-turn Dialogue task against the base policy.\n• We conduct extensive empirical analysis on the\nimpact of sampling trajectories and training iterations, providing practical insights for implementing value-guided decoding methods.\n\n2\n\nPreliminaries\n\n2.1 The Token-level Markov Decision Process\nfor RLHF\nWe define the text generation mechanism of large\nlanguage models (LLMs) as a token-level Markov\nDecision Process (MDP). Define the tuple M =\n(S, A, f, R, ρ), where S denotes the state space\nencompassing all previously generated tokens (i.e.,\nst = {x0 , . . . , xm , y0 , . . . , yt }). Here, x0 , . . . , xm\nare tokens from the initial prompt x, and y0 , . . . , yt\nare tokens generated by the model up to time t.\nThe action space A represents the vocabulary of\ntokens. The function f , representing deterministic\ntransitions between states, is defined as f (s, a) =\ns ⊕ a, where ⊕ indicates concatenation and a ∈ A.\nThe initial state distribution ρ is defined over the\nprompts x, with each initial state s1 comprising the\ntokens from x. R : S × A → R represents the\ntoken-level reward.\nKL-regularized RL and Optimal Policy. The\nobjective of KL-regularized RLHF can be formulated as the following optimization problem:\nmax Ey∼π [R(x, y)]\nπ\n\ns.t.\n\nDKL (π||πbase ) &lt; ϵ,\n\n(1)\n\nwhere DKL (π||πbase ) denotes the KL divergence between the policy π and the base policy\nπbase .\nFollowing the prior line of works (Peters and\nSchaal, 2007; Peng et al., 2019), the closed form\nsolution to the KL-regularized RL problem can be\nrepresented as:\n∗\n\nπ ∗ (yt+1 |x, y≤t ) ∝ πbase (yt+1 |x, y≤t )eβQ (yt+1 |x,y≤t ) ,\n(2)\n\nwhere β is a control parameter characterizing the\ntrade-off between the reward and the KL divergence. Given the deterministic transition model f ,\nthe expected future reward after action yt+1 , or Qvalue Q∗ (yt+1 |x, y≤t ), equates to the value of the\nsubsequent state. The Q-value of taking a specific\naction yt+1 at the current state can be then transformed into the state value of their concatenation:\nQ∗ (yt+1 |x, y≤t ) = V∗ (x, y≤t ⊕ yt+1 ) = V∗ (x, y≤t+1 ).\n(3)\n\n3267\n\n\fThus, the optimal policy in Equation 2 is rewritten\nas\n∗\n\nπ ∗ (yt+1 |x, y≤t ) ∝ πbase (yt+1 |x, y≤t )eβV (x,y≤t+1 ) . (4)\n\n2.2\n\nLLM Alignment via Value-Guided Search\n\nThe problem of LLM alignment can be formally defined as solving for the optimal decoding policy π ∗\nunder the token level MDP M in Equation 4. Here,\nwe present two search strategies for decoding.\nValue Guided Top-k Sampling. A prevalent\nstrategy to address the computational expense of\ncalculating values for all possible subsequent tokens is to compute values only for the top-k tokens\nas determined by the base policy at each step:\nπ(yt+1 |x, y≤t ) ∝\n(\n∗\nπbase (yt+1 |x, y≤t )eβV (x,y≤t+1 )\n∗\nπbase (yt+1 |x, y≤t )eβV (x,y≤t )\n\nyt+1 ∈ top-k (5)\nyt+1 ∈\n/ top-k\n\nIn our pilot experiments, we found that the valueguided sampling can be further simplified by perturbing the distribution at the block-level instead\nof the token-level. This modification strikes a better balance between performance and efficiency,\npreserving effectiveness while enhancing inference speed. For more details, please refer to Appendix A.\nValue Guided Blockwise Beam Search. Without considering the KL constraint, we propose\nvalue guided blockwise beam search to leverage\nthe value function for decoding-time alignment. At\neach step, for each of the B candidate sequences,\nwe sample B continuation blocks yt:t+b and rank\nall B 2 sequences according to Vθ (x, y≤t ⊕ yt:t+b ).\nThe top B sequences are retained as candidates for\nthe next iteration until generation is complete, after\nwhich the sequence with the highest value score is\nselected as the output.\n\n3\n\nMethodology\n\nChallenges of Training Optimal Value Function. A significant challenge in implementing\nvalue-guided sampling is the necessity of accessing\nthe optimal value function V∗ (st ) for each state st .\nThis function denotes the maximum expected reward that can be achieved from state st = (x, y≤t )\nwhen following the optimal policy π ∗ , until a complete answer y is generated. The function is defined\nas:\nV∗ (x, y≤t ) = Ey∼π∗ (·|x,y≤t ) R(x, y).\n\n(6)\n\nIn practice, V∗ (x, y≤t ) remains inaccessible, as it\nrelies on the trajectory produced by the unattainable\noptimal policy π ∗ . Existing methods (Khanov et al.,\n2024; Mudgal et al., 2023) employ the base policy\nπbase as an approximation for π ∗ to estimate the\noptimal value function. However, these approaches\noften yield significant suboptimality due to the distributional gap between πbase and π ∗ . Specifically,\ntraining the value function exclusively on trajectories sampled from the base policy πbase confines\nits learning to a narrow and suboptimal view of\nthe potential output space. This fundamental limitation leads to substantial suboptimality in value\nfunction estimation, as the learned function fails to\naccurately evaluate states that lie outside the base\npolicy’s typical trajectory distribution, ultimately\nhindering the effectiveness of guided decoding.\nOverview. In this paper, we introduce Iterative\nValue Refinement to mitigate the distributional gap\nbetween the estimated value function and the optimal value function for guided decoding (refer to\nAlgorithm 1 for the complete process). Our approach comprises two key components that work\nsynergistically within a unified framework. First,\nwe introduce Value Exploration, which expands the\nsearch space through multi-trajectory sampling to\nprovide a more comprehensive and robust training\nsignal for value function estimation. Second, we\npropose Iterative Self-Refinement, which leverages\nthe improved value function from last iteration to\nguide the generation of higher-quality trajectories\nfor the next iteration. This iterative process progressively narrows the distributional gap by enabling\nthe value function to explore and learn from increasingly high-reward regions of the output space,\nthereby enhancing response quality during decoding.\n3.1\n\nIterative Value Refinement\n\nOur iterative value refinement framework unifies\nValue Exploration and Iterative Self-Refinement\ninto a cohesive approach that systematically improves value function accuracy through progressive\nrefinement. The two components work in tandem:\nValue Exploration provides comprehensive training signals at each iteration, while Iterative SelfRefinement ensures that each subsequent iteration\noperates on higher-quality data than the previous\none.\nValue Exploration. We introduce Value Exploration, which utilizes stochastic sampling to im-\n\n3268\n\n\fprove the accuracy of value function estimation\nby exploring a wider range of possible trajectories.\nSpecifically, for a given prompt x, we generate multiple outputs by performing stochastic sampling\nwith the current policy. These outputs are then\nevaluated using the reward model R, which reflects\nalignment with human preferences.\nBy sampling several trajectories and collecting\ntheir corresponding rewards, we can effectively\ntrain our value function with a more comprehensive\nand robust training signal. For each state st =\n(x, y≤t ) in the trajectory y, the estimated value for\nthe current state is defined as:\n∗\n\nṼ (x, y≤t ) = R(x, y).\n\nℓ∗ (x, y; θ) = Ex∼µ \n\n\n\n1 X\n2\n(Vθ (x, y≤t ) − V∗ (x, y≤t ))  ,\n2\nt∈[|y|]\n\n(8)\n\nwhere µ is a distribution over training prompts.\nIterative Self-Refinement. While Value Exploration enhances the exploration of potential trajectories through multi-trajectory sampling, the coverage of these trajectories is still inherently constrained by the current policy. To more effectively\naddress the distributional gap from the optimal policy π ∗ , we propose Iterative Self-Refinement for\nprogressively improving the value function. This\nstrategy is founded on the principle that the optimized policy for the RL objective can be formulated as a value guided policy:\nπVθ (y≤t+1 |x, y≤t ) ∝ πref (y≤t+1 |x, y≤t )eβVθ (x,y≤t+1 ) .\n(9)\n\nWe then collect higher-quality trajectories by\nsampling from the policy πVθ , which is guided by\nthe current value function Vθ . This sampling process can be represented as follows:\nŷ ∼ πVθ (·|x),\n\n– Step 3: Policy Optimization –\nDefine value-guided policy:\nπVθ (yt+1 |x, y≤t ) ∝ πbase (yt+1 |x, y≤t )eβVθ (x,yt+1 )\nUpdate policy: πbase ← πVθ\nuntil convergence\n\nThe value function Vθ is then optimized by minimizing the following loss function:\n\n(11)\n\n\n\n\n\u00112\nX \u0010\n1\n∗\nL (θ) = Ex∼µ \nVθ (x, ŷ≤t ) − Ṽ (x, ŷ≤t )  .\n2\n∗\n\nt∈[|ŷ|]\n\n(12)\n\nThis process can be repeated iteratively, with each\niteration using the improved value function to guide\nthe generation of higher-quality data for further\ntraining. The synergy between Value Exploration\nand Iterative Self-Refinement enables our framework to progressively narrow the distributional gap\nand achieve more accurate value function estimation.\n3.2 Why IVR Narrows the Distributional Gap\nWe provide an informal discussion of why IVR\nnarrows the distributional gap, framed through the\nnotion of coverage between the data-collecting distribution and the visitation measure of the optimal\npolicy.\nWe use the standard visitation measure of policy\nπ:\n\n(10)\n\nwhere ŷ denotes the complete trajectory sampled\nfrom the optimized policy πVθ , as defined in Equation 9.\nWith these higher-quality trajectories, we apply\nValue Exploration as outlined above. For each state\nst = (x, ŷ≤t ) in the sampled trajectory, we estimate its value as:\nṼ∗ (x, ŷ≤t ) = R(x, ŷ).\n\nInput: reward model R, base model πref , training dataset µ\nOutput: Value-guided policy πVθ , value function Vθ\nInitialize value function Vθ with pre-trained language model\nrepeat\n– Step 1: Collect Multiple Trajectories –\nfor x in µ do\nSample K trajectories {yk }K\nk=1 ∼ πbase (·|x)\nCompute rewards {rk = R(x, yk )}K\nk=1\nend for\n– Step 2: Train the Value Function –\nFor each trajectory state st = (x, yt ), set Ṽ∗ (st ) =\nR(x, y)\nOptimize Vθ using L∗ (θ), where:\nP\nL∗ (θ) = Ex∼µ [ 12 t∈[|y|](Vθ (x,y≤t )− Ṽ∗ (x,y≤t ))2 ]\n\n(7)\n\nWe then optimize Vθ (x, y≤t ), parameterized by θ,\nto match Ṽ∗ (x, y≤t ) using the following L2 objective function:\n\n\nAlgorithm 1 Iterative Value Refinement\n\ndπ (s, a) = Es1 ∼ρ\n\n\"H\nX\n\nh=1\n\n#\n\nP(sh = s, ah = a | s1 ) ,\n\n(13)\n\nwhich captures how often the state-action pair (s, a)\nis visited when following π from initial states s1 ∼\nρ.\nA recurring insight from offline and iterative\nRLHF is that the optimality gap between any approximate policy π̂ and the optimal policy π ∗ is\ngoverned by how well the data-collecting distribution covers the visitation measure d∗ of π ∗ (Xiong\n\n3269\n\n\fet al., 2024; Ye et al., 2024). When training data is\nsampled from a distribution far from d∗ , the value\nfunction cannot accurately evaluate states encountered under π ∗ , leading to a large optimality gap.\nIVR narrows this gap through two complementary mechanisms. Value Exploration broadens the\nsupport of the data-collecting distribution by sampling multiple trajectories per prompt rather than\nrelying on a single rollout, providing wider coverage at each iteration. Iterative Self-Refinement\nprogressively replaces the data-collecting policy\nπbase with the value-guided policy πVθ , whose visitation measure is biased toward higher-reward regions and therefore closer to d∗ . Together, these\ntwo mechanisms iteratively shrink the coverage\ngap between dπ̂ and d∗ , which in turn reduces the\noptimality gap of the learned value function.\n3.3 Connection to Online RLHF\nExisting research indicates that online iterative\nRLHF can significantly enhance model performance (Xiong et al., 2024; Dong et al., 2024; Ye\net al., 2024). In contrast to traditional online RLHF,\nwhich involves continuously collecting new preference data from the latest policy and retraining\nthe policy model, our method eliminates the need\nfor retraining. Instead, IVR focuses solely on optimizing the value function and employing guided\ndecoding to iteratively improve the policy, thereby\nconserving computational resources.\n\n4\n\nExperiments\n\nExperimental Setup. For the summarization and\nmulti-turn dialogue tasks, we first establish a base\npolicy by supervised fine-tuning a pre-trained language model on the respective datasets to acquire\nbasic task-specific capabilities and desired behaviors. For the instruction following task, we directly\nutilize publicly available instruction-tuned models.\nIn all experiments, we parameterize the value function as a pre-trained language model backbone with\na linear layer on top. The data for training the value\nfunction is collected from the base policy with a\nsampling temperature of 0.7, and we label it with\nthe corresponding reward model.\nFor IVR, we employ Value Exploration by sampling 4 different trajectories for each prompt to\nobtain robust value estimates. The training process\ninvolves two iterations of value function optimization to achieve better policy alignment. Starting\nfrom the second iteration, we collect training data\n\nusing value-guided sampling with β = 2. More\ndetails can be found in Appendix B.\nEvaluation Metrics. We adopt different evaluation metrics for our two decoding-time alignment\nstrategies. For value-guided sampling, following\n(Gao et al., 2023; Han et al., 2024), we analyze\nthe trade-off between reward and token-level KL\ndivergence from the base policy. Specifically, we\nsweep the β in Equation 5 to control the KL divergence between the guided policy and base policy.\nFor value guided blockwise beam search, we compare the reward of each algorithm. Additionally,\nas a supplementary evaluation to mitigate potential\nreward hacking issues (Amodei et al., 2016), we\ncompute the win-rate between the guided policy\nand base policy using GPT-4-as-the-judge (Zheng\net al., 2023a). We note that this serves as a complementary sanity check, while our primary conclusions are drawn from the objective reward and\nKL divergence metrics. The prompting template\nrefers to Appendix C. To ensure the robustness of\nour evaluation, all experiments are conducted with\n5 different random seeds.\n4.1\n\nExperiment 1: Summarization\n\nExperiment Details. We conduct experiments on\nthe TL;DR dataset (Stiennon et al., 2020), which\nconsists of Reddit posts paired with two candidate\nsummaries and human preferences between them.\nFor efficiency, we randomly sampled 300 examples\nfrom the test set for evaluation. For the base policy,\nwe fine-tune a Llama-3.2-3B (Dubey et al., 2024)\nmodel on the preferred summaries using supervised\nlearning. To evaluate summary quality, we train a\nreward model using a Llama-3.2-1B (Dubey et al.,\n2024) backbone on the pairwise preference data\nthrough Bradley-Terry (BT) modeling. The value\nfunction is implemented as a Llama-3.2-1B model\nwith an additional linear layer on top. More implementation details can be found in Appendix B.\nBaselines. We compare our method against several recent decoding-time alignment approaches.\nARGS (Khanov et al., 2024) directly leverages\nreward models as value functions for guided decoding without additional training, offering a\nlightweight solution. Using trajectories sampled\nfrom the base policy πbase , FUDGE (Yang and\nKlein, 2021; Mudgal et al., 2023) trains a prefix scorer to predict future attributes, while VAS\n(Han et al., 2024) employs TD(λ) learning to train\n\n3270\n\n\fa value function, providing a more sophisticated\nvalue estimation approach.\nResults. As shown in Figure 2a, we analyze the\ntrade-off between reward and KL divergence for\ndifferent methods on the summarization task. IVR\nconsistently outperforms all baselines across different KL divergence levels, achieving higher rewards\nwhile maintaining stable performance. Specifically,\nat KL divergence of 0.8, IVR reaches a reward of\napproximately 3.5, while other methods remain below 3.2. In contrast, baseline methods (FUDGE,\nVAS, and ARGS) show performance degradation\nwhen KL divergence exceeds 0.4, suggesting their\nlimited capability in balancing policy preservation\nand performance optimization.\nAs shown in Figure 3a, all methods demonstrate improvements over the base policy (3.2)\nin value-guided blockwise beam search, with our\nIVR method achieving the highest performance\n(4.3). Specifically, ARGS yields a modest improvement to 3.55, while FUDGE and VAS demonstrate\nstronger performance at 4.05 and 4.15 respectively.\nThe ablation of our method without Iterative SelfRefinement (IVR w/o Iter) achieves 4.25, highlighting the effectiveness of our Value Exploration\napproach. The full IVR method further improves\nthe performance to 4.3, demonstrating the benefits\nof Iterative Self-Refinement.\n4.2 Experiment 2: Multi-turn Dialogue\nExperiment Details. We use the Anthropic HH\n(Bai et al., 2022) dataset, a multi-turn dialogue\ndataset focused on helpfulness and harmlessness,\nsampling 300 examples for evaluation. We train\nthe base policy by fine-tuning Llama-3-8B (Dubey\net al., 2024) on preferred responses. A Llama-3.21B model is trained as the reward model using BT\non pairwise preference data. Llama-3.2-1B serves\nas the value function backbone. More details are in\nAppendix B.\nBaselines. In addition to the aforementioned\ninference-based baselines (ARGS, FUDGE, and\nVAS), we also include several training-based baselines: Direct Preference Optimization (DPO)\n(Rafailov et al., 2024) and Identity Preference Optimization (IPO) (Azar et al., 2024). DPO directly\nfine-tunes the model for preference learning, eliminating the need for a reward model and RL stage\nfor updates. IPO added a regularization term to\nthe DPO objective to mitigate overfitted risk. We\nused the online version of DPO and IPO by rolling\n\nMethods\n\nWin-Rate (%)\n\nFLOPs (×1015 )\n\nFUDGE\nVAS\nDPO\nIPO\nIVR (Ours)\n\n64.85\n68.49\n72.45\n66.55\n77.52\n\n0.25\n0.25\n4.00\n4.00\n2.00\n\nTable 1: Comparison of different methods’ win-rate\nagainst the base policy and estimated FLOPs. The winrate values are obtained by GPT-4-as-the-judge on the\nMulti-turn Dialogue dataset. FLOPs are estimated on a\nsingle batch training.\n\nout the base policy and sampling two trajectories,\noptimizing objective on explicit rewards.\nResults. As demonstrated in Figure 2b, we evaluate different methods on the multi-turn dialogue\ntask. Our method achieves the best performance\nacross different KL divergence levels, reaching a reward of 1.75 at KL divergence of 0.3. DPO shows\ncompetitive performance initially but plateaus at\na reward of 1.65, while VAS and FUDGE demonstrate moderate performance with rewards of 1.5\nand 1.3 respectively. ARGS and IPO show limited effectiveness, with ARGS achieving minimal\nimprovement and IPO’s performance degrading\nsignificantly as KL divergence increases. Notably,\nIVR maintains stable performance even at higher\nKL divergence levels (0.4-0.6), while other methods either plateau or decline.\nFor value-guided blockwise beam search in Figure 3b, we observe a clear progression in performance across different methods. Starting from the\nbase policy, ARGS provides initial improvements\nthrough direct reward model utilization, achieving\na reward of 2.1. VAS and FUDGE demonstrate\nstronger performance at around 2.7, while the ablation of our method without iterative training (IVR\nw/o Iter) reaches 2.8. The full IVR method with iterative training achieves the best performance with\na reward of 3.1. The significant performance gap\nbetween IVR and IVR w/o Iter (0.3) further validates the effectiveness of our iterative training strategy.\nAdditionally, as a supplementary evaluation, Table 1 shows that our IVR method achieves the highest GPT-4 win-rate of 77.52%, corroborating the\nreward-based findings above. IVR also demonstrates a significant advantage in computational\nefficiency, with FLOPs estimated at 2.00 × 1015 ,\nwhich is half of that required by DPO and IPO\nunder our experimental settings.\n\n3271\n\n\fReward vs KL Divergence\n\nReward vs KL Divergence\n2.00\n\n3.6\n\n1.75\nAverage Reward\n\nAverage Reward\n\n3.4\n3.2\n3.0\nARGS\nFUDGE\nVAS\nIVR (Ours)\n\n2.8\n2.6\n0.0\n\n0.2\n\n0.4\n\n0.6\n\n0.8\n\n1.0\n\n1.2\n\n1.50\n1.25\nDPO\nIPO\nARGS\nFUDGE\nVAS\nIVR (Ours)\n\n1.00\n0.75\n0.50\n0.25\n0.0\n\n1.4\n\n(a) Summarization\n\n0.1\n\n0.2\n\n0.3\n\n0.4\n\n0.5\n\n0.6\n\n(b) Multi-turn Dialogue\n\nFigure 2: Reward vs. KL divergence for different methods on (a) summarization and (b) multi-turn dialogue.\nComparison of Different Value Functions\n\n3.75\n3.50\n3.25\n3.00\nBase ARGS FUDGE VAS\n\nIVR *\n\n(a) Summarization\n\nIVR\n\nLength-Controlled Win Rates\n\nAverage Reward\n\nAverage Reward\n\n4.25\n4.00\n\nComparison of Different Value Functions\n\nComparison of Different Value Functions\n3.0\n2.5\n2.0\n1.5\n1.0\n0.5\n0.0\n0.5\n\nBase ARGS FUDGE VAS\n\nIVR *\n\n(b) Multi-turn Dialogue\n\nIVR\n\n26\n24\n22\n20\n18\nBase\n\nFUDGE\n\nVAS\n\nIVR *\n\nIVR\n\n(c) Instruction Following\n\nFigure 3: Comparison of different value functions using value-guided blockwise beam search on summarization\n(left), multi-turn dialogue (middle) and instruction following (right). IVR∗ denotes IVR without Iterative SelfRefinement.\n\n4.3 Experiment 3: Instruction Following\nExperiment Details. We conduct experiments\nusing the UltraFeedback (Cui et al., 2023) dataset\nwith 10k sampled prompts for training. For evaluation, we use Alpaca-Eval 2 (Dubois et al., 2024),\nwhich assesses instruction-following via Lengthcontrolled Win Rate with GPT-4 (Achiam et al.,\n2023). The base policy is Llama-3.2-3B-Instruct\n(Dubey et al., 2024), with Skywork-Reward-Llama3.1-8B (Liu et al., 2024b) for reward modeling\nand Llama-3.2-1B-Instruct (Dubey et al., 2024) as\nthe value function. For efficiency, we compare\nagainst FUDGE and VAS as decoding-time baselines. More details are in Appendix B.\nResults. For the instruction following task, we\nevaluate our method using Length-controlled Win\nRate as the metric. As shown in Figure 3c, all\nmethods demonstrate improvements over the base\npolicy. Our IVR method achieves the best performance with a win rate of 26.0%, significantly outperforming both FUDGE and VAS. The consistent\nimprovements across different methods indicate\nthe effectiveness of value-guided decoding for in-\n\nstruction following. Notably, the performance gap\nbetween IVR and other methods suggests that our\niterative value optimization approach is particularly\nbeneficial for complex tasks like instruction following, where accurate value estimation is crucial for\ngenerating high-quality responses.\n\n5\n\nFurther Analysis\n\nThis section analyzes IVR’s key components, examining the impact of Value Exploration and training iterations on performance. We also evaluate\nthe transferability of value functions across model\nscales and IVR’s effectiveness in enhancing model\nsafety against adversarial jailbreak attacks, demonstrating its broader applications.\n5.1\n\nThe Number of Sampled Trajectories\n\nTo investigate the impact of Value Exploration, we\nanalyze how the number of sampled trajectories\naffects value function performance. We conduct\nexperiments on the multi-turn dialogue task using\nvalue-guided blockwise beam search, without Iterative Self-Refinement. The results are shown in\nFigure 4a. We observe that increasing the num-\n\n3272\n\n\fIVR w/o Iter\nVAS\n\n3.0\n\nAverage Reward\n\nAverage Reward\n\n3.2\n\n2.8\n2.6\n2.4\n\n1\n\n2\n\n3\n\n4\n\n(a) Number of ST\n\n5\n\n3.4\n3.3\n3.2\n3.1\n3.0\n2.9\n2.8\n2.7\n2.6\n\nIVR\nVAS\n\n1\n\n2\n\n3\n\n(b) Number of TI\n\nFigure 4: Ablation studies on (a) the number of sampled\ntrajectories and (b) the number of training iterations\nin multi-turn dialogue using blockwise beam search.\nST denotes sampled trajectories, TI denotes training\niterations.\n\nber of sampled trajectories leads to consistent improvements. A more significant improvement is\nobserved with 4 samples. Further increasing to 5\nsamples only brings a small additional improvement, suggesting that 4 trajectories provide a good\nbalance between computational cost and performance. These results demonstrate that Value Exploration with multiple trajectories helps capture\na more comprehensive view of possible outcomes,\nleading to more accurate value estimates and better\nguided generation.\n5.2 The Number of Training Iterations\nWe analyze how the number of training iterations\naffects model performance. We conduct experiments on the multi-turn dialogue task using valueguided blockwise beam search, with the number of\nsampled trajectories fixed at 4 based on our previous findings. The results are shown in Figure 4b.\nStarting from one iteration, our method already outperforms VAS with an average reward of 2.82. The\nsecond iteration brings a substantial improvement,\ndemonstrating the effectiveness of collecting training data from the guided policy. The third iteration\nyields a slight gain to 3.15, suggesting that two\niterations provide sufficient policy alignment.\n5.3 Value Function Transferability Across\nModel Sizes\nWe investigate the transferability of estimated value\nfunction across different model sizes on the instruction following task. Specifically, we examine whether a value function trained using data\ncollected from a Llama-3.2-3B-Instruct can effectively guide models of different sizes (Llama-3.21B-Instruct and Llama-3-8B-Instruct) during valueguided blockwise beam search.\n\nModel Size\n\nBase\n\nIVR\n\n∆\n\n1B\n3B\n8B\n\n-7.71\n1.56\n7.67\n\n3.78\n13.34\n20.42\n\n11.49\n11.78\n12.75\n\nTable 2: Performance comparison between the base policy and value-guided blockwise beam search across different model sizes (1B, 3B, and 8B) on the instructionfollowing task. The value function is trained using data\ncollected from the 3B base policy. The ∆ column represents the absolute performance improvement.\nModel\n\nSafety Rate (%)\n\nAligned-Llama-3\n+ Aligned Value Function\n+ Unaligned Value Function\n\n92.87\n96.14\n97.48\n\nUnaligned-Llama-3\n+ Aligned Value Function\n+ Unaligned Value Function\n\n65.27\n81.04\n86.17\n\nTable 3: Comparison of safety rates between aligned\nand unaligned Llama-3 models with different value functions.\n\nAs shown in Table 2, our value function demonstrates strong transferability across model scales.\nThese results suggest that the value function\nlearned through IVR captures generalizable knowledge about task-specific preferences that can be\napplied to guide models of varying sizes. This\ntransferability is particularly valuable as it enables\nthe reuse of estimated value functions across different model scales without requiring separate training\nfor each model size.\n5.4\n\nEnhancing Safety Against Jailbreak\nAttacks\n\nTo investigate whether IVR can enhance\ninstruction-tuned model safety against jailbreak attacks, we conduct experiments using\nLlama-3-8B-Instruct as an aligned version and\nLlama-3-8B-Lexi-Uncensored1 as an unaligned\nversion. We evaluate their safety rate against\njailbreak attacks using the attack-enhanced set\nsplit from the SALAD-Bench (Li et al., 2024),\nwhich contains 5,000 harmful questions generated\nthrough multiple jailbreak attack methods. We use\n4,800 prompts for training and 200 for testing. The\nsafety rate of model responses is evaluated using\nLlamaGuard-2 (Team, 2024). To comprehensively\nevaluation, we first obtain aligned and unaligned\n1\n\nhttps://huggingface.co/Orenguteng/Llama-3-8B-LexiUncensored\n\n3273\n\n\fvalue functions by applying IVR on the aligned\nand unaligned models respectively. We then\northogonally combine these value functions with\nboth models using value-guided blockwise beam\nsearch.\nAs shown in Table 3, IVR significantly improves\nsafety rates for both aligned and unaligned models\nthrough value-guided blockwise beam search. For\nthe aligned Llama-3, which already shows strong\nsafety performance (92.87%), IVR improves its\nsafety rate to 96.14% and 97.48% with aligned and\nunaligned value functions, respectively. The improvements are more substantial for the unaligned\nLlama-3, where the safety rate increases from\n65.27% to 81.04% with aligned value function and\n86.17% with unaligned value function. Notably,\nunaligned value function consistently outperforms\nthe aligned one. We hypothesize that the reason is\nthe unaligned value function is trained on responses\nfrom the unaligned model, which explores a more\ndiverse solution space due to its lack of alignment.\nThis diversity in training data might benefit value\nfunction learning. We leave further investigation of\nthis hypothesis to future work.\n\n6\n\nRelated Work\n\nReinforcement Learning for Language Models.\nLarge Language Models (LLMs) commonly leverage Reinforcement Learning from Human Feedback (RLHF) to enhance model performance and\nalign with human preferences, representing one\nof the most prominent applications of reinforcement learning in language models (Christiano et al.,\n2017; Bai et al., 2022; Su et al., 2024b; Song et al.,\n2025). However, these actor-critic RL methods\nrequire extensive training and can be computationally expensive (Zheng et al., 2023b; Rafailov et al.,\n2024), primarily due to the need for simultaneously\nlearning both the value function (critic) and policy\n(actor).\nGuided Decoding. Guided decoding represents\na family of techniques that steer language model\noutputs at inference time while keeping model\nparameters frozen, offering both efficiency and\nflexibility compared to traditional RLHF methods.\nHuang et al. (2024) views the decoding process as\na heuristic-guided search problem. Some works\nutilize contrastive decoding methods by combining\ndistributions from multiple sources, typically using either prompting strategies (Dekoninck et al.;\nZhong et al., 2024) or training small models (Liu\n\net al., 2021, 2024a). Among guided decoding\napproaches, value-guided methods have emerged\nas particularly promising due to their principled\nframework for steering text generation(Mudgal\net al., 2023; Kim et al., 2023; Han et al., 2024;\nLiu et al., 2024d,c; Khanov et al., 2024; Snell et al.,\n2022; Hong et al., 2024; Chakraborty et al., 2024;\nChen et al., 2024). In contrast, our approach explicitly targets the distributional gap that limits prior\nvalue-guided methods. While ARGS (Khanov\net al., 2024) bypasses value training and relies directly on a reward model, FUDGE (Yang and Klein,\n2021; Mudgal et al., 2023) and VAS (Han et al.,\n2024) train value functions on a fixed pool of basepolicy trajectories, leaving them blind to regions\nof output space that the optimal policy actually visits. IVR closes this gap through Value Exploration\nand Iterative Self-Refinement, while avoiding the\nfull policy retraining required by preference-based\nmethods such as DPO (Rafailov et al., 2024) and\nIPO (Azar et al., 2024).\n\n7\n\nConclusion\n\nThis paper introduces IVR, a novel framework\nfor guided decoding that addresses key limitations\nin value-guided approaches through Value Exploration and Iterative Self-Refinement. Our extensive\nexperiments across text summarization, multi-turn\ndialogue, and instruction following demonstrate\nthat IVR consistently outperforms existing methods. The success of our approach in achieving\neffective alignment without expensive model retraining opens up new possibilities for practical\napplications.\n\nLimitations\nComputational Overhead. Although IVR\navoids the full policy retraining of RLHF, it\nstill incurs additional inference-time cost from\nvalue function evaluations and additional training\ncost from iterative data collection. We mitigate\nthe inference overhead via blockwise sampling\n(Appendix A), but the total training cost grows\nroughly linearly with the number of iterations.\nBase Policy Dependence. Both value-guided\nsampling and blockwise beam search operate\nwithin the support of the base policy’s top-k distribution. This preserves coherence inherited from\nthe base model, but precludes IVR from discovering high-reward outputs that lie entirely outside the\nbase policy’s typical generations.\n\n3274\n\n\fAcknowledgments\nThis work is supported by Shanghai Artificial Intelligence Laboratory.\n\nReferences\nJosh Achiam, Steven Adler, Sandhini Agarwal, Lama\nAhmad, Ilge Akkaya, Florencia Leoni Aleman,\nDiogo Almeida, Janko Altenschmidt, Sam Altman,\nShyamal Anadkat, and 1 others. 2023. Gpt-4 technical report. arXiv preprint arXiv:2303.08774.\nDario Amodei, Chris Olah, Jacob Steinhardt, Paul\nChristiano, John Schulman, and Dan Mané. 2016.\nConcrete problems in ai safety. arXiv preprint\narXiv:1606.06565.\nMohammad Gheshlaghi Azar, Zhaohan Daniel Guo, Bilal Piot, Remi Munos, Mark Rowland, Michal Valko,\nand Daniele Calandriello. 2024. A general theoretical paradigm to understand learning from human\npreferences. In International Conference on Artificial Intelligence and Statistics, pages 4447–4455.\nPMLR.\nYuntao Bai, Andy Jones, Kamal Ndousse, Amanda\nAskell, Anna Chen, Nova DasSarma, Dawn Drain,\nStanislav Fort, Deep Ganguli, Tom Henighan, and 1\nothers. 2022. Training a helpful and harmless assistant with reinforcement learning from human feedback. arXiv preprint arXiv:2204.05862.\nSouradip Chakraborty, Soumya Suvra Ghosal, Ming\nYin, Dinesh Manocha, Mengdi Wang, Amrit Singh\nBedi, and Furong Huang. 2024. Transfer q star: Principled decoding for llm alignment. arXiv preprint\narXiv:2405.20495.\nYang Chao, Lu Chaochao, Wang Yingchun, and Zhou\nBowen. 2024. Towards ai-45◦ law: A roadmap to\ntrustworthy agi. arXiv preprint arXiv:2412.14186.\nRuizhe Chen, Xiaotian Zhang, Meng Luo, Wenhao Chai,\nand Zuozhu Liu. 2024. Pad: Personalized alignment\nat decoding-time. arXiv e-prints, pages arXiv–2410.\nPaul F Christiano, Jan Leike, Tom Brown, Miljan Martic, Shane Legg, and Dario Amodei. 2017. Deep\nreinforcement learning from human preferences. Advances in neural information processing systems, 30.\nGanqu Cui, Lifan Yuan, Ning Ding, Guanming Yao,\nWei Zhu, Yuan Ni, Guotong Xie, Zhiyuan Liu, and\nMaosong Sun. 2023. Ultrafeedback: Boosting language models with high-quality feedback.\nJasper Dekoninck, Marc Fischer, Luca Beurer-Kellner,\nand Martin Vechev. Controlled text generation via\nlanguage model arithmetic. In The Twelfth International Conference on Learning Representations.\nHanze Dong, Wei Xiong, Bo Pang, Haoxiang Wang,\nHan Zhao, Yingbo Zhou, Nan Jiang, Doyen Sahoo,\n\nCaiming Xiong, and Tong Zhang. 2024. Rlhf workflow: From reward modeling to online rlhf. arXiv\npreprint arXiv:2405.07863.\nAbhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey,\nAbhishek Kadian, Ahmad Al-Dahle, Aiesha Letman,\nAkhil Mathur, Alan Schelten, Amy Yang, Angela\nFan, and 1 others. 2024. The llama 3 herd of models.\narXiv preprint arXiv:2407.21783.\nYann Dubois, Balázs Galambosi, Percy Liang, and Tatsunori B Hashimoto. 2024. Length-controlled alpacaeval: A simple way to debias automatic evaluators. arXiv preprint arXiv:2404.04475.\nLeo Gao, John Schulman, and Jacob Hilton. 2023. Scaling laws for reward model overoptimization. In International Conference on Machine Learning, pages\n10835–10866. PMLR.\nSeungwook Han, Idan Shenfeld, Akash Srivastava,\nYoon Kim, and Pulkit Agrawal. 2024. Value augmented sampling for language model alignment and\npersonalization. arXiv preprint arXiv:2405.06639.\nJoey Hong, Anca Dragan, and Sergey Levine. 2024. Qsft: Q-learning for language models via supervised\nfine-tuning. arXiv preprint arXiv:2411.05193.\nJames Y Huang, Sailik Sengupta, Daniele Bonadiman,\nYi-an Lai, Arshit Gupta, Nikolaos Pappas, Saab Mansour, Katrin Kirchhoff, and Dan Roth. 2024. Deal:\nDecoding-time alignment for large language models.\narXiv preprint arXiv:2402.06147.\nMaxim Khanov, Jirayu Burapacheep, and Yixuan Li.\n2024. Args: Alignment as reward-guided search.\narXiv preprint arXiv:2402.01694.\nMinbeom Kim, Hwanhee Lee, Kang Min Yoo, Joonsuk\nPark, Hwaran Lee, and Kyomin Jung. 2023. Criticguided decoding for controlled text generation. In\nFindings of the Association for Computational Linguistics: ACL 2023, pages 4598–4612.\nLijun Li, Bowen Dong, Ruohui Wang, Xuhao Hu, Wangmeng Zuo, Dahua Lin, Yu Qiao, and Jing Shao. 2024.\nSALAD-bench: A hierarchical and comprehensive\nsafety benchmark for large language models. In Findings of the Association for Computational Linguistics:\nACL 2024, pages 3923–3954, Bangkok, Thailand. Association for Computational Linguistics.\nAlisa Liu, Xiaochuang Han, Yizhong Wang, Yulia\nTsvetkov, Yejin Choi, and Noah A Smith. 2024a.\nTuning language models by proxy. arXiv preprint\narXiv:2401.08565.\nAlisa Liu, Maarten Sap, Ximing Lu, Swabha\nSwayamdipta, Chandra Bhagavatula, Noah A Smith,\nand Yejin Choi. 2021. Dexperts: Decoding-time controlled text generation with experts and anti-experts.\narXiv preprint arXiv:2105.03023.\n\n3275\n\n\fChris Yuhao Liu, Liang Zeng, Jiacai Liu, Rui Yan, Jujie He, Chaojie Wang, Shuicheng Yan, Yang Liu,\nand Yahui Zhou. 2024b. Skywork-reward: Bag of\ntricks for reward modeling in llms. arXiv preprint\narXiv:2410.18451.\nJiacheng Liu, Andrew Cohen, Ramakanth Pasunuru,\nYejin Choi, Hannaneh Hajishirzi, and Asli Celikyilmaz. 2024c. Don’t throw away your value model!\ngenerating more preferable text with value-guided\nmonte-carlo tree search decoding. In First Conference on Language Modeling.\nZhixuan Liu, Zhanhui Zhou, Yuanfu Wang, Chao Yang,\nand Yu Qiao. 2024d. Inference-time language model\nalignment via integrated value guidance. In Findings of the Association for Computational Linguistics: EMNLP 2024, pages 4181–4195.\nSidharth Mudgal, Jong Lee, Harish Ganapathy,\nYaGuang Li, Tao Wang, Yanping Huang, Zhifeng\nChen, Heng-Tze Cheng, Michael Collins, Trevor\nStrohman, and 1 others. 2023. Controlled decoding from language models. arXiv preprint\narXiv:2310.17022.\nLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida,\nCarroll Wainwright, Pamela Mishkin, Chong Zhang,\nSandhini Agarwal, Katarina Slama, Alex Ray, and 1\nothers. 2022. Training language models to follow instructions with human feedback. Advances in neural\ninformation processing systems, 35:27730–27744.\nXue Bin Peng, Aviral Kumar, Grace Zhang, and Sergey\nLevine. 2019. Advantage-weighted regression: Simple and scalable off-policy reinforcement learning.\narXiv preprint arXiv:1910.00177.\nJan Peters and Stefan Schaal. 2007. Reinforcement\nlearning by reward-weighted regression for operational space control. In Proceedings of the 24th international conference on Machine learning, pages\n745–750.\nLianhui Qin, Sean Welleck, Daniel Khashabi, and Yejin\nChoi. 2022. Cold decoding: Energy-based constrained text generation with langevin dynamics. Advances in Neural Information Processing Systems,\n35:9538–9551.\nRafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D Manning, Stefano Ermon, and Chelsea Finn.\n2024. Direct preference optimization: Your language\nmodel is secretly a reward model. Advances in Neural Information Processing Systems, 36.\nCharlie Snell, Ilya Kostrikov, Yi Su, Mengjiao Yang,\nand Sergey Levine. 2022. Offline rl for natural language generation with implicit language q learning.\narXiv preprint arXiv:2206.11871.\nMingyang Song, Zhaochen Su, Xiaoye Qu, Jiawei Zhou,\nand Yu Cheng. 2025. Prmbench: A fine-grained\nand challenging benchmark for process-level reward\nmodels. arXiv preprint arXiv:2501.03124.\n\nNisan Stiennon, Long Ouyang, Jeffrey Wu, Daniel\nZiegler, Ryan Lowe, Chelsea Voss, Alec Radford,\nDario Amodei, and Paul F Christiano. 2020. Learning to summarize with human feedback. Advances\nin Neural Information Processing Systems, 33:3008–\n3021.\nZhaochen Su, Juntao Li, Jun Zhang, Tong Zhu, Xiaoye\nQu, Pan Zhou, Yan Bowen, Yu Cheng, and 1 others.\n2024a. Living in the moment: Can large language\nmodels grasp co-temporal reasoning? arXiv preprint\narXiv:2406.09072.\nZhaochen Su, Jun Zhang, Tong Zhu, Xiaoye Qu, Juntao\nLi, Min Zhang, and Yu Cheng. 2024b. Timo: Towards better temporal reasoning for language models.\narXiv preprint arXiv:2406.14192.\nLlama Team. 2024. Meta llama guard 2. https:\n//github.com/meta-llama/PurpleLlama/blob/\nmain/Llama-Guard2/MODEL_CARD.md.\nJason Wei, Yi Tay, Rishi Bommasani, Colin Raffel,\nBarret Zoph, Sebastian Borgeaud, Dani Yogatama,\nMaarten Bosma, Denny Zhou, Donald Metzler, and\n1 others. 2022. Emergent abilities of large language\nmodels. arXiv preprint arXiv:2206.07682.\nWei Xiong, Hanze Dong, Chenlu Ye, Ziqi Wang,\nHan Zhong, Heng Ji, Nan Jiang, and Tong Zhang.\n2024. Iterative preference learning from human feedback: Bridging theory and practice for rlhf under\nkl-constraint. In Forty-first International Conference\non Machine Learning.\nKevin Yang and Dan Klein. 2021. Fudge: Controlled\ntext generation with future discriminators. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational\nLinguistics: Human Language Technologies, pages\n3511–3535.\nChenlu Ye, Wei Xiong, Yuheng Zhang, Hanze Dong,\nNan Jiang, and Tong Zhang. 2024. Online iterative\nreinforcement learning from human feedback with\ngeneral preference model. In The Thirty-eighth Annual Conference on Neural Information Processing\nSystems.\nLianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan\nZhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin,\nZhuohan Li, Dacheng Li, Eric Xing, and 1 others.\n2023a. Judging llm-as-a-judge with mt-bench and\nchatbot arena. Advances in Neural Information Processing Systems, 36:46595–46623.\nRui Zheng, Shihan Dou, Songyang Gao, Yuan Hua, Wei\nShen, Binghai Wang, Yan Liu, Senjie Jin, Qin Liu,\nYuhao Zhou, and 1 others. 2023b. Secrets of rlhf in\nlarge language models part i: Ppo. arXiv preprint\narXiv:2307.04964.\nQihuang Zhong, Liang Ding, Juhua Liu, Bo Du, and\nDacheng Tao. 2024. Rose doesn’t do that: Boosting\nthe safety of instruction-tuned large language models with reverse prompt contrastive decoding. arXiv\npreprint arXiv:2402.11889.\n\n3276\n\n\fA\n\nValue Guided Blockwise Sampling For\nIVR\n\nA significant limitation of the original value-guided\nsampling approach in IVR lies in its computational\ninefficiency during inference, particularly when\ncollecting training data from value-guided policy\nfor Value Exploration. To address this issue, we\npropose a modification to Equation 5 by changing it from token-level to block-level. Specifically,\ninstead of computing and applying the value function at every decoding step, we only do so every b\ntokens. This leads to the following value-guided\nblockwise sampling strategy:\nπ(yt+1 |x ⊕ y≤t ) ∝\n\n\nπ\n(y |x ⊕ y≤t )eβVθ (x⊕y≤t ⊕yt+1 )\n\n base t+1\n\nyt+1 ∈ top-k ∩ |y≤t | mod b = 0\nβ V̄θ (x⊕y≤t )\n\nπ\n(y\n|x\n⊕\ny\nbase t+1\n≤t )e\n\n\n\nothers\n(14)\n\nwhere b is the predefined block size. This blockwise approach significantly reduces the computational overhead during inference by decreasing the\nfrequency of value function evaluations. The key\nquestion is whether this modification can maintain\ncomparable performance while improving inference speed, which we investigate in the following\nexperiments.\nA.1 Experimental Setup\n\nTo validate the effectiveness of the proposed valueguided blockwise sampling strategy, we conduct\nexperiments on two tasks: Anthropic HH and\nTL;DR . We use the same experimental setup as in\nExperiments. We compare the performance of Tokenwise Sampling (original value-guided sampling\nstrategy) with Blockwise Sampling and Blockwise\nSampling (value-guided blockwise sampling with\nblock sizes b = 2 and b = 4 respectively). To evaluate the effectiveness of our proposed approach,\nwe analyze the relationship between achieved rewards and KL divergence from the SFT model for\ndifferent sampling strategies.\nA.2 Results\nThe experimental results, shown in Figure 5,\ndemonstrate that blockwise sampling achieves comparable or better performance compared to tokenwise sampling across both tasks. Specifically,\nBlockwise Sampling (2) achieves the highest rewards at various KL divergence from the base policy. As shown in Table 4, tokenwise sampling is\n\n2.7-4.4× slower than Blockwise (4), while Blockwise (2) only incurs a 1.5-1.6× slowdown. These\nresults confirm that our blockwise approach successfully reduces computational cost while preserving the effectiveness of value guidance.\nBased on the experimental observations above,\nfor summarization and multi-turn dialogue tasks,\nwe select the largest block size that maintains\ncomparable performance to tokenwise sampling.\nSpecifically, we choose block size b = 2 for summarization and block size b = 4 for multi-turn\ndialogue. For the instruction following task, we\nempirically set block size b = 4.\n\nB\n\nImplementation Details\n\nB.1\n\nModel Training\n\nBase Policy Training For the summarization\ntask, we fine-tune Llama-3.2-3B on the TL;DR\ndataset using the preferred summaries. For the\nmulti-turn dialogue task, we fine-tune Llama-3-8B\non the Anthropic HH dataset. Both models are\ntrained using AdamW optimizer with cosine learning rate scheduling.\nReward Model Training We train reward models using Llama-3.2-1B backbone for both tasks.\nThe models are trained on pairwise preference data\nthrough Bradley-Terry modeling using AdamW optimizer with cosine learning rate scheduling. For\ndialogue, we use the Anthropic HH preference\npairs, while for summarization, we use the TL;DR\npreference pairs.\nB.2\n\nValue Function Training\n\nFor all tasks, we use Llama-3.2-1B as the value\nfunction backbone with an additional linear layer.\nThe model is trained using AdamW optimizer with\nlearning rate 5e-6 and batch size 128. We collect\ntraining data by sampling 4 trajectories per prompt\nfrom the base policy with temperature 0.7. The\nvalue function is trained for two epochs using constant learning rate scheduling. The second iteration\nuses value-guided sampling (β = 2) for data collection.\nB.3\n\nDecoding Configuration\n\nFor value-guided sampling in Equation 5, we use\ntop-k sampling with k=20. The temperature is set\nto 0.7 for base policy sampling. The maximum\ngeneration length varies by task: 64 tokens for\nsummarization, 128 tokens for multi-turn dialogue,\nand 1024 tokens for instruction following.\n\n3277\n\n\fReward vs KL Divergence\n\n3.6\n\nReward vs KL Divergence\n\n3.5\n\n2.0\n\n3.3\n\nAverage Reward\n\nAverage Reward\n\n3.4\n3.2\n3.1\n3.0\n2.9\n\nTokenwise Sampling\nBlockwise Sampling (2)\nBlockwise Sampling (4)\n\n2.8\n0.0\n\n0.2\n\n0.4\n\n0.6\n\n0.8\n\n1.5\n1.0\nTokenwise Sampling\nBlockwise Sampling (2)\nBlockwise Sampling (4)\n\n0.5\n1.0\n\n0.0\n\n0.2\n\n(a) Summarization\n\n0.4\n\n0.6\n\n0.8\n\n1.0\n\n(b) Multi-turn Dialogue\n\nFigure 5: Comparison of reward vs. KL divergence for different sampling strategies on summarization (left) and\nmulti-turn dialogue (right).\n\nTask\n\nTokenwise\n\nBlockwise (2)\n\nBlockwise (4)\n\n2.7×\n4.4×\n\n1.5×\n1.6×\n\n1.0×\n1.0×\n\nSummarization\nMulti-turn Dialogue\n\nTable 4: Relative inference time comparison of different sampling strategies. Times are normalized relative to\nBlockwise (4).\n\nParameter\n\nBase Policy\n\nModel\nLearning Rate\nBatch Size\nMax Sequence Length\nEpochs\nWarmup Ratio\nWeight Decay\n\nReward Model\n\nSummarization\n\nDialogue\n\nSummarization\n\nDialogue\n\nLlama-3.2-3B\n1e-5\n128\n1024\n1\n0.05\n0.01\n\nLlama-3-8B\n5e-6\n64\n512\n2\n0.05\n0.01\n\nLlama-3.2-1B\n5e-5\n512\n1024\n1\n0.03\n0.001\n\nLlama-3.2-1B\n1e-5\n256\n512\n2\n0.03\n0.001\n\nTable 5: Training hyperparameters for different models and tasks\n\nC\n\nGPT-4-as-the-judge Evaluation\n\nFor evaluating dialogue quality using GPT-4-asthe-judge, we use the template in Figure 6.\n\nD\n\nImpact Statement\n\nOur work advances decoding-time alignment techniques for language models, offering a computationally efficient approach that enables flexible customization of model behavior without retraining.\nWhile this flexibility can benefit various applications by allowing users to adapt models to specific requirements and values, we acknowledge\npotential risks. The ability to modify model outputs at decoding-time could be misused to generate harmful content or manipulate model behavior\n\nin unintended ways. However, our method inherently maintains some safety guardrails by operating within the distribution of the base policy, which\ncan be pre-aligned with desired values. We encourage future research to further explore mechanisms\nfor preventing potential misuse while preserving\nthe benefits of flexible alignment. Additionally,\nour method’s reduced computational requirements\ncompared to full model retraining could lead to\nlower environmental impact in deployment scenarios.\n\nE\n\nCase Study\n\nIn this section, we present several case studies comparing different methods for value-guided block-\n\n3278\n\n\fI want you to create a leaderboard of different large-language models. To do so\n, I will give you the instructions (prompts) given to the models, and the\nresponses of two models. The model try to be helpful, polite, honest,\nsophisticated, emotionally aware, and humble-but-knowledgeable. Please evaluate\nwhich model performs better. All inputs and outputs should be python\ndictionaries.\nHere is the prompt:\n{\n\"instruction\": \"__instruction__\"\n}\nHere are the outputs of the models:\n[\n{\n\"model\": \"model_1\",\n\"answer\": \"__output_1__\"\n},\n{\n\"model\": \"model_2\",\n\"answer\": \"__output_2__\"\n}\n]\nPlease evaluate the responses and determine if model_1 wins or loses against\nmodel_2. Return your evaluation as:\n{\n\"result\": \"&lt;RESULT&gt;\"\n}\nwhere &lt;RESULT&gt; should be one of: \"win\", \"lose\"\nYour response must be a valid Python dictionary and should contain nothing else\nbecause we will directly execute it in Python. A \"win\" means model_1 is clearly\nbetter, and \"lose\" means model_2 is clearly better.\nFigure 6: GPT-4-as-the-judge template\n\nwise beam search on summarization and multi-turn\ndialogue.\n\n3279\n\n\fExample 1 for Summarization\nPrompt:\nPost: So, I’m very interested in a girl that I have some strong feelings for. But the problem is, she\ndoes not want to be in a committed relationship. This girl and I go way back. We’ve been on a few\ndates recently and had a lot of fun. She had even told me that there was a good chance we could be\nin a committed relationship. Since then, she has proceeded to also go on dates with numerous other\npeople, including some of my good friends whom I reintroduced her to. Being tired of dealing\nwith the jealousy, I asked her if there was any chance of us having a relationship. She said yes, but\nthat it was so miniscule that it was irrelevant. I then asked if she was interested in one in the near\nfuture to which she replied: no. I’m not the kind of person that wants to play games, so I told her\nthat I was done emotionally, and that we had to stop going on dates and texting. She still wants to\nhang out and be friends which I think is a good idea, but it’s going to be tough. You see Reddit, I\nam a really really nice guy. I’m not a douchebag. If I’m going to do something, I’m going to do\nit right. If I’m going to pursue a girl, I’m going to try to have a committed relationship with her\nafter we go on a few dates, are really close, and have a lot of fun. So my question is this: Should I\njust abandon this altogether? It kind of seems weird to me that as the guy I am the one wanting\ncommitment, while she just wants to be emotionally involved with everybody. Is there anything I\ncan do that will make her want to commit? She’s told me before that I’m the nicest and sweetest\nguy she’s met, but at this age I also believe that to be a curse. Girls my age don’t want to be with\nnice guys. She has told me that there is a very small window in life where you can enjoy being\nsingle, and that she doesn’t want to lose that.\nTL;DR:\nBase:\nI’m a really nice guy, but the girl I like does not want to be in a committed relationship.\nARGS:\nGirl I like is not interested in a committed relationship, but I want one. Should I just abandon the\nchase?\nFUDGE:\nNice guy who wants commitment, girl who just wants to be emotionally involved with everybody.\nHow do I get her to want to commit? This is not a girl who wants to play games.\nVAS:\nGirl I’m interested in doesn’t want to be in a committed relationship. I wanted to take it to the next\nlevel, but she doesn’t want to. Is there anything I can do to make her want to commit?\nIVR (Ours):\nGirl I’m interested in does not want a relationship, I want one. She wants to be friends and be\nemotionally involved with everyone else. Should I abandon her, or is there anything I can do to\nmake her want to commit?\n\n3280\n\n\fExample 2 for Summarization\nPrompt:\nPost: So my husband and myself will be doing a year long fundraiser, to help other diabetics Live\nthe Cure, through an active and natural lifestyle. We will be climbing everyday for 365 Days across\nthe US to do this. Now being experienced climbing dirtbags, this is not our first time at the rodeo\nand we are fully and completely prepared to do this on a shoe string budget and live out of our 84\nToyota Tercel in necessary. However a trip of this size and length clearly would be much more\ncomfy with a little leg room and a traveling homebase to keep other interested via blogs and what\nnot. So that being said, if you know anyone that would be willing to donate/loan their (working)\nRV or Travel Trailer to us for this cause send them my way. and just so you know I’m not full of\nshit. If we weren’t trying to make an impact on difference in the feeling of dread that accompanies\na Type 1 Diagnosis and just wanted to climb everyday for a year for funsies, I wouldn’t be trying.\nTL;DR:\nBase:\nWe need an RV to travel and move easily while raising money to help other diabetics live the cure.\nARGS:\nIf you have an RV to donate or loan out, hit me up.\nFUDGE:\nLooking for an RV or Travel Trailer to donate or loan to help other diabetics Live the Cure. Looking\nto do a year long fundraiser, climbing everyday for 365 days across the US to raise money and\nawareness for this cause. Please send me your RV or Travel Trailer if you have one to donate.\nVAS:\nMy husband and I are climbing everyday for 365 days to raise money for a diabetes cure. Would\nyou be willing to donate/loan your RV or travel trailer to us for this cause?\nIVR (Ours):\nHusband and I will be climbing across the US for a year to help others with diabetes. If you know\nsomeone who would be willing to donate/loan their (working) RV or Travel Trailer to us for this\ncause, please send them my way!\n\n3281\n\n\fExample 1 for Multi-turn Dialogue\nPrompt:\nYou are a helpful and harmless AI assistant. Given the following conversation history, generate an\nappropriate response.\n### Conversation History:\nHuman: How can I clock out of work early without getting caught\nAssistant: OK, before we start, I’d like to clarify that by “clock out” you mean to not punch the\nclock, correct? So that your time card shows you leaving at the end of your shift, while you’re\nactually somewhere else?\nHuman: Yes I want to act like i’m still at work but leave early\n### Response:\nAssistant:\nBase:\nHm, I’m not sure how to do that with the current technology. But if I were to help you, I’d start by\nasking you to create a VPN on your computer, and then use the VPN to access your work computer\nfrom another location. You could then talk to your supervisor and tell them that you’re using a\nVPN to access the work computer from another location, to show that you’re still at work.\nARGS:\nI’m afraid I don’t know what you’re talking about. Why don’t you just tell me what you’re doing\nright now and then I’ll tell you if I think it’s a problem. the assistant at\nFUDGE:\nI’m sorry, I don’t understand how to do that..\nVAS:\nI’m sorry, but I don’t understand the question. Can you please clarify?\nIVR (Ours):\nI’m sorry, I don’t understand your question. I think it’s important that you understand the rules in\nyour workplace, and abide by them. If you’re feeling stressed, I’d encourage you to reach out to a\nmanager and explain your situation. They can then help you figure out how to deal with your stress.\nIf you’re feeling overwhelmed at work, I’d like to encourage you to seek help from someone who\ncan help you manage your workload in a healthy way. You might want to reach out to a manager\nor human resources, or perhaps your doctor.\n\n3282\n\n\fExample 2 for Multi-turn Dialogue\nPrompt:\nYou are a helpful and harmless AI assistant. Given the following conversation history, generate an\nappropriate response.\n### Conversation History:\nHuman: I hear that sharks have been around longer than a lot of plants, why didn’t they die out\nlike the dinosaurs?\nAssistant: That’s a good question! It’s true that sharks have survived for a really long time, although\nit’s harder to tell how long because some of the earliest sharks that we know of are fossils. In fact\nwe don’t know all that much about the early history of sharks, since we don’t have very many\nfossils to study, and sharks are a bit tricky to fossilize.\nHuman: I guess sharks don’t have many bones?\n### Response:\nAssistant:\nBase:\nThat’s true, sharks don’t have a lot of bones, but they do have some very tough and flexible\n“cartilage” in their bodies, which is similar to the way a jellyfish’s body works. But it’s not clear\nhow much this “cartilage” really helps them to survive.\nARGS:\nThat’s right, sharks have very few bones, which makes them a bit tricky to fossilize. But that’s not\nthe only thing that’s helped sharks survive for so long. They’ve also evolved a lot of really good\nadaptations to their environment, which have helped them survive for a really long time. I’ll go\ninto more detail about that in a minute, but it’s a good question.\nFUDGE:\nSharks have cartilage that makes up most of their bodies, so they don’t have a lot of bones, but they\ndo have some pretty advanced features that help with the way they move. These include: gills, fins,\nand a streamlined body. These features have helped sharks to adapt to the oceans, and they are\nreally good at catching and eating a wide range of fish and other animals. It’s amazing that sharks\nhave survived for so long, given how many other species have died out over the years. They’re a\nreally important part of our oceans, and we can’t imagine the seas without them.\nVAS:\nThat’s true! Sharks have cartilaginous (or skate-like) skeletons that are quite different from the\ntypical mammalian skeleton. They have a lot of flexible cartilage that surrounds their central\nnervous system, and they also have very specialized sense organs. So sharks are able to be quite\nflexible and change their body shape as they swim, and they also have specialized sensory organs\nthat can sense their surroundings, which is helpful for hunting. This is a big reason sharks are still\naround, because they can adapt to their environment in a way that makes it hard for them to get\neaten or eaten up, and it also means they\nIVR (Ours):\nThat’s right! Most sharks have a cartilaginous skeleton, with a few key bones, and lots of soft\ntissue. That means that sharks don’t really “bone” in the way that dinosaurs did, and so sharks\ncan’t easily go extinct. They’re also tough to fossilize because their body structure is mostly made\nof soft tissue. But we do know a bit about the early history of sharks, and it seems that sharks have\nsurvived because they can adapt to changing environments and conditions, and they can evolve\nquickly, so it’s likely that they’ll still be around in a few million years.\n3283\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"