arXiv:2611.26342cs.AINov 2026

Manuscript Offprint

arXiv:2611.26342

Training LLMs to Follow Reasoning Instructions with Minimal Edits

Alexandra Yakovleva, Luat Gia Khoi Nguyen, Juho Kannala, Harri Valpola, Alexander Ilin

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.

References (26)