Effects of Structural Reward Shaping on Biophysical Properties in RL-Trained Plasmid Generators
Abstract
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 more heavily from the base model. 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 a small curated hold-out set, RL improves continuation log-likelihood over the pretrained baseline on all 29 held-out sequences (mean Δ = +0.83 nats).
Fields of Study & Subjects
Machine Learning and Algorithms
Language and cultural evolution
DNA and Biological Computing
Publication details
- Journal / source
- bioRxiv (Cold Spring Harbor Laboratory)
- Publisher
- openRxiv
- Publication date
- 26 March 2026
- Document type
- Preprint