loubnabnl HF Staff commited on
Commit
f0152de
·
verified ·
1 Parent(s): 1111cc4

Restore full card; credit GenomeQA authors; clarify eukaryote_cls is within-eukaryote

Browse files
Files changed (1) hide show
  1. README.md +143 -25
README.md CHANGED
@@ -303,35 +303,153 @@ configs:
303
 
304
  # GenomeQA
305
 
306
- Multiple-choice questions that put a raw DNA sequence in the prompt and ask a general-purpose language model to
307
- answer from it, rather than from a specialised DNA encoder. Six task families: enhancer and promoter
308
- identification, splice-site identification, taxonomic classification, histone-mark prediction, transcription-factor
309
- binding-site prediction, and TF motif prediction. Sequences run from 6 to 1,000 bp.
310
 
311
- This is a repackaging of the benchmark introduced in
 
 
 
 
 
 
 
 
 
 
 
 
312
  [GenomeQA: Benchmarking General Large Language Models for Genome Sequence Understanding](https://huggingface.co/papers/2604.05774)
313
- ([arXiv:2604.05774](https://arxiv.org/abs/2604.05774)) by Weicai Long, Yusen Hou, Junning Feng, Houcheng Su,
314
- Shuo Yang, Donglin Xie and Yanlin Zhang. All credit for the benchmark belongs to those authors; see the paper for
315
- how it was built from EPDnew, ENCODE SCREEN, the Nucleotide Transformer downstream tasks, NCBI RefSeq and JASPAR.
316
- We repackage it in Parquet, add the subsets below, and use it to evaluate Carbon-X.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
317
 
318
  ## Configurations
319
 
320
- Every configuration has a single `train` split.
 
 
 
321
 
322
- | Configuration | Rows | Contents |
323
  | --- | ---: | --- |
324
- | `binary` | 2,600 | the benchmark in binary-choice form |
325
- | `mcq` | 2,600 | the benchmark in four-option form |
326
- | `binary_600` / `mcq_600` | 600 | cheaper subsets, 100 rows from each of the six families |
327
- | `eukaryote_cls` | 1,000 | eukaryote classification *within* eukaryotes: four eukaryotic taxa as options, so the model must tell eukaryotic lineages apart rather than separate eukaryote from prokaryote |
328
- | `mcq_carbon` | 2,600 | `mcq` with the 500 taxonomic-classification rows swapped for 500 `eukaryote_cls` rows |
329
- | `mcq_carbon_600` | 600 | 100 rows per subtask sampled from `mcq_carbon` |
330
- | `binary_eukaryote` / `binary_prokaryote` | 170 / 150 | taxonomic rows split by whether the target organism is eukaryotic or prokaryotic |
331
- | `mcq_eukaryote` / `mcq_prokaryote` | 177 / 165 | the same split in four-option form |
332
-
333
- The full `binary` and `mcq` sets hold 500 examples for each of the first five families and 100 motif examples, so
334
- report per-subtask accuracy and take an unweighted mean across the six when a single number is needed.
335
-
336
- The subsets were built with the scripts in [`scripts/`](scripts), all seeded at 42 and sampling without replacement.
337
- `eukaryote_cls` uses the `mcq` feature schema, including JSON-serialised `metadata`.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
303
 
304
  # GenomeQA
305
 
306
+ GenomeQA is a diagnostic question-answering benchmark for evaluating whether general-purpose language models can
307
+ reason directly over raw nucleotide sequences. It presents English questions containing one or more DNA sequences and
308
+ asks the model to select an answer using biological signals such as sequence composition, motifs, and motif context.
309
+ It does not assume a specialized DNA encoder or task-specific model training.
310
 
311
+ The original benchmark contains 5,200 examples—2,600 binary-choice questions and 2,600 four-option multiple-choice
312
+ questions—with sequence lengths from 6 to 1,000 base pairs. It covers six task families:
313
+
314
+ 1. enhancer and promoter identification;
315
+ 2. splice-site identification;
316
+ 3. taxonomic classification;
317
+ 4. histone-mark and chromatin-state prediction;
318
+ 5. transcription-factor binding-site prediction; and
319
+ 6. transcription-factor motif prediction.
320
+
321
+ ## Source and construction
322
+
323
+ This repository repackages the benchmark introduced in
324
  [GenomeQA: Benchmarking General Large Language Models for Genome Sequence Understanding](https://huggingface.co/papers/2604.05774)
325
+ ([arXiv:2604.05774](https://arxiv.org/abs/2604.05774)) by Weicai Long, Yusen Hou, Junning Feng, Houcheng Su, Shuo
326
+ Yang, Donglin Xie, and Yanlin Zhang. **All credit for the benchmark belongs to those authors.** We repackage it in
327
+ Parquet, add the subsets listed below, and use it to evaluate Carbon-X.
328
+
329
+ The paper constructs GenomeQA from established genomic resources:
330
+
331
+ | Task family | Primary source | Sequence length |
332
+ | --- | --- | ---: |
333
+ | Enhancer and promoter identification | EPDnew and ENCODE SCREEN | 400 bp |
334
+ | Splice-site identification | Nucleotide Transformer downstream tasks | 600 bp |
335
+ | Taxonomic classification | NCBI RefSeq | 1,000 bp |
336
+ | Histone-mark prediction | Nucleotide Transformer downstream tasks | 1,000 bp |
337
+ | TFBS prediction | ENCODE and JASPAR | 100 bp |
338
+ | TF motif prediction | ENCODE and JASPAR | 6–20 bp |
339
+
340
+ The authors standardize sequence windows, remove overlapping examples to reduce ambiguity, exclude sequences with
341
+ ambiguous nucleotide bases, and convert the resulting annotations into binary-choice and multiple-choice question
342
+ templates. Refer to the paper for the full construction procedure and source-database citations.
343
 
344
  ## Configurations
345
 
346
+ All configurations contain a single `train` split. The full benchmark configurations are intentionally not equal in
347
+ size across subtasks: each contains 500 examples for the first five task families and 100 motif examples. Benchmark
348
+ results should therefore report per-subtask accuracy and use an unweighted mean across the six subtasks when a single
349
+ headline score is needed.
350
 
351
+ | Configuration | Rows | Meaning |
352
  | --- | ---: | --- |
353
+ | `binary` | 2,600 | Full benchmark in binary-choice format, with two ordered options per question. |
354
+ | `mcq` | 2,600 | Full benchmark in four-option multiple-choice format. |
355
+ | `mcq_carbon` | 2,600 | MCQ benchmark with the 500 broad taxonomic-classification (`3_species_cls`) rows replaced by 500 stratified within-eukaryote `eukaryote_cls` rows. |
356
+ | `mcq_carbon_600` | 600 | Stratified 100-row sample from each `mcq_carbon` subtask. |
357
+ | `binary_600` | 600 | Lower-cost binary subset with 100 examples from each of the six subtasks. |
358
+ | `mcq_600` | 600 | Lower-cost MCQ subset with 100 examples from each of the six subtasks. |
359
+ | `binary_eukaryote` | 170 | Binary `3_species_cls` questions whose target organism is eukaryotic. |
360
+ | `binary_prokaryote` | 150 | Binary `3_species_cls` questions whose target organism is prokaryotic. |
361
+ | `mcq_eukaryote` | 177 | MCQ `3_species_cls` questions whose target organism is eukaryotic. |
362
+ | `mcq_prokaryote` | 165 | MCQ `3_species_cls` questions whose target organism is prokaryotic. |
363
+ | `eukaryote_cls` | 1,000 | Eukaryote classification *within* eukaryotes: all four options are eukaryotic taxa, so the model must tell eukaryotic lineages apart rather than separate eukaryote from prokaryote. Auxiliary set, stored separately from the original 5,200-example benchmark. |
364
+
365
+ The `mcq_carbon` configuration preserves the other `mcq` rows and inserts 500 `eukaryote_cls` questions at the
366
+ original species-classification position. From source revision `ae30ecec16a7669f342f7d87439552142cdebe40`, seed 42 selects 300
367
+ `basic_class`, 100 `reverse_search`, and 100 `odd_one_out` rows, sampling approximately half of each taxon label
368
+ within each question type. See [`scripts/create_mcq_carbon.py`](scripts/create_mcq_carbon.py).
369
+
370
+ The `mcq_carbon_600` configuration samples without replacement from `mcq_carbon` at revision
371
+ `c0a7d5b8ccfe4c0d64bc3ff5dd171ff4365c16f6` using seed 42. It retains 100 rows per subtask and preserves the mix of question
372
+ dimensions within each subtask. Within dimensions, it samples proportionally by target label where available; eukaryote odd-one-out
373
+ questions are also stratified by majority taxon, and answer position is the final stratum. The 100 motif rows are all
374
+ retained. See
375
+ [`scripts/create_mcq_carbon_600.py`](scripts/create_mcq_carbon_600.py).
376
+
377
+ The `eukaryote_cls` configuration uses the `mcq` feature schema, including JSON-serialized `metadata`.
378
+
379
+ The `binary_600` and `mcq_600` configurations were sampled without replacement using seed 42 from source revision
380
+ `a71ab7e0e72b8eca7acd4475744dccd0159b20be`. The 100 selected examples from each subtask were then combined and
381
+ shuffled so the rows are not stored in subtask blocks. These subsets are balanced by task family, but not necessarily
382
+ by every internal label or question dimension. See
383
+ [`scripts/create_600_subsets.py`](scripts/create_600_subsets.py) for the reproducible generation script.
384
+
385
+ The organism-specific configurations contain only rows from the `3_species_cls` subtask and preserve their source
386
+ order. The target organism is read from `metadata`: `true` for binary `1_identity` and MCQ `basic_class` questions,
387
+ `target` for MCQ `reverse_search` questions, and `minority` for MCQ `odd_one_out` questions because the minority class
388
+ is the sequence the model must identify. Eukaryote and prokaryote subsets are disjoint within each answer format;
389
+ virus rows are not included. See
390
+ [`scripts/create_organism_subsets.py`](scripts/create_organism_subsets.py) for the reproducible filtering script.
391
+
392
+ ## Data fields
393
+
394
+ | Field | Description |
395
+ | --- | --- |
396
+ | `id` | Integer identifier within the source subtask. |
397
+ | `subtask` | Task-family identifier used for grouped evaluation. |
398
+ | `question` | Natural-language question containing the relevant DNA sequence or sequences. |
399
+ | `options` | Ordered list of candidate answers. |
400
+ | `answer_index` | Zero-based index of the correct entry in `options`. |
401
+ | `answer_text` | Correct answer text. For sequence-selection questions, this may itself be a DNA sequence. |
402
+ | `metadata` | Serialized task-specific metadata describing the question dimension and source label. |
403
+
404
+ ## Usage
405
+
406
+ ```python
407
+ from datasets import load_dataset
408
+
409
+
410
+ binary = load_dataset("HuggingFaceBio/genomeqa", "binary", split="train")
411
+ representative_mcq = load_dataset("HuggingFaceBio/genomeqa", "mcq_600", split="train")
412
+ eukaryote_mcq = load_dataset("HuggingFaceBio/genomeqa", "mcq_eukaryote", split="train")
413
+ ```
414
+
415
+ ## Citation
416
+
417
+ ```bibtex
418
+ @article{long2026genomeqa,
419
+ title={GenomeQA: Benchmarking General Large Language Models for Genome Sequence Understanding},
420
+ author={Long, Weicai and Hou, Yusen and Feng, Junning and Su, Houcheng and Yang, Shuo and Xie, Donglin and Zhang, Yanlin},
421
+ journal={arXiv preprint arXiv:2604.05774},
422
+ year={2026}
423
+ }
424
+ ```
425
+
426
+ ## Reproducing
427
+
428
+ To rebuild and publish the normalized `eukaryote_cls` configuration from the pinned source revision, run:
429
+
430
+ ```bash
431
+ python scripts/create_eukaryote_cls.py --source-revision 18f68fabbcd43e8c227869a833027c969b39d7fe --output-dataset HuggingFaceBio/genomeqa --publish
432
+ ```
433
+
434
+ The script preserves the source rows, converts `metadata` from Python dictionary strings to JSON, and casts the
435
+ columns to the `mcq` feature schema. It publishes the Parquet file, this card, and the builder script in one commit.
436
+
437
+ ### mcq_carbon
438
+
439
+ To rebuild and publish `mcq_carbon` from the pinned source revision, run:
440
+
441
+ ```bash
442
+ python scripts/create_mcq_carbon.py --source-revision ae30ecec16a7669f342f7d87439552142cdebe40 --output-dataset HuggingFaceBio/genomeqa --publish
443
+ ```
444
+
445
+ The script publishes the Parquet file, this card, and the builder script together.
446
+
447
+ ### mcq_carbon_600
448
+
449
+ To rebuild and publish `mcq_carbon_600` from the pinned source revision, run:
450
+
451
+ ```bash
452
+ python scripts/create_mcq_carbon_600.py --source-revision c0a7d5b8ccfe4c0d64bc3ff5dd171ff4365c16f6 --output-dataset HuggingFaceBio/genomeqa --seed 42 --publish
453
+ ```
454
+
455
+ The script publishes the Parquet file, this card, and the builder script together.