SWE-Critix: Post-trained general-purpose verifier for evaluating coding agent trajectoriesSWE-Critix: Post-Training Generalist Verifiers for Assessing Coding-Agent Trajectories
SWE-Critix trains a trajectory verifier with SFT and RL, and the Accuracy on the full test set goes from 0.57 for the base model to 0.78 after RL.
- When coding agents do long-horizon software engineering, success criteria often have no ready-made oracle, and trajectories can contain hundreds of rounds of interaction. The authors argue that existing verifiers mostly either directly use general-purpose LLMs or are trained to mainly produce scalar rewards, and that general-purpose process-oriented verification is still rare.
- SWE-Critix has the verifier first write a chain of thought and then judge whether the task is complete. The teacher model GPT-5.5 provides differential annotations of success/failure trajectories for only a small number of SFT samples; the remaining data uses whether unit tests are consistent as +1 or -1 rewards, and training continues from the SFT checkpoint with GRPO.
- On the full test set, the Accuracy of the base, SFT, and RL models is 0.57, 0.66, and 0.78. The base model's negative-class Recall is 0.00, with 9.6% of outputs yielding no judgment; the RL model's negative-class Recall is 0.64. On R2E-Gym, RL Accuracy is 0.62 (Table II).
- The authors state that R2E-Gym is weaker and failed trajectories are harder to identify, and they plan to expand trajectory sources and category ratios, try cold-start RL and process rewards, investigate error correction and agent rewards, and add comparisons and qualitative analysis. The current experiments do not compare with external verifiers.
- Evaluated models
- SWE-Critix SFTSWE-Critix RL
- Benchmarks
- CodeForge-PreviewR2E-GymSWE-RebenchSWE-Smith
- Metrics
- AccuracyPrecision+Recall+F1+Precision-Recall-F1-
The paper proposes SWE-Critix, a post-training pipeline for training a general-purpose verifier for coding agent trajectories. Given a task and its execution trajectory, the trained verifier predicts a completion label and generates natural language analysis explaining its judgment. The pipeline combines supervised fine-tuning (SFT) with reinforcement learning (RL), training a series of 30B models on CodeForge-Preview trajectories. On a held-out test set, classification accuracy improves from 57% for the base Qwen3-30B-A3B reasoning model to 66% after SFT and 78% after RL. The authors release the models, dataset, and training code.
Paper analysis
What problem does this paper attempt to solve?
End-to-end coding tasks often lack an existing criterion, and SWE-Critix uses SFT and RL to train a verifier that can judge success or failure and write analysis.
Long trajectories of coding agents often lack ready-made success criteria, requiring a verifier that judges whether the task is complete and explains the reasons.
- Scenario: The authors state that coding agents have shifted from one-shot code generation to repository-level problem solving and long-horizon development, checking repositories, modifying files, executing commands, and iterating based on feedback. Success criteria for real tasks often have no ready-made oracle; trajectories can contain hundreds of rounds of user input, environment feedback, and model responses. As an example, LoLBench trajectories span 53–532 rounds, averaging millions of tokens.
- Existing methods: The authors classify existing verifiers by what they verify (only the final result or also the process) and whether they are trained, into training-free, trained scalar rewards, and trained general natural-language evaluations (Table I). The authors argue that trained, process-oriented general verification remains relatively underexplored; existing approaches either directly call general-purpose LLMs or mainly produce scalar rewards.
- What this paper proposes: SWE-Critix is a post-training pipeline. Given a task and execution trajectory, the verifier predicts a completion label and generates a natural-language analysis explaining the judgment. The pipeline combines SFT and RL, training a 30B model on CodeForge-Preview trajectories. Labels for training and current evaluation come from whether unit tests pass.
- Differences the authors give: Relative to Gandhi et al. [30] and Scout [31], which fall in the same cell, the authors say the differences are that the object is the whole trajectory rather than the planning stage, the annotation is differential analysis rather than stepwise dense annotation, the scale is 119K samples with a 30B model versus 2–8K samples with 4–8B models, the algorithm is GRPO rather than DPO, and the reward is an outcome reward rather than a process reward.
What related research exists?
The authors classify verifiers by result or process and by whether training is used, and consider process-oriented general verification still rare.
In the introduction and Table I, the authors categorize by verification target and whether training is used, and the Related Work section then expands on whether a dedicated model is trained.
Training-independent verification
- Test generation and expansion: Agentless [7], Trae [9] use general LLMs to evaluate execution through test generation; LLM-as-a-Verifier [8] does verification expansion. The paper only categorizes these and does not reproduce them in experiments.
- Rubric and process checks: Agentic Rubrics [10], SWE-PRM [11], Wink [12] are classified as rubric-based scoring. The process side also includes failure attribution TrajDebug [13], anti-pattern detection SWE-Prime [14], ProcCtrlBench [15], LivePlan [17], AgentLens [18], and metamorphic relations RETRACE [16].
- Authors' categorization: These methods directly use general LLMs or rules for judgment and do not train dedicated verification models.
Trained scalar reward verifiers
- Result side: SWE-Gym [19], R2E-Gym [20], DeepSWE [21], SWE-RM [22], Dockerless [23], SWE-TRACE [24].
- Process side: OpenHands Critic [25], Zainullina et al. [26], Critic Rubrics [27].
- Learning approach: Related Work groups these dedicated critics under TD learning, autoregressive next-token prediction, multi-label classification, DPO, Bradley-Terry, or policy gradient. The current experiments do not reproduce these methods.
Trained general verifiers
- Result side: Agentic Rubrics [10], ExecCritic [28], SWE-Review [29], producing natural language evaluations rather than only scalar rewards.
- Process side: Gandhi et al. [30] is described by the authors as targeting the planning stage and using DPO; Scout [31] is described by the authors as stepwise dense labeling using process rewards. The authors state both are at a scale of 2–8K training samples and 4–8B models.
- Positioning: The authors consider this cell still relatively underexplored and place SWE-Critix in process-side general verification. The differences are the full trajectory, differential analysis, what the authors call 119K and 30B, GRPO, and outcome rewards.
Data sources and current comparisons
- Benchmarks/datasets: Trajectories come from CodeForge-Preview (also written as CoderForge-Preview in Section II-A of the main text), with task sources R2E-Gym, SWE-Rebench, and SWE-Smith.
- Baseline methods: The initial evaluation only compares the base Qwen3-30B-A3B, the SFT checkpoint, and the RL checkpoint. The authors plan to compare later with frontier open/closed-source models and representative methods from Table I; the current experiments do not include these comparisons.
How does the paper address this problem?
A teacher model does differential CoT, SFT learns the reasoning, and GRPO is then performed with unit test agreement as the reward.
SWE-Critix first has a teacher model compare successful and failed trajectories for the same issue to obtain a structured chain-of-thought (CoT), then uses SFT to learn this reasoning, and finally performs GRPO on data without CoT using unit test results.
Input, output, and judgment
- Input: A trajectory solving one issue. The verifier first writes a CoT, then gives a binary judgment: whether the issue has been successfully resolved. Reasoning follows Qwen's thinking template.
- Analysis structure: The application example in Figure 1 has three steps: trajectory summary, characterization of error patterns by predefined categories, and causal summary. Named categories include misunderstanding the specification, changes not local enough, incomplete code, core logic errors, edge cases, library or API constraints, exception handling, performance, security, backward compatibility, environment configuration, determinism and testability, and test or harness completeness; 14–20 are marked as others.
- Difference between training and use: The annotation stage does trajectory pair comparison; the trained verifier does pointwise judgment. Successful samples are judged YES, failed ones NO. The prompt template is not included in the SFT loss; the response template is included in the loss (Figure 1).
Data split
- Source and filtering: CodeForge-Preview contains 258K trajectories (155K pass, 103K fail), covering 51K issues and 1,655 repositories. Trajectories were generated by OpenHands and Qwen3-Coder-480B on three task sources with executable environments. Trajectories over 64K tokens or without a submitted patch were dropped, filtering out 16%.
- Split rules: 20% of issues are randomly selected, and all their trajectories form the test set. From the remaining issues, those with both pass and fail trajectories have one of each randomly sampled into SFT. All remaining failed trajectories go into RL, and successful trajectories are then sampled by round-robin per issue until the two classes are balanced.
- Scale: The full set in Figure 1 is 48,489 issues and 216,711 trajectories (142,467 successful, 74,244 failed). SFT is 5,195 issues and 10,390 trajectories, with 5,195 each of pass and fail, accounting for 8.7% of the training set. RL is 38,511 issues and 108,690 trajectories, with 54,345 each of pass and fail. The test set is 9,698 issues and 43,445 trajectories (28,741 successful, 14,704 failed).
CoT annotation and SFT
- Teacher annotation: GPT-5.5 compares pass/fail trajectory pairs in the SFT set, writing a process summary, error patterns by predefined categories, and factors leading to success or failure. The authors use pairwise comparison based on prior work suggesting LLMs are better at pairwise evaluation than standalone judgment. The output is then post-processed into a CoT for pointwise judgment. The full prompts are not listed in the main text. Only these 10,390 are annotated.
- Optimization: Fine-tuned from Qwen3-30B-A3B-Thinking-2507, minimizing the negative log-likelihood of the response; the response contains the CoT and final judgment, and the loss is standard SFT cross-entropy.
- Implementation: MindSpeed-LLM v2.3.0, 128 Ascend 910B1/B2-64GB chips, 16 nodes. 3 epochs, 975 steps, about 15 hours. Global batch 32, sequence length 70K; TP=2, PP=2, EP=16, ETP=1, CP=16. The checkpoint at step 975 is denoted πSFT.
RL
- Data and objective: RL is performed on the remaining 91.3% of samples that have unit test results and no CoT. Maximize expected reward with a KL term constraining the policy from deviating from πSFT. The paper does not give the value of β.
- Reward: Rule-based outcome reward. When the predicted judgment matches the unit test result, r(x,y)=+1, otherwise -1. Matching includes two cases: judging YES and the trajectory passes the tests, or judging NO and the trajectory does not pass the tests.
- Implementation: Initialized from πSFT. VeRL v0.8.0, GRPO, group size 8. 128 Ascend 910C-64GB chips, 8 nodes. 1 epoch, 3,396 steps, about 533 hours. Global batch 32, mini-batch 32, PPO epoch 1. Maximum prompt length 68K, maximum response length 60K. Inference backend vLLM, training backend Megatron. The resulting checkpoint is denoted πRL.
What experiments did the paper conduct?
Full test set Accuracy goes from 0.57 for the base model through 0.66 for SFT to 0.78 for RL; the authors say failed trajectories are harder to recognize.
Experimental setup
- Models under test: base Qwen3-30B-A3B (written as Qwen3-30B-A3B-Thinking-2507 in the main text), πSFT, πRL. No external verifier baselines.
- Data: the test split from Section II-A, 43,445 items total. R2E-Gym 5,846 items (3,965 successful, 1,881 failed), SWE-Rebench 11,872 items (7,774, 4,098), SWE-Smith 25,727 items (17,002, 8,725).
- Metrics: Accuracy, plus Precision, Recall, and F1 for the positive class (successful trajectories) and negative class (failed trajectories).
- Labels: whether unit tests pass. No LLM judge. Evaluation only looks at classification and does not score the natural-language analysis.
- Runs and service: each model evaluates each sample once. Uses vLLM Ascend, 1 node with 16 Ascend 910C-64GB chips. The paper does not report decoding settings such as temperature.
- Format: the authors report that 9.6% of base model responses do not conform to the required output format and no judgment can be extracted.
Main results
Swipe horizontally to read the table
Model Overall Accuracy Positive Recall Negative Recall SWE-Smith Acc R2E-Gym Acc Qwen3-30B-A3B 0.57 (24587/43445) 0.85 (24536/28741) 0.00 (51/14704) 0.56 (14417/25727) 0.60 (3495/5846) SWE-Critix SFT 0.66 (28521/43445) 0.67 (19340/28741) 0.62 (9181/14704) 0.66 (17018/25727) 0.52 (3027/5846) SWE-Critix RL 0.78 (33925/43445) 0.85 (24499/28741) 0.64 (9426/14704) 0.82 (20971/25727) 0.62 (3646/5846) Per Table II. SWE-Rebench is not included in the table.
- Authors' interpretation: The authors describe a progression from general language model to specialized trajectory verification. The base model has negative-class Recall near 0 on each subset. After SFT, all πSFT responses conform to the prompt requirements, and the authors consider the positive-class bias reduced.
- Division of labor between the two stages: The authors believe SFT mainly handles the positive-class bias, and the subsequent RL restores positive-class Recall, which they say comes without substantially sacrificing negative-class Recall. The main text describes this recovery as from 67% to 85%.
- Subsets not in the table and counterexamples: On SWE-Rebench, the three models' Accuracy is 0.56 (6675/11872), 0.71 (8476/11872), and 0.78 (9308/11872). On R2E-Gym, RL negative-class Recall is 0.52 (975/1881), lower than that subset's SFT value of 0.64 (1210/1881). The authors say R2E-Gym is lower than SWE-Rebench and SWE-Smith, with one possible explanation being the smaller data size; in Figure 1 the three trajectory counts are 29,061, 59,405, and 128,245.
Failed trajectories and format
- What was measured: negative-class identification on the three subsets, and the base model's output format (Section III, Table II).
- Results: SWE-Rebench negative-class Recall is 0.00 (19/4098) for the base model, 0.76 (3107/4098) for SFT, and 0.77 (3150/4098) for RL. SWE-Smith is 0.00 (20/8725), 0.56 (4864/8725), and 0.61 (5301/8725). The base model's overall negative-class Precision is 0.75 (51/68), with only 68 negative-class predictions.
- Authors' interpretation: The authors say πRL still identifies failed trajectories weakly, with overall negative-class Recall of 64%. They argue failed trajectories are harder to distinguish from successful ones, possibly because failure modes are more diverse and failure signals are harder to recognize.
Training dynamics
- What was measured: Figure 2 plots the SFT LM loss and a 100-step moving average of the RL reward.
- Results: The text in the figure only gives axis tick marks and does not label specific loss or reward values; the main text also does not report these values. SFT runs 975 steps and RL runs 3,396 steps.
- Authors' interpretation: The main text only says the curves are shown in the figure and gives no further explanation of the trends.
Other ablations and analyses
- Overall positive-class Precision is 0.66 (24536/37091) for the base model, 0.78 (19340/24863) for SFT, and 0.82 (24499/29777) for RL; negative-class Precision is 0.75 (51/68), 0.49 (9181/18582), and 0.69 (9426/13668) (Table II).
- Overall F1+ is 0.75, 0.72, and 0.84; F1- is 0.01, 0.55, and 0.66 (Table II).
- The paper does not report results without CoT or without the SFT cold start, with different rewards, or with different class ratios; 2:1, 1:2, and 4:1 appear only in the plans in Section IV.
- The paper does not report comparison scores against the other methods in Table I or frontier models, nor qualitative scoring of the analysis text.
What are some points that can be further explored?
The authors say R2E-Gym is weaker and failed trajectories are harder to recognize, and they plan to expand data, rewards, downstream uses, and baselines.
Limitations and future directions noted by the authors
- R2E-Gym: The authors state performance on it is lower than on SWE-Rebench and SWE-Smith, with one possible explanation being the relatively small data size (Section III).
- Failed trajectories: The authors state πRL is still weak at identifying failed trajectories, with an overall negative-class Recall of 64%, and believe failure modes are more diverse and failure signals harder to discern (Section III).
- Training data: The authors state that all CodeForge-Preview samples were generated by OpenHands and Qwen3-Coder-480B. They plan to add sources such as Open-SWE-Traces, synthesize trajectories with different LLM and harness combinations, and examine category ratios such as 2:1, 1:2, and 4:1 (Section IV).
- Training method: The authors state whether RL alone is sufficient remains an open question. They plan to remove CoT annotation and SFT for cold-start RL, and add signals from intermediate reasoning into the reward, rather than only using final test results (Section IV).
- Downstream use: The authors plan to investigate whether the verifier can point out and correct errors in failed trajectories to recover correct solutions, and whether it can serve as a proxy reward for RL when test results are unavailable (Section IV).
- Comparisons and qualitative analysis: The authors plan to compare with frontier open/closed-source models and representative methods from Table I, and examine whether reasoning is coherent, evidence-based, and where erroneous judgments come from (Section IV).
Experimental coverage
- The evaluated checkpoints are the base Qwen3-30B-A3B, πSFT, and πRL; the test set has 43,445 samples, and each model is evaluated once per sample (Section III, Table II).
- Trajectories come from the filtered CodeForge-Preview split, with task sources R2E-Gym, SWE-Rebench, and SWE-Smith; the authors state generation used OpenHands and Qwen3-Coder-480B (Section II-A, Section IV).
- Classification labels come from whether unit tests pass; Accuracy and positive/negative-class Precision, Recall, and F1 are reported. The current evaluation focuses on discriminative ability (Section III, Section IV, Table II).
- CoT is annotated by GPT-5.5 and covers only the 10,390 SFT samples; RL uses GRPO, group size 8, 1 epoch, 3,396 steps (Section II, Figure 1).
- The paper does not report β, decoding temperature, comparison scores with external verifiers or frontier models, qualitative scores of the analysis text, or agreement with human judgment.
Summarize the main content of the paper
SWE-Critix trains a 30B trajectory verifier with SFT and GRPO, improving full test set Accuracy from 0.57 to 0.78.
SWE-Critix is a post-training pipeline for training a general verifier that can judge whether an entire trajectory of a coding agent completes the task and write analysis.
- Problem: End-to-end software engineering often lacks an existing oracle, and trajectories can contain hundreds of interaction rounds. The authors believe trained, process-oriented general verification is still relatively underexplored.
- Approach: GPT-5.5 compares pass and fail trajectories for the same issue, then organizes them into a CoT for pointwise judgment, supervising only 10,390 SFT samples. The base model is Qwen3-30B-A3B-Thinking-2507, and SFT runs for 3 epochs. The remaining 108,690 samples have no CoT; a reward of +1 or -1 is given based on whether the judgment matches the unit test result, and GRPO is trained for 1 epoch to obtain πRL.
- Overall results: On 43,445 test trajectories, Accuracy is 0.57 for the base model, 0.66 for SFT, and 0.78 for RL (Table II). The base model's negative-class Recall is 0.00 (51/14704), and 9.6% of responses fail to extract a judgment; all πSFT outputs conform to the format. RL has a positive-class Recall of 0.85 and a negative-class Recall of 0.64.
- Subsets: RL Accuracy is 0.82 on SWE-Smith, 0.78 on SWE-Rebench, and 0.62 on R2E-Gym. On R2E-Gym, SFT Accuracy is 0.52, lower than the base model's 0.60 on that subset.
- Authors' conclusions: The authors believe SFT mainly reduces the bias toward judging trajectories as successful, and RL further strengthens discrimination; they also believe failed trajectories remain harder to recognize. They plan to expand data sources, rewards, and downstream uses, and add external comparisons and qualitative analysis. The authors state they have released the model, dataset, and training code.