cs.LGMar 11, 2026

How to make the most of your masked language model for protein engineering

Authors: Calvin McCarter, Nick Bhattacharya, Sebastian W. Ober, Hunter Elliott

Organizations: BigHat Biosciences

Abstract

A plethora of protein language models have been released in recent years. Yet comparatively little work has addressed how to best sample from them to optimize desired biological properties. We fill this gap by proposing a flexible, effective sampling method for masked language models (MLMs), and by systematically evaluating models and methods both in silico and in vitro on actual antibody therapeutics campaigns. Firstly, we propose sampling with stochastic beam search, exploiting the fact that MLMs are remarkably efficient at evaluating the pseudo-perplexity of the entire 1-edit neighborhood of a sequence. Reframing generation in terms of entire-sequence evaluation enables flexible guidance with multiple optimization objectives. Secondly, we report results from our extensive in vitro head-to-head evaluation for the antibody engineering setting. This reveals that the choice of sampling method can have a substantial impact, motivating future research into this under-explored area.

Figures & tables

Appendix figures & tables14 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Learning Task-Specific Antibody Representations via Function-Aware Masking

    Sep 1, 2026Ayan Goel, Thomas A. Walton, Amirali AghazadehMasked Language ModelingProtein Language Models

  2. Unlocking Multimodal Protein Language Models at Inference Time

    Aug 26, 2026Yi Zhou, Qipeng Wang, Yunqing Liu +3Inference-Time SearchProtein Language Models

  3. Structure-Aware Masking for Protein Representation Learning

    May 15, 2026Thomas Walton, Ayan Goel, Amirali AghazadehProtein Fitness PredictionMasked Language Modeling