Afra Amini's Avatar

Afra Amini

@afraamn.bsky.social

Ph.D. Student @ ETH Zürich

70 Followers  |  169 Following  |  7 Posts  |  Joined: 19.11.2024  |  1.4911

Latest posts by afraamn.bsky.social on Bluesky

✨Be sure to check out our paper for a detailed discussion of variance reduction techniques applied to KL divergence estimation between language models!

06.05.2025 14:59 — 👍 0    🔁 0    💬 0    📌 0
Post image

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:

06.05.2025 14:59 — 👍 0    🔁 0    💬 1    📌 0
Post image

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:

06.05.2025 14:59 — 👍 0    🔁 0    💬 1    📌 0

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

06.05.2025 14:59 — 👍 0    🔁 0    💬 1    📌 0
Post image

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:

06.05.2025 14:59 — 👍 0    🔁 0    💬 1    📌 0
Post image

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:

06.05.2025 14:59 — 👍 0    🔁 0    💬 1    📌 0
Post image

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

06.05.2025 14:59 — 👍 7    🔁 3    💬 1    📌 0

@afraamn is following 20 prominent accounts