Revisiting Mastered Prompts: Perturbed-History Scheduling for Verifiable-Reward Training

When a language model is trained with reinforcement learning against an automatic checker, such as a math answer matcher that returns 1 for correct and 0 for wrong, most of the training signal comes from prompts the model sometimes solves and sometimes fails. Once every sampled answer to a prompt is correct, or every one is wrong, that prompt stops producing any gradient. These "residual" prompts pile up quickly. Current fixes either throw them away or heat up the sampler to force mistakes. We propose a different view. A mastered prompt is a resource that has been temporarily used up. As the model trains on other material, it may drift, forget, or loosen its confidence, so the prompt can become informative again after some delay. If that is true, deciding when to revisit each prompt is a recharging bandit problem: a scheduling problem where an option's payoff falls when it is used and recovers with elapsed time. The open question is how to solve it at the scale of tens of thousands of prompts.

Our core proposal is cheap. We estimate each prompt's current success rate from its past rollouts, down-weighting them by how long ago they happened. We then mix in synthetic coin-flip "pseudo-rollouts" in the style of perturbed-history exploration. Prompts get scheduled by the perturbed estimate of how informative they now are. Because a fair coin flip is exactly the most informative outcome for a binary reward, prompts that have gone unobserved for a long time drift toward looking informative and get re-probed automatically. Prompts with fresh evidence of saturation stay parked. This needs no Gaussian process, no lookahead tree, and no temperature change at inference. The proposal stands or falls on one measurable fact: whether mastered prompts actually recover. That is the first thing we test.

Core Claim

Prompt informativeness in group-normalized training has a specific temporal structure. Training on a prompt drives its success rate $p$ toward 1 and its gradient variance $p(1-p)$ toward 0. Not training on it lets $p$ relax back by an amount that depends on elapsed steps and on how much entropy the policy keeps. This is a negative self-feedback, so a scheduler that greedily picks the currently most informative prompts is not optimal. It is the regime where Autoregressive Bandits shows that myopic optimality breaks, since that result requires non-negative autoregressive coefficients. We claim that a time-discounted version of Perturbed-History Exploration in Stochastic Multi-Armed Bandits, applied to prompt success histories, captures this structure well enough to beat three alternatives under matched rollout budgets: discarding residual prompts, reactivating them by temperature, and predicting difficulty without a notion of elapsed time.

Concretely, prompt $i$ has past rollout outcomes $r_{ij}\in\{0,1\}$ observed $\tau_{ij}$ training steps ago. We use a recovery weight $w(\tau)=e^{-\tau/\lambda}$ with decay length $\lambda$, effective count $n_i=\sum_j w(\tau_{ij})$, and effective successes $s_i=\sum_j w(\tau_{ij})\, r_{ij}$. At each scheduling step we draw $z_i\sim \mathrm{Binomial}(\lceil a\, n_i\rceil + m, 1/2)$ pseudo-successes, where $a$ is the perturbation scale and $m$ is a small floor of pseudo-trials. We then score

$$\tilde p_i = \frac{s_i + z_i}{n_i + \lceil a\, n_i\rceil + m}, \qquad u_i = \tilde p_i\,(1-\tilde p_i),$$

and fill the batch with the prompts of highest $u_i$. With fresh, saturated evidence ($n_i$ large, $s_i\approx n_i$), $\tilde p_i$ stays near 1 and $u_i$ near 0. As evidence ages, $n_i$ shrinks, the pseudo-trials dominate, and $\tilde p_i$ is pulled toward $1/2$. That makes $u_i$ large with a probability that grows with staleness. This is Russo's "optimistic with constant probability" principle from Worst-Case Regret Bounds for Exploration via Randomized Value Functions, carried over to a time-varying arm. The decay length $\lambda$ is fitted to measured recovery curves rather than tuned blindly.

Where This Sits

Three lines of work motivate the gap. Explore Data Left Behind in Reinforcement Learning for Reasoning Language Models shows that up to 75% of prompts become residual for a 32B model. Its method, ERPO, raises sampling temperature on mastered prompts by a history-dependent schedule. We instead keep the temperature fixed and revisit prompts when they are likely to have recovered on their own, which avoids the inference-time distribution shift that paper warns about when the maximum temperature is too high. Adaptive Rollout Allocation for Online Reinforcement Learning with Verifiable Rewards (VIP) supplies the key quantity, gradient variance scaling as $p(1-p)$, and predicts $p$ with a Gaussian process over prompt embeddings. It has no variable for time since a prompt was last trained on, and its derivation assumes no KL penalty. Our scheduler is cheaper, and elapsed time is its central variable. Actor-Curator treats prompt selection as a generic non-stationary bandit solved by mirror descent. It reacts to change but does not model the use-then-recover structure.

