|
Download README.md from xiaojie06/DrugResearchBench: direct link, hf CLI and curl.
- Browser
- Download file 11 kB
-
https://huggingface.co/xiaojie06/DrugResearchBench/resolve/main/README.md
- Command line
-
hf download hf://xiaojie06/DrugResearchBench/README.md
-
curl -L -o README.md https://huggingface.co/xiaojie06/DrugResearchBench/resolve/main/README.md
11 kB
| tags: | |
| - benchmark | |
| - drug-discovery | |
| - evaluation | |
| - computational-science | |
| - agent | |
| language: | |
| - en | |
| - zh | |
| # DrugResearchBench | |
| [逐篇题目、输入覆盖和六轮成绩](TASKS.md) | |
| DrugResearchBench contains **67 executable paper-task definitions** for computational drug research and the records of **402 formally adjudicated submissions**. Three solver configurations each attempted every paper twice. R1 and R2 are separate attempts on the same paper. The broader register contains 79 papers. Twelve entries have registry status only. Read the paper titles, DOIs, six run scores, and file counts in [the register](registry.json). | |
| | Inside each paper | Contents | | |
| | --- | --- | | |
| | `task.json`, `instruction.md`, `task.toml` | The frozen research question, required outputs and scientific scope, plus a machine-readable directory contract | | |
| | `inputs/`, `workspace/`, `environment/` | Original asset names, byte counts, SHA256 and sources, redistributable bytes, separate solver workspace, runtime and resource records | | |
| | `rubric/` | Frozen claim IDs, scientific criteria and weights. Paper results carry 90 points and method rules 10 points. Any distinct historical rubric is retained by digest. | | |
| | `oracle/`, `tests/` | The executable per-paper scientific reference, frozen control specification, independent changed-input inventory and retrospective test script | | |
| | `implementation/`, `solution/` | Archived paper-specific solver and judge controller source, and a shell entry point to execute an actual solution | | |
| | `trajectories/` | Six separate runs. Each contains chronological observable actions, tool arguments, requests and execution receipts, intermediate program versions, the sealed solution and its independent evaluation. | | |
| | `evaluation/` | Scientific scoring functions extracted from the paper's archived controller, adjudication instructions and separately identified historical scores | | |
| ## Run the historical test | |
| Use Python 3.10 or later. Python 3.12 matches the common scientific environment. A historical replay only needs the Python standard library. From a Hub checkout, run | |
| ~~~sh | |
| python3 drb.py unpack E001 | |
| python3 drb.py replay E001 | |
| python3 drb.py replay E001 --condition g61_R1 | |
| ~~~ | |
| For a single task, download the runner and the selected folder, e.g. | |
| ~~~sh | |
| hf download xiaojie06/DrugResearchBench --repo-type model --local-dir drb \ | |
| --include '*.py' 'tasks/E001/*' 'registry.json' 'validation.json' 'README.md' | |
| cd drb | |
| sh tasks/E001/tests/test.sh | |
| ~~~ | |
| Replay checks the bound scientific source, frozen rubric and assessment, enforces per-claim ceilings where present, and recomputes both weighted subtotals. The six run labels are `g61_R1`, `g61_R2`, `g6_R1`, `g6_R2`, `luna_R1` and `luna_R2`. Trace identities are scoped by **paper × model × round**. The archived score is awarded for the methods and evidence actually available under the recorded conditions. A held, missing or unexecuted assessment has no numeric value. | |
| ## Prepare the inputs for a new submission | |
| ~~~sh | |
| python3 drb.py inputs E001 | |
| python3 drb.py inputs E001 --mode hidden | |
| ~~~ | |
| Each command verifies every required input and exits with status 2 if exact bytes are missing. See [the per-paper validation results](validation.json) for which inputs are bundled. E001 includes all original and changed inputs. Some other tasks use third-party datasets, original software toolchains or numerical weights with separate supply conditions. The public corpus contains their scientific identity, attribution and the exact input manifest. A DOI is a provenance reference. The --fetch option uses only entries with a direct byte-source URL and accepts a download only when its SHA256 matches. | |
| For restricted or locally generated assets, an authorized installation can supply its own source directory with the registered relative paths or use the scientific server's approved corpus layout. | |
| ~~~sh | |
| python3 drb.py inputs E003 --source /licensed/exact/E003/original | |
| python3 drb.py inputs E003 --mode hidden --source /licensed/exact/E003/changed | |
| python3 provision.py E003 --root /authorized/DrugResearchBench --mode all | |
| ~~~ | |
| The provisioning helper only reads the authorized local data root. It checks size and SHA256 before materializing original inputs, changed inputs or external oracle fixtures. Review the per-task `inputs/manifest.json`, `inputs/provisioning.json`, `tests/changed_manifest.json` and `oracle/provision.json`. Large duplicate archive members are restored to each prescribed path using the byte-identity maps. | |
| ## Run a solver and grade a new submission | |
| An isolated solver receives `task.json`, its own public workspace and an empty output directory. Original author source, private rubric, oracle, historical solutions, hidden inputs and independent judge feedback belong outside its context. The historical study used A/H0. After publication these retrospective tests and trajectories can be studied openly. A future blinded leaderboard needs fresh held-out inputs together with enforced role isolation. | |
| A complete sealed Python submission is distributed for every archived run. To exercise the scientific path with no model call: | |
| ~~~sh | |
| mkdir -p my-run | |
| cp tasks/E001/trajectories/g61_R1/solution/reproduce.py my-run/source.py | |
| for stage in sealed original hidden; do | |
| mode=original | |
| inputs=tasks/E001/workspace/input | |
| if [ "$stage" = hidden ]; then mode=hidden; inputs=tasks/E001/tests/changed; fi | |
| mkdir -p "my-run/$stage" | |
| python3 drb.py run E001 --mode "$mode" --venv /path/to/scientific-venv \ | |
| --solver my-run/source.py --output "my-run/$stage/artifacts" | |
| python3 drb.py oracle E001 --mode "$mode" --venv /path/to/scientific-venv \ | |
| --inputs "$inputs" --outputs "my-run/$stage/artifacts" > "my-run/$stage/oracle.json" | |
| done | |
| python3 judge.py prepare E001 --run my-run | |
| ~~~ | |
| Linux Bubblewrap must be able to create an isolated network namespace. A pinned, appropriately provisioned Docker/Podman image can be selected with `--image` in place of `--venv`. Each task's environment file records the baseline numerical packages and any paper-specific runtime text. Specialist binaries, weights or libraries may require separate installation. The portable runner is a new implementation condition. Historical controller sources and run conditions remain available for comparison. Failed attempts and unknown provider charges remain visible in the trajectory accounting. | |
| The three mode directories bind the solution SHA256, output digests and scientific checks. `judge.py prepare` computes independent **ceilings**. A fresh final score requires an independent assessment. Supply a reviewed verdict with per-claim fractions and evidence citations, or explicitly request one using an API key provided in your own environment: | |
| ~~~sh | |
| python3 judge.py score E001 --run my-run --judgment /path/to/independent-assessment.json | |
| # Alternative using the optional external model service, with a fresh billable request: | |
| python3 judge.py score E001 --run my-run --model openai/gpt-6.1-sol | |
| ~~~ | |
| The portable scoring code checks claim coverage, weights, evidence citations and ceilings. Historical task-specific post-hoc repairs or specialized checks can impose additional restrictions on formal comparability. An unavailable reference or an incompatible environment leaves the new run pending. An unadjudicated ceiling carries no final score. | |
| To use the bundled **reference solver agent** instead of a stored program, configure `COMMONSTACK_API_KEY` in your own environment and select the model and maximum number of new calls explicitly: | |
| ~~~sh | |
| python3 agent.py E001 --model openai/gpt-6.1-sol --max-calls 3 --out my-solver | |
| ~~~ | |
| The reference client asks for bounded reads and a complete submission, and records returned actions and usage. It uses a new independent working directory. No model credential is distributed with the benchmark. The historical program and its controller are archived independently from this portable interface. | |
| ## Scope, attribution and validation | |
| Use [the file manifest](release_manifest.json) for individual digests, [validation](validation.json) for the measured coverage, [attribution](ATTRIBUTION.md) for the sources, and [format conventions](standards.md) for the relationship to Harbor and BixBench3. Executable layout and validation are documented here. This release is hosted in the existing Hugging Face model repository named by the maintainers. | |
| The public trajectory is a structured record of externally observable actions, submitted scientific code, execution outcomes, costs where observed, and judge findings. It excludes private provider reasoning, credentials, and full model input views containing restricted third-party materials. Published historical scores, retrospective judgments, fresh portable evaluations and unscored registry entries must be analyzed as separate units. | |
| ## One-command scientific run and older experiments | |
| For the public E001 example, use the command below after provisioning the numerical environment. It executes the same sealed program in three separate workspaces and computes evidence ceilings. Add --judgment with an independent verdict, or explicitly select a paid --judge-model for a new final score. | |
| ~~~sh | |
| python3 experiment.py E001 --archived-solver g61_R1 --run-dir trial-E001 --venv /path/to/scientific-venv | |
| ~~~ | |
| For an authorized installation, add --authorized-root /path/to/DrugResearchBench. The helper binds the complete frozen server verifier by content hashes and makes its private files visible only to the verifier. With --solver you can use your own independent source. | |
| The same unpack command also expands trajectories/history/. C0 retains original solver events and historical assessments, Opus stores the two review slots and their inclusion status, and BE04 contains available budget-arm artifacts. These records are separate from the 402 formal model repeats. See [history_index.json](history_index.json) and [registry-only entries](registered_only). | |
| ## Verified quick start | |
| The paper-level test requires Python 3.10+ and replays all six submitted scores. It automatically expands the formal traces, so only the selected paper and the root runner are needed. For the full end-to-end scientific check, E001 bundles both its original and changed inputs. Its three independently sandboxed science executions and 64-criterion historical-judgment regression are documented in [the validation receipt](validation/portable_e001.json). This regression used an already adjudicated decision as a fixture. | |
| On a Linux host with the E001 scientific environment available, the portable command is: | |
| ~~~sh | |
| python3 experiment.py E001 --archived-solver g61_R1 --run-dir new-e001 --venv /path/to/scientific-venv | |
| ~~~ | |
| This command reports the evidence ceiling. To score a new solution, run the independent judge against the new evidence. The canonical archived grades remain visible with the paper-level shell test. [Paper index and all 402 scores](TASKS.md) | |