iRaven

Paper · Agents and tools · Version v1

Permuted Evolutionary Tuning Improves Protein Language Modeling for Variant Effect Prediction

First published: arXiv, . Original

Copyright the authors. Licensed under Creative Commons Attribution 4.0 International.

This page holds the text of the paper, converted to HTML; figures may be left out.

Understanding and predicting protein fitness is central to basic biology and protein design. In nature, protein fitness landscapes are probed by random mutations, genetic drift, and selection. Experimentally, deep mutational scanning maps local fitness landscapes under controlled conditions. Protein language models provide a computational route for estimating hidden regions of these landscapes. Masked-token objectives are well suited for modeling amino acid substitutions, whereas insertions and deletions are challenging to represent as they alter sequence length. We show that continued training of a protein language model with a new permuted homologous sequence-to-sequence denoising objective substantially improves zero-shot variant effect prediction on the ProteinGym benchmarks relative to baseline ProtT5. For substitutions, the Spearman correlation increased from 0.397 to 0.432, surpassing the strongest single-sequence model, ESM2 at 0.414. Gains were even more pronounced for indels, increasing from 0.215 to 0.491, falling short of the best predictor, PoET at 0.517, while outperforming it in 7 out of 11 subcategories.

\workshoptitle

AI for Drug Discovery – Bridging the Translation Gap (AI4DD), and Generative and Experimental Perspectives for Biomolecular Design (GEM)

Abstract

Understanding and predicting protein fitness is central to basic biology and protein design. In nature, protein fitness landscapes are probed by random mutations, genetic drift, and selection. Experimentally, deep mutational scanning maps local fitness landscapes under controlled conditions. Protein language models provide a computational route for estimating hidden regions of these landscapes. Masked-token objectives are well suited for modeling amino acid substitutions, whereas insertions and deletions are challenging to represent as they alter sequence length. We show that continued training of a protein language model with a new permuted homologous sequence-to-sequence denoising objective substantially improves zero-shot variant effect prediction on the ProteinGym benchmarks relative to baseline ProtT5. For substitutions, the Spearman correlation increased from 0.397 to 0.432, surpassing the strongest single-sequence model, ESM2 at 0.414. Gains were even more pronounced for indels, increasing from 0.215 to 0.491, falling short of the best predictor, PoET at 0.517, while outperforming it in 7 out of 11 subcategories.

Figure

Figure 1: PET — Permuted Evolutionary Tuning method illustration.

1 Introduction

Predicting the effect of sequence variations on protein function is fundamental to biological understanding and protein engineering, yet protein fitness landscapes remain only partly sampled. Natural variation gives an incomplete, functionally favoring view of the sequence space, whereas deep mutational scanning (DMS) can measure variant effects exhaustively but is limited in scope and heavily dependent on assay context (Fowler and Fields, 2014).

Protein language models (pLMs) have emerged as a useful complementary approach for variant effect prediction (VEP) (Rives et al., 2021; Meier et al., 2021). Trained on large unlabeled protein corpora, these models capture broad biochemical and evolutionary principles solely from sequence patterns (Adams et al., 2025; Simon and Zou, 2025). Global pretraining alone, however, does not reliably capture protein-specific fitness landscapes.

In practice, pLMs’ performance is often enhanced by incorporating additional modalities such as structure or multiple sequence alignment (MSA). MSA can be computationally expensive to construct, biased toward the query sequence, and introduces sequence artifacts such as gap placement (Rao et al., 2021; Notin et al., 2022). An alternative alignment-free strategy, evolutionary tuning, finetunes a pretrained pLM on family-specific homologous sequences (Alley et al., 2019). Variations of this homologous adaptation remain effective even on strong pre-trained models such as ESM2 (Lin et al., 2023), and have been shown to improve VEP for substitutions (Gordon et al., 2024; Koehl et al., 2026). Encoder-only models such as ESM2, however, cannot naturally represent indels.

We hypothesized that MSA signal and evolutionary tuning could be unified by training pLMs to learn homologous sequence conservation implicitly, without alignment, improving the modeling of protein fitness and consequently VEP. We formulated this as a sequence-to-sequence denoising task in which a model is tuned to a specific protein family by translating one natural homolog into another, rather than reconstructing random noise. Because homologs differ in length and indels require a length-flexible framework, we adopted a pretrained encoder-decoder baseline.

2 Methods

Model selection.

We surveyed pretrained encoder-decoder pLMs trained solely on protein sequence information using a comprehensive review of the field (Wang et al., 2025). This review pointed to ProtT5 and Ankh as candidates (Elnaggar et al., 2022; Elnaggar et al., 2023). We evaluated the best reported version of each on zero-shot VEP as described below. ProtT5-XL-UniRef50 outperformed Ankh-large (Table 1). Thus, we focused on ProtT5 but also report the main findings on Ankh.

Model initialization and tuning.

We adapted the globally pre-trained models to each target protein family using parameter-efficient continued training (PEFT) with low-rank adaptation (LoRA) applied to the attention projection matrices (q, k, v, and o; rank =4, scaling factor =1) (Hu et al., 2022). Continued training was performed with the AdamW optimizer using default parameters (β1=0.9, β2=0.999, ε=1×10−8, weight decay =0, maximum gradient norm =1), a learning rate of 3×10−4, a cosine learning-rate schedule, and no warm-up. FP16 was used for mixed-precision training in ProtT5 but not in Ankh, as Ankh does not support it. Tuning was executed on a single NVIDIA A6000 GPU with 48GB. This setup followed ProtT5 and Ankh’s continued-training recommendations (Schmirler et al., 2024) without further optimization in this study.

Homologous sequence retrieval.

For each protein, the wild-type query sequence was taken from ProteinGym (Notin et al., 2023). Homologs were obtained using ColabFold MMseqs2 API on August 16, 2026, with environmental sequences enabled (Mirdita et al., 2022). The training set consisted of the wild-type together with de-duplicated retrieved homologs. Retrieval through the API took 15.7 minutes and yielded 8,191 sequences per protein (medians; range 26–26,253). Larger, more diverse homolog sets resulted in improved log-likelihood scores (Figure S1).

Sequence pre-processing.

Sequences were uppercased and rare or ambiguous amino acids (O, B, U, Z, J) replaced with X. Residues were tokenized with spaces between amino acids for ProtT5 and without for Ankh. Maximum sequence length was set by the wild-type: 256 residues for proteins of length ≤256, 512 for 257–512, and 1,024 otherwise. Per-device batch size was 2 and gradient accumulation 4, resulting in an effective batch size of 8 as recommended by Schmirler et al. (2024).

Permuted evolutionary tuning.

The main continued-training objective was homolog-to-homolog sequence translation without masking. Within each mini-batch, source-target pairs were formed by a random permutation, such that each input sequence was assigned an output sequence from a different homolog. A new random permutation was drawn at each epoch. Decoder inputs were generated by right-shifting the target tokens in standard T5 fashion (Raffel et al., 2020). This objective forced the model to learn sequence relationships between homologs while naturally accommodating indels. During permuted tuning, incomplete final mini-batches were dropped.

Checkpoint selection.

While tuning for up to 600 global steps, we monitored masked-token reconstruction perplexity on the training homologs and, as validation, on ProteinGym wild-type sequences from other proteins. Around global step 500 we observed a drop in homolog perplexity alongside a rise on other proteins, suggesting overfitting to family-specific patterns at the cost of generalizability. We therefore selected step-400 checkpoints for downstream analyses in all proteins, with no exposure to the DMS labels. For a 300-residue protein such as Escherichia coli β-lactamase, this constitutes 1016 FLOPs.

Masked language modeling evolutionary tuning.

For comparison, we continued training baseline ProtT5 with a masked-token objective on the same sequences and the same number of global steps as in the permuted tuning. In this setting, 15% of non-special residues were selected for masking, all selected positions were replaced with a sentinel token, and the original residues served as decoder targets. A full-loss masking variant matching the per-step predicted-token count of permuted tuning performed nearly identically to the sparse-loss version, so only the latter is reported.

Deep mutational scanning.

We used ProteinGym v1.3 DMS benchmarks, specifically designed for protein fitness evaluation (Notin et al., 2023). These comprise 217 substitution and 66 indel assays across 188 proteins. When the full sequence exceeded the maximum model context window (occur only in substitutions), each variant was scored within a window centered on the average position of its mutations. Overlap between retrieved homologs and tested variants was minimal (< 3%) and did not have a marked effect on the results (Figure S1). Following the ProteinGym aggregation protocol, we report Spearman correlations between model scores and DMS measurements per assay, averaged by UniProt ID, then averaged across assay types, so that each contributes equally.

Zero-shot variant effect prediction.

Substitutions were scored using masked marginals relative to the wild-type: each position was replaced by the sentinel token, log-probabilities over the vocabulary were obtained, and scores summed across positions in the rare case of multiple substitutions, following standard convention (Meier et al., 2021). The sentinel logit was read from the decoder output aligned to the masked position in ProtT5, whereas in Ankh the decoder was given the start and sentinel tokens and the logit read from the final position. Masked marginals are only defined for substitutions; indels were therefore scored by teacher-forced decoding without masking, conditioning the encoder on the wild-type and taking the average log-likelihood across non-padding positions. Both scores reflect how likely the model is to generate a variant given the wild-type context per residue. For comparison, substitutions were also scored by teacher forcing. Across scoring methods and mutant types, proteins with lower initial and higher final scores showed greater gains (Figure S1).

3 Experiments

3.1 PET improves zero-shot variant effect prediction

We first asked whether permuted evolutionary tuning (PET) improves zero-shot VEP relative to untuned baselines (Figure 1). To this end, we used ProteinGym DMS benchmarks spanning diverse assay types, evolutionary depths, and taxonomic origins (Notin et al., 2023).

Across mutation types, PET at 400 global steps consistently outperformed the baselines, indicating a general benefit for zero-shot fitness prediction (Table 1). PET performance improved over ProtT5 from an average Spearman correlation of 0.397 to 0.432 for substitutions and 0.215 to 0.491 for indels. Over Ankh, PET improved from 0.378 to 0.400 for substitutions and from 0.021 to only 0.075 for indels. Given that ProtT5 indels start at 0.215 and Ankh at 0.021, PET appears to amplify signal present in the pretrained baseline rather than create it. Ankh has also been reported to respond less favorably to fine-tuning than ProtT5 and ESM2 across eight tasks (Schmirler et al., 2024).

PET improved performance across all assay types (Table S1). Indel gains over ProtT5 ranged from Δr=0.134 on stability to 0.373 on activity, with organismal fitness (0.294) and expression (0.302) in between. For substitutions, the largest gains were on binding (0.064) and activity (0.055), with smaller but consistent gains on organismal fitness (0.027), stability (0.016), and expression (0.014). Notably, the asymmetry between mutation types was most extreme for expression, where PET improved indel prediction 22-fold more than substitution prediction, roughly twice the ratio of any other assay type. Expression may therefore depend on properties, such as length, altered by indels but not substitutions. The relationship between expression level and sequence length has been reported across but not within proteins (Chiaromonte et al., 2003; Grishkevich and Yanai, 2014). The PET assay-type pattern differs from an evolutionary-transition tuning paradigm across proteins, whose substitution gains over ESM2-150M concentrate in organismal fitness and are minimal for stability and binding (Koehl et al., 2026). The authors note that growth rate is a holistic proxy for general proteome constraints, which a single model trained across many families is well positioned to capture. By contrast, PET shows that tuning per protein family favors phenotypes that more directly reflect specific functional constraints.

