DNACHUNKER: Learnable Tokenization for DNA Language Models
Taewon Kim, Jihwan Shin, Hyomin Kim, Youngmok Jung, Jonhoon Lee, Won-Chul Lee, Insu Han, Sungsoo Ahn
TL;DR
This work tackles the tokenization bottleneck in DNA language modeling by introducing DNACHUNKER, a bidirectional masked DNA language model that learns dynamic, variable-length chunks through a two-stage hierarchical encoder and cross-attention-based dechunking. The approach yields state-of-the-art performance on two public benchmarks (Nucleotide Transformer and Genomic) with only 156M parameters, substantially fewer than prior baselines, while demonstrating robustness to mutations and interpretable tokenization that preserves functional regions at high resolution. Ablation studies show that the cross-attention dechunking and special-token handling are key architectural factors driving improvements, and the learned tokenizer biologically reallocates granularity to promoters, exons, and other functional elements while compressing repetitive regions. Overall, the method advances genomic language modeling by integrating learnable tokenization with scalable, bidirectional context, enabling more efficient and biologically faithful modeling of long-range DNA dependencies.
Abstract
DNA language models have emerged as powerful tools for decoding the complex language of DNA sequences. However, the performance of these models is heavily affected by their tokenization strategy, i.e., a method used to parse DNA sequences into a shorter sequence of chunks. In this work, we propose DNACHUNKER, which integrates a learnable dynamic DNA tokenization mechanism and is trained as a masked language model. Adopting the dynamic chunking procedure proposed by H-Net, our model learns to segment sequences into variable-length chunks. This dynamic chunking offers two key advantages: it's resilient to shifts and mutations in the DNA, and it allocates more detail to important functional areas. We demonstrate the performance of DNACHUNKER by training it on the human reference genome (HG38) and testing it on the Nucleotide Transformer and Genomic benchmarks. Further ablative experiments reveal that DNACHUNKER learns tokenization that grasps biological grammar and uses smaller chunks to preserve detail in important functional elements such as promoters and exons, while using larger chunks for repetitive, redundant regions.