The temporal-bandit literature supplies the problem shape but also constrains the method. Recovering Bandits models recovery functions with Gaussian processes and plans with depth-$d$ lookahead. It shows that greedy selection fails. It also shows that even pruned planning evaluates about 5,000 paths for 30 arms at depth 4. That is far beyond what is feasible for 17,000 prompts, so we give up explicit lookahead. Stochastic Bandits with Delay-Dependent Payoffs and Non-Stationary Bandits under Recharging Payoffs show that simple cyclic or randomized-interleaving schedules come with constant-factor guarantees. This is a warning that a fixed cooldown may already be near-optimal, and we treat it as a first-class baseline.

The perturbation literature supplies the method. Perturbed-history exploration with $a=1.1$ matched Thompson sampling empirically while needing only binomial draws, and its linear and generalized-linear extensions (linear, GLM) suggest a path to sharing strength across prompts through embeddings. Exploration by Random Reward Perturbation adds annealed Gaussian noise to environment rewards in SAC and PPO. It is the obvious thing to port to verifiable-reward training, and we deliberately do not. Under group-normalized advantages, noise added to an all-correct group is rescaled to unit size and becomes a zero-mean random gradient with no information in it. We keep it as a baseline to show this.

Maximum entropy reinforcement learning enters as the variable that controls how fast prompts recover, not as a new objective. Reinforcement Learning with Deep Energy-Based Policies shows that an entropy bonus keeps policies spread over multiple good modes. Reinforcement Learning for Reasoning in Large Language Models with One Training Example shows that an entropy loss is necessary to keep one-shot training from collapsing. A policy with more entropy should "un-master" prompts faster. We hypothesize that the recovery length $\lambda$ is a function of the entropy coefficient, which would mean the scheduler and the entropy bonus must be tuned jointly rather than independently.

Research Program

The first stage measures recovery before building anything. During standard GRPO training (group relative policy optimization, which scores each sampled answer against the average of its group) of Qwen2.5-Math-1.5B on DAPO-Math-17K, we freeze a random sample of prompts at the moment they first become all-correct. We remove them from training and re-probe each with 16 rollouts at delays of roughly 10, 50, 200, and 800 steps. We record the fraction that returns to mixed outcomes and the size of the restored $p(1-p)$. We repeat this at entropy coefficient zero and at the coefficient used by Wang et al.

The resulting curves decide the design. If recovery is negligible, the honest conclusion is that residual prompts should simply be dropped or temperature-forced, and we stop. If recovery is substantial but nearly identical across prompts, a fixed cooldown is the right answer, and the perturbed scheduler is unnecessary. The proposal earns its place only if recovery is real and differs across prompts in ways a fixed rule cannot track.

The second stage builds the scheduler. We fit $\lambda$ from the stage-one curves, either globally or per difficulty bucket. We then run the perturbed scheduler inside GRPO with an identical rollout budget, counting every re-probe rollout against that budget. We also sanity-check it on the synthetic recharging bandits used by Pike-Burke and Grünewälder and by Cella and Cesa-Bianchi. There it should approach dRGP-TS and the ranking policy $\pi_{\text{low}}$ in regret at a small fraction of their computation; if it does not, the transfer argument weakens.

The third stage studies the interaction with entropy. We cross two scheduler settings with three entropy coefficients and track token-level entropy, residual-prompt fraction, and fitted $\lambda$ over training. This tests whether recovery is driven mainly by entropy or by forgetting. That matters because recovery driven by forgetting means revisiting is repairing damage, while recovery driven by entropy means revisiting is harvesting the diversity the bonus creates.

Baselines

The do-nothing reference is standard GRPO with uniform prompt sampling and a fixed group size. Residual prompts are left in and contribute zero gradient. All methods share the base model, training set, group size, learning-rate schedule, entropy coefficient (except in the stage-three sweep), and total generated tokens. Hyperparameter search gets the same number of trial runs per method. The second naive reference drops a prompt permanently once it is all-correct. The material credits this with discarding useful data, but it is the cheapest thing a practitioner would do.

