HyperAIHyperAI

Command Palette

Search for a command to run...

強化学習
LLM

言語モデルアラインメントの理論的限界

Lucas Monteiro Paes Natalie Mackraz Barry-John Theobald Federico Danieli

概要

言語モデル(LM)のアラインメントは、基盤モデルの能力を保ちながら、モデルの出力を人間の選好に合うよう改善する。最も一般的なアラインメント手法は、(i)KLダイバージェンス制約の下で期待報酬を最大化する強化学習、および(ii)N個の独立サンプルの中から最高報酬の出力を選ぶbest-of-Nアラインメントである。これらの手法が広く使われているにもかかわらず、KL予算の下での報酬改善の根本的限界は十分に理解されていない。我々は、固定されたKLダイバージェンス予算に対して達成可能な期待報酬利得の最大値を導出することで、KL正則化アラインメントの情報理論的限界を特徴付ける。第一の結果として、最適な報酬改善の閉形式表現を提供する。これは先行研究で用いられたKL\sqrt { \mathrm { K L } }KL​ではなく、Jeffreysダイバージェンス項によって支配される。さらに、この表現を基盤モデルの下での共分散として再定式化し、基盤モデルのサンプルのみから達成可能なアラインメント利得を予測する実用的な推定量を得る。我々は分析を代理報酬設定に拡張し、理想と代理のアラインメントのギャップ(報酬ハッキング)が、報酬誤差の大きさとともに、またKLペナルティ係数が減少するときに拡大することを示す。次に、報酬アンサンブルが報酬ハッキングを軽減することを証明し、実務で用いられるこの手法に理論的正当性を与える。実証的に、安全性と要約というLMの2つのタスクについてKL–報酬パレートフロンティアを計算し、best-of-Nが理論的限界に近接する一方で、PPOとGRPOは依然として大幅に最適性を欠くことを示す。我々の理論的結果は、アラインメント文献で経験的に観察されているいくつかの現象に光を当て、高い推論コストなしに最適なアラインメントを達成するにはアルゴリズムの改善が必要であることを示唆する。

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\sqrt { \mathrm { K L } }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,λ)\lambda \text{JD}(\pi_{\text{base}} || \pi_{r, \lambda})λ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′,er(x,y)/λEπbase(⋅∣x)[er(x,y)/λ])\Delta(r, r') = \text{Cov}_{\pi_{\text{base}}(\cdot | \mathbf{x})} \left(r', \frac{e^{r(\mathbf{x}, \mathbf{y}) / \lambda}}{\mathbb{E}_{\pi_{\text{base}}(\cdot | \mathbf{x})} \left[ e^{r(\mathbf{x}, \mathbf{y}) / \lambda} \right]}\right)Δ(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)O(n^{-1/2})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.


AIでAIを構築

アイデアからローンチまで — 無料のAIコーディング支援、すぐに使える環境、最高のGPU価格でAI開発を加速。

AI コーディング補助
すぐに使える GPU
最適な料金体系

HyperAI Newsletters

最新情報を購読する
北京時間 毎週月曜日の午前9時 に、その週の最新情報をメールでお届けします
メール配信サービスは MailChimp によって提供されています