TL;DR
This paper introduces OmniGIRL, a novel benchmark for evaluating Large Language Models (LLMs) on GitHub issue resolution. OmniGIRL addresses limitations of existing benchmarks by being multilingual, multimodal, and multi-domain, and its evaluation reveals current LLMs struggle with these complex tasks, especially those involving visual information.
What Problem Does This Paper Address?
The task of automatically resolving issues reported in GitHub repositories is crucial for maintaining software. While LLMs have shown promise in this area, existing benchmarks have significant limitations: they often focus on a single programming language, cover a narrow range of domains, and ignore multimodal information like images. This makes it difficult to accurately assess LLMs' real-world capabilities. OmniGIRL aims to bridge this gap by providing a more comprehensive and realistic evaluation environment.
Methods
The authors constructed OmniGIRL through a multi-stage process:
- Language and Repository Selection: They chose four popular programming languages (Python, JavaScript, TypeScript, Java) and selected 15 diverse, highly-used repositories based on download counts.
- Pull Request Data Collection: They collected merged pull requests from these repositories using the GitHub API.
- Attribute-Based Filtering: Pull requests were filtered to ensure they resolved at least one issue and included changes to test files, mirroring the SWE-bench approach.
- Task Instance Construction: Key information was extracted from each pull request, including repository, PR ID, issue descriptions, and importantly, issue images and website links.
- Execution-Based Verification: A rigorous process involving Docker environments and test case validation (FAIL2PASS and PASS2PASS) was used to ensure the integrity of the task instances.
- Unnecessary Image Filtering: Manually reviewed images were filtered to retain only those providing crucial information for issue resolution.
For evaluation, they employed three established LLM-based approaches: Oracle Retrieval (ideal condition), Agentless-X (workflow-based), and AutoCodeRover-X (agent-based), adapting them for multilingual support.
Datasets
The paper introduces OmniGIRL, a new benchmark comprising 959 task instances collected from 15 repositories across four programming languages (Python, JavaScript, TypeScript, and Java) and eight different domains. This benchmark is designed to be multilingual, multimodal, and multi-domain, addressing the limitations of previous datasets like SWE-bench, SWE-bench-Java, and SWE-bench-Verified, which are primarily single-language and text-based.
Key Insights and Ideas
- Multimodality is a Major Hurdle: Current LLMs, even those with visual capabilities, struggle significantly with issues that require understanding images. This suggests a substantial gap in their ability to interpret visual cues for debugging.
- Language Matters for LLM Architectures: LLM-based methods that rely on Abstract Syntax Trees (ASTs) for code parsing perform better on languages like Python and Java than on JavaScript and TypeScript. This is attributed to differences in how code structures (like classes vs. interfaces/types) are represented and the prevalence of features like anonymous and arrow functions.
- Prompt Engineering is Crucial: For models like Claude-3.5-Sonnet, adherence to output formats is critical. A simple prompt modification to enforce code block formatting dramatically improved its parsing success rate and overall performance.
- Cross-File Resolution is a Weakness: LLMs exhibit a notable deficiency in resolving issues that require modifications across multiple files, often defaulting to single-file edits even when the gold patch indicates multi-file changes.
Key Results
- The best-performing model, GPT-40 with Agentless-X, resolved only 8.6% of issues on OmniGIRL.
- For issues requiring image understanding, even with visual capabilities, the best performance was achieved by Claude-3.5-Sonnet in the "Image-augmented Text" setting, resolving only 10.5% of issues. GPT-40 achieved 5.3% with AutoCodeRover-X.
- Claude-3.5-Sonnet's performance was severely hampered by parsing failures in the Agentless-X localization stage, achieving a resolve rate of 1.9%, which improved to 7.4% with prompt modifications.
- LLMs performed significantly worse on cross-file issues compared to single-file issues, with models like Claude-3.5-Sonnet modifying only a single file in 74.9% of cross-file issues.
Limitations and Future Work
The authors acknowledge that their data collection, based on repository popularity, might introduce bias. They plan to address this by open-sourcing their data collection code and tutorial, encouraging broader data collection, and expanding the benchmark to include more issue types and less popular repositories. They also note the current exclusion of website information from evaluation due to a lack of methods to process it, suggesting this as a future research direction.
Summary updated