Manuscript Offprint

arXiv:2608.25548

Interpreting Protein Language Model Embeddings via Orthogonal Projection for Protein Fitness Prediction

Paulo Yanez Sarmiento, Pia Francesca Rissom, Manuel Pfeuffer, Marco Simnacher, Jordan F. Safer, Sumaiya Iqbal, Henrike O. Heyne, Nadja Klein, Bernhard Y. Renard

Abstract

Recently, there has been a growing adoption of protein language models (PLMs) in biomedical science. Their embeddings provide a rich numerical representation of protein sequences which achieve state-of-the-art performance on several downstream tasks including protein fitness prediction. However, PLM embeddings are not directly interpretable and, thereby, it remains unclear what features they encode. To gain insight into which biochemical properties of the protein are driving the prediction, we leverage an orthogonal projection technique that removes linear effects of known tabular features from embeddings and extend it to high-order and interaction effects. In this way, we remove the effects of interpretable biochemical features from PLM embeddings. In an ablation study, we show that this leads to a decrease in performance for a downstream classifier trained only on the embeddings to predict protein fitness. In an additional evaluation, we find that these biochemical features explain a substantial part of the variance in the predictions of this classifier. Hence, we can show that PLM embeddings encode patterns correlated with biochemical properties and quantify their contribution to predicting protein fitness. This computationally efficient approach is not limited to the features or embeddings considered here and is readily transferable to problem settings beyond protein fitness prediction.

Keywords: explainable artificial intelligence (XAI) · interpretability · protein language model (PLM) · embedding · orthogonal projection · protein fitness

1 Introduction

Proteins are sequences of amino acids that form large, complex molecules present in virtually all living organisms. They are essential for the structure, function, regulation and communication of cells. Changes in their sequence, such as single substitutions of amino acids (also called variants or mutations), can alter the functional performance (also referred to as fitness) of the protein. As this can be harmful to the organism, it is important to understand the impact of these variants on protein function. For example, in the context of human genetic diseases, it is a central task to correctly predict the functional impact of mutations as the majority of genetic variants in clinical variant databases is still classified as ‘unknown significance’ [22]. Measuring the impact experimentally can be expensive and time-consuming. Therefore, computational methods have been developed [13]. The task of protein fitness prediction refers to estimating how well a protein performs a desired function relative to a known reference sequence. It is closely related to variant effect prediction which approaches the task more from clinical or mutational perspective [20]. Among other factors, structural information about the protein has been shown to improve performance for variant effect or protein fitness prediction [6, 13].

In contrast to methods relying on engineered features, there has been a growing adoption of protein language models (PLMs) as they provide rich representations of protein sequences. Similar to large language models in natural language processing, PLMs are trained in a task-agnostic, self-supervised manner on large datasets of protein sequences [5, 12, 24, 31]. Models trained on PLM embeddings—numerical vectors derived only from the 1D protein sequence—have been shown to achieve state-of-the-art performance on a range of downstream tasks compared to traditional feature-based approaches or methods aligning multiple sequences [4, 16, 24, 27]. However, high-dimensional embeddings are not directly interpretable. Hence, by fitting a downstream classifier on the embeddings, it is unclear which human-understandable features drive the prediction. Yet, interpretability is crucial for deriving biological insights and is commonly required for medical applications [34].

To address this challenge, we leverage an orthogonal projection technique named post-hoc orthogonalization (PHO) that is used in training of semi-structure neural networks (SSNs) [25]. PHO was already applied to biomedical data by [37], who removed confounding features from radiograph embeddings. Since PHO with respect to tabular features only removes linear effects, we extend the approach to higher-order and interaction effects. Thereby, we provide a computationally efficient approach to help interpret PLM embeddings.

References (35)

  • Genome-wide prediction of disease variant effects with a deep protein language model
  • Aromatic residues in proteins: Re-evaluating the geometry and energetics of $\pi-\pi$, cation- $\pi$, and ch- $\pi$ interactions
  • Proline-induced distortions of transmembrane helices
  • Accurate prediction of functional effect of single amino acid variants with deep learning
  • Protrans: Toward understanding the language of life through self-supervised learning
  • Leveraging protein structural information to improve variant effect prediction
  • plm-sav: A $\delta$-embedding approach for predicting pathogenic single amino acid variants
  • Learning protein fitness models from evolutionary and assay-labeled data
  • nature 596(7873), 583–589
  • Achieving interpretable machine learning by functional decomposition of black-box models into explainable predictor effects (opens arXiv in a new tab)
  • Genomics 2 Proteins portal: a resource and discovery tool for linking genetic screening outputs to protein sequences and structures
  • Evolutionary-scale prediction of atomic-level protein structure with a language model
  • Guidelines for releasing a variant effect predictor
  • Metadata normalization
  • The projected covariance measure for assumption-lean variable significance testing
  • Embeddings from protein language models predict conservation and variant effects
  • Expert-guided protein language models enable accurate and blazingly fast fitness prediction
  • UMAP: Uniform Manifold Approximation and Projection for Dimension Reduction
  • Language models enable zero-shot prediction of the effects of mutations on protein function
  • Proteingym: Large-scale benchmarks for protein fitness prediction and design
  • Transformer protein language models are unsupervised structure learners (opens the publisher in a new tab)
  • Genetics in Medicine 25(12), 100947
  • Decoding protein language models: insights from embedding space analysis
  • Biological structure and function emerge from scaling unsupervised learning to 250 million protein sequences
  • A new PHO-rmula for improved performance of semi-structured networks
  • Semi-structured distributional regression
  • Fine-tuning protein language models boosts predictions across diverse tasks
  • Deep nonparametric conditional independence tests for images
  • Interplm: Discovering interpretable features in protein language models via sparse autoencoders
  • The promises of large language models for protein design and modeling
  • Flexibility or uncertainty? A critical assessment of AlphaFold 2 pLDDT
  • Nucleic acids research 52(D1), D368–D375
  • The importance of interpretability and visualization in machine learning for applications in medicine and health care
  • BERTology Meets Biology: Interpreting Attention in Protein Language Models
  • Combining p-values via averaging