Manuscript Offprint

arXiv:2609.37675

LEMON-ZEST: Evolution-Informed Tokenization for Efficient Protein Language Modeling

Biswajit Banerjee, Claudia Alvarez Carreno, Anton S. Petrov

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Protein Language Models (PLMs) have made remarkable progress following scaling laws established in natural language processing across sequence- and structure-based tasks, yet the potential of tokenization remains underexploited. Unlike human language, proteins preserve structure despite extensive sequence variation — a property standard tokenization strategies fundamentally fail to capture. We introduce ZEST (Zoned Encoding of Sequence Traits), an evolution-informed vocabulary derived from conserved regions of multiple sequence alignments. ZEST allows embedding domain-level biological priors directly at the tokenization stage rather than learning them implicitly through scale. ZEST natively compresses sequences to an average token length of 4 residues, enabling our model to process 4,000 residues within a standard 1024-token context window. Building on this, we present LEMON (Layered Extraction of Molecular Ordering from Nature), a compact 200M-parameter sequence-based model for detection of remote homology between protein sequences trained on a single H100 GPU for one week. Despite its modest size, LEMON outperforms state-of-the-art models ranging from 600M to 3B parameters. Our results demonstrate that evolution-informed tokenization can substitute for massive parameter scaling, opening a new direction for efficient, biologically-grounded protein representation learning. All code, model weights, and results are publicly available under the MIT license.

1 Introduction

The success of modern language models stems from two critical innovations: sub-word tokenization and compute-optimal scaling. Transitioning from character-level to Byte-Pair Encoding [1] allowed models to compress text into tokens (word fragments), establishing an efficient underlying vocabulary. Similarly, research by Hoffmann et al. [2] has shown that scaling in both the data and compute axes significantly decreases loss, leading to the development of extremely large models scaling on both axes, while Kaplan et al. [3] provided a more compute-optimal training regime.

Following a similar trajectory, Protein Language Models (PLMs) have shown strong performance at both protein sequence- and structure-level tasks. While the major focus of PLM development has been on scaling laws to boost performance, the role of tokenization granularity has received comparatively little attention in PLMs. Unlike human language, nature’s vocabulary that is protein domains, has evolved built-in mutation tolerance to preserve structural robustness. During evolution, structure is often preserved despite extensive sequence variation, and structural constraints play a central role in determining protein function.

*Correspondence to c.carreno@ucl.ac.uk & anton.petrov@biology.gatech.edu

Preprint.

The Ship of Theseus is a paradoxical question: if one by one all components of a ship are replaced, does the ship remain the same? While answering the paradox is tough, for folds it is answerable: the fold remains the same as long as amino acids in the sequence maintain its structural integrity. These amino acids are often found within evolutionarily conserved regions. Their presence enables the sequence to retain access to the same folding landscape. To understand it more clearly, biologists align a variety of sequences that result in the same fold into a 2D grid, a Multiple Sequence Alignment (MSA), revealing a landscape of conserved regions that are crucial for protein folding, which in turn governs its function. Since structure is more conserved than sequence[4], the sequence-to-structure mapping is a many-to-one problem. To address this, researchers have developed various substitution matrices[5] that define the penalty of mutability between a pair of amino acids using empirical data.

Structural classification systems reveal that proteins with highly divergent sequences can share common folds and the task of detecting them is known as remote homology inference[6]. In these systems[7, 8], a fold is a conceptual entity that represents all individual domains within a given level of the classification hierarchy. The classification levels can have different arrangements and names, ranging from finest to coarse grain, such as CATH [7]:Class, Architecture, Topology, Homology which differs from SCOP [9] annotations Class, Fold, Superfamily, Family. The Class-level contains collections of alpha elements (spiral coil shape), beta elements (flat sheet), or a combination of them. The divergence of these sequences can be computed as the number of amino acid differences between aligned sequences. Applying a threshold of 30% sequence identity as a definition of remote homology, Kabir et al. [10] demonstrates that PLMs still fail to detect remote homologs and assign them correctly within structural classification hierarchies. Remote homology inference is, thus, considered one of the hardest tasks in this field.

Structural information greatly simplifies homology inference. Although structure-prediction models have made incredible progress, the protein folding problem—essential rules governing fold conservation and the problem of function prediction remain unsolved [11–13]. If the sequence holds the fundamental ground truth of function, it is inherently more valuable to decode this from sequence space rather than treating the two modalities as isolated spaces.

If fold survival constrains sequence divergence, conserved MSA zones can act as the fundamental vocabulary of nature. In this work, we demonstrate that incorporating knowledge from the biological domain directly into the tokenization stage can substantially improve protein language model efficiency and performance without scaling in either axis. Primarily our contributions are:

• Zoned Encoding of Sequence Traits (ZEST): Creating a method to inject known domain priors as the vocabulary, thereby bypassing the need to relearn these priors during training and compressing the context far beyond any existing PLM.

• Trie-Dropout: A novel tokenization regularization technique that stochastically decomposes longer ZEST tokens into their constituent sub-zones during training, ensuring uniform vocabulary utilization and enabling Test Time Augmentation (TTA) at inference.

• Layered Extraction of Molecular Ordering from Nature (LEMON): Demonstrating that a highly compact model trained with this vocabulary on a single H100 GPU for a week can outperform existing state of the art models in remote homology inference while preserving sequence level characteristics.

References (55)