RNABERT
A BERT-style model that embeds each base of an RNA sequence with its structure and context.
Molecules, proteins and genomics · 362 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 509.9K
- Operations
- 362
- Framework
- PyTorch
- Recurrent
- No
- Published
- NAR Genomics and Bioinformatics 4(1) lqac012, 2022
- Cited by
- 139 (as of 28 October 2026)
- Authors
- Manato Akiyama, Yasubumi Sakakibara
- Source
- GitHub: mana438/RNABERT
- License
- AGPL-3.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m19670
- Graph hash
- 19388feb83dfb3d0a6760c84e4a54021a8d61682bd411d61334e3a625cde2155
- Skeleton hash
- 5ca53eaa19a5cdf8c315fb8639eef9e7d53ca57eeca48d88e4b681d59dab3c78
- Architecture hash
- 7cf930f767ba20317c7aced3276cb5bc0db5930c42d3f657ac3615294b59304e
- Diagram SHA-256
- f2e0bfba5a3de2e89a69387a8d796bd0aeabc7c3c7d7a835087cd554ef160b17
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
RNABERT is a BERT-style model that learns an embedding for each base of an RNA sequence. The authors pre-train it so that, in their description, each base's embedding carries not only base information but also secondary structure and context information.
Pre-training consists of two tasks. In masked language modeling (MLM), some of the tokens in the input are masked and the model has to predict them. In structural alignment learning (SAL), the model learns to predict the structural alignment of two RNA sequences, using multiple alignments of RNA families as training data.
The paper applies the embeddings to two RNA sequence problems, structural alignment and clustering. Combined with a simple Needleman-Wunsch alignment algorithm, the embeddings give a structural alignment in O(n²) time instead of the O(n⁶) time of Sankoff-style algorithms. The released pre-trained model was created using the full Rfam 14.3 dataset.
Key idea. The paper pre-trains a model on RNA sequences so that each base's embedding reflects secondary structure and context, then uses the embeddings for structural alignment and family clustering.
- RNABERT
- RNA BERT
- RNA base embedding
- informative base embedding
- RNA language model
- non-coding RNA
- RNA structural alignment
- RNA family clustering
- Rfam
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@article{Akiyama_2022, title={Informative RNA base embedding for RNA structural alignment and clustering by deep representation learning}, volume={4}, ISSN={2631-9268}, url={http://dx.doi.org/10.1093/nargab/lqac012}, DOI={10.1093/nargab/lqac012}, number={1}, journal={NAR Genomics and Bioinformatics}, publisher={Oxford University Press (OUP)}, author={Akiyama, Manato and Sakakibara, Yasubumi}, year={2022}, month=Jan }