Introduction
Current alignment techniques for Large Language Models (LLMs), such as Reinforcement Learning from Human Feedback (RLHF) and Direct Preference Optimization (DPO), primarily utilize sequence-level rewards. In this paradigm, a reward model evaluates an entire response to provide a single scalar score. However, this approach suffers from the credit assignment problem: a single score cannot pinpoint which specific tokens or phrases contributed to a high-quality response or where a factual error occurred. This sparse feedback signal limits the model's ability to learn nuanced improvements, especially in long-form generation.
The T-REG Framework
To address these limitations, the authors propose T-REG (Token-level Reward Regularization). T-REG introduces a fine-grained training signal by leveraging the model's internal knowledge to self-generate token-level rewards.
Contrastive Prompting and Token Rewards
Instead of relying on expensive human-labeled token data, T-REG uses contrastive prompting. The model is prompted to rewrite an existing response in two directions: a "better" version (optimized for helpfulness, correctness, and coherence) and a "worse" version (intentionally unhelpful or incoherent). By comparing the log-probabilities of tokens in these two versions, the system derives a token-level reward signal. Tokens that are significantly more likely in the "better" rewrite receive higher rewards.
Reward Regularization
Rather than directly optimizing for these potentially noisy token rewards—which could lead to reward hacking—T-REG incorporates them as a regularization term within the standard DPO objective. This "soft guide" encourages the model to prefer high-reward tokens while maintaining the overall sequence-level preference structure. To balance these signals, a dynamic sequence weighting mechanism is employed based on the gradient of the DPO loss.
Experimental Evaluation
The effectiveness of T-REG was evaluated using Llama-3-8B and Gemma-2-9B models trained on preference data from the Ultrafeedback dataset. Performance was measured on two rigorous benchmarks:
- Alpaca Eval 2.0: Assessing win rates against GPT-4 Turbo.
- Arena-Hard: A challenging set of 500 expert-level queries in technical domains.
Key Results
T-REG consistently outperformed baseline methods, including standard DPO and SimPO. On Alpaca Eval 2.0, T-REG achieved up to a 3.8% improvement in length-controlled win rate over DPO. The gains were even more pronounced on the Arena-Hard benchmark, with a 4.4% improvement, demonstrating the method's strength in complex reasoning tasks. Furthermore, T-REG proved to be algorithm-agnostic, providing significant performance boosts when integrated with SimPO (SimPO-REG).
Discussion and Limitations
Qualitative analysis suggests that T-REG's token-level signal allows for higher precision in error correction, such as fixing minor mathematical slips or formatting errors that sequence-level rewards might overlook.
However, several challenges remain. There is currently a lack of quantitative benchmarks to directly measure the accuracy of token-level credit assignment. Additionally, while T-REG is more efficient than training separate reward models, the contrastive generation phase adds computational overhead during data preparation. Future work may explore varying levels of granularity, such as sentence-level rewards, to further optimize long-form reasoning.
Summary updated