The benefit of PET grew with mutational depth (Table S1). Relative to ProtT5, PET performance improved by Δr=0.025 for single substitutions, and increased monotonically to 0.140 for variants with five or more substitutions. Because variants with multiple substitutions are scored by masked marginals computed independently per position and then summed, this scheme cannot represent epistasis; the widening gap therefore reflects better-calibrated per-position distributions, whose benefit compounds upon summation. Notably, degradation of performance with mutational depth is characteristic of single-sequence models: ESM2-650M declines from 0.422 to 0.163 between depth 1 and 4 (Notin et al., 2023), as does ProtT5 from 0.401 to 0.171. PET declines only from 0.426 to 0.287, even reaching 0.352 at depth 5+ (Figure S4).

3.2 PET yields competitive zero-shot performance

Table 1: Benchmark performance (Spearman r). Top-ranked ProteinGym leaderboard model per benchmark (bold) and data modality (underlined), plus ablation analysis. Values in parentheses are bootstrap standard errors (10,000 resamples) of the paired difference from ProtT5-PET.

Richest data modalityModelSubstitutionsIndels
HomologsPoET0.470 (0.007)0.517 (0.024)
Protriever0.479 (0.008)—
Ankh-PET (ours)0.400 (0.009)0.075 (0.032)
ProtT5-PET (ours)0.432 (0.000)0.491 (0.000)
AblationProtT5-MLM0.415 (0.006)0.212 (0.025)
PET only0.087 (0.014)0.024 (0.025)
Single sequenceProtT50.397 (0.008)0.215 (0.026)
Ankh0.378 (0.009)0.021 (0.031)
ESM20.414 (0.009)—
Progen20.380 (0.010)0.465 (0.036)
MSAVespaG0.458 (0.007)—
TranceptEVE0.455 (0.008)0.424 (0.027)
StructureAIDO Protein-RAG0.518 (0.009)—

We next compared ProtT5-PET with contemporary zero-shot predictors. On substitutions, PET, at a one-time cost of family tuning, outperformed the best single-sequence model, ESM2-650M (0.432 vs. 0.414) (Lin et al., 2023) (Table 1), overall and in 8 of 12 subcategories (Figure S4). Nonetheless, PET remained below predictors that use more than a single sequence: the best homology-based model, Protriever at 0.479 (Weitzman et al., 2025), which, unlike PET, retrieves and conditions on multiple homologs at inference; the best MSA-derived model, VespaG at 0.458 (Marquet et al., 2024), which distills GEMME scores (Laine et al., 2019), and the best structure-incorporating model, AIDO Protein-RAG at 0.518 (Sun et al., 2024).

In contrast, on indels, ProtT5-PET was competitive with the best predictor, PoET (0.491 vs. 0.517) (Truong Jr. and Bepler, 2023) (Table 1), outperforming it in 7 of 11 subcategories (Figure S4). PET also scored higher than the best single-sequence model, Progen2 at 0.465 (Nijkamp et al., 2023), and the best MSA-derived model, TranceptEVE at 0.424 (Notin et al., 2022).

Both PET and PoET retrieve homologs with the ColabFold protocol, but apply it at different stages. PoET is trained on homolog sets across proteins and, like Protriever, conditions on 15 subsamples of the family-retrieved sequences at inference and scores each variant in both sequence directions. PET is tuned from a baseline trained on single sequences, internalizes homology during family tuning, and scores each variant in a single direction, conditioning only on the wild-type. Thus, relative to Protriever and PoET, PET trades per-family tuning cost for cheaper inference.

The advantage of ProtT5-PET was most pronounced under limited evolutionary information; its margin over PoET on indels (Δr=0.017, 0.021, and 0.084 at high, medium, and low MSA depth) and over ESM2 on substitutions (−0.030, 0.037, and 0.069) grew as sequence depth decreased (Figure S4). PET also exceeded PoET in all taxa except viruses, the least common taxon in the benchmark (−0.046; n=6 viral indel proteins vs. 14–24 for other taxa), where PET nonetheless showed its largest margin over ESM2 (0.169; n=28 viral substitution proteins vs. 34–81 for other taxa). Conversely, across assay types, PET exceeded PoET only on indel stability, but that is the most common assay type (0.036; n=55 vs. ≤5); stability was also the only assay type where ESM2 outperformed PET on substitutions (−0.026; n=66 vs. 12–64). This pattern explains PoET’s higher overall correlation, since ProteinGym equally weighs assay types, regardless of protein count, taxa, or MSA depth. PET is therefore particularly well suited for VEP in sparse-homology regimes.

3.3 PET sharpens pretrained model signals

To determine which elements drive the observed gains, we compared ProtT5-PET with three controls: baseline ProtT5; masked language modeling evolutionary tuning of ProtT5 without permutation (MLM evotuning); and PET from random initialization. ProtT5-PET outperformed all three.

Relative to baseline ProtT5, ProtT5-PET improved performance by Δr=0.035 for substitutions and 0.276 for indels (Table 1), showing that PET benefits both mutation types but yields far larger gains for indels, presumably because of the length-flexible training regime. ProtT5-PET’s substitution gain is comparable to the 0.039 reported for evolutionary-transition tuning across proteins over ESM2-150M, a baseline of similar strength (0.400) (Koehl et al., 2026). This gain is larger than the reported 0.024 from family-specific MLM evotuning over ESM2-650M at 0.419 (Gordon et al., 2024) and the PET 0.022 gain over Ankh at 0.378. Comparison with MLM evotuning over the same baseline separates the contribution of the permutation objective from that of tuning to the data. ProtT5-MLM evotuning recovered roughly half of the substitution gain (0.018) but was worse for indels (−0.003), leaving PET ahead by 0.017 and 0.279, respectively. The permuted denoising objective is therefore more effective than masked-token continued learning on the same data, and accounts for essentially the entire indel improvement. E. coli β-lactamase stood out, improving substantially under PET for both mutant types but hardly under MLM evotuning. It also highlighted improved per-position perplexity alignment with the DMS as a distinctive contribution of PET across proteins (Figures S5–S7). Finally, PET from random initialization performed far worse than from pretrained ProtT5, −0.345 for substitutions and −0.467 for indels, indicating that global pretraining is necessary for strong downstream performance under our compute budget. This finding also echoes the Ankh observation of starting near chance and gaining little from PET on indels. PET therefore seems to enhance a pre-existing signal rather than establishing it from scratch. Together, these ablations identify pretrained representations and the permuted tuning objective as the central ingredients of ProtT5-PET success.

4 Conclusion

We introduce permuted evolutionary tuning, a simple alignment-free sequence-augmentation strategy for adapting protein language models to family-specific variations through homolog-to-homolog translation. Using the generative model ProtT5, we show that PET improves zero-shot variant effect prediction over the baseline, especially for indels. Ablations suggest these gains require both global pretraining and the permuted denoising objective, indicating that PET benefits from combining broad sequence priors with family-specific information and a length-flexible training regime.

Together, our results show that sequence-only protein language models can capture fitness-relevant information, and that objective-informed design is critical for unlocking this knowledge. Adaptation is both a limitation and a strength of our framework: it requires additional data retrieval and model tuning, but offers a modular way to tailor a pre-trained baseline to the specific scientific question at hand. Future work may evaluate PET’s potential benefit for tasks beyond VEP.

Acknowledgments and Disclosure of Funding

S.S. is supported by the Russell Berrie and Kalaniyot Foundations as well as the Israeli Council for Higher Education (CHE) via postdoctoral fellowships. E.A. is supported by NIH T32 training grant (no. 1T32GM158494-01). We thank Aravinda Chakravarti and the laboratories of Nadav Brandes and Eric Oermann, for providing resources and engaging in discussions during the early stages of this study. We particularly wish to thank Fiona McBride, Anushka Sinha, and Ben Levy for their contributions.

Code Availability

The code used to conduct this study is available at https://github.com/saarshoer/PET.

