Skip to content

feat(assaybench): add AssayBench phenotypic CRISPR screen prediction … - #3475

Merged
bxyu-nvidia merged 1 commit into
NVIDIA-NeMo:mainfrom
lilithgrigoryan:lgrigoryan/assay-bench
Sep 17, 2026
Merged

bxyu-nvidia merged 1 commit into
NVIDIA-NeMo:mainfrom
lilithgrigoryan:lgrigoryan/assay-bench

Conversation

@lilithgrigoryan

Copy link
Copy Markdown
Contributor

…benchmark

AssayBench (arXiv:2605.10876, Genentech) casts each of 1,920 BioGRID ORCS CRISPR screens as a gene-ranking task: given a plain-text description of the screen, return the 100 most likely hits, ranked. Headline metric is adjusted nDCG@100.

Resources server assaybench:

  • reward = AnDCG@100 computed by the authors' assaybench==0.2.0 PyPI package (RankingMetrics with its defaults: HGNC gene mapper on, k in 5/10/20/50/100), so the score is the same computation as in the paper; precision@100, fdr@100 and the normalized variants ride along, plus a per-phenotype breakdown. The paper's "Precision@k" is the package's normalized_precision@k (its §3.2 divides by min(k, #hits)); the key metrics point at that key.
  • replies are read the way the reference harness read them: DSPy ChatAdapter [[ ## answer ## ]] field, then the harness's own comma parser (vendored, MIT); DSPy parse failures fall back to its raw-reply scan and are counted.
  • flat rows (question + relevance_genes/relevance_scores) prepared from the pinned Hugging Face revision with single-threaded pyarrow; the rendered question and ground truth were checked row for row against upstream's loader on the 334 test screens.

Benchmarks assaybench (temporal test, 334), assaybench-val (218) and assaybench-latest (LaTest, 19) share the server and the prompt config benchmarks/prompts/eval/assaybench/paper.yaml, which reproduces all three layers of the harness's messages byte for byte: the Appendix A.4 template, the collection-time suffix, and DSPy's chain-of-thought framing (captured from dspy 3.3.1 and pinned by a test).

Baselined with three models at the paper's protocol (5 runs per screen); test split AnDCG@100 vs published: GPT-OSS-120B 0.1204 (0.1211), DeepSeek-V3.2 0.1127 (0.1076), Gemini 3 Flash 0.1524 (0.1446). Details, per-model sampling settings and every divergence from the harness are in the server README.

What does this PR do?

Validation

Rollouts

Compatibility and benchmark impact

Checklist

  • I have read the contributing guidelines.
  • The change is focused; unrelated "drive-by" edits are tracked as separate issues/PRs.
  • Tests added or updated and pass locally, or N/A for docs-only / non-code changes (so CI unit/server checks pass when applicable).
  • Documentation added or updated, or N/A with justification.
  • Pre-commit checks pass locally (pre-commit run --all-files) (so CI lint/format checks pass).
  • New source files include the required Apache-2.0 SPDX header.
  • All commits have DCO sign-off (git commit -s) (so the DCO check passes).

@copy-pr-bot

copy-pr-bot Bot commented Sep 17, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@github-actions

Copy link
Copy Markdown
Contributor

@yaoyu-33 yaoyu-33 added area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers complexity:medium Single-domain change with interacting parts or a moderate review surface feature New capabilities, enhancements, or enablement work needs-review PR is ready for code review and waiting on a reviewer labels Sep 17, 2026
@lilithgrigoryan
lilithgrigoryan force-pushed the lgrigoryan/assay-bench branch 11 times, most recently from 66e89a1 to 3ab8106 Compare September 17, 2026 16:32
…benchmark

AssayBench (arXiv:2605.10876, Genentech) casts each of 1,920 BioGRID ORCS CRISPR
screens as a gene-ranking task: given a plain-text description of the screen,
return the 100 most likely hits, ranked. Headline metric is adjusted nDCG@100.

Resources server `assaybench`:
- reward = AnDCG@100 computed by the authors' `assaybench==0.2.0` PyPI package
  (RankingMetrics with its defaults: HGNC gene mapper on, k in 5/10/20/50/100),
  so the score is the same computation as in the paper; precision@100, fdr@100
  and the normalized variants ride along, plus a per-phenotype breakdown. The
  paper's "Precision@k" is the package's normalized_precision@k (its §3.2
  divides by min(k, #hits)); the key metrics point at that key.
- replies are read the way the reference harness read them: DSPy ChatAdapter
  `[[ ## answer ## ]]` field, then the harness's own comma parser (vendored,
  MIT); DSPy parse failures fall back to its raw-reply scan and are counted.
- flat rows (question + relevance_genes/relevance_scores) prepared from the
  pinned Hugging Face revision with single-threaded pyarrow; the rendered
  question and ground truth were checked row for row against upstream's loader
  on the 334 test screens.

Benchmark `assaybench` covers the paper's three cohorts, which share one row
format: the temporal test split (334 screens, default), and via
`+prepare_script_args.split=` the validation split (218) and LaTest (19). The
prompt config `benchmarks/prompts/eval/assaybench/paper.yaml` reproduces all
three layers of the harness's messages byte for byte: the Appendix A.4
template, the collection-time suffix, and DSPy's chain-of-thought framing
(captured from dspy 3.3.1 and pinned by a test).

Baselined with three models at the paper's protocol (5 runs per screen); test
split AnDCG@100 vs published: GPT-OSS-120B 0.1204 (0.1211), DeepSeek-V3.2
0.1127 (0.1076), Gemini 3 Flash 0.1524 (0.1446). Details, per-model sampling
settings and every divergence from the harness are in the server README.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Signed-off-by: Lilit Grigoryan <[email protected]>
@bxyu-nvidia

Copy link
Copy Markdown
Contributor

/ok to test a184f7b

@bxyu-nvidia
bxyu-nvidia merged commit 5014c9c into NVIDIA-NeMo:main Sep 17, 2026
39 checks passed

This branch was previously deployed

1 inactive deployment
public — a184f7b5 Deployed Sep 17, 2026 by copy-pr-bot[bot] via release / finalize / notify #3122
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers complexity:medium Single-domain change with interacting parts or a moderate review surface feature New capabilities, enhancements, or enablement work needs-review PR is ready for code review and waiting on a reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants