henhaobio
Sign in

bioRxivBioinformaticsPreprint

Guided tokenization and domain knowledge enhance genomic language models' performance

Vedant MahangadeiD, Matthew MollerusiD, Keith A. CrandalliD, Ali RahnavardiD

PDFDOI

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.

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.

Similarity Map
SelectedSame fieldCross-field
THISBaghbanzade '26Lindsey '25Chen '23Cheng '24Eapen '25Boshar '24
73% semantic matchBioinformatics
Mahdi Baghbanzadeh, B Mann, Keith A. Crandall+1 more·Molecular Biology and Evolution·Jun 23, 2026· 3 citations