pstjohn commited on
Commit
68934b1
·
unverified ·
1 Parent(s): bfe9e7c

update dataset card

Browse files

Signed-off-by: Peter St. John <pstjohn@nvidia.com>

Files changed (1) hide show
  1. README.md +165 -62
README.md CHANGED
@@ -25,13 +25,151 @@ configs:
25
 
26
  # GeneAnnotationBench
27
 
28
- GeneAnnotationBench is a frozen, 3,500-question DNA-conditioned multiple-choice evaluation set spanning seven gene-annotation aspects. It is packaged as one question per row in a single `test` split.
29
 
30
- > **Evaluation input contract:** Only `prompt_template` and `dna_sequence` are model inputs. Fields named `answer_*` and `*_provenance` are labels or provenance and **must never be appended to, rendered into, or otherwise exposed through the evaluation prompt**. Provenance supports traceability only.
 
 
 
 
31
 
32
  This repository is private pending NVIDIA review. Do not make it public until the dataset content, licensing, and release terms have received final approval.
33
 
34
- ## Load a pinned revision
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
 
36
  Install `datasets`, copy the immutable commit SHA from the Hub's **Files and versions** page, and pin it as `REVISION`:
37
 
@@ -47,23 +185,25 @@ test = load_dataset(
47
  )
48
  ```
49
 
50
- The SHA-256 of the initial exported `test.parquet` is `f10be6a66eafbaf6cdd4da112ef4dadfba898bba3a716c7ef727bdcc1ed951c5`. Hub commits are the dataset versioning mechanism; evaluations should record the revision SHA they used.
51
 
52
- ## Construct model inputs
53
 
54
- Every template has exactly one `<dna_placeholder>`. DNA-native models should keep that placeholder in the text prompt and pass the sequence through their DNA modality. Text-only baselines should replace it with the uppercase `ACGTN` sequence.
55
 
56
  ```python
57
  row = test[0]
58
  assert row["prompt_template"].count("<dna_placeholder>") == 1
59
 
60
- # DNA-native model:
61
  prompt = row["prompt_template"]
62
  dna = row["dna_sequence"]
63
  # prediction = model.generate(prompt=prompt, dna_sequence=dna)
64
 
65
- # Text-only baseline:
66
- text_prompt = row["prompt_template"].replace("<dna_placeholder>", row["dna_sequence"])
 
 
67
  # prediction = model.generate(text_prompt)
68
 
69
  # Never add row["answer_indices"], other answer_* fields, or *_provenance fields.
@@ -71,7 +211,7 @@ text_prompt = row["prompt_template"].replace("<dna_placeholder>", row["dna_seque
71
 
72
  Models should return one option letter for `single_choice` questions and a comma-separated set of option letters for `multi_select` questions.
73
 
74
- ## Score predictions
75
 
76
  Report exact-match accuracy separately for each of the six single-choice aspects. For localization, parse the predicted option set and report option-set micro-F1 across all 500 questions.
77
 
@@ -89,7 +229,8 @@ def score(rows, prediction_texts):
89
  exact = defaultdict(list)
90
  tp = fp = fn = 0
91
  for row, text in zip(rows, prediction_texts, strict=True):
92
- predicted, gold = set(parse_prediction(text)), set(row["answer_indices"])
 
93
  if row["aspect"] == "localization":
94
  tp += len(predicted & gold)
95
  fp += len(predicted - gold)
@@ -98,65 +239,27 @@ def score(rows, prediction_texts):
98
  exact[row["aspect"]].append(predicted == gold)
99
  return {
100
  "accuracy_by_aspect": {
101
- aspect: sum(values) / len(values) for aspect, values in sorted(exact.items())
 
102
  },
103
  "localization_micro_f1": 2 * tp / (2 * tp + fp + fn),
104
  }
105
  ```
106
 
107
- Prediction parsing should be fixed before evaluation. Do not use gold fields or provenance to repair model outputs.
108
-
109
- ## Dataset structure
110
-
111
- There are 500 questions for each aspect:
112
-
113
- - `biological_process`
114
- - `domains`
115
- - `family`
116
- - `function`
117
- - `localization`
118
- - `molecular_activity`
119
- - `pathways`
120
-
121
- The six non-localization aspects contain 3,000 `single_choice` questions. Localization contains 500 `multi_select` questions, including 103 with more than one correct option. Every row has ten ordered choices. The data contain 3,372 unique DNA sequences and 128 repeated occurrences across different aspect questions. Eight DNA windows are clipped to 131,072 bp.
122
-
123
- ### Columns
124
-
125
- | Column | Type | Meaning |
126
- |---|---|---|
127
- | `id` | string | Frozen source sample ID |
128
- | `aspect` | string | Gene-annotation aspect |
129
- | `question_type` | string | `single_choice` or `multi_select` |
130
- | `question` | string | Question text |
131
- | `dna_sequence` | string | Uppercase `ACGTN` DNA sequence; model input |
132
- | `choices` | list of string | Ten ordered answer choices |
133
- | `prompt_template` | string | Complete text template with one DNA placeholder; model input |
134
- | `answer_indices` | list of int8 | Zero-based correct-choice indices; gold label |
135
- | `answer_letters` | list of string | Corresponding `A`–`J` labels; gold label |
136
- | `answer_texts` | list of string | Corresponding choice texts; gold label |
137
- | `dna_provenance` | struct | Organism, assembly, sequence, gene, coordinate, clipping, length, and checksum metadata |
138
- | `annotation_provenance` | struct | Canonical annotation, entities, ontology/location labels, source task, quality, and sources |
139
- | `distractor_provenance` | struct | Distractor-generation method and source identifiers/splits |
140
- | `release_provenance` | struct | Stable source IDs, task IDs, source split, seed, and frozen row ordering |
141
-
142
- Coordinates in `dna_provenance` are zero-based, half-open. Fields ending in `_chunk` are relative to a 1,000,000-bp source chunk; `gene_start`, `gene_end`, `dna_start`, and `dna_end` are the corresponding global coordinates. DNA is in forward-reference orientation; `strand` is provenance and does not imply reverse-complementing the supplied sequence.
143
-
144
- ## Data provenance and intended use
145
-
146
- The dataset is intended for held-out evaluation of models that predict gene annotations from DNA. Annotation and distractor provenance is included to support auditing, attribution, stratified analysis, and error investigation after inference. It is deliberately separated from model inputs and may contain the answer in direct or indirect form.
147
 
148
- The dataset contains repeated DNA sequences when the same sequence supports questions about different annotation aspects. Consumers should preserve the frozen row order and IDs, and should not treat cross-aspect repetition as duplicate questions.
149
 
150
- ## Licensing status
 
 
 
 
151
 
152
- The dataset license is marked `other` / `pending-nvidia-review`; this is not a final NVIDIA license grant. NVIDIA review is required before any public release.
153
 
154
- Applicable upstream source terms include:
155
 
156
- - Gene Ontology annotations: [CC BY 4.0](https://geneontology.org/docs/go-citation-policy/)
157
- - UniProt data: [CC BY 4.0](https://www.uniprot.org/help/license)
158
- - InterPro and Pfam downloadable data: [CC0](https://www.ebi.ac.uk/interpro/about/license/)
159
- - Reactome: annotation files are released under CC0, while software, dumps, and pathway illustrations have separate CC BY terms; consult the [Reactome license guidance](https://reactome.org/license)
160
- - NCBI molecular data: consult the [NCBI data reuse and third-party-rights disclaimer](https://www.ncbi.nlm.nih.gov/home/about/policies/)
161
 
162
- Users are responsible for confirming that their use complies with all applicable terms.
 
25
 
26
  # GeneAnnotationBench
27
 
28
+ ## Dataset Description
29
 
30
+ GeneAnnotationBench is a frozen evaluation set for testing whether models can interpret raw DNA sequences well enough to answer questions about gene biology. It recasts gene annotation as DNA-conditioned question answering: much as a visual question-answering benchmark pairs an image with a question, GeneAnnotationBench pairs a DNA sequence with a natural-language multiple-choice question.
31
+
32
+ The dataset contains 3,500 questions across seven gene-annotation aspects. Each question provides a DNA sequence and ten candidate answers. Six aspects use single-choice questions; subcellular localization uses multi-select questions because a gene product may occur in more than one location.
33
+
34
+ The benchmark is intended to measure sequence-grounded biological understanding, not recall from gene names or annotation databases. Rich provenance is included for audit and error analysis, but is kept separate from the model-input fields.
35
 
36
  This repository is private pending NVIDIA review. Do not make it public until the dataset content, licensing, and release terms have received final approval.
37
 
38
+ ## Dataset Owner
39
+
40
+ NVIDIA Corporation
41
+
42
+ ## Dataset Creation Date
43
+
44
+ July 30, 2026
45
+
46
+ ## Version
47
+
48
+ `bench-mc-v4.0` (initial Hugging Face export)
49
+
50
+ Hugging Face commit SHAs are the versioning mechanism for this export. Evaluations should record the exact repository revision they use. The SHA-256 of the initial `test.parquet` is `f10be6a66eafbaf6cdd4da112ef4dadfba898bba3a716c7ef727bdcc1ed951c5`.
51
+
52
+ ## License/Terms of Use
53
+
54
+ The dataset license is marked `other` / `pending-nvidia-review`; this is not a final NVIDIA license grant. NVIDIA legal review is required before public release or before stating whether the dataset is approved for commercial or non-commercial use.
55
+
56
+ The table below describes the upstream material present in this frozen export. Question counts refer to the source recorded for the gold answer in `annotation_provenance.sources`.
57
+
58
+ | Upstream resource | Material used | Question aspects | Terms |
59
+ |---|---|---|---|
60
+ | [NCBI RefSeq](https://www.ncbi.nlm.nih.gov/refseq/) | Genomic FASTA sequence and GFF3 or assembly metadata were used to extract the DNA window and record organism, assembly, sequence, gene, strand, and coordinate provenance. RefSeq is the DNA source for all 3,500 questions; it is not the source of the gold annotation labels in this release. | All aspects | NCBI states that it places no restrictions on the use or distribution of its molecular data, while noting that original submitters or jurisdictions may assert rights in some submitted material. See the [NCBI molecular-data policy](https://www.ncbi.nlm.nih.gov/home/about/policies/). |
61
+ | [Gene Ontology](https://geneontology.org/) and [UniProt-GOA](https://www.ebi.ac.uk/GOA/) | UniProt accession-to-GO-term associations, GO aspect codes, GO identifiers, and human-readable GO term names. Biological Process (`P`) terms form 500 `biological_process` answers; Molecular Function (`F`) terms form 500 `molecular_activity` answers; Cellular Component (`C`) terms form 349 `localization` answers. | `biological_process` (500), `molecular_activity` (500), `localization` (349) | GO data and data products are [CC BY 4.0](https://geneontology.org/docs/go-citation-policy/). UniProt applies [CC BY 4.0](https://www.uniprot.org/help/license) to copyrightable parts of its databases. |
62
+ | [UniProtKB/Swiss-Prot](https://www.uniprot.org/help/uniprotkb) and UniProt identifier mapping | Curated `FUNCTION`, `SIMILARITY`, and `SUBCELLULAR LOCATION` comment text supplies the corresponding answer labels. RefSeq-to-UniProt accession mapping also provides the identifier bridge used to join GO, InterPro/Pfam, and Reactome annotations to RefSeq proteins. | `function` (500), `family` (251), `localization` (151) | UniProt applies [CC BY 4.0](https://www.uniprot.org/help/license) to copyrightable parts of its databases and notes that some records may be subject to additional patent or other rights. |
63
+ | [InterPro](https://www.ebi.ac.uk/interpro/) and [Pfam](https://www.ebi.ac.uk/interpro/entry/pfam/) | InterPro entry identifiers and names plus member-database signature identifiers and names, including Pfam signatures. Combined InterPro/Pfam annotations form all 500 `domains` answers; Pfam classifications form 249 `family` answers. | `domains` (500), `family` (249) | InterPro and Pfam downloadable data provided through InterPro are available under [CC0 1.0](https://www.ebi.ac.uk/interpro/about/license/). No InterProScan software is included or used as dataset content. |
64
+ | [Reactome](https://reactome.org/) | The `UniProt2Reactome.txt` annotation mapping was used to associate UniProt accessions with Reactome stable pathway identifiers and pathway names. These names form all 500 `pathways` answers. No Reactome software, database dump, pathway illustration, icon, or other artwork is included. | `pathways` (500) | Reactome database data and files derived from those data are [CC0](https://reactome.org/license). The separate terms for Reactome software and visual materials do not apply to the material used here. |
65
+
66
+ The source-derived annotations are used to construct both gold choices and same-aspect distractor pools. Every released row records its gold-label source, while `distractor_provenance` identifies the source samples used to construct the distractors.
67
+
68
+ Users are responsible for confirming that their use complies with the final NVIDIA release terms and all applicable upstream terms.
69
+
70
+ ## Intended Usage
71
+
72
+ GeneAnnotationBench is intended for held-out evaluation of models that predict gene annotations from raw DNA. It can be used to:
73
+
74
+ - compare DNA-native, multimodal, and text-only models;
75
+ - measure performance across distinct annotation aspects;
76
+ - study how performance changes with sequence length, organism, or annotation source; and
77
+ - audit model errors using the included provenance after inference.
78
+
79
+ The benchmark should not be used as training data, as a source of clinical conclusions, or as a substitute for experimental validation or expert biological review. Because the release contains gold labels and detailed provenance, it is suitable for open-book local evaluation but not for keeping test answers secret from dataset consumers.
80
+
81
+ ## Dataset Characterization
82
+
83
+ ### Data Collection Method
84
+
85
+ **Hybrid: Automated, Manually Collected.** DNA windows were derived from reference assemblies, while gene annotations and supporting identifiers were assembled from curated biological resources. The release pipeline automatically normalized records, generated the multiple-choice representation, enforced public/private leakage boundaries, and selected matched evaluation examples.
86
+
87
+ The public benchmark was selected from a larger candidate pool. Candidates passed structural and provenance checks, automated biological review, and blinded manual adjudication.
88
+
89
+ ### Labeling Method
90
+
91
+ **Hybrid: Automated, Manually Labelled.** Gold answers originate from curated source annotations. Candidate questions, answer choices, and provenance were checked for structural consistency and biological support. Cases flagged as contradictory, defective, ambiguous, or insufficiently grounded were reviewed or removed according to the release audit process.
92
+
93
+ ## Dataset Format
94
+
95
+ The dataset is distributed as one Parquet file, `test.parquet`, containing a single `test` split. Each row is one DNA-conditioned multiple-choice question. The file has 14 top-level columns, including four nested provenance structures.
96
+
97
+ ### Columns
98
+
99
+ | Column | Type | Description |
100
+ |---|---|---|
101
+ | `id` | string | Frozen source sample ID |
102
+ | `aspect` | string | Gene-annotation aspect |
103
+ | `question_type` | string | `single_choice` or `multi_select` |
104
+ | `question` | string | Natural-language question |
105
+ | `dna_sequence` | string | Uppercase `ACGTN` DNA sequence; model input |
106
+ | `choices` | list of string | Ten ordered answer choices |
107
+ | `prompt_template` | string | Complete text template containing one DNA placeholder; model input |
108
+ | `answer_indices` | list of int8 | Zero-based correct-choice indices; gold label |
109
+ | `answer_letters` | list of string | Corresponding `A`–`J` labels; gold label |
110
+ | `answer_texts` | list of string | Corresponding choice texts; gold label |
111
+ | `dna_provenance` | struct | Organism, assembly, gene, coordinates, clipping, length, and checksum metadata |
112
+ | `annotation_provenance` | struct | Canonical annotation, entities, ontology or location labels, source task, quality, and sources |
113
+ | `distractor_provenance` | struct | Distractor-generation method and source identifiers or splits |
114
+ | `release_provenance` | struct | Stable source IDs, task IDs, source split, seed, and frozen row ordering |
115
+
116
+ Coordinates in `dna_provenance` are zero-based and half-open. Fields ending in `_chunk` are relative to a 1,000,000-bp source chunk; `gene_start`, `gene_end`, `dna_start`, and `dna_end` are the corresponding global coordinates. DNA is supplied in forward-reference orientation. The `strand` field is provenance and does not imply that consumers should reverse-complement the sequence.
117
+
118
+ ## Dataset Quantification
119
+
120
+ | Property | Value |
121
+ |---|---:|
122
+ | Questions | 3,500 |
123
+ | Annotation aspects | 7 |
124
+ | Questions per aspect | 500 |
125
+ | Single-choice questions | 3,000 |
126
+ | Multi-select localization questions | 500 |
127
+ | Multi-select questions with more than one correct option | 103 |
128
+ | Choices per question | 10 |
129
+ | Unique DNA sequences | 3,372 |
130
+ | Repeated sequence occurrences across aspects | 128 |
131
+ | Total DNA bases represented | 12,366,696 |
132
+ | DNA sequence length | 37–131,072 bp (median 2,069 bp) |
133
+ | Top-level columns | 14 |
134
+ | Parquet file size | 7.69 MB |
135
+
136
+ There are 500 questions for each aspect:
137
+
138
+ - `biological_process`
139
+ - `domains`
140
+ - `family`
141
+ - `function`
142
+ - `localization`
143
+ - `molecular_activity`
144
+ - `pathways`
145
+
146
+ Repeated DNA sequences occur when the same sequence supports questions about different annotation aspects; these are distinct questions, not duplicate rows. Eight DNA windows were clipped to the 131,072-bp maximum.
147
+
148
+ ## Example
149
+
150
+ The following input is taken from a biological-process question. The DNA is truncated here for readability, and seven of the ten choices are omitted. The corresponding dataset row contains the complete 1,359-bp sequence and all ten choices.
151
+
152
+ ```text
153
+ Question: Which cellular process is linked to this gene?
154
+
155
+ DNA (truncated):
156
+ TGTGGATCTCTATCAAAATGCTCATCGATCTCATAGGAACACAAGGTCTTGCGGTAATCTGATTGAAAATTTCAAGTTAA
157
+ ...
158
+ CTTGATTTTCCTTTGATGTTTTAGATCTCATAACCATTAT
159
+
160
+ A) It participates in cytoplasmic translational termination, translation,
161
+ and translational termination.
162
+ B) It participates in regulation of DNA-templated transcription,
163
+ DNA-templated transcription initiation, and regulation of
164
+ DNA-templated transcription initiation.
165
+ C) It participates in regulation of DNA-templated transcription and
166
+ regulation of flavonol biosynthetic process.
167
+ ...
168
+ ```
169
+
170
+ ## Evaluation
171
+
172
+ ### Load a Pinned Revision
173
 
174
  Install `datasets`, copy the immutable commit SHA from the Hub's **Files and versions** page, and pin it as `REVISION`:
175
 
 
185
  )
186
  ```
