Sampling Protein Language Models for Functional Protein Design

Jeremie Theddy Darmawan, Yarin Gal, Pascal Notin

TL;DR

This paper tackles the challenge of designing novel, functional proteins using protein language models (pLMs). The authors introduce a comprehensive in silico evaluation framework and novel sampling strategies specifically tailored for protein design, demonstrating that multi-mutant sampling approaches significantly outperform traditional single-mutant methods by better capturing epistatic interactions crucial for protein function.

What Problem Does This Paper Address?

Designing functional proteins is a grand challenge, akin to finding a needle in a haystack within the vast space of possible protein sequences. Protein language models (pLMs) have shown immense promise in understanding and generating protein sequences, but effectively using these models to design proteins with desired functions is still an open problem. Current approaches often borrow sampling strategies from Natural Language Processing (NLP), which may not be optimal for the unique characteristics of protein sequences and the complex, non-linear interactions (epistasis) between amino acid positions that dictate protein function. This paper aims to bridge this gap by developing and evaluating specialized sampling methods for protein design.

Methods

The core of this work lies in developing a systematic in silico evaluation framework to benchmark protein design methods. This framework assesses generated proteins based on Relevance (structure-based similarity to a target), Quality (fitness prediction), and Diversity (uniqueness and distance from natural sequences).

The authors propose several novel sampling strategies tailored for protein design, categorized into two main approaches:

  • Autoregressive Sampling (ARS): Iteratively builds a protein sequence from a prompt.
  • Iterative Redesign Sampling (IRS): Starts with a template sequence and iteratively introduces mutations.

Within these approaches, they introduce and evaluate specific sampling strategies:

  • High-Probability Filter (HPF): Selects high-fitness single mutants and combines them to form double mutants.
  • Quantitative-Function Filter (QFF): Uses a lightweight fitness model (Potts model, EVmutation) to pre-filter potential double mutants before scoring with the pLM.
  • Attention-Matrix Sampling (AMS): Leverages attention values from pLM layers to identify important residues (Points of Interest - PoIs) for targeted mutations.
  • Random Stratified Filter (RSF): Stratifies potential double mutants into score bins to ensure diversity.
  • Monte Carlo Tree Search (MCTS): A search algorithm that balances exploration and exploitation to find optimal mutations.

They also compare these to standard NLP sampling methods like Top-k, Top-p, greedy, and mirostat sampling. A key distinction is the emphasis on multi-mutant sampling (ARS-doubles, IRS-doubles) to capture epistatic effects, contrasting with traditional single-mutant approaches.

Datasets

The study used three diverse protein families for evaluation:

  • Aequorea victoria Green Fluorescence Protein (avGFP): A well-studied fluorescent protein.
  • Escherichia coli Beta-lactamase TEM-1 (BLAT): An enzyme conferring antibiotic resistance.
  • SARS-CoV-2 Mpro (3CLpro) region of replicase protein 1ab (R1AB): A viral protease.

These proteins were chosen for their diversity in biological domains, functions, and availability of data. The authors utilized existing benchmarks and data from sources like ProteinGym.

Key Insights and Ideas

  • Multi-mutant sampling is crucial: The paper strongly advocates for and demonstrates the superiority of sampling strategies that consider multiple mutations simultaneously (e.g., IRS-doubles) over single-mutant approaches. This is because critical epistatic interactions between amino acid positions are often missed by single-mutant strategies.
  • Tailored sampling beats generic NLP: Sampling methods specifically designed for protein design (like QFF, HPF, AMS) generally outperform or match standard NLP sampling techniques when applied to protein generation tasks.
  • IRS-doubles offer a strong balance: The IRS-doubles approach, in aggregate, tends to outperform other strategies by balancing relevance, quality, and diversity.
  • ARS offers flexibility for high performers: While IRS methods generally produce more relevant and functional samples, ARS approaches can be better at designing a few exceptionally high-performing designs.
  • Protein family matters: The optimal sampling strategy can vary significantly depending on the specific protein family, suggesting that a combined or adaptive approach might be beneficial.
  • Prompt length impacts ARS: For autoregressive models, prompt length influences generated sequence properties, with a moderate length (around 65%) often providing a good balance.

Key Results

  • IRS-doubles outperform: Across various metrics, IRS-doubles strategies consistently showed better performance than IRS-singles. For instance, IRS-doubles achieved an overall score of 97.00 compared to 77.00 for IRS-singles.
  • QFF as a well-rounded choice: The QFF strategy, when combined with IRS-doubles, was identified as a highly effective and well-rounded method, balancing multiple design objectives.
  • ARS-singles excel in overall score: For ARS strategies, ARS-singles with Top-k sampling achieved the highest overall score, pLDDT, and Uniqueness.
  • MCTS and Beam Search show promise: IRS-doubles with Beam Search combined with HPF yielded the highest relevance scores, indicating suitability for generating proteins with specific desired functions.
  • Performance varies by family: BLAT was found to be the most "evolvable" protein family, showing the highest maximum fitness gains, while also being the most challenging for achieving significant leaps in fitness.

Limitations and Future Work

  • Computational cost: While the paper introduces efficient strategies, complex multi-mutant sampling can still be computationally intensive.
  • In silico vs. in vivo: The evaluation relies on in silico fitness predictors, which are approximations of true biological fitness. Experimental validation is the ultimate test.
  • Model dependency: The performance of sampling strategies is inherently linked to the underlying protein language model used.
  • Future directions: The authors anticipate the need for novel sampling approaches as pLMs evolve to incorporate multimodal data (sequence, structure, functional annotations). They also suggest that combining multiple sampling strategies could be beneficial for generating diverse samples and improving the likelihood of discovering designs with maximum fitness. The development of adaptive sampling strategies that can dynamically adjust based on protein family or design objective is also a promising avenue.

Summary updated

BibTeX
@inproceedings{darmawan2025sampling,
  author = {Jeremie Theddy Darmawan and Yarin Gal and Pascal Notin},
  title = {{Sampling Protein Language Models for Functional Protein Design}},
  booktitle = {LMRL @ ICLR},
  year = {2025},
  url = {https://openreview.net/forum?id=eRALDwvk9O},
}
Figure