RiboSphere: Learning Unified and Efficient Representations of RNA Structures
Organizations: State Key Laboratory for Novel Software Technology at Nanjing University, School of Computer Science, Nanjing University · The Chinese University of Hong Kong · Stanford University
Abstract
Accurate RNA structure modeling remains difficult because RNA backbones are highly flexible, non-canonical interactions are prevalent, and experimentally determined 3D structures are comparatively scarce. We introduce RiboSphere, a framework that learns discrete geometric representations of RNA by combining vector quantization with flow matching. Our design is motivated by the modular organization of RNA architecture: complex folds are composed from recurring structural motifs. RiboSphere uses a geometric transformer encoder trained using mean-centered coordinates and random rotation augmentation to produce geometry-aware features, which are discretized with finite scalar quantization (FSQ) into a finite vocabulary of latent codes. Conditioned on these discrete codes, a flow-matching decoder reconstructs atomic coordinates, enabling high-fidelity structure generation. We find that the learned code indices are enriched for specific RNA motifs, suggesting that the model captures motif-level compositional structure rather than acting as a purely compressive bottleneck. Across benchmarks, RiboSphere achieves strong performance in structure reconstruction (RMSD 1.25,Å, TM-score 0.84), and its pretrained discrete representations transfer effectively to inverse folding and RNA--ligand binding prediction, with robust generalization in data-scarce regimes. Code is available at https://github.com/Zhangz312/RiboSphere.
Figures & tables
| Method | # Enc | # Dec | Dim | # Atoms | Structure | VQ | |||
| RMSD | TM-score | lDDT | Codebook | % Util. | |||||
| E2-D8, D256, A1 | 2 | 8 | 256 | 1 | 2.14 | 0.70 | 0.73 | 240 | 100.0 |
| E2-D8, D256, A10 | 2 | 8 | 256 | 10 | 1.80 | 0.76 | 0.77 | 240 | 100.0 |
| E2-D8, D256, A11 | 2 | 8 | 256 | 11 | 2.05 | 0.71 | 0.73 | 240 | 100.0 |
| E6-D6, D512, A1 | 6 | 6 | 512 | 1 | 1.88 | 0.73 | 0.75 | 1,000 | 95.0 |
| E6-D6, D512, A10 | 6 | 6 | 512 | 10 | 2.44 | 0.67 | 0.71 | 1,000 | 88.5 |
| Method | Sequence | 2D Struct. | 3D Struct. | |||
|---|---|---|---|---|---|---|
| Div. ( ) | Rec. ( ) | scMCC ( ) | RMSD ( ) | TM-score ( ) | pLDDT ( ) | |
| RiFold ( Liu et al., 2025a ) | 0.89 | 0.416 | 0.28 | 17.06 | 0.12 | 0.50 |
| RDesign ( Tan et al., 2024 ) | 0.84 | 0.415 | 0.20 | 16.81 | 0.12 | 0.45 |
| RIDiffusion ( Hou et al., 2025 ) | 0.85 | 0.533 | 0.59 | 10.66 | 0.25 | 0.60 |
| gRNAde ( Joshi et al., 2025 ) | 0.83 | 0.529 | 0.60 | 11.45 | 0.29 | 0.62 |
| RiboSphere | 0.82 | 0.630 | 0.63 | 11.54 | 0.29 | 0.55 |
| Method | AUROC-Biosensor | AUROC-Robin | ||||||
|---|---|---|---|---|---|---|---|---|
| Random | RNA | Ligand | Homol. & | Random | RNA | Ligand | Homol. & | |
| homology | fingerprint | fingerpr. | homology | fingerprint | fingerpr. | |||
| RSAPred ( Krishnan et al., 2024 ) | 0.8764 | 0.7550 | 0.6707 | 0.6019 | 0.6327 | 0.5392 | 0.6320 | 0.4938 |
| DeepDTIs ( Wen et al., 2017 ) | 0.9300 | 0.8399 | 0.6813 | 0.6118 | 0.6302 | 0.5503 | 0.6290 | 0.4987 |
| DeepConv-DTI ( Lee et al., 2019 ) | 0.9249 | 0.8427 | 0.6894 | 0.6213 | 0.6301 | 0.5625 | 0.6390 | 0.5104 |
| GraphDTA ( Nguyen et al., 2021 ) | 0.8992 | 0.8284 | 0.7014 | 0.6370 | 0.6590 | 0.5528 | 0.6481 | 0.5510 |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| Parameter | Value |
|---|---|
| Encoder layers | 2 / 4 / 6 / 8 |
| Decoder layers | 2 / 4 / 6 / 8 |
| Attention heads | 8 |
| Encoder channels | 256 / 512 |
| Decoder channels | 512 |
| Pair-bias channels | 64 |
| Method | # Enc | # Dec | Dim | # Atoms | Structure | VQ | |||
| RMSD | TM-score | lDDT | Codebook | % Util. | |||||
| E6-D6, D512, A1 | 6 | 6 | 512 | 1 | 3.03 | 0.63 | 0.70 | 240 | 100 |
| E6-D6, D512, A10 | 6 | 6 | 512 | 10 | 2.70 | 0.67 | 0.71 | 240 | 100 |
| E6-D6, D512, A11 | 6 | 6 | 512 | 11 | 2.89 | 0.65 | 0.71 | 240 | 100 |
| E6-D6, D512, A1 | 6 | 6 | 512 | 1 | 1.88 | 0.73 | 0.75 | 1,000 | 95.0 |
| E6-D6, D512, A10 | 6 | 6 | 512 | 10 | 2.44 | 0.67 | 0.71 | 1,000 | 88.5 |