NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Protein Language Model Zero-Shot Fitness Predictions are Improved by Inference-only Dropout

Aditya Ravuri, Neil D. LawrencearXiv 2025 · DOI

Abstract

Predicting protein fitness—the measure of a protein's biological function or stability—is a central challenge in bioinformatics. While Protein Language Models (PLMs) like ESM2 can estimate fitness in a zero-shot manner, their accuracy is often limited without task-specific fine-tuning. This study introduces "inference-only dropout," a simple yet effective technique to boost zero-shot performance without additional training. By injecting a dropout layer during the inference phase and averaging results from multiple Monte-Carlo samples, the researchers achieved universal performance gains across the ESM2 model suite. This approach suggests that stochasticity at inference time improves model calibration and provides a more robust signal for protein fitness.

Introduction

The ability to predict how mutations affect protein function, known as protein fitness, is essential for drug discovery and protein engineering. Traditional experimental methods are resource-intensive, leading to the rise of computational approaches. Protein Language Models (PLMs), trained on vast sequences of evolutionary data, have emerged as powerful tools for zero-shot fitness prediction. However, improving these predictions typically requires labeled data and significant compute for fine-tuning. This paper investigates whether a "free lunch" exists: improving predictions through architectural tweaks at inference time alone.

Methodology

The core of the proposed method is the injection of a dropout layer between the initial embedding layer and the subsequent transformer blocks of a pre-trained ESM2 model. Unlike standard practices where dropout is disabled during inference to ensure deterministic outputs, the authors utilize Monte-Carlo (MC) Dropout.

Schematic of the inference-only dropout architecture featuring dropout injection and Monte-Carlo sampling.

As shown in Figure 1, a protein sequence is passed through the model 100 times. In each pass, the dropout layer randomly masks different embedding dimensions. The resulting log-probabilities for the sequence are then averaged to produce a final fitness score. This methodology was tested across the ESM2 suite, ranging from 8 million to 15 billion parameters, using a subset of 50 protein families from the ProteinGym Deep Mutational Scanning (DMS) benchmark.

Results

The researchers evaluated performance using the Spearman Rank Correlation Coefficient (SRCC) to compare predicted rankings against experimental fitness values. The results demonstrated a universal improvement in prediction accuracy across all model scales.

Median Spearman Correlation as a function of Dropout Probability for various ESM2 model sizes.

As illustrated in Figure 2, most models exhibited a performance peak at a dropout probability of approximately 0.1. The 35M parameter model showed particularly striking gains. For the largest models, such as the 15B parameter variant, additional performance boosts were observed when dropout was also applied to the initial transformer layers.

Discussion and Conclusion

The success of inference-only dropout, even in models not originally trained with dropout, suggests that averaging stochastic passes improves model calibration. The authors hypothesize that this process smooths the output distribution and acts as a proxy for out-of-distribution (OOD) detection; sequences with low fitness (highly unusual) result in higher entropy across dropout samples, which the averaging process captures more effectively.

While the method offers a significant performance boost for "free" in terms of training data, it introduces a 100x computational overhead during inference. Future work will focus on scaling these findings to the full ProteinGym dataset and exploring more sophisticated scoring functions to further refine zero-shot fitness landscapes.

Summary updated

BibTeX
@misc{ravuri2025protein,
  author = {Aditya Ravuri and Neil D. Lawrence},
  title = {{Protein Language Model Zero-Shot Fitness Predictions are Improved by Inference-only Dropout}},
  year = {2025},
  eprint = {2506.14793},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.14793},
}
Figure