KnitNet: Learning to Search at Inference Time for Exact RNA Inverse Design
Panescu et al. in Reasoning
Can failed RNA folds reveal which bases to repair together?
KnitNet: Learning to Search at Inference Time for Exact RNA Inverse Design
Success means exact fold-back
A target is a set of nucleotide pairs; crossings allow pseudoknots.
A candidate succeeds only when its complete verifier-predicted pair set equals the target.
This tests structural fold-back, not native-sequence recovery.
KnitNet freezes its generator, then learns from folds

A frozen graph-conditioned diffusion generator, pretrained on over 20 million RNAcentral sequences with predicted structures, supplies 96 candidates; verifier feedback steers joint repairs.
Each failed fold rebuilds the repair problem
- 1
Read the fold errors
Missing target pairs and unwanted predicted pairs mark errors.
- 2
Build the error graph
Link target-pair and unpaired-position units at error endpoints, starting with the component around a recurrent conflict.
- 3
Rank before folding
A local ExtraTrees surrogate predicts prioritized and total error counts, ranks joint edits before costly folds, and refits as scope changes; uniform exploration continues.
- 4
Adapt to residuals
Residual errors update priorities; scope may grow after stalls, cleared priorities with residual errors, or exhausted proposals.
Matched compute favors repair over sampling

Solid curves are KnitNet; dashed are continued sampling. Both use the same 96 candidates. At equal post-initialization time, KnitNet has higher exact coverage in every matched setting across five benchmarks (three-seed means).
A matched pseudoknot search still favors KnitNet
OpenKnot57; 30m post-init/target. In-house DesiRNA-RNSS uses KnitNet starts and RibonanzaNet-SS guidance; mean ± sample SD, 3 seeds (pseudoknot table).
Freezing the repair problem costs exact solves
The ablation freezes both editable scope and error priorities within each repair episode.
Full KnitNet adapts priorities and scope from folds; these component tests use 96 starts and a 64-tree surrogate.
At 15,000 logical oracle evaluations, Eterna100-v2: full search 85/100 exact solves vs 72/100 with a fixed repair problem.
What exact computational folds cannot establish
Verifier defines truth
A 2D exact match is equality under a selected computational folding oracle, not experimental confirmation.
Long RNAs
In held-out 401-511 nt targets, 2/56 solved in one hour; oracle throughput fell from about 37 to 2 evaluations per second across length bins.
No wet-lab validation
These 2D results are computational fold-back matches; experimental structural and functional validation remains future work.
Why it matters
- Across matched tests, KnitNet's verifier-guided repair found exact folds more effectively than spending the same time on more samples.
- For computational 2D design, pair a frozen structure-conditioned generator with target-specific repair when exact fold-back is the objective.
- The next test is whether computationally exact folds translate to experimentally verified structures and useful RNA function.
9 slides, 2 min
5 days ago