BQDNA: Multi-Head Binary Spherical Quantization for Genomic Sequence Modeling
Organizations: Institute of Digital Twin, Eastern Institute of Technology, Ningbo · University of Science and Technology of China · Shanghai Jiao Tong University
Abstract
Decoding biological information from long, repetitive DNA remains challenging. Genomic language models (gLMs) often follow the conventional language-model pretrain-and-adapt paradigm. However, the lack of inherent semantic segmentation and prior rules makes hand-crafted tokenizers like k-mer and BPE suboptimal. We introduce context-aware BQVAE for scalar quantization of DNA and BQDNA, an autoregressive gLM supporting multi-head codebooks. Comprehensive experiments reveal that: (1) unique training dynamics of vector quantization in DNA space, including the importance of alignment between training corpus and downstream data. (2) superior performance of BQVAE over hand-crafted tokenizers and vanilla VQVAE. (3) remarkable cross-species generalization capability of BQDNA, which achieves state-of-the-art performance with merely 0.1B multi-species training for BQVAE and 1 epoch training on hg38 for BQDNA, outperforming gLMs pretrained with 10100x more tokens. Our findings underscore the potential of learned vector quantization for genomic sequence representation. Code is available at https://github.com/Sophie10001b/BQDNA
Figures & tables
| Models | Train Tokens | GUE Benchmark | NT Benchmark | ||||||||||
| EMP | TFM | TFH | PD | CPD | SSP | Avg. | EMP | ED | PD | SSP | Avg. | ||
| DNABERT (6-mer) ∗ | 122B | 49.10 | 56.43 | 64.17 | 81.70 | 71.81 | 84.07 | 60.69 | – | – | – | – | – |
| DNABERT-2 | 262B | 56.04 | 73.68 | 63.38 | 81.77 | 67.02 | 88.01 | 65.93 | 56.79 | 51.66 | 79.21 | 86.29 | 64.87 |
| NT-500M-1000G ∗ | 50B | 47.68 | 49.31 | 58.92 | 86.58 | 69.13 | 80.97 | 58.00 | – | – | – | – | – |
| NTv2-100M | 300B | 51.79 | 65.68 | 61.23 | 88.87 | 73.19 | 87.84 | 63.95 | 55.12 | 55.35 | 81.32 | 96.75 | 66.45 |
| NTv2-500M | 300B | 57.63 | 71.59 | 67.36 | 91.39 | 74.74 | 90.49 | 68.89 | 56.74 | 56.53 | 84.01 | 97.06 | 67.98 |
| Models | EMP | PDH | PDM | Avg. |
|---|---|---|---|---|
| DNABERT-2 | 26.09 | 83.95 | 51.44 | 59.38 |
| NTv2-100M | 35.50 | 83.61 | 55.45 | 62.72 |
| NTv2-500M | 37.17 | 84.67 | 56.77 | 64.01 |
| GENA-LM | 40.57 | – | 59.14 | – |
| HyenaDNA | 30.36 | 84.05 | 57.78 | 62.80 |
| Caduceus-Ps | 39.31 | 86.28 | 60.77 | 66.68 |