ProteinGym zero-shot substitutions
About this task
The agent builds the best zero-shot protein variant-effect model it can in 24 hours on 8×H100: pretrained protein language models, MSA- and structure-based models, ensembles, its own unsupervised (pre)training, but no fitness labels of the test proteins. Its final model is scored through the evaluation hub (no network; 1×H100 for validation, 8×H100 for the final) on every variant of all 217 ProteinGym v1.3 DMS substitution assays (2,465,767 variants), with ProteinGym's official Spearman aggregation, so the score is directly comparable with the public leaderboard. Validation: 139 public DMS assays of other proteins (labels shipped).
Full prompt
BioModelBench: ProteinGym zero-shot substitutions
Goal
Build the best zero-shot protein variant-effect model you can. In 24 hours on H100×8 you may use, combine, adapt or (pre)train any protein models you like (protein language models, MSA-based and structure-based models, ensembles), without using any fitness labels of the test proteins (rules below). Your final model is scored on every variant of all 217 ProteinGym v1.3 deep mutational scanning (DMS) substitution assays (2,465,767 variants of 186 proteins), with ProteinGym's official metric, so your score is directly comparable with the public ProteinGym leaderboard.
Models are scored through BioModelBench's evaluation hub (https://eval.biomodelbench.org), which runs your model
in a sandbox with no network, on GPUs, and returns only scores:
- During your run you can submit your model to the hub, which scores it on the
validation assays (139 public DMS assays of other proteins, the same rows as
datasets/proteingym_substitutions/val.parquet, whose labels you have). Use it to check that your bundle runs end to end in the scoring sandbox, in time. It never scores a ProteinGym assay. - After your run ends we submit your
final_model/once for the official final evaluation on all 217 ProteinGym assays.
The evaluation
| Test set | Assays | Variants | Metric | Chance | Reference (same rows and metric) |
|---|---|---|---|---|---|
| ProteinGym v1.3 DMS substitutions | 217 | 2,465,767 | ProteinGym Spearman | 0.0 | 0.4138 (ESM2 650M); 0.5182 (VenusREM) |
The metric is ProteinGym's: Spearman between your score and the assay's measurement within each assay; the mean over the assays of each protein (UniProt ID) within a selection type; the mean over the proteins of each selection type (Activity, Binding, Expression, OrganismalFitness, Stability); and the mean of those five. Higher score = fitter (more active, binding, expressed, stable or growing); the scorer never flips signs. AUC, MCC, NDCG and top-10% recall are reported too (aggregated the same way); Spearman is the headline. The references are ProteinGym's own published scores, recomputed on these rows (the leaderboard's top zero-shot models are at about 0.52).
Also scored, after your run, outside the headline: 3 private zero-shot datasets
(11,653 variants whose measurements aren't public): two enzyme activity screens
and 10 antibody affinity landscapes (single substitutions of an scFv, each measured against
its own antigen). Your same final_model/ predicts them, once, with the same
columns and metric; their DMS_id and UniProt_ID are opaque ids. The antibody rows add one
column, antigen_seq: the binding partner's sequence (target_seq and mutated_sequence are the
antibody). Use it or ignore it. Your model gets no feedback on these and you aren't told which
proteins they are, so it must handle any sequence it is given: whatever it needs per protein (MSAs,
structures) is computed inside the sandbox, with no network, on 1×H100 (16 CPUs, 128 GB RAM) in
2 hours per dataset, or it falls back to what it can compute. A model that fails on them still
gets its ProteinGym score.
The test set's inputs are private. You never see them: the hub passes them to your model's
predict() in the scoring sandbox. Each row has row_id, DMS_id, UniProt_ID,
selection_type, target_seq (wild type), mutant (A23V, or A23V:G45D for multi-mutants;
1-based) and mutated_sequence (IO_SPEC.md has the details). What we publish about it:
2,465,767 variants of 186 proteins in 217 assays; sequences of up to 3,423 residues
(mean 394); most variants (1.77M) are multi-mutants. The test proteins themselves are listed in
exclusions/ (for the contamination rules below); anything a protein needs (an MSA, a
structure, a per-protein model) your bundle ships or your predict() computes.
datasets/proteingym_substitutions/val.parquet: the validation assays with labels (328,933
variants, single substitutions): 60 Domainome abundance assays (Expression), 41 Mega-scale
stability domains (Stability) and 38 MaveDB assays (Activity, Binding, OrganismalFitness). None of
their proteins is in the test set or a homolog of one (>= 30% identity over half of either sequence). Use it for model selection
and to check your score's sign. Compute your validation score with the same aggregation
(IO_SPEC.md).
What you must deliver
final_model/ (in your working directory): an evaluation-hub model bundle.
predict.pydefiningpredict(df) -> DataFrameand, optionally,load_model(). The hub calls it once per half with every row (all 2,465,767 test variants in one call);dfhas the input columns above (plusantigen_seqon the private antibody rows; don't fail on extra columns). Return a DataFrame with one float columnscore, one row per input row, in order. Bundle files are readable next topredict.py(os.environ["BMB_BUNDLE"]).- All weights, MSAs, structures and code it needs. It runs with no network, in a sandbox with
Python 3.12, numpy, pandas, pyarrow, scipy, scikit-learn, PyYAML, torch (CUDA), transformers,
safetensors and accelerate. Put any other packages as wheels (Linux x86_64, Python 3.12) in
final_model/wheels/; they're installed offline. Bundle at most 160 GB. - The final evaluation runs on 8×H100 (64 CPUs, 1 TB RAM) with 8 hours to predict all
2,465,767 variants; validation submissions run on 1×H100 (16 CPUs, 128 GB RAM) with 2 hours
for the 328,933 validation variants. Use every GPU you're given
(
torch.cuda.device_count(); e.g. one worker process per GPU). For scale: one forward pass of ESM2 650M over every mutated sequence is ~1e9 tokens, about an hour on 8 H100s; wild-type or masked marginals need only one pass per protein or per mutated position (minutes); an MSA search or a structure prediction per protein takes longer. Time your model on synthetic inputs of the test set's size (above) before the run ends. method.md: what you built and why, your data, and your validation results.training_manifest.json: every data source and model checkpoint (URL or id plus version), what you filtered and why, and hashes of your final training files.
Checking your bundle
import os
from bmb_eval.client import Client
hub = Client(os.environ["BMB_HUB"], os.environ["BMB_HUB_TOKEN"])
print(hub.tasks()["budget"]) # your evaluation budget
contract = hub.contract("proteingym_suite_v1") # the public contract
result = hub.submit("proteingym_suite_v1", "final_model") # waits; scores the validation assays
- First run the free local dry run (synthetic inputs, full error output):
bmb-eval dryrun contract.json final_modelafter saving the contract withjson.dump. - A submission counts once against your budget (40 evaluations for the whole run).
Errors come back as fixed codes only. Keep
final_model/in a working state; it's what we evaluate.
Rules
- Don't train, tune or select on any listed test dataset: no inputs, no labels, nothing derived from them.
- Don't build data around specific test items. That includes analogues enumerated from test molecules or scaffolds, mutants of test proteins beyond what their own training sources contain, and windows chosen to cover test variants. Matching a dataset's general domain, modality or difficulty is fine.
- Exclude every identifier in
bundle/exclusions/from training data, and apply the provided checker before training. - Write
training_manifest.json: every data source (URL or dataset id plus version), what was filtered and why, and the final training files' hashes. - Don't look up this benchmark's repository, dashboard, past runs or traces.
- Use only the model and evaluation endpoints you're given. No hosted LLM APIs from your training or inference code.
- Don't modify the evaluation harness. Your model is re-scored outside your container regardless.
Zero-shot rules (this suite):
- No fitness labels of the test proteins, from any source. The test proteins are listed in
exclusions/test_uniprot_ids.tsvandexclusions/test_assays.tsv(every study), and their sequences inexclusions/proteingym_substitutions.labelled_sequences.fasta. Forbidden:- Any per-variant experimental measurement (DMS / MAVE / saturation mutagenesis, abundance, stability, binding, activity or growth) of a test protein: the same UniProt entry as exclusions/test_uniprot_ids.tsv, or a sequence matching a test target (exclusions/proteingym_substitutions.labelled_sequences.fasta) at >= 90% identity over >= 80% of the shorter sequence (integrity/check_overlap.py). This covers MaveDB score sets of these proteins, the original studies' supplementary tables (exclusions/test_assays.tsv lists every study), Mega-scale (Tsuboyama 2023) rows of the 64 test domains, Domainome rows of test proteins, and benchmark collections that contain them (FLIP GB1 / AAV, TAPE fluorescence (GFP), PEER, EVmutation / DeepSequence benchmark sets, VenusMutHub, Livesey & Marsh DMS sets, ...). Measurements of other proteins are allowed.
- Other parties' per-variant predictions packaged with test labels (ProteinGym's *_scores.zip files).
- AlphaSeq (Provider G) affinity measurements of antibody variants, including the local-affinity-landscapes dataset: they are the labels of a private dataset your final model is scored on.
- Forbidden files and URLs (also in
exclusions/forbidden.mdandexclusions/blacklist_urls.txt):- https://marks.hms.harvard.edu/proteingym/ProteinGym_v1.3/DMS_ProteinGym_substitutions.zip
- https://marks.hms.harvard.edu/proteingym/ProteinGym_v1.3/DMS_ProteinGym_indels.zip
- https://marks.hms.harvard.edu/proteingym/ProteinGym_v1.3/substitutions_raw_DMS.zip
- https://marks.hms.harvard.edu/proteingym/ProteinGym_v1.3/indels_raw_DMS.zip
- https://marks.hms.harvard.edu/proteingym/ProteinGym_v1.3/zero_shot_substitutions_scores.zip
- https://marks.hms.harvard.edu/proteingym/ProteinGym_v1.3/zero_shot_indels_scores.zip
- https://marks.hms.harvard.edu/proteingym/ProteinGym_v1.3/DMS_supervised_substitutions_scores.zip
- https://marks.hms.harvard.edu/proteingym/ProteinGym_v1.3/DMS_supervised_indels_scores.zip
- https://marks.hms.harvard.edu/proteingym/ProteinGym_v1.3/cv_folds_singles_substitutions.zip
- https://marks.hms.harvard.edu/proteingym/ProteinGym_v1.3/cv_folds_multiples_substitutions.zip
- https://marks.hms.harvard.edu/proteingym/ProteinGym_v1.3/cv_folds_indels.zip
- https://marks.hms.harvard.edu/proteingym/ (any DMS_, _scores, raw_DMS, cv_folds file of any version: v0.1, v1.0, v1.1, v1.2, v1.3)
- https://huggingface.co/datasets/OATML-Markslab/ProteinGym
- https://huggingface.co/datasets/OATML-Markslab/ProteinGym_v1
- https://huggingface.co/datasets/OATML-Markslab/ProteinGym_v1.3 (and any other Hugging Face / Kaggle / Zenodo / GitHub copy or subset of ProteinGym DMS assays)
- https://github.com/OATML-Markslab/ProteinGym/tree/main/benchmarks (per-assay and per-model results: choosing models or weights by them is selecting on the test set)
- https://proteingym.org (the leaderboard's per-assay tables, for the same reason)
- https://huggingface.co/datasets/provider_g/local-affinity-landscapes (and any copy of it)
- https://atlas.provider_g.com (Provider G's AlphaSeq data)
- Forbidden checkpoints (trained or tuned on these labels). You may retrain any of these
architectures yourself on data without the test proteins:
- ProteinGym supervised-benchmark models and their checkpoints: ProteinNPT, Kermut, the embeddings + supervised-head and one-hot baselines (OATML-Markslab ProteinNPT / ProteinGym supervised repos)
- Metalic and other models meta-trained or few-shot trained on ProteinGym assays (FSFP, ConFit, in-context fitness models trained on ProteinGym)
- Stability predictors trained or fine-tuned on Mega-scale (Tsuboyama 2023) data that includes the test domains: ThermoMPNN, ThermoMPNN-D, Stability Oracle, SPURS, Mutate Everything, ProteinMPNN-ddG and similar
- Fitness predictors fine-tuned on GB1, GFP (Sarkisyan), AAV or other landscapes of test proteins (FLIP / TAPE / PEER heads, SaProtHub fine-tuned models of these proteins)
- Any other released checkpoint whose training data includes a test protein's DMS / fitness labels
- Allowed:
- Unsupervised pretrained protein models trained on UniRef / UniProt / BFD / PDB sequences and structures: ESM-1b, ESM-1v, ESM2, ESM3 open, ESM C, ProGen2 / ProGen3, Tranception, ProtGPT2, RITA, CARP, SaProt, ProSST, ESM-IF1, ProteinMPNN, MSA Transformer, PoET, EVE, VespaG (trained on GEMME scores), ...
- Sequences, MSAs and structures, including ProteinGym's MSA files, MSA weights and structure files (DMS_msa_files / DMS_msa_weights / ProteinGym_AF2_structures): they hold no fitness labels
- Label-free use of the test proteins' sequences (the integrity rules' 'no inputs' clause does not cover this, since a zero-shot model must read them): building or retrieving their MSAs, homologs and structures, and unsupervised per-protein models or fine-tuning on them (EVE / DeepSequence-style models, evotuning on homologs, test-time masked-LM training on the wild type)
- Public labelled data of other proteins (the validation proteins, other MaveDB / Domainome / Mega-scale proteins), after removing every test protein with integrity/check_overlap.py
- Choose models, ensembles and weights on the validation assays (or your own data), never per test assay: the test set's inputs tell you which assay a row is from, but nothing you learn from ProteinGym's per-assay results may decide how an assay is scored.
Check every labelled training file before you use it:
python integrity/check_overlap.py --exclusions exclusions --train <your files or folders>
It flags any table with a sequence column and a label column (DMS_score, score, fitness, ddG, label, ...) whose sequences match a test protein (MMseqs2, >= 90% identity over >= 80% of the shorter sequence). Unlabelled sequences, MSAs and structures of the test proteins are fine and are not flagged. The same check, plus an audit of your full trace, runs after your run. Runs that break the rules are disqualified.
Resources
- H100×8, 64 CPUs, 1024 GB RAM, 24 hours of wall clock. Plan to use the whole budget.
- The internet, for public data, papers and public model weights (Hugging Face etc.).
- No hosted LLM APIs from your code.
Leaderboard
Ranked by proteingym spearman; darker = better.
| # | Run | Integrity | |||||||
|---|---|---|---|---|---|---|---|---|---|
| 1 | Claude Code · high20261119T184353 · claude-opus-5 | 0.547 | 0.547 | 0.257 | 0.590 | 0.274 | Flagged | $508 | — |
| 2 | Claude Code · highprivate · claude-opus-5 | 0.519 | 0.519 | · | · | · | Pending | $226 | — |
| 3 | Claude Code · high20261103T231658 · claude-opus-5 | 0.519 | 0.519 | · | · | · | Flagged | $83.73 | — |
| 4 | Claude Code · highsingle-model · claude-opus-5 | 0.470 | 0.470 | · | · | · | Clean | $147 | — |
| RefESM2 650M (masked marginals) | 0.415 | 0.415 | · | · | · | — | — |
Per-dataset results
Share of the gap from chance to SOTA each run closed.
Test sets
SOTA: best of the models we ran and published results, on the same rows.
| Dataset | Visibility | Metric | Rows | Chance | SOTA | Source |
|---|---|---|---|---|---|---|
| Protein deep mutational scans (zero-shot) | ||||||
| proteingym substitutions | public | proteingym spearman | 2,465,767 | 0.000 | 0.518 VenusREM · recomputed by us | ProteinGym v1.3 DMS_ProteinGym_substitutions.zip (marks.hms.harvard.edu/proteingym/ProteinGym_v1.3), every row of all 217 assays; assay metadata from reference_files/DMS_substitutions.csv (repo commit 144fe22b); Notin et al. 2023 |
| Private variant-effect screens (zero-shot; not in the headline) | ||||||
| provider f aldh | private | proteingym spearman | 942 | 0.000 | — | Provider F Bioworks enzyme screen (candidates selected from a pooled screen, 1-3 substitutions; label = activity fold over controls). Hub task provider_f_aldh (private/make_private_tasks.py); every row is a test row, so it is scored only in finals |
| provider f metdc | private | proteingym spearman | 456 | 0.000 | — | Provider F Bioworks enzyme screen (EVcouplings-designed variants, 1-2 substitutions; label = mean strain activity). Hub task provider_f_metdc (private/make_private_tasks.py); every row is a test row, so it is scored only in finals |
| provider g affinity | private | proteingym spearman | 10,255 | 0.000 | — | Provider G local affinity landscapes (AlphaSeq; 10 scFv antibodies, single substitutions; label = -(log10 Kd change from the parent)); CC BY 4.0, unreleased. Hub task provider_g_affinity (private/make_private_tasks.py); every row is a test row, so it is scored only in finals |