Manuscript Offprint
arXiv:2611.26342Training LLMs to Follow Reasoning Instructions with Minimal Edits
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Large language models increasingly rely on extended reasoning traces, yet the training signals used to shape this behavior remain coarse. Supervised fine-tuning on full trajectories forces the model to imitate an entire demonstration, overconstraining its output distribution, while trajectory-level reinforcement learning provides only weak credit assignment, rewarding or penalizing whole completions without identifying where they succeed or fail. We propose edit-based training, a general framework for learning from a model’s own trajectories via localized textual corrections. Given a sampled completion, an editor identifies the first point of failure under a specified criterion and proposes a minimal replacement span. The model is then supervised only on these edited spans. By design, this concentrates supervision where the model’s reasoning first breaks down and aims to preserve its existing reasoning patterns elsewhere. The method applies both offline and online, with the latter continually adapting supervision to the model’s evolving failure modes. We instantiate this approach on reasoning instruction following with Qwen3-32B on the ReasonIF benchmark. Compared to full-trajectory imitation and trajectory-level reinforcement learning baselines, edit-based training substantially improves compliance with the reasoning instruction while largely preserving the model’s skills on untargeted tasks. These results suggest that localized correction is an effective complement to these approaches for shaping how LLMs reason.
1 Introduction
Large language models (LLMs) are increasingly trained to solve problems through extended reasoning. In many recent systems, reasoning traces are not directly supervised step by step; instead, they emerge from optimization procedures that reward successful final behavior. This indirect supervision is partly a practical necessity. Specifying high-quality reasoning traces is difficult: good reasoning is often task-dependent, may admit many valid forms, and is hard to supervise at scale. Moreover, effective reasoning must remain compatible with the knowledge, linguistic patterns, and latent capabilities already present in the pretrained model.
At the same time, control over the reasoning process is increasingly important. Reasoning is not merely a means of producing an answer; it is also where a model interprets the task, forms a plan, applies constraints, checks assumptions, and determines which intermediate conclusions to trust. Better control over these steps could improve reliability, alignment, and robustness. Concrete needs include articulating intermediate steps the model would otherwise compress, blocking known shortcuts, requesting verification before the answer, or constraining style for downstream auditing. Reliable reasoning instruction following is a prerequisite for using such constraints to make models more controllable and transparent while reducing shortcuts, hallucinations, and reward hacking inside reasoning traces [1]. In practice, however, current reasoning-capable LLMs often fail to follow such instructions; they omit required steps, ignore constraints, or deviate from a prescribed strategy even when the requirements are stated explicitly [1, 2], and open reasoning models comply on fewer than 25% of ReasonIF traces. This motivates the central goal of our work: to make language models more reliably follow instructions about their reasoning process, not only instructions about the final answer.
A second motivation arises from how reasoning models are commonly trained. Reinforcement-learning methods for reasoning, including Group Relative Policy Optimization (GRPO)-style approaches [3], typically assign rewards or advantages to entire sampled trajectories. A reasoning trace is therefore encouraged or discouraged as a whole, often based on its final outcome. Such trajectory-level feedback can be inefficient. An incorrect trajectory may contain mostly sound reasoning, with failure caused by a single local mistake, such as a missed constraint, an invalid inference, or an arithmetic error. Penalizing the entire trajectory risks discouraging useful reasoning behavior together with the specific step that should be corrected. Conversely, a trajectory that reaches the correct answer may still contain unnecessary, brittle, or logically flawed intermediate steps; rewarding the full trajectory can reinforce these undesirable patterns simply because the final answer is correct.
These observations suggest that improving reasoning requires more targeted interventions. Instead of treating a reasoning trace as an indivisible object, we seek to identify the critical point at which the model first goes wrong and provide supervision only at that point. Our approach begins by sampling a reasoning trace from the model. We then evaluate the trace to locate the first violation of the reasoning instruction. Once this point is identified, we employ an editing model, or editor, to revise only the local span that contains the error.
The edited span becomes the training target. Rather than training the model to imitate an entire corrected trajectory, we apply the edit loss only to the small number of tokens needed to repair the mistake. This design is based on the observation that small local corrections can redirect the model’s subsequent reasoning. When a trace is repaired with just enough correct text at the critical point, the corrected tokens can steer the model away from an erroneous path and toward a better continuation.
As a result, the method applies minimal supervision and is designed to preserve much of the model’s original reasoning behavior. It intervenes only where the model’s reasoning first breaks down, allowing the remaining trajectory to be generated according to the model’s existing capabilities and priors. In this sense, our approach lies between reinforcement learning and conventional SFT. Like reinforcement learning, it provides sparse guidance rather than full demonstration trajectories. Unlike trajectory-level reinforcement learning, however, the guidance is textual and localized: it specifies what should have been produced at the precise point where the reasoning fails. We argue that this form of localized correction offers a practical route toward more controllable training while limiting changes unrelated to the specified failure.
Our contributions are threefold. First, we introduce edit-based training, a framework that converts model-generated reasoning failures into localized textual supervision at the first point of violation. Second, we instantiate the framework in offline and online variants for reasoning instruction following, with editors that can be scripted verifiers, LLM editors, or hybrids of the two. Third, we compare edit-based training against full-trajectory SFT and trajectory-level GRPO, and show that it improves reasoning instruction following while largely preserving the base model’s skills on the untargeted tasks we measure.
2.1 Problem setting
We study the problem of training language models to better follow instructions about their reasoning process. Our focus is not primarily on improving final task accuracy. Instead, we consider settings in which the user specifies constraints on how reasoning should proceed, and the model must satisfy those constraints while generating its solution. Examples of such reasoning-process instructions include requirements to use a prescribed format, follow a specified sequence of steps, check particular assumptions, avoid certain intermediate shortcuts, explicitly apply given constraints, reason in a particular language or style, or separate planning, computation, and final answering. We treat final performance improvement as a natural downstream application, but the central objective of this work is reasoning control: making the model’s intermediate reasoning more compliant with the requested procedure.
A natural approach is to construct full reasoning traces that satisfy the desired constraints and train the model using supervised fine-tuning (SFT). One option is to prompt a stronger model to generate complete compliant reasoning traces. However, this can introduce a distribution mismatch. The stronger model may have different linguistic habits, may use reasoning patterns unavailable to the target model, may solve the problem using different priors or latent capabilities, or may produce demonstrations that are formally correct but unnatural for the target model to imitate. Another option is to ask a stronger model to rewrite full traces produced by the target model so that they satisfy the instructions. This reduces the mismatch, but it still imposes complete corrected trajectories on the target model.
Full-trajectory SFT has a more fundamental limitation: it treats one complete reasoning trace as the desired behavior, even though many valid continuations may exist. As a result, it can unnecessarily reduce the entropy of the model’s reasoning distribution. The model is trained not only to avoid the mistake, but also to imitate many incidental choices in the demonstration. This problem is especially severe when the training set is small. With limited demonstrations, full-trajectory SFT can overfit to narrow reasoning styles or solution paths. In contrast, our goal is to fix the model’s behavior while avoiding this entropy-collapse problem [4, 5].
Another natural approach is to use reinforcement learning, such as GRPO-style training, with rewards based on whether the generated reasoning satisfies the specified constraints. This approach avoids full demonstrations and can optimize directly for instruction satisfaction. However, trajectory-level rewards provide coarse feedback. If a long reasoning trace violates an instruction because of one local mistake, the reward penalizes the entire trajectory. The central difficulty is credit assignment: terminal rewards indicate whether a completion succeeded, but not where it first failed or what local change would have repaired it. Our method addresses this limitation by replacing trajectory-level feedback with localized textual corrections at the first point of failure.
2.2 Edit-based training procedure
Given a prompt with an instruction about the desired reasoning process, we first sample a response from the current model (see Figure 1). We then inspect the generated reasoning trace to find the first point at which it fails to follow the instruction. At that point, an editor proposes a minimal replacement span. The replacement is designed to be surgical: it changes only the local text needed to repair the failure. Such an edit may consist of only a few tokens, for example replacing an incorrect transition, inserting a missing constraint, correcting a computation, or changing a step that violates the required format. We intentionally avoid rewriting the entire reasoning trace.
Okay, …First, …Actually, …So, …The answer … 好的 …首先 … Hmm, …Now, …The answer …好的 …首先 … 嗯 …Right, …The answer …\cdots$$\cdots好的 …首先 … 我们…嗯 …答案 …好的 …首先 … 我们…嗯 …The answer …
Figure 1: Edit-based training within one example. The instruction asks the model to reason in Chinese; the final answer is to remain in English. Each column shows the state of the trajectory after one editing round. The prompt and instruction are fixed across rounds. A red circle marks the first remaining instruction violation at the current round. A green circle is the editor’s minimal replacement span and is used as a supervised training target. Gray circles are model-generated tokens that are uncorrected in the current round. White circles are tokens accepted as part of the final trajectory but not used as edit targets. In the sampled rollout, the model begins reasoning in English, so the first reasoning step is flagged as the first violation. The editor makes a minimal Chinese replacement, and generation resumes from the corrected prefix. The editor applies replacements until the model continues reasoning in Chinese. Once the model adopts the requested mode, it may overshoot and emit the final answer in Chinese as well, which is itself a violation. The last edit then restores an English answer. The trajectory is now compliant.
After applying the edit, we continue sampling from the model conditioned on the corrected prefix. The corrected tokens may redirect the subsequent reasoning, allowing the model to recover and continue in a compliant way. We then evaluate the new continuation again, locate the first failure in the new continuation if one exists, and propose another local edit. This process can be repeated until the resulting trajectory satisfies the reasoning instruction or a stopping criterion is reached. The final output of the procedure is a single model-generated trajectory containing several short corrected spans. During training, the edit loss targets only the corrected spans. Thus, corrective supervision focuses on the counterfactual local actions that would have prevented the reasoning failure.
The editor is a module that receives a prompt, a generated trace, and the reasoning instruction. Its role is to identify the earliest span where the trace violates the instruction and to propose a replacement span. The editor may be implemented in different ways depending on the task: as a scripted verifier for formal or easily checkable constraints, as an LLM editor for more semantic reasoning instructions, or as a hybrid system combining rule-based checks with model-based editing. In all cases, the editor is instructed to make minimal edits rather than full rewrites. The proposed replacement is mapped to the model’s tokens, and the first token that differs from the generated trace becomes the corrected span. If, after this token, the model’s next generated token is the same as in the original trace, the span is extended token by token until the next generated token differs from the original trace. On average, a corrected span is shorter than two tokens.
Formally, let the model generate a reasoning trace conditioned on prompt . Suppose the editor identifies a failure prefix , where contains the prompt and the generated text up to the first failure point. The editor then provides a corrected replacement span . We train the model to assign higher likelihood to the corrected span at that failure state:
Here, denotes the distribution of failure prefixes induced by the current policy . The important distinction from standard supervised fine-tuning is that supervision is applied only at the edited span, not over the full trajectory. If multiple edits are found in one trajectory, the cross-entropy is averaged over the tokens of all edited spans. On the generated continuations between edits, we additionally apply a KL regularizer toward the base model (Appendix B.7).
We consider two ways of applying the edit-based training procedure. In the offline setting, we first generate a fixed dataset of model completions. We run the editor on these completions to produce corrected spans, and then train the model on this fixed edit dataset. In the online setting, we repeatedly generate completions using the current model. We then identify the current model’s failures, produce edits, and train on those edits. As the model improves, the distribution of failures changes. Online editing therefore focuses supervision on the mistakes that the current model actually makes. This makes the online variant near-on-policy: training data is drawn from the model’s evolving failure distribution.
Choice of loss function.
We use cross-entropy on the edit span, as in (1). Treating the edit as a preference pair and optimizing the policy with Direct Preference Optimization (DPO) [6] is a natural alternative (formulated in Appendix C); we leave a systematic comparison to future work.
Relation to standard SFT.
The key distinction from full-trajectory SFT is where supervision is concentrated. Our SFT baseline uses the same trajectories as Offline, treating both the model’s own generated continuations and the edited spans as targets. Offline applies supervision only to localized edits. This comparison tests the benefit of accurate credit assignment with the training data held fixed. Online additionally adapts the training data to the model’s evolving failure distribution.
Relation to online imitation learning.
Because edits can be generated from the current policy’s failed completions, the online version resembles DAgger-style imitation learning [7]. The editor does not provide a full expert trajectory from the initial state. Instead, the editor labels the states actually reached by the learner. In our setting, these states are failure prefixes in generated reasoning traces. This distinction is important because reasoning failures are often policy-dependent. A model may fail in ways that are specific to its own style, knowledge, and decoding behavior. Online edit training targets precisely these failures. The online version is therefore a form of online corrective imitation: the learner is trained on the errors it actually induces, rather than on idealized demonstrations sampled from a fixed expert distribution.
Relation to trajectory-level RL.
Similarly to reinforcement learning, our method does not require full expert demonstrations. The key difference is the form of feedback. Trajectory-level RL typically assigns a binary or scalar reward (or an advantage derived from such rewards) to an entire sampled completion. This indicates whether the completion succeeded but not what local change would have repaired it. Edit feedback provides this missing credit assignment. This localization is especially useful for long reasoning traces. A trajectory-level advantage may affect many tokens unrelated to the actual failure. Edit supervision instead concentrates the update at the editor-identified failure location, leaving the rest of the trajectory unsupervised. This can reduce credit diffusion and provide a lower-variance corrective signal. Edit supervision may be especially useful early in training, when fully successful trajectories are rare. In that regime, reward-based methods may observe little useful variation, since many completions receive the same failing reward. Edits, by contrast, are available precisely on failed samples, making supervision abundant when the model most needs corrective feedback. More broadly, edits and trajectory-level RL are complementary rather than substitutes. Edit supervision provides a localized textual specification of the corrected continuation that trajectory-level RL lacks at this granularity, while RL provides an outcome-grounded signal that edit supervision does not. Combining the two is a natural extension: edits to bootstrap the policy where successful trajectories are rare, RL to optimize for downstream task correctness once instruction compliance becomes routine.
3 Related work
Reasoning instruction following.
ReasonIF [1] introduces a benchmark for evaluating whether reasoning LLMs follow user-specified instructions throughout their reasoning traces (multilingual reasoning, formatting, length control), and shows that compliance degrades as task difficulty increases. MathIF [2] similarly finds that instruction following degrades as reasoning ability scales in mathematical reasoning models.
Process supervision and step-level credit assignment.
A large body of work attacks credit assignment in reasoning by densifying supervision at the step level. Process Reward Models [8, 9, 10] train step-level critics from per-step annotations; OmegaPRM [11] automates first-error localization via Monte Carlo rollouts and divide-and-conquer MCTS to scale PRM training; and ELPO [12] localizes the first irrecoverable step in tool-integrated rollouts and concentrates GRPO advantage there. More directly tied to first-error detection, VPPO [13] uses a PRM to partition an incorrect rollout into a verified good prefix and an erroneous suffix and rewards the former while penalizing the latter, while CAPO [14] uses an LLM-based generative PRM to convert per-step critiques into token-level rewards. All of these methods specify where credit should be concentrated, but reweight rewards on the model’s own (uncorrected) tokens; none specifies what the model should have produced instead. Our editor closes this gap by supplying a concrete textual repair, answering the counterfactual question of what the correct continuation at the failure point would have been.
Localized SFT and token-level interventions.
Closer in form to our objective, Critical Token Fine-Tuning (CFT) [15] also restricts the SFT loss to a sparse subset of token positions within a model-sampled trajectory, but operates on correct rollouts and identifies positions via counterfactual perturbation, supervising the model’s own original token at each chosen position. The criterion is tied to outcome-verifiable tasks and discards questions the model cannot already solve. Lin et al. [16] similarly show that replacing a single critical token can flip an incorrect trace to a correct one, providing empirical evidence for our premise that small local interventions redirect downstream reasoning, and use a contrastive signal between models fine-tuned on correct and incorrect trajectories as a token-level weight inside DPO. In contrast, our method draws supervision from the model’s failed rollouts, requires no auxiliary contrastive models, and supervises editor-supplied replacement tokens at the points where the trajectory first violates the reasoning instruction.
Edit- and intervention-based supervision.
Closest in form to our method are approaches that supply textual corrections at the failure point rather than scalar signals. SuperCorrect [17] shares the motivation that errors are localized and supervision should target the first failing step, but it trains a two-pass self-correction loop in which the student produces a trace, re-examines it, and emits a structured correction artifact, with the teacher supervising this corrective second pass via cross-model DPO. The concurrent Intervention Training (InT) of Yang et al. [18] is most closely related: given an incorrect rollout, InT self-verifies each step against a reference solution, locates the first erroneous step, and applies SFT to the prefix concatenated with a single-step intervention. We differ in three respects. First, InT targets final-answer accuracy and depends on reference solutions to verify steps; we target reasoning-process control, where no reference trace of the desired reasoning exists and the editor instead detects violations of the user-specified instruction. Second, InT inserts a single intervention per trajectory, whereas we may apply successive edits, repeatedly identifying the next first failure until the trace complies. Third, InT runs as a single offline pass; we show that an online variant, with edits continuously regenerated from the current policy’s failure distribution, outperforms the offline procedure in domain.
4 Experiments
4.1 Experimental setup
The experiments instantiate the iterative edit procedure described in Section 2.2. For each sampled trajectory, the editor locates the first remaining violation of the reasoning instruction, applies a minimal local replacement, and generation resumes from the corrected prefix. We repeat this process until the trajectory is compliant; if the stopping criterion is reached first, we discard the example.
Training prompts are constructed from the ReasonIF data-generation pipeline. The underlying tasks come from the same source datasets as ReasonIF: AIME [19], AMC [20], ARC [21], GPQA [22], and GSM8K [23]. Each prompt is paired with one reasoning-process instruction from the six ReasonIF categories: Uppercase only, JSON formatting, Multilinguality, Word limit, Remove commas, and Disclaimer. These categories are intended as controlled tests of reasoning instruction following rather than as claims about optimal reasoning strategies or final-answer improvement. We choose training prompts that do not overlap with the ReasonIF benchmark test set.
Table 1: Overview of the main results (higher is better). The first three rows report overall reasoning instruction-following accuracy (%) in three settings: in-domain, on out-of-domain prompts, and under unseen reasoning instructions. The last two rows measure preservation of capabilities not targeted by training: final-answer accuracy (%) on the ReasonIF tasks and on IMO-AnswerBench, both evaluated with the reasoning instruction removed. Trained systems report mean standard deviation across three training runs; among them, the best result in each row is shown in bold, together with any result whose standard deviation covers it. Per-category breakdowns of the instruction-following results are given in Tables 3, 5, and 6.
| Evaluation | Base | SFT | SFT-GPT | GRPO | Offline | Online |
|---|---|---|---|---|---|---|
| ReasonIF (in-domain) | 13 | 40.3 0.4 | 92 2 | 64 6 | 87 1 | 97 1 |
| Out-of-domain prompts | 21 | 57.1 0.2 | 96.8 0.4 | 80 3 | 96.6 0.2 | 95 2 |
| Unseen reasoning instructions | 2 | 5 1 | 63 2 | 30 10 | 68.4 0.4 | 34 9 |
| ReasonIF answer accuracy | 96 | 96.9 0.3 | 94 1 | 91 2 | 95 1 | 95 1 |
| IMO-AnswerBench | 61 | 61 1 | 43 2 | 60 2 | 57 1 | 59 2 |
We compare six systems (Table 1): Base, SFT, SFT-GPT, GRPO, Offline, and Online. Base is the starting checkpoint, Qwen3-32B [24], from which all trained systems are initialized; for the in-domain comparison, we additionally train all systems from Nemotron-3-Nano-Omni-30B-A3B-Reasoning-BF16 [25] (Nemotron). SFT is the full-trajectory baseline of Section 2.2, trained on the same edited trajectories as Offline. SFT-GPT instead uses complete GPT-5 [26] responses to the same reasoning-instruction tasks, with KL regularization toward the base model on a separate sample from Infinity-Instruct [27]. Further details on both SFT baselines are provided in Appendix B.4. GRPO is our trajectory-level reinforcement-learning baseline, trained with a ReasonIF compliance reward. Offline implements edit-based training with a fixed set of edited rollouts, whereas Online regenerates edits from the current policy during training. For both edit-based methods, supervision is applied only to localized correction targets.
For edit generation, we use a hybrid editor. Scripted verifiers handle Uppercase only, Remove commas, and the boundary logic for Word limit. The LLM editor, GPT-5, fully handles Multilinguality, Disclaimer, and JSON repairs that require rewriting existing JSON-like content. The editor is prompted to produce the minimal replacement span that fixes the detected violation. Further implementation details are provided in Appendix B.5.
4.2 Main results
We evaluate each system along two axes: how reliably it follows reasoning instructions, and how well it preserves the base model’s capabilities that the reasoning-control objective does not target. For the first axis we report reasoning instruction-following accuracy, the fraction of responses whose reasoning trace satisfies the requested instruction, in three settings: (i) in-domain, on the ReasonIF benchmark; (ii) out-of-domain prompts, new prompts from HuggingFace H4 Multilingual-Thinking [28] paired with the original ReasonIF instructions; and (iii) unseen reasoning instructions, the ReasonIF tasks paired with three reasoning-process instructions not seen during training (Appendix B.2). For the second axis we remove the reasoning instruction at evaluation and measure accuracy on IMO-AnswerBench [29], an independent set of 400 olympiad-level problems that is never used for training; because it lies outside the training distribution, it tests whether a system retains the base model’s mathematical problem-solving skill. Since the benchmark ships no evaluation script, we use GPT-5.4 [30] to judge each response against its ground-truth answer, so that the judge is independent of all evaluated models. Table 1 summarizes both axes; per-category breakdowns for each setting are provided in Appendix A.
The central finding is that edit-based training combines strong compliance and transfer with limited loss on untargeted tasks. Online attains the strongest in-domain control, transfers well to new prompts, and stays close to the base model on IMO-AnswerBench, so its gains in reasoning control come without a significant loss of untargeted mathematical ability. Every baseline gives up one side of this trade-off. SFT-GPT reaches comparable in-domain compliance, but its mathematical accuracy drops sharply. We attribute this decline to the mismatch between GPT-5’s reasoning trajectories and Qwen3’s native reasoning: imitating complete teacher trajectories may alter behaviors that support the base model’s performance. In line with this, SFT on Qwen3’s own trajectories with local edits retains mathematical accuracy, but achieves lower instruction compliance and weaker transfer to new prompts than the edit-based methods. GRPO with a binary compliance reward improves compliance far less than the edit-based methods, despite training directly on that reward. Offline’s higher compliance than SFT highlights the benefits of accurate credit assignment: both use the same underlying trajectories, but Offline applies supervision only to localized edits instead of applying full-trajectory imitation. Offline edit-based training reaches lower in-domain compliance than Online but outperforms SFT and GRPO, and notably transfers best of all systems to unseen instructions, while giving up a little mathematical accuracy. Both variants start from the same failure distribution, so the difference likely arises during training: once the first violations are repaired, Online’s regenerated edits concentrate on the residual violations within the six training categories, whereas Offline retains the base model’s full initial failure distribution. Consistent with this, Online’s deficit is specific to unseen instruction structures and not to new prompts.
A further preservation check supports this picture. With the reasoning instruction removed, final-answer correctness on the ReasonIF tasks remains near the base result for all systems but GRPO (Table 1); but these tasks come from sources seen during training and cannot reveal skill loss outside that distribution, which is exactly what IMO-AnswerBench exposes for SFT-GPT. Across these Qwen3-32B evaluations, the edit-based methods pair strong, transferable instruction following with largely preserved capability: Online gives the strongest in-domain control, while Offline generalizes best to unseen instructions.
The same in-domain conclusions hold for Nemotron, a model from a different family: Online again reaches the highest compliance, and Offline outperforms SFT and GRPO (Table 4 in Appendix A).
Finally, removing the KL regularizer that the edit-based methods apply to the generated continuations (Section 2.2) retains most of Offline’s in-domain compliance, but substantially increases variability across training runs and reduces transfer to unseen instructions; even without regularization, Offline still outperforms SFT in all three settings (Appendix A.1).
Table 2: IFEval constraint accuracy (%), macro-averaged over constraint categories. Online- and Online+ evaluate the edit-trained model without and with the draft-review-revise reasoning instruction, respectively; Base is evaluated without it. Seen comprises the three constraint categories represented during training and Unseen the remaining categories; Constraints indicates whether the prompt imposes a single constraint or multiple.
| Categories | Constraints | Base | Online- | Online+ |
|---|---|---|---|---|
| Seen | Single | 85 | 89 | 96 |
| Seen | Multiple | 81 | 85 | 85 |
| Unseen | Single | 93 | 93 | 91 |
| Unseen | Multiple | 90 | 89 | 88 |
4.3 From reasoning control to task performance
The reasoning instructions studied so far are controlled proxies. We now ask whether teaching a reasoning procedure can improve the final answer itself, using IFEval [31], whose prompts impose an output constraint on the response, such as a forbidden word or a capitalization rule. Each training prompt pairs one constraint, drawn from Capital Word Frequency, English Capital, or Forbidden Words, with a reasoning instruction that asks the model to draft a response, review it against the constraint, and revise it when the review finds a violation. Every training prompt imposes exactly one output constraint, so prompts carrying several constraints at once are never seen during training; we therefore report the seen and unseen categories separately for single- and multiple-constraint prompts. We teach this draft-review-revise procedure with edit-based training (the online variant).
Crucially, the editor does more than enforce the format of this procedure. Whenever the procedure breaks down, it restores the draft-review-revise structure, but it also corrects its content: it fixes reviews that miss or misidentify a violation, repairs unresolved violations, and forces the final response to reproduce the corrected draft. Only editor-changed spans are supervised. This supervision targets both execution of the procedure and the correctness of its review and revision steps.
When instructed, Base never completes the draft-review-revise procedure, which is why it is evaluated without the instruction; Online follows it in 92% of responses. Table 2 reports macro-averaged IFEval constraint accuracy. On the constraint categories seen during training, accuracy improves over Base, most clearly when the reasoning instruction is provided at test time. On single-constraint prompts, training alone yields a non-significant gain of 4 percentage points (5; 95% confidence interval over prompts, paired across systems); invoking the procedure adds 7 (6), for a total gain of 11 (8). On multiple-constraint prompts, accuracy on seen constraint categories improves marginally, from 81% to 85% (5), despite training exclusively on single-constraint prompts. On unseen constraint categories, the effects are mixed: compliance improves for some and declines for others, with a slight, non-significant decrease on average when the procedure is invoked. This variation may reflect differences in the model’s ability to detect violations of different constraints. Detection remains the main bottleneck overall: of 631 noncompliant first drafts, the model flags and revises only 18%, and 62% of those revisions succeed. Thus, correction is often effective once a problem is identified, but most violations go undetected.
5 Conclusion
We introduced edit-based training, a framework that learns from a model’s own reasoning traces by correcting them locally rather than imitating or reweighting them as a whole. An editor identifies the first point at which a trace violates a requested reasoning instruction and proposes a minimal replacement span; only these edited spans are supervised. This concentrates the training signal exactly where the model goes wrong. By restricting corrective supervision to short spans within the model’s own trajectories, the method aims to limit changes unrelated to the requested reasoning instruction. We instantiated the framework in offline and online variants for reasoning instruction following. Edit-based training improves in-domain compliance on two distinct model families, Qwen3-32B and Nemotron. On Qwen3-32B, where we evaluate further, the gains extend to out-of-domain prompts and unseen instructions while largely preserving the model’s skills on the untargeted tasks we measure, unlike full-trajectory distillation, which attains strong compliance only at the cost of untargeted capabilities, and trajectory-level reinforcement learning, which improves compliance far less. Localized correction is thus an effective complement to full-trajectory imitation and reinforcement learning for shaping how language models reason.
We see two main directions for future work. First, our study uses reasoning-instruction compliance as a controlled proxy; a natural next step is to apply edit-based training to improve primary task performance directly, with an editor that corrects substantive reasoning errors rather than instruction violations. Second, the LLM editor here is an external frontier model. As open models improve, the same framework could enable self-improvement, in which a model edits its own thinking and trains on its own corrections, removing the dependence on a stronger external editor.
Limitations.
The six ReasonIF categories are deliberately verifiable proxies and do not span the full range of reasoning controllability needs; however, the IFEval experiment in Section 4.3 tests a substantive reasoning procedure, in which the model first drafts a response and then verifies the draft against the requirements. This draft-review-revise procedure was trained only in the Online regime, and transfer from it is concentrated in the constraint categories represented during training; it does not extend to the remaining ones, where invoking the procedure gives a slight, non-significant decrease in accuracy. The edit dataset was generated once rather than regenerated per seed, leaving variance contributed by the LLM editor unmeasured. Nemotron was evaluated in domain only; all transfer, downstream, and preservation results use Qwen3-32B. The DPO alternative formulated in Appendix C is left to future work.
Acknowledgments and Disclosure of Funding
We acknowledge CSC – IT Center for Science, Finland, for awarding this project access to the LUMI supercomputer, owned by the EuroHPC Joint Undertaking, hosted by CSC (Finland) and the LUMI consortium through CSC. We used an AI assistant for writing support (wording, consistency checks, LaTeX layout, illustrations) and for drafting parts of the analysis scripts; all outputs were verified by the authors. The authors declare no competing interests.
References
[1] Yongchan Kwon, Shang Zhu, Federico Bianchi, Kaitlyn Zhou, and James Zou. ReasonIF: Large reasoning models fail to follow instructions during reasoning. arXiv preprint arXiv:2510.15211, 2025.
[2] Tingchen Fu, Jiawei Gu, Yafu Li, Xiaoye Qu, and Yu Cheng. Scaling reasoning, losing control: Evaluating instruction following in large reasoning models. arXiv preprint arXiv:2505.14810, 2025.
[3] Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. DeepSeekMath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300, 2024.
[4] Hao Wang, Hao Gu, Hongming Piao, Kaixiong Gong, Yuxiao Ye, Xiangyu Yue, Sirui Han, Yike Guo, and Dapeng Wu. Learning while staying curious: Entropy-preserving supervised fine-tuning via adaptive self-distillation for large reasoning models. arXiv preprint arXiv:2602.02244, 2026.
[5] Yijie Chen, Yijin Liu, and Fandong Meng. SED-SFT: Selectively encouraging diversity in supervised fine-tuning. arXiv preprint arXiv:2602.07464, 2026.
[6] Rafael Rafailov, Archit Sharma, Eric Mitchell, Stefano Ermon, Christopher D. Manning, and Chelsea Finn. Direct preference optimization: Your language model is secretly a reward model. arXiv preprint arXiv:2305.18290, 2023.
[7] Stéphane Ross, Geoffrey J. Gordon, and Drew Bagnell. A reduction of imitation learning and structured prediction to no-regret online learning. In Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics, AISTATS 2011, JMLR Proceedings, pages 627–635. JMLR.org, 2011.
[8] Hunter Lightman, Vineet Kosaraju, Yuri Burda, Harrison Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let’s verify step by step. In The Twelfth International Conference on Learning Representations, ICLR 2024. OpenReview.net, 2024.
[9] Amrith Setlur, Chirag Nagpal, Adam Fisch, Xinyang Geng, Jacob Eisenstein, Rishabh Agarwal, Alekh Agarwal, Jonathan Berant, and Aviral Kumar. Rewarding progress: Scaling automated process verifiers for LLM reasoning. In The Thirteenth International Conference on Learning Representations, ICLR 2025. OpenReview.net, 2025.
[10] Congming Zheng, Jiachen Zhu, Zhuoying Ou, Yuxiang Chen, Kangning Zhang, Rong Shan, Zeyu Zheng, Mengyue Yang, Jianghao Lin, Yong Yu, and Weinan Zhang. A survey of process reward models: From outcome signals to process supervisions for large language models. arXiv preprint arXiv:2510.08049, 2025.
[11] Liangchen Luo, Yinxiao Liu, Rosanne Liu, Samrat Phatale, Harsh Lara, Yunxuan Li, Lei Shu, Yun Zhu, Lei Meng, Jiao Sun, and Abhinav Rastogi. Improve mathematical reasoning in language models by automated process supervision. arXiv preprint arXiv:2406.06592, 2024.
[12] Qiao Liang, Yuke Zhu, Chao Ge, Lei Yang, Ying Shen, Bo Zheng, and Sheng Guo. Learning from the irrecoverable: Error-localized policy optimization for tool-integrated LLM reasoning. arXiv preprint arXiv:2602.09598, 2026.
[13] Haolin Liu, Dian Yu, Sidi Lu, Yujun Zhou, Rui Liu, Zhenwen Liang, Haitao Mi, Chen-Yu Wei, and Dong Yu. Save the good prefix: Precise error penalization via process-supervised RL to enhance LLM reasoning. arXiv preprint arXiv:2601.18984, 2026.
[14] Guofu Xie, Yunsheng Shi, Hongtao Tian, Ting Yao, and Xiao Zhang. CAPO: Towards enhancing LLM reasoning through verifiable generative credit assignment. arXiv preprint arXiv:2508.02298, 2025.
[15] Zhiwen Ruan, Yixia Li, He Zhu, Yun Chen, Peng Li, Yang Liu, and Guanhua Chen. Enhancing large language model reasoning via selective critical token fine-tuning. arXiv preprint arXiv:2510.10974, 2025.
[16] Zicheng Lin, Tian Liang, Jiahao Xu, Qiuzhi Liu, Xing Wang, Ruilin Luo, Chufan Shi, Siheng Li, Yujiu Yang, and Zhaopeng Tu. Critical tokens matter: Token-level contrastive estimation enhances LLM’s reasoning capability. In Forty-second International Conference on Machine Learning, ICML 2025, Proceedings of Machine Learning Research. PMLR, 2025.
[17] Ling Yang, Zhaochen Yu, Tianjun Zhang, Minkai Xu, Joseph E. Gonzalez, Bin Cui, and Shuicheng Yan. SuperCorrect: Supervising and correcting language models with error-driven insights. arXiv preprint arXiv:2410.09008, 2025.
[18] Matthew Y. R. Yang, Hao Bai, Ian Wu, Gene Yang, Amrith Setlur, and Aviral Kumar. InT: Self-proposed interventions enable credit assignment in LLM reasoning. arXiv preprint arXiv:2601.14209, 2026.
[19] AI-MO. Hugging face dataset: aimo-validation-aime. https://huggingface.co/datasets/AI-MO/aimo-validation-aime, 2025a. Accessed: 2025-10-04.
[20] AI-MO. Hugging face dataset: aimo-validation-amc. https://huggingface.co/datasets/AI-MO/aimo-validation-amc, 2025b. Accessed: 2025-10-04.
[21] Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. Think you have solved question answering? try arc, the ai2 reasoning challenge. arXiv preprint arXiv:1803.05457, 2018.
[22] David Rein, Betty Li Hou, Asa Cooper Stickland, Jackson Petty, Richard Yuanzhe Pang, Julien Dirani, Julian Michael, and Samuel R Bowman. Gpqa: A graduate-level google-proof q&a benchmark. arXiv preprint arXiv:2311.12022, 2023.
[23] Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, Christopher Hesse, and John Schulman. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021.
[24] Qwen Team. Qwen3 technical report, 2025. URL https://arxiv.org/abs/2505.09388.
[25] NVIDIA. Nemotron 3 nano omni: Efficient and open multimodal intelligence, 2026. URL https://arxiv.org/abs/2604.24954.
[26] OpenAI. GPT-5 system card. https://openai.com/index/gpt-5-system-card/, 2025. Published August 7, 2025.
[27] Jijie Li, Li Du, Hanyu Zhao, Bo wen Zhang, Liangdong Wang, Boyan Gao, Guang Liu, and Yonghua Lin. Infinity instruct: Scaling instruction selection and synthesis to enhance language models, 2025. URL https://arxiv.org/abs/2506.11116.
[28] HuggingFaceH4. Multilingual-thinking. https://huggingface.co/datasets/HuggingFaceH4/Multilingual-Thinking, 2025. Retrieved October 5, 2025.
[29] Thang Luong, Dawsen Hwang, Hoang H. Nguyen, Golnaz Ghiasi, Yuri Chervonyi, Insuk Seo, Junsu Kim, Garrett Bingham, Jonathan Lee, Swaroop Mishra, Alex Zhai, Clara Huiyi Hu, Henryk Michalewski, Jimin Kim, Jeonghyun Ahn, Junhwi Bae, Xingyou Song, Trieu H. Trinh, Quoc V. Le, and Junehyuk Jung. Towards robust mathematical reasoning. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, 2025. URL https://aclanthology.org/2025.emnlp-main.1794/.
[30] OpenAI. GPT-5.4 Thinking system card. https://openai.com/index/gpt-5-4-thinking-system-card/, 2026. Published March 5, 2026.
[31] Jeffrey Zhou, Tianjian Lu, Swaroop Mishra, Siddhartha Brahma, Sujoy Basu, Yi Luan, Denny Zhou, and Le Hou. Instruction-following evaluation for large language models. arXiv preprint arXiv:2311.07911, 2023.
[32] H. Wilner. IMO-AnswerBench. Hugging Face dataset, 2025. URL https://huggingface.co/datasets/Hwilner/imo-answerbench. Accessed: 2026-08-28.
Appendix A Detailed evaluation results
This appendix reports the per-category breakdowns of the reasoning instruction-following accuracy summarized in Table 1. Tables 3 and 4 give the in-domain results for Qwen3-32B and Nemotron, respectively. Tables 5 and 6 give the Qwen3-32B results for out-of-domain prompts and unseen instructions. Trained systems report mean standard deviation across three training runs; per-sample evaluation uncertainty is approximately binomial and is omitted from the tables. The unseen-instruction setting (Table 6) uses three reasoning-process instructions held out from training. Answer draft asks the model to include an explicit answer draft inside delimiter tags while reasoning; Sections asks it to organize its reasoning into a fixed sequence of labeled parts (question analysis, answer draft, answer verification, and final answer); and Two approaches asks it to compare two candidate solution approaches before selecting one. These differ from the six training categories in both form and intent, testing whether a trained system follows reasoning instructions with an unfamiliar structure; their exact wording is given in Appendix B.2.
Table 3: Qwen3-32B reasoning instruction-following accuracy (%) on the ReasonIF benchmark. Each training run is evaluated six times; 1800 responses per training run.
| Category | Base | SFT | SFT-GPT | GRPO | Offline | Online |
|---|---|---|---|---|---|---|
| Uppercase only | 0 | 33 3 | 93 2 | 38 29 | 70 2 | 96 1 |
| JSON formatting | 0 | 66 1 | 91 8 | 0 0 | 75 1 | 95 1 |
| Multilinguality | 44 | 78 2 | 94.0 0.3 | 100 0 | 98 2 | 99 1 |
| Word limit | 0 | 7 2 | 94 2 | 65 14 | 99.9 0.1 | 99 1 |
| Remove commas | 26 | 48 2 | 99.0 0.2 | 97 2 | 94 1 | 99 1 |
| Disclaimer | 7 | 9 1 | 83 3 | 77 2 | 79 2 | 94 4 |
| Overall | 13 | 40.3 0.4 | 92 2 | 64 6 | 87 1 | 97 1 |
Table 4: Nemotron-3-Nano-Omni-30B-A3B-Reasoning-BF16 reasoning instruction-following accuracy (%) on the ReasonIF benchmark. Each training run is evaluated six times; 1800 responses per training run.
| Category | Base | SFT | SFT-GPT | GRPO | Offline | Online |
|---|---|---|---|---|---|---|
| Uppercase only | 0 | 36 1 | 90 2 | 0 0 | 29 3 | 91 1 |
| JSON formatting | 0 | 83 6 | 91 2 | 0 0 | 90 3 | 99.5 0.3 |
| Multilinguality | 27 | 73 1 | 93 1 | 27.1 0.3 | 92 2 | 94.6 0.5 |
| Word limit | 13 | 16 2 | 89 1 | 8 6 | 87 7 | 93 2 |
| Remove commas | 4 | 46 1 | 97.7 0.4 | 36 3 | 97 1 | 100 0 |
| Disclaimer | 3 | 45 2 | 78 2 | 2 2 | 71 18 | 97 0 |
| Overall | 8 | 50 1 | 89.9 0.4 | 13 2 | 79 1 | 96 1 |
Table 5: Qwen3-32B reasoning instruction-following accuracy (%) on a dataset constructed from the HuggingFace H4 Multilingual-Thinking dataset [28] with ReasonIF instructions appended. Each training run is evaluated twice; 2000 responses per training run.
| Category | Base | SFT | SFT-GPT | GRPO | Offline | Online |
|---|---|---|---|---|---|---|
| Uppercase only | 0 | 83 1 | 94 1 | 83 16 | 91.2 0.4 | 94 3 |
| JSON formatting | 0 | 6 3 | 94 3 | 0 0 | 94.1 0.8 | 96 3 |
| Multilinguality | 5 | 33 2 | 99.3 0.3 | 99.7 0.3 | 98.1 0.6 | 93 1 |
| Word limit | 81 | 85 1 | 99.1 0.1 | 99.7 0.5 | 99.1 0.3 | 91 5 |
| Remove commas | 16 | 87 2 | 97 1 | 100 0 | 100 0 | 99.7 0.1 |
| Disclaimer | 22 | 48 1 | 98 1 | 98 1 | 97 1 | 98.8 0.6 |
| Overall | 21 | 57.1 0.2 | 96.8 0.4 | 80 3 | 96.6 0.2 | 95 2 |
Table 6: Qwen3-32B reasoning instruction-following accuracy (%) on the ReasonIF benchmark with the original instructions replaced by unseen reasoning-process instructions. Each training run is evaluated three times; 900 responses per training run.
| Category | Base | SFT | SFT-GPT | GRPO | Offline | Online |
|---|---|---|---|---|---|---|
| Answer draft | 1 | 0.9 0.4 | 43 5 | 34 7 | 60 1 | 33 14 |
| Sections | 2 | 8 2 | 63 1 | 24 10 | 53 2 | 30 9 |
| Two approaches | 4 | 6 1 | 82 1 | 30 13 | 89 2 | 38 5 |
| Overall | 2 | 5 1 | 63 2 | 30 10 | 68.4 0.4 | 34 9 |
A.1 Effect of regularization
We evaluate Qwen3-32B trained with Offline without the regularization described in Appendix B.7. We run this ablation on Offline only: its fixed edit dataset isolates the effect of regularization from changes in the training data. Table 7 compares this ablation with the regularized Offline results from Table 1.
Table 7: Qwen3-32B Offline reasoning instruction-following accuracy (%) with and without regularization. Both settings report mean standard deviation across three training runs.
| Evaluation | With reg. | Without reg. |
|---|---|---|
| ReasonIF (in-domain) | 87 1 | 85 2 |
| Out-of-domain prompts | 96.6 0.2 | 94 1 |
| Unseen reasoning instructions | 68.4 0.4 | 30 8 |
Removing regularization increases variability across training runs in all three settings, suggesting that regularization supports training stability. Mean compliance declines modestly in domain and on new prompts, but sharply on unseen instructions. This increased instability may partly explain the decline in generalization to unseen instruction structures.
Appendix B Experimental details
B.1 Prompt construction
Each raw task prompt is wrapped in a fixed template that presents the task statement, inserts the reasoning-process instruction into a delimited thinking-guidelines block, and asks the model to place the final answer inside answer tags:
{question_statement} <thinking guidelines> {constraint_text} </thinking guidelines> Place the final answer inside the tags ‘<answer>‘ and ‘</answer>‘.
Here, question_statement is the underlying task prompt and constraint_text is the natural-language reasoning-process instruction for that example.
B.2 Unseen reasoning instructions
For the transfer evaluation with unseen reasoning-process instructions, we keep the ReasonIF task prompts and replace the original instruction categories with the following three instructions.
Answer draft.
When reasoning, provide the answer draft between an ’<answer_draft>’ tag and a ’</answer_draft>’ tag. Put the ’<answer_draft>’ tag on its own line, and put the ’</answer_draft>’ tag on its own line.
Sections.
When reasoning, include these exact labeled parts in this order: SECTION: QUESTION ANALYSIS SECTION: ANSWER DRAFT SECTION: ANSWER VERIFICATION SECTION: FINAL ANSWER
Two approaches.
When reasoning, include a structured comparison of two possible solution approaches and then choose one. Use these exact labels in this order: Question Analysis: Approach 1: Approach 2: Approach Selection:
B.3 IFEval editor and prompt construction
Training and validation prompts (3k and 300) for the IFEval experiment of Section 4.3 are generated with GPT-5.4 [30]; the original IFEval set (541 prompts) is used only for testing. Each prompt is appended with one IFEval instruction, selected from the three training categories (Capital Word Frequency, English Capital, and Forbidden Words), and with the thinking guidelines given below, which ask the model to draft a response, review it against the instruction, and revise it when the review finds a violation. GPT-5.4 also serves as the editor: it edits the trajectory whenever the draft-review-revise procedure breaks down. It restores the draft-review-revise structure, corrects inaccurate reviews or unresolved problems in the revised draft, and makes the final response reproduce the revised draft byte for byte. Only spans changed by the editor contribute to the training loss. This experiment uses a single training run; each system is evaluated six times, and Table 2 reports the average over these evaluations.
The reasoning instruction for this experiment is:
First reason normally toward an answer candidate. Then, while reasoning, use the XML section structure below. Put each opening tag and closing tag on its own line. <answer_candidate> Draft the answer candidate. This should be the response you would show to the user if it passes review. </answer_candidate> <answer_candidate_review> Review the answer candidate for correctness and compliance with the user’s constraints using this format: Requirement 1: [requirement name]. [reasoning about compliance, including specific evidence or an argument from checking the answer_candidate] — PASS or FAIL Requirement 2: [requirement name]. [reasoning about compliance, including specific evidence or an argument from checking the answer_candidate] — PASS or FAIL Continue for each explicit requirement or constraint. Each requirement line must name the requirement and reason about whether the answer_candidate satisfies it. The reasoning must include specific evidence or an argument from checking the answer_candidate, not a generic statement. Verdict: PASS or FAIL If the verdict is FAIL, explain briefly how to fix the failed requirements. </answer_candidate_review> If the review verdict is PASS, finish reasoning and output the answer_candidate as the final answer. If the review verdict is FAIL, reason normally about how to fix each failed requirement. Then include the optional corrected final candidate section: <improved_answer_candidate> Write the corrected final answer. It must fix the failed requirements while preserving the parts of the answer_candidate that were already correct. </improved_answer_candidate>
B.4 Full-trajectory SFT baselines
For SFT, we construct a full-trajectory dataset from the same edited rollouts used by Offline. Both the model’s own generated continuations and the editor’s replacement spans serve as supervised targets. SFT applies cross-entropy over the full trajectories without a separate KL term. Most of its targets are continuations sampled from the base model, so this loss acts as a sample-based regularizer toward the base model, related to, though not identical with, the KL term used by the edit-based methods.
SFT-GPT instead uses complete compliant responses generated by GPT-5 for the same reasoning-instruction tasks and applies supervised fine-tuning to the full trajectories. It therefore measures full-trajectory distillation from a stronger teacher, while SFT uses the target model’s own trajectories with local edits.
To reduce general distributional drift, we regularize SFT-GPT with a KL divergence to the base model on a separate sample from Infinity-Instruct [27].
B.5 Editor implementation
The editor combines scripted verifiers with an LLM editor, GPT-5. The scripted verifiers implement the direct repairs used for Uppercase only, Remove commas, Word limit boundary cases, and JSON scaffolding. The LLM editor operates at the character level and is used for Multilinguality, Disclaimer, and JSON repair when the reasoning already contains JSON-like content. Its prompt asks the model to identify the earliest character position at which the response violates the constraint, keep all preceding text byte-identical, and edit only the suffix needed to make the response compliant while preserving fluency and meaning except where the constraint explicitly requires a change. The corrected span is then extracted from this suffix as described in Section 2.2. We allow at most 10 edit iterations per trajectory; examples that remain non-compliant after this limit are discarded.
For Uppercase only and Remove commas, the script directly rewrites the surface form. For Word limit, it acts at the reasoning/answer boundary: if the limit is exceeded, we stop the reasoning and force the answer component to begin; if the reasoning uses less than one fifth of the allowed quota, we force a reasoning continuation by querying the model again with the task prompt and the reasoning prefix, but without the word-limit guideline. For JSON formatting, we insert markdown formatting and an opening curly brace when no JSON-like content is present; otherwise GPT-5 repairs malformed JSON-like reasoning. Multilinguality and Disclaimer are handled by GPT-5.
B.6 Existing assets
We use existing public assets for the base models, instruction benchmarks, underlying task prompts, and regularization data. Qwen3-32B [24], ReasonIF [1], IFEval [31], HuggingFace H4 Multilingual-Thinking [28], and the AI-MO AIME/AMC sets [19, 20] are released under Apache-2.0. Nemotron-3-Nano-Omni-30B-A3B-Reasoning-BF16 [25] is released under the NVIDIA Open Model Agreement. The other datasets are released under MIT for GSM8K [23], CC BY 4.0 for GPQA [22] and IMO-AnswerBench [29, 32], and CC BY-SA 4.0 for AI2 ARC [21] and Infinity-Instruct [27]. We use these assets only for research training and evaluation and do not redistribute the original datasets.
B.7 Training configuration
All trained systems fine-tune Qwen3-32B or Nemotron-3-Nano-Omni-30B-A3B-Reasoning-BF16 using LoRA. The LoRA rank is 64, LoRA alpha is 128, and LoRA dropout is 0.05. LoRA adapters are applied to all linear transformer modules except the final language-modeling head. Optimization uses AdamW with weight decay set to zero and learning rate . Offline, SFT, and SFT-GPT use linear learning-rate decay; the online methods, Online and GRPO, use no decay.
The edit-based training loss is cross-entropy on the corrected tokens. We regularize the edit-based methods with a KL divergence to the base model on the model continuations from the same training examples, i.e., the tokens generated after the local correction; these continuation tokens are excluded from the primary loss. The two terms are weighted 1:1, and each is averaged over its own target tokens. For GRPO, we use the standard KL regularization term with coefficient 0.05.
Online training uses a buffer of generated samples. Batch construction prioritizes fresh unused samples from the most recent model checkpoint, then other unused samples, and finally samples drawn uniformly from the full buffer if the batch is still not full.
Rollouts for both model families use temperature 0.6 and top- 0.95, with no presence, frequency, or repetition penalties. Qwen3 additionally uses top- 20; Nemotron uses no top- truncation. A representative Qwen3 run uses about 700–850 gradient steps and takes about 10 hours of wall-clock time.
Experiments are run on the LUMI supercomputer using the standard-g GPU partition. Each GPU node contains four AMD Instinct MI250X accelerators (exposed as eight logical GPUs via dual GCDs), a 64-core AMD EPYC 7A53 CPU, 512 GB system memory, and access to a high-performance parallel Lustre storage system. Each MI250X provides 128 GB of HBM2e memory. Each run uses two nodes: one node for training and one node for rollout generation. Training uses PyTorch FSDP2 across the GPUs of the training node.
Appendix C Loss function alternative
Section 2.2 introduces the cross-entropy edit loss in (1) and notes Direct Preference Optimization [6] as a natural alternative. Treating each edit as a preference pair at the failure prefix , with the editor’s replacement as the preferred continuation and the model’s original span as the dispreferred one, the corresponding DPO objective is
where is a frozen reference policy and controls the strength of the implicit KL regularization toward it. Compared with the cross-entropy formulation, this would explicitly push probability mass away from the original failure continuation rather than only toward the corrected span. We leave a systematic comparison to future work.
Appendix D Broader impacts
Edit-based training is a method for making language models more controllable in their reasoning, which we view as a net-positive direction for alignment: instructions that the model reliably follows can be used to require auditable structure, block known shortcut patterns, or enforce verification steps that the model would otherwise skip. The same controllability could in principle be used to enforce reasoning structures that are themselves undesirable, for example by suppressing safety-relevant intermediate reasoning. Doing so requires the operator to specify the constraint explicitly and to obtain edit supervision that exemplifies it; both of these are inspectable artifacts rather than latent model behaviors. We do not release a new pretrained model, dataset, or scraped resource, so the work does not introduce additional release-time misuse vectors beyond those already present in the publicly available base model and benchmarks we use.
NeurIPS Paper Checklist
- Claims
- Question: Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope?
- Answer: [Yes] .
- Justification: The abstract and introduction describe the edit-based method and claim improved reasoning-instruction compliance while largely preserving the base model’s skills on the untargeted tasks we measure. These claims are supported by the results summarized in Table 1, with per-setting breakdowns in Tables 3, 4, 5, and 6, and the regularization ablation in Appendix A.1.
- Guidelines: • The answer [N/A] means that the abstract and introduction do not include the claims made in the paper. • The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A [No] or [N/A] answer to this question will not be perceived well by the reviewers. • The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings. • It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper.
- Limitations
- Question: Does the paper discuss the limitations of the work performed by the authors?
- Answer: [Yes] .
- Justification: A dedicated Limitations paragraph at the end of the Conclusion lists the main scope limits: the six ReasonIF categories cover only verifiable instances of reasoning controllability; the draft-review-revise procedure transfers only to constraint categories seen in training; the edit dataset is fixed across seeds, so editor-induced variance is unmeasured; Nemotron is evaluated in domain only, and all transfer, downstream, and preservation results use Qwen3-32B; and the DPO loss alternative is left to future work.
- Guidelines: • The answer [N/A] means that the paper has no limitation while the answer [No] means that the paper has limitations, but those are not discussed in the paper. • The authors are encouraged to create a separate “Limitations” section in their paper. • The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be. • The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated. • The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon. • The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size. • If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness. • While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren’t acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations.
- Theory assumptions and proofs
- Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof?
- Answer: [N/A] .
- Justification: The paper introduces a training objective and provides conceptual connections to online imitation learning and reinforcement learning, but it does not state formal theorems or proofs.
- Guidelines: • The answer [N/A] means that the paper does not include theoretical results. • All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced. • All assumptions should be clearly stated or referenced in the statement of any theorems. • The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition. • Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material. • Theorems and Lemmas that the proof relies upon should be properly referenced.
- Experimental result reproducibility
- Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)?
- Answer: [Yes] .
- Justification: The experimental setup specifies the base model, datasets, compared systems, evaluation settings, number of runs, editor construction, and metrics. Additional implementation, SFT baseline construction, prompt, and training details are provided in Appendix B.
- Guidelines: • The answer [N/A] means that the paper does not include experiments. • If the paper includes experiments, a [No] answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not. • If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable. • Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general. releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed. • While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example (a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm. (b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully. (c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset). (d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results.
- Open access to data and code
- Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material?
- Answer: [No] .
- Justification: The paper does not include code or data. The editor is described in detail in Appendix B.5; together with the ReasonIF instruction code available on GitHub, this description allows the data-generation pipeline to be reproduced. Training hyperparameters are provided in Appendix B.7.
- Guidelines: • The answer [N/A] means that paper does not include experiments requiring code. • Please see the NeurIPS code and data submission guidelines (https://neurips.cc/public/guides/CodeSubmissionPolicy) for more details. • While we encourage the release of code and data, we understand that this might not be possible, so [No] is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark). • The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://neurips.cc/public/guides/CodeSubmissionPolicy) for more details. • The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc. • The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why. • At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable). • Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted.
- Experimental setting/details
- Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer) necessary to understand the results?
- Answer: [Yes] .
- Justification: Section “Experimental setup” describes the train/test construction, evaluated settings, systems, metrics, and number of runs. Appendix B.7 gives LoRA, optimizer, sampling, regularization, and online-buffer details.
- Guidelines: • The answer [N/A] means that the paper does not include experiments. • The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them. • The full details can be provided either with the code, in appendix, or as supplemental material.
- Experiment statistical significance
- Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments?
- Answer: [Yes] .
- Justification: All ReasonIF tables report mean standard deviation across three independent training runs for SFT, SFT-GPT, GRPO, Offline, and Online. Base is the unmodified starting checkpoint and is reported as a single evaluation point. Per-sample evaluation uncertainty is approximately binomial and omitted from the tables, as stated in the captions and Appendix A. The IFEval experiment uses a single training run evaluated six times; Section 4.3 reports paired 95% confidence intervals over prompts (Appendix B.3).
- Guidelines: • The answer [N/A] means that the paper does not include experiments. • The authors should answer [Yes] if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper. • The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions). • The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.) • The assumptions made should be given (e.g., Normally distributed errors). • It should be clear whether the error bar is the standard deviation or the standard error of the mean. • It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a 96% CI, if the hypothesis of Normality of errors is not verified. • For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g., negative error rates). • If error bars are reported in tables or plots, the authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text.
- Experiments compute resources
- Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments?
- Answer: [Yes] .
- Justification: Appendix B.7 describes the LUMI standard-g nodes used for training and rollout generation, including accelerator type/count, CPU, memory, storage setup, distributed-training scheme, and approximate wall-clock and node-hour cost per representative run.
- Guidelines: • The answer [N/A] means that the paper does not include experiments. • The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage. • The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute. • The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn’t make it into the paper).
- Code of ethics
- Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines?
- Answer: [Yes] .
- Justification: The work uses existing public benchmarks and model training/evaluation procedures, without human subjects or sensitive personal data collection. We believe the research conforms to the NeurIPS Code of Ethics.
- Guidelines: • The answer [N/A] means that the authors have not reviewed the NeurIPS Code of Ethics. • If the authors answer [No] , they should explain the special circumstances that require a deviation from the Code of Ethics. • The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction).
- Broader impacts
- Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed?
- Answer: [Yes] .
- Justification: Appendix D discusses both directions: reasoning controllability as an alignment lever (auditable structure, blocking known shortcut patterns, enforcing verification steps) and the corresponding misuse direction in which the same controllability is turned against safety-relevant intermediate reasoning. The work does not release a new pretrained model, dataset, or scraped resource, so it does not introduce release-time misuse vectors beyond those already present in the publicly available base model and benchmarks we use.
- Guidelines: • The answer [N/A] means that there is no societal impact of the work performed. • If the authors answer [N/A] or [No] , they should explain why their work has no societal impact or why the paper does not address societal impact. • Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations. • The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate Deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster. • The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology. • If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML).
- Safeguards
- Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pre-trained language models, image generators, or scraped datasets)?
- Answer: [N/A] .
- Justification: The paper does not announce the release of a new pretrained language model, high-risk dataset, or other asset requiring special release safeguards. It fine-tunes an existing model for research evaluation.
- Guidelines: • The answer [N/A] means that the paper poses no such risks. • Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters. • Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images. • We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort.
- Licenses for existing assets
- Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected?
- Answer: [Yes] .
- Justification: The paper cites the existing models and datasets used, including Qwen3-32B, Nemotron-3-Nano-Omni-30B-A3B-Reasoning-BF16, ReasonIF, IFEval, AIME/AMC, ARC, GPQA, GSM8K, HuggingFace H4 Multilingual-Thinking, IMO-AnswerBench, and Infinity-Instruct. Appendix B.6 summarizes the public license information for these assets.
- Guidelines: • The answer [N/A] means that the paper does not use existing assets. • The authors should cite the original paper that produced the code package or dataset. • The authors should state which version of the asset is used and, if possible, include a URL. • The name of the license (e.g., CC-BY 4.0) should be included for each asset. • For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided. • If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset. • For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided. • If this information is not available online, the authors are encouraged to reach out to the asset’s creators.
- New assets
- Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets?
- Answer: [N/A] .
- Justification: The submission does not currently release a new dataset, benchmark, model checkpoint, or code package as a standalone asset. The generated training examples and edited rollouts are used for the reported experiments.
- Guidelines: • The answer [N/A] means that the paper does not release new assets. • Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc. • The paper should discuss whether and how consent was obtained from people whose asset is used. • At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file.
- Crowdsourcing and research with human subjects
- Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)?
- Answer: [N/A] .
- Justification: The paper does not involve crowdsourcing experiments or research with human subjects. All experiments are model training and evaluation on existing task datasets.
- Guidelines: • The answer [N/A] means that the paper does not involve crowdsourcing nor research with human subjects. • Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper. • According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector.
- Institutional review board (IRB) approvals or equivalent for research with human subjects
- Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained?
- Answer: [N/A] .
- Justification: No human-subject or crowdsourcing study was conducted, so IRB or equivalent approval is not applicable.
- Guidelines: • The answer [N/A] means that the paper does not involve crowdsourcing nor research with human subjects. • Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper. • We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution. • For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review.
- Declaration of LLM usage
- Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigor, or originality of the research, declaration is not required.
- Answer: [Yes] .
- Justification: The paper explicitly describes the use of LLMs in the core method and data construction: Qwen3-32B and Nemotron-3-Nano-Omni-30B-A3B-Reasoning-BF16 are the base models; GPT-5 is used as part of the ReasonIF editor and to generate full-trajectory demonstrations for SFT-GPT; GPT-5.4 generates the IFEval training prompts, edits the IFEval response-construction trajectories, and judges IMO-AnswerBench responses (Table 1). Appendices B.5, B.4, and B.3 describe these uses.
- Guidelines: • The answer [N/A] means that the core method development in this research does not involve LLMs as any important, original, or non-standard components. • Please refer to our LLM policy in the NeurIPS handbook for what should or should not be described.