arXiv:2606.07412 · 中英对照阅读
Socratic-SWE: Self-Evolving Coding Agents via Trace-Derived Agent Skills
中文速览
软件工程智能体训练缺少足够好、又能跟着模型短板变化的真实修复任务,固定方式合成的数据往往越练越不对症。Socratic-SWE 会分析智能体过去修代码的成功与失败记录,把反复出现的经验整理成技能,再据此生成真实代码库中的新任务,并通过运行测试筛掉无效任务、优先保留能推动模型进步的任务。实验中,它在多个软件工程基准上都超过了同等算力下的自我进化基线,三轮训练后在 SWE-bench Verified 上达到 50.40%。这说明,智能体自己的解题过程不只是训练记录,也能成为持续发现短板、生成针对性练习的可靠数据来源。
摘要
LLM-driven software engineering agents have become a central testbed for real-world language-model capability, yet their training remains limited by the availability of high-quality SWE tasks. Existing synthetic data methods typically create tasks through fixed mutation or bug-injection procedures, making the resulting distributions largely independent of the agent’s own weaknesses and training progress. We introduce Socratic-SWE, a closed-loop self-evolution framework that reuses the agent’s historical solving traces as a source of training signal. Rather than treating traces only as evidence for reward computation, Socratic-SWE distills them into structured agent skills that summarize recurring failures and effective repair patterns. These skills then guide the generation of targeted repair tasks in real repositories. Candidate tasks are checked through execution-based validation and scored with a solver-gradient alignment reward, so that the retained tasks are both verifiable and useful for improving the Solver. The updated Solver produces new traces, enabling the task curriculum to adapt over successive rounds. Across SWE-bench Verified, SWE-bench Lite, SWE-bench Pro, and Terminal-Bench 2.0, Socratic-SWE consistently improves over self-evolving baselines under the same compute budget, reaching 50.40% on SWE-bench Verified after three iterations. These results suggest that solving traces can serve as a scalable substrate for self-evolving SWE agents.
术语表
- LLM-driven software engineering agents
- 大语言模型驱动的软件工程智能体
- SWE task
- 软件工程任务
- Socratic-SWE
- Socratic-SWE
- closed-loop self-evolution framework
- 闭环自进化框架
- solving trace
- 求解轨迹
- Agent Skill Registry
- 智能体技能库
- agent skill
- 智能体技能
- targeted repair task
- 定向修复任务
- execution-based validation
- 基于执行的验证
- solver-gradient alignment reward
- 求解器梯度对齐奖励
- task curriculum
- 任务课程
- capability boundary
- 能力边界
- failure mode
- 失败模式
- repair pattern
- 修复模式
- reinforcement learning (RL)
- 强化学习(RL)
- abstract syntax tree (AST)
- 抽象语法树(AST)
- group relative policy optimization (GRPO)
- 组相对策略优化(GRPO)
- process reward model
- 过程奖励模型
- credit assignment
- 信用分配
- SWE-bench Verified
- SWE-bench Verified
- SWE-bench Lite
- SWE-bench Lite
- SWE-bench Pro
- SWE-bench Pro
- Terminal-Bench 2.0
- Terminal-Bench 2.0
- R-Zero
- R-Zero
- Socratic-Zero
- Socratic-Zero
- Absolute Zero
- Absolute Zero
- SkillRL
- SkillRL
- SKILL0
- SKILL0
- self-evolving baseline
- 自进化基线
- long-horizon interaction
- 长时程交互