CodeLift:你的测试套件本质上是一个密集的软件工程课程
CodeLift: Your Test Suite Is Secretly a Dense SWE Curriculum
AI总结:
CodeLift 是一种动态校准测试通过率奖励的强化学习方法,可将测试套件转化为自适应课程,在 SWE 基准上持续提升 pass@1/2/4/8 指标,提供密集稳定的学习信号。
摘要:
全测试通过的二元奖励已成为训练软件工程智能体的标准方案,但它的稀疏性会消除部分正确补丁的差异。测试通过率是一种自然的替代方案,但我们发现它并非补丁质量的可靠指标:被测试的功能可能由一个具有挑战性的测试覆盖,也可能由一百个琐碎的测试覆盖,其中大多数可能已经满足了逐次通过的测试要求。我们提出CodeLift,这是一种动态校准通过率奖励的强化学习方法,可将测试套件转化为自适应课程。在每次迭代中,CodeLift会将杀死相同补丁的测试分组,以及通过相同测试的补丁分组,然后为更少补丁组通过的测试组赋予更高权重,以此降低多数简单测试的影响,更聚焦于仍具挑战性的部分。在每次 rollout(部署)中,CodeLift会对代码库快照应用相同的评分规则,即使后续操作引入了退化,也会为有用的操作分配 credit(信用)。在 SWE 基准上的实验表明,CodeLift 相比二元奖励和通过率基线,能持续提升 pass@1/2/4/8 指标。分析显示,CodeLift 提供了密集、稳定的学习信号,并释放了测试套件中固有的课程价值。
英文摘要:
The pass-all-test binary reward has become a standard recipe for training software engineering agents, but its sparsity eliminates difference of partially correct patches. The test pass-rate is a natural alternative. However, we find that it is not a reliable indicator of patch quality. A functionality being tested can be covered by either one challenging test or one hundred trivial tests, where the majority might be already satisfied pass-to-pass tests. We introduce CodeLift, a reinforcement learning method that dynamically calibrates pass-rate rewards, turning the test suite into an adaptive curriculum. At each iteration, CodeLift groups tests that kill the same patches and patches that pass the same tests, then gives more weight to test groups that fewer patch groups pass. This reduces the impact of majority simple tests and focuses more on what is still challenging. Within each rollout, CodeLift applies the same scoring rule to repository snapshots, assigning credit to useful actions even when later ones introduce regressions. Experiments on SWE benchmarks show that CodeLift consistently improves pass@1/2/4/8 over binary and pass-rate baselines. Analyses show that CodeLift provides dense, stable learning signals and unlocks the inherent curriculum in the test suite.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。