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:
- 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).
- 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.
- 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:
- 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.
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.
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