KnitNet: Learning to Search at Inference Time for Exact RNA Inverse Design

arXiv:2611.33812 · q-bio.BM, cs.AI, cs.LG · Submitted 2026-11-25 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: Genomics Radio. Generated commentary on the latest computational biology and genomics papers.

Ines: I'm Ines.

Marcus: And I'm Marcus, here with Yuki.

Ines: We're looking at the paper: "KnitNet: Learning to Search at Inference Time for Exact RNA Inverse Design".

Title and authors: Ines: We've talked about the title and authors of this paper called "KnitNet: Learning to Search at Inference Time for Exact RNA Inverse Design". The authors are Panescu, Wang, Xu, Chen, Oliver, and Ying from Yale University and Sichuan University.

Marcus: Basically, the title tells you exactly what they're doing: they are learning how to search during the inference stage for exact RNA inverse design. It's not just a static generation process anymore; it's an adaptive search that refines sequences as it goes.

Yuki: From my perspective, I see this as moving from a purely generative model to something that incorporates an active, feedback-driven refinement loop, which is essential when the target structure is known.

Ines: Right. It means the system isn't just throwing out candidates and hoping one works; it’s using the folding feedback to steer its next steps toward a correct answer more intelligently. The implications are that we can tackle harder structural targets with much less brute force searching.

Marcus: And that’s where I see the impact: if you can reduce the time needed to find an exact match by a factor of seventy percent, that changes the entire feasibility landscape for designing RNA sequences for biological applications.

Yuki: It means we can move beyond just simpler targets and start designing sequences with more intricate, pseudoknotted structures that are actually biologically relevant.

Ines: Exactly. They’re showing how to handle those globally coupled nucleotide interactions by inferring dependencies from mismatched folds, which is a key challenge in inverse design.

Marcus: And the authors are tackling that complexity directly through their counterexample-guided joint repair mechanism, which is a specific technique designed to manage those errors in a way that goes beyond simple local fixes.

Yuki: I wonder how this learning process works—is it just pattern matching, or is it truly inferring the underlying physical or chemical rules of RNA folding from the errors?

Ines: They are learning to do both; they use mismatched folds to infer nucleotide dependencies, which suggests they are building a model of how the sequence dictates the structure through these interactions.

Marcus: That inference about dependencies is what allows them to expand their repair scope beyond local repair limitations, which means you can fix bigger structural issues in one go.

The paper's summary: Ines: So, summarizing the paper again, KnitNet is an RNA inverse-design framework that combines structure-conditioned sequence generation with adaptive inference-time repair based on learning from folding feedback. It starts by generating candidates from a target secondary structure graph.

Marcus: Then, these candidates go through contextual joint repair where an online surrogate ranks coordinated nucleotide assignments and uses verifier specific scores to guide the search process as it refines the sequences iteratively.

Yuki: So it’s like they take a bunch of initial guesses, and then for each guess, they immediately check how bad the fold is against the target structure to get feedback.

Ines: Precisely; that feedback allows them to learn which edits are promising and which expensive folding calls are necessary based on a learned evaluation model that predicts improvement.

Marcus: The key takeaway here is that this makes the search progressively more informed, meaning the AI isn't just guessing randomly anymore; it's actively learning what kind of changes lead to better results.

Yuki: That active learning aspect is what connects this to biology because biological systems aren't static; they are dynamic, and this framework mimics that by constantly updating its search strategy based on the observed outcomes.

Ines: And they emphasize that by repairing from folding counterexamples, they can revise the repair problem in subsequent iterations, which is how they update priorities and scope based on global structural feedback.

Marcus: It’s not just a single fix anymore; it's a whole sequence optimization driven by the evolving understanding of what errors are most detrimental to matching the target structure.

The paper's improvements: Ines: The authors highlight several key improvements they made, including learning to search at inference time allows AI systems to refine sequences based on verifier feedback to achieve exact fold-back matching, increasing exact solve rates by an average of twenty-one percentage points over continued sampling with seventy percent less time-to-solve.

Marcus: That efficiency gain is huge because it shows they've managed to get a massive jump in accuracy while simultaneously slashing the time it takes to achieve that accuracy.

Yuki: A twenty-one percentage point increase in exact solve rates is substantial when you consider the difficulty of these problems; it means they are finding sequences that match the target structure much more reliably.

Ines: They also point out counterexample guided joint repair, which derives an error graph from observed base-pairing errors to infer nucleotide dependencies and expand the editable scope for joint optimization, overcoming the limitation of local repair.

Marcus: So they’ve overcome that limitation where you were stuck fixing one thing at a time by using that error graph to see how different errors are related across the whole sequence.

Yuki: That ability to see global dependencies is what makes it powerful for biological systems, as we know those interactions happen all over the structure simultaneously.

Ines: They also have an online surrogate that learns to predict which edits are promising, which helps make the search progressively more informed and compute-efficient by limiting expensive folding evaluations to only those most likely to yield improvement.

Marcus: That predictive element is what makes it smart—it prevents the system from spending its resources on bad repairs, making the whole process much more compute-efficient.

Yuki: It suggests that we need AI methods that don't just brute force everything but use some kind of learned intuition to navigate the search space effectively.

Conclusion: Ines: So wrapping up on this paper, KnitNet is a framework for RNA inverse design that uses learning from folding feedback to adapt its search strategy in real time to achieve exact fold-back matching. It’s about leveraging that feedback to refine sequences based on structural errors.

Marcus: The main implication is the improved efficiency—they showed they can do this with seventy percent less time while increasing exact solve rates by twenty-one percentage points over continued sampling.

Yuki: For the wider field, it suggests that we can design more accurate and structurally complex RNA sequences in a much more practical computational timeframe.

