Command Palette
Search for a command to run...
Theoretical Limits of Language Model Alignment
Theoretical Limits of Language Model Alignment
Lucas Monteiro Paes Natalie Mackraz Barry-John Theobald Federico Danieli
Abstract
Language model (LM) alignment improves model outputs to reflect human preferences while preserving the capabilities of the base model. The most common alignment approaches are (i) reinforcement learning, which maximizes the expected reward under a KL-divergence constraint, and (ii) best-of-N alignment, which selects the highest-reward output among N independent samples. Despite their widespread use, the fundamental limits of reward improvement under a KL budget remain poorly understood. We characterize the information-theoretic limits of KL-regularized alignment by deriving the maximum achievable expected reward gain for a fixed KL-divergence budget. Our first result provides a closed-form expression for the optimal reward improvement, governed by a Jeffreys divergence term rather than the KL used in prior analyses. We further reformulate this expression as a covariance under the base model, yielding a practical estimator that predicts achievable alignment gains from base model samples alone. We extend our analysis to the proxy reward setting, showing that the gap between ideal and proxy alignment (reward hacking) grows with the magnitude of reward error and when the KL penalty factor decreases. We then prove that reward ensembling mitigates reward hacking, providing a theoretical justification for this technique used in practice. Empirically, we compute the KL–reward Pareto frontier for two tasks for LMs, safety and summarization, and show that best-of-N closely approaches the theoretical limit, while PPO and GRPO remain substantially suboptimal. Our theoretical results shed light on several empirically observed phenomena in the alignment literature and suggest that algorithmic improvements are needed to achieve optimal alignment without high inference costs.
One-sentence Summary
Apple researchers characterize the information-theoretic limits of KL-regularized language model alignment by deriving a closed-form optimal expected reward gain governed by Jeffreys divergence rather than KL along with a covariance-based estimator from base-model samples, and they prove that reward ensembling mitigates proxy reward hacking while best-of-N nears the theoretical Pareto frontier for safety and summarization, unlike PPO and GRPO.
Key Contributions
- The work derives a closed-form expression for optimal reward improvement under KL-regularized alignment, showing that it is governed by a Jeffreys divergence term instead of the previously conjectured square-root KL scaling.
- It reformulates the Jeffreys divergence as a covariance under the base model, yielding convergent estimators that recover the full KL-reward Pareto frontier from base model samples alone. Empirical results on safety and summarization show best-of-N sampling closely tracks this frontier while PPO and GRPO remain suboptimal.
- The work extends the analysis to proxy rewards, proving that the gap between gold-reward and proxy-reward alignment grows with the mean squared reward error and the inverse KL penalty, and shows that reward ensembling provably mitigates reward hacking with convergence rate O(n^{-1/2}).
Introduction
Large language models are typically aligned through KL-regularized reinforcement learning or related preference-based methods to reduce harmful outputs, but the theoretical maximum reward achievable for a fixed KL divergence budget has remained unclear. Prior work provided only non-achievable upper bounds or relied on restrictive assumptions about the language or reward model. The authors characterize the exact fundamental limit of alignment, showing that optimal reward gain equals the KL penalty times a Jeffreys divergence, and they reformulate this quantity as a covariance that can be estimated from the base model alone before alignment. This gives a principled way to benchmark alignment methods against a true reward-KL Pareto frontier and also supports theoretical analysis of proxy rewards and reward ensembling.
Method
The authors establish a comprehensive theoretical framework to compute the fundamental limits of large language model alignment under a KL divergence penalty. Rather than relying on empirical training to evaluate alignment performance, they derive closed-form information-theoretic bounds and develop computable estimators that require only samples from the unaligned base model. This approach allows practitioners to map the theoretical Pareto frontier of reward gain versus KL divergence without executing any alignment training.
To characterize the optimal reward improvement, the authors first demonstrate that the reward gain after alignment is fully determined by the Jefreys divergence, which is the sum of the forward and reverse KL divergence between the base and aligned policies. The optimal reward improvement is characterized by λJD(πbase∣∣πr,λ). Moving beyond non-computable upper bounds, they prove that the expected reward gain can be expressed as a covariance under the base policy:
Δ(r,r′)=Covπbase(⋅∣x)(r′,Eπbase(⋅∣x)[er(x,y)/λ]er(x,y)/λ)This covariance formulation is pivotal because it shifts the computation from the optimally aligned model to the accessible base model and the reward model.
Building on this theoretical foundation, the authors operationalize the covariance characterization by introducing Monte Carlo estimators for both the expected reward gain and the corresponding KL divergence. By drawing independent and identically distributed samples from the base policy, these estimators compute the partition function and joint reward terms to approximate the theoretical limits. The authors formally prove that these estimators are consistent and converge in probability to the true theoretical values as the number of base model samples increases. This convergence guarantee ensures that the entire Pareto frontier can be reliably estimated using a finite set of base model generations.
Refer to the framework diagram below to visualize how the theoretical limits compare against empirical alignment algorithms.
As illustrated, the theoretical Pareto frontier defines the absolute maximum achievable reward for any given KL budget. The authors use this framework to benchmark existing alignment methods such as Best-of-N, GRPO, and PPO, revealing that Best-of-N closely tracks the theoretical limits across the entire trade-off curve, while other methods remain sub-optimal.
Furthermore, the authors extend their framework to analyze the practical challenges of using imperfect proxy rewards instead of gold rewards. They formalize the concept of a preference residual to quantify the discrepancy between proxy and gold rewards. Through this formulation, they prove that the performance degradation caused by reward hacking is governed by an exponential term of the preference residual. This theoretical insight explicitly demonstrates why aggressive alignment against proxy rewards leads to severe reward hacking, particularly when the KL penalty is small.
To address this vulnerability, the authors provide a formal justification for reward ensembling. They establish a deterministic Lipschitz bound that connects the difference in expected reward between two aligned models to the distance between their underlying reward functions. By applying this bound to an ensemble average, they prove that ensembling multiple proxy rewards mitigates reward hacking. Specifically, they show that the expected reward of a model aligned to an ensemble of proxy rewards converges to the optimal gold reward expectation at a rate of O(n−1/2) in expectation. This theoretical guarantee explains the empirical success of reward ensembling and provides a principled strategy to counter the exponential degradation caused by proxy reward residuals.
Experiment
The experiments assess theoretical KL versus reward limits on Reddit TL;DR summarization and BeaverTails safety tasks, using Pythia-1B and Zephyr-7B models, and compare GRPO, PPO, and best-of-N. The proposed reward gain and KL estimators converge reliably within a few thousand base model samples, confirming that the Pareto frontier can be estimated before alignment training. Best-of-N remains close to the theoretical frontier across different KL budgets, while GRPO and PPO stay substantially below it, indicating that current KL-regularized RL methods leave considerable reward gains on the table.