Abstract
Rising costs in recent years of developing new drugs and treatments have led to extensive research in optimization techniques in biomolecular design. Currently, the most widely used approach in biomolecular design is directed evolution, which is a greedy hill-climbing algorithm that simulates biological evolution. In this paper, we propose a new benchmark of applying reinforcement learning to RNA sequence design, in which the objective function is defined to be the free energy in the sequence's secondary structure. In addition to experimenting with the vanilla implementations of each reinforcement learning algorithm from standard libraries, we analyze variants of each algorithm in which we modify the algorithm's reward function and tune the model's hyperparameters. We show results of the ablation analysis that we do for these algorithms, as well as graphs indicating the algorithm's performance across batches and its ability to search the possible space of RNA sequences. We find that our DQN algorithm performs by far the best in this setting, contrasting with previous benchmarks in which PPO performs the best among all tested algorithms. Our results should be of interest to those in the biomolecular design community and should serve as a baseline for future experiments involving machine learning in molecule design.
Introduction
In the fields of drug discovery and bioengineering, designing molecules with specific structural properties is a high-stakes optimization problem. The traditional gold standard, directed evolution, functions as a greedy hill-climbing algorithm that mimics natural selection through iterative, small-scale modifications. However, directed evolution is often resource-intensive and prone to converging on local optima rather than global solutions.
This research focuses on RNA secondary structure design, where the objective is to find an RNA sequence that folds into a stable configuration with the lowest possible free energy. Stable RNA molecules are essential for CRISPR-based therapeutics and RNA primers, yet the search space for these sequences is vast. We propose a reinforcement learning (RL) framework to navigate this space more efficiently.
Methods
We modeled RNA design as an RL environment where an agent learns to optimize sequences through trial and error.
- State: The current RNA sequence (composed of nucleotides A, C, G, and U).
- Action: A "flip" operation, changing one nucleotide in the sequence.
- Reward: The fitness value, calculated as the inverse of the free energy of the resulting secondary structure.
We evaluated three primary models:
- Deep Q-Network (DQN): Specifically, a version utilizing Prioritized Experience Replay (PER) to enhance learning from rare, high-fitness sequences.
- Proximal Policy Optimization (PPO): A state-of-the-art policy gradient method.
- Greedy Search (Baseline): A model simulating traditional directed evolution to provide a performance benchmark.
The ViennaRNA library served as the environment, providing real-time free energy calculations. A significant challenge involved preventing agents from becoming trapped in cycles (repeatedly flipping the same bases). We found that a "try again" policy—forcing the agent to explore unseen states without penalizing the reward signal—was more effective than direct reward-based penalties for state revisitation.
Results
Our evaluation demonstrates that Deep Reinforcement Learning, particularly DQN, offers a substantial improvement over traditional methods.
DQN vs. Greedy Baseline
The DQN agent achieved significantly higher fitness scores than the greedy hill-climbing baseline. While the greedy model reached a maximum fitness of approximately 0.24 (Figure 1), the DQN agent with Prioritized Experience Replay reached a maximum fitness of approximately 0.45 (Figure 2).
Algorithm Comparison and Ablation
- DQN Superiority: DQN performed "by far the best" in this environment. This is a notable departure from other biomolecular benchmarks where PPO typically leads. We suggest that for RNA, the latent similarities between high-energy structures make the Q-learning approach more effective.
- PPO Limitations: Surprisingly, PPO performed worse than the simple greedy baseline. We hypothesize that the massive action space (flipping any base at any position) generates noisy signals that cause PPO to converge prematurely on mediocre solutions.
- Regularization Effects: In ablation studies, "plain" DQN (without complex reward penalties for looping) achieved optimal results nearly twice as high as versions with heavy regularization. This suggests that the topology of the RNA fitness landscape is sensitive to reward signal distortion.
Conclusion
Our results indicate that Deep Reinforcement Learning, specifically DQN with Prioritized Experience Replay, is a powerful tool for RNA secondary structure design. By outperforming the traditional directed evolution baseline, this approach provides a more efficient path toward designing stable biomolecules. Future work will involve expanding this benchmark to broader biological design tasks and validating these computational results through wet-lab experimentation.
Summary updated