Reading the Reward Off the Training Run: Dense Credit for Distraction-Induced Overthinking

Reasoning language models get slower and less accurate when their prompt contains material that does not matter: irrelevant retrieved passages, narrative backstory, extra numbers. They keep reasoning about the distractors. The usual fix is to keep running reinforcement learning with a sparse reward, one score per answer for correctness and length, until the model learns to ignore the noise and stop early. That signal is coarse. It never says which of thousands of reasoning tokens were wasted. This proposal gets a dense, per-token signal almost for free. When a model is trained with reinforcement learning, each update raises the probability of tokens that helped and lowers the probability of tokens that hurt. So the difference between two saved training checkpoints already encodes a per-token reward. We propose to recover that reward from a short, cheap reinforcement learning run on noisy prompts, then reuse it for three things: training faster, training other models, and stopping reasoning early at inference time.

Put in two sentences: run a brief sparse-reward training run on distractor-laden reasoning problems and save checkpoints; then invert the checkpoint-to-checkpoint changes to learn a token-level reward model that marks which reasoning steps the learner was suppressing. The test is whether this inferred reward points at the reasoning spent on distractors more accurately than heuristics do, and whether it cuts tokens and restores accuracy at lower compute than simply continuing the original run.

Core Claim

Gradient-based reward inference recovers an agent's objective from how its policy changes, not from its final behavior. "Learning from a Learner" (Learning from a Learner) inverts entropy-regularized policy improvement between successive snapshots. LOGEL (Inverse Reinforcement Learning from a Gradient-based Learner) models parameter updates as steps along the return gradient and recovers the reward even when individual steps are noisy or regress. Both were validated in small control problems. Neither has been applied to a language model's own post-training trajectory.

Our claim is that a reasoning model's reinforcement learning run is exactly the "learner" these methods assume, and that the run is fully observable. Under a soft (entropy-regularized) improvement step, the next policy reweights the current one by the exponentiated advantage:

$$\pi_{t+1}(a\mid s) \;\propto\; \pi_t(a\mid s)\,\exp\!\big(A_t(s,a)/\alpha\big).$$

Here $s$ is the prompt plus the reasoning written so far, $a$ is the next token, $A_t$ is the advantage under the reward being optimized, and $\alpha$ is the effective temperature, which absorbs the step size. Taking logs gives $\alpha \log \pi_{t+1}(a\mid s) - \alpha \log \pi_t(a\mid s) = A_t(s,a) - \alpha \log Z_t(s)$, where $Z_t(s)$ is a normalizer that depends only on the state.

So the per-token log-ratio between consecutive checkpoints is a dense advantage estimate, up to a state-dependent offset that cancels within a state. Following LOGEL, we do not trust any single pair of checkpoints. Instead we fit one parametric reward head $r_\phi$ on frozen model features that jointly explains $K$ checkpoint transitions:

$$\min_\phi \sum_{t=1}^{K} \mathbb{E}_{s,a}\Big[\big(\alpha_t \log \tfrac{\pi_{t+1}(a\mid s)}{\pi_t(a\mid s)} - \hat A_{\phi}(s,a) + b_t(s)\big)^2\Big].$$

In this objective, $\hat A_\phi$ is the advantage implied by $r_\phi$, $b_t(s)$ is a learned per-state baseline that absorbs $\log Z_t$, and $\alpha_t$ is a per-transition scale.

The new element is not the inversion formula. It is the regime. On noisy-context prompts we know exactly where the distractors are, because we inject them. That gives a ground-truth check on whether the inferred reward assigns negative credit to the reasoning that engages them. Clean-math efficiency work has never had such a check.

GRPO-style clipped updates (Group Relative Policy Optimization, the standard critic-free reinforcement learning method for reasoning models) are only approximately soft improvement steps. We therefore treat the equation above as a first-order model, in LOGEL's spirit, rather than an identity. We test its adequacy directly in the decisive checks below.

The theory also predicts something useful. Multi-Agent Learning from Learners shows that the accuracy of the recovered reward grows only logarithmically with how much the observed learner improves. If that carries over, the quality of the inferred reward should saturate early in the run. A short, cheap run would then suffice, and that is what makes the method worth having.

Relation to Prior Work

Three groups of prior work bear on this.

