arXiv:2610.28883cs.LGOct 2026

Manuscript Offprint

arXiv:2610.28883

RL-IF: Tracking Non-local Training Data Influence for Online Reinforcement Learning

Shixuan Liu, Cheng Tang, Yuzheng Hu, Fan Wu, Han Zhao, Jiaqi W. Ma

Abstract

Online reinforcement learning (RL) has achieved significant success in decision-making tasks, but modern online RL remains highly sensitive to the quality of training experience. Understanding the contribution of individual training instances is therefore central to data-centric RL, with applications ranging from experience selection to policy interpretation. Existing data attribution methods for online RL primarily focus on local influence within a single training round, overlooking the non-local data influence across multiple training rounds. In this work, we formalize data attribution in online RL through a trajectory-level leave-one-out quantity, RL-LOO, which measures how one training sample influences a downstream target after subsequent online updates have taken place. We then derive RL-IF, a first-order estimator that propagates data influence through both optimization effects and policy-induced sampling effects, and provide theoretical guarantees on its approximation accuracy under smoothness assumptions. Our analysis further disentangles these two effects and shows both theoretically and empirically that the full RL-IF estimator can often be well approximated using the optimization effect alone. Building on this observation, we develop RINSE, a practical data filtering method for online RL. Experiments on standard control benchmarks and an RLHF-style toxicity-mitigation setting show that RINSE improves training efficiency and final performance over standard PPO and local attribution baselines. These results suggest that RL-IF provides a practical and principled framework for understanding and improving online RL.

1 Introduction

Online reinforcement learning (RL) has become a central paradigm for learning decision-making policies through repeated interaction with an environment, from robotic control [Todorov et al., 2012, Andrychowicz et al., 2020] to the alignment and enhancement of large language models (LLMs) [Ouyang et al., 2022, Shao et al., 2024]. Despite this success, modern online RL remains highly sensitive to the quality of training experience: training often requires millions of interactions, while the quality of collected experience can vary substantially across time and trajectories, leading to well-known challenges such as sample inefficiency, high variance, and training instability [Yu, 2018, Henderson et al., 2018, Dulac-Arnold et al., 2019]. Hence, understanding the contribution of individual training instances from these experiences is fundamental to data-centric studies of RL and has broad implications for applications such as data selection [Hu et al., 2026, Zhu et al., 2026], experience replay [Schaul et al., 2016], or interpretation [Hu et al., 2025].

Data attribution offers a natural lens for understanding the role of individual training instances. In supervised learning, data attribution aims to identify the training examples that most strongly drive

∗^{*}Equal contribution.

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

model behavior [Koh and Liang, 2017, Deng et al., 2025], with applications in model debugging [Koh and Liang, 2017], mislabeled data detection [Pruthi et al., 2020], data valuation [Ghorbani and Zou, 2019, Jia et al., 2019], and data selection [Xia et al., 2024]. Recently, Hu et al. [2025] introduce data attribution to online RL, and develop a local attribution framework for PPO. The proposed framework measures the influence of rollout records on a local policy update within a round, and shows that such local scores can identify harmful training time steps and improve sample efficiency through data filtering.

However, the existing attribution methods are not yet principled and capture only a partial notion of data influence in online RL. First, they mainly rely on heuristic influence estimation, such as gradient dot products, which are intuitive and scalable, but do not fully account for the training dynamics or correspond to a clear counterfactual notion of data value [Koh and Liang, 2017]. Second, the scope of existing attribution methods is restricted to a single training round, leaving the influence of training data across rounds largely unexplored. Characterizing such inter-round influence is more challenging in online RL because the effect of a single training occurrence can propagate across future rounds through subsequent optimization updates and, in principle, through changes in the policy-induced distribution of future rollout data.

This motivates the development of a framework that directly estimates counterfactual influence beyond the local scope of individual RL training rounds. To address this, we formulate data attribution in online RL through a principled leave-one-out objective defined over multiple training rounds, and use it to study the non-local value of rollout data. Our main contributions are summarized as follows:

• A non-local attribution framework for online RL (Section 3.1). Prior online-RL attribution methods are local and heuristic; we formulate non-local data attribution in online RL through an RL leave-one-out objective, RL-LOO, defined over the training trajectory.

• A first-order estimator with optimization and sampling effects (Section 3.2). We derive RL-IF, a first-order estimator of RL-LOO, and show that online-RL data influence decomposes into optimization effect and sampling effect. This yields both a conceptual lens for understanding long-horizon influence and a computationally efficient approximation, RL-IF-opt, that is well supported by our theory and experiments.

• A practical data-selection algorithm with downstream gains (Section 4). Building on an efficient approximation to RL-IF, we develop RINSE, a non-local attribution-based filtering method for online RL. Across standard benchmark environments and an RLHF-style toxicity-mitigation setting, RINSE improves training efficiency and final performance relative to standard PPO and local filtering baselines.

References (85)