mlsanityData to 14 Oct 2026

Step Rejection Fine-Tuning: A Practical Distillation Recipe

arXiv 2605.10674 ↗First posted 11 May 2026cs.LG cs.AI cs.CLcited by 3

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

  1. 2025SWEET-RL: Training Multi-Turn LLM Agents on Collaborative Reasoning Tasks19 Mar
  2. 2023Reflexion: Language Agents with Verbal Reinforcement Learning20 Mar

Other references · 13

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  2. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
  3. 2023A Survey on Large Language Model based Autonomous Agentscited by 2,242
  4. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,737
  5. 2023The Rise and Potential of Large Language Model Based Agents: A Surveycited by 1,439
  6. 2024Qwen2.5-Coder Technical Reportcited by 1,203
  7. 2017Hindsight Experience Replaycited by 1,136
  8. 2023Scaling Relationship on Learning Mathematical Reasoning with Large Language Modelscited by 427
  9. 2024Training Software Engineering Agents and Verifiers with SWE-Gymcited by 336
  10. 2025SWE-smith: Scaling Data for Software Engineering Agentscited by 285
  11. 2025R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agentscited by 158
  12. 2025Learn-by-interact: A Data-Centric Framework for Self-Adaptive Agents in Realistic Environmentscited by 95
1 more
  1. 2025Training LLM-Based Agents with Synthetic Self-Reflected Trajectories and Partial Maskingcited by 17

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Exploring Expert Failures Improves LLM Agent Tuning
  2. 2025Blending Supervised and Reinforcement Fine-Tuning with Prefix Sampling
  3. 2026Can RL Improve Generalization of LLM Agents? An Empirical Study
  4. 2026From Uncertainty to Action: Learning to Steer LLM Agents
  5. 2026Beyond Verifiable Rewards: Rubric-Based GRM for Reinforced Fine-Tuning SWE Agents
  6. 2026A Systematic Evaluation of Trajectory Data Curation for LoRA Fine-Tuning of Code Agents
  7. 2026LLM-as-a-Verifier: A General-Purpose Verification Framework
  8. 2026TermiGen: High-Fidelity Environment and Robust Trajectory Synthesis for Terminal Agents