SUPER: Evaluating Agents on Setting Up and Executing Tasks from Research Repositories

Ben Bogin, Kejuan Yang, Shashank Gupta, Kyle Richardson, Erin Bransom, Peter Clark, Ashish Sabharwal, Tushar Khot

TL;DR

The paper introduces SUPER, a novel benchmark designed to evaluate how well LLM agents can autonomously set up and execute machine learning experiments from "in-the-wild," low-profile research repositories. The results reveal a massive capability gap: even the most advanced model, GPT-4o, successfully completes only 16.3% of end-to-end research tasks, highlighting the severe challenges AI agents face with repository comprehension and environment setup.

What Problem Does This Paper Address?

While Large Language Models (LLMs) excel at writing isolated code snippets or solving competitive programming puzzles, autonomously reproducing a machine learning paper from an arbitrary GitHub repository is a completely different beast. Anyone who has tried to run research code knows the pain: missing or outdated dependencies, hardcoded paths, undocumented dataset configurations, and code designed exclusively for GPUs that crashes on a CPU.

Existing benchmarks evaluate agents on popular, pristine repositories (like SWE-bench) or focus purely on code generation (like DS-1000). They miss the messy reality of "low-profile" repositories—the long tail of research code that is often poorly documented and unmaintained. The authors address this gap by creating a benchmark that tests an agent's ability to handle the entire lifecycle of running an experiment: environment setup, data configuration, bug fixing, and execution.

Figure 1: An illustration of a research task and some of the steps an agent would need to complete it, including updating data loading configuration, resolving dependency issues (due to unlisted version dependencies in the repository), running the training script and reporting metrics.

Methods

The authors built a stateful execution environment using a Jupyter notebook engine, allowing agents to seamlessly alternate between running system shell commands (bash) and executing Python code while preserving state across steps.

To evaluate agents thoroughly without requiring massive compute budgets, the tasks are constrained to run on CPUs and take less than 10 minutes (e.g., training a small model like gpt2-small for a single epoch).

Evaluation is performed using two main paradigms:

  1. Outcome-Based Evaluation: Comparing the agent's final reported metrics against a deterministic "gold" answer provided by human experts.
  2. Landmark-Based Evaluation: Tracking intermediate progress by checking if the agent's execution logs match specific "landmark" states (e.g., successfully loading a dataset or completing a training epoch), allowing for partial credit.

Datasets

The SUPER benchmark consists of three distinct problem sets derived from text-modality papers on Papers With Code published from 2021 onwards:

  • Expert Set (45 problems): Manually curated end-to-end research tasks solved and verified by human experts. These repositories are genuinely "low-profile," with a median of just 14 GitHub stars.
  • Masked Set (152 sub-problems): Created using a novel "Code Masking" technique. The authors take an expert's solution notebook, remove specific cells (e.g., the data loading or dependency fix), pre-execute the preceding cells, and challenge the agent to solve just that isolated sub-problem.
  • Auto Set (604 problems): Automatically generated using GPT-4o to filter repositories and construct tasks based on README files, providing a large-scale playground for agent training and development.
Figure 3: An abstract demonstration of how sub-problems are extracted: starting from a gold end-to-end task solution (left), we remove cells (middle) that focus on certain aspects (differently colored cells in the figure), then create a masked problem by defining a goal and prefix cells (right). The prefix cells are executed in the environment, and the agent must then write code to solve the sub-problem.

Key Insights and Ideas

  • Error Messages are a Crutch: Agents are surprisingly good at fixing things when a clear stack trace is provided. They achieved relatively high accuracy on sub-problems involving explicit errors like dependency mismatches (54%) or CPU/GPU compatibility issues (73%).
  • Comprehension is the Real Bottleneck: Agents fail miserably when tasks require open-ended repository exploration and code comprehension. Configuring data loaders for custom datasets yielded the lowest accuracy (27%), as agents frequently hallucinated script arguments instead of reading the repository files to understand the code structure.
  • Structured Editing Tools Matter: Standard ReAct agents using raw bash commands (like sed) struggle to modify code. Providing agents with a structured edit tool (which takes exact "before" and "after" text blocks) significantly boosted landmark and accuracy scores.

Key Results

The benchmark proved to be incredibly difficult for state-of-the-art LLMs:

  • End-to-End Tasks: The strongest baseline configuration (GPT-4o paired with SWE-Agent tools) achieved an accuracy of only 16.3% on the Expert set.
  • Sub-problems: On the narrower Masked set, the best agent managed to solve 46.1% of the problems.
  • Open-Source vs. Proprietary: Open-source models lagged drastically behind. Llama 3.1 70B topped out at a mere 6.1% accuracy on the Expert set, while Mixtral 8x22B achieved just 3.3%.
  • Self-Reflection: Implementing a "Reflexion" mechanism (allowing the agent to look at its failure logs and retry up to 3 times) provided only a minimal performance bump, indicating that if a model lacks the inherent capability to reason about the repository, simply telling it to try again doesn't help.

Limitations and Future Work

The authors note several limitations:

  1. Language and Domain Lock-in: The benchmark currently only supports Python and focuses primarily on text-based NLP/ML repositories.
  2. Dataset Size: The curated Expert (45) and Masked (152) sets are relatively small, though comparable to other high-quality agent benchmarks like HumanEval.
  3. External Dependencies: Because the environment interacts with live external resources (GitHub, PyPI, Hugging Face), it is susceptible to flakiness if an external repository or package version disappears or changes.

Future work will likely leverage the 604-problem Auto set to fine-tune open-source models directly on environment feedback, aiming to bridge the massive gap between current LLM capabilities and true autonomous scientific reproduction.

Summary updated

BibTeX
@inproceedings{bogin2024super,
  author = {Ben Bogin and Kejuan Yang and Shashank Gupta and Kyle Richardson and Erin Bransom and Peter Clark and Ashish Sabharwal and Tushar Khot},
  title = {{SUPER: Evaluating Agents on Setting Up and Executing Tasks from Research Repositories}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  url = {https://openreview.net/forum?id=SLRwB5fOJs},
}
Figure