ProtLingo: Efficient Protein Language Modeling via Conditional Memory and Expert Routing

Mingrui Li, Sixian Shen, Minzhang Li, Ruiyi Zhang, Kexin Zhang, Jiakai Zhang, Jingyi YuarXiv 2026

TL;DR

ProtLingo is an efficient protein language modeling framework that supercharges a compact 150M-parameter dense backbone using conditional local memory and sparse expert routing. By explicitly reusing recurring local contexts (motifs) and dynamically adapting computation per residue, it matches or outperforms models with up to 4x more active parameters on protein fitness and mutation-effect prediction tasks.

What Problem Does This Paper Address?

Protein language models (PLMs) have revolutionized our ability to predict protein properties, structures, and fitness directly from amino acid sequences. However, standard PLMs rely on dense Transformer backbones, meaning they process every single residue using the exact same computational pathway and parameters. As these models scale up, they incur massive computational costs, yet their performance on mutation-sensitive tasks (like predicting the effect of a single amino acid substitution) often saturates.

Furthermore, dense PLMs lack an explicit mechanism to recognize and reuse recurring local sequence patterns—such as conserved functional motifs—even though biology relies heavily on these modular blocks. ProtLingo addresses this gap by introducing conditional computation and explicit local memory, allowing smaller models to behave with the expressive power of much larger ones.

Methods

ProtLingo augments a pretrained dense backbone (specifically, the popular ESM2-150M model) through two key architectural modifications introduced during continuation pretraining:

  1. Centered Latent $N$-gram Memory (LNGram): Instead of looking up raw amino acid strings, this module maps contextual residue representations into discrete routing codes. It looks at a centered local window (e.g., a 3-token neighborhood) to form a latent address, which retrieves a reusable "residual signal" from a learnable memory table. This allows the model to explicitly recall and inject motif-specific information.
  2. Sparse Expert Adaptation via MoE Upcycling: Selected dense feed-forward blocks in the backbone are "upcycled" into sparse Mixture-of-Experts (MoE) layers. Each layer contains one always-active shared expert and four routed experts. A top-1 router dynamically directs each residue to the most appropriate expert, expanding model capacity while keeping the per-token active parameter count low.

To bypass the non-differentiable nature of discrete memory addressing, the authors implement a clever local counterfactual surrogate-gradient path to train the routing mechanism end-to-end.

Figure 2: Overview of the ProtLingo architecture and downstream applications. ProtLingo augments a dense protein Transformer backbone with two conditional modules: a Sparse MoE layer for sparse expert routing and an LNGram module for motif-aware conditional memory retrieval. Given protein sequences and candidate motifs such as N-linked glycosylation sequons, ProtLingo produces enriched protein representations for variant effect prediction, protein stability prediction, and contact map prediction.

Datasets

  • Pretraining: ProtLingo undergoes continuation pretraining on a large-scale sequence corpus sampled from UniRef. The authors use a unique mixed sampling strategy: 80% from UniRef50 (to ensure broad family-level coverage) and 20% from UniRef90 (to capture within-family variation).
  • Evaluation: The model is benchmarked across several downstream tasks:
  • ProteinGym v1.3: A deep mutational scanning (DMS) substitution benchmark containing 217 assays and ~2.4 million variants.
  • FLIP Benchmarks: Evaluated on fitness landscapes for GB1 (binding), AAV (capsid fitness), and Meltome (thermostability).
  • CASP15 Subset: Used to evaluate supervised long-range contact map prediction to ensure structural representations are preserved.

Key Insights and Ideas

  • Upcycling Over Scratch Training: Initializing the MoE layers directly from the pretrained dense weights allows the model to preserve its broad evolutionary knowledge from day one, leading to highly stable continuation training.
  • Emergent Biological Specialization: Without any explicit biological supervision, the sparse experts naturally learn to specialize. For example, certain experts preferentially activate for specific structural features like Beta Strands or functional annotations like the TPR or DALR clans.
  • True Semantic Memory: Analysis of the LNGram module revealed that motifs from the same biological family (e.g., DEAD-box helicase motifs) map to highly concentrated discrete addresses. The memory isn't just memorizing raw letters; it is grouping functionally similar local environments together.

Key Results

ProtLingo achieves exceptional parameter efficiency, delivering competitive performance against dense models that are significantly larger.

  • ProteinGym DMS Prediction: ProtLingo achieves a Spearman correlation of 0.399, outperforming its baseline backbone ESM2-150M (0.388) and beating much larger dense models like CARP (640M params, 0.369) and RITA XL (1.2B params, 0.373).
  • Parameter Efficiency: When measuring performance relative to active parameter count (Spearman per billion active parameters), ProtLingo scores 2.61, vastly outperforming ESM2-650M (0.62) and ProtBert (0.82).
  • Preserved Structure: On the CASP15 contact prediction task, ProtLingo maintains a Top-$L$ precision of 0.485, proving that the addition of local memory and sparse routing does not degrade the model's grasp of long-range, non-local structural constraints.
Figure 1: Performance-parameter comparison of PLMs. Bubble size indicates total model parameters, while the x- axis reports active parameters in millions on a log scale and the y-axis reports Spearman. ProtLingo achieves competitive DMS prediction performance with only 153M active param- eters, matching or exceeding larger dense baselines such as ESM2-150M, ProtBert, CARP, and RITA XL while using fewer active parameters than ESM2-650M and ESM-1b.

Limitations and Future Work

While ProtLingo successfully boosts the performance of a compact backbone, the authors note that the absolute gains are bounded by the lightweight design of the current modules. They suggest that exploring more sophisticated routing mechanisms—such as hierarchical constrained routing—could further unlock conditional specialization. Additionally, fully validating the individual impacts of their 80/20 data sampling strategy remains an area for a more controlled, future ablation study.

Summary updated

BibTeX
@misc{li2026protlingo,
  author = {Mingrui Li and Sixian Shen and Minzhang Li and Ruiyi Zhang and Kexin Zhang and Jiakai Zhang and Jingyi Yu},
  title = {{ProtLingo: Efficient Protein Language Modeling via Conditional Memory and Expert Routing}},
  year = {2026},
  eprint = {2609.04793},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.04793},
}
Figure