一对多,多对一:面向软件工程智能体的类别感知迭代专家训练
研究论文 · 2026/09/22
仓库级软件工程(SWE)包含异构任务类别,在混合智能体强化学习下,各类别进展可能不均衡:某些类别的提升伴随其他类别的退步,而总体解决率掩盖了这些变化。受此类别跷跷板现象启发,我们开发了一个类别感知的专家训练与策略集成框架。可执行任务构建和SWE Labeler(一个基于证据的多轴标注系统)组织训练池。初始的类别特定强化学习提高了平均训练成功率,但实例级进展仍不均衡,促使我们显式整合成功行为并进行策略自适应任务选择。同源类别专家交替进行长时程Agentic-miniRL与刷新-修复-扩展(RRE):更新后的策略刷新实例掌握度,复用自身验证成功的轨迹进行修复SFT,并重新选择任务进行进一步强化学习。标签路由的多教师同策略蒸馏(MOPD)将专家整合为一个可部署的学生模型,并使用ReLU门控奖励外推,仅保留每个教师相对于参考的改进方向。专家训练和策略集成无需外部模型提供解决方案轨迹或动作目标。我们通过总体和每类别解决率、相对于每个联合RL基线的最小类别提升以及专家增益恢复来评估混合RL和平衡RL、专家开发以及单模型集成。最终MOPD策略在Pro-618上达到平均解决率58.04%,在SWE-bench Multilingual上达到59.00%,分别比基础模型提升5.39和2.78个百分点。
该研究针对软件工程智能体中任务类别进展不均衡的关键问题,提出了创新的类别感知训练与集成框架,并在多个基准上取得了显著提升,对提升智能体在复杂异构任务上的整体性能具有重要参考价值。
Repository-level software engineering (SWE) comprises heterogeneous task categories, whose progress under pooled agentic reinforcement learning can be uneven: gains in some categories coincide with regressions in others, while aggregate resolution obscures these changes. Motivated by this category see-saw, we develop a category-aware expert-training and policy-integration framework. Executable task construction and SWE Labeler, an evidence-grounded multi-axis labeling system, organize the training pools. Initial category-specific RL improves average training success while leaving uneven instance-level progress, motivating explicit consolidation of successful behavior and policy-adaptive task selection. Same-origin category experts alternate long-horizon Agentic-miniRL with Refresh-Repair-Expand (RRE): the updated policy refreshes instance mastery, reuses its own verified successful trajectories for Repair SFT, and reselects tasks for further RL. Label-routed multi-teacher on-policy distillation (MOPD) consolidates the experts into one deployable student, with ReLU-gated reward extrapolation keeping only each teacher's improving direction over the reference. Expert training and policy integration require no external model to provide solution trajectories or action targets. We evaluate Pooled RL and Balanced RL, expert development, and single-model integration through aggregate and per-category resolution, the minimum category lift over each joint-RL baseline, and expert-gain recovery. The final MOPD policy achieves mean resolution of 58.04% on Pro-618 and 59.00% on SWE-bench Multilingual, improving over the base model by 5.39 and 2.78 percentage points, respectively.