NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

HGDNA: Overlapping k-mer Tokenization for Efficient Autoregressive Genomic Language Models

Xudong Wang, Siwei Cheng, Haozhe HuarXiv 2026

Imagine you’re trying to read a book where every "word" is actually a six-letter snippet that overlaps with the next one by five letters. If the first word is GCTGAG, the next one must start with CTGAG. This is the world of overlapping k-mer tokenization in genomics, and while it sounds redundant, it’s a goldmine for capturing the subtle local patterns of DNA.

In their new paper, HGDNA, researchers from USTC and EIT Ningbo show that we’ve been using these overlapping tokens all wrong—and that by fixing the training objective, we can build genomic models that are smaller, faster, and smarter than the giants currently dominating the field.

TL;DR

HGDNA breathes new life into overlapping k-mer tokenization by pairing it with Causal Language Modeling (CLM) and a high-efficiency hybrid backbone. Despite having only 30 million parameters, it punches way above its weight class, outperforming models ten times its size on genomic benchmarks while being significantly more efficient at handling long-range DNA sequences.

What Problem Does This Paper Address?

Genomic Language Models (gLMs) face a "Goldilocks" problem with tokenization.

  1. Single nucleotides (A, C, G, T): Great resolution, but sequences become astronomically long for the model to process.
  2. Non-overlapping k-mers: Shorter sequences, but you lose the "fine-grained" view of what's happening at the boundaries.
  3. Overlapping k-mers: These capture rich local context, but they break standard training.

Specifically, most genomic models use Masked Language Modeling (MLM)—the "fill-in-the-blank" approach. But if tokens overlap, the "blanks" are easily spoiled by their neighbors. If I mask a 6-mer, but the 6-mer to its left and right are visible, I can often just deduce the answer without learning any biology. This is called information leakage.

Figure 1: The struggle of overlapping k-mers in MLM vs. the elegance of CLM.

Methods

The authors introduce HGDNA, which pivots to Causal Language Modeling (CLM)—predicting the next token in a sequence.

1. The Overlap Advantage

In a CLM setup, the model looks at CGCTGA and tries to predict the next 6-mer. Because of the overlap, the model already knows the next token must start with GCTGA. This reduces the search space from 4,096 possible 6-mers down to just four candidates (the four possible DNA bases that could be appended). This makes the learning process incredibly focused and efficient.

2. The Hybrid Backbone

To handle the massive length of genomic data (up to 96,000 base pairs in this study), HGDNA uses a hybrid architecture:

  • Gated DeltaNet: A linear-attention mechanism that acts like a recurrent memory, allowing the model to remember things from far back in the sequence without the quadratic slowdown of a standard Transformer.
  • Sliding Window Attention (SWA): This handles the "local" neighborhood, ensuring the model is hyper-aware of the immediate genetic context.

3. Species-Aware Pretraining

The model doesn't just read DNA; it knows who the DNA belongs to. By adding an auxiliary task to classify the species of the DNA fragment, the model learns sequence-level features that are incredibly useful for downstream tasks like identifying promoters or epigenetic marks.

Figure 2: The HGDNA architecture, featuring the hybrid backbone and the species-aware pretraining pipeline.

Datasets

  • Pretraining: A massive corpus of 13.69 billion base pairs of gene-annotated fragments from the NCBI RefSeq database, covering 887 species.
  • Evaluation:
    • GUE (Genomic Understanding Evaluation): 28 datasets covering tasks like transcription factor binding and promoter detection.
  • Gener: A benchmark for long-context tasks (up to 100kb).
  • DNA Foundation Bench: Used to test how well the model's "frozen" embeddings work without extra fine-tuning.

Key Insights and Ideas

  • The "Aha!" Moment on Leakage: The authors realized that the very thing that makes overlapping tokens bad for "fill-in-the-blank" (MLM) makes them perfect for "predict-the-next" (CLM). It turns a massive vocabulary problem into a simple 4-way choice.
  • Gene-Centricity Matters: Training specifically on gene-annotated regions (rather than the whole genome) significantly improved the model's performance on biological tasks. It's like learning to read by focusing on the meaningful sentences rather than the random gibberish in the margins.
  • Efficiency is King: By using linear attention, HGDNA scales linearly with sequence length. This allows it to process 96kb sequences in one go, whereas older models had to "chunk" the data into smaller pieces, losing global context.

Key Results

  • Small but Mighty: With only 30M parameters, HGDNA achieved an average score of 71.77 on the GUE benchmark, beating the 498M parameter NTv2-500M model (68.69).
  • Data Efficient: It achieved these results using only 1.9% to 7.3% of the pretraining tokens used by the larger BERT-like baselines.
  • Long-Context Champ: On the Gener taxonomic classification task, it reached 98.30 MCC, outperforming models that required input chunking.
Figure 3: Ablation studies showing how overlapping k-mers and the hybrid backbone contribute to the model's success.

Limitations and Future Work

  • Task Variability: While HGDNA is a generalist, some specialized models (like DNABERT-2) still hold a slight lead on specific tasks like Transcription Factor Human (TFH) prediction.
  • The "Stage 1" Transition: Early in training, the model spends time just learning the "rules" of the overlap. The authors suggest there might be ways to skip or accelerate this "overlap learning" phase.
  • Scaling: The current model is compact (30M). Exploring how this architecture behaves at the billion-parameter scale is a natural next step.

HGDNA proves that in the race for better genomic models, bigger isn't always better—sometimes, you just need a better way to read the map.

Summary updated

BibTeX
@misc{wang2026hgdna,
  author = {Xudong Wang and Siwei Cheng and Haozhe Hu},
  title = {{HGDNA: Overlapping k-mer Tokenization for Efficient Autoregressive Genomic Language Models}},
  year = {2026},
  eprint = {2611.29400},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.29400},
}

Loading related content...

Figure