# PaperBench This repo contains the dataset and code for the paper "PaperBench: Evaluating AI's Ability to Replicate AI Research". ## Leaderboard ### PaperBench Results | Agent | Score (%) | # runs | Date | | ---------------------------------- | ---------- | ------ | ---------- | | IterativeAgent o1-high (36h limit) | 26.0 ± 0.3 | 3 | 2025-04-02 | | IterativeAgent o1-high (24h limit) | 24.4 ± 0.7 | 3 | 2025-04-02 | | BasicAgent claude-3.5-sonnet | 21.0 ± 0.8 | 3 | 2025-04-02 | | IterativeAgent claude-3.5-sonnet | 16.1 ± 0.1 | 3 | 2025-04-02 | | BasicAgent o1-high | 13.2 ± 0.3 | 3 | 2025-04-02 | | IterativeAgent o3-mini-high | 8.5 ± 0.8 | 3 | 2025-04-02 | | BasicAgent deepseek-r1 | 6.0 ± 0.3 | 3 | 2025-04-02 | | BasicAgent gpt-4o | 4.1 ± 0.1 | 3 | 2025-04-02 | | BasicAgent gemini-2.0-flash | 3.2 ± 0.2 | 3 | 2025-04-02 | | BasicAgent o3-mini-high | 2.6 ± 0.2 | 3 | 2025-04-02 | ### PaperBench Code-Dev Results | Agent | Score (%) | # runs | Date | | ---------------------- | ---------- | ------ | ---------- | | IterativeAgent o1-high | 43.4 ± 0.8 | 3 | 2025-04-02 | ## Introduction PaperBench evaluates AI agents on replicating 20 Spotlight and Oral papers from ICML 2024 from scratch. Each sample of PaperBench includes a research paper and a rubric that defines the requirements for a successful replication. PaperBench runs in 3 stages: 1. **Agent Rollout**: The agent is executed in an ubuntu container where it must create its submission: a codebase that replicates the paper. 2. **Reproduction**: The agent's submitted codebase is executed in a fresh second container with GPU access so that results from executing the codebase are obtained. This creates the _executed submission_. 3. **Grading**: The _executed submission_ is graded using paper's rubric. A third container is created where the judge is run. ## PaperBench Setup All commands in this README should be run from the [root](./) of the PaperBench project. ### Installation Install PaperBench with [uv](https://docs.astral.sh/uv/) ```console uv sync ``` ### Get the data The dataset is stored using [Git-LFS](https://git-lfs.com/) and is intentionally not fetched during the install step above. Hydrate it manually and point PaperBench at the hydrated directory: ```console git clone https://github.com/openai/frontier-evals.git --filter=blob:none cd frontier-evals git lfs fetch --include "project/paperbench/data/**" --exclude "" git lfs checkout project/paperbench/data export PAPERBENCH_DATA_DIR="$(pwd)/project/paperbench/data" # add to your shell profile ``` If you are already working from a full `frontier-evals` clone, you can run the `git lfs fetch` / `git lfs checkout` commands from the repository root and skip setting `PAPERBENCH_DATA_DIR` (the default path resolves to `/project/paperbench/data`). When the data is stored elsewhere, set the environment variable to the location you hydrated. The JudgeEval tarballs that cannot be redistributed automatically can still be created with: ```console PAPERBENCH_DATA_DIR=/path/to/data uv run python -m paperbench.judge.judge_eval.download_data ``` ### Environment variables PaperBench requires API keys for running the agents and judge. To set up your environment variables, copy the top-level `.env.example` file to a new file named `.env` and fill in the required values. **Note:** The API key used by the Judge, `GRADER_OPENAI_API_KEY`, defaults to `OPENAI_API_KEY` if it's not set. Once you have filled in the `.env` file, source it: ```bash source .env ``` ### Agent resources Some papers require access to the OpenAI API and HuggingFace in order to be fully replicated. To make these API keys available to the agent, first copy `paperbench/solvers/agent.env.example` to `paperbench/solvers/agent.env` and populate the `OPENAI_API_KEY` and `HF_TOKEN` fields. The `agent.env` is provided in the agent's workspace and the agent is informed of this file in our [default instructions for BasicAgent](paperbench/solvers/aisi-basic-agent/templates.py), but `agent.env` is not sourced automatically on behalf of the agent. The HuggingFace token can be obtained through the website after making an account, and should have authorization to access [Llama-2](https://huggingface.co/meta-llama/Llama-2-7b) and [ImageNet](https://huggingface.co/datasets/ILSVRC/imagenet-1k). For convenience, the table below lists which papers require a HuggingFace token or OpenAI API key for it to be fully replicated: | **Paper ID** | **HF Token Needed?** | **OpenAI API Needed?** | | --------------------------------------- | -------------------------------------------------------------------- | ------------------------------------- | | **lca‑on‑the‑line** | Yes ([ImageNet](https://huggingface.co/datasets/ILSVRC/imagenet-1k)) | No | | **stochastic‑interpolants** | Yes ([ImageNet](https://huggingface.co/datasets/ILSVRC/imagenet-1k)) | No | | **test‑time‑model‑adaptation** | Yes ([ImageNet](https://huggingface.co/datasets/ILSVRC/imagenet-1k)) | No | | **robust‑clip** | Yes ([ImageNet](https://huggingface.co/datasets/ILSVRC/imagenet-1k)) | No | | **bbox** | No | Yes (`gpt‑3.5‑turbo` / `gpt-4`) | | **semantic‑self‑consistency** (dev set) | No | Yes (`gpt‑3.5‑turbo` / `gpt‑4o‑mini`) | ### Build Docker images Running agents with nanoeval and alcatraz requires Docker, which you can install by following the guide [here](https://docs.docker.com/engine/install/). **(Optional):** To enable GPU support for the agents, install the [NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html). PaperBench requires the following Docker images to be built before it can run: - [paperbench/Dockerfile.base](paperbench/Dockerfile.base): The base environment for agents which contains basic packages like `curl`, `git`, `python`, etc. and a Conda environment that can be used to run the agents. We re-use this docker image if users request grading to occur on a computer with `paperbench.judge.grade_locally=false` - [paperbench/reproducer.Dockerfile](paperbench/reproducer.Dockerfile): The environment in which the submission is reproduced. We provide the following agents out-of-the-box: - [paperbench/solvers/dummy/solver.py](paperbench/solvers/dummy/solver.py): A agent for that creates a dummy submission, useful for testing the eval end-to-end. - [paperbench/solvers/basicagent/solver.py](paperbench/solvers/basicagent/solver.py): Simple ReAct style agents with tools available to them. For convenience, we've provided a [script](paperbench/scripts/build-docker-images.sh) that builds all the above images: ```bash bash paperbench/scripts/build-docker-images.sh ``` ## Set agent configurations Configurations for each agent are stored in the [paperbench/solvers/](paperbench/solvers/) directory. Each agent has a `config.yaml` file which sets the agent's possible configurations, e.g. which model to use, how long to run the agent for, etc. ## Quickstart To see all configurable options for PaperBench, run: ```bash uv run python -m paperbench.nano.entrypoint --help ``` To use our default solver (`BasicAgentSolver`), you must set `paperbench.solver=paperbench.solvers.basicagent.solver:BasicAgentSolver`, specifying to use the `BasicAgentSolver` solver. To test that things are set up correctly, run the dummy agent with the dummy judge (`paperbench.judge.scaffold=dummy`) on the debug split. Note this dummy agent is different to the [default nanoeval "dummy" agent](../common/nanoeval/nanoeval/solvers/computer_tasks/solver.py); our dummy agent tests several aspects of the infrastructure and makes a toy submission. ```bash uv run python -m paperbench.nano.entrypoint \ paperbench.paper_split=debug \ paperbench.solver=paperbench.solvers.dummy.solver:PaperBenchDummySolver \ paperbench.solver.computer_runtime.env=alcatraz.clusters.local:LocalConfig \ paperbench.solver.computer_runtime.env.pull_from_registry=false \ paperbench.judge.scaffold=dummy \ runner.recorder=nanoeval.json_recorder:json_recorder ``` To run BasicAgent, use `paperbench.solver=paperbench.solvers.basicagent.solver:BasicAgentSolver`. By default, this will run for 5 minutes and use `gpt-4.1-mini`. Below, we present a command that you can use for development, which runs the above configuration on on the dev split of PaperBench, with short timeouts and cheap models. ```bash uv run python -m paperbench.nano.entrypoint \ paperbench.solver=paperbench.solvers.basicagent.solver:BasicAgentSolver \ paperbench.solver.computer_runtime.env=alcatraz.clusters.local:LocalConfig \ paperbench.solver.computer_runtime.env.pull_from_registry=false \ paperbench.paper_split=dev \ paperbench.judge.completer_config=preparedness_turn_completer.oai_completions_turn_completer:OpenAICompletionsTurnCompleter.Config \ paperbench.judge.completer_config.model='gpt-4.1-mini' \ paperbench.reproduction.timeout=60 \ runner.max_retries=0 \ runner.recorder=nanoeval.json_recorder:json_recorder ``` - **Note** that we set the default concurrency to 5, you may want to adjust this based on your setup. To set the concurrency, simply specify `runner.concurrency=` in the command. - **Note** By default, our solvers use the `AlcatrazComputerRuntime` for the `ComputerRuntime`. You may choose to use your own custom computer runtime. Simply point to it via `paperbench.solver.computer_runtime`, and then configure it appropriately. We recommend looking at the `BasePBSolver` implementation for guidance. - **Note** You may use a custom solver: set `paperbench.solver` to point to your custom solver class. This solver should be a `PythonCodingSolver` class. We recommend inheriting from `BasePBSolver` for convenience. ### Canonical command To run PaperBench with BasicAgent gpt-5 for 24 hours on the full set of papers, use the following command: ```bash uv run python -m paperbench.nano.entrypoint \ paperbench.paper_split=all \ paperbench.solver=paperbench.solvers.basicagent.solver:BasicAgentSolver \ paperbench.solver.completer_config=paperbench.solvers.basicagent.completer:OpenAIResponsesTurnCompleterConfig \ paperbench.solver.completer_config.model='gpt-5-2025-08-07' \ paperbench.solver.completer_config.tools="[{'type':'web_search'}]" \ paperbench.solver.completer_config.reasoning=preparedness_turn_completer.oai_responses_turn_completer.completer:ReasoningConfig \ paperbench.solver.completer_config.reasoning.effort='high' \ paperbench.solver.completer_config.reasoning.summary='auto' \ paperbench.solver.time_limit=86400 \ paperbench.solver.computer_runtime.env=alcatraz.clusters.local:LocalConfig \ paperbench.solver.computer_runtime.env.pull_from_registry=false \ paperbench.solver.computer_runtime.env.is_nvidia_gpu_env=true \ paperbench.reproduction.computer_runtime.env=alcatraz.clusters.local:LocalConfig \ paperbench.reproduction.computer_runtime.env.pull_from_registry=false \ paperbench.reproduction.computer_runtime.env.is_nvidia_gpu_env=true \ paperbench.reproduction.timeout=86400 \ runner.max_retries=0 \ runner.concurrency=20 \ runner.recorder=nanoeval.json_recorder:json_recorder ``` If you want GPUs when running locally, set `is_nvidia_gpu_env=true` on each component's runtime as shown above. This assumes your Docker host already has the NVIDIA driver and container toolkit installed so the `nvidia` runtime is available. This of course does not apply if you are using a different `ComputerRuntime`. By default, we are using the `AlcatrazComputerRuntime`, for which GPUs are configured as described above. ### I have submissions and just want to run grading If you have already run your agent or you are a human and have submissions ready to be graded, you can skip the agent rollout by using our provided `PBDirectSubmissionSolver`. Place your submissions as folders in a directory (say in `path/to/foo/`) in the following format: ```plaintext foo/ / submission/ other_submission/ ... (i.e. multiple submissions for the same paper (intended for when paperbench.n_tries > 1). Single submission is also fine. Missing submissions for a try will just be graded as scoring 0 for that try) ... (does not need a folder for each paper, missing papers will be treated as missing submissions, i.e. graded as scoring 0) ``` Then run the paperbench like above but with appropriately configured `PBDirectSubmissionSolver`, e.g.: ```bash uv run python -m paperbench.nano.entrypoint \ paperbench.paper_split=debug \ paperbench.solver=paperbench.solvers.direct_submission.solver:PBDirectSubmissionSolver \ paperbench.solver.submissions_dir=path/to/foo/ \ paperbench.solver.computer_runtime.env=alcatraz.clusters.local:LocalConfig \ paperbench.solver.computer_runtime.env.pull_from_registry=false \ paperbench.judge.scaffold=dummy \ runner.recorder=nanoeval.json_recorder:json_recorder ``` ## Retrieving results A run group is created for each launch of PaperBench. A run group contains multiple individual runs, one for each paper attempt. Runs are stored in the `runs` directory. In each run group directory, there is a `group.log` file that contains the logs for that run group. In each run directory there is: - `agent.log`: (optional) Rollout log from the solver. If present, the monitoring step will run and the run's grade will be marked with `"monitor_ran": true`. - `grade.json`: The grading result for that run. - `metadata.json`: Metadata for that run. - `run.log`: The log for that run. - `status.json`: The status of that run. - A submissions directory, containing multiple timestamped submission directories (e.g., `2025-03-28T10-34-35-UTC`), each with: - `log.json`: Logs from this submission attempt - `submission.tar.gz`: The archived submission files - If the submission was executed/graded, the directory may also contain: - `submission_executed_grader_output_0.json`: Output from the grader. - `submission_executed_metadata.json`: Metadata about the execution. - `submission_executed.tar.gz`: The archived files after execution. Snapshots from the agent rollout are also stored in the run directory. An initial snapshot is created when the agent starts, and a final snapshot is created when the agent finishes. Intermediate snapshots are created throughout the agent rollout and can be set via `paperbench.solver.upload_interval_messages` or `paperbench.solver.upload_interval_seconds`. `runs` directory structure: ``` runs/ ├── / │ ├── group.log │ ├── / │ │ ├── agent.log │ │ ├── grade.json │ │ ├── metadata.json │ │ └── run.log │ │ ├── status.json │ │ ├── submissions/ │ │ │ ├── / │ │ │ │ ├── log.json │ │ │ │ └── submission.tar.gz │ │ │ └── / │ │ │ ├── log.json │ │ │ ├── submission.tar.gz │ │ │ ├── submission_executed_grader_output_0.json # if graded │ │ │ ├── submission_executed_metadata.json # if executed │ │ │ └── submission_executed.tar.gz # if executed │ └── /... └── /... ``` ## PaperBench Code-Dev **PaperBench Code-Dev** is a lighter-weight variant of PaperBench. Unlike the full PaperBench pipeline -- which involves executing the agent's submission in a separate reproduction step -- PaperBench Code-Dev skips the reproduction step and only grades the agent's submission on the **Code Development** requirements. This means: - The Judge only checks **Code Development** requirements (e.g., "Is there an implementation of method X?"). It skips checking Execution requirements that check that the code runs correctly, and skips checking Result Match requirements that check that the paper's empirical results have been replicated. - You **don't need a GPU to run the reproduction step** where the agent's submission is executed. This often reduces cost and runtime significantly. - There is **less of a need to make a GPU available to the agent** when it is creating its submission. Although having access to a GPU is helpful for the agent to run intensive experiments that verify that its code is correct, the agent can get away with less end-to-end testing of its code since it is only graded on **Code Development** requirements. We think PaperBench Code-Dev offers a convenient, lower-cost, but less rigorous way of assessing paper replication. It doesn't require GPUs and typically cuts grading costs (we've seen around an 85% reduction in o3-mini SimpleJudge costs for the average submission), making it a accessible alternative for assessing models' abilities to replicate papers. To run the Code-Dev variant, simply include the following flag: ```bash paperbench.judge.code_only=True ``` ## Dataset The PaperBench dataset is stored in the [papers](data/papers) directory. Each paper has its own directory, which contains: - The paper in PDF and Markdown format. - `addendum.md` containing information from the author that is helpful for replication. - `assets` directory, containing necessary resources for replication. For example, images from the paper are includes in this directory. - `rubric.json` file that is used to grade submissions - `blacklist.txt` containing websites that the agent is disallowed from using (e.g. the paper's original codebase). - `config.yaml` file that defines the paper's id. - `judge.addendum.md` containing information from the author that is helpful for the judge to know whilst grading submissions. Not every paper has a judge addendum ### Viewing rubrics We include a web app to view and edit rubrics. To view a paper's rubric that is in `PAPER_DIR` with filename `RUBRIC_FILE_NAME`: ```bash uv run python paperbench/gui/app.py --path-to-paper --rubric-file-name ``` To view a rubric that has been graded (see below), pass the `--graded` flag: ```bash uv run python paperbench/gui/app.py --path-to-paper --rubric-file-name --graded ``` ## JudgeEval We've created an auxiliary evaluation, [JudgeEval](paperbench/judge/judge_eval), to evaluate the accuracy of judges. See the JudgeEval [README](paperbench/judge/judge_eval/README.md) for more information. ## Authors Giulio Starace, Oliver Jaffe, Dane Sherburn, James Aung, Chan Jun Shern, Leon Maksin, Rachel Dias, Evan Mays, Benjamin Kinsella, Wyatt Thompson, Johannes Heidecke, Amelia Glaese, Tejal Patwardhan ## Citation Please cite using the following BibTeX entry: ``` @misc{starace2025paperbenchevaluatingaisability, title={PaperBench: Evaluating AI's Ability to Replicate AI Research}, author={Giulio Starace and Oliver Jaffe and Dane Sherburn and James Aung and Jun Shern Chan and Leon Maksin and Rachel Dias and Evan Mays and Benjamin Kinsella and Wyatt Thompson and Johannes Heidecke and Amelia Glaese and Tejal Patwardhan}, year={2025}, eprint={2504.01848}, archivePrefix={arXiv}, primaryClass={cs.AI}, url={https://arxiv.org/abs/2504.01848}, } ```