Byte-Level vs. Code-Oriented LLMs for Codon Optimization: A Comparative Study on E. coli Protein Expression
Synonymous codon optimization is essential for high-yield recombinant protein expression in Escherichia coli, yet classical greedy heuristics that maximize the Codon Adaptation Index (CAI) often induce tRNA pool exhaustion, ribosome stalling, and misfolding. In this study, we investigated whether a compact byte-level encoder-decoder transformer (Coli-ByT5-Small, 300.8M parameters) can outperform a substantially larger code-oriented causal language model (Qwen-Coli-1.5B, 1.54B parameters) on E. coli codon optimization. Both models were fine-tuned using Low-Rank Adaptation (LoRA) on a biologically validated corpus of 47,473 coding sequences curated from CodonTransformer and evaluated against a classical greedy frequency baseline across four metrics: CAI, rare-codon usage, amino acid translation fidelity, and inference throughput. Both neural models achieved 100% amino acid fidelity, confirming strict reading-frame preservation. However, Coli-ByT5-Small outperformed Qwen-Coli-1.5B on every remaining metric, achieving a higher CAI (0.884 vs. 0.865), lower rare-codon usage (2.6% vs. 4.1%), and a 2.45× speedup in generation throughput (235 vs. 96 tokens/s). We argue that this empirical advantage stems from tokenization alignment: byte-level processing preserves one-to-one nucleotide granularity, whereas subword tokenizers designed for source code fragment triplet codons across unpredictable token boundaries.
Authors
- Aakash Dandekar
Publication Details
- Journal
- Figshare
- Published
- 2026-11-24
- DOI
- https://doi.org/10.6084/m9.figshare.35107516
- Primary Topic
- RNA and protein synthesis mechanisms
- Type
- preprint