Designing RNAs with Language Models
Milan Gautam, Ning Dai, Tianshuo Zhou, Bowen Xie, David Mathews, Liang Huang
TL;DR
This work reframes RNA design as conditional sequence generation by conditioning a decoder-only language model on target dot-bracket structures and enforcing base-pairing constraints with a constrained decoding scheme. Starting from a pretrained decoder, the authors perform a minimal RNA-focused adaptation and train via supervised learning on solver-generated structure–design pairs, followed by reinforcement learning to optimize thermodynamics-based rewards. The approach achieves state-of-the-art ensemble metrics across four RNA-design benchmarks while being substantially faster than per-instance optimization, demonstrating the viability of amortized neural solvers for RNA inverse folding. The release of carefully constructed SL and RL datasets and the demonstrated efficiency gains suggest broad applicability of structure-conditioned LMs for scalable RNA design and related design tasks.
Abstract
RNA design, the task of finding a sequence that folds into a target secondary structure, has broad biological and biomedical impact but remains computationally challenging due to the exponentially large sequence space and exponentially many competing folds. Traditional approaches treat it as an optimization problem, relying on per-instance heuristics or constraint-based search. We instead reframe RNA design as conditional sequence generation and introduce a reusable neural approximator, instantiated as an autoregressive language model (LM), that maps target structures directly to sequences. We first train our model in a supervised setting on random-induced structure-sequence pairs, and then use reinforcement learning (RL) to optimize end-to-end metrics. We also propose methods to select a small subset for RL that greatly improves RL efficiency and quality. Across four datasets, our approach outperforms state-of-the-art systems on key metrics such as Boltzmann probability while being 1.7x faster, establishing conditional LM generation as a scalable, task-agnostic alternative to per-instance optimization for RNA design. Our code and data are available at https://github.com/KuNyaa/RNA-Design-LM.
