Step Rejection Fine-Tuning: A Practical Distillation Recipe
On the map: LLM agents and tool use → Reinforcement learning for LLM agents
Abstract (arXiv)
Rejection Fine-Tuning (RFT) is a standard method for training LLM agents, where unsuccessful trajectories are discarded from the training set. In the context of SWE-bench tasks, this corresponds to filtering out runs where the submitted patch does not pass the tests. However, this approach discards unresolved trajectories, even though they form a large portion of all trajectories for hard tasks and even then may be partially correct. In this work, we propose Step Rejection Fine-Tuning (SRFT) - a practical way to leverage these unresolved trajectories. For this, we employ a critic LLM to assess the correctness of each step in a trajectory. Consequently, during training, we mask the loss for erroneous steps while retaining them in the context window. This way we ensure the model learns to recover from errors without reproducing them. Evaluation on SWE-bench Verified shows that while RFT improves the resolution rate by 2.4% by excluding unresolved trajectories, SRFT improves it by 3.7% by filtering them instead of discarding completely, reaching the total resolution rate of 32.2%.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Placed in Reinforcement learning for LLM agents, one of 16 directions in LLM agents and tool use. Builds on 15 of its 17 references that are in the map. First posted on arXiv 11 May 2026.
Builds on
15 of 17 references.
Closest ancestors · 2
Same direction, newest first
- 2025SWEET-RL: Training Multi-Turn LLM Agents on Collaborative Reasoning Tasks19 Mar
- 2023Reflexion: Language Agents with Verbal Reinforcement Learning20 Mar
Other references · 13
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2023A Survey on Large Language Model based Autonomous Agentscited by 2,242
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,737
- 2023The Rise and Potential of Large Language Model Based Agents: A Surveycited by 1,439
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2017Hindsight Experience Replaycited by 1,136
- 2023Scaling Relationship on Learning Mathematical Reasoning with Large Language Modelscited by 427
- 2024Training Software Engineering Agents and Verifiers with SWE-Gymcited by 336
- 2025SWE-smith: Scaling Data for Software Engineering Agentscited by 285
- 2025R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agentscited by 158
- 2025Learn-by-interact: A Data-Centric Framework for Self-Adaptive Agents in Realistic Environmentscited by 95
Built on by
Citing papers per year: 2026: 3.
3 papers.
- 2026FailForge: Distilling Procedural Competence from Persistent Failures into Code Agentscited by 2
- 2026ROSS: Relearning from Self-Generated Rollouts through Selective Supervisioncited by 0
- 2026Learning More by Training Less: Uncertainty-Guided Progressive Contraction for Efficient Reasoning Post-Trainingcited by 0
- 2026Learning More by Training Less: Uncertainty-Guided Progressive Contraction for Efficient Reasoning Post-Training9 Oct 2026
- 2026ROSS: Relearning from Self-Generated Rollouts through Selective Supervision28 Sep 2026
- 2026FailForge: Distilling Procedural Competence from Persistent Failures into Code Agents9 Aug 2026
Similar, not cited
Close in wording, no citation either way
- 2025Exploring Expert Failures Improves LLM Agent Tuning
- 2025Blending Supervised and Reinforcement Fine-Tuning with Prefix Sampling
- 2026Can RL Improve Generalization of LLM Agents? An Empirical Study
- 2026From Uncertainty to Action: Learning to Steer LLM Agents
- 2026Beyond Verifiable Rewards: Rubric-Based GRM for Reinforced Fine-Tuning SWE Agents
- 2026A Systematic Evaluation of Trajectory Data Curation for LoRA Fine-Tuning of Code Agents
- 2026LLM-as-a-Verifier: A General-Purpose Verification Framework
- 2026TermiGen: High-Fidelity Environment and Robust Trajectory Synthesis for Terminal Agents