Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
41 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
41 tokens/sec
o3 Pro
7 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

SWE-Fixer: Training Open-Source LLMs for Effective and Efficient GitHub Issue Resolution (2501.05040v1)

Published 9 Jan 2025 in cs.CL
SWE-Fixer: Training Open-Source LLMs for Effective and Efficient GitHub Issue Resolution

Abstract: LLMs have demonstrated remarkable proficiency across a variety of complex tasks. One significant application of LLMs is in tackling software engineering challenges, particularly in resolving real-world tasks on GitHub by fixing code based on the issues reported by the users. However, many current approaches rely on proprietary LLMs, which limits reproducibility, accessibility, and transparency. The critical components of LLMs for addressing software engineering issues and how their capabilities can be effectively enhanced remain unclear. To address these challenges, we introduce SWE-Fixer, a novel open-source LLM designed to effectively and efficiently resolve GitHub issues. SWE-Fixer comprises two essential modules: a code file retrieval module and a code editing module. The retrieval module employs BM25 along with a lightweight LLM model to achieve coarse-to-fine file retrieval. Subsequently, the code editing module utilizes the other LLM model to generate patches for the identified files. Then, to mitigate the lack of publicly available datasets, we compile an extensive dataset that includes 110K GitHub issues along with their corresponding patches, and train the two modules of SWE-Fixer separately. We assess our approach on the SWE-Bench Lite and Verified benchmarks, achieving state-of-the-art performance among open-source models with scores of 23.3% and 30.2%, respectively. These outcomes highlight the efficacy of our approach. We will make our model, dataset, and code publicly available at https://github.com/InternLM/SWE-Fixer.

Evaluation of SWE-Fixer: A Scalable Solution for Real-World GitHub Issue Resolution

The paper "SWE-Fixer: Training LLMs for Real World Github Issue Resolving" introduces an innovative approach to the use of LLMs in software engineering, specifically targeting the automation of resolving issues reported on GitHub repositories. The authors present SWE-Fixer, an open-source LLM framework designed to address the prevalent challenges in the field—reproducibility, accessibility, and transparency—that are often hindered by proprietary systems.

Overview of SWE-Fixer

SWE-Fixer is composed of two primary modules: a code file retrieval module and a code editing module. For the retrieval task, the authors utilize a hybrid approach combining BM25—a probabilistic retrieval function—and a lightweight LLM to narrow down relevant files from an issue report. This coarse-to-fine strategy aims at efficient file retrieval, ahead of using the code editing module to generate patches. A significant highlight of this work is the compilation of a comprehensive dataset comprising 110K GitHub issues and their respective patches, which serves both as a training backbone for SWE-Fixer and a significant community contribution by addressing the scarcity of publicly available datasets.

On benchmark evaluations using SWE-Bench Lite and Verified, SWE-Fixer demonstrated state-of-the-art performance with scores of 23.3% and 30.2%, respectively. This solidifies its standing as the top-performing open-source model in this domain, showcasing that SWE-Fixer achieves superior results, even surpassing some methodologies relying on proprietary models.

Key Contributions

  1. State-of-the-Art Open Source Performance: SWE-Fixer represents a significant advancement by demonstrating that an open-source LLM solution can achieve comparable or better results against solutions based on powerful proprietary models. This addresses a crucial barrier of accessibility in the deployment of LLMs for coding challenges.
  2. Methodological Simplicity and Efficiency: The pipeline-based architecture of SWE-Fixer, comprising only two essential tasks—file retrieval and code editing—demonstrates that complexity does not equate to efficacy necessarily. By reducing the number of reasoning steps required for completion, SWE-Fixer is both time-efficient and computationally less demanding compared to multi-stage, agent-based solutions.
  3. Comprehensive Dataset: The construction of a robust dataset significantly larger than prior offerings attempts to close a critical gap in training resources. This dataset helps to ensure the validity and extensibility of the approach in various real-world applications, thereby serving as a valuable asset to the research community.

Implications and Future Directions

The deployment of SWE-Fixer as an open-source framework paves diverse pathways for future research and practical applications in AI-driven software development. As an accessible tool, it can stimulate further research into refining LLM capabilities relevant to software engineering tasks, potentially leading to even more efficient and intelligent models. As for practical implications, SWE-Fixer presents a scalable, modular approach that can be adapted for a range of issue-tracking systems beyond GitHub, potentially benefiting large-scale software maintenance and development environments.

In the foreseeable future, integration with dynamic execution environments could enhance the tool's capabilities in predictive maintenance and validation of patches. Additionally, expanding SWE-Fixer to accommodate more diverse programming languages and frameworks could widen its applicability, potentially impacting how developers interact with both proprietary and open-source repositories alike.

Conclusion

SWE-Fixer's introduction marks a pivotal step in the evolution of LLM-based tools for real-world software engineering tasks. By bridging the gap between proprietary efficacy and open-source accessibility, it sets a foundation for continued advancements that prioritize transparency and community engagement in AI research related to software maintenance and development. Consequently, SWE-Fixer not only underscores the viability of open-source solutions but also inspires ongoing exploration into cutting-edge AI tools for automated software resolution tasks.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (7)
  1. Chengxing Xie (10 papers)
  2. Bowen Li (166 papers)
  3. Chang Gao (54 papers)
  4. He Du (4 papers)
  5. Wai Lam (117 papers)
  6. Difan Zou (71 papers)
  7. Kai Chen (512 papers)
Github Logo Streamline Icon: https://streamlinehq.com

GitHub