TL;DR
This paper introduces CodonTranslator, a novel deep learning model that generates optimized DNA sequences for protein expression by considering both the target host organism's evolutionary lineage and the protein's own characteristics. It outperforms existing methods in accurately mimicking natural codon usage and designing biologically stable sequences, paving the way for more efficient synthetic biology applications.
What Problem Does This Paper Address?
Optimizing DNA sequences for protein expression in a new host organism (heterologous expression) is crucial for synthetic biology and biotechnology. This process, known as codon optimization, aims to select synonymous codons that are preferentially used by the host. However, the vast number of possible codon combinations makes this a challenging "design space" problem. While natural coding sequences represent a compromise between translational efficiency, accuracy, and regulatory constraints, existing data-driven models often overlook the rich hierarchical relationships within species' evolutionary histories and the specific functional constraints of proteins. This can lead to suboptimal designs that don't fully leverage the host's codon usage patterns or protein context, and some models lack a principled way to generate sequences.
Methods
CodonTranslator is a decoder-only Transformer model, a type of neural network architecture well-suited for generating sequences. It's trained on a massive dataset of 62 million coding DNA sequence (CDS)-protein pairs from over 2,100 species. The key innovation lies in its conditioning mechanism:
- Hierarchical Species Embeddings: Instead of treating species as simple labels, CodonTranslator uses a pre-trained language model (Qwen3-Embedding) to generate continuous embeddings from hierarchical taxonomic lineage text (e.g., kingdom -> phylum -> species). This allows the model to understand evolutionary relationships and interpolate between species, even those not explicitly seen during training.
- Protein Context Embeddings: A pre-trained protein language model (ESM-C 300M) is used to encode deep features of the amino acid sequence, capturing functional and evolutionary constraints that influence codon choice.
- Decoder-Only Transformer: This architecture is chosen for its generative capabilities, allowing it to directly produce codon sequences, unlike some previous encoder-only models that are better suited for tasks like classification or masked prediction.
The model is trained to predict the next codon in a sequence, conditioned on both the species and protein embeddings.
Datasets
- Training Data: A large-scale dataset of over 62 million CDS-protein pairs curated from the NCBI RefSeq database, spanning 2,163 species.
- Held-out Test Set: Ten species were entirely removed from the training corpus to create an "unseen-species" test set for evaluating out-of-distribution generalization.
- Model Organism Benchmarking: Data for five canonical model organisms (E. coli, Saccharomyces cerevisiae, Arabidopsis thaliana, Mus musculus, and Homo sapiens) were used to compare CodonTranslator against other methods and traditional vendor tools.
Key Insights and Ideas
- Taxonomy as a Continuous Signal: Representing species through hierarchical lineage embeddings, rather than discrete labels, allows the model to capture nuanced evolutionary relationships. This enables better generalization to new or under-represented species by leveraging similarities with related organisms.
- Protein Context Matters: Explicitly incorporating protein features beyond just the amino acid sequence allows the model to tailor codon choices to the specific biochemical and structural demands of each protein, leading to more biologically relevant designs.
- Implicit Genetic Code Learning: The model learns the genetic code directly from the data without explicit rules, demonstrating the power of large-scale language modeling for biological sequence tasks.
- Generative Power of Decoder-Only Models: Shifting from encoder-only (BERT-like) models to a decoder-only Transformer is crucial for sequence generation tasks like codon optimization, providing a more principled approach.
Key Results
- Superior Codon Usage Fidelity: CodonTranslator achieves higher codon sequence similarity and lower Dynamic Time Warping (DTW) distance compared to existing models on both validation and test sets, indicating better recovery of natural codon usage patterns.
- Effective Generalization: The model accurately captures species-specific codon usage patterns, even for completely unseen organisms, as demonstrated by its performance on the held-out test set and its accurate placement within GC-ENC landscapes.
- Competitive Performance on Model Organisms: CodonTranslator matches or surpasses other learning-based baselines and vendor tools in codon similarity and DTW distance, particularly excelling in mammalian hosts.
- Reduced Negative Cis-Elements: In heterologous expression scenarios, CodonTranslator generates sequences with fewer predicted negative cis-elements (sequences that can hinder expression), especially in eukaryotic hosts.
Limitations and Future Work
- Model Size: While CodonTranslator is 150M parameters, larger models might further improve performance.
- Context Length: The model has a context length cap of 2,048 tokens. While it can generate beyond this, systematic characterization of performance in extreme regimes is not provided.
- Future Work: The authors suggest that CodonTranslator can serve as a backbone for future codon design pipelines and broader sequence engineering tasks requiring flexible, host-aware generation. Further exploration of its capabilities in heterologous expression scenarios and integration with other biological design tools are promising directions.
Summary updated