arXiv(opens in a new tab)cs.AIOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.13356

SWE-Critix: Post-Training Generalist Verifiers for Assessing Coding-Agent Trajectories

Jiajun Hu, Chun Yong Chong

Jiajun Hu

Leibniz Research Center

Huawei

Hong Kong SAR, China

hu.jiajun@huawei.com

Chun Yong Chong

School of Information Technology

Monash University Malaysia

Subang Jaya, Malaysia

chong.chunyong@monash.edu

Abstract—Coding agents are increasingly deployed for end-to-end software engineering tasks, where a readily available oracle evaluator that defines the success criteria is often absent. This motivates verifications for coding agents that can reliably judge and explain their behavior. However, verification is non-trivial as coding agents are increasingly capable of solving long-horizon software engineering tasks. Their execution trajectories can be extremely long, containing hundreds of iterative interactions with code repositories and external tools. Existing verifiers either rely on general-purpose LLMs without specialized training or train dedicated critics that predominantly focus on producing scalar rewards, highlighting the relatively limited exploration of training-based generalist verification. We introduce SWE-CRITIX, a post-training pipeline for training generalist verifiers of coding-agent trajectories. Given a task and its execution trajectory, the learned verifier predicts the completion label and generates a natural-language analysis that explains its judgment. Our pipeline combines supervised fine-tuning (SFT) with reinforcement learning (RL) and trains a series of 30B models on trajectories from CodeForge-Preview. On a held-out test set, SWE-CRITIX improves classification accuracy from 57%57\% for the base Qwen3-30B-A3B reasoning model to 66%66\% after SFT and 78%78\% after RL. We release our models, datasets, and training code to facilitate further research.

I. INTRODUCTION

Recent advances in large language models (LLMs) have enabled a shift from code generation toward autonomous coding agents that can interact with environments to solve complex software engineering tasks. Rather than producing one-shot code snippets, coding agents can inspect repositories, edit files, execute commands, run tests, interpret feedback, and iteratively refine their solutions through interactions with external tools [1]–[3]. This agentic paradigm has substantially expanded the scope of automated programming from isolated function synthesis to repository-level issue resolution [4] and long-horizon software development tasks [5], [6].

As coding agents become more capable and autonomous, reliably verifying their execution trajectories (i.e., step-by-step record of an agent solving a task) becomes increasingly important. In realistic end-to-end tasks, the criteria for successful completion are often not explicitly specified by a readily available ground-truth oracle. A verifier is therefore needed to determine whether an agent has accomplished the task and, when it fails, identify the causes of failure. However, such verification is challenging because coding-agent trajectories

TABLE I A 2D TAXONOMY OF CODING-AGENT VERIFIERS.

OutcomeProcess
Training-freeAgentless [7]; LLM-as-a-Verifier [8]; Trae [9]; Agentic Rubrics [10]SWE-PRM [11]; Wink [12]; TrajDebug [13]; SWE-Prime [14]; ProcCtrlBench [15] RETRACE [16]; LivePlan [17]; AgentLens [18];
Training-based ScalarSWE-Gym [19]; R2E-Gym [20]; DeepSWE [21]; SWE-RM [22]; Dockerless [23]; SWE-TRACE [24]OpenHands Critic [25]; Zainullina et al. [26]; Critic Rubrics [27]
Training-based GeneralistAgentic Rubrics [10]; ExecCritic [28]; SWE-Review [29]Gandhi et al. [30]; Scout [31]; SWE-Critix

can contain hundreds of interleaved user inputs, environment feedback, and model responses, making them substantially more difficult to inspect than a one-shot model response. For instance, trajectories for tasks in LoLBench [6] span 53–532 turns and contain millions of tokens on average.

To address the challenge, existing work have proposed different techniques from two orthogonal dimensions: verification target and method, as summarized in Table I. The former distinguishes whether a verifier evaluates only the agent's final outcome (e.g., the submitted patch) or also examines the process to detect undesirable intermediate behaviors. The latter distinguishes whether a verifier is constructed with or without training. Training-free methods directly employ general-purpose LLMs or conventional rule-based judges, whereas training-based methods learn dedicated critics, which can be further characterized by whether they produce scalar rewards or richer natural-language assessments.

This taxonomy reveals that training-based, process-oriented generalist verification remains relatively underexplored. To fill the gap, we propose SWE-CRITIX (Figure 1), a post-training pipeline that combines supervised fine-tuning (SFT) and reinforcement learning (RL) to train a generalist trajectory verifier. Given a task and its execution trajectory, the learned verifier not only determines whether the task has been successfully completed but also justifies the rationale

Figure

Data Splitstogether.ai/CodeForage PreviewSFTRLTest
issuestrajscorrectwrongissuestrajscorrectwrongissuestrajscorrectwrongissuestrajscorrectwrong
R2E Gym405529061195339528105321061053105332211318865946594811584639651881
SWE Rebench91405940539199202061737347417371737727228742143711437118281187277744098
SWE Smith352941282458373544510240548102405240528018667603338033380705925727170028725
All4848921671114246774244519510390519551953851110869054345543459698434452874114704

Fig. 1. SWE-CRITIX Post-Training Pipeline and Data Splits.

underlying its judgment. Compared with the two existing approaches in this category, SWE-CRITIX differs from them in terms of verification target (planning phase [30] vs. whole trajectory), annotation strategy (per-step dense labeling [31] vs. differential analysis), scale (2–8K training samples and 4–8B models [30], [31] vs. 119K and 30B), learning algorithms (DPO [30] vs. GRPO), and reward design (process reward [31] vs. outcome reward).

Using this pipeline, we train a Qwen3-30B MoE verifier on a distributed cluster equipped with Huawei Ascend NPUs, using coding-agent trajectories from CodeForge-Preview [32]. Our preliminary evaluation shows that the proposed post-training substantially improves the model's ability to discriminate between successful and failed trajectories, increasing classification accuracy from 57%57\% for the base model to 78%78\% after reinforcement learning on the held-out test set. We open-source SWE-CRITIX on GitHub [33] and Hugging Face [34].

References (45)