The closest is R-AIRL (Learning Reasoning Reward Models from Expert Demonstration via Inverse Reinforcement Learning). It trains an adversarial discriminator to separate good reasoning chains from bad ones and uses it as a dense reward for GRPO. It reports that dense token-level discriminators suffer mode collapse, reward hacking and non-stationarity. It also ignores length and evaluates only clean prompts. This constrains our design. We avoid a discriminator entirely, because the reward is read off an already-completed, non-adversarial trajectory. We also target length and distraction rather than correctness alone.

Coherent Soft Imitation Learning (Coherent Soft Imitation Learning) supplies the key idea that a reward defined as a policy log-ratio is "coherent": the policy is already locally optimal for it, which avoids instability when fine-tuning begins. We reuse that idea. CSIL, however, uses only the endpoint ratio between a cloned policy and a prior. We use the whole trajectory, and an ablation isolates that difference. CSIL also fails when the initial policy is poor. For us, that means a learner that has not yet started to improve on noisy prompts yields no signal. Our early-saturation prediction addresses this.

The efficiency literature motivates the problem. DLER (DLER: Doing Length pEnalty Right) shows that naive length penalties in GRPO cause reward variance, dead zones and entropy collapse, and fixes them with normalization and clipping. ConciseRL (ConciseRL) uses a GPT-4o-mini conciseness judge and reports that weaker judges degrade training. Adaptive GoGI-Skip (Adaptive GoGI-Skip) prunes reasoning tokens by the gradient of the answer loss with respect to each token's hidden state, and needs white-box gradients at preprocessing. Re-FORC (Re-FORC) learns a forecaster of future reward for early stopping. All four were evaluated on clean prompts. None infers a reward from training dynamics. Each supplies either a baseline or a component we compare against.

The contextual noise literature sets the regime. UDA (UDA) shows GPT-4 on FinHybrid scoring 45.9 with retrieval but 0.4 when given the whole noisy document. Less is More shows narrative backstory misdirecting program synthesis. AbstRaL (AbstRaL) shows small models breaking under shifts in nominal and numerical details of GSM problems. DAS (Improving Zero-shot Reader) and PRCA (PRCA) filter or compress context before generation. None of these measures how much extra reasoning noise induces, and none touches the reasoning trace itself.

Research Program

We first build the noisy-reasoning regime with known distractor locations. We take GSM8K and MATH500 problems and inject three kinds of distractors, each tagged at the span level:

  • irrelevant numeric facts in the style of UDA's numerical overwhelm,
  • narrative backstory in the style of Less is More, and
  • off-topic passages pulled from a retrieval corpus.

We complement these with naturally noisy settings that have no span labels: UDA FinHybrid with full documents, and open-domain QA with 100 retrieved documents as in DAS. We then measure the "distraction tax" on reasoning models (Qwen3-4B and a DeepSeek-R1-distilled 7B model): extra reasoning tokens and lost accuracy relative to the clean version of each problem. We also measure the share of reasoning tokens that reference distractor spans, detected by lexical and entity overlap. This step stands alone as a contribution, since no paper in the file reports it.

Second, we run a short sparse-reward GRPO run on the noisy training split, using DLER's stabilized length-plus-correctness reward, and save dense checkpoints. On rollouts from these checkpoints we fit $r_\phi$ by the trajectory-inversion objective. $r_\phi$ is a small head on frozen features of the base model, so it can score text from any model and can run without gradients at inference time.

Third, we use $r_\phi$ in three ways:

  1. as a dense reward to continue training the same model;
  2. as a reward to train a different student (Llama3.1-8B, or a smaller Qwen) that never ran the sparse phase;
  3. as an inference-time scorer that halts or reranks partial chains whose recent tokens accumulate negative inferred reward. This is a black-box-compatible alternative to GoGI-Skip at serving time.

Baselines

The naive reference point is the base reasoning model on noisy prompts with no intervention, together with the same model on the clean versions. The gap between them defines the distraction tax we aim to close.

The strongest competitor is simply continuing the sparse-reward run, using DLER's stabilized length penalty, for the same total compute our method spends on the short run, the inversion and the dense phase. This is the direct answer to "is the inferred reward worth anything beyond the run that produced it." It will use the same prompts, rollout budget, group size and hyperparameter search budget. The only published reference number on its home turf is DLER-R1-7B at 55.62% accuracy on AIME-24 with roughly 3,200 tokens, versus more than 13,000 for DeepSeek-R1-7B. On distractor-injected math or FinHybrid we found no reported result on Lacuna for DLER, so we will run it ourselves. Beating it means matching its accuracy with fewer reasoning tokens, or exceeding its accuracy at equal tokens, at equal total compute.