References

  • Adams et al. (2025) E. Adams, L. Bai, M. Lee, Y. Yu, and M. AlQuraishi From mechanistic interpretability to mechanistic biology: training, evaluating, and interpreting sparse autoencoders on protein language models. In Proceedings of the 42nd International Conference on Machine Learning, Proceedings of Machine Learning Research, Vol. 267, pp. 460–476.
  • Alley et al. (2019) E. C. Alley, G. Khimulya, S. Biswas, M. AlQuraishi, and G. M. Church Unified rational protein engineering with sequence-based deep representation learning. Nature Methods 16, pp. 1315–1322.
  • Chiaromonte et al. (2003) F. Chiaromonte, W. Miller, and E. E. Bouhassira Gene length and proximity to neighbors affect genome-wide expression levels. Genome Research 13 (12), pp. 2602–2608.
  • Elnaggar et al. (2023) A. Elnaggar, H. Essam, W. Salah-Eldin, W. Moustafa, M. Elkerdawy, C. Rochereau, and B. Rost Ankh: optimized protein language model unlocks general-purpose modelling. arXiv preprint arXiv:2301.06568.
  • Elnaggar et al. (2022) A. Elnaggar, M. Heinzinger, C. Dallago, G. Rehawi, Y. Wang, L. Jones, T. Gibbs, T. Feher, C. Angerer, M. Steinegger, D. Bhowmik, and B. Rost ProtTrans: toward understanding the language of life through self-supervised learning. IEEE Transactions on Pattern Analysis and Machine Intelligence 44 (10), pp. 7112–7127.
  • Fowler and Fields (2014) D. M. Fowler and S. Fields Deep mutational scanning: a new style of protein science. Nature Methods 11, pp. 801–807.
  • Gordon et al. (2024) C. Gordon, A. X. Lu, and P. Abbeel Protein language model fitness is a matter of preference. bioRxiv 2024.10.03.616542.
  • Grishkevich and Yanai (2014) V. Grishkevich and I. Yanai Gene length and expression level shape genomic novelties. Genome Research 24 (9), pp. 1497–1503.
  • Hu et al. (2022) E. J. Hu, Y. Shen, P. Wallis, Z. Allen-Zhu, Y. Li, S. Wang, L. Wang, and W. Chen LoRA: low-rank adaptation of large language models. In International Conference on Learning Representations,
  • Koehl et al. (2026) A. Koehl, S. Prillo, M. Liu, J. Xiong, L. Weng, D. F. Savage, and Y. S. Song Deep models of protein evolution in time generate realistic evolutionary trajectories and functional proteins. bioRxiv 2026.02.19.706898.
  • Laine et al. (2019) E. Laine, Y. Karami, and A. Carbone GEMME: a simple and fast global epistatic model predicting mutational effects. Molecular Biology and Evolution 36 (11), pp. 2604–2619.
  • Lin et al. (2023) Z. Lin, H. Akin, R. Rao, B. Hie, Z. Zhu, W. Lu, N. Smetanin, R. Verkuil, O. Kabeli, Y. Shmueli, A. dos Santos Costa, M. Fazel-Zarandi, T. Sercu, S. Candido, and A. Rives Evolutionary-scale prediction of atomic-level protein structure with a language model. Science 379 (6637), pp. 1123–1130.
  • Marquet et al. (2024) C. Marquet, J. Schlensok, M. Abakarova, B. Rost, and E. Laine Expert-guided protein language models enable accurate and blazingly fast fitness prediction. Bioinformatics 40 (11), pp. btae621.
  • Meier et al. (2021) J. Meier, R. Rao, R. Verkuil, J. Liu, T. Sercu, and A. Rives Language models enable zero-shot prediction of the effects of mutations on protein function. Advances in Neural Information Processing Systems 34, pp. 29287–29303.
  • Mirdita et al. (2022) M. Mirdita, K. Schütze, Y. Moriwaki, L. Heo, S. Ovchinnikov, and M. Steinegger ColabFold: making protein folding accessible to all. Nature Methods 19, pp. 679–682.
  • Nijkamp et al. (2023) E. Nijkamp, J. A. Ruffolo, E. N. Weinstein, N. Naik, and A. Madani ProGen2: exploring the boundaries of protein language models. Cell Systems 14 (11), pp. 968–978.e3.
  • Notin et al. (2023) P. Notin, A. W. Kollasch, D. Ritter, L. van Niekerk, S. Paul, H. Spinner, N. Rollins, A. Y. Shaw, R. Weitzman, J. Frazer, M. Dias, D. Franceschi, R. Orenbuch, D. S. Marks, and Y. Gal ProteinGym: large-scale benchmarks for protein fitness prediction and design. Advances in Neural Information Processing Systems 36, pp. 64331–64379.
  • Notin et al. (2022) P. Notin, L. van Niekerk, A. W. Kollasch, D. Ritter, Y. Gal, and D. S. Marks TranceptEVE: combining family-specific and family-agnostic models of protein sequences for improved fitness prediction. In NeurIPS 2022 Workshop on Learning Meaningful Representations of Life,
  • Raffel et al. (2020) C. Raffel, N. Shazeer, A. Roberts, K. Lee, S. Narang, M. Matena, Y. Zhou, W. Li, and P. J. Liu Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of Machine Learning Research 21 (140), pp. 1–67.
  • Rao et al. (2021) R. Rao, J. Liu, R. Verkuil, J. Meier, J. Canny, P. Abbeel, T. Sercu, and A. Rives MSA Transformer. In Proceedings of the 38th International Conference on Machine Learning, Proceedings of Machine Learning Research, Vol. 139, pp. 8844–8856.
  • Rives et al. (2021) A. Rives, J. Meier, T. Sercu, S. Goyal, Z. Lin, J. Liu, D. Guo, M. Ott, C. L. Zitnick, J. Ma, and R. Fergus Biological structure and function emerge from scaling unsupervised learning to 250 million protein sequences. Proceedings of the National Academy of Sciences 118 (15), pp. e2016239118.
  • Schmirler et al. (2024) R. Schmirler, M. Heinzinger, and B. Rost Fine-tuning protein language models boosts predictions across diverse tasks. Nature Communications 15, pp. 7407.
  • Simon and Zou (2025) E. Simon and J. Zou InterPLM: discovering interpretable features in protein language models via sparse autoencoders. Nature methods 22 (10), pp. 2107–2117.
  • Stiffler et al. (2015) M. A. Stiffler, D. R. Hekstra, and R. Ranganathan Evolvability as a function of purifying selection in TEM-1 β-lactamase. Cell 160 (5), pp. 882–892.
  • Sun et al. (2024) N. Sun, S. Zou, T. Tao, S. Mahbub, D. Li, Y. Zhuang, H. Wang, X. Cheng, L. Song, and E. P. Xing Mixture of experts enable efficient and effective protein understanding and design. NeurIPS 2024 Workshop on AI for New Drug Modalities, bioRxiv 2024.11.29.625425.
  • Truong Jr. and Bepler (2023) T. F. Truong Jr. and T. Bepler PoET: a generative model of protein families as sequences-of-sequences. Advances in Neural Information Processing Systems 36.
  • Wang et al. (2025) L. Wang, X. Li, H. Zhang, J. Wang, D. Jiang, Z. Xue, and Y. Wang A comprehensive review of protein language models. arXiv preprint arXiv:2502.06881.
  • Weitzman et al. (2025) R. Weitzman, P. Mørch Groth, L. Van Niekerk, A. Otani, Y. Gal, D. S. Marks, and P. Notin Protriever: end-to-end differentiable protein homology search for fitness prediction. In Proceedings of the 42nd International Conference on Machine Learning, Proceedings of Machine Learning Research, Vol. 267, pp. 66397–66418.

