EvoLen: Evolution-Guided Tokenization for DNA Language Model

Nan Huang, Xiaoxiao Zhou, Junxia Cui, Mario Tapia-Pacheco, Tiffany Amariuta, Yang E. Li, Jingbo Shang

TL;DR

EvoLen is a novel DNA tokenization strategy that moves beyond simple frequency-based methods like BPE by incorporating evolutionary signals. By partitioning the genome based on conservation scores and using length-aware decoding, it preserves functional biological units (motifs) as single tokens, leading to more interpretable representations and superior performance on downstream genomic tasks.

What Problem Does This Paper Address?

In Natural Language Processing (NLP), we have words and punctuation to guide how we break text into "tokens." DNA has no such luck. It is a continuous string of nucleotides (A, C, G, T) without inherent boundaries.

Currently, most DNA Language Models (DNALMs) borrow tokenization tricks from NLP, such as Byte-Pair Encoding (BPE). BPE identifies the most frequent substrings and merges them into tokens. However, the authors argue that in biology, frequency $\neq$ function. A sequence might be frequent just by chance, while a rare but highly conserved regulatory motif—the "words" of the genome—might be fragmented into meaningless pieces by standard BPE. This fragmentation makes it harder for models to learn the underlying regulatory logic of life.

Methods

The authors introduce EvoLen, a three-stage pipeline designed to inject biological inductive bias into the tokenization process:

  1. Evolutionary Stratification: The human genome is partitioned into three pools—Conserved (rarely changes across species), Neutral (evolves at a background rate), and Accelerated (evolves rapidly)—using phyloP scores.
  2. Priority-Based Merging: Separate BPE tokenizers are trained on each pool. The resulting vocabularies are merged using a specific priority rule: tokens shared across all regions or specific to conserved regions are prioritized. This ensures the vocabulary is "anchored" in evolutionarily stable, functional sequences.
  3. Length-Aware Decoding: During actual tokenization (inference), EvoLen doesn't just look for the most frequent tokens. It uses a scoring rule proportional to the square of a token's length ($|t|^2$) and employs dynamic programming to find the optimal, non-overlapping segmentation. This explicitly encourages the model to keep long, coherent functional units (like transcription factor motifs) intact.

Datasets

The model was pretrained on the hg38 human reference genome. To evaluate its performance, the authors tested EvoLen across a massive battery of benchmarks:

  • GUE (Genome Understanding Evaluation): A suite covering various epigenetic and regulatory tasks.
  • GBM (Genomic Benchmarks): Focused on sequence classification across different species.
  • NT (Nucleotide Transformer): A benchmark for histone marks and promoter/enhancer prediction.
  • Specialized Tasks: The authors added Multi-SCREEN (cis-regulatory element classification) and snATAC-seq (cross-species brain cell-type prediction) to test generalization.
  • Biological Ground Truth: They used the JASPAR 2024 vertebrate library to measure how well the tokenizer preserves known transcription factor (TF) motifs.

Key Insights and Ideas

  • Tokenization is a Modeling Choice: The paper reframes tokenization from a "neutral preprocessing step" to a critical "inductive bias." How you cut the DNA determines what patterns the model can easily "see."
  • Evolution as a Proxy for Function: Since we don't have a complete dictionary of every functional DNA sequence, evolutionary conservation serves as a powerful, task-agnostic signal for identifying what matters.
  • The "Aha" Moment on Length: Standard BPE often prefers shorter, high-frequency fragments. By rewarding length ($|t|^2$), EvoLen aligns the model's "view" with the physical scale of biological motifs (typically 6–12 base pairs).
  • Context Matters: EvoLen produces distinct token-length signatures for different genomic regions (promoters vs. enhancers), suggesting it captures the unique "grammar" of different functional contexts.

Key Results

  • Motif Preservation: At a vocabulary size of 5,120, EvoLen preserved TF motifs as single, intact tokens 27.4% more frequently than standard BPE.
  • Downstream Superiority: EvoLen outperformed the baseline on 11 of 15 task groups.
  • Cross-Species Generalization: The benefits were most pronounced in tasks requiring the model to generalize across species, such as mouse enhancer prediction (+9.83% MCC) and human-to-mouse brain cell-type prediction (+9.47% MCC).
  • Efficiency: Even with a smaller pretraining budget (100k steps), EvoLen-based models often ranked in the top two compared to other established strategies (like DNABERT2 or Nucleotide Transformer) trained for twice as long.

Limitations and Future Work

  • Evolutionary Scope: The current version relies on mammalian conservation signals. Its performance drops slightly on invertebrate or yeast tasks, which fall outside that evolutionary window.
  • Splice Site Sensitivity: EvoLen showed a slight deficit in predicting splice sites. The authors suggest this is because splice sites rely on very precise, short-boundary recognition where variable-length grouping might actually be a hindrance.
  • Future Directions: The authors propose extending EvoLen by incorporating other biological priors, such as GC content or chromatin accessibility, and testing its utility in generative tasks like de novo sequence design.

Check out the code and models: GitHub | HuggingFace

Summary updated

BibTeX
@inproceedings{huang2026evolen,
  author = {Nan Huang and Xiaoxiao Zhou and Junxia Cui and Mario Tapia-Pacheco and Tiffany Amariuta and Yang E. Li and Jingbo Shang},
  title = {{EvoLen: Evolution-Guided Tokenization for DNA Language Model}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=DpIyTAT3fM},
}
Figure