Simultaneous Optimization of Codon Adaptation and Thermodynamic Stability in mRNA Therapeutics via Deep Reinforcement Learning
Motivation. The efficacy of mRNA vaccines depends on translational efficiency and molecule stability, commonly captured by the codon adaptation index (CAI) and minimum free energy (MFE), respectively. These objectives are in tension, and codon degeneracy makes their simultaneous optimization in large RNA constructs encoding multiples peptides a combinatorial search problem intractable through brute-force computation. Methods. We present ReinforSeqPipe, a Deep Q-Network reinforcement learning pipeline coupling a Long Short-Term Memory (LSTM) sequence encoder with the bi-parametric MFECAI{lambda} objective as its reward function. Adapted from LinearDesign, MFECAI{lambda} is a weighted objective function of MFE- and CAI-centred subfunctions. Operating without training data, the agent performs synonymous mutagenesis guided solely by the biophysical reward, with parallel stochastic runs enabling best-of-N selection. The pipeline was applied to all 120 permutations of a five-epitope HLA-A*02:01-targeting construct at {lambda} {1, 4, 10}, with{lambda} being a parameter mediating the MFE-CAI trade-off (low {lambda} prioritizing MFE and high {lambda} prioritizing CAI). The best RNA designs were validated experimentally in Jurkat cells. Results and Conclusions. Optimized sequences achieved significantly higher MFECAI{lambda} than codon-optimized controls (145.6 {+/-} 5.8 vs. 109 {+/-} 1.8, p < 0.001), driven predominantly by improved MFE at modest CAI cost. Within ten stochastic repeats, ReinforSeqPipe matched or surpassed LinearDesign at every {lambda} setting, leading on the majority to all 120 permutations depending on {lambda}. Experimentally, the optimized mRNA showed a significantly longer half-life than synonymous and non-synonymous controls in Jurkat cells ( approx. 20 minute increase), in agreement with in silico DegScore predictions. Together, these results constitute a proof of concept that reinforcement learning is a viable, training-data-free framework for rational mRNA vaccine design.