Abstract
Genomic language models (gLMs) have traditionally faced a "modality tax," requiring separate architectures or expensive multi-modal pretraining to handle the distinct grammars of DNA and RNA. We present CodonMoE (Adaptive Mixture of Codon Reformative Experts), a lightweight, plug-and-play adapter designed to bridge this gap. By restructuring DNA model outputs into biological codons and employing a Mixture of Experts (MoE) architecture, CodonMoE enables pretrained DNA models to achieve state-of-the-art performance on mRNA analysis tasks. Notably, CodonMoE achieves these results using 80% fewer parameters than specialized RNA models, maintaining sub-quadratic complexity for long-sequence efficiency.
Introduction
In computational biology, DNA and RNA are often treated as distinct languages requiring specialized translators. While they share a similar chemical alphabet, their functional "grammar" differs significantly. mRNA is read by cellular machinery in triplets known as codons, which dictate protein synthesis and influence mRNA stability. Most existing genomic language models are trained at the single-nucleotide level, often failing to capture the codon-level dynamics essential for RNA-specific tasks such as vaccine stability prediction or protein expression modeling.
To address this, researchers from Carnegie Mellon University developed CodonMoE. This framework allows existing DNA models to master mRNA analysis without the need for RNA-specific pretraining, effectively turning foundational genetic knowledge into a specialized tool for transcriptomics.
The CodonMoE Framework
CodonMoE operates as a modular adapter that sits atop a frozen DNA backbone (e.g., HyenaDNA or Caduceus). The methodology follows a two-stage paradigm designed for maximum efficiency and biological relevance.
1. Codon Aggregation
The adapter first reshapes the hidden states of the DNA model. Instead of treating nucleotides as individual tokens, it groups them into triplets. This explicit representation of codons aligns the model's internal logic with the biological process of translation.
2. Mixture of Experts (MoE)
These codon representations are routed through a set of specialized "experts." A gating mechanism dynamically assigns sequence segments to specific experts based on their characteristics—for instance, some experts may specialize in rare codons while others focus on GC-rich regions. This allows the model to handle the high variability of mRNA sequences with a relatively small parameter footprint.
3. CodonMoE-pro
An advanced iteration, CodonMoE-pro, introduces "codon neighborhood convolution." This allows the model to detect n-gram interactions between adjacent codons. These interactions are critical for understanding ribosomal pausing and mRNA stability, which are often influenced by the local context of the sequence.
Experimental Evaluation
The researchers evaluated the CodonMoE framework across four diverse RNA prediction tasks:
- mRFP Expression: Predicting protein expression levels from red fluorescent protein variants.
- SARS-CoV-2 Vaccine Degradation: Estimating the stability of mRNA vaccine candidates, a key factor in storage and efficacy.
- Tc-riboswitch: Measuring the regulatory efficacy of tetracycline-responsive RNA switches.
- MLOS (Multi-Library Optimization Strategy): Predicting protein levels in human HeLa cells.
Key Insights and Results
Efficiency and Scalability
CodonMoE demonstrates that structural design can be more effective than brute-force scaling. The authors identified a "threshold effect" where an adapter with only 7–12 million parameters provided optimal coverage. By leveraging the foundational knowledge already present in DNA models, CodonMoE outperformed specialized RNA models like CodonBERT while utilizing 80% fewer parameters.
Performance Gains
The addition of CodonMoE provided massive performance boosts to existing backbones. For the GPN-MSA model, the Spearman correlation on mRFP expression tasks jumped from 0.33 to 0.81. The combination of HyenaDNA and CodonMoE-pro achieved state-of-the-art (SOTA) results on three of the four benchmark tasks.
The "Microscope" Effect
CodonMoE acts as a biological lens, correcting the inherent insensitivity of DNA backbones to low-frequency codon patterns. Visual analysis using UMAP and t-SNE confirmed that CodonMoE creates distinct, clear clusters of genetic features compared to raw DNA models, which often struggle to differentiate between varying expression levels.
Limitations and Future Directions
While CodonMoE excels in translation-related tasks where codon structure is paramount, it showed limitations in predicting the behavior of Tc-riboswitches. Riboswitches are non-coding elements whose function is derived from complex 3D folding rather than codon sequences. Future research aims to incorporate structural folding priors into the adapter framework to better address non-coding regulatory elements.
Conclusion
CodonMoE represents a significant step toward unified genomic modeling. By providing a lightweight mechanism to adapt DNA models for RNA tasks, it eliminates the need for redundant, resource-intensive pretraining. The framework proves that with the right structural "nudge," foundational DNA models can become powerful tools for the next generation of mRNA-based therapeutics and synthetic biology.
Summary updated