Overview

PlasmidLM is a 19.3M-parameter 6-mer autoregressive DNA Transformer trained on a BLAST-certified sequence-cluster-disjoint split of Addgene plasmids (cluster_v3, 11,352 circular clusters with 0 cross-split BLAST hits >= 90% identity and coverage). Conditioned on 106 structural, hard-verifiable, and soft metadata tokens (<VEC_*>, <AMR_*>, <ORI_*>, <PROM_*>, <REPORTER_*>, <TAG_*>, <ELEM_*>) terminated by <SEQ>, specificity-aware GRPO post-training raises useful-plasmid yield across 468 held-out test clusters while improving covered AMRFinderPlus intact-ORF recall and maintaining 81.1% +- 0.9% novelty.

Headline Results

ModelCheckpointSingle-Shot Useful@0.5Best-of-4 UsefulViableCovered AMR Recall
PlasmidLM-kmer6 (Base)McClain/PlasmidLM-kmer647.7%78.4%74.1%58.9%
PlasmidLM-GRPO (3-seed mean)McClain/PlasmidLM-kmer6-GRPO-plannotate58.0% +- 0.7%85.5% +- 0.8%83.3% +- 0.2%65.0% +- 0.3%

Quick Start

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

repo = "McClain/PlasmidLM-kmer6-GRPO-plannotate"
tok = AutoTokenizer.from_pretrained(repo, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(repo, trust_remote_code=True, torch_dtype=torch.bfloat16).eval()

prompt = "<BOS><VEC_BACTERIAL><AMR_KANAMYCIN><ORI_COLE1><PROM_T7><SEQ>"
inputs = tok(prompt, return_tensors="pt")
out = model.generate(**inputs, do_sample=True, temperature=0.3, top_p=0.95, top_k=0, max_new_tokens=4096)
print(tok.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))

Citation

@article{thiel2026plasmidlm,
  title   = {{PlasmidLM}: A Promptable {DNA} Language Model via Verifiable-Reward Post-Training},
  author  = {Thiel, McClain and Barnes, Chris P.},
  journal = {bioRxiv},
  year    = {2026},
  doi     = {10.64898/2026.05.19.725242},
  url     = {https://doi.org/10.64898/2026.05.19.725242},
}

Download BibTeX · Download CSL-JSON · Companion paper: Effects of Structural Reward Shaping on Biophysical Properties in RL-Trained Plasmid Generators (ICML 2026)