bioRxivBioinformaticsPreprint
Guided tokenization and domain knowledge enhance genomic language models' performance
Vedant MahangadeiD, Matthew MollerusiD, Keith A. CrandalliD, Ali RahnavardiD
Abstract
Adapting language models to genomic and metagenomic sequences presents unique challenges, particularly in tokenization and task-specific generalization. Standard methods, such as fixed-length k-mers or byte pair encoding, often fail to preserve biologically meaningful patterns essential for downstream tasks. We introduce Guided Tokenization (GT), a strategy that prioritizes biologically and statistically important subsequences based on importance scores, model attention, and class distributions. Combined with domain adaptation, which incorporates prior domain specific biological knowledge, this approach improves both representation quality and classification accuracy in compact genomic language models (gLMs). GT enhances biological awareness in genomic language models, particularly for effective small and mid-sized models across key tasks, including DNA sequence read classification, promoter detection, antimicrobial resistance classification, and targeted amplicon taxonomic profiling. Our results highlight the promise of guided tokenization and domain-aware modeling for building efficient, biologically grounded language models for scalable genomic applications.
- assay: DNA methylation
- assay: whole-genome sequencing
- research focus: gene regulatory network inference
- research focus: differential expression
- research focus: variant calling
- research focus: variant effect prediction
- approach: deep learning
- approach: statistical model
- Citations
- 1
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- seqLens: optimizing language models for genomic predictions
Mahdi Baghbanzadeh, B Mann, … Ali Rahnavard·Molecular Biology and EvolutionPeer-reviewed·Jun 23, 2026
- The Impact of Tokenizer Selection in Genomic Language Models
LeAnn M. Lindsey, Nicole L. Pershing, … Hari Sundar·BioinformaticsPeer-reviewed·Aug 14, 2025
- genomicBERT: A Light-weight Foundation Model for Genome Analysis using Unigram Tokenization and Specialized DNA Vocabulary
Tyrone Chen, Naima Vahab, … Sonika Tyagi·bioRxiv·May 31, 2023
- L2G: Repurposing Language Models for Genomics Tasks
Wenduo Cheng, Jun-Hong Shen, … Ameet Talwalkar·bioRxiv·Dec 9, 2024
- Genomic Tokenizer: Toward a biology-driven tokenization in transformer models for DNA sequences
Bell Raj Eapen·bioRxiv·Apr 2, 2025
- Are Genomic Language Models All You Need? Exploring Genomic Language Models on Protein Downstream Tasks
Sam Boshar, Evan Trop, … Thomas Pierrot·BioinformaticsPeer-reviewed·Aug 30, 2024