SWE-Critix:用于评估编码智能体轨迹的后训练通用验证器
SWE-Critix: Post-Training Generalist Verifiers for Assessing Coding-Agent Trajectories
AI总结:
本文提出SWE-Critix,结合监督微调与强化学习训练通用验证器,在CodeForge-Preview轨迹上训练30B模型,将编码智能体轨迹分类准确率从57%提升至78%,并发布相关资源推动研究。
摘要:
编码智能体正越来越多地被部署用于端到端软件工程任务,而这类任务往往缺乏可直接使用的、定义成功标准的神谕评估器,这促使人们开发能够可靠判断并解释编码智能体行为的验证器。然而,验证工作并非易事,因为编码智能体如今已能解决长周期软件工程任务,其执行轨迹可能极长,包含与代码仓库及外部工具的数百次迭代交互。现有验证器要么依赖未经过专门训练的通用大语言模型(LLM),要么训练专注于生成标量奖励的专用批评者,这表明基于训练的通用验证方法的探索相对有限。本文提出SWE-Critix,一种用于训练编码智能体轨迹通用验证器的后训练流水线。给定一项任务及其执行轨迹,该学习到的验证器会预测完成标签并生成自然语言分析以解释其判断。该流水线结合监督微调(SFT)与强化学习(RL),并基于CodeForge-Preview的轨迹训练一系列30B参数的模型。在保留的测试集上,SWE-Critix将分类准确率从基础推理模型Qwen3-30B-A3B的57%,提升至监督微调后的66%,再到强化学习后的78%。我们发布了模型、数据集和训练代码以推动进一步研究。
英文摘要:
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% for the base Qwen3-30B-A3B reasoning model to 66% after SFT and 78% after RL. We release our models, datasets, and training code to facilitate further research.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。