Lune

NeurIPS2025Top-tier venue

Better Estimation of the Kullback-Leibler Divergence Between Language Models

Afra Amini, Tim Vieira, Ryan Cotterell

Abstract

Estimating the Kullback--Leibler (KL) divergence between language models has many applications, e.g., reinforcement learning from human feedback (RLHF), interpretability, and knowledge distillation. However, computing the exact KL divergence between two arbitrary language models is intractable. Thus, practitioners often resort to sampling-based estimators. While it is easy to fashion a simple Monte Carlo (MC) estimator that provides an unbiased estimate of the KL divergence between language models, this estimator notoriously suffers from high variance and can even result in a negative estimate of the KL divergence, a non-negative quantity. In this paper, we introduce a Rao--Blackwellized estimator that is unbiased and provably has variance less than or equal to that of the standard Monte Carlo estimator. In an empirical study on sentiment-controlled fine-tuning, we show that our estimator provides more stable KL estimates and reduces variance substantially. Additionally, we derive an analogous Rao--Blackwellized estimator of the gradient of the KL divergence, which leads to more stable training and produces models that more frequently appear on the Pareto frontier of reward vs. KL compared to the ones trained with the MC estimator of the gradient.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Efficient KL Divergence Estimation via Truncated Top-K Integration for Large Language Models cites Learning to summarize with human feedback
  • Direct Preference Optimization: Your Language Model is Secretly a Reward Model cites Training language models to follow instructions with human feedback
  • Self-Distillation Enables Continual Learning cites Learning to summarize with human feedback
  • Self-Distillation Enables Continual Learning cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
  • Self-Distillation Enables Continual Learning cites Reinforcement Learning via Self-Distillation
  • Reinforcement Learning via Self-Distillation cites Self-Distillation Enables Continual Learning
  • Self-Distillation Enables Continual Learning cites On-Policy Distillation of Language Models: Learning from Self-Generated Mistakes
  • Self-Distillation Enables Continual Learning cites Training language models to follow instructions with human feedback
  • Privileged Information Distillation for Language Models cites Self-Distillation Enables Continual Learning
  • Privileged Information Distillation for Language Models cites Reinforcement Learning via Self-Distillation
  • Privileged Information Distillation for Language Models cites On-Policy Distillation of Language Models: Learning from Self-Generated Mistakes
  • Reinforcement Learning via Self-Distillation cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
  • Reinforcement Learning via Self-Distillation cites On-Policy Distillation of Language Models: Learning from Self-Generated Mistakes
  • On-Policy Distillation of Language Models: Learning from Self-Generated Mistakes cites Training language models to follow instructions with human feedback
  • ULTRAFEEDBACK: Boosting Language Models with Scaled AI Feedback cites Learning to summarize with human feedback
  • ULTRAFEEDBACK: Boosting Language Models with Scaled AI Feedback cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
  • ULTRAFEEDBACK: Boosting Language Models with Scaled AI Feedback cites Training language models to follow instructions with human feedback
  • Hybrid Policy Distillation for LLMs cites Direct Preference Optimization: Your Language Model is Secretly a Reward Model
  • Hybrid Policy Distillation for LLMs cites On-Policy Distillation of Language Models: Learning from Self-Generated Mistakes
  • Hybrid Policy Distillation for LLMs cites Training language models to follow instructions with human feedback
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Self-Distillation Enables Continual LearningIdan Shenfeld, Mehul Damani, Jonas Hübotter, Pulkit AgrawalICML 2026 · 159 citations
  2. Privileged Information Distillation for Language ModelsEmiliano Penaloza, Dheeraj Vattikonda, Nicolas Gontier, Alexandre Lacoste et al.ICML 2026 · 61 citations
  3. Hybrid Policy Distillation for LLMsWenhong Zhu, Ruobing Xie, Rui Wang, Pengfei LiuICML 2026 · 2 citations
  4. Efficient KL Divergence Estimation via Truncated Top-K Integration for Large Language ModelsXinyuan Wang, Luozhijie Jin, Bo Wang, Yuan Li et al.ACL 2026
  5. Reinforcement Learning via Self-DistillationJonas Hübotter, Frederike Lübeck, Lejs Behric, Anton Baumann et al.ICML 2026

Builds on11

  1. Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida et al.NeurIPS 2022 · 24,707 citations
  2. Direct Preference Optimization: Your Language Model is Secretly a Reward ModelRafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D. Manning et al.NeurIPS 2023 · 10,924 citations
  3. On-Policy Distillation of Language Models: Learning from Self-Generated MistakesRishabh Agarwal, Nino Vieillard, Yongchao Zhou, Piotr Stanczyk et al.ICLR 2024 · 311 citations
  4. ULTRAFEEDBACK: Boosting Language Models with Scaled AI FeedbackGanqu Cui, Lifan Yuan, Ning Ding, Guanming Yao et al.ICML 2024 · 286 citations
  5. Learning to summarize with human feedbackNisan Stiennon, Long Ouyang, Jeffrey Wu, Daniel M. Ziegler et al.NeurIPS 2020 · 124 citations

Related papers

  1. Variational Best-of-N AlignmentAfra Amini, Tim Vieira, Elliott Ash, Ryan CotterellICLR 2025 · 1 citation
  2. Reliable Estimation of KL Divergence using a Discriminator in Reproducing Kernel Hilbert SpaceSandesh Ghimire, Aria Masoomi, Jennifer G. DyNeurIPS 2021 · 17 citations
  3. Don't Ignore the Tail: Decoupled Distillation Produces Top Maths Students on an Academic BudgetSayantan Dasgupta, Trevor Cohn, Tim BaldwinICML 2026
  4. Language Model Alignment with Elastic ResetMichael Noukhovitch, Samuel Lavoie, Florian Strub, Aaron C. CourvilleNeurIPS 2023 · 42 citations
  5. ff-Divergence Regularized RLHF: Two Tales of Sampling and Unified AnalysesDi Wu, Chengshuai Shi, Jing Yang, Cong ShenICML 2026
Dusk over the sea between two cliffs drawn in fine vertical lines