HyperHELM: Hyperbolic Hierarchy Encoding for mRNA Language Modeling
Max van Spengler, Artem Moskalev, Tommaso Mansi, Mangal Prakash, Rui Liao
TL;DR
Biological sequences exhibit hierarchical structure that Euclidean representations struggle to capture. HyperHELM introduces a hybrid hyperbolic language-modeling framework for mRNA that embeds codon hierarchy in the Poincaré ball and uses hyperbolic prototypes to guide MLM predictions. It achieves notable gains across downstream property prediction tasks, with up to around 10% improvements and enhanced generalization to long sequences and variable GC content, as well as improvements in antibody region annotation. The work demonstrates that hyperbolic geometry provides a principled inductive bias for hierarchical biology data, and that a practical, hybrid architecture can leverage this bias without the computational burden of fully hyperbolic networks.
Abstract
Language models are increasingly applied to biological sequences like proteins and mRNA, yet their default Euclidean geometry may mismatch the hierarchical structures inherent to biological data. While hyperbolic geometry provides a better alternative for accommodating hierarchical data, it has yet to find a way into language modeling for mRNA sequences. In this work, we introduce HyperHELM, a framework that implements masked language model pre-training in hyperbolic space for mRNA sequences. Using a hybrid design with hyperbolic layers atop Euclidean backbone, HyperHELM aligns learned representations with the biological hierarchy defined by the relationship between mRNA and amino acids. Across multiple multi-species datasets, it outperforms Euclidean baselines on 9 out of 10 tasks involving property prediction, with 10% improvement on average, and excels in out-of-distribution generalization to long and low-GC content sequences; for antibody region annotation, it surpasses hierarchy-aware Euclidean models by 3% in annotation accuracy. Our results highlight hyperbolic geometry as an effective inductive bias for hierarchical language modeling of mRNA sequences.
