Token-Level Credit Assignment via In-Context Value Learning
Abstract
Reinforcement learning has proven extraordinarily effective at fine-tuning large language models to align to human preferences and elicit reasoning capabilities. However, when training policies for long-horizon tasks, a sparse outcome reward provides poor credit assignment, resulting in unstable and inefficient learning. In such settings, value functions are a natural tool for providing token-level training signals and stabilizing learning. Our work addresses how to learn value functions that are powerful enough to perform such token-level credit assignment. Our key insight is that value functions make strong usage of privileged information, which can be provided in-context to base language models. In our approach, we allow the value function access to multiple auxiliary rollouts and their rewards, such that the model can leverage counterfactual futures and semantic structure to produce more meaningful value estimates. We show that value function accuracy scales with the number of in-context rollouts. At sufficient scale, this unlocks accurate per-token advantage estimates: orders of magnitude denser credit assignment than outcome reward alone. These value estimates can then be combined with an off-the-shelf policy improvement method to perform fine-tuning. Empirically, we demonstrate that value functions learned via our approach perform more accurate token-level credit assignment and accordingly result in faster policy improvement. Especially motivating, we find that value functions can be reliably pretrained on offline data, and then later used for rapid adaptation from limited online samples by providing lower variance targets for policy learning.
Create a lesson
Metadata
- Categories
- cs.LG, cs.AI, cs.CL
Related papers
Token-Level Diagnostics for Name-Bias Audits in Late-Interaction Retrieval
Shared title terminologycs.LGZiyu Kong
Token Tells: Prompt Tokens That Copy a Steering Vector Need Its Direction
Shared title terminologycs.LGAniket Ghosh, Mohamed Amine Merzouk, Adam Oberman
Scaling Context Down for On-Device Tabular Foundation Models
Shared title terminologycs.LGShuting Luo, Henry Xiao, Luiz Pizzato et al.
When Data Selection Pays for Itself: Fixed-Budget Value, Evidence, and What to Test Next
Shared title terminologycs.LGYuxiang Luo, Zhengxuan Zhang, Chen Wang et al.
Error-Guided Bellman Calibration for Semi-Offline Value Estimation
Shared title terminologycs.LGTetsuro Morimura
Graph Representation Learning and Its Applications to Integer-valued Parameter Estimation in Linear Models
Shared title terminologycs.LGQincheng Lu