Manuscript Offprint

arXiv:2610.10422

Which Rollout Taught It That? BehaviorTrace and the Limits of Training-Data Attribution in Online RL

Amit Nautiyal

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

When reinforcement learning teaches a language model a new behavior, can we find the training rollouts that taught it? And when an attribution method says it can, how do we know the answer is real? We study both questions on online RL fine-tuning with GRPO, using a planted behavior with a known cause. We release BehaviorTrace, an open evaluation harness that combines full-gradient sketching, the planted-behavior setup, and controls for gradient magnitude, fluency, headroom, and variation across seeds and generation draws. Across three seeds on Qwen2.5-1.5B, much of the apparent attribution signal comes from confounds. A control that ranks training steps by gradient size alone, with no behavior target, reaches 4.2 to 4.5 times chance and matches or beats the best targeted estimator on two of three seeds. At saturated checkpoints, model fluency predicts the behavior label at least as well as every gradient method we compared it with. Once fluency is controlled, the per-rollout results change from seed to seed and from one generation draw to the next, so a single run cannot settle the question. One signal does hold on all three seeds. The gradient of the trigger tokens aligns with a target built where the behavior actually occurs. We turn these findings into a checklist for evaluating attribution in RL. We test existing estimators, including GAS (renormalized TracInCP) and a TRAK-style estimator, and do not propose a new one.

Code and data: https://github.com/AmitoVrito/BehaviorTrace, tag v1.0-paper.

1 Introduction

RL fine-tuning can teach a model behaviors nobody asked for, including emergent misalignment from rewards that look harmless. A natural question is which training rollouts caused a given behavior. Gradient-based training-data attribution (influence functions, TracIn, TRAK, and the renormalized GAS) is the standard tool, and recent work applies attribution to LLM behaviors. But these estimators are validated mostly in static and supervised settings, and whether they localize behavior in online RL is largely untested.

We run a controlled evaluation on online-RL (GRPO) fine-tuning with a planted behavior whose contamination mechanism is causally verified in a closely matched setup (a hidden frobnitz-to-QZXBT trigger). We fix the obvious failure modes first, using a full-gradient embedding that actually covers the behavior's parameters, in-context targets, and tie-aware precision with base-rate floors, and then ask, across three seeds, whether the apparent attribution signal reflects behavior localization or confounds.

Our contributions are as follows. First, we release BehaviorTrace, an open evaluation harness for training-data attribution in online RL. It includes full-gradient sketching, the planted-behavior setup, controls for gradient magnitude, fluency, headroom, and seed and draw variance, and the checklist in Section 6. Second, we show that a gradient-magnitude control reproduces most of the apparent step-level precision (P1). Third, we show that fluency stands in for the behavior label at saturated checkpoints (P5). Fourth, we show that per-rollout results flip across seeds and generation draws (P6). We also document three structural pitfalls (P2 to P4) and one positive lead at the token level.

References (16)