KnitNet: Learning to Search at Inference Time for Exact RNA Inverse Design
Organizations: 1Yale University · 2Sichuan University · 3Vanderbilt University
Abstract
RNA inverse design seeks nucleotide sequences that fold into specified target structures. Existing methods rely on learned generators that can miss exact structural matches, especially beyond their training distributions, or on costly search over a vast, multimodal sequence space. Search is further complicated by globally coupled nucleotide interactions, as correcting one pairing error can create new errors beyond a fixed repair scope. To address this, we introduce KnitNet, an inference-time scaling framework that learns from verifier feedback to refine sequences for exact fold-back matching. Starting from candidates generated for a target secondary structure, KnitNet uses mismatched folds to infer nucleotide dependencies and adapt its joint repair strategy, while an online surrogate learns to predict which edits are promising. This makes search progressively more informed and compute-efficient. Crucially, KnitNet generalizes across RNA structural regimes by changing only the optimization signal to match the verifier required by each setting. Across five secondary-structure benchmarks, KnitNet increases exact solve rates by an average of 21 percentage points over continued sampling with 70% less time-to-solve. On OpenKnot57 specifically, KnitNet is the first method to achieve exact computational matches for all complex, pseudoknotted structures. Beyond 2D, KnitNet improves 3D structural self-consistency over per-target RL by 7.8% while being 39.3% faster, demonstrating generalization and effective inference-time scaling across RNA design regimes.
Figures & tables
| Pipeline | Exact (%) | Jaccard | MCC |
|---|---|---|---|
| KnitNet (extended) | 32.27 | 0.7054 | 0.7798 |
| DesiRNA (native) | 31.75 | 0.6846 | 0.7616 |
| KnitNet KnitNet | 25.60 | 0.6700 | 0.7517 |
| KnitNet NEMO | 25.13 | 0.6510 | 0.7334 |
| OpenKnot57 | Eterna100-v2 | |||||
|---|---|---|---|---|---|---|
| Configuration | Exact (/57) | Solve AUC | AUC 95% CI | Exact (/100) | Solve AUC | AUC 95% CI |
| Full KnitNet search | 57 | 0.963 | – | 85 | 0.768 | – |
| W/o surrogate ranking | 56 | 0.948 | 82 | 0.743 | ||
| W/ fixed repair problem | 55 | 0.936 | 72 | 0.701 | ||
| W/ random repair scope | 54 | 0.928 | 77 | 0.714 | ||
| W/ linear surrogate ranking | 56 | 0.951 | 81 | 0.736 | ||
| Method | scTM | GDT TS | RMSD (Å) |
|---|---|---|---|
| A. 2D generators | |||
| KnitNet | |||
| + KnitNet search | |||
| Struct2SeQ-OA | |||
| + KnitNet search | |||
Appendix figures & tables13 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Verifier | Length | PK (%) | Exact | NN p95 / max | |
|---|---|---|---|---|---|---|
| OpenKnot57 | 57 | RibonanzaNet-SS | 48 / 100 / 240 | 100.0 | 0/57 | 0.484 / 0.606 |
| PseudoBase++-339 | 339 | RibonanzaNet-SS | 21 / 57 / 418 | 100.0 | 0/339 | 0.750 / 0.960 |
| Eterna100-v2 | 100 | ViennaRNA | 12 / 104 / 400 | 0.0 | 0/100 | 0.595 / 0.889 |
| Rfam-Learn-Test | 100 | ViennaRNA | 51 / 250 / 447 | 0.0 | 0/100 | 0.550 / 0.892 |
| Rfam-Taneda | 29 | ViennaRNA | 55 / 152 / 452 | 0.0 | 0/29 | 0.740 / 0.955 |
| Ablation-500 (internal) | 500 | RibonanzaNet-SS | 20 / 182 / 511 | 67.2 | 0/500 | 0.893 / 0.986 |
| Setting | Value |
|---|---|
| Optimizer | AdamW, , |
| Weight decay | |
| Peak learning rate | |
| Warmup | Linear from for 105,565 updates (10%) |
| Decay | Cosine, minimum learning rate |
| Effective batch size | 1,024 sequences |
| Generator | Sampling |
|---|---|
| KnitNet | 32 diffusion steps, temperature 0.8, top- , confidence-ordered pairwise commits with Watson–Crick and wobble pairs, final argmax. |
| Struct2SeQ-OA | Random decoding orders. 32 samples each from -greedy decoding at and , and Q-softmax decoding. |
| gRNAde | Autoregressive sampling at temperature 0.1. |
| NA-MPNN | Random decoding orders at temperature 0.1. |
| RIDE | 50 stochastic DDIM steps at temperature 0.1. |
| RiboDiffusion | 50 ancestral diffusion steps with a cosine variance-preserving schedule and self-conditioning, using EMA weights. |
| Method | Variant | Exact | Solve AUC | Jaccard | MCC | Capped TTS (min) |
|---|---|---|---|---|---|---|
| A. OpenKnot57 (57 targets) | ||||||
| A.1 Generator baselines | ||||||
| Struct2Seq | Generation only | – | – | |||
| + Continued sampling | ||||||
| + KnitNet search | ||||||
| Struct2Seq OA | Generation only | – | – | |||
| Method | Variant | Exact | Solve AUC | Jaccard | MCC | Capped TTS (min) |
|---|---|---|---|---|---|---|
| A. Eterna100 (100 targets) | ||||||
| A.1 Generator baselines | ||||||
| Struct2SeQ | Generation only | – | – | |||
| + Continued sampling | ||||||
| + KnitNet search | ||||||
| Struct2SeQ OA | Generation only | – | – | |||
| Target length (nt) | KnitNet | Struct2SeQ-OA |
|---|---|---|
| ( ) | ( ) | |
| – | ( ) | ( ) |
| – | ( ) | ( ) |
| – | ( ) | ( ) |
| – | ( ) | ( ) |
| Overall | ( ) | ( ) |
| Symbol | Meaning |
|---|---|
| Problem and initialization | |
| , , | Target length, RNA alphabet , and a candidate sequence |
| Target secondary structure as a set of nucleotide pairs, including crossing pairs | |
| Pair set predicted for by the folding oracle | |
| Missing target pairs and unwanted predicted pairs | |
| Evaluated initial sequences sampled from the frozen generator | |
Inverse Design
Inverse design maps desired properties or behaviors to materials, geometries, molecules, and systems that can realize them.
See all 121 papers