On Reparameterizing the Score Function
Mohammad Hossein Amani, Leonardo Bocchieri, Maxime Peyrard, Clement Hongler, Robert West
NeurIPS page · OpenReview · Open on the map
Category: LLM Post-Training: RL & Distillation › Group-Relative Policy Optimization for LLM Fine-Tuning · Type: new method · Keywords: policy gradients, score function reparameterization, variance reduction, sequential decision making, reinforcement learning, control variate
Areas: LLM Reasoning › Reasoning Optimization › Credit assignment in reinforcement learning; RL for LLMs & Agents › LLM Policy Optimization › LLM Policy Optimization
Summary
The paper proposes History-Reparameterized (HR) policy gradients, which reparameterize the history in the score function to propagate gradients through generated sequences, and introduces Optimal HR (OHR) as a variance-reduced control-variate estimator, achieving substantial variance reduction for policies with sequential dependencies.
Explained to a 5-year-old
Imagine a robot learning to make decisions step by step, like planning a route. Usually, it only looks at each step separately and forgets earlier choices. This new idea lets the robot remember how earlier choices affect later ones, so it can learn better from rare rewards. It also uses a clever trick to make the learning more stable and less noisy. As a result, the robot can plan longer sequences more reliably.
Explained to a 5-year-old, longer
Imagine a robot that has to decide what to do next, like choosing the best path to a destination. It looks at each step one at a time, but it forgets how earlier steps might influence later ones. This forgetting makes it hard to learn when rewards are rare or appear far away. The paper suggests a way to keep track of the whole history of choices, so the robot can see how earlier decisions shape later possibilities. By making the history part of the learning process, gradients can flow back through the whole sequence, helping the robot adjust earlier choices. They also add a special correction that reduces noise in the learning signal, making training more stable. For problems where choices depend on each other, this correction works well and reduces errors. They test the idea on simple models like a random walk, a maze with sparse rewards, and a planning problem for traveling between cities. The results show that the new method can learn longer sequences more reliably than before. It also works well with different ways of relaxing discrete choices, especially when using embedding-level relaxation. Overall, the approach helps robots and AI systems learn from sparse feedback in complex, sequential tasks.
For a technical reader
The method modifies the score function estimator by making the history differentiable, allowing gradients to propagate through the entire generated sequence. A closed-form control-variate coefficient is derived to minimize gradient variance, and different relaxation techniques for discrete tokens are evaluated. Experiments on a linear Markov model, a sparse-reward maze, and a Transformer-based TSP solver demonstrate the variance reduction and improved learning efficiency.
Problem
Policy gradients for autoregressive models treat each token independently, ignoring how earlier decisions affect later distributions, leading to a credit-assignment bottleneck especially when rewards are sparse.
Method
The approach replaces the frozen prefix in the score function with a differentiable reparameterized history, enabling gradients to flow through the generated trajectory. It then derives a centered control-variate estimator with a closed-form coefficient that minimizes gradient variance at the population level. The method also examines different relaxation strategies for discrete tokens, favoring embedding-level relaxation.
Contributions
Introduces History-Reparameterized policy gradients that propagate gradients through generated sequences, derives an optimal control-variate estimator to reduce variance, and analyzes relaxation choices for discrete tokens, demonstrating benefits on sequential tasks.
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