cs.LGSep 25, 2026

Differentiable RNA Secondary Structure Extraction for Deep Learning

Authors: Tyler Illman, Max Ward, Marcell Szikszai, Ryan K. Krueger

Organizations: School of Physics, Maths and Computing The University of Western Australia · School of Engineering and Applied Sciences Harvard University

Abstract

Many deep learning approaches to RNA secondary structure prediction have recently been proposed. They typically output a weight matrix WW where WijW_{ij} is an arbitrary weight for base ii pairing with base jj. Converting this matrix to a predicted secondary structure or base-pairing probability matrix typically involves ad hoc and problematic downstream algorithms. Despite the importance of this conversion step, which we refer to as structure extraction, it has received relatively little attention in the literature. In this work, we analyze how the congruence between training and extraction methods affects prediction performance. To do this, we compare four extraction algorithms: a Nussinov-like dynamic programming method, maximum-weight graph matching and the greedy extraction algorithms used by SPOT-RNA and RiNALMo. These are evaluated on outputs from the pretrained RiNALMo model and three toy models trained in this paper: a differentiable Nussinov-like model, a binary cross-entropy (BCE) baseline, and a model that incorporates a novel symmetric doubly stochastic matrix (SDSM) normalization algorithm during training which allows it to output base-pairing probability matrices directly, without a separate extraction step. This SDSM normalization algorithm is differentiable and can be added inline to any deep learning model during training and evaluation. We find that the performance of each extraction method depends strongly on how the corresponding model was trained. Considering the toy models themselves, the SDSM model showed the strongest overall performance: it outperformed the BCE baseline under all four extraction algorithms and produced pre-extraction outputs closest to the ground truth. These results suggest that SDSM normalization is a tractable alternative to traditional structure extraction.

Figures & tables

Appendix figures & tables7 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

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

    Mar 20, 2026Zhiyuan Chen, Zhenfeng Deng, Pan Deng +4OOD Generalization

  2. ZeroFold: Protein-RNA Binding Affinity Predictions from Pre-Structural Embeddings

    Mar 24, 2026Josef Hanke, Sebastian Pujalte Ojeda, Shengyu Zhang +3Molecular Property PredictionMolecular Representation Learning

  3. RiboSphere: Learning Unified and Efficient Representations of RNA Structures

    Mar 20, 2026Zhou Zhang, Hanqun Cao, Cheng Tan +3Molecular Representation LearningRepresentation Learning