187
 
188
+ ### Model-Input Contract
189
 
190
+ Only `prompt_template` and `dna_sequence` are model inputs. Fields named `answer_*` and `*_provenance` are labels or provenance and **must never be appended to, rendered into, or otherwise exposed through the evaluation prompt**. Provenance supports traceability and post-inference analysis only; it may reveal the answer directly or indirectly.
191
 
192
+ Every template contains exactly one `<dna_placeholder>`. DNA-native models should retain that placeholder in the text prompt and pass the sequence through their DNA modality. Text-only baselines should replace the placeholder with the uppercase `ACGTN` sequence.
193
 
194
  ```python
195
  row = test[0]
196
  assert row["prompt_template"].count("<dna_placeholder>") == 1
197
 
198
+ # DNA-native model
199
  prompt = row["prompt_template"]
200
  dna = row["dna_sequence"]
201
  # prediction = model.generate(prompt=prompt, dna_sequence=dna)
202
 
203
+ # Text-only baseline
204
+ text_prompt = row["prompt_template"].replace(
205
+ "<dna_placeholder>", row["dna_sequence"]
206
+ )
207
  # prediction = model.generate(text_prompt)
208
 
209
  # Never add row["answer_indices"], other answer_* fields, or *_provenance fields.
 
211
 
212
  Models should return one option letter for `single_choice` questions and a comma-separated set of option letters for `multi_select` questions.
213
 
214
+ ### Scoring
215
 
216
  Report exact-match accuracy separately for each of the six single-choice aspects. For localization, parse the predicted option set and report option-set micro-F1 across all 500 questions.
217
 
 
229
  exact = defaultdict(list)
230
  tp = fp = fn = 0
231
  for row, text in zip(rows, prediction_texts, strict=True):
232
+ predicted = set(parse_prediction(text))
233
+ gold = set(row["answer_indices"])
234
  if row["aspect"] == "localization":
235
  tp += len(predicted & gold)
236
  fp += len(predicted - gold)
 
239
  exact[row["aspect"]].append(predicted == gold)
240
  return {
241
  "accuracy_by_aspect": {
242
+ aspect: sum(values) / len(values)
243
+ for aspect, values in sorted(exact.items())
244
  },
245
  "localization_micro_f1": 2 * tp / (2 * tp + fp + fn),
246
  }
247
  ```
