# On-Policy Counterfactual Influence

*Rhys Gould, Yaowen Ye, Stuart J Russell, Jacob Steinhardt*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/148864) · [OpenReview](https://openreview.net/forum?id=uca0HSKmnM) · [Open on the map](../papers.html#p148864)

Category: [LLM Post-Training: RL & Distillation](../pcat/18.md) › [LLM Alignment Optimization](../pgroup/232.md) · Type: new method · Keywords: on-policy influence, reinforcement learning, policy-data interaction, attribution methods, influence-weighted retraining

Areas: [RL for LLMs & Agents](../areas/llm-rl.md) › Language Model Reinforcement Learning › Exploration in Reinforcement Learning

## Summary
On-Policy Counterfactual Influence introduces a tractable influence measure for on-policy RL that accounts for policy-data interaction, enabling accurate attribution and influence-weighted retraining.

## Explained to a 5-year-old
In reinforcement learning, a computer program learns by trying actions and seeing what happens. Sometimes we want to know which past experiences changed how the program behaves later. The paper creates a simple method that can tell us which experiences were helpful or harmful. This helps us fix bad experiences and keep good ones, making the program work better. It makes training computer programs more trustworthy and easier to understand.

## Explained to a 5-year-old, longer
In reinforcement learning, a computer program learns by doing things and getting rewards or punishments. It tries many actions, and each time it updates its knowledge based on what happened. Sometimes we want to know which specific experiences changed how the program behaves later. The paper creates a way to measure the influence of each experience on the program's future actions. This method looks at how one experience affects the next, and so on, like a chain of cause and effect. It makes sure the measurement is simple enough to run on real training processes without taking too long. By using this influence measure, we can see which experiences helped the program improve and which hurt it. We can then remove or fix the harmful experiences and keep the good ones. This leads to a more reliable and faster learning process for the program. It also helps researchers understand why their models behave the way they do. Overall, the method makes it easier to debug and improve reinforcement learning systems. It turns a complex learning process into something we can examine and control more easily.

## For a technical reader
The paper addresses the difficulty of tracing how individual training samples affect a policy in on-policy reinforcement learning, where each update changes the data distribution for future steps. It proposes a tractable influence measure that explicitly models the feedback loop between policy updates and subsequent data, and can be computed with linear cost even for large training runs using optimizers like AdamW. Empirical evaluations show that this measure accurately predicts the impact of removing specific events and can distinguish helpful from harmful experiences, enabling targeted retraining. The approach thus provides a practical tool for debugging and improving RL pipelines without requiring full re-training or off-policy assumptions. By integrating influence-weighted updates, practitioners can achieve better performance and more reliable model behavior in modern RL systems.

## Problem
Quantifying how individual training events influence a policy's behavior in on-policy reinforcement learning is challenging due to cascading effects of policy updates. Existing attribution methods designed for off-policy or supervised learning fail to capture this policy-data interaction.

## Method
The approach derives an influence measure that incorporates policy-data interaction, making it computationally tractable for practical training setups and optimizers like AdamW, with linear scaling in the number of training events. It can be computed during on-policy training and used to identify helpful or harmful events.

## Results
The approach reliably predicts the impact of individual training events and enables performance improvements through influence-weighted retraining, whereas traditional attribution methods fail.

## Contributions
It formalizes the problem of attributing behaviors to training events in on-policy RL, derives a tractable influence measure that accounts for policy-data interaction, and demonstrates its utility for diagnosing and improving RL training pipelines.

## Practical relevance
Enables principled debugging and improvement of RL training pipelines, leading to more reliable and efficient model development.

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](../feedback/?on=p/148864)
