Nüwa.RNA: An RNA Foundation Model for Unified Representation with Deep Structure Infusion

Kun Huang, Jiyang Li, Xin Guo, Limei Han, Yuan ChengNeurIPS 2026

TL;DR

Reading an RNA molecule strictly as a flat string of letters is like trying to understand origami by looking at an unfolded sheet of paper—you miss the entire functional shape. Nüwa.RNA is a new RNA foundation model that weaves secondary structure directly into every stage of pre-training, turning noisy computational folding estimates from a liability into a powerful self-supervised training signal. The result is a single-sequence model that achieves state-of-the-art performance across 10 of 13 standard RNA benchmark tasks without needing any external folding tools at test time.

What Problem Does This Paper Address?

RNA isn't just a passive messenger between DNA and proteins; it catalyzes reactions, senses molecules, and regulates genes. It pulls off these feats by folding: primary nucleotide sequences pair up locally into secondary structures (like stems, loops, and bulges), which then collapse into 3D shapes.

Most RNA language models apply BERT-style masked language modeling strictly to 1D sequences, hoping the model implicitly figures out folding rules. A few recent models try to include structural hints, but they hit three roadblocks:

  1. Shallow integration: Existing models inject structure through only a single pathway—either masking, attention, or input tokens (which can discretize and corrupt the sequence embedding space).
  2. Noisy pseudo-labels: Experimentally resolved RNA structures are rare, so models rely on computational folding tools to generate training labels. These predictions contain errors, and blindly trusting them bakes systematic mistakes into the model.
  3. Structure-blind masking: Masking random tokens or contiguous spans ignores RNA grammar, where entire two-dimensional motifs (like both strands of a stem) act as cooperative units.

Methods

Nüwa.RNA (scaled up to 1.6B parameters) uses a ModernBERT-style encoder with single-nucleotide tokenization, Rotary Positional Embeddings (RoPE), and hybrid sliding-window/global Flash Attention to handle sequences up to 8,192 nucleotides long.

What is novel is its structure-driven multi-level pre-training framework, which infuses structure across three coupled stages simultaneously:

Figure 1: Overview of Nüwa.RNA. Top left: Encoder-only Transformer with single-nucleotide tokenization, hybrid local/global attention, and noisy contact-map attention biases (learnable per- layer scalar α(l)). Top right: Multi-level pre-training: Level 1 dual-granularity masking, Level 2 curriculum-noised attention bias, Level 3 structure denoising. Bottom left: Zero-shot capabilities. Bottom right: Task-specific fine-tuning heads.
  • Level 1: Dual-Granularity Masking. Alongside standard random single-token masking, the authors parse 2D contact maps (binary matrices showing which bases pair up) into structural motifs—stems, hairpin loops, bulges, and junctions—and mask entire structural elements as indivisible units.
  • Level 2: Noisy Structural Attention Bias. Instead of trusting predicted contact maps, the authors deliberately corrupt them by flipping entries with an asymmetric probability that preserves sparsity. This noisy map is added as an attention bias in every Transformer layer. Crucially, a noise curriculum ramps up corruption over training, gradually weaning the model off external structural hints.
  • Level 3: Structure Denoising Objective. Closing the loop, a bilinear scoring head takes the output embeddings of motif-masked positions and tries to reconstruct the clean contact map from the corrupted attention input.

Because structure enters only via attention biases and loss functions, the sequence embedding space stays clean—and at inference time, the structural bias is simply zeroed out.

Datasets

  • Pre-training: ~32 million curated non-coding RNA (ncRNA) sequences (20 billion nucleotides) from RNAcentral, annotated with secondary structure pseudo-labels predicted by BPfold and deduplicated against test sets (80% CD-HIT threshold).
  • Evaluation: Zero-shot probing uses 110 experimentally resolved 3D RNA structures from the PDB (40 validation, 70 test). Downstream fine-tuning is evaluated on BEACON, an existing comprehensive benchmark covering 13 tasks across structure prediction, gene regulation, and functional classification. No new benchmark datasets are introduced.

