bioRxivBioinformaticsPreprint
CodonTranslator: a conditional codon language model for codon optimization across all domains of life
Yanshuo CheniD, Yuming ZhangiD, Joshua Li, Boxue TianiD, Heng HuangiD
Abstract
Codon optimization involves selecting synonymous codons to match host-specific preferences. It is critical for heterologous expression but remains challenging due to the combinatorial design space. Under long-term evolutionary selection, natural coding sequences are near-optimal compromises between translational efficiency, accuracy, and regulatory constraints, providing a de facto standard for data-driven models. Recent deep learning-based language models therefore aim to learn the distribution of natural codon sequences and reuse it for design. However, existing approaches discard the rich semantic structure of taxonomic lineages, underutilize protein functional and evolutionary constraints, and often rely on masked-language objectives that lack a principled mechanism for sequence generation. Here we present CodonTranslator, a 150M-parameter decoder-only Transformer trained on 62 million CDS-protein pairs from over 2,100 species. CodonTranslator uses a pretrained language model to embed hierarchical species lineages and a pretrained protein language model to encode protein context, enabling interpolation across hosts and generalization to unseen species and proteins. Our results show that CodonTranslator implicitly learns the genetic code from data, faithfully reproduces species-specific codon usage, and designs coding sequences that match or surpass existing methods in both codon usage metrics and predicted biological stability. Our dataset, pretrained models, and code are available at https://github.com/poseidonchan/CodonTranslator
- organism: multiple species
- research focus: sequence-to-function modeling
- approach: deep learning
- approach: transformer / foundation model
- Citations
- 2
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- CodonTransformer: a multispecies codon optimizer using context-aware neural networks
Adibvafa Fallahpour, Vincent Gureghian, … Amir Pandi·Nature CommunicationsPeer-reviewed·Apr 3, 2025
- Learning the native-like codons with a 5'UTR and RNA secondary structure aided species-informed transformer model
Qiuyue Hu, Xiaolin Tian, … Yanjie Wei·bioRxiv·Jul 19, 2025
- ppLM-CO:Pre-trained Protein Language Model for Codon Optimization
Shashank Pathak, Guohui Lin·bioRxiv·Dec 12, 2024
- HalluCodon enables species-specific codon optimization using multimodal language models
Yuxuan Lou, Shiya Mao, … Xiangfeng Wang·bioRxiv·Apr 2, 2026
- CodonRL: Multi-Objective Codon Sequence Optimization Using Demonstration-Guided Reinforcement Learning
Shiyi Du, Gün Kaynar, … Carl Kingsford·bioRxiv·Feb 14, 2026
- A generative language model decodes contextual constraints on codon choice for mRNA design
Marjan Faizi, Helen Sakharova, … Liana F. Lareau·bioRxiv·May 13, 2025