New RL paper flags two common mistakes in KL-gradient estimation for LLM training

kastnerkyle · x · 2026-07-26

The paper points out several implementation pitfalls in estimating gradients for KL divergence during RL training for LLMs.

It highlights two main issues:

The authors show the impact of these mistakes with tabular examples and LLM experiments, and they explain the correct way to implement the KL gradient. The post suggests this could affect practical open-source RLHF stacks such as TRL and Open Instruct, as well as pseudocode used in seminal work like GRPO.

Related event: New Research Reveals Flaws in KL Estimators for LLM RL Training(4 posts)→

Original post →

More from Research

Research channel →