BiRNA-BERT Allows Efficient RNA Language Modeling with Adaptive Tokenization
Md Toki TahmidiD, Haz Sameen ShahgiriD, Sazan MahbubiD, Yue DongiD, Md. Shamsuzzoha BayzidiD
Abstract
Recent advancements in Transformer-based models have spurred interest in their use for biological sequence analysis. However, adapting models like BERT is challenging due to sequence length, often requiring truncation for proteomics and genomics tasks. Additionally, advanced tokenization and relative positional encoding techniques for long contexts in NLP are often not directly transferable to DNA/RNA sequences, which require nucleotide or character-level encodings for tasks such as 3D torsion angle prediction. To tackle these challenges, we propose an adaptive dual tokenization scheme for bioinformatics that utilizes both nucleotide-level (NUC) and efficient BPE tokenizations. Building on the dual tokenization, we introduce BiRNA-BERT, a 117M parameter Transformer encoder pretrained with our proposed tokenization on 28 billion nucleotides across 36 million coding and non-coding RNA sequences. The learned representation by BiRNA-BERT generalizes across a range of applications and achieves state-of-the-art results in long-sequence downstream tasks and achieves a performance comparable to 6x larger models in short-sequence tasks with 27xless pre-training compute. BiRNA-BERT can dynamically adjust its tokenization strategy based on sequence lengths, utilizing NUC for shorter sequences and switching to BPE for longer ones, thereby offering, for the first time, the capability to efficiently handle arbitrarily long DNA/RNA sequences. 1
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 16
- FWCI
- 4.18
- Field percentile
- top 4%
- Assay
- Research Focus
- Approach
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
- Distinguishing word identity and sequence context in DNA language models
Melissa Sanabria, Jonas Hirsch, Anna R. Poetsch·BMC BioinformaticsPeer-reviewed·Sep 13, 2024
- ERNIE-RNA: An RNA Language Model with Structure-enhanced Representations
Weijie Yin, Zhaoyu Zhang, … Zhen Xie·Nature CommunicationsPeer-reviewed·Nov 18, 2025
- DNABERT: pre-trained Bidirectional Encoder Representations from Transformers model for DNA-language in genome
Yanrong Ji, Zhihan Zhou, … Ramana V. Davuluri·BioinformaticsPeer-reviewed·Feb 3, 2021
- Effect of Tokenization on Transformers for Biological Sequences
Edo Dotan, Gal Jaschek, … Yonatan Belinkov·BioinformaticsPeer-reviewed·Mar 29, 2024
- Genomic Tokenizer: Toward a biology-driven tokenization in transformer models for DNA sequences
Bell Raj Eapen·bioRxiv·Apr 2, 2025
- NucleicBERT: Deciphering the language of nucleic acids
Utkarsh Upadhyay, Julian M. Herold, … Alexander H. Schug·bioRxiv·Sep 2, 2025