Update dataset card and add metadata for ViroBench
#2
by nielsr HF Staff - opened
README.md
CHANGED
|
@@ -1,18 +1,81 @@
|
|
| 1 |
---
|
| 2 |
license: cc-by-4.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
tags:
|
| 4 |
- biology
|
| 5 |
-
|
| 6 |
-
-
|
| 7 |
---
|
| 8 |
|
| 9 |
-
# ViroBench
|
| 10 |
|
| 11 |
ViroBench is a curated viral genomics dataset and benchmark suite designed to **stress-test nucleotide foundation models (NFMs)** under realistic distribution shifts and to support **responsible viral sequence modeling**.
|
| 12 |
|
| 13 |
-
- **
|
| 14 |
-
- **
|
| 15 |
-
- **Project
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: cc-by-4.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-classification
|
| 5 |
+
- text-generation
|
| 6 |
+
size_categories:
|
| 7 |
+
- 10K<n<100K
|
| 8 |
tags:
|
| 9 |
- biology
|
| 10 |
+
- genomics
|
| 11 |
+
- virology
|
| 12 |
---
|
| 13 |
|
| 14 |
+
# ViroBench: Viral Understanding & Safety Benchmark for Nucleotide Foundation Models
|
| 15 |
|
| 16 |
ViroBench is a curated viral genomics dataset and benchmark suite designed to **stress-test nucleotide foundation models (NFMs)** under realistic distribution shifts and to support **responsible viral sequence modeling**.
|
| 17 |
|
| 18 |
+
- **Paper:** [ViroBench: Benchmarking Nucleotide Foundation Models on Viral Genomics Tasks](https://huggingface.co/papers/2605.25388)
|
| 19 |
+
- **Repository:** [https://github.com/QIANJINYDX/ViroBench](https://github.com/QIANJINYDX/ViroBench)
|
| 20 |
+
- **Project Page / Leaderboard:** [https://sii-agi4s.github.io/ViroBench/](https://sii-agi4s.github.io/ViroBench/)
|
| 21 |
+
|
| 22 |
+
## Dataset Summary
|
| 23 |
+
|
| 24 |
+
ViroBench is a dual-axis diagnostic benchmark for viral sequence modeling, evaluating both:
|
| 25 |
+
- **Understanding Axis**: Taxonomy classification & host prediction (12 classification tasks).
|
| 26 |
+
- **Biosecurity Axis**: Genome modeling & CDS completion (6 generation tasks).
|
| 27 |
+
|
| 28 |
+
The full dataset contains **58,314** viral samples curated from NCBI (GenBank + RefSeq), spanning DNA, RNA, and unknown nucleic-acid types.
|
| 29 |
+
|
| 30 |
+
### ViroBench-CLS-Lite
|
| 31 |
+
A curated lightweight subset of **8,000** sequences designed for rapid prototyping, hyperparameter screening, and efficient evaluation of models on taxonomy and host classification tasks.
|
| 32 |
+
|
| 33 |
+
## Benchmark Tasks
|
| 34 |
+
|
| 35 |
+
### 1. Understanding Axis (Classification)
|
| 36 |
+
- **Taxonomy Classification**: Prediction at Kingdom, Phylum, Class, Order, and Family levels.
|
| 37 |
+
- **Host Prediction**: Predicting the virus host across different nucleic-acid types.
|
| 38 |
+
- **Split Strategies**: Uses **Genus-disjoint** splits (to reduce phylogenetic leakage) and **Temporal** splits (to capture distribution drift).
|
| 39 |
+
|
| 40 |
+
### 2. Biosecurity Axis (Generation)
|
| 41 |
+
- **Genome Modeling**: Evaluation using bits-per-base (BPB) across length-bucketed tasks (short, medium, long).
|
| 42 |
+
- **CDS Completion**: Evaluating coding sequence (CDS) continuation under functional constraints such as coding validity and frame consistency.
|
| 43 |
+
|
| 44 |
+
## Sample Usage
|
| 45 |
+
|
| 46 |
+
To run the benchmark using the official scripts, follow these examples from the repository:
|
| 47 |
+
|
| 48 |
+
### Classification Benchmark
|
| 49 |
+
```bash
|
| 50 |
+
# Example: genus-disjoint taxonomy (all NA types)
|
| 51 |
+
python script/run_all.py \
|
| 52 |
+
--model_name evo2_1b_base \
|
| 53 |
+
--dataset_name ALL-taxon-genus
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
### Generation Diagnostics (Genome Modeling)
|
| 57 |
+
```bash
|
| 58 |
+
python script/run_all_ppl.py \
|
| 59 |
+
--model_name evo2_1b_base \
|
| 60 |
+
--dataset_name genome-long
|
| 61 |
+
```
|
| 62 |
+
|
| 63 |
+
### CDS Completion
|
| 64 |
+
```bash
|
| 65 |
+
python script/run_all_gen.py \
|
| 66 |
+
--model_name evo2_1b_base \
|
| 67 |
+
--dataset_name cds-medium
|
| 68 |
+
```
|
| 69 |
+
|
| 70 |
+
## Citation
|
| 71 |
+
|
| 72 |
+
If you find this benchmark useful, please cite the following:
|
| 73 |
|
| 74 |
+
```bibtex
|
| 75 |
+
@misc{virobench2025,
|
| 76 |
+
title={ViroBench: Benchmarking Nucleotide Foundation Models on Viral Genomics Tasks},
|
| 77 |
+
author={Qianjin Y. et al.},
|
| 78 |
+
year={2025},
|
| 79 |
+
url={https://huggingface.co/papers/2605.25388}
|
| 80 |
+
}
|
| 81 |
+
```
|