Repository Structure-Aware Training Makes SLMs Better Issue Resolver

Zexiong Ma, Shengnan An, Zeqi Lin, Yanzhen Zou, Bing Xie
12/26/2024
cs.SEcs.AI

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Language models have been applied to various software development tasks, but the performance varies according to the scale of the models. Large Language Models (LLMs) outperform Small Language Models (SLMs) in complex tasks like repository-level issue resolving, but raise concerns about privacy and cost. In contrast, SLMs are more accessible but under-perform in complex tasks. In this paper, we introduce ReSAT (Repository Structure-Aware Training), construct training data based on a large number of issues and corresponding pull requests from open-source communities to enhance the model's understanding of repository structure and issue resolving ability. We construct two types of training data: (1) localization training data, a multi-level progressive localization data to improve code understanding and localization capability; (2) code edit training data, which improves context-based code editing capability. The evaluation results on SWE-Bench-verified and RepoQA demonstrate that ReSAT effectively enhances SLMs' issue-resolving and repository-level long-context understanding capabilities.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ma2024repository,
  title  = {Repository Structure-Aware Training Makes SLMs Better Issue Resolver},
  author = {Zexiong Ma and Shengnan An and Zeqi Lin and Yanzhen Zou and Bing Xie},
  year   = {2024},
  eprint = {2412.19031},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.19031v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.19031.svg)](https://codeofpaper.com/paper/2412.19031)

Discussion