Abstract
Direct Preference Optimization (DPO) has emerged as a streamlined alternative to traditional Reinforcement Learning from Human Feedback (RLHF) by treating alignment as a sequence-level bandit problem. However, DPO often struggles with "sparse rewards," where a single signal for an entire sequence makes it difficult for the model to identify which specific tokens contribute to the quality of a response. This paper introduces TGDPO (Token-level Guided Direct Preference Optimization), a framework that bridges the gap between sequence-level alignment and fine-grained token-level rewards. By decomposing the alignment objective into individual token steps, TGDPO enables Large Language Models (LLMs) to learn from dense feedback, resulting in significantly more stable training and superior performance across major benchmarks.
Introduction
Aligning Large Language Models (LLMs) with human values typically involves Proximal Policy Optimization (PPO), a method known for its complexity and computational demands. DPO simplified this process by eliminating the need for a separate reward model and a complex reinforcement learning loop. Despite its efficiency, DPO treats the entire response as a single unit. In long-form generation, this lack of granularity—the "sparse reward" problem—prevents the model from distinguishing between high-quality and low-quality segments within a single response.
While PPO has recently integrated "dense" token-level rewards to improve performance, incorporating these into the DPO framework is mathematically challenging. Specifically, DPO’s formulation makes it difficult to eliminate the "partition function" (a complex normalization term) at the token level. TGDPO addresses this by deriving a new objective that incorporates token-level signals while maintaining the efficiency of the DPO framework.
Methodology
TGDPO introduces token-level granularity to the DPO objective through a three-step approach:
- Mathematical Decomposition: The authors demonstrate that the sequence-level PPO objective can be upper-bounded by a sum of token-level PPO problems. This allows the optimization to occur on a token-by-token basis.
- Reward Guidance Function: A guidance function, $f(\hat{r})$, is introduced to modify the ground-truth reward. This function acts as a signal to the model: if a specific token is identified as high-quality, the model is given more flexibility to deviate from the reference policy to reinforce that token.
- Closed-Form Loss: By deriving the optimal token-level policy, the researchers created a new DPO loss function that incorporates token-level signals while successfully eliminating the partition function.
In practical application, TGDPO utilizes the "induced reward" from a pre-trained DPO model as the source of token-level guidance. This allows the method to be implemented without the need to train a new reward model from scratch.
Experimental Setup
The researchers evaluated TGDPO using several prominent LLM architectures, including Llama3-8B, Llama3.2-3B, and Gemma2-2B. The models were trained using prompts from the UltraFeedback dataset. Performance was measured across three rigorous "LLM-as-a-judge" benchmarks:
- MT-Bench: Evaluates multi-turn conversation capabilities.
- AlpacaEval 2: Measures win rates against GPT-4 Turbo.
- Arena-Hard: Focuses on challenging technical and creative prompts.
Key Insights and Results
Enhanced Stability and Convergence
A significant finding of this research is that TGDPO is substantially more stable than standard DPO or SimPO. Traditional methods often experience "performance collapse" if training continues until the loss fully converges, leading to degenerate model behavior. TGDPO, however, maintains high performance even at full loss convergence. Additionally, the hyperparameter $\alpha$ allows for controllable convergence; a larger $\alpha$ provides stronger guidance, accelerating training without compromising final quality.
Performance Gains
TGDPO consistently outperformed both DPO and SimPO across all tested models and benchmarks:
- MT-Bench: Achieved a win rate gain of up to 7.5 points.
- AlpacaEval 2: Saw improvements of up to 6.2 points.
- Arena-Hard: Improved by up to 4.3 points.
Token-Level Nuance
By scaling the KL-divergence penalty at each token, the model learns which specific parts of a sentence are critical for quality. Rather than simply learning that a general response is "good," the model identifies the specific linguistic choices that drive that quality. Furthermore, the framework proved robust to the quality of the underlying reward model, suggesting that TGDPO acts as a powerful regularizer.
Conclusion
TGDPO represents a significant advancement in preference optimization by successfully integrating token-level rewards into the DPO framework. This approach solves the sparse reward problem and provides a more stable, high-performing alternative to sequence-level methods. While current evaluations focus on helpfulness, the framework's robustness suggests potential benefits for other alignment pillars such as safety and honesty. Future work may explore applying TGDPO to multi-modal models or incorporating process-based rewards for specialized domains like mathematics and coding.
Summary updated