Key Insights and Ideas

  • Uncertainty as a feature, not a bug: Rather than treating imperfect computational folding labels as ground truth, deliberately corrupting them and forcing the model to denoise them acts as a structural regularizer. Ablations show that training on noisy contact maps actually beats training on clean ones (79.2 vs. 76.8 F1 on secondary structure prediction).
  • 2D motifs beat 1D spans: Replacing 2D structure-motif masking with standard contiguous span masking degrades structure prediction, proving that masking both sides of a base-paired stem forces the model to learn genuine cooperative folding rules.
  • Emergent folding awareness: Even with structural inputs turned off at test time, Nüwa.RNA’s internal attention heads naturally form crisp anti-diagonal patterns that mirror physical base-pairing stems.
Figure 3: Structural knowledge encoded in pre-trained representations. (a) Attention heads learn to track canonical base-pairing interactions, producing anti-diagonal patterns aligned with stem regions. (b) Zero-shot secondary structure prediction from attention maps: Nüwa.RNA achieves the highest median F1 among single-sequence RNA foundation models.

Key Results

Operating purely from primary sequence at inference time, Nüwa.RNA-1.6B sets a new state of the art on 10 of 13 BEACON tasks:

  • Structure Prediction: Massive jumps over the strongest baselines, including +7.83 F1 on Secondary Structure Prediction (81.20% vs. RNAGenesis's 73.37% and AIDO.RNA-1.6B's 78.3%), +5.95 P@L on Contact Map Prediction, and +4.56 $R^2$ on Distance Map Prediction.
  • Zero-Shot Probing: Achieves the highest median F1 score on PDB structures among single-sequence foundation models.
  • Classification & Regulation: Hits 99.40% accuracy on ncRNA family classification and 97.34% AUC on modification site prediction, with UMAP projections showing remarkably tight, biologically meaningful family clusters.
Figure 2: UMAP projections of mean-pooled last-layer representations from 35,220 ncRNA sequences across 20 families (RNAcentral). Nüwa.RNA yields the tightest clusters; StructRFM and RNA-FM show partial separation with more mixing; a randomly initialized model produces no structure.

Limitations and Future Work

  • Pseudo-label ceiling: Pre-training still relies on BPfold predictions; integrating experimental chemical probing data could sharpen structural priors.
  • ncRNA domain bias: Because the pre-training corpus is primarily non-coding RNA, performance lags behind specialized models on vertebrate pre-mRNA splicing (39.00% vs. SpliceBERT's 50.55%).
  • Next frontiers: Supplying predicted contact maps at inference time can boost accuracy further at the cost of preprocessing compute. Future work aims to extend this multi-level framework to 3D tertiary structures and RNA–protein interactions.

Summary updated

Abstract

RNA function arises from a hierarchical folding process in which primary sequences form secondary structures that govern biological activity. While foundation models have proven effective for learning transferable RNA representations, most existing approaches rely on primary sequence alone or incorporate structural information only superficially during pre-training. Three problems limit current approaches: experimentally determined secondary structures are scarce, computational pseudo-labels are noisy, and no existing model integrates structure at multiple levels across masking, architecture, and supervision. Here, we present Nüwa.RNA, a pre-trained foundation model built on a structure-driven multi-level pre-training framework that integrates secondary structure at all three stages of pre-training simultaneously. The framework has three components. First, dual-granularity masking combines single-token masking with structure motif masking, treating entire structural elements as indivisible units. Second, a noisy structural attention bias injects curriculum-corrupted contact maps into every Transformer layer to model pseudo-label uncertainty. Third, a structure denoising objective recovers clean base-pairing states from corrupted input, closing the denoising loop. Pre-trained on a large-scale non-coding RNA corpus, Nüwa.RNA achieves state-of-the-art performance on 10 of 13 BEACON benchmark tasks, with up to +7.83 F1 improvement on secondary structure prediction, and attains the highest zero-shot secondary structure prediction accuracy among single-sequence RNA foundation models.
BibTeX
@inproceedings{huang2026nuwa,
  author = {Kun Huang and Jiyang Li and Xin Guo and LIMEI HAN and Yuan Cheng},
  title = {{Nüwa.RNA: An RNA Foundation Model for Unified Representation with Deep Structure Infusion}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=5AdQQ6L0rR},
}

Loading related content...

Figure