Appendix A Supplementary

Table S1: Stratified benchmark performance (Spearman r).

SubstitutionsIndels
CategoryStrataProtT5ProtT5-PETΔrProtT5ProtT5-PETΔr
MSA depthLow0.3450.4070.0620.2870.3670.080
Medium0.4210.4460.0250.4000.5240.124
High0.4670.4830.0160.3360.5330.197
Assay typeActivity0.4050.4600.0550.1450.5180.373
Binding0.2900.3540.064———
Expression0.4110.4250.0140.1460.4480.302
Organismal fitness0.3970.4240.0270.1750.4690.294
Stability0.4810.4970.0160.3950.5290.134
TaxonHuman0.4290.4530.0240.3350.5200.185
Other Eukaryote0.4450.5010.0560.3590.5420.183
Prokaryote0.4350.432−0.0030.3880.4960.108
Virus0.3730.4300.0570.4280.5150.087
Mutation depth10.4010.4260.025———
20.2020.2590.057———
30.2100.3040.094———
40.1710.2870.116———
5+0.2120.3520.140———

Figure

A Indels, teacher-forced decoding

Figure S1: Confounding analysis of ProtT5-PET performance gains. Each point is a protein’s performance change from baseline ProtT5 (step 0) to ProtT5-PET (step 400) in Δ Spearman correlation units (y-axis) plotted against a potential confounder (x-axis). Rows show homolog-set properties (top, blue), variant-homolog overlap (middle, orange), and model scores (bottom, green). High- and low-fitness variants are set by ProteinGym. Above each plot is the Spearman correlation between the x and y variables along with the p-value (n.s. = not significant). Log-likelihood scores at step 0 are near zero because the untuned model can reconstruct the wild-type (WT) by copying it.

