arrow
Return

BiRNA-BERT allows efficient RNA language modeling with adaptive tokenization

delete2025-11-20
delete0
delete
OA
AI
M
Md Toki Tahmid
H
Haz Sameen Shahgir
S
Sazan Mahbub
Y
Yue Dong
M
Md. Shamsuzzoha Bayzid *
DOI:10.1038/s42003-025-08982-0delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
Transformer-based models have achieved remarkable success in biological sequence modeling, yet their application to RNA remains constrained by sequence length limitations. Existing RNA language models often truncate inputs, discarding distal nucleotide context crucial for full-length tasks. Additionally, advanced NLP tokenization methods do not directly apply to biological sequences, where nucleotide-level resolution is essential for tasks like secondary structure prediction. To address these challenges, we introduce BiRNA-BERT, a 117M-parameter Transformer encoder trained on 36 million non-coding RNA sequences. At its core is an adaptive dual-tokenization framework that combines nucleotide-level (NUC) encoding for fine-grained structural tasks with byte-pair encoding (BPE) for efficient long-sequence processing. BiRNA-BERT dynamically selects tokenization based on input length, enabling it to process arbitrarily long sequences without truncation. We demonstrate state-of-the-art performance across tasks ranging from short-sequence classification to long-context modeling and fine-grained nucleotide level RNA structural prediction. Our information-theoretic analysis reveals the trade-offs between BPE compression and NUC tokenization, which we again validate empirically. Finally, BiRNA-BERT achieves strong intrinsic language modeling performance–measured by perplexity and token recovery–while remaining more compact than existing RNA models. The code and model weights are available at https://github.com/buetnlpbio/BiRNA-BERT . A recent study presents BiRNA-BERT, utilizing adaptive dual-tokenization for improved RNA sequence processing and structural prediction accuracy.
Keywords:
RNA language modeling
adaptive dual-tokenization
Transformer encoder
nucleotide-level encoding
byte-pair encoding
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

Communications Biology cover
Communications Biology
IF:
5.1
Papers:
1.0W
Citations:
3.2W

Organization

B
Bangladesh University of Engineering and Technology
Scholars:
323
Papers: 160
Citations: 2.3K
U
university of california riverside
Scholars:
1.1W
Papers: 8.3K
Citations: 16
C
College Park
Scholars:
818
Papers: 416
Citations: 5
researcher View more organizations