The second baseline is a dense reward from elsewhere. One version is an R-AIRL-style discriminator trained on the same rollouts, with positives being correct and short chains and negatives being incorrect or distractor-engaging chains. The only R-AIRL figure in the file is a +17.4 point pass@1 gain under Best-of-16 reranking on clean GSM8K for Qwen2.5-7B. The other version is a ConciseRL-style judge with a matched API budget. Beating these means more stable training (no reward hacking visible as length collapse with falling accuracy) and higher accuracy per token.

For upstream filtering we apply DAS rescoring and abstention prompting on the retrieval-noise settings. DAS reports an average 64% Exact Match gain over naive zero-shot readers.

For inference-time pruning we compare against GoGI-Skip, which reports more than 45% token reduction with under 0.9% accuracy loss on clean benchmarks, and against Re-FORC early stopping, which reports 24% compute saved at equal accuracy on 4B models.

Two ablations isolate the key ingredient. The first replaces trajectory inversion with the CSIL-style endpoint ratio, log of the final policy over the base policy, which tests whether intermediate snapshots matter. The second uses the raw per-token log-ratio of a single checkpoint pair without the fitted head, which tests whether LOGEL-style smoothing matters.

Why not just…?

Why not just keep running the sparse length-penalized RL? This is the real threat. If our inferred reward only reproduces what the run already learns, continuing the run at equal compute will match us. Two results would favor our method. One is that the dense reward reaches the sparse run's endpoint in fewer rollouts; the logarithmic-scaling result predicts that the reward saturates early, which is where the savings would come from. The other is that it transfers to a student model, which the sparse run cannot do without repeating the whole run. If neither holds, the honest conclusion is that the inferred reward is a diagnostic tool and not a training signal, and we will report it that way.

Why not just filter the context before reasoning, with DAS, PRCA or better retrieval? For retrieval-style noise this may win. DAS's 64% average gain and PRCA's fourfold token reduction are strong. But filtering cannot remove distractors that live inside the problem statement, such as narrative backstory or irrelevant quantities, and UDA shows retrieval itself often fails on real documents. We split results by distractor type. If filtering closes the gap on retrieval noise, we will say so and confine our claim to in-problem distraction and to the remaining reasoning waste after filtering, which we also measure by stacking DAS with our method.

Why not just use an LLM judge or a learned discriminator for dense credit? ConciseRL reports that its gains depend on a strong proprietary judge. R-AIRL reports that dense discriminators collapse and get hacked. Our reward needs neither, but that is an argument, not evidence. The equal-budget comparison and the distractor-attribution check below decide it.

Why not just use GoGI-Skip's gradient importance? GoGI scores importance for the final answer. On noisy prompts, attention to distractor tokens may distort those gradients, which is exactly the open question in the file's Gap 2. GoGI also requires gradient access. We test both methods on the same span-labeled data.

Proposed Experiments and Decisive Checks

The first decisive check is attribution. On distractor-injected GSM8K and MATH500, we ask whether the inferred reward assigns negative credit to reasoning tokens that reference injected spans. We measure this as AUROC against the span labels and compare it with token entropy, the GoGI score, the discriminator score and the endpoint-ratio ablation. If the trajectory-fitted reward does not beat the endpoint ratio, the "learning from a learner" ingredient adds nothing and the method reduces to coherent imitation.

The second check is the adequacy of the inversion. We hold out late checkpoints and test whether $r_\phi$ fitted on early transitions predicts the direction of later per-token probability changes. If it does not, GRPO steps are too far from soft improvement for the inversion to hold.

The third check is the efficiency frontier. We plot accuracy against mean reasoning tokens and wall-clock latency on noisy GSM8K, noisy MATH500, UDA FinHybrid and 100-document SQuAD and NQ, at equal training compute against the continued-DLER baseline. We also report clean MATH500 and AIME-24 to confirm that removing the distraction tax does not raise a tax on clean problems.

The fourth check is transfer. We train a student only with $r_\phi$ and compare it with a student given the full sparse run.

The fifth check is saturation. We plot attribution AUROC against the number of observed checkpoints and the learner's accuracy gain, and test for the predicted logarithmic shape.

A positive outcome on the attribution, frontier and transfer checks would establish that a reasoning model's own training trajectory is a usable, discriminator-free source of dense reward for noise-robust efficiency. A negative result on the frontier check alone would still leave a measured distraction tax and a validated diagnostic for where it comes from.