PreprintCited by 16RNA and protein synthesis mechanismsMachine Learning in BioinformaticsGenomics and Phylogenetic Studies

The DOI matches its Crossref record; 1 of the 1 references it cites were found in a registry or an index.

BiRNA-BERT allows efficient RNA language modeling with adaptive tokenization

Open access

Preprint — published as 10.1038/s42003-025-08982-0 · Paper page

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 6× larger models in short-sequence tasks with 27×less 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

Overview

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1101/2024.07.02.601703

Cites

1 of 1 references verified0 citation errors · 0 not checkable

Statistics

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Citations

Cites

Flagged first, then by citations

Research works printed but not linked: 41

  1. 10.1016/j.plrev.2004.01.002 · DOI
  2. Kaj Bostrom and Greg Durrett . Byte pair encoding is suboptimal for language model pretraining. In Trevor Cohn , Yulan He , and Yang Liu , editors, Findings of the Association for Computational Linguistics: EMNLP 2020, pages 4617–4624, Online, November 2020. Association for Computational Linguistics. · DOI
  3. 2022, Interpretable rna foundation model from unannotated data for highly accurate rna structure and function predictions, arXiv preprint
  4. 2020, Electra: Pre-training text encoders as discriminators rather than generators, arXiv preprint
  5. The RNAcentral Consortium, 2018, RNAcentral: a hub of information for non-coding RNA sequences, Nucleic Acids Research, 47, D221, 10.1093/nar/gky1034 · DOI
  6. 10.1093/NAR/GKAB1049 · DOI · Paper page
  7. Hugo Dalla-Torre , Liam Gonzalez , Javier Mendoza Revilla , Nicolas Lopez Carranza , Adam Henryk Grzywaczewski , Francesco Oteri , Christian Dallago , Evan Trop , Hassan Sirelkhatim , Guillaume Richard , Marcin Skwark , Karim Beguir , Marie Lopez , and Thomas Pierrot . The nucleotide transformer: Building and evaluating robust foundation models for human genomics. bioRxiv, 2023. · DOI · Paper page
  8. 2023, Flashattention-2: Faster attention with better parallelism and work partitioning, arXiv preprint
  9. 2018, Bert: Pre-training of deep bidirectional transformers for language understanding, arXiv preprint
  10. 2021, Prottrans: Toward understanding the language of life through self-supervised learning, IEEE transactions on pattern analysis and machine intelligence, 44, 7112
  11. 1994, A new algorithm for data compression, The C Users Journal archive, 12, 23
  12. Jonas Geiping and Tom Goldstein . Cramming: Training a language model on a single gpu in one day. In International Conference on Machine Learning, pages 11117–11143. PMLR, 2023.
  13. 10.1093/nar/gkg006 · DOI
  14. 10.1016/j.ymeth.2024.03.004 · DOI
  15. 10.1093/bioinformatics/btab083 · DOI · Paper page
  16. 10.1093/bioinformatics/btaa074 · DOI
  17. 10.1016/S0304-3975(98)00075-9 · DOI
  18. 2019, Roberta: A robustly optimized bert pretraining approach, arXiv preprint
  19. Eric Nguyen , Michael Poli , Marjan Faizi , Armin Thomas , Michael Wornow , Callum Birch-Sykes , Stefano Massaroli , Aman Patel , Clayton Rabideau , Yoshua Bengio , et al. Hyenadna: Long-range genomic sequence modeling at single nucleotide resolution. Advances in neural information processing systems, 36, 2024.
  20. 2024, Rinalmo: General-purpose rna language models can generalize well on structure prediction tasks, arXiv preprint
  21. Jacob Portes , Alexander R Trott , Sam Havens , Daniel King , Abhinav Venigalla , Moin Nadeem , Nikhil Sardana , Daya Khudia , and Jonathan Frankle . Mosaicbert: How to train bert with a lunch money budget. In Workshop on Efficient Systems for Foundation Models@ ICML2023, 2023.
  22. 2021, Train short, test long: Attention with linear biases enables input length extrapolation, arXiv preprint
  23. 2020, Exploring the limits of transfer learning with a unified text-to-text transformer, Journal of machine learning research, 21, 1
  24. 10.1186/s12859-021-04034-6 · DOI
  25. 10.1006/jtbi.1997.0493 · DOI
  26. Conrad L Schoch , Stacy Ciufo , Mikhail Domrachev , Carol L Hotton , Sivakumar Kannan , Rogneda Khovanskaya , Detlef Leipe , Richard Mcveigh , Kathleen O’Neill , Barbara Robbertse , et al. Ncbi taxonomy: a comprehensive update on curation, resources and tools. Database, 2020:baaa062, 2020. · DOI · Paper page
  27. 2015, Neural machine translation of rare words with subword units, arXiv preprint
  28. 10.1002/j.1538-7305.1948.tb01338.x · DOI · Paper page
  29. 2020, Glu variants improve transformer, arXiv preprint
  30. 2019, Megatron-lm: Training multi-billion parameter language models using model parallelism, arXiv preprint
  31. 10.1021/acs.jcim.1c00153 · DOI
  32. 10.1016/j.neucom.2023.127063 · DOI · Paper page
  33. 10.1093/bioinformatics/btaa531 · DOI
  34. Ashish Vaswani , Noam Shazeer , Niki Parmar , Jakob Uszkoreit , Llion Jones , Aidan N Gomez , L ukasz Kaiser , and Illia Polosukhin . Attention is all you need. Advances in neural information processing systems, 30, 2017.
  35. 10.1093/bib/bbt068 · DOI
  36. Xi Wang , Ruichu Gu , Zhiyuan Chen , Yongge Li , Xiaohong Ji , Guolin Ke , and Han Wen . Uni-rna: Universal pre-trained models revolutionize rna research. bioRxiv, 2023. · DOI
  37. 10.1093/nar/gkad929 · DOI
  38. 2022, Prediction of rna–protein interactions using a nucleotide language model, Bioinformatics Advances, 2, vbac023, 10.1093/bioadv/vbac023 · DOI
  39. 10.1093/bioinformatics/btab391 · DOI
  40. 10.1093/nar/gkad1031 · DOI · Paper page
  41. 2023, Dnabert-2: Efficient foundation model and benchmark for multi-species genome, arXiv preprint

