NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

RExBench: Can coding agents autonomously implement AI research extensions?

Nicholas Edwards, Yukyung Lee, Yujun Audrey Mao, Yulu Qin, Sebastian Schuster, Najoung Kim

TL;DR

RExBench is a new benchmark designed to evaluate whether LLM-based coding agents can autonomously implement hypothesis-driven research extensions for existing AI papers. Testing 12 agent configurations revealed that even frontier models struggle significantly, with the best fully autonomous setup achieving only a 33% success rate. This highlights a substantial capability gap between standard software engineering and autonomous scientific discovery.

What Problem Does This Paper Address?

While Large Language Model (LLM) agents have shown remarkable progress in automating software engineering tasks—like fixing bugs or solving isolated coding puzzles—moving into the realm of scientific research introduces a much higher level of complexity. Automating AI research requires an agent to comprehend a complex research paper, navigate an unfamiliar codebase, translate a high-level verbal hypothesis into precise code modifications, and execute experiments to replicate specific numerical trends.

Existing benchmarks often focus on simple code replication or Kaggle-style competitions, which are highly susceptible to data contamination because their solutions are publicly available online. The authors introduce REXBENCH to address this gap, focusing specifically on evaluating an agent's ability to autonomously implement novel, hypothesis-guided research extensions while remaining robust against data contamination.

Methods

REXBENCH provides a standardized, end-to-end evaluation pipeline for research agents:

The end-to-end workflow of the REXBENCH evaluation infrastructure.
  1. Inputs: The agent is provided with the target research paper (in PDF and Markdown formats), the original codebase, and a high-level verbal instruction describing the extension hypothesis.
  2. Execution: The agent attempts to implement the extension, generating a git patch file.
  3. Evaluation Infra: The patch is applied to the original codebase inside a containerized virtual machine (using Apptainer). To control for experimental variation, all random seeds, hardware configurations, and package dependencies are strictly fixed.
  4. Metrics: The framework automatically evaluates the agent's output using three metrics:
  5. Final Success Rate: Whether the final experimental results numerically match the "gold" solutions implemented by human domain experts (within $\pm 2$ standard deviations for non-deterministic runs).
  6. Execution Success Rate: Whether the generated code runs without runtime or syntax errors.
  7. File Recall: Whether the agent correctly identified and edited the same files as the human experts.

The benchmark evaluates 12 agent configurations built on two prominent open-source agent frameworks—aider and OpenHands—across frontier models including Claude 4/3.7 Sonnet, Claude 4.5 Opus, GPT-5, OpenAI o1/o4-mini, and DeepSeek-R1.

Datasets

REXBENCH introduces a benchmark suite consisting of 12 realistic research extension tasks derived from recently published AI and NLP papers (e.g., WinoDict, Tree of Thoughts, Othello, COGS, and CheckEval). The extension tasks span changes across models, algorithms, datasets, and evaluation methods. Crucially, to prevent data contamination, all expert-written gold solutions and evaluation scripts are hosted in private repositories and do not exist anywhere online.

Key Insights and Ideas

  • The Danger of "Plausible" Failures: As model capacity increases, agents generate fewer syntax errors and higher execution success rates. However, they produce more implicit errors—code that runs perfectly to completion but contains subtle logical flaws or incorrect hyperparameters, leading to faulty scientific conclusions. This underscores the danger of relying on unverified AI research agents.
  • The Overthinking Trap: Weaker reasoning models (such as DeepSeek-R1 and OpenAI o1) frequently suffer from excessive internal reasoning loops. They consume massive amounts of tokens and runtime without generating any actual code modifications.
  • Iterative Design is Crucial: Frameworks that support iterative execution and tool usage (OpenHands) vastly outperform non-iterative, one-shot frameworks (aider). Successful agents often use initial turns to run bash commands and inspect file structures before writing code.
  • Limits of Human Guidance: Providing high-level localization or step-by-step implementation hints improves performance for top-tier models, but yields little to no improvement for weaker models. A baseline level of autonomous competence is required to make use of human guidance.

Key Results

  • Main Experiment (No Hints): Most agents struggled significantly. Under the fully autonomous setting, OpenHands + Claude 4 Sonnet achieved a 33% final success rate, while OpenHands + Claude 4.5 Opus led with 42%.
  • Reasoning Models Flop: Both OpenAI o1 and DeepSeek-R1 achieved a 0% final success rate across most tasks, largely due to execution timeouts or failing to output patch files.
  • Impact of Hints: When provided with detailed, step-by-step human hints, the success rate for OpenHands + Claude 4 Sonnet and GPT-5 rose to 43%, while Claude 4.5 Opus reached 62%.
  • Predictors of Difficulty: Statistical analysis showed that the number of lines of code changed in the gold solution was the strongest predictor of failure, meaning tasks requiring higher implementation effort remain the most difficult for current agents.

Limitations and Future Work

The authors note that REXBENCH uses highly idealized, self-contained, and clear instructions. In real-world research, hypotheses are often messy and require substantial trial-and-error to concretize. Additionally, the benchmark is currently small (12 tasks) and heavily focused on the NLP domain.

Future work includes expanding the benchmark to broader scientific fields and integrating intermediate process-level metrics (such as landmark evaluation) to better diagnose agent failures before the final execution step.

Summary updated

BibTeX
@inproceedings{edwards2026rexbench,
  author = {Nicholas Edwards and Yukyung Lee and Yujun Audrey Mao and Yulu Qin and Sebastian Schuster and Najoung Kim},
  title = {{RExBench: Can coding agents autonomously implement AI research extensions?}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.745},
}
Figure