--- pretty_name: TwinLab-Bench language: - en tags: - agents - ai-scientist - benchmark - science ---

TwinLab-Bench: Evaluating AI Scientists in Agentic Twins of Real Labs


TwinLab-Bench

Paper Project Page Leaderboard Task Dashboard Dataset

## Overview [TwinLab-Bench](https://twinlab-bench.github.io/) is a benchmark that evaluates AI scientists on experiments that they design themselves. Each task comes from the records of a real laboratory. The agent receives the notebooks, raw data, and interim conclusions that the laboratory had at one point of its work, requests the experiments that it designs within a budget, and submits a report. The report is scored by comparison with a hidden answer taken from what the laboratory later found. Each task has its own TwinLab agent, which serves as the environment and executes the experiments that the tested agent designs. The TwinLab agent returns the recorded result for an experiment that the laboratory performed, and runs calculators built from the records of the laboratory for the other experiments. These tasks remain hard for frontier models, and the strongest model, Claude Fable 5.2, averages a score of 45.0 out of 100. Compare models on the [leaderboard](https://huggingface.co/spaces/ZJUSCL/TwinLab-Bench_Leaderboard), browse every task and one run of it on the [task dashboard](https://twinlab-bench.github.io/#all), and download the tasks from [Hugging Face](https://huggingface.co/datasets/ZJUSCL/TwinLab-Bench). To report a problem with a task, [open an issue](https://github.com/ZJUSCL/TwinLab-Bench/issues). ## Task Coverage TwinLab-Bench contains **52** tasks from laboratories in the physical sciences (20 tasks), the life sciences (20 tasks), and engineering (12 tasks). The [task dashboard](https://twinlab-bench.github.io/#all) lists all of them.

The 52 tasks of TwinLab-Bench by division and department, with four example tasks

## Running the Benchmark ### Setup You need Linux with [bubblewrap](https://github.com/containers/bubblewrap), Python 3.11 or later, Claude Code, and a DeepSeek API key. Claude Code needs to be signed in only when a Claude model is the actor. Codex is needed only for GPT actors. `machine.example.yaml` lists the Claude Code and Codex versions that we tested. ```bash pip install -U huggingface_hub hf download ZJUSCL/TwinLab-Bench --repo-type dataset --local-dir TwinLab-Bench cd TwinLab-Bench pip install -r requirements.txt cp machine.example.yaml machine.yaml # edit the paths in this file mkdir -p ~/.config/twinlab/claude-ds ``` DeepSeek-flash serves as the TwinLab agent and the judge agent through Claude Code. By default Claude Code calls DeepSeek's Anthropic-format API at `https://api.deepseek.com/anthropic` (set `DEEPSEEK_BASE_URL_ANTHROPIC` for another endpoint). ```bash export DEEPSEEK_API_KEY=sk-... ``` (Optional) For an endpoint that accepts only the OpenAI format, set `DEEPSEEK_BASE_URL_OPENAI` and start the local proxy, which converts the requests. ```bash export DEEPSEEK_BASE_URL_OPENAI=https://api.deepseek.com python scripts/llm_proxy.py write-config --model deepseek-flash --upstream-model deepseek-flash \ --api-base $DEEPSEEK_BASE_URL_OPENAI --key-env DEEPSEEK_API_KEY \ --master-key sk-local-twinlab --config ~/.config/twinlab/litellm.yaml python scripts/llm_proxy.py start --config ~/.config/twinlab/litellm.yaml --port 4001 --workers 32 ``` ### Run Run one task. ```bash python scripts/run_case.py --case cases/029-die-attach-release-01/case.yaml --n-runs 1 \ --actor-agent claude-code --actor-model claude-opus-5-5 --actor-effort high \ --env-model deepseek-flash --judge-model deepseek-flash \ --actor-timeout-s 10800 --checkpoints case --out runs ``` Run all 52 tasks. The script prints a table of scores and writes each run to `runs//