NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Anatomy of Off-Policy Policy Gradient: Importance Sampling, KL Regularization, and Baselines

Haoqun Cao, Yurun Yuan, Tengyang Xie

NeurIPS page · OpenReview · Open on the map

Category: LLM Post-Training: RL & Distillation › LLM Alignment Optimization · Type: theory · Keywords: off-policy policy gradient, importance sampling, KL regularization, baselines, group-relative policy gradient, GRPO

Areas: RL for LLMs & Agents › LLM Policy Optimization › Trust-Region Policy Optimization

Summary

The paper provides a unified theoretical analysis of off-policy policy gradient methods, showing that only trajectory-level importance weighting or KL regularization paired with a grouped-mean baseline preserve the optimal policy, and connects these ideas to GRPG, GRPO, and asymmetric REINFORCE.

Explained to a 5-year-old

In training big language models, we sometimes use old data to improve them. The paper looks at how to make sure the improvements are safe. It finds two ways to keep the model from going wrong: using a special weighting and adding a gentle penalty. It also shows that a simple adjustment can make the model more careful. This helps researchers build better models.

Explained to a 5-year-old, longer

When we train big language models, we often reuse old examples to help them learn. Sometimes the model sees data that doesn't match what it was trained on, which can cause problems. The paper studies why this happens and how to fix it. It discovers that only two special tricks keep the best model as a good choice. One trick is to weight each example carefully, but it can become too heavy over long sequences. The other trick uses a gentle penalty and a simple average to guide learning. This second trick is linked to a method called group-relative policy gradient. The paper also shows that a small shift in the average can make the model more cautious, like a safety net. This cautious approach is similar to ideas used in offline reinforcement learning. By connecting these ideas, the work gives researchers a clearer picture of how to safely apply off-policy methods in real-world language model training.

For a technical reader

The paper analyzes why off-policy policy gradient works in LLM post-training despite theoretical assumptions. It shows that only trajectory-level importance weighting or KL regularization with a grouped baseline preserve optimal policies. The KL route is equivalent to a group-relative update and a Bellman residual minimization, and it yields finite-sample regret bounds under coverage assumptions. Additionally, a constant baseline shift introduces pessimism, linking to offline RL frameworks.

Problem

Policy gradient methods assume on-policy sampling, but in practice they are often applied off-policy, leading to distribution shift. Understanding when and how off-policy deployment is justified, and what role importance sampling, KL regularization, and baselines play, is a key challenge.

Method

The authors analyze a general class of off-policy policy gradient objectives, showing that only trajectory-level importance weighting or KL regularization paired with a grouped-mean baseline keep the optimal policy as a stationary point. They connect the KL route to the group-relative policy gradient update, derive an equivalence to a trajectory-level Bellman residual minimization, and provide finite-sample regret bounds under all-policy coverage. They also reveal that a constant baseline shift introduces pessimism, linking to offline RL frameworks.

Results

The analysis yields finite-sample regret bounds under all-policy coverage for the KL-regularized approach and a regret bound with single-policy coverage for the asymmetric REINFORCE formulation.

Contributions

It unifies off-policy policy gradient corrections, identifies the essential role of KL regularization and baselines, establishes theoretical connections to GRPG/GRPO and offline RL pessimism, and provides regret guarantees for both all-policy and single-policy coverage.

Limitations and assumptions

The results rely on coverage assumptions (all-policy or single-policy) and the trajectory-level importance weighting approach is limited by the curse of horizon.

Practical relevance

The findings guide the design of more reliable off-policy policy gradient methods for LLM post-training by clarifying when and how KL regularization and baselines can correct distribution shift.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction