arXiv:2610.25836cs.CLOct 2026

Manuscript Offprint

arXiv:2610.25836

Where RL Breaks: Localizing and Repairing Failures via Targeted Continued Pretraining

Xinyi Wang, Danqi Chen

ABSTRACT

Reinforcement learning with verifiable rewards (RLVR) is widely used to improve reasoning in language models, yet growing evidence suggests that it mostly sharpens what the base model can already do. This raises a practical question: when RL fails, what is the base model missing? We look inside the RL policy's own rollouts and find that failures are localized: whether a rollout fails is strongly predicted by a small set of characteristic n-grams, ranging from reflection phrases such as let's recheck to specific operations such as the inverse of A. These failures persist throughout RL training, although they are not beyond the model's reach: other sampled answers to the same question are often correct. Building on this observation, we use the failure n-grams to retrieve text from the pretraining corpus and continue pretraining the base model on it before RL. The resulting corpus has only 35M tokens, 3–4 orders of magnitude smaller than typical mid-training. We evaluate this approach on OLMo2 and Qwen3 models trained with RL on (1) GSM8K; (2) a mixture of math, commonsense, and knowledge questions; and (3) general math and science reasoning. Despite its size, the corpus yields consistent gains: our approach outperforms continued pretraining on the same amount of text sampled from the pretraining corpus across 10 out of 11 settings, including by 2.0 points on GSM8K when inserted before mid-training. The retrieved text also transfers across model families: text retrieved for OLMo2-1B's failures improves Qwen3-4B on the mixture by 1.9 points over the same baseline. Together, our results suggest that where RL fails is a cheap and effective signal for selecting pretraining data. 1^{1}

1 INTRODUCTION

Reinforcement learning with verifiable rewards (RLVR) has become the dominant recipe for improving reasoning in language models. Yet growing evidence suggests that it largely sharpens what the base model can already do: it makes successful solutions more likely and failing ones less likely, but rarely produces solutions the base model could not already sample (Yue et al., 2025; Zhao et al., 2025; Wu et al., 2025). Prolonged or curriculum RL can go further (Liu et al., 2025; Cai et al., 2026), but the base model still sets the limit: RL builds new strategies only from skills the base model already has (Cheng et al., 2025), and its gains depend on what pretraining provides (Zhang et al., 2026; Shen et al., 2026; Foster et al., 2025). This raises a practical question: when RL fails, what exactly is the base model missing, and can we supply it before RL?

Prior work has approached this question from two separate directions. One line studies where in a reasoning trace RL has its effect or where things go wrong: RL updates concentrate on a small fraction of high-entropy tokens (Wang et al., 2025b), and a single token can mark where a reasoning trace turns toward failure (Ko et al., 2026). These findings have been used to change the training objective (Ko et al., 2026), but not to choose training data. The other line improves the base model with data before RL. Most prominently, mid-training on hundreds of billions of reasoning-heavy tokens, now a standard stage in open training recipes (Team Olmo et al., 2025), makes base models far more responsive to RL (Wang et al., 2025d); continued pretraining on text rich in reasoning behaviors such as verification and backtracking has a similar effect (Gandhi et al., 2025). These

1^{1}Our code is released at https://github.com/WANGXinyiLinda/where-rl-breaks

Figure

Figure 1: Overview. We mine failure n-grams from RL rollouts, retrieve text containing them, continue pretraining on it, and re-run the same RL recipe. The resulting πRL′\pi_{RL}^{\prime} consistently outperforms training on an equal amount of text sampled from the same corpora.

corpora, however, are chosen by task similarity or by hand, not by what a particular model gets wrong. We connect the two directions: like mid-training, we change the data before RL, but we use a model's RL failures to select a small, targeted corpus.

We approach this question by asking where within a rollout RL fails. Our central observation is that failures are not diffuse: whether a rollout leads to an incorrect outcome is strongly predicted by whether it contains one of a small number of characteristic n-grams (e.g., the small set of RL-critical tokens of Wang et al., 2025b and the single-token failure triggers of Ko et al., 2026). Which n-grams are diagnostic depends on the model and the task: reflection and self-correction phrases (let's recheck, there's a mistake in the problem) for weak models on elementary math, where the model reflects and then spirals rather than recovers; and specific operations (convert the given matrix to reduced row echelon form, the inverse of A) for stronger models on broad reasoning suites. In both cases, the n-gram does not cause the failure; it is a visible sign that the rollout has reached a point from which it rarely recovers. RL has little to learn from at such points: it improves the model only from rollouts the model itself samples, and rollouts that reach these points rarely succeed.

These failures are also not beyond the model's reach: for nearly half of the questions with a failing rollout, another sampled answer to the same question is correct. This suggests that what the base model lacks is specific, and that a small amount of the right data could supply it. Our approach follows directly (Figure 1): we use the failure n-grams as exact-match queries over the pretraining and mid-training corpora (Olmo-mix and Dolmino-mix; Walsh et al., 2025), continue pretraining the base model on the retrieved text, and re-run the same RL recipe. We evaluate on OLMo2 (Walsh et al., 2025) and Qwen3 (Yang et al., 2025) models trained with RL on (1) GSM8K (Cobbe et al., 2021); (2) a mixture of math, commonsense, and knowledge questions (GSM8K, Social IQA, MMLU, and TriviaQA; Sap et al., 2019; Hendrycks et al., 2021; Joshi et al., 2017); and (3) general math and science reasoning (Ma et al., 2025), inserting continued pretraining either on the released base model or, for OLMo2, before mid-training. Our contributions are:

• Where RL fails. RL failures concentrate on a small set of failure n-grams whose content varies with the model and task, from reflection phrases to specific operations. These failures persist throughout RL, even when the model can answer the same question correctly (Sections 4.2 and 4.4).

• A small, targeted fix. Retrieving pretraining text with the failure n-grams yields a 35M-token corpus, 3–4 orders of magnitude smaller than mid-training, selected by the model’s own failures (Section 3.4).

• Consistent gains that transfer. Our approach outperforms continued pretraining on the same amount of text sampled from the same corpus in 10 of 11 settings, including by 2.0 points on GSM8K when inserted before mid-training (3 RL seeds). A corpus mined from OLMo2-1B's failures improves Qwen3-0.6B and Qwen3-4B by up to 2.4 points.

References (61)