arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2601.21649cs.LGcs.AIcs.CLcs.SE
收藏

SWE-Spot:构建基于仓库的小型专家

SWE-Spot: Building Small Repo-Experts with Repository-Centric Learning

Department of Computer Science, Columbia University, New York, USA(哥伦比亚大学计算机科学系);Computer Science Department, University of California, Los Angeles, California, USA(加州大学洛杉矶分校计算机科学系)

Jinjun Peng, Magnus Saebo, Tianjun Zhong, Junfeng Yang, Shi-Xiong Zhang, Baishakhi Ray, Simin Chen, Yangruibo Ding

AI总结:

SWE-Spot提出仓库导向学习范式,通过参数知识获取训练小型专家模型,提升代码任务表现并降低推理成本。

摘要:

在隐私敏感和资源受限的环境中部署编码代理,推动了对具备能力的开放式小型语言模型(SLMs)的需求。然而,这些模型存在根本能力差距:与前沿大模型不同,它们缺乏推理时间的强泛化能力,无法处理复杂、不熟悉的代码库。我们发现,主流的任务导向学习(TCL)范式,通过扩展不同仓库的暴露,未能解决这一限制。为此,我们提出了仓库导向学习(RCL),一种范式转变,优先考虑垂直仓库深度而非横向任务广度,建议SLMs必须通过参数知识获取内部化目标软件环境的“物理”特性,而不是通过昂贵的推理时间搜索来恢复。遵循这一新范式,我们设计了一个四单元的仓库导向经验,将静态代码库转化为交互式学习信号,以训练SWE-Spot-4B,一个高度紧凑的模型家族,作为仓库专门专家,打破了已建立的扩展趋势,在多个SWE任务中优于开放式模型(如Meta的CWM、Qwen3-Coder-30B)并超越或匹配效率导向的商业模型(如GPT-4.1-mini、GPT-5-nano)。进一步分析表明,RCL在训练样本效率和推理成本方面更高,强调在构建高效智能方面,仓库掌握是一个独特的必要维度,补充了通用编码能力。

英文摘要:

The deployment of coding agents in privacy-sensitive and resource-constrained environments drives the demand for capable open-weight Small Language Models (SLMs). However, they suffer from a fundamental capability gap: unlike frontier large models, they lack the inference-time strong generalization to handle complicated, unfamiliar codebases. We identify that the prevailing Task-Centric Learning (TCL) approach, which scales exposure across disparate repositories, fails to address this limitation. In response, we propose Repository-Centric Learning (RCL), a shift that prioritizes vertical, single-repository depth over horizontal, single-task breadth for SLM training. To accomplish this depth, we design a four-unit Repository-Centric Experience, transforming static codebases into interactive learning signals, to train SWE-Spot-4B, a family of highly compact models built as repo-specialized experts. Under controlled comparisons with the same teacher and data budget, RCL consistently outperforms TCL across tasks, teachers, model scales, and programming languages. On seven target repositories, SWE-Spot-4B experts match or exceed existing open-weight models up to $8\times$ larger (e.g., CWM by Meta, Qwen3-Coder-30B) and surpass or match efficiency-focused commercial models (e.g., GPT-4.1-mini, GPT-5-nano) across multiple SWE tasks. Further analysis reveals that RCL yields higher training and inference efficiency, deep knowledge acquisition, and can scale to repository-cluster experts. Our work emphasizes that for building efficient intelligence, repository mastery is a distinct, necessary, and practical dimension that complements general coding capability.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