On-Policy Counterfactual Influence
Rhys Gould, Yaowen Ye, Stuart Russell, Jacob Steinhardt
NeurIPS 2026
Abstract. On-policy training plays an important role in modern machine learning, especially in reinforcement learning (RL) for language models. However, quantifying how training data influences the policy's behavior is difficult in on-policy settings: one must account for the cascading effect by which a training event affects its immediate policy update, which in turn affects future action samples, which further affects future policy updates, and so on. Attribution methods developed for off-policy and supervised learning (e.g. influence functions) do not account for such \emph{policy-data interaction}, and can therefore fail in on-policy settings. In this work, we formalize the problem of attributing behaviors to individual training events in the on-policy setting. We derive an influence measure that accounts for policy-data interaction while also being tractable to compute in practical training setups (e.g. LM finetuning) and for realistic optimizers (e.g. AdamW) at a cost that scales linearly in the total number of training events. Empirically, our influence measure accurately predicts the true effect of ablating specific events during RL, while traditional methods fail to do so. Further, we show that this influence accurately identifies helpful and harmful RL training events, allowing us to improve performance via influence-weighted retraining. Overall, we show that accounting for policy-data interaction is both necessary and tractable, allowing for principled training intervention in modern RL pipelines.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:49 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The paper studies training-data attribution in on-policy reinforcement learning. It observes that removing a training event changes not only the immediate update but also the policy that produces future data. The proposed counterfactual influence adds a policy-data interaction term to the usual loss-landscape propagation and provides a backward algorithm for gradient descent and AdamW.
The reviewers agree that this is an important and clearly presented contribution. Reviewer nvR6 highlights the new Pi term and the unifying view of existing attribution methods. Reviewers B3rc and bxGA find the controlled MDP validation convincing, particularly the direct comparison with true ablation effects. They also view the influence-weighted retraining experiment and the AdamW extension as strengths.
The response should focus on the following points.
-
Reviewer nvR6 notes that the theory assumes a strictly on-policy single update per batch, while practical PPO and GRPO use clipping or importance ratios, several minibatch epochs, KL or reference terms, and reused rollouts. Please explain how the derivation changes in these settings and which parts of the current estimator remain valid.
-
Reviewers B3rc and bxGA ask for practical diagnostics of first-order accuracy. The learning-rate study is useful, but practitioners need a way to detect approximation failure in a new run. Please discuss residual checks, perturbation-size criteria, small exact-ablation checks, or other diagnostics, and report sensitivity to Monte Carlo noise where possible.
-
Reviewers B3rc and bxGA ask for a more detailed scalability analysis. Please report wall-clock time, memory, historical storage, and curvature-vector product cost as training length, batch size, sequence length, and model size increase. This is important because linear asymptotic scaling can still have a large constant.
-
All three reviewers regard the language-model experiment as preliminary. Reviewer B3rc and Reviewer nvR6 ask whether influence-based reweighting or harmful-event removal can be demonstrated in that setting. Broader models, tasks, seeds, or a small intervention experiment would make the practical claim stronger.
-
Reviewer bxGA asks about stability across independent runs and robustness to correlated data, curricula, repeated prompts, persistent states, and replay-like reuse. Reviewer nvR6 also requests comparison with directly related RL attribution methods. Please clarify the estimator's scope in these settings and add the closest feasible empirical baselines.
The principal remaining questions concern extension to practical PPO or GRPO updates, first-order reliability, and large-scale cost. The controlled evidence for the central policy-data interaction term is otherwise strong.
Final justification
The authors addressed concerns about practical training updates, first-order diagnostics, computational cost, stability, and the scope of the language-model evidence. Two reviewers stated that their concerns were resolved, while the third retained a positive rating without further discussion.
Read meta-review
Meta-review
The paper studies training-data attribution in on-policy reinforcement learning. It observes that removing a training event changes not only the immediate update but also the policy that produces future data. The proposed counterfactual influence adds a policy-data interaction term to the usual loss-landscape propagation and provides a backward algorithm for gradient descent and AdamW.
The reviewers agree that this is an important and clearly presented contribution. Reviewer nvR6 highlights the new Pi term and the unifying view of existing attribution methods. Reviewers B3rc and bxGA find the controlled MDP validation convincing, particularly the direct comparison with true ablation effects. They also view the influence-weighted retraining experiment and the AdamW extension as strengths.
The response should focus on the following points.
-
Reviewer nvR6 notes that the theory assumes a strictly on-policy single update per batch, while practical PPO and GRPO use clipping or importance ratios, several minibatch epochs, KL or reference terms, and reused rollouts. Please explain how the derivation changes in these settings and which parts of the current estimator remain valid.
-
Reviewers B3rc and bxGA ask for practical diagnostics of first-order accuracy. The learning-rate study is useful, but practitioners need a way to detect approximation failure in a new run. Please discuss residual checks, perturbation-size criteria, small exact-ablation checks, or other diagnostics, and report sensitivity to Monte Carlo noise where possible.
-
Reviewers B3rc and bxGA ask for a more detailed scalability analysis. Please report wall-clock time, memory, historical storage, and curvature-vector product cost as training length, batch size, sequence length, and model size increase. This is important because linear asymptotic scaling can still have a large constant.
-
All three reviewers regard the language-model experiment as preliminary. Reviewer B3rc and Reviewer nvR6 ask whether influence-based reweighting or harmful-event removal can be demonstrated in that setting. Broader models, tasks, seeds, or a small intervention experiment would make the practical claim stronger.
-
Reviewer bxGA asks about stability across independent runs and robustness to correlated data, curricula, repeated prompts, persistent states, and replay-like reuse. Reviewer nvR6 also requests comparison with directly related RL attribution methods. Please clarify the estimator's scope in these settings and add the closest feasible empirical baselines.
The principal remaining questions concern extension to practical PPO or GRPO updates, first-order reliability, and large-scale cost. The controlled evidence for the central policy-data interaction term is otherwise strong.
Final justification
The authors addressed concerns about practical training updates, first-order diagnostics, computational cost, stability, and the scope of the language-model evidence. Two reviewers stated that their concerns were resolved, while the third retained a positive rating without further discussion.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper focuses on the training data attribution (TDA) in the on-policy RL setting. Its central observation is that existing TDA methods implicitly assume a fixed training-data distribution and therefore miss policy-data interaction: ablating an event changes the policy, which changes future rollouts, which changes future updates. The authors define a counterfactual influence, give a first-order approximation, and derive a closed form in which the per-step propagation operator separates loss-landscape effects (handled by prior work) from a new policy-data interaction term. Experiments cover a linear MDP with ground-truth ablations and a small LM-finetuning setup.
Strengths and weaknesses
- Strengths:
- The conceptual contribution is genuine and well-isolated. The term is a clean, previously-overlooked piece, and Corollary 1 gives a satisfying credit-assignment interpretation.
- The unifying view in Sec. 3.3 is valuable: TracIn, SGD-Influence/SOURCE, and influence functions all drop out as special cases of one expression, which clarifies the literature. Extending the O(KB) algorithm to AdamW (Prop. 2 / Prop. 3) is a real practical advance over prior unrolling work that stopped at SGD.
- Weaknesses:
- The theory assumes the idealized update Eq. (1): strictly on-policy, single gradient step per batch, no importance-sampling ratios or clipping. Real PPO/GRPO use clipped surrogate losses, multiple minibatch epochs, KL/reference-model penalties, and reused rollouts. It is unclear how much the derivation degrades once updates are off-policy within an iteration. This gap between the analyzed object and the deployed RL deserves discussion.
- No empirical comparison to the directly related RL attribution works, and they are only discussed conceptually. Including them as baselines would sharpen the contribution.
Questions
- How does the analysis hold up under multi-epoch minibatch updates and clipped/IS-ratio GRPO/PPO, where intra-iteration updates are off-policy?
- Can the reweighting intervention be demonstrated in the LM setting, even on a small scale?
- How sensitive is LM attribution accuracy to the MC noise in ? Could variance explain the 3/12 misses?
Limitations
yes
Formatting concerns
- The instruction block of the checklist should be removed.
4 comments
Response (2/2)
How sensitive is LM attribution accuracy to the MC noise in ? Could variance explain the 3/12 misses?
We find that attribution is quite robust to the MC noise in : when we generate 4 independent estimates of this gradient in the GSM8K setup (each from a disjoint set of 1000 GSM8K prompts), they have a pairwise cosine similarity of (mean std taken over all 6 possible pairs), and their downstream attribution scores closely agree, with Pearson correlation and Spearman correlation . Further, the top-1% and top-5% most-influential events (by magnitude; sets of 256 and 1280 events) overlap by % % and % % respectively.
However, our Table 1 results used only 50 prompts which could alter this conclusion; we are currently running the same check at 50 prompts and will report the results soon.
No empirical comparison to the directly related RL attribution works, and they are only discussed conceptually. Including them as baselines would sharpen the contribution.
In our linear MDP experiments (Figure 3) we compared our method to TracIn (which we denoted as , and also considered in our language model experiments in Table 1) and Influence Functions (, which we neglect in our language model experiments for cost reasons), corresponding to the influence measures used by the RL attribution works [1] and [2] respectively. Do you have any other RL attribution works in mind that you feel we should compare to?
[1] Hu, Yuzheng, et al. "A snapshot of influence: A local data attribution framework for online reinforcement learning."
[2] Li, Aaron J., Satyapriya Krishna, and Hima Lakkaraju. "More rlhf, more trust? on the impact of preference alignment on trustworthiness."
Gentle Reminder
We wish to gently remind the reviewer that we have posted a response to their review and hope they can let us know if we’ve addressed their concerns.
We also wanted to follow up on the question of MC noise in . To match the setup of Table 1’s 3/12 finding, we generated 4 independent estimates of this gradient in our algorithmic task RL setup – each from a disjoint set of 50 prompts (matching Table 1) for the addition task – and found that they possess a high pairwise cosine similarity of (mean std taken over all 6 pairs) and have downstream attribution scores that closely agree, with Pearson correlation and Spearman correlation . Further, the top-1% and top-5% most-influential events (by magnitude; sets of 256 and 1280 events) overlap by % % and % % respectively. As a result, we believe that MC noise is unlikely to be the explanation for the 3/12 misses we observe in Table 1.
Response to Authors
Thanks for the detailed review from the authors. Most of my concerns are addressed; therefore, I will keep my positive score.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes a framework for training data attribution in on-policy reinforcement learning. The authors aim to trace a policy’s final behavior back to the individual training events that contributed to it. Existing attribution methods often ignore policy-data interaction: removing a training event not only changes the immediate parameter update, but can also alter the future trajectories sampled by the updated policy, which in turn affects subsequent policy updates. To address this issue, the authors define an on-policy counterfactual influence measure that captures both future loss landscape effects through the Hessian term and policy-data interaction effects through the term. They further derive a tractable algorithm for computing these influence scores and extend the method to practical optimizers such as AdamW.
Strengths and weaknesses
Strengths
-
The paper addresses an important problem in on-policy RL: attributing final policy behavior to individual training events while accounting for policy-data interaction.
-
The proposed counterfactual influence framework is theoretically well motivated and clearly distinguishes between loss landscape effects through and policy-data interaction effects through .
-
The derivation is detailed and technically strong, including an extension to practical optimizers such as AdamW.
-
The proposed algorithm has linear complexity with respect to the number of update steps and batch size , making the method more practical than exhaustive counterfactual retraining.
-
The linear MDP experiments provide strong empirical support, showing that the proposed method better predicts true ablative effects than direct influence, off-policy influence, and influence-function baselines.
-
The influence-based retraining experiment is a useful application, showing that the attribution scores can identify helpful and harmful training events and improve final performance.
-
The discovery/exploitation analysis provides useful intuition for why the term matters, especially when an early training event causes future trajectories that repeatedly exploit a learned strategy.
Weaknesses
-
The empirical validation is still limited relative to the paper’s broader motivation of supporting modern RL pipelines.
-
The language-model finetuning experiment is preliminary, using a relatively small model and a small set of algorithmic tasks, so it is unclear how well the method generalizes to larger RLHF or GRPO settings.
-
Although the algorithm has complexity, the practical wall-clock time, memory usage, and Hessian-vector product costs may still be substantial for long training runs or large models.
-
The paper would benefit from a more detailed scalability analysis, including runtime and memory overhead under different training lengths, batch sizes, and model scales.
-
The method relies on a first-order approximation. While the appendix shows that this approximation can degrade at higher learning rates, the paper provides limited practical guidance on how to diagnose approximation failure in realistic settings.
-
Attribution variance across random seeds is acknowledged but not fully addressed. Additional experiments across independent training runs would help assess the stability and transferability of the influence scores.
-
The method appears to assume relatively clean on-policy sampling. It is less clear how robust the attribution estimates are under correlated trajectories, curriculum learning, replay-like data reuse, or persistent states/prompts across multiple batches.
Questions
-
How does the proposed method scale in realistic large-scale RL finetuning settings?It would be helpful to report wall-clock time, memory overhead, and Hessian-vector product costs under different model sizes, batch sizes, and training lengths.
-
How reliable is the first-order approximation in practical settings? The appendix shows that the approximation can degrade at higher learning rates, but it would be useful to provide clearer diagnostic criteria or practical guidance for when the approximation is expected to fail.
-
How stable are the attribution scores across independent training runs with different random seeds? Since the paper acknowledges high variance in RL training dynamics, additional analysis would help clarify whether the identified helpful or harmful events are run-specific or transferable across runs.
-
How robust is the method when the on-policy data are correlated rather than approximately independent? For example, what happens under curriculum learning, repeated prompts, persistent states across batches, or replay-like data reuse?
-
Can the authors provide stronger evidence in more realistic language-model RL settings? The current LM experiment is promising but limited to a small model and a small set of algorithmic tasks. Evaluation on larger models, more diverse tasks, or more realistic RLHF/GRPO pipelines would better support the broader claims.
Limitations
yes
Final justification
Thank the authors for the careful responses which have addressed my concerns. I maintain my positive review.
Formatting concerns
no concern
4 comments
Response (1/2)
We are glad that the reviewer found our work “addresses an important problem in on-policy RL” and to be “technically strong.” We hope we can address the reviewer’s concerns below.
The empirical validation is still limited relative to the paper’s broader motivation of supporting modern RL pipelines [...] Can the authors provide stronger evidence in more realistic language-model RL settings?
We agree that the faithfulness of our language model experiments to modern RL pipelines is limited. To remedy this, we have ran our influence-weighted retraining in a more realistic setup of GRPO finetuning on GSM8K reasoning problems with Qwen3-0.6B (thinking enabled, LoRA rank 8, steps, rollouts/step, SGD with LR , sequences k tokens), finding that under flipped-correctness poisoning of 30% of GSM8K’s prompts, our intervention is able to recover and exceed the clean unpoisoned performance: weighting using our on-policy measure achieves a held-out GSM8K accuracy of % % (mean std over 4 seeds), with achieving % % and achieving % %, with seed-paired differences % % and % % (mean SEM), while poisoned training without intervention achieves % % and clean/unpoisoned training achieves % %. Namely, all three measures recover from poisoning, but our on-policy measure is able to reach a higher performance ceiling, which we believe acts as additional evidence that our on-policy measure is practically useful in realistic training pipelines. We leave the full details & results for these experiments in Rebuttal A of the General Response.
Although the algorithm has complexity, the practical wall-clock time, memory usage, and Hessian-vector product costs may still be substantial for long training runs or large models [...] The paper would benefit from a more detailed scalability analysis
We agree that a more comprehensive analysis of cost & scalability is warranted. We ran empirical measurements of wall-clock timings and peak host & GPU memories across setups with varying training length, batch size, model size, and LoRA adapter rank, finding that the runtime cost for attribution roughly matches the cost of training the reference run being attributed (a ratio that holds with varying model scale). Concretely, in our GSM8K finetuning setup (GRPO on Qwen3-0.6B, LoRA rank 8, steps, rollouts/step, SGD with LR , sequences k tokens), we find that training takes ~180 min while attribution takes ~206 min on 2×A100 hardware, with a similar training : attribution ratio holding for Qwen3-1.7B too. Out of this ~206 min attribution cost, ~110 min is dominated by Hessian-vector product computation, while the remaining ~96 min is dedicated to computing all per-event gradients for caching purposes. Additionally, our empirical measurements agree with the following scaling laws ( = number of training steps, = sequence length, = batch size, = full model param count, = LoRA param count):
- Runtime: (including parameter & token scaling effects, unlike our original ).
- Peak GPU mem: (storing the whole batch of adapter gradients in worth of memory is an implementation convenience, and one can reduce this to if necessary).
- Peak host mem: bytes for caching all per-event gradients in fp16, and bytes for the LoRA adapter checkpoints (fp32) + per-step gradients (fp32, consumed in backward order).
- Storage: bytes for storing all adapter checkpoints (fp32), and for storing rollout tokens.
Further details behind these laws & empirical measurements can be found in Rebuttal C of the General Response. Given our results, we believe our method is scalable to large-scale training, falling far below the cost of exhaustive training which requires times the cost of training the reference run itself.
Response (2/2)
The method appears to assume relatively clean on-policy sampling. It is less clear how robust the attribution estimates are under correlated trajectories, curriculum learning, replay-like data reuse, or persistent states/prompts across multiple batches.
We agree that these aspects are practically relevant but missing from our paper. We find that our formalism is compatible with repeated prompts, prompt curricula, and – with a modification to our setup – multi-epoch reuse. In particular, to account for repeated prompts & prompt curricula, we note that our derivations place no restriction on the prompt/initial-state distribution , so we are free to make it step-dependent and to force it to match the empirical distribution of prompts seen at step during an actual training run:
allowing the counterfactual influence to be exactly faithful to the prompt distribution seen in a given training run with no approximation. We discuss these aspects in more detail in Rebuttal B of the General Response.
limited practical guidance on how to diagnose approximation failure in realistic settings [...] it would be useful to provide clearer diagnostic criteria or practical guidance for when the approximation is expected to fail
It is true that our paper lacks a clear discussion on practical diagnostics for identifying the validity of our first-order assumption. We have now demonstrated that performing a second-order ratio check – i.e. verifying that (with first-order and second-order influence) for typical training events – is tractable in realistic training setups: for the GSM8K setup described above, we compute this ratio over 40 events (5 events for each step ), finding our first-order assumption to be well-supported with for all events from step 50 onwards, decaying to over training. We find that early steps are quite heavy-tailed, with medians and individual events reaching up to 0.29 at , suggesting that discounting early-step events may be reasonable. We discuss these results in more detail in Rebuttal D1 of the General Response.
Another reasonable check is exact-ablation: ablate a subset of prompts, retrain, and then verify that the change to the final evaluation agrees with the original run’s sum of influences over the prompts that were ablated. We have found that our measure performs well under this check, as seen by our linear MDP results (Figure 3, Spearman over 512 ablations) and algorithmic finetuning results (Table 1, correctly predicting the most important algorithmic task in 9/12 cases).
How stable are the attribution scores across independent training runs with different random seeds?
Under different seeds, the training dataset is also randomly selected from a total pool of training examples, meaning that each seed has a different set of prompts seen during training. As a result, the attribution scores across different seeds are not directly comparable. We will run a GSM8K sweep over 4 seeds where we only vary the rollout/response generation seed while keeping the dataset, LoRA initialization, and corruption seed fixed. We hope to report these agreement statistics soon; please let us know if you would like us to check a different notion of stability instead.
Gentle Reminder
We wish to gently remind the reviewer that we have posted a response to their review and hope they can let us know if we’ve addressed their concerns.
We also wanted to follow up on the question of stability in attribution scores. To isolate sensitivity to rollouts, we ran GSM8K training (same setup as Rebuttal A) over 4 rollout/response generation seeds – fixing the same dataset, LoRA initialization, and corruption seed across these 4 runs (so that the 4 runs have identical prompt sets) – finding that per-prompt attribution scores are highly sensitive to the rollout seed: these 4 seeds have a pairwise Pearson (mean std over all 6 pairings) and Spearman , with low overlaps % % and % % in the top-1% and top-5% sets respectively. This sensitivity emphasizes the importance of computing paired-seed statistics; if each method and were evaluated on their own training runs (with different rollout seeds), performance differences would be confounded by the significant rollout variance we’ve observed above. Our empirical results, including our new GSM8K results, therefore compare all three methods (, , ) on the same runs for each seed.
Thank the authors for the careful responses which have addressed my concerns. I maintain my positive review.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper studies training-data attribution for on-policy RL, where removing one training event can change the policy, which then changes future sampled data and future updates. The authors define a counterfactual influence score for each training event and derive a tractable first-order approximation that includes both future loss-landscape effects and the on-policy policy-data interaction term. They provide an O(KB) algorithm for computing these scores over a training run, including AdamW-style optimizers, and show that the method better predicts true ablation effects than standard influence baselines in a linear MDP, with preliminary evidence on LM finetuning.
Strengths and weaknesses
All in all, this is a good paper. The problem is important because on-policy RL and RL-based LM finetuning are increasingly common, but existing attribution tools often assume a fixed training distribution and miss the feedback loop between policy updates and future data. The paper clearly identifies this gap and gives a principled formulation of counterfactual influence that explicitly includes the policy-data interaction term.
The technical contribution also seems solid. The derivation separates direct influence, future loss-landscape effects, and the on-policy data-distribution effect, and the paper connects prior attribution methods to special cases of the proposed framework. I also appreciate that the algorithm is extended beyond vanilla gradient descent to practical optimizers such as AdamW.
The empirical validation in the linear MDP is convincing. Because the setting is simple enough to estimate ground-truth ablation effects over many seeds, the paper can directly test whether the attribution scores are correct. The proposed method achieves much stronger correlation with true ablation effects than the baselines, and the influence-weighted retraining experiment shows that the scores can be used for useful intervention rather than only post-hoc explanation.
The main weakness is that the LM finetuning experiment is still preliminary. It uses a small model, lora a small set of algorithmic tasks, and only 12 target/seed cases. The result seems promising, but it does not yet fully demonstrate scalability to realistic RLHF or reasoning-RL pipelines.
Another limitation is that the method relies on a first-order approximation. The paper discusses this honestly and shows that the approximation can break down when the learning rate is high, but this still leaves some uncertainty about when the method is reliable in large-scale training. The compute cost is also nontrivial for LM finetuning, requiring roughly 2 A100-80G GPUs and about 2 hours per 100 training steps for one attribution job.
Questions
- Could the authors give practical diagnostics for when the first-order approximation is reliable, beyond the learning-rate study in the linear MDP?
- Could the authors run influence-weighted retraining or harmful-data removal in the LM finetuning setting, not only source-task identification?
- How does the attribution cost scale with model size, sequence length, batch size, and number of training steps in realistic LM RL pipelines?
- Would the authors clarify whether the method remains practical for PPO/GRPO training with larger models and longer rollouts?
Limitations
yes
Formatting concerns
No formatting issues found.
3 comments
Response (1/2)
We would like to thank the reviewer for their helpful comments and the recognition that our work “identifies the gap” in prior work and “gives a principled formulation.” We hope we can answer their concerns below.
does not yet fully demonstrate scalability to realistic RLHF or reasoning-RL pipelines [...] Could the authors run influence-weighted retraining or harmful-data removal in the LM finetuning setting, not only source-task identification?
We agree that the realism of our language model experiments is limited and our demonstration of the influence-weighted retraining technique in the linear MDP setting is small scale. To improve upon this, we have now run our influence-weighted retraining in a more realistic setup involving GRPO finetuning on GSM8K reasoning problems with Qwen3-0.6B (thinking enabled, LoRA rank 8, steps, rollouts/step, SGD with LR , sequences k tokens), finding that under flipped-correctness poisoning of 30% of GSM8K’s prompts, our intervention is able to recover and exceed the clean unpoisoned performance: weighting using our on-policy measure achieves a held-out GSM8K accuracy of % % (mean std over 4 seeds), with achieving % % and achieving % %, with seed-paired differences % % and % % (mean SEM), while poisoned training without intervention achieves % % and clean/unpoisoned training achieves % %. Namely, all three measures recover from poisoning, but our on-policy measure is able to reach a higher performance ceiling, as we saw in our linear MDP experiments. We leave the full details & results for these experiments in Rebuttal A of the General Response.
Another limitation is that the method relies on a first-order approximation [...] Could the authors give practical diagnostics for when the first-order approximation is reliable
Our paper indeed lacks a clear discussion of practical diagnostics for identifying the validity of the first-order assumption. We have now demonstrated that performing the second-order ratio check considered in the small-scale learning rate study – verifying that for typical training events – is tractable in realistic training setups: for the GSM8K setup described above, we compute this ratio over 40 events (5 events for each step ), finding our first-order assumption to be well-supported with for all events from step 50 onwards, decaying to over training. We find that early steps are quite heavy-tailed, with medians and individual events reaching up to 0.29 at , suggesting that discounting early-step events may be reasonable. We discuss these results in more detail in Rebuttal D1 of the General Response.
Another reasonable check is exact-ablation: ablate a subset of prompts, retrain, and then verify that the change to the final evaluation agrees with the original run’s sum of influences over the prompts that were ablated. We have found that our measure performs well under this check, as seen by our linear MDP results (Figure 3, Spearman over 512 ablations) and algorithmic finetuning results (Table 1, correctly predicting the most important algorithmic task in 9/12 cases).
Response (2/2)
How does the attribution cost scale with model size, sequence length, batch size, and number of training steps in realistic LM RL pipelines? [...] Would the authors clarify whether the method remains practical for PPO/GRPO training with larger models and longer rollouts?
We agree that a more comprehensive analysis of cost & scalability is necessary. We have now run empirical measurements of wall-clock timings and peak host & GPU memories across setups with varying training length, batch size, model size, and LoRA adapter rank, finding that the runtime cost for attribution roughly matches the cost of training the reference run being attributed (a ratio that holds with varying model scale). Concretely, in our GSM8K finetuning setup (GRPO on Qwen3-0.6B, LoRA rank 8, steps, rollouts/step, SGD with LR , sequences k tokens), we find that training takes ~180 min while attribution takes ~206 min on 2×A100 hardware, with a similar training : attribution ratio holding for Qwen3-1.7B too. Our empirical measurements also agree with the following scaling laws ( = number of training steps, = sequence length, = batch size, = full model param count, = LoRA param count):
- Runtime:
- Peak GPU mem: (storing the whole batch of adapter gradients in worth of memory is an implementation convenience, and one can reduce this to if necessary).
- Peak host mem: bytes for caching all per-event gradients in fp16, and bytes for the LoRA adapter checkpoints (fp32) + per-step gradients (fp32, consumed in backward order).
- Storage: bytes for storing all adapter checkpoints (fp32), and for storing rollout tokens.
Further details behind these laws & empirical measurements can be found in Rebuttal C of the General Response. Based on these results, we believe that our method is indeed practical for large-scale training, falling far below the cost of exhaustive training which requires times the cost of training the reference run itself.
Gentle Reminder
We wish to gently remind the reviewer that we have posted a response to their review and hope they can let us know if we’ve addressed their concerns.
Comments on the paper
8 comments
General Response: Summary (1/8)
We thank the reviewers for their detailed and constructive comments, and we are glad that the reviewers found our contribution to be “genuine and well-isolated” (nvR6) with “detailed and technically strong” derivations (bxGA) and experiments that are “convincing” (B3rc) and provide “strong empirical support” (bxGA).
The reviewers converged on four main concerns which we address with new experiments & theory: the realism of our language model experiments (B3rc, bxGA, nvR6), robustness to the strict on-policy assumption (nvR6, bxGA), the scalability of our method (B3rc, bxGA), and practical checks for verifying the first-order assumption (B3rc, bxGA).
A) We ran our influence-weighted retraining intervention in a more realistic setup: GRPO finetuning of Qwen3-0.6B on GSM8K reasoning problems (thinking enabled, LoRA rank 8, steps, rollouts/step, SGD with LR , sequences k tokens), sweeping intervention strengths . To test recovery from data poisoning, we also flip correctness for 30% of GSM8K’s prompts (incorrect answers rewarded 1 and correct answers 0 for these prompts). We find:
i. Our intervention recovers and exceeds clean performance, achieving a held-out GSM8K accuracy of % % (mean std, 4 seeds) at under our on-policy influence, compared to % % for the poisoned no-intervention baseline (), % % for a clean/unpoisoned run, and % for Qwen3-0.6B without finetuning.
ii. Our on-policy influence achieves the best performance compared to off-policy alternatives, with achieving % % () and achieving % % (), with seed-paired differences % % and % % (mean SEM) at matched .
B) We extend our formalism to account for clipped-IS multi-epoch training by extending Proposition 1's objects , now indexed by reuse epoch , with a new sampler-aware contribution (B1), and we further show how reused prompts & prompt curricula (B2) and KL/reference/entropy terms (B3) are supported.
C) We include a more comprehensive scalability analysis:
i. Empirical measurements of the wall-clock times and peak host & GPU memories across varying training length , batch size , full model params , and LoRA params , confirming that including on-policy/’s contributions in the influence computation comes at no measurable extra cost, and that runtime cost for attribution roughly matches the cost of training the reference run being attributed (a ratio that holds with varying model scale).
ii. Explicit scaling laws in the relevant hyperparameters (where = sequence length), including runtime , peak GPU mem , historical storage bytes (fp32 adapter checkpoints) + (rollout tokens). The measurements in (i) agree with these laws across the setups we consider.
D) We outline some practical ways to assess the validity of our first-order assumption (D1):
i. Second-order influences: Sample events, compute their influence ratio , and discount events/steps that don't satisfy . We demonstrate the feasibility of this check in our GSM8K finetuning setup, computing the ratio for 40 events (5 events from each step ), finding that the first-order assumption is well-supported: every event from step has , decaying to over training, while early steps are heavy-tailed (medians , with individual events reaching up to 0.29 at ), motivating discounting early-step scores.
ii. Exact-ablation: Ablate a subset of prompts and retrain, verifying that the change to the final evaluation agrees with the original run’s summed influences over the ablated prompts. Our linear MDP results (Figure 3, over 512 ablations) and algorithmic finetuning results (Table 1, correctly predicting most important tasks for 9/12 cases) already verify our measure in this sense.
Further, the Monte Carlo noise in estimating has limited impact on our attribution scores (D2), finding that 4 independent estimates have downstream attribution scores that correlate highly (Pearson , Spearman ).
Our responses can be found below under each respective section header (“---- Rebuttal {X} ----”). We hope these responses address your main concerns.
General Response: Rebuttal A (2/8)
---- Rebuttal A ----
We agree that our language model experiments are limited compared to realistic reasoning finetuning setups, and that our demonstration of weighted retraining only in the linear MDP setting is narrow. To improve upon this, we run our influence-weighted retraining in a more realistic reasoning finetuning setup: GRPO on GSM8K reasoning problems with Qwen3-0.6B (thinking enabled, LoRA rank 8, steps, rollouts/step, SGD with LR , sequences k tokens). Additionally, to see if our intervention can recover from data poisoning, we flipped the correctness for 30% of GSM8K’s prompts (assigning incorrect answers a reward of 1, and correct answers a reward of 0).
We run our reweighting intervention for our on-policy influence , as well as for the off-policy influence and direct influence , over 4 independent seeds. Across the intervention strengths , we find that our on-policy influence performs best, achieving a held-out GSM8K accuracy of % % (), while achieves % % () and achieves % % (). We also report seed-paired differences below.
| () | () | ||||
|---|---|---|---|---|---|
| (corrupted & no intervention) | — | — | |||
| clean run (no corruption) | — | — | |||
| 0.5 | |||||
| 1.0 | |||||
| 1.5 | |||||
| 2.0 | |||||
| 2.5 | |||||
| 3.0 |
We note that though our on-policy influence wins at intermediate values, it is outperformed by both off-policy & direct influences at low () and high () intervention strengths. We expect that ’s performance advantage should improve for environments that possess more significant policy-data coupling (e.g. multi-turn environments) and for longer training runs (where policy-data interaction can accumulate further over time).
General Response: Rebuttal B (3/8)
---- Rebuttal B ----
Here we discuss how our formalism relates to clipped-IS multi-epoch training (B1), prompt reuse & prompt curricula (B2), and KL/reference/entropy penalties (B3).
B1. (Extending to clipped-IS multi-epoch training) We agree with reviewers nvR6 & bxGA that the assumption of training being strictly on-policy is often violated in practical training setups. However, it is possible to account for these violations by a relatively simple extension to our formalism, as we now outline.
We can modify our on-policy gradient descent update rule (Equation 1) to reuse the previous step’s policy for sampling rollouts over consecutive epochs:
over and , where and . Here our loss function has been extended to accept both a training policy (the policy currently being trained) and a sampler (the policy being used to sample rollouts), which allows to now include PPO-style clipping & importance ratios that were previously absent from our original formalism (which assumed and ). For example, we can now consider a loss faithful to PPO’s clipped-IS:
where . Proposition 1 transfers exactly to this generalized setup. In particular, the counterfactual influence on the final evaluation after removing rollout from all of step ’s reuse epochs can be written as:
where we’ve used the notation (with ) and have defined:
for matrices:
Here and match their Proposition 1 structure but now include ’s new dependence on :
while is a new contribution, capturing any dependence of the loss on the sampler (e.g. importance ratios):
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Response (1/2)
We thank the reviewer for their detailed and helpful feedback on our work! We appreciate that they found our work “a real practical advance over prior unrolling work.” We hope we can answer their questions and concerns below.
We agree that this is an important practical aspect missing from our paper. We have now outlined how Proposition 1 can be generalized to account for multi-epoch updates & clipped-IS by extending the objects of Proposition 1 via (H(t),Π(t))→(H(t,i),Π(t,i),R(t,i)), indexed by rollout step t=1,…,K and reuse epoch i=1,…,S (for S total reuse epochs at each step), with a new sampler-aware contribution R(t,i):
while H(t,i) and Π(t,i) are defined analogously to as in Proposition 1. Here our loss function L(θpol,θsamp,τ) now depends explicitly on a training policy θpol and a sampler policy θsamp, allowing us to support PPO-style clipped-IS. The full details behind this extension (and a generalized expression for the influence If(K)(k,τ) in this setup) can be found in Rebuttal B1 of the General Response.
In regards to KL and reference-model penalties, a KL anchored to a frozen reference is compatible with our formalism without modification. For example, inserting GRPO’s KL using the usual k3 estimator corresponds to modifying the loss as:
for a relevant hyperparameter λ. It is true that trust-region KL losses require adapting our formalism so that there are two distinct policies – a policy being trained, and a potentially different policy that samples rollouts – however the extension outlined above now covers this aspect as our loss function L(θpol,θsamp,τ) has explicit sampler dependence. Concretely, we can implement the trust-region penalty DKL(πθsamp∣∣πθpol) via:
We have now run our influence-weighted retraining in a more realistic setup involving GRPO finetuning on GSM8K reasoning problems with Qwen3-0.6B (thinking enabled, LoRA rank 8, K=200 steps, B=128 rollouts/step, SGD with LR η=0.1, sequences ≈1k tokens), finding that under flipped-correctness poisoning of 30% of GSM8K’s prompts, our intervention is able to recover and exceed the clean unpoisoned performance: weighting using our on-policy measure achieves a held-out GSM8K accuracy of 70.4% ±0.9% (mean ± std over 4 seeds), with IOffPol achieving 69.2% ±0.7% and IDirect achieving 68.9% ±0.8%, with seed-paired differences OnPol−OffPol=+1.1% ±0.3% and OnPol−Direct=+1.5% ±0.1% (mean ± SEM), while poisoned training without intervention achieves 60.2% ±0.4% and clean/unpoisoned training achieves 64.4% ±0.2%. Namely, all three measures recover from poisoning, but our on-policy measure is able to reach a higher performance ceiling, as we saw in our linear MDP experiments. We leave the full details & results for these experiments in Rebuttal A of the General Response.