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​ 대신 제프리스 발산 항에 의해 결정된다. 나아가 이 표현을 기본 모델 하에서의 공분산으로 재구성하여, 기본 모델 표본만으로 달성 가능한 정렬 이득을 예측하는 실용적인 추정기를 제시한다. 우리는 분석을 프록시 보상 설정으로 확장하여, 이상적 정렬과 프록시 정렬 간의 격차(보상 해킹)가 보상 오차의 크기가 커질수록 그리고 KL 페널티 계수가 감소할수록 커짐을 보인다. 이어서 보상 앙상블이 보상 해킹을 완화함을 증명하여, 실제로 사용되는 이 기법에 대한 이론적 정당성을 제공한다. 실증적으로 우리는 안전성과 요약이라는 두 가지 LM 과제에 대해 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