Abstract
Aligning language models (LMs) with human preferences is a cornerstone of modern natural language generation. However, a fundamental "granularity mismatch" exists: while human feedback is typically provided at the sequence level, LMs generate text and calculate losses at the token level. This discrepancy complicates credit assignment and increases gradient variance during training. This paper introduces a framework that iteratively grounds sequence-level preferences into dense, token-level guidance. By employing task-specific reward aggregation and minimalist learning objectives, our method achieves competitive performance on discrete-prompt generation and text summarization tasks, outperforming standard reinforcement learning approaches like PPO in stability and efficiency.
Introduction: The Granularity Mismatch
Standard Reinforcement Learning from Human Feedback (RLHF) typically treats the language model as a bandit, receiving a single reward for an entire generated sequence. This approach suffers from a significant credit assignment problem: when a model receives a low score for a 50-token summary, it lacks the signal to determine which specific tokens or phrases were responsible for the failure. Conversely, high rewards may be attributed to the wrong tokens, leading to high gradient variance and sample inefficiency.
To address this, we propose a framework to bridge the gap between sequence-level preferences and token-level training. Our approach focuses on grounding global feedback into local guidance, allowing the model to learn which specific generation steps align with human intent.
Methodology
Our training process is iterative, alternating between reward model refinement and language model optimization.
1. Token-level Guidance Learning
Instead of a scalar sequence score, we train a reward model $r_\phi(s_t, a_t)$ to assign a value to every token. To connect these token rewards to sequence-level preferences, we utilize an aggregation function $f(\cdot)$. While traditional RL often uses simple summation, we explore alternatives to mitigate "length bias"—the tendency for models to favor longer sequences simply to accumulate more positive rewards. These include:
- Average Aggregation: Normalizes rewards by sequence length.
- Soft-Maximum/Minimum: Focuses on the most or least influential tokens in a sequence.
The reward model is optimized using a Bradley-Terry-based loss, extended to the Plackett-Luce model to handle rankings among multiple sequences ($K > 2$).
2. Minimalist LM Training Objectives
We propose two streamlined objectives to utilize the learned token-level guidance, avoiding the complexity and instability of Proximal Policy Optimization (PPO):
- Without Supervised Data (Max-Entropy Policy Gradient): For tasks like discrete prompt generation, we use a policy gradient approach that encourages the model to explore and discover multiple high-reward paths.
- With Supervised Data (Weighted-MLE): For tasks like summarization where ground-truth data is available, we enhance standard Maximum Likelihood Estimation by weighting the loss of each token by its learned reward. This directs the model's focus toward the most critical tokens for quality.
Experimental Results
We evaluated our framework across two distinct domains: discrete prompt generation and long-form text summarization.
Discrete Prompt Generation
In tasks requiring the discovery of optimal discrete prompts (e.g., SST-2, Yelp Polarity), our method demonstrated superior accuracy. On the Yelp Polarity dataset, our "Ours (MAX)" variant achieved 94.8% accuracy, surpassing the previous state-of-the-art RLPrompt (94.2%). The use of soft-max aggregation proved vital here, as prompting often relies on a few "key tokens" to trigger the correct classification.
Text Summarization
On the CNN/DailyMail and XSum datasets, our method significantly improved over supervised baselines and standard RL approaches. On CNN/DailyMail, we achieved a ROUGE-L score of 38.17, compared to 33.77 for PPO and 32.58 for the supervised baseline. Human evaluations confirmed these findings, with our method receiving an average quality rating of 3.61/5, notably higher than Supervised+PPO (3.17).
Scaling to Large Language Models
Recent updates to this work demonstrate that token-level grounding scales effectively to larger architectures. When applied to the Llama-3.1 8B family, our approach showed a 5-10% performance gain over sequence-level "bandit" RLHF on the AlpacaEval 2 benchmark.
Key Insights
- Aggregation Matters: The choice of how to aggregate token rewards is task-dependent. Summarization benefits from "average" aggregation to maintain consistent quality, while prompting benefits from "soft-max" to identify high-impact tokens.
- Efficiency and Stability: By using weighted-MLE instead of actor-critic frameworks, we achieve more stable training. Furthermore, we found that iterative retraining of the reward model is only necessary during the first half of the training process to capture the majority of performance gains, reducing total compute by approximately 25-30%.
- The Length Bias Trap: Moving away from simple reward summation is essential for preventing models from becoming unnecessarily wordy, a common failure mode in standard RLHF.
Conclusion and Future Work
Grounding sequence-level preferences into token-level guidance provides a robust solution to the granularity mismatch in LM alignment. While highly effective, per-token rewards can occasionally be too fine-grained. Future research will explore grounding preferences into semantically complete segments (such as phrases or sentences) and integrating these dense rewards into full actor-critic architectures for even larger-scale alignment tasks.
Summary updated