AlignDistil: Token-Level Language Model Alignment as Adaptive Policy Distillation

Songming Zhang, Xue Zhang, Tong Zhang, Bojie Hu, Yufeng Chen, Jinan Xu

TL;DR

AlignDistil bridges the gap between coarse response-level preference optimization and fine-grained token-level alignment by mathematically reformulating RLHF with DPO rewards as a token-level policy distillation task. By utilizing a contrastive DPO reward pair and a token-adaptive logit extrapolation mechanism, it achieves superior alignment performance and up to 3x faster training convergence compared to traditional sentence-level methods.

What Problem Does This Paper Address?

Standard alignment techniques for Large Language Models (LLMs), such as Reinforcement Learning from Human Feedback (RLHF) and Direct Preference Optimization (DPO), typically rely on coarse, response-level feedback. If a model generates a long paragraph that is mostly excellent but contains a single bad sentence, the entire response receives a low preference score.

This sparse feedback can mistakenly punish high-quality tokens or reward low-quality ones, leading to slow training convergence and suboptimal final performance. While some token-level reward methods exist, they often rely on scalar rewards that fail to capture the full probability distribution of the vocabulary, or they introduce complex, unstable optimization loops.

Methods

The authors introduce AlignDistil, an alignment approach that reframes token-level reward optimization as an adaptive policy distillation problem.

  1. Theoretical Equivalence: The authors mathematically prove that optimizing the standard RLHF objective using a DPO-parameterized reward is equivalent to minimizing the token-level Kullback-Leibler (KL) divergence against a synthetic teacher distribution. This teacher distribution is a linear combination of the logits from the DPO model and a reference model.
  2. Contrastive DPO Reward: To boost reward accuracy, they replace the standard reference model with a reverse DPO model (trained by swapping the chosen and rejected responses in the dataset). This sets up a contrastive logit extrapolation that actively filters out negative features.
  3. Token Adaptive Logit Extrapolation: Rather than using a fixed blending weight across all tokens, AlignDistil dynamically adjusts the extrapolation weight ($\alpha_t$) at each token position based on the Total Variation Distance (TVD) between the normal and reverse DPO distributions.

AlignDistil is highly flexible and can be trained using either on-policy sampling or off-policy static datasets.

Figure 1: An overview of our AlignDistil. At token position t, the distribution from the current policy πθ(t) is guided by a teacher distribution π∗(t), which is con- structed from an adaptive extrapolation between logit distributions from a DPO model and a reverse DPO model with a weight αt.

Datasets

  • UltraFeedback: The primary alignment dataset, containing roughly 63,000 prompts with corresponding preferred and dispreferred response pairs.
  • UltraChat-200k: Used to train the base instruction model for larger scale experiments.
  • TL;DR: A text summarization dataset used to evaluate generalization performance.
  • Evaluation Benchmarks: The models were evaluated on three popular alignment benchmarks: AlpacaEval 2.0, MT-Bench, and Arena-Hard, using Qwen2.5-72B-Instruct as the LLM-as-a-Judge evaluator.

Key Insights and Ideas

  • Distributional vs. Scalar Rewards: Traditional token-level methods assign a single scalar value to each token. AlignDistil leverages the entire logit distribution of the teacher. This allows the model to compute exact reward expectations over the whole vocabulary, drastically stabilizing and accelerating training.
  • The Power of the Reverse DPO Model: Swapping chosen and rejected pairs to train a reverse DPO model provides an elegant anchor for contrastive learning. Extrapolating away from the reverse model effectively subtracts "negative" behavioral traits from the policy.
  • Adaptive Blending is Critical: A static extrapolation weight causes over-optimization (leading to verbose, repetitive text) or under-optimization. Dynamically scaling the weight using TVD ensures the model only pushes hard on tokens where the preferred and dispreferred models strongly disagree.

Key Results

  • State-of-the-Art Performance: AlignDistil consistently outperformed strong baselines like DPO, SimPO, PPO, and Token-Level DPO (TDPO) across multiple base models (Qwen2/2.5-1.5B, Qwen2.5-7B, Llama3-8B). For instance, on Qwen2.5-1.5B-Instruct, it achieved a length-controlled win rate of 21.16% (off-policy) on AlpacaEval 2.0 compared to vanilla DPO's 14.35%.
  • Rapid Convergence: AlignDistil converges 2x faster than token-level scalar reward methods (like RTO) and 3x faster than sentence-level reward methods, demonstrating the efficiency of distributional distillation.
Figure 2: Convergence curves of token averaged reward from optimization on the sentence-level, token-level scalar-type, and token-level distributional reward.

Limitations and Future Work

Due to computational resource constraints, the authors primarily evaluated AlignDistil on smaller to medium-sized language models (ranging from 1.5B to 8B parameters). While the theoretical foundations and empirical results on these models are robust, verifying AlignDistil's efficacy on massive frontier models (e.g., 70B+ parameters) remains an open direction for future work.

Summary updated

BibTeX
@inproceedings{zhang2025aligndistil,
  author = {Songming Zhang and Xue Zhang and Tong Zhang and Bojie Hu and Yufeng Chen and Jinan Xu},
  title = {{AlignDistil: Token-Level Language Model Alignment as Adaptive Policy Distillation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure