Molecular Biology and EvolutionBioinformaticsPeer-reviewed journal article
seqLens: optimizing language models for genomic predictions
Mahdi BaghbanzadehiD, B ManniD, Keith A. CrandalliD, Ali RahnavardiD
Abstract
Understanding evolutionary variation in genomic sequences through the lens of language modeling has the potential to revolutionize biological research. Yet to maximize the utility of language modeling in genomics, we must overcome computational challenges in tokenization and model architecture adapted to diverse genomic features across evolutionary timescales. In this study, we investigated key elements in genomic language modeling (gLM), including tokenization, pretraining datasets, fine-tuning approaches, pooling methods, and domain adaptation, and applied the language models to diverse genomic data. We gathered two evolutionarily distinct pretraining datasets: one consisting of 19,551 reference genomes, including over 18,000 prokaryotic genomes (115B nucleotides) and the remainder eukaryotic genomes, and another more balanced dataset with 1,354 genomes, including 1,166 prokaryotic and 188 eukaryotic reference genomes (180B nucleotides). We trained five byte-pair encoding tokenizers and pretrained 52 gLMs, systematically comparing different architectures, hyperparameters, and classification heads. We introduce seqLens, a family of models based on disentangled attention with relative positional encoding, which outperforms relatively similar-sized models in 13 of 19 benchmarking phenotypic predictions. We further explore continual pretraining, domain adaptation, and parameter-efficient fine-tuning methods to assess trade-offs between computational efficiency and accuracy. Our findings demonstrate that relevant pretraining data significantly boost performance, alternative pooling techniques can enhance classification, tokenizers with larger vocabulary sizes negatively impact generalization, and gLMs are capable of understanding evolutionary relationships. These insights provide a foundation for optimizing genomic language models for identifying diverse evolutionary genomic features and improving genome annotations.
- organism: bacteria (other)
- organism: yeast
- organism: E. coli
- assay: whole-genome sequencing
- research focus: benchmarking
- approach: deep learning
- approach: transformer / foundation model
- Citations
- 3
- FWCI
- 6.16
- Field percentile
- top 3%
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
- Predicting evolutionary rate as a pretraining task improves genome language model representations
Micaela Elisa Consens, Kevin K. Yang, … Alex Xijie Lu·bioRxiv·Feb 4, 2026
- Guided tokenization and domain knowledge enhance genomic language models' performance
Vedant Mahangade, Matthew Mollerus, … Ali Rahnavard·bioRxiv·Feb 18, 2026
- Limitations and Enhancements in Genomic Language Models: Dynamic Selection Approach
Shibo Qiu·bioRxiv·Nov 25, 2024
- Genomic Touchstone: Benchmarking Genomic Language Models in the Context of the Central Dogma
Yihui Wang, Zhiyuan Cai, … Hao Chen·bioRxiv·Jun 25, 2025
- L2G: Repurposing Language Models for Genomics Tasks
Wenduo Cheng, Jun-Hong Shen, … Ameet Talwalkar·bioRxiv·Dec 9, 2024
- Benchmarking Pre-trained Genomic Language Models for RNA Sequence-Related Predictive Applications
Ningyuan You, Chang Liu, … Ning Shen·Nature CommunicationsPeer-reviewed·Dec 7, 2025