248
 
249
+ Prediction parsing should be fixed before evaluation. Do not use gold fields or provenance to repair model outputs. Preserve the frozen row order and IDs when reporting per-example results.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
250
 
251
+ ## References
252
 
253
+ - [Gene Ontology](https://geneontology.org/)
254
+ - [UniProt](https://www.uniprot.org/)
255
+ - [InterPro](https://www.ebi.ac.uk/interpro/) and [Pfam](https://www.ebi.ac.uk/interpro/entry/pfam/)
256
+ - [Reactome](https://reactome.org/)
257
+ - [NCBI Datasets](https://www.ncbi.nlm.nih.gov/datasets/)
258
 
259
+ ## Ethical Considerations
260
 
261
+ NVIDIA believes Trustworthy AI is a shared responsibility and has established policies and practices to enable development for a wide array of AI applications. Developers should work with their internal teams to ensure that this dataset meets the requirements of the relevant industry and use case and addresses unforeseen misuse.
262
 
263
+ GeneAnnotationBench evaluates computational predictions from genomic sequence. Its annotations may be incomplete, uncertain, or context-dependent, and benchmark performance does not establish biological mechanism, clinical validity, or safety. Users should account for organism and source coverage, possible annotation bias, and the risk of overgeneralizing from a fixed multiple-choice benchmark.
 
 
 
 
264
 
265
+ Please report dataset quality concerns, security vulnerabilities, or NVIDIA AI concerns through the [NVIDIA security and AI concerns reporting page](https://www.nvidia.com/en-us/support/submit-security-vulnerability/).