Fair splits flip the leaderboard: CHANRG reveals limited generalization in RNA secondary-structure prediction

Zhiyuan Chen, Zhenfeng Deng, Pan Deng, Yue Liao, Xiu Su, Peng Ye, Xihui LiuarXiv 2026

TL;DR

Current benchmarks for RNA secondary-structure prediction suffer from severe structural data leakage, making deep learning and foundation models look artificially perfect. By introducing CHANRG—a rigorous, structure-aware benchmark—the authors reveal that massive RNA foundation models collapse when tested out-of-distribution, while traditional physics-based structured decoders remain remarkably robust.

What Problem Does This Paper Address?

Predicting how an RNA molecule folds into its secondary structure (its pattern of base pairs) is vital for designing RNA-based therapeutics and understanding cellular biology. Recently, deep learning (DL) and large RNA Foundation Models (FMs) have claimed massive performance gains.

However, the authors point out a glaring flaw in how we evaluate these models: existing benchmarks deduplicate data based only on sequence identity. Because RNAs with completely different sequences can fold into nearly identical shapes, structurally redundant examples routinely leak from the training set into the test set. This overestimates how well deep learning models actually generalize to genuinely novel RNA families. Furthermore, standard evaluation pipelines rely on padded tensors that waste massive amounts of compute and introduce artificial batch-context dependencies.

Methods

To fix these evaluation blind spots, the authors developed a multi-stage curation and evaluation framework:

  • Structure-Aware Deduplication: Instead of just looking at sequence strings, they used bpRNA-CosMoS structural similarity scores to prune out structurally redundant RNAs.
  • Architecture-Aware Split Design: They split the dataset into an in-distribution set and three distinct out-of-distribution (OOD) challenges:
  • GenA: Tests transfer to entirely novel structural architectures ("complex unclassified" structures).
  • GenC: Tests evolutionarily distant RNAs from clans completely absent during training.
  • GenF: Tests genome-sparse families with very limited sequence diversity.
  • Hierarchical Evaluation: Performance is tracked across a "metric ladder" ranging from local base-pair recovery ($F_1$) to helix-level stems, loop types, and global graph topology.
  • Padding-Free Compute Path: They implemented a mask-aware NestedTensor execution path combined with symmetry-aware triangular convolutions. This completely removes padded positions from the computational graph, ensuring that a model's prediction for an RNA doesn't change based on the other sequences in its batch.

Datasets

The paper introduces CHANRG (Comprehensive Hierarchical Annotation of Non-coding RNA Groups), a benchmark curated from over 10 million raw sequences in Rfam 15.0. After rigorous filtering, it contains 170,083 structurally non-redundant RNAs.

Overview of the CHANRG benchmark curation funnel and dataset characteristics.

The authors benchmarked 29 different predictors across three operational classes: Structured Decoders (SD, e.g., RNAfold, EternaFold), Direct Neural Predictors (DL, e.g., SPOT-RNA), and Foundation Models (FM, e.g., RiNALMo, ERNIE-RNA).

Key Insights and Ideas

  • The Leaderboard Flip: On standard held-out test sets, foundation models dominate. But when forced to generalize to unseen RNA architectures or clans, their performance crashes. They are excellent interpolators but poor extrapolators.
  • Thermodynamics Holds the Line: Traditional physics-based or hybrid structured decoders (SDs) maintain stable performance across all distributions. Their hardcoded thermodynamic constraints act as an unbreakable regularizer against distribution shifts.
  • Scaling Doesn't Cure OOD Blindness: Simply making foundation models larger (scaling from "micro" to "giga" parameters) dramatically improves in-distribution scores but yields diminishing returns for out-of-distribution robustness.
  • Anatomy of a Collapse: The authors localized FM failures to two distinct modes: coverage failure (models become overly conservative and fail to predict true base pairs, leading to low recall) and wiring failure (models correctly identify local helices but connect them into completely incorrect global topologies).

Key Results

  • The Generalization Gap: On the standard Test split, Foundation Models achieved a stellar mean base-pair $F_1$ of 0.6731, beating Direct Neural Predictors (0.3495) and Structured Decoders (0.3015). However, on the OOD mean, FM performance plummeted to 0.1796 (retaining just 26.7% of their accuracy). Meanwhile, Structured Decoders retained 92.3% of their performance, dropping only slightly to 0.2784.
Comparison of base-pair F1 scores on Test vs. OOD mean across model classes, highlighting the performance inversion.
  • Length is Not the Culprit: Even when restricting all evaluation splits to a strictly matched length range (50–200 nucleotides), the foundation models still suffered the same catastrophic OOD drop.
  • Computational Efficiency: Switching to the padding-free NestedTensor framework reduced effective workloads from 60.7 to 10.2 billion FLOPs, yielding a 3.3-fold inference speedup and a 6.7-fold reduction in allocated GPU memory.

Limitations and Future Work

While CHANRG provides a much stricter test of generalization, the authors note a few limitations:

  • Pseudoknots: The current framework provides the strongest control over non-crossing secondary-structure topologies; complex pseudoknot interactions remain difficult to fully model and evaluate.
  • Biological Utility: The benchmark evaluates transfer via curated structural annotations rather than direct downstream biological utility (like binding affinity or translation efficiency).
  • The Path Forward: The results show that scaling up model capacity alone cannot solve structural generalization. Future breakthroughs will require architectures that natively integrate stronger transferable structural and physical priors.

Summary updated

BibTeX
@misc{chen2026fair,
  author = {Zhiyuan Chen and Zhenfeng Deng and Pan Deng and Yue Liao and Xiu Su and Peng Ye and Xihui Liu},
  title = {{Fair splits flip the leaderboard: CHANRG reveals limited generalization in RNA secondary-structure prediction}},
  year = {2026},
  eprint = {2603.22330},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.22330},
}
Figure