Sign in

Afra Amini

@afraamn.bsky.social
89 followers 169 following 7 posts

Ph.D. Student @ ETH Zürich

PostsRepliesMedia
Afra Amini @afraamn.bsky.social · 06/05/2025
✨Be sure to check out our paper for a detailed discussion of variance reduction techniques applied to KL divergence estimation between language models!
000
Afra Amini @afraamn.bsky.social · 06/05/2025
Finally, we plot the reward–KL Pareto frontier across various KL regularization settings. We find that the RB estimator more effectively constrains the KL divergence, and models trained with it appear significantly more often on the Pareto front:
100
Afra Amini @afraamn.bsky.social · 06/05/2025
In RLHF training, using our RB estimator yields more stable runs compared to the MC estimator. It achieves high rewards while reliably preventing the KL divergence from increasing beyond an acceptable range:
100
Afra Amini @afraamn.bsky.social · 06/05/2025
Notably, the widely used CV(α=1) estimator—also known as the k3 estimator—can suffer from very high variance. It's a special case of control variates, a classic variance reduction method that requires proper choice of α; otherwise, as with CV(α=1), it can increase variance
100
Afra Amini @afraamn.bsky.social · 06/05/2025
When evaluating the KL divergence between the language model before and after preference alignment, our estimator (RB) consistently yields lower standard deviation across all prompts compared to every other estimator available in public RLHF libraries:
100
Afra Amini @afraamn.bsky.social · 06/05/2025
All it took was applying Rao–Blackwellization—a classic variance reduction trick—to the Monte Carlo (MC) estimator, and carefully adapting it for LMs. The result is simple: condition on prefixes and replace the MC estimate with its conditional expectation:
100
Afra Amini @afraamn.bsky.social · 06/05/2025
Current KL estimation practices in RLHF can generate high variance and even negative values! We propose a provably better estimator that only takes a few lines of code to implement.🧵👇 w/ @xtimv.bsky.social and Ryan Cotterell code: arxiv.org/pdf/2504.10637 paper: github.com/rycolab/kl-rb
173