Abstract
Evaluating Large Language Models (LLMs) on software engineering tasks has historically relied on static, function-level benchmarks. SwingArena introduces a dynamic evaluation framework that simulates a real-world Continuous Integration (CI) environment. By employing a multi-agent setup where models act as both code submitters and adversarial reviewers, SwingArena tests the ability of LLMs to navigate massive codebases and survive rigorous validation pipelines across multiple programming languages.
Introduction
The current landscape of LLM evaluation for coding often falls short of capturing the complexity of professional software development. Benchmarks like HumanEval or MBPP focus on isolated snippets, while even more advanced datasets like SWE-Bench often lack the iterative and collaborative nature of real-world workflows. Professional development is characterized by interaction with large, multi-file codebases and strict adherence to CI pipelines (e.g., GitHub Actions) that enforce correctness through automated testing and peer review. SwingArena addresses this gap by creating a competitive arena that mirrors these conditions.
Methodology
SwingArena's architecture consists of two primary innovations: a multi-agent competitive arena and a specialized Retrieval-Augmented Code Generation (RACG) system.
The Competitive Arena
The arena facilitates a battle between two LLMs: a Submitter and a Reviewer. The Submitter attempts to generate a patch for a real-world GitHub issue. Simultaneously, the Reviewer generates adversarial unit tests designed to expose potential flaws in the Submitter's code. These components are executed within a Docker-isolated CI pipeline using act to replicate GitHub Actions locally. Success is measured by the Submitter's ability to pass CI checks and the Reviewer's ability to catch regressions without invalidating the original human-authored solution.
Retrieval-Augmented Code Generation (RACG)
To manage long-context issues in repositories with tens of thousands of lines, SwingArena employs a hierarchical RACG module. This system uses BM25 for initial file retrieval, followed by syntax-aware chunking (parsing code into logical blocks like classes and functions). Finally, a CodeBERT-based reranker selects the most relevant chunks to fit within the LLM's context window, ensuring the model receives high-signal information rather than arbitrary text fragments.
Dataset Construction
The authors curated a dataset of 400 high-quality tasks derived from over 2,300 real-world GitHub issues across four languages: C++, Python, Rust, and Go. The selection process involved a multi-stage filtering pipeline including CI verification, LLM-as-a-Judge assessment for problem clarity, and final validation by human experts.
Experimental Results
Evaluation across various state-of-the-art models revealed significant insights into their software engineering capabilities.
Model Performance
DeepSeek-V3 emerged as the top performer, achieving an average Best@3 score of 0.59. It demonstrated strong generalization across all four target languages. Gemini-2.0 and GPT-4o followed closely, both scoring 0.57 on average.
Key Findings
- Adversarial Dynamics: GPT-4o showed high win rates as a submitter, but DeepSeek and Gemini proved more robust in terms of raw CI pass rates, suggesting a more conservative and stable coding style.
- Impact of RACG: The syntax-aware retrieval system significantly outperformed standard text-based retrieval. In C++ tasks, RACG improved the
Best@3score from 0.38 to 0.42. Class-level chunking more than doubled the Top-10 hit rate for identifying the correct code to patch compared to file-level BM25.
Conclusion
SwingArena provides a rigorous, multi-language framework for evaluating LLMs as autonomous software agents. By moving beyond static benchmarks and incorporating adversarial review and CI simulation, it offers a more realistic assessment of how these models perform in professional development environments. Future work will focus on reducing the computational overhead of CI simulations and expanding language support.
Summary updated