Ines: And the system is shown to generalize across different structural regimes, handling both pseudoknotted and planar structures effectively without needing a specific model for each one.

Marcus: So, they’ve achieved this by coupling generation with adaptive inference-time repair guided by learned evaluation models that prioritize the most promising edits.

Yuki: It’s a really useful development because it shows how incorporating structural knowledge directly into the search loop can lead to more robust sequence designs in biological engineering.

Ines: That's the essence of KnitNet: using folding results not just to validate a guess, but to actively change the subsequent guesses based on what those results tell us about the structure.

Antonia Panescu, Xin Wang, Haoran Xu, Qingyu Chen, Carlos Oliver, Rex Ying

Yale University · Sichuan University · Vanderbilt University

q-bio.BM, cs.AI, cs.LG

Submitted: 2026-11-25

Updated: 2026-11-25

Code: https://github.com/antonia-panescu/KnitNet

License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/

Importance score: 93/100

The gist: KnitNet is a two-stage RNA inverse-design framework that learns from folding feedback at inference time to adapt its search strategy…

Key concepts

Counterexample-Guided Joint Repair
This technique uses errors found when a candidate structure fails to match the target as 'counterexamples.' By analyzing these errors, KnitNet builds an error graph that reveals how different nucleotides are interconnected. This allows the system to optimize multiple nucleotide changes simultaneously, rather than making small, isolated repairs.
Adaptive Decision Making
KnitNet makes three dynamic choices during its search process. It decides which nucleotides should be jointly optimized, which specific edits require an expensive folding calculation based on a learned model, and how to prioritize future repairs as new structural feedback becomes available. This adaptation guides the search toward more effective solutions.
Structure-Conditioned Masked Diffusion Model
The first stage of the framework uses a diffusion model conditioned on the target RNA secondary structure graph to generate initial candidate nucleotide sequences. This model starts with structural knowledge and generates sequences that are likely to fold into the desired shape, providing a strong starting point for refinement.
Verifier Feedback Loop
KnitNet learns to use feedback from a verifier—a tool that checks if a generated structure matches the target—to revise its repair problem. This feedback is crucial because it informs the system about global structural errors, allowing it to expand the scope of possible fixes and update its search priorities iteratively.

Terminology

Summary

KnitNet is a two-stage RNA inverse-design framework that learns from folding feedback at inference time to adapt its search strategy, enabling it to efficiently find nucleotide sequences whose predicted structures match a target exactly. p. 1 Its core contribution is counterexample-guided joint repair, which derives an error graph from observed base-pairing errors to infer nucleotide interdependencies and expand the scope for joint optimization beyond local repair limitations. p. 1 KnitNet couples three adaptive decisions: (1) selecting interacting nucleotides for joint optimization, (2) determining which coordinated edits warrant expensive folding calls based on a learned evaluation model, and (3) prioritizing subsequent repairs as new folding feedback becomes available. p. 3

The framework operates in two main stages: first, generating initial candidates using a structure-conditioned masked diffusion model conditioned on the target RNA secondary structure graph; and second, refining these candidates through contextual joint repair. p. 2 This refinement involves an online local surrogate that ranks coordinated nucleotide assignments and verifier-specific scores that guide the search. p. 2 Crucially, KnitNet learns to repair from folding counterexamples—errors exposed by candidate folds—to revise the repair problem in subsequent iterations, thereby updating priorities and scope based on global structural feedback. p. 3

KnitNet significantly improves search efficiency by converting additional inference time into exact solutions more effectively than continued sampling across generators, planar and pseudoknotted targets, and various folding objectives. p. 9 Across multiple secondary-structure benchmarks, KnitNet Search increases exact solve rates substantially—for instance, achieving an average increase of 21 percentage points over continued sampling with 70% less time-to-solve. p. 0 On OpenKnot57 specifically, KnitNet is noted as the first method to achieve exact computational matches for all complex, pseudoknotted structures. p. 0 Furthermore, KnitNet demonstrates remarkable generalization; it transfers across different target distributions and folding objectives (including 3D design), showing no dependence on a single target topology, folding model, reward formulation, data distribution, or initialization distribution. p. 6 Mechanistic analysis reveals that verifier feedback is key to expanding the repair scope and addressing globally-coupled nucleotide errors. p. 9

Performance evaluations show that KnitNet outperforms existing methods; for example, it improves 3D structural self-consistency over per-target Reinforcement Learning by 7. p. 58% while being 39. p. 03% faster. In terms of exact recovery, KnitNet retains an advantage over the strongest tested baseline across RNA sequence lengths from 20 to 511 nucleotides, and it improves approximate recovery on substantially longer RNAs, although identifying long-sequence exact design remains a limitation. p. 8 Overall, KnitNet search converts inference time into more exact solutions than continued sampling across generators and various objectives. p. 9

Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.

Improvements for AI systems

  1. Learning to search at inference time allows AI systems to refine sequences based on verifier feedback to achieve exact fold-back matching, increasing exact solve rates by an average of 21 percentage points over continued sampling with 70% less time-to-solve.

  2. The system can perform counterexample guided joint repair, which derives an error graph from observed base-pairing errors to infer nucleotide dependencies and expand the editable scope for joint optimization, overcoming the limitation of local repair.

  3. An online surrogate learns to predict which edits are promising, making search progressively more informed and compute-efficient by limiting expensive folding evaluations to those most likely to yield improvement.

  4. The framework generalizes across RNA structural regimes by changing only the optimization signal to match the verifier required by each setting, enabling successful design on both pseudoknotted and planar structures.

  5. The system can improve 3D structural self-consistency over per-target reinforcement learning by 7.8% while being 39.3% faster when applied to PDB-derived RNA structures, demonstrating generalization to three dimensional use cases.

Sources

Related papers