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

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Byte-Level vs. Code-Oriented LLMs for Codon Optimization: A Comparative Study on E. coli Protein Expression

Aakash Dandekar
3 links
Figshare
RNA and protein synthesis mechanisms
preprint

Byte-Level vs. Code-Oriented LLMs for Codon Optimization: A Comparative Study on E. coli Protein Expression

Aakash Dandekar
preprint en

Abstract

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.

Figshare
RNA and protein synthesis mechanisms
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon