通过自生成问题提前学习项目知识,提升代码修复效率
SkillForge: Self-Distilling Agents for Project-Specific Issue Resolution

- 自动生成项目相关测试问题,主动挖掘代码库知识
- 在多个开源与闭源模型上均显著提升修复准确率
- 适合需要高精度修复的工程化AI开发场景
基于大语言模型的智能体在自动修复软件问题上表现优异,但往往因缺乏特定项目的上下文知识而失效。现有自进化方法依赖历史问题信号或需大量实时探索,成本高。本文提出SkillForge,一种自蒸馏框架,通过重实现代码库中被测试覆盖的核心功能,主动生成项目专属问题。通过解决这些合成问题,系统将可复用的知识提炼为实体关联的技能,用于后续真实问题修复。在开源与闭源模型上的大量实验表明,SkillForge持续优于强基线模型。结果证明,提前获取项目知识能显著提升下游问题修复效果。
原文摘要 · Abstract (English)
Large language model (LLM) based agents have demonstrated remarkable proficiency in automated software issue resolution, yet they often struggle to resolve issues in a specific repository because they lack project-specific knowledge. Existing self-evolving approaches acquire such knowledge from repository history or online repair trajectories, but they either depend on available historical issue-resolution signals or incur substantial per-issue test-time exploration cost. In this paper, we propose SkillForge, a self-distillation framework that proactively acquires project-specific knowledge from the repository itself. Instead of waiting for real issues to expose project-specific knowledge gaps, SkillForge synthesizes project-specific issues by re-implementing test-covered core functionalities of the repository. By resolving these synthetic issues, SkillForge distills reusable project-specific knowledge into entity-grounded skills and associates them with relevant repository entities for future issue resolution. Extensive experiments using both open-source and closed-source models show that SkillForge consistently improves issue resolution performance over strong baselines. These results demonstrate that proactively acquiring project-specific knowledge before solving real issues substantially improves downstream software issue resolution.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。