NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Multiple sequence-alignment-based RNA language model and its application to structural inference

Yikun Zhang, Mei Lang, Jiuhong Jiang, Zhiqiang Gao, Fan Xu, Thomas Litfin, Ke Chen, Jaswinder Singh, Xiansong Huang, Guoli Song, Yonghong Tian, Jian Zhan, Jie Chen, Yaoqi Zhou

Abstract

Compared to proteins, DNA and RNA are more difficult languages to interpret because 4-letter-coded DNA/RNA sequences have less information content than 20-letter-coded protein sequences. While BERT-like language models have been developed for RNA, they are ineffective at capturing the evolutionary information from homologous sequences because unlike proteins, RNA sequences are less conserved. Here, we have developed an unsupervised Multiple sequence-alignment-based RNA language model (RNA-MSM) by utilizing homologous sequences from an automatic pipeline, RNAcmap. The resulting unsupervised, two-dimensional attention maps and one-dimensional embeddings from RNA-MSM can be directly mapped with high accuracy to 2D base pairing probabilities and 1D solvent accessibilities, respectively. Further fine-tuning led to significantly improved performance on these two downstream tasks over existing state-of-the-art techniques. We anticipate that the pre-trained RNA-MSM model can be fine-tuned on many other tasks related to RNA structure and function.

Introduction

Predicting the structural and functional properties of RNA is a fundamental challenge in bioinformatics. Unlike proteins, which utilize a 20-letter amino acid alphabet, RNA is composed of only four nucleotides (A, C, G, U). This lower information density makes it difficult for traditional sequence-based models to discern complex folding patterns. Furthermore, while protein sequences often show high conservation, RNA sequences can mutate significantly as long as their base-pairing interactions are preserved—a phenomenon known as "evolutionary coupling." Previous single-sequence models, such as RNA-FM, often fail to capture these critical evolutionary signals. This paper introduces RNA-MSM, which utilizes Multiple Sequence Alignments (MSAs) to provide the model with a historical map of these evolutionary constraints.

Methodology: The RNA-MSM Framework

To address these challenges, the authors developed RNA-MSM, an unsupervised language model based on the MSA Transformer architecture. The core idea is to leverage the evolutionary history of RNA families to infer structural constraints.

Pipeline and Architecture

The process begins with the RNAcmap3 pipeline, which automatically searches for and aligns homologous RNA sequences from massive databases like NCBI and RNAcentral. These MSAs are then processed by a model consisting of 10 transformer blocks with "axial attention." This mechanism allows the model to look both across the sequence (to find structural patterns) and across the alignment (to find evolutionary patterns).

Overview of the RNA-MSM pipeline, including MSA generation, transformer architecture, and downstream task modules.

Training and Downstream Tasks

The model is pre-trained using an unsupervised Masked Language Modeling (MLM) objective, where it learns to "fill in the blanks" for 20% of masked nucleotides in an alignment. This forces the model to learn the underlying rules of RNA biology. The pre-trained model is then fine-tuned for two specific tasks:

  1. 2D Base Pairing: Predicting secondary structure contact maps.
  2. 1D Solvent Accessibility: Predicting how exposed each nucleotide is to its environment.

Experimental Setup

The model was pre-trained on 3,932 Rfam families, excluding those with known experimental structures to prevent data leakage. For structural inference, a "gold standard" dataset was derived from the Protein Data Bank (PDB). Evaluation was performed on a training set (TR1: 405 RNAs), a validation set (VL1: 40 RNAs), and an independent test set (TS: 70 RNAs). The authors also utilized "reduced" test sets to ensure the model could generalize to RNA families entirely absent from the training data.

Results and Key Insights

RNA-MSM demonstrated significant performance gains over previous state-of-the-art techniques:

  • Secondary Structure Prediction: The model achieved an AUC_PR of 0.610, a substantial improvement over the 0.56 achieved by SPOT-RNA2 and the 0.377 from basic one-hot encoding.
  • Solvent Accessibility: The model showed a 7% improvement in Pearson Correlation Coefficient (PCC) and a 3% reduction in Mean Absolute Error (MAE) compared to RNAsnap2_pro.
  • Zero-Shot Structural Knowledge: Even without explicit structural training, the model's internal attention maps naturally aligned with base-pairing probabilities, proving it "discovered" secondary structure through evolutionary signal analysis.
  • Feature Preference: 2D structure prediction performed best using attention maps, while 1D solvent accessibility relied more on embeddings.

Conclusion and Future Directions

While RNA-MSM represents a major advancement, it faces limitations in computational efficiency and sequence length. Generating MSAs currently takes an average of 9 hours for a 60-nucleotide RNA, and the transformer's quadratic memory requirements limit processing to 1024 nucleotides. Future work will explore asymmetric cross-attention to handle arbitrary sequence lengths and reduce the dependency on initial folding predictors for MSA generation.

Summary updated

BibTeX
@inproceedings{zhang2023multiple,
  author = {Yikun Zhang and Mei Lang and Jiuhong Jiang and Zhiqiang Gao and Fan Xu and Thomas Litfin and Ke Chen and Jaswinder Singh and Xiansong Huang and Guoli Song and Yonghong Tian and Jian Zhan and Jie Chen and Yaoqi Zhou},
  title = {{Multiple sequence-alignment-based RNA language model and its application to structural inference}},
  booktitle = {Nucleic},
  year = {2023},
  doi = {10.1093/nar/gkad1031},
}
Figure