All models

RFold

RFold predicts RNA secondary structure from sequence by treating it as a K-Rook matching problem.

Molecules, proteins and genomics · 109 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (19 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
9M
Operations
109
Framework
PyTorch
Recurrent
No
Published
ICML 2024
Cited by
0 (as of 24 October 2026)
Authors
Cheng Tan, Zhangyang Gao, Hanqun Cao and others
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m19636
Graph hash
8d5e276cb9029a7adccc92accab2936bd0edb4da610b0b639fc002c5f2aca747
Skeleton hash
fa7000ac38495bee74aa6553804406090c95ace9c4dc00814e791fb1806cc553
Architecture hash
37c45e7e755a07482b2986dcfbcedb7c8045559120fa4b937122bc034139df2e
Diagram SHA-256
e100dfd06684ca8bb55fd03034dfe62e21c144ff955a0ee207a66a36104dae8b
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

RFold predicts the secondary structure of an RNA molecule from its sequence. The paper's motivation is that RNA secondary structure is more stable and accessible in the cell than tertiary structure, which makes it essential for functional prediction. It also argues that the deep learning methods available at the time suffered from poor generalization and high complexity.

The central move is to recast the task as a K-Rook problem, which turns prediction into probabilistic matching within a finite solution space. RFold then splits that matching problem into row-wise and column-wise components, which reduces the matching complexity. The paper says this simplifies the solving process while guaranteeing the validity of the output. According to the code repository, RFold uses attention maps as its representations instead of hand-crafted features.

The paper reports competitive performance and about eight times faster inference than the leading approaches of its time. The repository's benchmarks cover the RNAStralign and ArchiveII datasets.

Key idea. RFold reformulates RNA secondary structure prediction as a K-Rook problem and solves the resulting probabilistic matching through separate row-wise and column-wise components.

  • RFold
  • RNA secondary structure prediction
  • RNA folding
  • K-Rook matching
  • K-Rook problem
  • RNA structure
  • probabilistic matching
  • RNAStralign
  • ArchiveII

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{tan2024decipheringrnasecondarystructure,
      title={Deciphering RNA Secondary Structure Prediction: A Probabilistic K-Rook Matching Perspective}, 
      author={Cheng Tan and Zhangyang Gao and Hanqun Cao and Xingran Chen and Ge Wang and Lirong Wu and Jun Xia and Jiangbin Zheng and Stan Z. Li},
      year={2024},
      eprint={2212.14041},
      archivePrefix={arXiv},
      primaryClass={q-bio.BM},
      url={https://arxiv.org/abs/2212.14041}, 
}