TL;DR
Current AI software engineering benchmarks judge agents solely on accuracy, completely ignoring the massive computational and financial costs of their solutions. This paper introduces SWE-Effi, a new evaluation framework that measures agent effectiveness under strict token, cost, and time budgets. Their re-evaluation reveals critical systemic flaws in popular coding agents, including a "token snowball" effect and a costly tendency to fail far more expensively than they succeed.
What Problem Does This Paper Address?
AI coding assistants and autonomous agents are rapidly improving at fixing repository-level software bugs. However, existing leaderboards (like SWE-bench) focus exclusively on resolve rate—the percentage of issues successfully fixed. This paradigm operates under the implicit assumption of unlimited resources.
In the real world, developers and enterprises face strict resource constraints. Is a 1% increase in accuracy worth a 5x increase in API costs or hours of local CPU time? Furthermore, slow and expensive agent frameworks severely bottleneck Reinforcement Learning (RL) training loops, where models rely on millions of trial-and-error "rollouts" to self-improve. This paper addresses the critical need for a holistic evaluation framework that balances solution correctness against resource efficiency.
Methods
The authors introduce SWE-Effi, an evaluation framework structured into two distinct layers:
- Core Performance Metrics: Raw measurements collected per trial, including Resolve Rate, CPU Time (local computation like file manipulation and test execution), LLM Calls, and Input/Output Token counts. To eliminate network and provider-specific hardware variance, they train a linear regression model on over 500,000 API calls to compute a standardized, hardware-agnostic Normalized Inference Time.
- Resource Effectiveness Metrics: Derived scores calculated using the Area Under the Curve (AUC) of cumulative resolved tasks plotted against resource consumption. These are normalized to a 0–1 score under specific caps:
- EuTB: Effectiveness under Token Budget (capped at 2M tokens)
- EuCB: Effectiveness under Cost Budget (capped at $1.00 USD)
- EuCTB: Effectiveness under CPU Time Budget (capped at 30 minutes)
- EuITB: Effectiveness under Inference Time Budget (capped at 30 minutes)
Datasets
The evaluation was conducted on a focused subset of 50 issues randomly sampled from the SWE-bench-Verified dataset. The authors utilized stratified sampling to ensure this subset accurately preserved the original distribution of issues across various real-world software projects.
Key Insights and Ideas
- Model-Scaffold Synergy is Paramount: An agent's effectiveness is not an inherent property of its software framework (the scaffold) alone, but how well it pairs with the underlying LLM. For instance, SWE-Agent performs respectably when paired with Qwen3-32B but completely collapses when paired with GPT-4o-mini.
- Smarter Reasoning Minimizes Iterations: Counter-intuitively, using a more intensive "reasoning" model like Qwen3-32B ends up being significantly more token-efficient than a larger, general-purpose model like Llama-3.3-70B. A smarter model formulates concise strategies and requires fewer back-and-forth API interactions—and interaction count is the primary driver of total cost.
- The "Token Snowball" Effect: Most current agent frameworks adopt a naive memory strategy, appending every new LLM response to the next prompt trajectory. This causes monotonic prompt growth, cluttering the context window with stale information, degrading reasoning quality, and driving up costs.
- "Expensive Failures": The most striking finding is that unresolved attempts consume significantly more resources than successful ones. When an agent gets stuck on an unsolvable task, it enters repetitive, resource-intensive loops until it hits an external budget cap. This highlights a massive capability gap in autonomous systems: the lack of futility detection.
Key Results
The authors evaluated 15 combinations of 5 scaffolds and 3 LLMs.
- Agentless + Qwen3-32B achieved the highest overall resolve rate at 48%, but it was computationally heavy, averaging 83.1 API calls and 727.9 seconds of CPU time per issue due to its robust patch-generation and regression-testing pipeline.
- AutoCodeRover + Qwen3-32B emerged as a highly efficient alternative, delivering a 38% resolve rate while consuming only 14.7 API calls and 55.5K input tokens on average, leading to the top effectiveness scores across multiple budgets.
- SWE-Agent + GPT-4o-mini suffered an effectiveness collapse, resolving only 10% of issues while burning through an average of 181 API calls and a staggering 8.1 million input tokens per issue.
Limitations and Future Work
The primary limitation acknowledged by the authors is the scale of the evaluation. Due to massive time, compute, and financial demands (some initial runs took upwards of two weeks), the study was restricted to 15 combinations across a 50-issue subset.
Future work includes scaling up the public leaderboard with more diverse AI systems. Crucially, the authors call for research into advanced memory abstraction and futility detection algorithms, enabling agents to recognize when they are making no progress and safely abort before spiraling into expensive failure loops.
Summary updated