USTC structRFM pair-masks RNA bases and hits INF 0.890 on ArchiveII

2026-11-24

USTC's structRFM pretrains on 21 million RNA pairs with pair-matched masking. INF is 0.890 on ArchiveII600. RNA-Puzzles RMSD beats AlphaFold 3; CASP16 reverses that.

What problem this solves

Most RNA language models mask bases and predict them back from sequence alone. RNA-FM and RiNALMo are standard BERTs, RNAErnie adds motifs during pretraining, and AIDO.RNA scales to 1.6 billion parameters. Function tracks folding. Bases pair into a secondary structure, that fold packs into a tertiary structure, and the chemistry follows.

Earlier attempts to inject structure each carry a known defect. RNABERT leans on Rfam seed alignments, so a bad alignment becomes a bad family boundary. ERNIE-RNA collapses GC, AU and GU into fixed scores of 3, 2 and 0.8. MP-RNA and UTR-LM add a loss that reconstructs secondary structure, which ties pretraining to that one task. structRFM uses structure only to decide which bases to hide. The training target is still "recover the hidden base," so the same backbone can transfer to structure tasks and to function tasks.

Method

Sequences come from the maintained portion of RNAcentral v24, cut at 512 nucleotides, about 21 million of them. Each sequence is paired with a secondary structure. The published model does not trust one predictor. MUSES, a multi-source ensemble of secondary structures, runs three of them: ViennaRNA RNAfold (thermodynamics), CONTRAfold (pair probabilities) and BPfold (a deep model). Each produces a base-pair matrix. A weighted average is decoded with maximum expected accuracy into one consensus structure. The weights were searched on a simplex whose corners are the single predictors. The point of the search is to stop any one tool's systematic mistakes from dominating the labels.

The backbone is a 12-layer BERT with hidden size 768 and a 512-nucleotide context. Pretraining is structure-guided masking, and the operation the paper names is pair-matching. A standard BERT hides about 15% of bases at random. If a hidden base has a partner in the structure, the partner is hidden too, so the model cannot read one side of a stem and copy the other. It has to recover the pair from the loops that remain visible. Unpaired bases stay on the ordinary random mask. The share of masks that go through this pairing rule starts at zero: the first 15% of steps use plain masking, the share then rises linearly to 0.5, and the last 15% of steps hold it there. Of the hidden positions, 10% are replaced with a random base and 10% are left unchanged. The preprint methods log one training run at about 3.24 million steps and roughly 400 hours on two 80GB A100s. The Nature version was retrained on MUSES labels, and the supplement does not give a new wall-clock figure.

The model exposes three representations: a sequence vector from the leading token, a vector per nucleotide, and a pairwise matrix built from the 12 attention heads of the last layer. Secondary-structure prediction concatenates the sequence features with a one-hot encoding, scores stacking and helix opening with MXfold2, and folds the scores with Zuker-style dynamic programming. The tertiary adapter, Zfold, feeds the pairwise features plus a multiple sequence alignment into the trRosettaRNA module and relaxes the result with PyRosetta. Splice-site prediction is a linear head on the first-layer sequence features, matching the BEACON setup. IRES detection uses the sequence vector plus one-hot, with one model trained on oversampled positives, one on undersampled negatives, and a soft vote. ncRNA classification is a linear head on the sequence vector alone. The control without structure-guided masking is structRFM−.

Results

The secondary-structure metric is INF, interaction network fidelity: how well predicted pairs agree with the reference pairs.

MethodArchiveII600 INFbpRNA-TS0 INF
structRFM0.8900.669
structRFM−0.8510.630
RNAErnie0.8760.620
RNA-FM0.8490.647
BPfold (the annotator)0.8230.670

ArchiveII600 is the 3,911 ArchiveII sequences no longer than 600 nucleotides. bpRNA-TS0 has 1,305 sequences and lower sequence similarity. structRFM leads RNAErnie on the first set. On the second it is 0.022 above RNA-FM and does not beat BPfold's own 0.670. Retraining on MUSES rather than BPfold-only labels moves ArchiveII INF from 0.873 to 0.890 and bpRNA-TS0 from 0.641 to 0.669.

Families do not share the gain. 5S reaches INF 0.980 and tRNA 0.975. Telomerase rises from 0.453 without structure guidance to 0.595. 23S ribosomal RNA goes the other way: 0.311 with structRFM, 0.516 without it. 16S is slightly worse too, 0.683 versus 0.717. Structure guidance helps short families with clean local pairs and hurts long ribosomal RNAs.

