CoDA-Bench: Can Code Agents Handle Data-Intensive Tasks?

Yuxin Zhang, Ju Fan, Meihao Fan, Shaolei Zhang, Xiaoyong Du

Introduction

Advanced AI agents are increasingly demonstrating the potential to operate as autonomous engineers. However, evaluating their readiness for real-world deployment remains a challenge. Most existing benchmarks for AI code agents, such as SWE-bench or DS-1000, provide necessary data on a "silver platter." The agent is either told exactly which file to use, or the environment is so small that the target data is obvious.

In reality, an autonomous engineer doesn't just write a script; they must explore a complex file system, distinguish between hundreds of similar-looking datasets, and understand intricate directory hierarchies. This requires Dual Intelligence:

  1. Code Intelligence: The ability to write syntactically and logically sound programs.
  2. Data Intelligence: The ability to locate and leverage the correct information sources in a noisy landscape.

To bridge the gap between isolated coding tasks and realistic, data-intensive environments, researchers introduce CoDA-Bench. This new benchmark tests whether AI agents can handle the "messy" reality of data science: finding the right files in a complex system before writing the code to analyze them.

How CoDA-Bench Was Built

The researchers developed a scalable framework to construct CoDA-Bench using three primary steps:

  1. Environment Construction: Leveraging the Kaggle ecosystem, the team built a "data network" by analyzing datasets frequently used together in human-written notebooks. Using the Leiden algorithm, they partitioned this co-occurrence graph into 31 semantically coherent "communities" (e.g., COVID-19 data, financial records). Each task environment is a Linux sandbox populated with an average of 980 files from one of these communities, creating realistic "in-distribution" noise.
  2. Solution-Based Back-Construction: To ensure tasks were verifiable, the researchers started with successful Kaggle notebooks. They identified "solution anchors"—specific numerical results like a correlation coefficient or a top-5 ranking—and used LLMs to work backward, formulating natural language questions that would lead to those exact results.
  3. Adversarial Task Evolution: To prevent tasks from being too easy, a GAN-like approach was employed. A "Generator" LLM refined the questions to remove obvious hints (like explicit column names), while an "Ensemble of Discriminators" (other LLMs) attempted to solve them. If the solve rate was too high, the generator increased the difficulty until reaching a "sweet spot."

The Datasets

  • CoDA-Bench: The primary benchmark consisting of 1,009 tasks across 31 data communities.
  • CoDA-HARD: A subset of 119 tasks specifically designed to be difficult, requiring the agent to discover at least two target files and write more than 30 lines of effective code.
  • Source Data: Sourced from the Kaggle ecosystem, involving over 21,000 datasets and 30,000 notebooks.

Key Insights and Results

Evaluations of advanced agents reveal that even top-performing systems struggle to effectively integrate data discovery with code execution.

  • Top Performance: The best-performing system (Mini-SWE-agent paired with GPT-5.5) achieved an Execution Accuracy (EA) of 61.1% on the full benchmark. On the CoDA-HARD subset, accuracy dropped to 49.6%, highlighting that multi-source integration remains a major hurdle.
  • Data Discovery is the Bottleneck: When agents were provided with "Oracle" data (telling them exactly which files to use), performance jumped by nearly 25-28%. This proves the primary reason agents fail isn't just poor coding—it's picking the wrong "hay" in the haystack. Even the best agents failed to identify the correct files in roughly 20% of all tasks.
  • The "Low SNR" Trap: Agents struggle most in environments with a low Signal-to-Noise Ratio (SNR). When distractor files look semantically similar to the target data (e.g., sales_2022.csv vs. sales_final.csv), agents often get distracted and perform the right analysis on the wrong data.
  • Physical I/O Bottlenecks: The study found a sharp drop-off in performance once data volumes exceeded 3GB. Current agents are limited not just by logic, but by the basic mechanics of processing and exploring large-scale files in a terminal environment.
  • Capability-Dependent Failure: Weaker models fail early at the data discovery stage. Stronger models successfully find the data but often fail at the complex analytical reasoning required to produce the final answer.
  • Efficiency Matters: Native CLI tools like Claude Code were found to be significantly more cost-effective and token-efficient than general agent frameworks, achieving competitive results with 5x fewer interaction rounds.

Limitations and Future Work

While CoDA-Bench represents a significant step forward, it has limitations. The benchmark is heavily focused on Kaggle-style exploratory data analysis, which may not fully represent enterprise ETL (Extract, Transform, Load) pipelines or real-time production environments. Furthermore, while the environments are noisy, individual Kaggle datasets are often relatively well-curated compared to the raw data found in corporate data lakes.

Because Kaggle is public, there is also a risk of data contamination during model training. The authors plan to mitigate this by releasing new versions based on recent Kaggle competitions. Future directions include expanding to private-domain datasets and exploring how agents handle multi-user collaboration in production pipelines.

Summary updated

BibTeX
@inproceedings{zhang2026coda,
  author = {Yuxin Zhang and Ju Fan and Meihao Fan and Shaolei Zhang and Xiaoyong Du},
  title = {{CoDA-Bench: Can Code Agents Handle Data-Intensive Tasks?}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=TUcgDjfdVk},
}

Loading related content...

Figure