HGDNA: Overlapping k-mer Tokenization for Efficient Autoregressive Genomic Language Models
Organizations: Institute of Digital Twin, Eastern Institute of Technology, Ningbo · University of Science and Technology of China · Shanghai Jiao Tong University
Abstract
The domain of genomic language models (gLMs) has advanced rapidly, with models pretrained on diverse multi-species genomic corpora demonstrating their remarkable capabilities. While the effect of simple nucleotide-level tokenization on long-context modeling is well established, overlapping k-mer tokenization remains underexplored in causal pretraining, despite its rich neighborhood information. Here, we thoroughly revisit overlapping tokenization and introduce HGDNA, a hybrid linear-attention gLM with causal language modeling (CLM) pretraining and a shared token-prediction interface for downstream adaptation, using a species-classification auxiliary task and shared class tokens. HGDNA delivers competitive performance across sequence classification and frozen-embedding evaluations, supporting both short-range and long-range tasks with 30M parameters and 19B pretraining tokens. Code is available at https://github.com/Sophie10001b/HGDNA
Figures & tables
| Models | Model Statistics | GUE Benchmark | Gener | DNA Foundation Benchmark | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Params. | Corpus | Tokens | EMP | TFM | CVC | TFH | PD | CPD | SSP | Avg. | gene | taxonomic | PDH | PDM | EMP | |
| NTv2-100M | 98M | 135B | 300B | 54.03 | 65.63 | 61.93 | 64.16 | 85.26 | 71.59 | 86.00 | 64.56 | 62.59 (0.45) | 98.02 (0.11) ∗ | 83.61 (0.00) | 55.45 (0.00) | 10.30 (0.00) |
| NTv2-500M | 498M | 135B | 1,000B | 57.63 | 71.59 | 63.47 | 67.36 | 91.39 | 74.74 | 90.49 | 68.69 | 64.18 (0.22) | – | 84.67 (0.00) | 56.77 (0.00) | 11.62 (0.00) |
| DNABERT-2 | 117M | 32.5B | 262B | 56.02 | 71.00 | 71.02 | 68.95 | 79.56 | 69.61 | 86.15 | 66.59 | 60.42 (0.39) | 97.44 (0.05) ∗ | 83.95 (0.00) | 51.44 (0.00) | 8.73 (0.00) |
| HyenaDNA | 6M | 3.2B | 5B | 48.32 | 65.47 | 46.48 | 60.09 | 77.31 | 69.60 | 83.20 | 60.05 | 56.51 (0.39) | 95.29 (0.17) | 84.05 (0.00) | 57.78 (0.00) | 3.58 (0.00) |
| Caduceus-Ps | 8M | 3.2B | 52B | 53.99 | 69.74 | 68.64 | 67.22 | 75.65 | 67.05 | 83.51 | 64.46 | 56.39 (0.43) | 96.61 (0.16) | 86.28 (0.00) | 60.77 (0.00) | 3.58 (0.00) |
| EMP | TFM | CVC | TFH | PD | CPD | SSP | Avg. | |
|---|---|---|---|---|---|---|---|---|
| 3 | 58.07 | 75.23 | 69.62 | 66.18 | 80.67 | 73.13 | 89.98 | 68.17 |
| 4 | 58.92 | 72.16 | 71.89 | 67.22 | 82.33 | 72.48 | 88.01 | 68.23 |
| 5 | 65.88 | 74.27 | 71.80 | 66.97 | 77.02 | 70.89 | 90.74 | 70.40 |
| 6 | 67.83 | 70.20 | 72.71 | 66.14 | 83.20 | 69.89 | 88.95 | 70.75 |
| 7 | 69.98 | 70.95 | 73.28 | 66.56 | 76.47 | 67.12 | 85.34 | 70.66 |