mlsanityData to 14 Oct 2026

Better Estimation of the Kullback--Leibler Divergence Between Language Models

arXiv 2504.10637 ↗First posted 14 Apr 2025cs.CL cs.AI cs.LGcited by 11

On the map: LLM alignment / RLHF / preference optimisation → LLM preference optimization methods

also in 1 more
Abstract (arXiv)

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.

Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Placed in LLM preference optimization methods, one of 10 directions in LLM alignment / RLHF / preference optimisation. Builds on 15 of its 41 references that are in the map. First posted on arXiv 14 Apr 2025.

Builds on

15 of 41 references.

Closest ancestors · 2

Same direction, newest first

  1. 2023Zephyr: Direct Distillation of LM Alignment25 Oct
  2. 2022Training language models to follow instructions with human feedback4 Mar

Other references · 13

  1. 2017Attention Is All You Needcited by 60,361
  2. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
  3. 2017Deep reinforcement learning from human preferencescited by 3,912
  4. 2020Learning to summarize from human feedbackcited by 2,588
  5. 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 2,057
  6. 2023On-Policy Distillation of Language Models: Learning from Self-Generated Mistakescited by 939
  7. 2023UltraFeedback: Boosting Language Models with Scaled AI Feedbackcited by 406
  8. 2024Activation Scaling for Steering and Interpreting Language Modelscited by 35
  9. 2024Context versus Prior Knowledge in Language Modelscited by 26
  10. 2018Using Large Ensembles of Control Variates for Variational Inferencecited by 21
  11. 2024What Languages are Easy to Language-Model? A Perspective from Learning Probabilistic Regular Languagescited by 20
  12. 2024Can Transformers Learn n-gram Language Models?cited by 11
1 more
  1. 2024The Role of n-gram Smoothing in the Age of Neural Networkscited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 10.

11 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Rethinking Kullback-Leibler Divergence in Knowledge Distillation for Large Language Models
  2. 2025Establishing a Scale for Kullback-Leibler Divergence in Language Models Across Various Settings
  3. 2024Correcting the Mythos of KL-Regularization: Direct Alignment without Overoptimization via Chi-Squared Preference Optimization
  4. 2026Diversity-Aware Reverse Kullback-Leibler Divergence for Large Language Model Distillation
  5. 2025Learning Parametric Distributions from Samples and Preferences
  6. 2026Do We Really Need KL Divergence for On-Policy Distillation of Large Language Models?
  7. 2026Theoretical Limits of Language Model Alignment
  8. 2025Achieving Logarithmic Regret in KL-Regularized Zero-Sum Markov Games