Skip to content

Effects of Structural Reward Shaping on Biophysical Properties in RL-Trained Plasmid Generators

McClain Thiel, Angus G. Cunningham, Chris P. Barnes

cs.LG

Abstract

We compare the efficacy and distributional effects of supervised fine-tuning (SFT) and reinforcement learning (RL) post-training for PlasmidGPT, a foundation model for whole-plasmid generation, using Group Relative Policy Optimization (GRPO) for the RL model. Using a biologically motivated reward function encoding functional annotations, length constraints, and repeat penalties, the RL model achieves a 71.6% quality-control pass rate across 8 prompts on 4,000 sequences, compared to 4.3% for the pretrained baseline and 11.0% for SFT. A five-model reward ablation identifies the cassette arrangement bonus, which rewards correct promoter->CDS->terminator ordering, as the critical reward component. Rejection-sampling baselines indicate that the gain is not recovered by sampling up to K=64K=64 candidates from the base model (54.5%), while matching single-sample RL requires 16×16\times more rejection samples from SFT. Beyond directly optimized features, RL-generated sequences converge toward real plasmid distributions in 3-mer composition and minimum free energy density, neither of which is directly optimized by the reward function. Minimum free energy density independently converges to the real-plasmid regime under both SFT and RL despite these being parallel post-training paths. On 29 curated non-Addgene held-out plasmids, RL improves per-token continuation log-likelihood over the pretrained baseline on all 29 sequences (mean Δ=+0.83Δ= +0.83 nats), though SFT achieves higher predictive log-likelihood (−7.35-7.35 vs. −8.16-8.16 nats).

Create a lesson

Metadata

Journal
Proceedings of the 43rd International Conference on Machine Learning, PMLR 306:120490-120503 (2026)
Comments
15 pages, 5 figures. Revised version of ICML 2026 paper (https://proceedings.mlr.press/v306/thiel26a.html). Code: https://github.com/UCL-CSSB/PlasmidRL