Figure

A Substitutions, teacher-forced decoding

Figure

A Substitutions, masked marginals

Figure

Figure S4: Stratified benchmark performance of ProtT5-PET against competitive baselines. Performance is the Spearman correlation across variants between the DMS measurements and model predictions. A Overall performance of substitutions (ProtT5, ProtT5-PET, and ESM2) and indels (ProtT5, ProtT5-PET, and PoET). B Substitution performance by mutation depth. C, D Stratified performance difference between ProtT5-PET and ESM2 for substitutions (C) and ProtT5-PET and PoET for indels (D). Proteins with assays in several categories are counted in each. E Stratified performance change from baseline ProtT5 (step 0) to ProtT5-PET (step 400) for substitutions (solid) and indels (hatched). The number at the end of each bar is the ratio of the indel change to the substitution change.

Figure

Figure S5: Ablation analysis of ProtT5-PET components. Each point is a DMS assay, plotted by the benchmark performance (Spearman correlation across variants between its measurements and the predictions) of ProtT5-PET (y-axis) and of an ablation model (x-axis). The ablation model is baseline ProtT5 in the left column and ProtT5 upon MLM evotuning in the right column. The top row shows substitution assays and the bottom row indel assays, colored by assay type. Above each plot is the assay win rate of ProtT5-PET over the ablation. Dashed lines are x=y. UniProt IDs are shown for assays whose distance from the diagonal is >1.5 standard deviations over the mean distance. E. coli β-lactamase is consistently among the most improved by PET.

Figure

Figure S6: Escherichia coli β-lactamase scores and perplexity. The top three heatmaps show single-substitutions masked-marginal scores logp(AA)−logp(WT) of baseline ProtT5 (step 0, purple), ProtT5 upon MLM evotuning (red), and ProtT5-PET (step 400, orange), for each amino acid (AA, rows) at each wild-type position (WT, columns). The fourth heatmap shows the DMS measurements of the organismal fitness assay (Stiffler et al., 2015, green), where white cells were not measured. The WT residue is written in its cell. Heatmap colors run from low (red) to high (blue); titles give the Spearman correlation of each model’s scores with the DMS. The bottom plot shows the 10-position smoothed perplexity. Perplexity was calculated as the exponentiated entropy of the soft-max standardized scores, divided by the number of measured amino acids. The Spearman correlation between each model’s perplexity (before smoothing) and the DMS is shown in the legend along with the p-value (n.s. = not significant).

Figure

Figure S7: DMS perplexity alignment with ProtT5-PET, defined as in Figure S6. Each point is a substitution DMS assay, plotted by the Spearman correlation of perplexity across positions between the DMS and ProtT5-PET (y-axis) or an ablation model (x-axis). The ablation model is baseline ProtT5 on the left and ProtT5 upon MLM evotuning on the right. Marker shape indicates significance and color indicates assay type. Above each plot is the assay win rate of ProtT5-PET over the ablation. Dashed lines are x=y. One assay with constant DMS perplexity is omitted.