Command Palette
Search for a command to run...
Limites théoriques de l'alignement des modèles de langage
Limites théoriques de l'alignement des modèles de langage
Lucas Monteiro Paes Natalie Mackraz Barry-John Theobald Federico Danieli
Résumé
L'alignement des modèles de langage (LM) améliore les sorties du modèle afin de refléter les préférences humaines tout en préservant les capacités du modèle de base. Les approches d'alignement les plus courantes sont (i) l'apprentissage par renforcement, qui maximise la récompense attendue sous une contrainte de divergence KL, et (ii) l'alignement best-of-N, qui sélectionne la sortie à plus haute récompense parmi N échantillons indépendants. Malgré leur utilisation répandue, les limites fondamentales de l'amélioration de la récompense sous un budget KL restent mal comprises. Nous caractérisons les limites informationnelles de l'alignement régularisé par KL en dérivant le gain de récompense attendu maximal réalisable pour un budget de divergence KL fixé. Notre premier résultat fournit une expression analytique de l'amélioration optimale de la récompense, gouvernée par un terme de divergence de Jeffreys plutôt que par le KL utilisé dans les analyses antérieures. Nous reformulons en outre cette expression comme une covariance sous le modèle de base, ce qui donne un estimateur pratique prédisant les gains d'alignement réalisables à partir des seuls échantillons du modèle de base. Nous étendons notre analyse au cadre de la récompense proxy, en montrant que l'écart entre l'alignement idéal et l'alignement proxy (reward hacking) croît avec l'ampleur de l'erreur de récompense et lorsque le facteur de pénalité KL diminue. Nous prouvons ensuite que l'assemblage de récompenses atténue le reward hacking, fournissant une justification théorique à cette technique utilisée en pratique. Empiriquement, nous calculons la frontière de Pareto KL–récompense pour deux tâches de LM, la sécurité et le résumé, et montrons que best-of-N s'approche étroitement de la limite théorique, tandis que PPO et GRPO restent nettement sous-optimaux. Nos résultats théoriques éclairent plusieurs phénomènes observés empiriquement dans la littérature sur l'alignement et suggèrent que des améliorations algorithmiques sont nécessaires pour atteindre un alignement optimal sans coûts d'inférence élevés.
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.