The strongest competitors are VIP and ERPO, run from their published recipes on our setup. For VIP, the cited paper reports that RLOO plus VIP improved Pass@32 on AIME 2024 by +12.3 points and Mean@32 by +6.3 points with Qwen2.5-Math-1.5B (Adaptive Rollout Allocation). This is the closest competitor, because it targets the same $p(1-p)$ quantity and differs mainly in lacking elapsed time. For ERPO, the reported result is AIME 2025 maj@32 improving from 16.9% to 19.4% on Qwen2.5-7B (Explore Data Left Behind). We compare against it at 7B, since it attacks residual prompts directly. Actor-Curator reports a 28.6% relative gain on AIME 2024 over its strongest baseline within the first 100 steps (Actor-Curator), and we include it as the generic non-stationary-bandit curator.

Beating these means three things. At equal tokens, our method must exceed VIP on AIME 2024 Mean@32 and match or exceed ERPO on AIME 2025 maj@32, averaged over at least three seeds. It must also show a lower residual-prompt fraction at the end of training. And it must do this without the inference-time degradation ERPO risks, which we check by evaluating every method at temperature 0 and at the training temperature.

Three ablations isolate the key ingredients. The fixed-cooldown baseline revisits each residual prompt after a constant $\lambda$ steps, using our fitted $\lambda$. It isolates the value of perturbation over a deterministic recharging schedule. The no-decay variant sets $w\equiv 1$, which is ordinary perturbed-history exploration on prompts. It isolates the temporal component. The reward-noise baseline adds annealed Gaussian noise to binary rewards inside GRPO, following Exploration by Random Reward Perturbation. It tests the obvious port of reward perturbation and should, by our argument, add gradient noise without adding learning.

Why not just…?

Why not just raise the sampling temperature on mastered prompts? That is ERPO, and it works: the cited 16.9% to 19.4% gain is real. Its costs are a step size and a temperature ceiling that need hand-tuning, and the ERPO authors' own warning that a high ceiling causes distribution shift at standard inference. Forcing errors at high temperature also trains on answers the model would never produce at deployment. Our method trains on naturally recovered prompts at the deployment temperature. Head-to-head runs at both evaluation temperatures will show whether this matters. If ERPO matches us at temperature 0, the advantage reduces to tuning convenience, and we will report it that way.

Why not just use VIP's Gaussian process to predict which prompts are informative? VIP predicts current difficulty from prompt embeddings, but it updates a prompt's estimate only when that prompt is observed. So its picture of a parked prompt freezes at "solved", and it has no reason to re-probe it. Adding elapsed time as a Gaussian-process input is a legitimate fix and a real threat. We include this "VIP plus time feature" variant. If it matches our scheduler, our contribution narrows to a cheaper, inversion-free implementation, which still matters at the scale of 17,000 prompts but is a smaller claim.

Why not just put mastered prompts on a fixed cooldown and cycle them back? The recharging-bandit results suggest this may be close to optimal: cyclic ranking policies carry constant-factor guarantees and few switches (Cella and Cesa-Bianchi). This is the most dangerous alternative. The stage-one measurement is designed to settle it. If recovery curves are homogeneous across prompts, the cooldown wins on simplicity, and we will recommend it. Perturbation should help only when recovery varies across prompts, so we will report the gain stratified by measured recovery heterogeneity.

Why not just add noise to the rewards, as reward-perturbation methods do in control? In SAC and PPO, reward noise changes value targets and broadens behavior. In group-normalized training, an all-correct group plus noise yields advantages that are random signs rescaled to unit size, so the policy gets a gradient with zero expected direction. The reward-noise ablation tests this directly. We expect higher gradient variance, no reduction in residual fraction, and no accuracy gain.

Proposed Experiments

The main runs use Qwen2.5-Math-1.5B and Qwen2.5-7B trained with GRPO on DAPO-Math-17K. We evaluate on MATH500, AIME 2024, AIME 2025, and AMC 2023, reporting Mean@32, Pass@32, and maj@32. We add Countdown and Zebra, where Actor-Curator reports step speedups of 58.2% and 80.7%, as a check that the effect is not specific to math. Process metrics are the residual-prompt fraction over time, the fraction of rollouts spent re-probing, mean token entropy, and the fitted recovery length $\lambda$.

The decisive checks, in order, are as follows. Stage one must show that a meaningful share of frozen mastered prompts return to mixed outcomes within a few hundred steps; otherwise we stop. The perturbed scheduler must beat the fixed cooldown when recovery varies across prompts, and roughly tie it when recovery is uniform. That pattern is the signature that the perturbation, and not merely revisiting, is doing the work. The time-discounted scheduler must beat its no-decay version, confirming that elapsed time carries information. Finally, the fitted $\lambda$ should shrink as the entropy coefficient grows. If it does, maximum-entropy regularization and prompt scheduling are coupled knobs, and published entropy settings tuned under uniform sampling are likely miscalibrated for curated training.