Alignment-Aware Decoding
Frédéric Berdoz, Luca A. Lanzendörfer, René Caky, Roger Wattenhofer
TL;DR
Alignment-Aware Decoding (AAD) targets human-preference alignment for LLMs by performing inference-time, token-level reward optimization without retraining. It treats the DPO-aligned model as a token reward function, using the log-ratio with the reference SFT model and applying a plausibility filter to avoid over-optimization, with the next token selected to maximize the reward signal within a restricted set. AAD requires only the pre-DPO reference and the post-DPO aligned models and consistently improves alignment across benchmarks and model scales; it can also generate high-quality synthetic data to boost alignment under data scarcity via iterative DPO. Empirically, AAD outperforms strong baselines, remains robust to data scarcity, and benefits from entropy-aware beam search and iterative data augmentation, offering a practical, training-light path to better aligned LLM deployments.
Abstract
Alignment of large language models remains a central challenge in natural language processing. Preference optimization has emerged as a popular and effective method for improving alignment, typically through training-time or prompt-based interventions. In this paper, we introduce alignment-aware decoding (AAD), a method to enhance model alignment directly at inference. Theoretically, AAD can be interpreted as implicit reward optimization, yet it requires no specialized training beyond the standard DPO setup. Empirically, AAD consistently outperforms strong baselines across diverse alignment benchmarks and model scales. Moreover, in data-constrained settings, AAD can produce high-quality synthetic data to improve alignment under standard decoding, providing a practical solution when labeled data is limited.
