Single Nucleotide Tokenization for Genomic Language Models

26 concepts16 papers1 proposal

When adapting Large Language Models (LLMs) to biological sequences, researchers initially imported text-processing strategies directly from natural language processing. Standard NLP models rely on sub-word tokenization algorithms like Byte Pair Encoding (BPE) to compress text into manageable sequence lengths. In genomics, early architectures mirrored this by grouping sequences into non-overlapping or overlapping $k$-mers (multi-nucleotide words).

However, as noted by Haonan He et al. and Zhihan Zhou et al., tokenizers optimized for human language fail to capture the unique grammar of DNA and RNA, leading to severe information loss. To resolve this, a major paradigm shift has emerged: single-nucleotide tokenization (or character/byte-level encoding), where every individual base pair (A, C, G, T/U) is treated as a discrete token.

The Resolution Gap of Multi-Base Tokenization

To understand why single-nucleotide tokenization is necessary, we must look at how multi-base groupings corrupt genetic context. Consider a simple genomic sequence tokenized into 3-mers:

Raw Sequence:      A   T   C   G   A   T
3-mer Tokens:     [A   T   C] [G   A   T]

If a single point mutation or Single Nucleotide Polymorphism (SNP) occurs—changing the first T to a C—the sequence becomes ACCGAT. Under a $k$-mer tokenizer, the representation shifts completely:

Mutated Sequence:  A   C   C   G   A   T
New 3-mer Tokens: [A   C   C] [G   A   T]

Because the first token has completely changed its identity within the model's vocabulary space, the model perceives an entirely new context. As Aditya Malusare et al. observe, this creates a brittle representation where minor sequencing noise or point mutations destroy the surrounding semantic envelope.

By contrast, single-nucleotide tokenization processes the same mutation with graceful degradation:

Original: [A] [T] [C] [G] [A] [T]
Mutated:  [A] [C] [C] [G] [A] [T]

Only one token changes; the remaining five tokens remain identical, allowing the model to preserve the broader context and precisely isolate the mutation's impact. This high-resolution approach is mirrored even in single-cell transcriptomics; for instance, Oussama Kharouiche et al. demonstrate that extracting individual embeddings for thousands of specific genes—rather than aggregating them into a single global vector—is essential for preserving granular biological signals.

Why Single-Base Resolution Preserves Function

Operating at the single-nucleotide level provides three primary advantages for biological tasks:

1. Tracking Point Mutations and Epigenetics

Identifying the exact position of a mutation is critical for disease risk prediction and sequence repair. Heng Yang 0008 et al. and Qihao Duan et al. demonstrate that coarser tokenization methods provide a coarse-grained view that masks individual base interactions, rendering models blind to the subtle variations that drive genetic diseases. Furthermore, Yue Pei et al. emphasize that modeling at the raw nucleotide level captures synonymous mutations and non-coding regulatory variations that disappear entirely when sequences are abstracted into amino acids or larger sub-words.

2. Preventing Motif Fragmentation

Biological motifs (such as promoters or splice sites) are short, functional sequences whose spatial arrangements dictate cellular behavior. Haopeng Yu et al. point out that $k$-mer tokenization frequently fragments these motifs across token boundaries depending on the arbitrary alignment of the reading window. Single-nucleotide tokenization treats each base as an independent coordinate, ensuring that short motifs remain structurally intact. Even when compared to flexible, adaptive tokenization boundaries, Daria Ledneva et al. show that fixed single-nucleotide grids remain superior for identifying extremely compact features, such as two-nucleotide splice sites.

3. Aligning Sequence to Physical Structure

Macromolecules like RNA rely on precise base-pairing to fold into functional secondary and tertiary structures. Heng Yang et al. show that processing sequences at single-nucleotide resolution allows foundation models to map individual bases directly to their structural partners, avoiding the alignment errors inherent in multi-base tokenization schemes.

Overcoming the Context Window Bottleneck

If single-nucleotide tokenization is biologically superior, why did early models avoid it? The bottleneck is computational. Treating every base pair as a token dramatically expands sequence lengths: a genomic region that spans 10,000 bases requires 10,000 tokens. Under standard Transformer architectures, the self-attention mechanism scales quadratically ($O(N^2)$), making long-context, single-nucleotide modeling prohibitively expensive.

To unlock this resolution, recent work focuses on architectural innovations designed to handle massive token counts:

  • Sub-Quadratic Architectures: Eric Nguyen et al. developed HyenaDNA, replacing attention with sub-quadratic implicit long convolutions to process up to 1 million tokens at single-nucleotide resolution. Similarly, Qihao Duan et al. utilize a hybrid Mamba-Attention-MoE framework to achieve bidirectional single-nucleotide modeling with high efficiency.
  • Efficient Positional Encodings: Yuchen Ren et al. demonstrate that combining single-nucleotide tokenization with relative positional encodings like ALiBi allows compact models to match or outperform massive foundation models on site-specific tasks like RNA splice site detection.
  • Empirical Scaling: A comprehensive evaluation by Geraldene Munsamy et al. confirms that byte-level, single-nucleotide tokenization scales predictably and robustly across trillions of tokens in metagenomic foundation models, proving its viability at scale.

Remaining Challenges

Despite its precision, single-nucleotide tokenization introduces a semantic challenge. As Kai Zhuang argues, representing sequences purely as individual characters can create a "granularity mismatch," making it difficult for models to extract high-level functional motifs directly without explicit context. Additionally, Chaoqi Liang et al. note that while overlapping tokenizers can introduce problematic "shortcuts" during pretraining, they still offer downstream resolution benefits if those shortcuts are neutralized via advanced masking protocols. The field continues to navigate this tension, balancing the absolute resolution of the individual base pair against the computational and semantic advantages of abstraction.

Key Foundational Work

MP-RNA: Unleashing Multi-species RNA Foundation Model via Calibrated Secondary Structure Prediction (2024) — contributed 3 concept elements to this direction.
BEACON: Benchmark for Comprehensive RNA Tasks and Language Models (2024) — contributed 3 concept elements to this direction.
Understanding the Natural Language of DNA using Encoder-Decoder Foundation Models with Byte-level Precision (2023) — contributed 3 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_single_nucleotide_tokenization_2aa4b91f,
  title = {single-nucleotide tokenization},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/single-nucleotide-tokenization/rdr_2aa4b91fc40941d3bdfdbad6a5eb094f},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-23},
}

This exact version (version 1, frozen text):

@misc{lacuna_single_nucleotide_tokenization_2aa4b91f_v1,
  title = {single-nucleotide tokenization},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/single-nucleotide-tokenization/rdr_2aa4b91fc40941d3bdfdbad6a5eb094f/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-23},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake