A fully-open structure-guided RNA foundation model for robust structural and functional inference

Heqin Zhu, Ruifeng Li, Feng Zhang, Fenghe Tang, Tong Ye, Xin Li, Yunjie Gu, Peng Xiong, S. Kevin ZhoubioRxiv 2025

Abstract

Abstract RNA language models have achieved strong performances across diverse down-stream tasks by leveraging large-scale sequence data. However, RNA function is fundamentally shaped by its hierarchical structure, making the integration of structural information into pre-training essential. Existing methods often depend on noisy structural annotations or introduce task-specific biases, limiting model generalizability. Here, we introduce structRFM, a structure-guided RNA foundation model that is pre-trained on millions of RNA sequences and secondary structures data by integrating base pairing interactions into masked language modeling through a novel pair matching operation. The structure-guided mask and nucleotide-level mask are further balanced by a dynamic masking ratio. structRFM learns joint knowledge of sequential and structural data, producing versatile representations, including classification-level, sequence-level, and pair-wise matrix features, that support a broad spectrum of downstream adaptations. structRFM ranks among the top models in zero-shot homology classification across fifteen biological language models, and sets new benchmarks for secondary structure prediction. structRFM further derives Zfold, which enables robust and reliable tertiary structure prediction, with consistent improvements in estimating 3D structures and their accordingly extracted 2D structures, achieving a pronounced 19% performance gain compared with AlphaFold3 on RNA Puzzles dataset. In functional tasks such as internal ribosome entry site identification, structRFM achieves a whopping 49% performance gain in F1 score. These results demonstrate the effectiveness of structure-guided pre-training and highlight a promising direction for developing multi-modal RNA language models in computational biology. To support the broader scientific community, we have made the 21-million sequence-structure dataset and the pre-trained structRFM model fully open-source, facilitating the development of multimodal foundation models in biology.

Introduction

In the biological landscape, RNA is far more than a simple intermediary between DNA and proteins. Its functionality is intricately tied to its hierarchical structure, which ranges from primary sequences to complex tertiary folds. While RNA Language Models (RLMs) have successfully applied natural language processing techniques to biological sequences, most existing models treat RNA as a linear string of nucleotides. This approach often overlooks the "spatial grammar" of RNA—the base-pairing interactions that define its secondary and tertiary structures.

To address this gap, the authors present structRFM, a foundation model designed to integrate structural priors directly into the pre-training phase. By moving beyond simple sequence-based masking, structRFM learns the fundamental physical and thermodynamic constraints that govern RNA folding, enabling superior performance in both structural prediction and functional inference.

Methodology: Structure-Guided Pre-training

The core innovation of structRFM lies in its Structure-guided Masked Language Modeling (SgMLM). Traditional masked language modeling (MLM) randomly hides individual nucleotides, forcing the model to predict them based on local context. However, RNA nucleotides often interact with distant partners in the sequence to form stable base pairs.

PairMatch Operation

To capture these long-range dependencies, structRFM introduces the PairMatch operation. When a nucleotide that is part of a known base pair is selected for masking, its corresponding partner is also masked. This strategy forces the model to infer the identity of a nucleotide not just from its immediate neighbors, but from its structural counterpart, effectively teaching the model the "spatial logic" of RNA folding.

Dynamic Masking and Multimodal Outputs

The training process utilizes a Dynamic Masking Ratio, which initially emphasizes simple sequence patterns and gradually increases the proportion of structure-guided masks. This curriculum-based approach ensures the model builds a stable representation of primary sequences before tackling the complexities of secondary structure.

The resulting model generates three distinct types of features:

  1. Classification-level features: Global representations for the entire RNA molecule.
  2. Sequence-level features: Local representations for individual nucleotides.
  3. Pairwise Matrix: A rich feature set that explicitly maps the relationships between every pair of nucleotides, serving as a "contact map" for downstream structural tasks.

Data and Benchmarking

The model was pre-trained on a newly curated dataset of 21 million RNA sequences sourced from RNAcentral (v24.0). Given the scarcity of experimental 3D structures, the authors utilized BPfold to generate high-confidence secondary structure priors for the entire dataset.

The performance of structRFM was evaluated across a diverse set of benchmarks:

  • Homology Classification: Zero-shot performance on Rfam and ArchiveII datasets.
  • Secondary Structure Prediction: Benchmarked against state-of-the-art models.
  • Tertiary Structure Prediction: Evaluated using the Zfold extension on CASP15 and RNA Puzzles datasets.
  • Functional Inference: Tasks included splice site prediction (SpliceAI) and Internal Ribosome Entry Site (IRES) identification.

Key Results

The integration of structural information yielded substantial improvements across all domains:

  • Superior 3D Prediction: The Zfold tool, derived from structRFM, outperformed AlphaFold3 by 19% in terms of Root Mean Square Deviation (RMSD) on the RNA Puzzles dataset. This highlights the model's ability to accurately estimate 3D atomic positions by leveraging its learned pairwise interactions.
  • Functional Breakthroughs: In the identification of IRES—elements crucial for viral replication and protein synthesis—structRFM achieved a 49% improvement in F1-score over previous state-of-the-art methods.
  • Zero-Shot Excellence: structRFM ranked in the top 4 among 15 major biological language models for zero-shot homology classification, demonstrating its deep understanding of evolutionary RNA families without task-specific fine-tuning.
  • Splicing Accuracy: The model achieved a top-k accuracy of 0.420 on the SpliceAI dataset, surpassing general-purpose RNA models.

Discussion and Future Directions

While structRFM represents a significant leap forward, certain challenges remain. The current architecture is optimized for sequences up to 512 nucleotides, which may limit its application to very long non-coding RNAs (lncRNAs). Future iterations could incorporate more complex thermodynamic folding models and expand the input capacity.

Furthermore, the authors envision structRFM as a cornerstone for a unified multimodal framework capable of reasoning across RNA, proteins, and small molecules, paving the way for advanced therapeutic discovery.

Conclusion

structRFM demonstrates that structure is not just an output of RNA modeling, but a vital input for pre-training. By making the 21M dataset and the model weights fully open-source, the authors provide a powerful resource for the scientific community to advance the field of computational RNA biology.

The structRFM model and dataset are available at https://github.com/heqin-zhu/structRFM.

Summary updated

BibTeX
@misc{zhu2025fully,
  author = {Heqin Zhu and Ruifeng Li and Feng Zhang and Fenghe Tang and Tong Ye and Xin Li and Yunjie Gu and Peng Xiong and S. Kevin Zhou},
  title = {{A fully-open structure-guided RNA foundation model for robust structural and functional inference}},
  year = {2025},
  doi = {10.1101/2025.08.06.668731},
  howpublished = {bioRxiv},
}
Figure