Zfold is the tertiary adapter. On the 20 RNA-Puzzles targets, structRFM has RMSD 5.319 and TM-score 0.583, against 7.894 and 0.468 for AlphaFold 3. On the same targets εRMSD is 1.255 versus 1.073 and the INF of extracted secondary structure is 0.725 versus 0.778, so AlphaFold 3 wins the local metrics. RMSD and TM-score ask whether the global backbone overlays. εRMSD and INF ask about local geometry and base pairs. Each system takes one of those questions.

On the 13 CASP16 targets AlphaFold 3 leads: RMSD 19.171 versus 28.594, TM-score 0.421 versus 0.327, INF 0.718 versus 0.597. structRFM still beats trRosettaRNA (30.328), RiNALMo (32.541) and its own no-structure control (41.482). The 12 CASP15 targets include 4 synthetic RNAs. Pooled, structRFM RMSD is 20.130 against AlphaFold 3's 18.979, and INF is 0.820 against 0.936. For the 8 natural targets alone, the supplement reports MUSES versus BPfold labels, RMSD 9.97 versus 14.8, and does not put an AlphaFold 3 mean for that subset in the same cell. The abstract's "comparable to AlphaFold 3" is a statement about the three benchmarks taken together. Split by metric, the lead changes hands.

Zero-shot homology is an overlap ratio. Homologous and non-homologous pairs each get a cosine-similarity distribution, and less overlap means a lower score. On 24,523 Rfam sequences structRFM scores 0.099 against 0.115 for the no-structure control. On ArchiveII600 the scores are 0.454 versus 0.506. Each distribution uses 100,000 sampled pairs. Zero-shot secondary structure on 116 PDB RNAs is INF 0.46 with MUSES labels and 0.44 with BPfold labels.

On function tasks the ensemble barely moves the numbers, and not always up. On 1,164 IRES test sequences, F1 is 0.701 and AUROC is 0.713, above DeepIRES at F1 0.284 and IRESfinder at 0.475. Against BPfold-only labels (F1 0.708) MUSES is slightly down. The RiNALMo row is accuracy, recall and precision all at 0.500 with MCC 0, which reads as a run that never left chance. Splice-site top-k accuracy is 0.42 against 0.39 without structure guidance, and MUSES matches the BPfold-label run at 0.42. On 2,600 nRC sequences, ncRNA accuracy is 0.946, below RNA-FM at 0.972 and RNAErnie at 0.964, while F1 is 0.979 against RNA-FM's 0.972.

The revision notes that were written into the paper put secondary-structure INF at 0.65 to 0.70 on Rfam families added between v14.10 and v15.0, families absent from pretraining and fine-tuning, and F1 above 0.95 for human and mouse long non-coding RNA classification. The pretraining mix is lopsided: lengths cluster near 250 nucleotides, rRNA is 66.3%, tRNA is 16.7%, and canonical pairs are about half of all interactions (GC 26.5%, AU 14.4%, GU 7.2%).

Why it matters

Weights, the roughly 21-million-pair set and the code are public. The USTC checkpoint from the Zhou and Xiong groups can be fine-tuned as it stands, and the pair-matching recipe can sit on another backbone. On ArchiveII600 it is the highest INF in the supplement table. On bpRNA-TS0 the margin over RNA-FM is small, and the model does not beat the BPfold annotator it learned from. It does not replace AlphaFold 3 for tertiary structure: the global overlay is better on RNA-Puzzles and clearly worse on CASP16. The 512-nucleotide context is a hard limit. Longer RNAs are handled by truncation or by a 512-nucleotide window, including a window with 50% overlap.

Limitations

Every structure label is predicted, not experimental. MUSES mixes three predictors and shrinks single-tool bias. It does not remove computational error. FR3D, which needs a crystal structure, cannot label 21 million sequences. The authors say so in the review response.

The 512-nucleotide window is still there. Adding structure guidance drops 23S INF from 0.516 to 0.311. Long RNAs and long-range pairs remain the open problem. Sliding windows are an engineering patch.

Geometry is messy. Across the 12 CASP15 predictions the supplement counts 322 bond-angle errors, 61 bond-length errors and 52 close contacts. The D&D entanglement count on CASP15 is 28. The paper reports the counts. It does not show that the artifacts were removed. Extended data say synthetic targets with dense long-range contacts are harder, and that CASP16 performance is better on viral and aptamer targets than on multimers and bacterial targets. Some CASP16 sequences used for prediction do not match the PDB entry, because unresolved experimental regions were left unmodelled.

Zero-shot homology uses no sequence-identity cutoff. Same Rfam family means homologous, different family means not. A cross-family pair can still be similar. ncRNA accuracy and F1 rank the methods differently, and RNA-FM has the higher accuracy, so that task is not a clean win. On bpRNA-TS0 the model does not beat its own annotator. The RiNALMo row in the IRES table is not a serious control.

Terms

Source

What people are saying

All paper explainers