Nucleic Acids ResearchBioinformaticsPeer-reviewed journal article
Advancing Codon Language Modeling with Synonymous Codon Constrained Masking
James HeuschkeliD, Laura J. KingsleyiD, Noah B. PefauriD, Andrew E. NixoniD, Steven Cramer
Abstract
Codon language models offer a promising framework for modeling protein-coding DNA sequences, yet current approaches often conflate codon usage with amino acid semantics, limiting their ability to capture DNA-level biology. We introduce SynCodonLM, a codon language model that enforces a biologically grounded constraint: masked codons are only predicted from synonymous options, guided by the known protein sequence. This design disentangles codon-level from protein-level semantics, enabling the model to learn nucleotide-specific patterns. The constraint is implemented by masking non-synonymous codons from the prediction space prior to softmax. Unlike existing models, which cluster codons by amino acid identity, SynCodonLM clusters by nucleotide properties, revealing structure aligned with DNA-level biology. Furthermore, SynCodonLM outperforms existing models on 6 of 7 benchmarks sensitive to DNA-level features, including mRNA and protein expression. Our approach advances domain-specific representation learning and opens avenues for sequence design in synthetic biology, as well as deeper insights into diverse bioprocesses.
- assay: DNA methylation
- assay: whole-genome sequencing
- research focus: sequence-to-function modeling
- research focus: benchmarking
- research focus: protein structure prediction
- research focus: drug response / drug discovery
- approach: deep learning
- approach: statistical model
- Citations
- 5
- FWCI
- 6.16
- Field percentile
- top 4%
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
- ppLM-CO:Pre-trained Protein Language Model for Codon Optimization
Shashank Pathak, Guohui Lin·bioRxiv·Dec 12, 2024
- Codon language embeddings provide strong signals for protein engineering
Carlos Outeiral, Charlotte Mary Deane·bioRxiv·Dec 15, 2022
- cdsBERT - Extending Protein Language Models with Codon Awareness
Logan Hallee, Nikolaos Rafailidis, Jason P. Gleghorn·bioRxiv·Sep 15, 2023
- CodonTranslator: a conditional codon language model for codon optimization across all domains of life
Yanshuo Chen, Yuming Zhang, … Heng Huang·bioRxiv·Nov 24, 2025
- A Suite of Foundation Models Captures the Contextual Interplay Between Codons
Mohsen Naghipourfar, Siyu Chen, … Hani Goodarzi·bioRxiv·Oct 10, 2024
- CodonTransformer: a multispecies codon optimizer using context-aware neural networks
Adibvafa Fallahpour, Vincent Gureghian, … Amir Pandi·Nature CommunicationsPeer-reviewed·Apr 3, 2025