Hugging FaceMaziyar PanahiBenchmark
Training mRNA Language Models Across 25 Species for $165
Summary
OpenMed describes an end-to-end protein engineering pipeline that connects ESMFold structure prediction, ProteinMPNN sequence design, and custom mRNA codon optimization. The codon-language-model study compares CodonBERT, ModernBERT, and several CodonRoBERTa variants using 250,000 E. coli coding sequences, a 69-token codon vocabulary, masked-language modeling, and training on four 80GB A100 GPUs. CodonRoBERTa-large-v2 achieved perplexity 4.10, CAI Spearman correlation 0.404, and 7.7% synonymous recovery, while ModernBERT-base reached perplexity 26.24 and correlation 0.070. The work then trained a multi-species suite on 381,283 sequences spanning 25 species, producing four production models in 55 GPU-hours and documenting planned extensions such as larger training data and additional prediction heads.
Context
The project aimed to build a complete pipeline from a protein concept to expression-ready DNA, combining structure prediction, amino acid sequence design, and codon optimization. Its main technical question was which transformer architecture best models codon-level sequences, whose statistical properties include a 64-token alphabet, positional dependencies, and species-specific usage biases.
Approach / What changed
The pipeline uses ESMFold v1 for structure prediction, ProteinMPNN for sequence design, and custom transformer models for codon optimization. The architecture study trained models on 250,000 E. coli CDS with a 69-token codon vocabulary and a 15% masked-language-modeling objective, then scaled the selected CodonRoBERTa design to 381,283 sequences across 25 species using FSDP training.
Takeaways
The tokenizer represents each codon as one token, using 64 codons plus PAD, UNK, CLS, SEP, and MASK rather than learned BPE subwords.
All architecture comparisons used the same data and evaluation protocol, with 15% masking and 15,000–25,000 training steps on four A100 80GB GPUs with FSDP sharding.
Planned work includes training on mRNABERT’s public 36-million-sequence dataset, adding ProtT5-XL cross-modality alignment, and extending species-specific fine-tuning to YEAST, PICHIA, and MOUSE.
Source and freshness
- Source
- huggingface.co
- Published
- Added to Yomu
- Last updated
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.