Metadata

Authors
Tahmid, M. T., Shahgir, H. S., Mahbub, S., Dong, Y., & Bayzid, M. S.
Affiliations
  • Bangladesh University of Engineering and Technology (BD)
  • University of California, Riverside (US)
  • University of Maryland, College Park (US)
Corresponding author
Bayzid, Md. Shamsuzzoha
Venue
Communications Biology
Publisher
openRxiv
Published
2024-07-04
Volume
8
Issue
1
Pages
1621-1621
ISSN
2399-3642 (ISSN-L)
OpenAlex
W4416414445
Cited by
16
References
1
Citations by year
2026: 9 · 2025: 5 · 2024: 2
FWCI
4.18
Type
journal article
Language
en
Open access
Locations
  • Communications Biology (publishedVersion, cc-by)
  • bioRxiv (Cold Spring Harbor Laboratory) (acceptedVersion, cc-by-nc)
  • Europe PMC (PubMed Central) (publishedVersion, cc-by)
  • PubMed (publishedVersion)
  • DOAJ (DOAJ: Directory of Open Access Journals) (submittedVersion, cc-by-sa)
Funders
  • University of Engineering and Technology, Lahore
  • Bangladesh University of Engineering and Technology
Topics
  • Life Sciences › Biochemistry, Genetics and Molecular Biology › Molecular Biology › RNA and protein synthesis mechanisms
  • Life Sciences › Biochemistry, Genetics and Molecular Biology › Molecular Biology › Machine Learning in Bioinformatics
  • Life Sciences › Biochemistry, Genetics and Molecular Biology › Molecular Biology › Genomics and Phylogenetic Studies
Keywords
byte pair encoding, long sequence modeling, non-coding RNA, RNA secondary structure prediction, information-theoretic analysis, perplexity
MeSH terms
Nucleic Acid Conformation, RNA, Software, Sequence Analysis, RNA, Computational Biology

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review