Step Rejection Fine-Tuning: A Practical Distillation Recipe

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Slinko, Igor, Zavidnyi, Ilia, Bogomolov, Egor, Zharov, Yaroslav
Formato: Preprint
Publicado: 2026
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866914554247643136
author Slinko, Igor
Zavidnyi, Ilia
Bogomolov, Egor
Zharov, Yaroslav
author_facet Slinko, Igor
Zavidnyi, Ilia
Bogomolov, Egor
Zharov, Yaroslav
contents 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%.
format Preprint
id arxiv_https___arxiv_org_abs_2605_10674
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Step Rejection Fine-Tuning: A Practical Distillation Recipe
Slinko, Igor
Zavidnyi, Ilia
Bogomolov, Egor
Zharov, Yaroslav
Machine Learning
Artificial Intelligence
Computation and Language
Software Engineering
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%.
title Step Rejection Fine-Tuning: A Practical Distillation Recipe
topic Machine Learning
Artificial Intelligence
Computation and Language
Software Engineering
url https://arxiv.org/abs/2605.10674