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

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

Abstract

In modern large language models (LLMs), alignment is typically achieved through methods such as reinforcement learning from human feedback (RLHF) and direct preference optimization (DPO). However, most existing methods optimize responses using sparse, sequence-level rewards. This neglect of token-level rewards can erroneously punish high-quality tokens or encourage low-quality ones, leading to suboptimal performance and slow convergence. We propose AlignDistil, an RLHF-equivalent distillation method for token-level reward optimization. By introducing a contrastive DPO reward mechanism and a token-adaptive logit extrapolation mechanism, AlignDistil constructs an appropriate teacher distribution for every token. Experimental results demonstrate that AlignDistil significantly outperforms existing methods and achieves up to 3x faster convergence.

Introduction: The Sparse Reward Problem

Most current LLM alignment techniques, such as RLHF and DPO, rely on response-level feedback. In these frameworks, a single reward score or preference label is assigned to an entire response. This creates a "sparse reward" problem: a high-quality token within a generally poor response might be unfairly punished, while a "hallucinated" or low-quality token in a generally good response might be erroneously encouraged. This coarse-grained approach leads to suboptimal model performance and slow training convergence. AlignDistil addresses this by moving alignment down to the token level, providing precise guidance for every word the model generates.

The AlignDistil Framework

AlignDistil is built on three main pillars that reframe alignment as a distillation task:

  1. Theoretical Equivalence: The authors mathematically prove that the standard RLHF objective is equivalent to a token-level distillation process. The policy model aims to match a specific "teacher" distribution at every token position rather than just maximizing a global score.
  2. Contrastive DPO Reward: To improve reward accuracy, the system uses a pair of models: a standard DPO model and a "reverse" DPO model (trained by swapping chosen and rejected responses). Contrasting these two creates a more discriminative reward signal that captures subtle features of low-quality data better than a single model.
  3. Token Adaptive Logit Extrapolation: Not all tokens are equally important for alignment. Using the Total Variation Distance (TVD) between the normal and reverse DPO distributions, the system calculates a per-token weight. This allows the model to "push" harder on tokens where the preference is clear and avoid over-optimizing on neutral tokens, preventing instability or repetitiveness.
Figure 1: The AlignDistil architecture, illustrating how DPO and Reverse DPO models are combined into a teacher distribution for token-level distillation.

Experimental Setup

The models were primarily trained on UltraFeedback, a dataset of ~63,000 prompts with human-annotated preference pairs. Performance was evaluated across three major benchmarks: AlpacaEval 2.0 (win rates against GPT-4), MT-Bench (multi-turn conversation quality), and Arena-Hard (technical problem-solving). Convergence testing was conducted using the TL;DR summarization dataset.

Key Results

AlignDistil demonstrates significant improvements in both final performance and training efficiency:

  • Superior Performance: On the Qwen2-1.5B-Instruct model, AlignDistil achieved a 12.93% length-controlled win rate on AlpacaEval 2.0, more than doubling the performance of standard DPO (6.42%). Similar gains were observed on larger models like Llama3-8B and Qwen2.5-7B.
  • Accelerated Convergence: By providing a dense, token-level signal, AlignDistil reaches peak reward levels significantly faster than baseline methods. Empirical tests show it is 2x faster than token-level scalar rewards and 3x faster than traditional sentence-level rewards.
Figure 2: Convergence comparison showing AlignDistil (red) reaching higher reward levels significantly faster than scalar or sentence-level reward baselines.

Conclusion and Future Work

AlignDistil shifts the focus of LLM alignment from complex reinforcement learning to the more stable domain of supervised distillation. By moving to the token level, it drastically increases the signal-to-noise ratio during training. While currently validated on models up to 8B parameters, future work will explore its scalability to "frontier" models (70B+) and its application to specialized domains like mathematical reasoning and code generation.

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