CATArena: Evaluating Evolutionary Capabilities of Code Agents via Iterative Tournaments

Lingyue Fu, Xin Ding, Linyue Pan, Yaoming Zhu, Shao Zhang, Lin Qiu, Weiwen Liu, Weinan Zhang, Xuezhi Cao, Xunliang Cai, Jiaxin Ding, Yong Yu

TL;DR

Traditional benchmarks evaluate AI code agents on a single try, ignoring the iterative, collaborative reality of software engineering. To bridge this gap, the authors introduce CATArena, a dynamic evaluation framework that pits code agents against each other and objective metrics across multi-turn tournaments. The core discovery? An agent's ability to write functional code on the first try has surprisingly little correlation with its capacity to iteratively optimize and learn over time.

What Problem Does This Paper Address?

Existing Large Language Model (LLM) code agent benchmarks (like HumanEval or SWE-bench) typically evaluate performance using static, single-turn metrics like pass@k. An agent is given a prompt, generates code, and is judged on whether it passes a binary correctness test.

However, real-world software development is inherently incremental. Human engineers rarely write perfect code on the first attempt; they debug runtime errors using execution logs, optimize algorithms for computational efficiency, and refine strategies by studying peer implementations. By isolating agents from these dynamic feedback loops, current benchmarks suffer from a "ceiling effect" and fail to measure an agent's capacity for self-reflection and peer-learning. CATArena shifts the paradigm from evaluating static correctness to measuring dynamic, long-term evolutionary capability.

Methods

CATArena introduces a multi-round tournament loop structured into three distinct phases:

  1. Initial Development (Round 1): Agents receive a task specification and a minimal functional example, generating an initial code submission ($C^{(1)}$).
  2. Execution Feedback: Submissions are executed in a sandboxed environment. CATArena aggregates the results into a structured feedback set containing comprehensive execution logs, a global leaderboard, and the source code of peer solutions.
  3. Iterative Evolution (Rounds $n > 1$): Agents analyze the feedback to identify weaknesses via self-reflection and assimilate superior strategies from competitors via peer-learning, producing an evolved code version ($C^{(n)}$).
Figure 1. Overview of the CATArena Framework. (1) Initial Development: Agents receive task specifications and generate initial solution code C(1). (2) Execution Feedback: Submissions are evaluated in either competitive or objective tracks. Results are aggregated into a structured set containing execution logs, leaderboards, and peer solutions. (3) Iterative Evolution: Agents engage in self-reflection and peer-learning to refine their code C(n) for the subsequent rounds.

To quantify performance, the framework implements a dual-metric system:

  • Basic Performance ($S_{base}$): Measures the agent's zero-shot proficiency in the first round.
  • Evolutionary Capability ($S_{evo}$): Calculates the rate of improvement across rounds using an Ordinary Least Squares (OLS) linear regression slope. A positive slope indicates successful adaptation.

The framework features two distinct evaluation tracks: Competitive Tasks (where agents play against each other in round-robin tournaments, dealing with a non-stationary, evolving field of opponents) and Objective Optimization Tasks (where agents independently optimize code against deterministic efficiency metrics like execution time or memory usage).

Datasets

CATArena evaluates agents across six core tasks spanning different domains, detailed in the task overview below:

Table 1. Overview of tasks in CATArena. The framework instantiates six diverse tasks. Crucially, the feedback mechanism provides agents with population-level data, including full tournament logs and peer solutions, rather than just individual execution results, fostering group evolution.

To ensure agents are genuinely adapting rather than retrieving memorized solutions, the authors also introduced unseen variants with perturbed rules (e.g., Chess960, inverted poker hand rankings, and space-complexity optimization for OIBench). The framework was further extended to include a Multilingual Track (Python, C++, Java, JavaScript, Go), a Machine Learning Track, and a highly complex multi-agent game environment (Pommerman).

Key Insights and Ideas

  • Evolution is Orthogonal to Baseline Skill: An agent's initial coding proficiency ($S_{base}$) does not predict its evolutionary potential ($S_{evo}$). Some top-tier models stagnate or regress when given feedback, while initially weaker models exhibit "low-start, high-growth" trajectories, eventually surpassing their superior peers.
  • The Synthesis Dilemma: Current LLMs struggle to concurrently process internal diagnostics (logs) and external knowledge (peer code). Instead of synergizing both, they often experience extreme failure modes: Blind Copying (abandoning their own logic to mimic peers), Stubborn Stagnation (refusing to adapt despite poor performance), or Chaotic Reconstruction (discarding all priors, leading to broken code).
Figure 4. Code Evolution Patterns. Each point represents an agent’s Round 2 submission. The X-axis measures similarity to its own Round 1 code, while the Y-axis measures the maximum similarity to any peer’s Round 1 code.
  • Universality of Performance Oscillation: Across iterations, agents frequently suffer from volatile performance drops before recovering. This indicates that current agents lack robust self-evaluation mechanisms to reliably distinguish between beneficial and detrimental code modifications.

Key Results

The main experiments evaluated both minimal agents (built on a standardized framework to isolate the core LLM's capability) and state-of-the-art commercial code agents.

Table 2. Main Results on CATArena. We report the Base Performance (Sbase) and Evolutionary Capability (Sevo) of Minimal and Commercial Agents across six tasks. Best results in each column are bolded. Note: Commercial agents are excluded from SWE-Perf due to incompatibility with the Docker environment.
  • Quantitative Trade-offs: As shown in the results table, in the Gomoku task, the minimal Claude agent achieved a dominant baseline ($S_{base} = 0.88$) but a modest evolution rate ($S_{evo} = +0.030$). Conversely, Gemini-2.5-Pro started weak ($S_{base} = 0.25$) but evolved rapidly ($S_{evo} = +0.156$). In Chess, Claude started at a near-perfect $0.90$ but regressed significantly ($-0.061$) over subsequent rounds.
  • Commercial Scaffolding vs. Core Intelligence: While commercial agents (like Claude Code and Qwen Code) achieved higher baseline scores ($S_{base}$) due to advanced tool integration, they did not show a decisive advantage in evolutionary capability ($S_{evo}$) over minimal agents.
  • Long-Term Saturation: When extending tournaments to 7 rounds, the peak performance gains ($\Delta Max$) decayed sharply after Round 4. The rankings stabilized, showing that while iterative feedback optimizes strategies, long-term performance remains bounded by the model's intrinsic reasoning limits.
Figure 2. Evolutionary Trajectories across Iterations. Solid lines represent the actual G Score, dashed lines indicate the linear regression fits used to calculate Sevo.

Limitations and Future Work

The authors highlight a clear complexity barrier. In highly difficult environments like Chess, SWE-Perf, and Pommerman, the reasoning gap between the agent's code and an optimal solution is too wide. In Pommerman, for instance, agents suffered a complete "cold start" failure, generating code riddled with runtime errors or reverting to aimless random walks. Without a functional baseline, the evolutionary loop cannot initiate.

Future research must focus on developing agent architectures that can robustly reconcile internal diagnostics with external knowledge, allowing them to break through these complexity barriers without succumbing to performance oscillation or saturation.

Summary updated

BibTeX
@inproceedings{fu2026catarena,
  author = {Lingyue Fu and Xin Ding and Linyue Pan and Yaoming Zhu and Shao Zhang and Lin Qiu and Weiwen Liu and Weinan Zhang and Xuezhi Cao and Xunliang Cai and Jiaxin Ding and Yong Yu},
  title = {{CATArena: Evaluating Evolutionary Capabilities of Code Agents via Iterative Tournaments}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=913g1X1YAW},
}
Figure