atlas

Research map / Probabilistic and scientific modeling / Variational and generative sampling

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

NeurIPS 2025 · Probabilistic and scientific modeling › Variational and generative sampling · approach: Sequential Monte Carlo for inference · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes a Rao-Blackwellized Monte Carlo estimator for KL divergence between language models (and its gradient), which is unbiased, non-negative, and has no higher variance than the standard MC estimator, and shows more stable RLHF training.

Problem

Sampling-based estimates of KL divergence between language models have high variance and can be negative, which is problematic for RLHF and other applications that need stable KL estimates and gradients.

Approach

Applies Rao-Blackwellization to the step-wise decomposition of the MC KL estimator, computing the exact per-position KL between next-token distributions conditioned on sampled prefixes; this yields an unbiased, non-negative estimator with provably no greater variance than MC, and a matching Rao-Blackwellized gradient estimator.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace the MC KL estimator with Rao–BlackwellizationKL estimation on IMDB prompts · IMDB prompts, M=1standard deviation of KL estimate: 0.16 -> 0.11Helped
Replace the MC KL estimator with Rao–BlackwellizationKL estimation on IMDB prompts · IMDB prompts, M=5standard deviation of KL estimate: 0.07 -> 0.05Helped
Replace the MC KL estimator with Rao–BlackwellizationKL estimation on IMDB prompts · IMDB prompts, M=10standard deviation of KL estimate: 0.05 -> 0.03Helped
Use the Horvitz–Thompson estimator instead of MCKL estimation on IMDB prompts · IMDB promptsstandard deviation of KL estimate: 0.16 -> 0.16; 0.07 -> 0.07; 0.05 -> 0.05No clear effect
Use the control variate with optimal alpha instead of MCKL estimation on IMDB prompts · IMDB promptsstandard deviation of KL estimate: 0.16 -> 0.16; 0.07 -> 0.07; 0.05 -> 0.05No clear effect
Set the control-variate alpha to 1Control-variate KL estimator · IMDB promptsstandard deviation of KL estimate: 0.16 -> 2.54; 0.07 -> 1.13; 0.05 -> 0.79Hurt
Set the control-variate alpha to 1Control-variate KL estimator · IMDB promptsestimated KL: 6.76 -> 6.28Hurt
Replace the MC KL-gradient estimator with the Rao–Blackwellized gradient estimatorRLHF fine-tuning · Sentiment-controlled RLHF, 40 promptsvariance of gradient norm: 59.90 -> 45.44; 24.6% reductionHelped
Replace the MC KL-gradient estimator with the Rao–Blackwellized gradient estimatorRLHF fine-tuning · RLHF reward–KL Pareto frontiershare of overall Pareto-front points: 78%Helped
Replace the MC KL-gradient estimator with the Rao–Blackwellized gradient estimatorRLHF fine-tuning · RLHF reward–KL Pareto frontier, KL values below 5share of overall Pareto-front points: 95%Helped
Replace the MC KL-gradient estimator with the Rao–Blackwellized gradient estimatorRLHF fine-tuning · Sentiment-controlled generationtraining stabilityHelped

Surprising findings

Limitations

Experimental setup

Datasets: IMDB

Benchmarks: IMDB sentiment-controlled generation

Metrics: estimator standard deviation bias average reward KL divergence Pareto frontier fraction gradient norm variance

Baselines: Monte Carlo KL estimator Horvitz-Thompson estimator control variate estimator (alpha=1) control variate estimator (optimal alpha) MC gradient estimator

Builds on: Rao-Blackwell theorem control variate KL estimator (Schulman k3) Horvitz-Thompson estimator DPO REINFORCE

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy