Introduction
The rapid advancement of Large Language Model (LLM) based coding agents, such as Devin and OpenDevin, has necessitated robust evaluation frameworks. Historically, SWE-bench has served as the primary standard; however, its exclusive focus on Python introduces significant limitations. Specifically, it fails to account for language-specific nuances—such as the strict typing of TypeScript or the verbosity of Java—and risks overfitting agents to a narrow set of Python repositories. SWE-PolyBench addresses these gaps by providing a multi-language, repository-level benchmark comprising 2,110 real-world task instances across Java, JavaScript, TypeScript, and Python.
Methodology and Dataset Construction
To ensure high-quality, execution-based evaluation, the authors developed a rigorous pipeline for data collection and filtering. The process identifies real-world GitHub issues and pull requests (PRs) that include "fail-to-pass" (F2P) tests—tests that fail on the buggy code but pass once the PR is applied.
The resulting dataset, SWE-PolyBench, includes 2,110 instances from 21 repositories, categorized into Bug Fixes (74.5%), Feature Requests (21.9%), and Refactoring (2.9%). For rapid iteration, a stratified subsample of 500 instances, SWE-PolyBench500, is also provided.
Beyond standard "Resolved Rate" metrics, the benchmark introduces Concrete Syntax Tree (CST) based metrics. Using tree-sitter, the framework tracks whether agents modify the correct structural components (functions or classes), offering a granular view of localization capabilities.
Experimental Results and Insights
The authors evaluated three leading open-source agents—Aider, SWE-agent, and Agentless—adapted for multi-language environments. The results reveal a clear "Python performance gap."
Key Findings:
- Language Bias: Agents consistently perform best in Python (up to ~24.1% pass rate). TypeScript proved the most challenging, with pass rates dropping as low as 5-13%, suggesting that current LLMs may possess a "Python-native" reasoning bias.
- Structural Complexity: Performance is inversely proportional to task complexity. Tasks requiring "Mixed" changes (modifying both classes and functions) or affecting multiple files see a sharp decline in success rates. For tasks involving 5+ file edits, the best agent's pass rate fell to 7.9%.
- Reasoning vs. Retrieval: While agents often successfully identify the relevant files (high retrieval recall), they frequently fail to generate the correct fix. This indicates that the primary bottleneck in agent performance is shifting from code localization to complex reasoning about the fix itself.
- Efficiency: Aider-PB emerged as the top performer with a 14.1% overall pass rate, notably achieving this while using approximately 80% fewer tokens than its competitors, highlighting the importance of efficient agent architectures.
Conclusion and Future Directions
SWE-PolyBench highlights the critical need for multi-language evaluation to avoid overfitting and to truly measure general software engineering skills. While current agents show promise, their struggle with structural complexity and non-Python languages underscores significant room for improvement. Future work will focus on expanding task diversity to include CI/CD and deployment configurations, as well as incorporating human-in-the-loop verification to handle ambiguous issue descriptions.
Summary updated