HELM: Hierarchical Encoding for mRNA Language Modeling
Mehdi Yazdani-Jahromi, Mangal Prakash, Tommaso Mansi, Artem Moskalev, Rui Liao
TL;DR
HELM addresses the mismatch between natural-language pre-training and the hierarchical codon structure of mRNA by introducing a Hierarchical Cross-Entropy loss that enforces codon-level hierarchy in pre-training. The approach preserves standard architectures and tokenization (codon-level) while weighting errors according to hierarchical position, yielding consistent improvements across seven downstream properties and Ab-region annotation, plus enhanced sequence generation. Through extensive ablations on a curated 15.3M mRNA corpus (OAS) and diverse datasets, HELM demonstrates that incorporating biological priors—especially codon usage bias—improves both discriminative and generative performance by approximately 8% on average. The work suggests that hierarchical priors can be extended to other biological sequence tasks and motivates exploring hyperbolic representations to better capture hierarchical structure.
Abstract
Messenger RNA (mRNA) plays a crucial role in protein synthesis, with its codon structure directly impacting biological properties. While Language Models (LMs) have shown promise in analyzing biological sequences, existing approaches fail to account for the hierarchical nature of mRNA's codon structure. We introduce Hierarchical Encoding for mRNA Language Modeling (HELM), a novel pre-training strategy that incorporates codon-level hierarchical structure into language model training. HELM modulates the loss function based on codon synonymity, aligning the model's learning process with the biological reality of mRNA sequences. We evaluate HELM on diverse mRNA datasets and tasks, demonstrating that HELM outperforms standard language model pre-training as well as existing foundation model baselines on seven diverse downstream property prediction tasks and an antibody region annotation tasks on average by around 8%. Additionally, HELM enhances the generative capabilities of language model, producing diverse mRNA sequences that better align with the underlying true data distribution compared to non-hierarchical baselines.
