Manuscript Offprint
arXiv:2608.25548Interpreting Protein Language Model Embeddings via Orthogonal Projection for Protein Fitness Prediction
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.
PLMs for Protein Fitness Prediction Many approaches based on PLMs or their embeddings have been proposed for protein fitness (or variant effect) prediction. In a zero-shot setting, the predicted probability of observing the substituted amino acids at this particular position compared to the non-mutated reference is leveraged for prediction [1, 19, 20]. Alternatively, the embeddings can be used for supervised training of a downstream classifier for regression or classification [4, 16, 20]. In the regression case, the model is fitted to a continuous physical quantity which was measured experimentally. For classification, in general, there is a binary distinction between a protein being fit (performing its function) or not. [8] augmented the embeddings with additional site-specific amino acid features for prediction. Furthermore, [27] showed that task-specific fine-tuning of PLMs mostly increased performance of methods using embeddings as input.
Orthogonal Projection of Features SSNs have been introduced in the context of distributional regression to overcome the identifiability issue when combining tabular features and latent representation of a deep neural network into a single model [26]. PHO has been proposed by [25] to train SSNs

Figure 1: Overview of methodology: Two data modalities are considered: protein sequences Z and corresponding tabular biochemical features X. Every data point refers to a variant (or mutation), i.e., where a single amino acid has been substituted compared to the reference protein (or wild-type). The sequences are embedded via a protein language model (PLM), i.e., mapped onto a numerical vector . For the tabular features, a feature selection via L1 regularization is applied. These selected features are either (a) directly used to project the embeddings U onto their orthogonal complement or (b) a multi-layer perceptron (MLP) is trained on these features and its hidden layer representation is used for the orthogonal projection . A logistic regression as downstream classifier for protein fitness is trained separately on the embeddings U and the orthogonally projected embeddings . In an ablation study their predictive performance is compared.
more effectively and resolve limitations at inference. As mentioned in the introduction, [37] applied PHO to remove biases from radiograph embeddings. In a similar manner, but not in the context of SSNs, [14] remove metadata from neural network embeddings during training via an orthogonal projection to correct for confounding effects. [10] used PHO to decompose a black-box model into a neural additive model, thereby ensuring a certain orthogonality between higher- and lower-order effects.
3 Method
We formulate protein fitness prediction as a binary classification, where , and 1 corresponds to a functioning protein and 0 otherwise. A protein sequence with maximal length is mapped to a -dimensional vector by the PLM: , , where is the alphabet of the one-letter codes for the 20 canonical amino acids. The embeddings of samples of sequences is denoted by , while by we denote the corresponding values of tabular features. For our approach to interpret the PLM embeddings, we analyze whether they contain information relevant for protein fitness prediction correlated with the tabular features using an orthogonal projection. This analysis consists of multiple steps (see Figure 1). First, we perform a feature selection to get a subset of tabular features relevant for protein fitness prediction. The selected features are referred to as , . Next, we compare the performance of linear downstream classifiers trained on different data types: the selected tabular features , a representation of those features denoted by , the PLM embeddings , and their respective concatenations and to predict . The representation is obtained from a hidden layer of a multilayer perceptron (MLP) trained to predict protein fitness on . This comparison is intended to investigate whether tabular features and embeddings complement each other to predict . To test whether embeddings (or tabular features) contain significant information for protein fitness beyond the tabular features (or embeddings), we perform conditional independence tests (CITs) [15, 28]. Specifically, we test vs. and second vs. , using the algorithm-agnostic, prediction-based CITs from [15]. This means that we test whether the embeddings and protein fitness are independent after conditioning on the tabular features and vice versa.
The key step of our analysis consists of an ablation study in which we quantify the change in performance of the downstream classifier when the effects of the tabular features are removed from the embeddings via orthogonal projection. The idea is that if patterns correlated with biochemical features relevant for protein fitness prediction are encoded in the embeddings, their removal should lead to a decrease in performance. We consider both: an orthogonal projection w.r.t. the tabular features and alternatively w.r.t. to their MLP representation to also remove higher-order and interaction effects. For readability, in the following we drop ~ and ~ writing only X, x, and p. We incorporate a bias term, i.e., we consider . However, again for readability we only write X or x. The projection onto the orthogonal complement can be rewritten as
with Moore-Penrose inverse and matrix . We estimate given , and remove the linear effects of at inference or for our ablation study via . Hence, while the matrix multiplication on the left hand side of (1) requires data points, the matrix allows to remove the effects sample-wise. We denote the orthogonally projected embeddings by . For the ablation study, we fit a separate linear downstream classifier on and compare its performance to the classifier trained on . The approach is computationally efficient because the matrix must be calculated only once, which involves inverting a matrix.
Note that in general the orthogonal projection maps onto a lower-dimensional subspace, i.e., . Hence, to control for the effect of random removal of information in the ablation study, we also calculate an orthogonal projection for a random subspace. For this purpose, the values of the selected tabular features are shuffled in each fold for both the training and test set. This preserves the marginal distributions of the features while randomizing any correlations among them and with the output variable . Analogously, we also shuffle the values of every dimension in the representation of the tabular features . With these randomized tabular features or randomized representations, respectively, we also calculate the matrix from equation (2). In the ablation study, we compare the impact of removing random features against the removal of effects of the actual biochemical features.
In an additional analysis following the approach of [37], we evaluate how much of the variance in the embeddings-based predictions can be explained with the selected tabular features or their representation, respectively. Therefore, we fit a separate linear model with the predicted logits as dependent variable
and report its adjusted . This model is referred to as evaluation model. We perform this evaluation on the hold-out test set , that was not used for feature selection or fitting .
The code for our implementation and the experiments are available under https://gitlab.com/dacs-hpi/interpret_plms
4 Experiments
4.1 Data
We perform our experiments on a subset of ProteinGym [20], a collection of large-scale benchmark datasets for protein fitness prediction. Specifically, we focus on deep mutational scanning assays in which protein fitness is experimentally measured in high-throughput for variants of a certain reference protein, also called wild-type. We train the models across assays. Thus, we aim to find features that are relevant for fitness prediction for different proteins. Since the experimental measurements are often referring to different physical quantities across assays and are therefore not directly comparable, we use the binarized score of ProteinGym. Additionally, to maintain consistency among the labels, we split the data by assay function type, i.e., organismal fitness, activity, expression, and binding, and perform the analysis separately on these subsets. We focus on proteins from the human proteome as for those we collect additional tabular features. We also do not consider sequences with multiple mutations, i.e., where multiple amino acids have been substituted. This is because in our approach the tabular features refer to a single mutation. Several assays do not derive from the reference sequence in the UniProt database [30], or seem to consider only a subsequence. Since our tabular features use this reference, these assays are also excluded. After filtering, we end up with 113k, 69k, 51k, and 18k samples of mutated sequences for the labels Organismal Fitness, Activity, Expression, and Binding, respectively with positive-negative class ratios of 1.28, 1.54, 1.63, and 1.23. The samples in the subsets derive from 24, 15, 13, or 6 different reference wild-types, respectively. On these subsets, we perform a stratified 5-fold cross validation for our analysis. Note that ProteinGym also contains assays with function type Stability. However, after our filtering, only 796 samples of mutated sequences remain. Due to this small sample size, they are not considered in our analysis.
The tabular features are extracted from the Genomics 2 Proteins portal (G2P) [11]. They consist of structural properties based on the predicted structure for the wild-type sequence from AlphaFoldDB [33]. This includes the phi and psi angle of the mutated amino acid (angles between atoms in the amino acid structure), its relative solvent accessibility (RSA), a secondary structure classification, and AlphaFold 2's plddt (predicted local distance difference test) score measuring model confidence [9]. Further, we consider binary features indicating the type of substitution per amino acid, e.g. alanine to aspartic acid, or per chemical property, e.g. aliphatic to nonpolar. Note that the substitution features as well as the secondary structure classification features are mutually exclusive.
Given this combination of features describing the biochemical property of the substitution and the structure of the wild-type, we address protein fitness prediction by considering the change from wild-type to variant and not just the variant itself. Therefore, we calculate the differences of the embeddings and use them as input for the downstream model, i.e., if denotes the corresponding wild-type embedding, we use . However, for readability, we only write or . Figure 2 illustrates the embeddings and the corresponding differences after dimensionality reduction using UMAP [18] exemplary for the subset Activity. The dimensionality reduction was only applied for visualization and is not part of the further analysis. We see that while the raw embeddings cluster by their reference wild-type, the embedding differences are centered. Hence, since we consider variants deriving from different wild-types, i.e., across assays (see Section 4.1), the centered data is also more suitable to mitigate bias from a specific wild-type or assay. [7] also showed that considering differences could improve predictive performance.
4.2 Models
For our multi-step analysis, we consider different model architectures.
Feature Selection and Representation We fit a logistic regression model with L1 regularization for protein fitness prediction to select relevant tabular features. To balance performance and sparsity, we choose the sparsest model within one standard error of the best-performing model (1-SE rule) by cross-validation (nested in the outer CV).
For a feature representation that is capable of incorporating higher-order and interaction effects of the tabular features, we train a MLP for protein fitness prediction with two hidden layers of dimension as a baseline architecture on the selected tabular features . We also conduct a small hyperparameter search, i.e., scale up width and depth to ensure the model size appropriate for the task and train with different learning rates and dropout.
PLMs We embed the protein sequences via different Transformer-based PLMs from the widely used ESM family: ESM-1v [19] and ESM-2 [24]. For ESM-2 we consider three different models sizes: 35M, 150M, and 650M parameters corresponding to different embedding dimensions , 640, 1280. For all models, we do a mean pooling over the final-layer token embedding to aggregate the embeddings to sequence-level. We use an input length of 1,022 amino acids—matching the maximum input length of ESM-1v and the conventional input length for ESM-2 models. For
Raw embeddings
Embedding differences

Figure 2: Raw embeddings (left) of ESM-2 150M and their differences to the corresponding reference wild-type embedding (right) after UMAP dimensionality reduction for the subset Activity. In the first row, data points are colored based on protein fitness label (positive: orange, negative: blue). The second row displays the same data but the data points are colored based on their corresponding reference wild-type. The raw embeddings cluster by their reference wild-type, the embedding differences are centered.
sequences exceeding this length, we split the sequence into overlapping chunks of length 1,022 and aggregate their corresponding embeddings by mean pooling.
Downstream Task To predict protein fitness, we fit a logistic regression with L2 regularization on the different data types (tabular features, embeddings, their concatenation and embeddings after the orthogonal projection). Although a more expressive downstream classifier might increase predictive performance, we deliberately restrict model complexity because we are interested in what is already encoded in the embeddings and not what a classification head might learn.
4.3 Metrics
For predictive performance, we use Matthews correlation coefficient (MCC) to account for imbalances in the data. It ranges from -1 to 1 with 1 corresponding to a perfect classifier, 0 to a random or constant classifier, and -1 to an inverted perfect classifier. The area under the receiver operating characteristic curve (AUC) is used to choose the degree of regularization.
5 Results
5.1 Performance Comparison
Before we analyze the impact of the orthogonal projection, we consider the predictive performance of the linear classifiers fitted on the different data types. Figure 3 reports the MCC for models trained on selected tabular features (green), hidden-layer representations of the MLP of selected tabular features (light green), PLM embeddings (blue), and the concatenation of both (dark or light yellow, respectively). For all four protein functions, the embeddings of ESM-1v 650M and ESM-2 650M achieve the highest performance—substantially higher than the tabular features or their representation. Adding the tabular features or their representation to the embeddings leads to only a small or no performance increase, while the largest increase is for the smallest PLM ESM-2 35M. This indicates that the embeddings encode already most of the information provided by the tabular features. For the different ESM-2 models (35M, 150M, and 650M), we observe a slight upward trend in performance when increasing model size.
In general, the downstream classifiers achieve a higher performance for predicting Activity or Expression (e.g. MCC of 0.47 and 0.51 for ESM-1v 650M) compared to Organismal Fitness or Binding (MCC of 0.39 and 0.41 for ESM-1v 650M). The observed performance ranking is stable across the different PLMs and in line with findings of [17, 20]. When grouping the binary substitution features by chemical property, we observe very similar results (see Figure 6 in the appendix). This indicates
Tabular
Tabular representation (MLP)
Embedding
Concat. embedding and tabular
Concat. embedding and representation

Figure 3: Predictive performance measured in Matthews correlation coefficient (MCC) of linear classifiers trained on different data modalities: tabular features (dark green), hidden-layer representation of tabular features (light green), PLM embeddings (blue), and their respective concatenation (dark yellow: embeddings and tabular features, light yellow: embeddings and representation of tabular features) for the four protein functions and PLMs ESM-1v 650M, ESM-2 35M, ESM-2 150M, and ESM-2 650M. The values are averages across folds with corresponding estimated standard deviation as black error bars.
Table 1: Feature selection results using regularization for four protein functions. The columns contain the results for the substitution either on single amino acid level or grouped by chemical property. The number denotes average number of features with non-zero coefficients over the five folds with standard deviation in brackets. Additionally, the percentage of the respective total number of features is provided.
| Protein Function | Single amino acid features | Chemical property features | ||
|---|---|---|---|---|
| % | % | |||
| Org. Fitness | 204 (24) | 53 | 53 (1) | 80 |
| Activity | 249 (20) | 64 | 43 (2) | 64 |
| Expression | 260 (10) | 67 | 45 (1) | 67 |
| Binding | 193 (30) | 50 | 30 (6) | 44 |
that for the assays and protein functions considered here, it might be sufficient to have less granular information about the amino acid substitution.
For the linear classifier with tabular features only, the number of relevant features to predict protein fitness could be considerably reduced via regularization while keeping performance within one standard error. Table 1 summarizes the selected features and their percentage of the total number of features for the four protein functions considered. Since many binary features are mutually exclusive, it is not unexpected that on average around of all features obtain a zero coefficient with regularization.
For the feature representation of the tabular features, we did not observe a performance increase when scaling up the width and depth of the MLP (not shown here). Therefore, we kept the baseline architecture (two hidden layers and ) for the ablation study.
The results of the CITs are reported in Table 2. For testing for additional information between the embeddings and protein fitness given the tabular features (), we observe -values below the nominal level for 15 out of 16 cases. Hence, except for the embeddings of ESM-2 35M and Activity, we would always reject at a Bonferroni-corrected significance level
Table 2: -values for CITs for tabular features and embeddings with protein function , using -penalized prediction models within the CIT. Rows are protein language models; columns are protein functions. Each entry is the combination of the -values across folds into a single -value, obtained by [36]. Bold values are significant after Bonferroni correction (4 embeddings hypotheses; ).
| PLM | Protein Function | ||
|---|---|---|---|
| ESM-1v 650M | Organismal Fitness | ||
| Activity | |||
| Expression | |||
| Binding | |||
| ESM-2 35M | Organismal Fitness | ||
| Activity | |||
| Expression | |||
| Binding | |||
| ESM-2 150M | Organismal Fitness | ||
| Activity | |||
| Expression | |||
| Binding | |||
| ESM-2 650M | Organismal Fitness | ||
| Activity | |||
| Expression | |||
| Binding | 1.00 |
of (4 embeddings hypotheses). This means that the embeddings contain statistically significant effects beyond the tabular features across almost all protein functions and models. A plausible reason for the non-significance with the ESM-2 35M embeddings is the relatively small dimension compared to the other embeddings. When testing for additional information between the tabular features and protein fitness given the embeddings (), we only observe significant results in four cases: for Activity for three models and for Expression for the smallest model ESM-2 35M. This indicates that, except for Activity, the tabular features contain little to no additional information for protein function beyond the embeddings. This is in line with the observations before when comparing the performance of the embeddings and the concatenations with the tabular features.
5.2 Ablation Study
After applying the orthogonal projection to the PLM embeddings with respect to the tabular features or their representation, respectively (red bars in Figure 4), we see a drop in average performance for all four protein functions and PLMs. In particular, the difference in average MCC exceeds the standard deviation observed across folds. For ESM-1v 650M, we see absolute changes in average MCC of (), (), (), and () for the four protein functions when removing the linear effects of the tabular features. We observe very similar absolute drops for the three ESM-2 models.
In all cases, the orthogonal projection with respect to the representation of the tabular features reduces that average performance even further than removing only the linear effects (see light red bar compared to dark red bar in Figure 4). For ESM-1v 650M, this corresponds to differences in average MCC of , , , and for the four protein functions. For the smallest PLM ESM-2 35M, the average MCC falls from 0.35 to 0.15 and hence, the model comes closer to a random classifier. This indicates that higher-order and interaction effects relevant for protein fitness are often already encoded in the embeddings.

Figure 4: Predictive performance measured in Matthews correlation coefficient (MCC) of linear classifiers trained on PLM embeddings (blue) and PLM embeddings orthogonally projected w.r.t. randomized tabular features (dark gray), tabular features (dark red), their randomized representation (light gray) or their representation (light red), respectively, for the four protein functions and PLMs ESM-1v 650M, ESM-2 35M, ESM-2 150M, and ESM-2 650M. The values are averages across folds with corresponding estimated standard deviation as black error bars. For all protein functions and models, the orthogonal projection w.r.t. tabular features (dark red) leads to substantial decrease in predictive performance exceeding the standard deviation observed across folds. If the projection is w.r.t. representation of tabular features (light red), the effect is even stronger. In contrast, for the orthogonal projection w.r.t. to randomized features or representations (dark and light gray), there is only a negligible change in performance.
For the control experiment with the orthogonal projection for a random subspace, we observe that the average MCC remains essentially unchanged compared to the case without projection (dark and light gray vs. blue in Figure 4). This supports the claim that the performance drop we observe after the orthogonal projection is specifically due to the removal of patterns within the embeddings correlated with the biochemical features and not due to random removal of information or decreasing the dimension of the embedding space. The results for the substitution features grouped chemical property are again very similar (see Figure 7 in the appendix).
Hence, our ablation study shows that the PLM embeddings contain patterns correlated to the effects of the biochemical features which are helpful for protein fitness prediction. Furthermore, our extension of the orthogonal projection to higher-order and interaction effects is capable of removing relevant information beyond linear effects from the embeddings.
5.3 Evaluation Model
In our final evaluation, we consider how much of the variance in the embedding-based predictions can be explained with the biochemical features. Further, we analyze how these features correlate with embedding-based predictions and whether this relates to know biochemical properties. For this evaluation model, we regress the embedding-based predicted logits on the tabular features or their representation, respectively, on the test set. The corresponding adjusted is reported in Table 3. We consider here the embeddings of ESM-1v 650M. We observe that both the tabular features and their representation can explain a substantial part of the variance in the embedding-based predicted logits, i.e., ranging from 0.15 to 0.29. Hence, up to 29% of the variance in the predicted logits can be attributed to the biochemical features. This indicates that the embeddings encode patterns correlated to the tabular features that are relevant for protein fitness prediction. For Activity and Expression, we observe the highest . This is in line with results from section 5.1, where we saw the highest performance among classifiers trained on tabular features. For Binding, we see the lowest adjusted . Again, this is in line with results from the previous section, where the tabular features had the lowest predictive performance. After applying the randomized orthogonal projection to the embeddings,
Table 3: Results of evaluation model for four protein functions: Adjusted for regressing embedding-based predicted logits (ESM-1v 650M) on tabular features or representation of tabular features, respectively, for embeddings without orthogonal projection ('No ortho'), after applying the randomized orthogonal projection ('Rand. ortho.'), and after (regular) orthogonal projection ('Ortho.'). The values are averages across folds with corresponding estimated standard deviation in brackets.
| Protein Function | Adjusted | |||||
|---|---|---|---|---|---|---|
| Tabular | Repr. Tab. | |||||
| No ortho. | Rand. ortho. | Ortho. | No ortho. | Rand. ortho. | Ortho. | |
| Org. Fitness | 0.189 (0.006) | 0.189 (0.006) | 0.002 (0.001) | 0.234 (0.005) | 0.234 (0.005) | 0.007 (0.001) |
| Activity | 0.220 (0.006) | 0.221 (0.005) | 0.004 (0.002) | 0.250 (0.005) | 0.251 (0.004) | 0.006 (0.003) |
| Expression | 0.262 (0.004) | 0.262 (0.004) | 0.008 (0.003) | 0.289 (0.012) | 0.288 (0.012) | 0.009 (0.003) |
| Binding | 0.153 (0.024) | 0.153 (0.021) | 0.018 (0.009) | 0.206 (0.014) | 0.203 (0.008) | 0.011 (0.005) |
Table 4: Coefficients of structural features of evaluation model for four protein functions: average coefficients across folds for regressing embedding-based predicted logits (ESM-1v 650M) on structural tabular features. Significance refers to whether estimate was significant across all folds. Blanks refer to variables that were excluded during features selection.
| Feature | Protein Function | |||
|---|---|---|---|---|
| Org. Fitness | Activity | Expression | Binding | |
| phi | -0.051 * | -0.021 | -0.127 * | -0.145 * |
| psi | 0.003 | 0.052 | -0.011 | 0.010 |
| plddt | -0.139 * | -0.138 * | -0.117 * | -0.097 |
| rsa | 0.316 * | 0.425 * | 0.467 * | 0.339 * |
| strand | — | 0.026 | -0.274 | -0.606 * |
| coil | 0.005 | 0.016 | 0.094 | — |
| helix | 0.280 * | 0.010 | — | 0.232 |
*: Significant after the Benjamini–Hochberg procedure at FDR=5%
the remains essentially unchanged as we have seen with the performance in the previous section. For the regular (non-randomized) orthogonal projection, the drops close to zero. This is expected because after removing any linear effects of the tabular features or their representation, respectively, they cannot explain any variance in the embedding-based predicted logits anymore. As this evaluation is performed on the test set, the value is not expected to be exactly zero. In particular, when fitting the evaluation model on the same data on which the orthogonal projection was calculated, we see a drop to exactly zero (omitted here). For the different ESM-2 models, we observe similar adjusted (see Table 5 in the appendix) compared to the ESM-1v embeddings.
As a last step of our evaluation, we consider the estimated coefficients of the evaluation model. In particular, we are interested in which features are correlated with the embedding-based predictions and whether these correlations correspond to known biological properties. As for the , we present here the results for the embeddings of ESM-1v. However, we observe very similar coefficients for the ESM-2 650M embeddings (see Table 6 and Figure 8 in the appendix). The coefficients for the structural features and whether they were significant in all folds are reported in Table 4. For the values of coefficients, we see shared patterns across protein function. For example, relative solvent accessibility (RSA), as a measure of how exposed or buried an amino acid residue is within a protein's 3D structure, contributes positively to prediction for all protein functions. It is even statistically significant across folds for all protein functions. This is in line with greater surface exposure of the affected amino acid being associated with reduced protein disruption. Consistently, the plddt score reflecting confidence in structure prediction is negatively correlated with the embeddings predicting

Figure 5: Heatmaps of coefficients of (binary) substitution features of evaluation model, i.e., fitted on the embedding-based predictions (ESM-1v 650M), for different protein functions. The reference amino acid (row) of the wild-type protein was substituted for the alternative amino acid (column). Upper plots illustrate coefficients for single amino acid substitution features, lower ones for substitution features grouped by chemical property. Every entry corresponds to coefficient with either positive (red) or negative (blue) contribution to the predicting the positive class. Coefficients of features excluded by the feature selection during training are set to zero (white). The values of coefficients are averages across folds.
protein fitness. This is in line with the score being related to protein flexibility and thus, functionally relevant regions [32].
The coefficients for the binary substitution features are illustrated as heatmaps in Figure 5. They display several patterns. For example, for Organismal Fitness, Activity, and Expression, a substitution of almost every reference amino acid for Proline (P) correlates with a lower predicted logit of the embedding-based classifier. Proline is known to have distinctive role for protein structure because of its rigidity, i.e., it usually ends a helix or introduces a kink [3]. Hence, a substitution can be disruptive for protein fitness. In contrast, substituting Glutamine (Q) contributes mostly positively to the predicted logits for Organismal Fitness. It is a more flexible amino acid and not necessarily essential for maintaining secondary structure. When considering the substitution features grouped by chemical property (lower row in Figure 5, we can also recover expected protein behavior. For example, for Organismal Fitness, Activity, and Expression, a substitution of an aromatic amino acid for a non-aromatic correlates negativity with the embedding-based classifier predicting protein fitness. Aromatic amino acids are known to contribute to protein structure due to interactions involving their aromatic rings [2].
6 Conclusion
In this work, we presented a computationally efficient approach to interpret embeddings of PLMs. In particular, we extended and applied an orthogonal projection technique to remove biochemical features from the embeddings. We could show that this led to a substantial decrease in performance of a classifier trained on these embeddings for protein fitness prediction. Furthermore, our additional control experiments—where the orthogonal projection was calculated with respect to a random subspace—showed that the decrease is not due to random removal of information or dimensionality.
reduction but actually driven by the removal of relevant biochemical features. In a further evaluation, we saw that these biochemical and their higher-order and interaction effects actually explain part of the variance in the predictions of the embedding-based classifier. These findings confirm previous results on PLM embeddings and predictive biochemical features for protein fitness prediction. This approach is not limited to the features considered in this analysis and easily transferable to a broader class of biological features. In future work, we also aim to investigate how these results generalize to other PLMs beyond the ESM family and PLMs fine-tuned for specific protein functions. As PLMs can help predict the effect of a variant on protein function, they can also contribute to understanding the underlying biochemical mechanism of many diseases. Furthermore, they have the potential to advance drug design, which in biomedical science, often involves targeting a specific protein or its function. For all of these purposes, approaches that provide interpretability are needed.
Acknowledgements
We gratefully acknowledge funding by grants KL 3037/7-1 (to NK) and RE 3474/8-1 (to BYR), project P5 in the Research Unit KI-FOR 5363 (grant 459422098) of the German Research Foundation (DFG).
Disclosure of Interests
The authors have no competing interests to declare that are relevant to the content of this article.
Use of Generative AI
The authors used ChatGPT by OpenAI and Claude by Anthropic for language editing of portions of the manuscript and for assistance with Python code development. All AI-generated content was carefully reviewed and edited by the authors, who take full responsibility for the accuracy, originality, and integrity of the manuscript. Generative AI was not used for data analysis, interpretation of results, or generation of scientific conclusions.
References
[1] Brandes, N., Goldman, G., Wang, C.H., Ye, C.J., Ntranos, V.: Genome-wide prediction of disease variant effects with a deep protein language model. Nature Genetics 55(9), 1512–1522 (2023)
[2] Calinsky, R., Levy, Y.: Aromatic residues in proteins: Re-evaluating the geometry and energetics of , cation- , and ch- interactions. The Journal of Physical Chemistry B 128(36), 8687 (2024)
[3] Cordes, F.S., Bright, J.N., Sansom, M.S.: Proline-induced distortions of transmembrane helices. Journal of Molecular Biology 323(5), 951–960 (2002)
[4] Derbel, H., Zhao, Z., Liu, Q.: Accurate prediction of functional effect of single amino acid variants with deep learning. Computational and Structural Biotechnology Journal 21, 5776–5784 (2023)
[5] Elnaggar, A., Heinzinger, M., Dallago, C., Rehawi, G., Wang, Y., Jones, L., Gibbs, T., Feher, T., Angerer, C., Steinegger, M., et al.: Protrans: Toward understanding the language of life through self-supervised learning. IEEE transactions on pattern analysis and machine intelligence 44(10), 7112–7127 (2021)
[6] Gerasimavicius, L., Teichmann, S.A., Marsh, J.A.: Leveraging protein structural information to improve variant effect prediction. Current opinion in structural biology 92, 103023 (2025)
[7] Gereben, O., Tordai, H., Khamisi, L., Qorri, E., Hegedüs, T.: plm-sav: A -embedding approach for predicting pathogenic single amino acid variants. bioRxiv pp. 2025–05 (2025)
[8] Hsu, C., Nisonoff, H., Fannjiang, C., Listgarten, J.: Learning protein fitness models from evolutionary and assay-labeled data. Nature biotechnology 40(7), 1114–1122 (2022)
[9] Jumper, J., Evans, R., Pritzel, A., Green, T., Figurnov, M., Ronneberger, O., Tunyasuvunakool, K., Bates, R., Žídek, A., Potapenko, A., Bridgland, A., Meyer, C., Kohl, S.A.A., Ballard, A.J., Cowie, A., Romera-Paredes, B., Nikolov, S., Jain, R., Adler, J., Back, T., Petersen, S., Reiman, D., Clancy, E., Zielinski, M., Steinegger, M., Pacholska, M., Berghammer, T., Bodenstein, S., Silver, D., Vinyals, O., Senior, A.W., Kavukcuoglu, K., Kohli, P., Hassabis, D.: Highly accurate protein structure prediction with alphafold. nature 596(7873), 583–589 (2021)
[10] Köhler, D., Rügamer, D., Schmid, M.: Achieving interpretable machine learning by functional decomposition of black-box models into explainable predictor effects. arXiv preprint arXiv:2407.18650 (2024)
[11] Kwon, S., Safer, J., Nguyen, D.T., Hoksza, D., May, P., Arbesfeld, J.A., Rubin, A.F., Campbell, A.J., Burgin, A., Iqbal, S.: Genomics 2 Proteins portal: a resource and discovery tool for linking genetic screening outputs to protein sequences and structures. Nature Methods pp. 1–11 (2024)
[12] Lin, Z., Akin, H., Rao, R., Hie, B., Zhu, Z., Lu, W., Smetanin, N., Verkuil, R., Kabeli, O., Shmueli, Y., et al.: Evolutionary-scale prediction of atomic-level protein structure with a language model. Science 379(6637), 1123–1130 (2023)
[13] Livesey, B.J., Badonyi, M., Dias, M., Frazer, J., Kumar, S., Lindorff-Larsen, K., McCandlish, D.M., Orenbuch, R., Shearer, C.A., Muffley, L., Foreman, J., Glazer, A.M., Lehner, B., Marks, D.S., Roth, F.P., Rubin, A.F., Starita, L.M., Marsh, J.A.: Guidelines for releasing a variant effect predictor. Genome Biology 26(1), 97 (2025)
[14] Lu, M., Zhao, Q., Zhang, J., Pohl, K.M., Fei-Fei, L., Niebles, J.C., Adeli, E.: Metadata normalization. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. pp. 10917–10927 (2021)
[15] Lundborg, A.R., Kim, I., Shah, R.D., Samworth, R.J.: The projected covariance measure for assumption-lean variable significance testing. The Annals of Statistics 52(6), 2851–2878 (2024)
[16] Marquet, C., Heinzinger, M., Olenyi, T., Dallago, C., Erckert, K., Bernhofer, M., Nechaev, D., Rost, B.: Embeddings from protein language models predict conservation and variant effects. Human genetics 141(10), 1629–1647 (2022)
[17] Marquet, C., Schlensok, J., Abakarova, M., Rost, B., Laine, E.: Expert-guided protein language models enable accurate and blazingly fast fitness prediction. Bioinformatics 40(11), btae621 (2024)
[18] McInnes, L., Healy, J., Melville, J.: Umap: Uniform manifold approximation and projection for dimension reduction. arXiv preprint arXiv:1802.03426 (2018)
[19] Meier, J., Rao, R., Verkuil, R., Liu, J., Sercu, T., Rives, A.: Language models enable zero-shot prediction of the effects of mutations on protein function. Advances in neural information processing systems 34, 29287–29303 (2021)
[20] Notin, P., Kollasch, A., Ritter, D., Van Niekerk, L., Paul, S., Spinner, H., Rollins, N., Shaw, A., Orenbuch, R., Weitzman, R., et al.: Proteingym: Large-scale benchmarks for protein fitness prediction and design. Advances in Neural Information Processing Systems 36 (2024)
[21] Rao, R., Meier, J., Sercu, T., Ovchinnikov, S., Rives, A.: Transformer protein language models are unsupervised structure learners. bioRxiv (2020). https://doi.org/10.1101/2020.12.15.422761
[22] Rehm, H.L., Alaimo, J.T., Aradhya, S., Bayrak-Toydemir, P., Best, H., Brandon, R., Buchan, J.G., Chao, E.C., Chen, E., Clifford, J., Cohen, A.S.A., Conlin, L.K., Das, S., Davis, K.W., Gaudio, D.d., Viso, F.D., DiVincenzo, C., Eisenberg, M., Guidugli, L., Hammer, M.B., Harrison, S.M., Hatchell, K.E., Dyer, L.H., Hoang, L.U., Holt, J.M., Jobanputra, V., Karbassi, I.D., Kearney, H.M., Kelly, M.A., Kelly, J.M., Kluge, M.L., Komala, T., Kruszka, P., Lau, L., Lebo, M.S., Marshall, C.R., McKnight, D., McWalter, K., Meng, Y., Nagan, N., Neckelmann, C.S., Neerman, N., Niu, Z., Paolillo, V.K., Paolucci, S.A., Perry, D., Pesaran, T., Radtke, K., Rasmussen, K.J., Retterer, K., Saunders, C.J., Spiteri, E., Stanley, C., Szuto, A., Taft, R.J., Thiffault, I., Thomas, B.C., Thomas-Wilson, A., Thorpe, E., Tidwell, T.J., Towne, M.C., Zouk, H., Marshall, C., Meng, L., Jobanputra, V., Taft, R., Ashley, E., Nakouzi, G., Shen, W.,
Kingsmore, S., Rehm, H.: The landscape of reported vus in multi-gene panel and genomic testing: time for a change. Genetics in Medicine 25(12), 100947 (2023)
[23] Rissom, P.F., Yanez Sarmiento, P., Safer, J., Coley, C.W., Renard, B.Y., Heyne, H.O., Iqbal, S.: Decoding protein language models: insights from embedding space analysis. bioRxiv pp. 2024–06 (2024)
[24] Rives, A., Meier, J., Sercu, T., Goyal, S., Lin, Z., Liu, J., Guo, D., Ott, M., Zitnick, C.L., Ma, J., et al.: Biological structure and function emerge from scaling unsupervised learning to 250 million protein sequences. Proceedings of the National Academy of Sciences 118(15), e2016239118 (2021)
[25] Rügamer, D.: A new PHO-rmula for improved performance of semi-structured networks. In: International Conference on Machine Learning. pp. 29291–29305. PMLR (2023)
[26] Rügamer, D., Kolb, C., Klein, N.: Semi-structured distributional regression. The American Statistician 78(1), 88–99 (2023)
[27] Schmirler, R., Heinzinger, M., Rost, B.: Fine-tuning protein language models boosts predictions across diverse tasks. Nature Communications 15(1), 7407 (2024)
[28] Simnacher, M., Xu, X., Park, H., Lippert, C., Greven, S.: Deep nonparametric conditional independence tests for images. Journal of Machine Learning Research 27(96), 1–73 (2026)
[29] Simon, E., Zou, J.: Interplm: Discovering interpretable features in protein language models via sparse autoencoders. bioRxiv pp. 2024–11 (2024)
[30] The UniProt Consortium: Uniprot: the universal protein knowledgebase in 2025. Nucleic acids research 53(D1), D609–D617 (2025)
[31] Valentini, G., Malchiodi, D., Gliozzo, J., Mesiti, M., Soto-Gomez, M., Cabri, A., Reese, J., Casiraghi, E., Robinson, P.N.: The promises of large language models for protein design and modeling. Frontiers in Bioinformatics 3, 1304099 (2023)
[32] Vander Meersche, Y., Diharce, J., Gelly, J.C., Galochkina, T.: Flexibility or uncertainty? A critical assessment of AlphaFold 2 pLDDT. Structure 33(12), 2157–2163 (2025)
[33] Varadi, M., Bertoni, D., Magana, P., Paramval, U., Pidruchna, I., Radhakrishnan, M., Tsenkov, M., Nair, S., Mirdita, M., Yeo, J., Kovalevskiy, O., Tunyasuvunakool, K., Laydon, A., Žídek, A., Tomlinson, H., Hariharan, D., Abrahamson, J., Green, T., Jumper, J., Birney, E., Steinegger, M., Hassabis, D., Velankar, S.: Alphafold protein structure database in 2024: providing structure coverage for over 214 million protein sequences. Nucleic acids research 52(D1), D368–D375 (2024)
[34] Vellido, A.: The importance of interpretability and visualization in machine learning for applications in medicine and health care. Neural computing and applications 32(24), 18069–18083 (2020)
[35] Vig, J., Madani, A., Varshney, L.R., Xiong, C., Socher, R., Rajani, N.F.: BERTology Meets Biology: Interpreting Attention in Protein Language Models. In: International Conference on Learning Representations (2021)
[36] Vovk, V., Wang, R.: Combining p-values via averaging. Biometrika 107(4), 791–808 (2020)
[37] Weber, T., Ingrisch, M., Bischl, B., Rügamer, D.: Preventing Sensitive Information Leakage via Post-hoc Orthogonalization with Application to Chest Radiograph Embeddings. In: Pacific-Asia Conference on Knowledge Discovery and Data Mining. pp. 103–114. Springer (2025)
Appendix

Figure 6: Predictive performance measured in Matthews correlation coefficient (MCC) of linear classifiers trained on different data modalities: tabular features where the substitution features where grouped by biochemical property (dark green), hidden-layer representation of tabular features (light green), PLM embeddings (blue), and their respective concatenation (dark yellow: embeddings and tabular features, light yellow: embeddings and representation of tabular features) for the four protein functions and PLMs ESM-1v 650M, ESM-2 35M, ESM-2 150M, and ESM-2 650M. The values are averages across folds with corresponding estimated standard deviation as black error bars.

Figure 7: Predictive performance measured in Matthews correlation coefficient (MCC) of linear classifiers trained on PLM embeddings (blue) and PLM embeddings orthogonally projected w.r.t. randomized tabular features (dark gray), tabular features (dark red), their randomized representation (light gray) or their representation (light red), respectively, for the four protein functions and PLMs ESM-1v 650M, ESM-2 35M, ESM-2 150M, and ESM-2 650M. The substitution features of the tabular features are grouped by biochemical property. The values are averages across folds with corresponding estimated standard deviation as black error bars. For all protein functions and models, the orthogonal projection w.r.t. tabular features (dark red) leads to substantial decrease in predictive performance exceeding the standard deviation observed across folds. If the projection is w.r.t. representation of tabular features (light red), the effect is even stronger. In contrast, for the orthogonal projection w.r.t. to randomized features or representations (dark and light gray), there is only a negligible change in performance.
Table 5: Results of evaluation model for four protein functions ('PF'): Adjusted for regressing embedding-based predicted logits (ESM-2 35M, 150M, and 650M) on tabular features or representation of tabular features, respectively, for embeddings without orthogonal projection ('No ortho'), after applying the randomized orthogonal projection ('Rand. ortho.'), and after (regular) orthogonal projection ('Ortho.'). The values are averages across folds with corresponding estimated standard deviation in brackets.
| ESM-2 size | PF | Adjusted | |||||
|---|---|---|---|---|---|---|---|
| Tabular | Repr. Tab. | ||||||
| No ortho. | Rand. ortho. | Ortho. | No ortho. | Rand. ortho. | Ortho. | ||
| 35M | Org. | 0.170 (0.007) | 0.169 (0.007) | 0.001 (0.001) | 0.189 (0.004) | 0.190 (0.004) | 0.004 (0.001) |
| Act. | 0.217 (0.008) | 0.217 (0.008) | 0.006 (0.002) | 0.224 (0.008) | 0.224 (0.008) | 0.006 (0.002) | |
| Expr. | 0.212 (0.006) | 0.211 (0.006) | 0.010 (0.004) | 0.220 (0.007) | 0.218 (0.007) | 0.008 (0.003) | |
| Bind. | 0.157 (0.017) | 0.156 (0.017) | 0.010 (0.011) | 0.210 (0.020) | 0.208 (0.021) | 0.014 (0.002) | |
| 150M | Org. | 0.188 (0.005) | 0.189 (0.003) | 0.003 (0.001) | 0.238 (0.004) | 0.239 (0.006) | 0.006 (0.001) |
| Act. | 0.223 (0.008) | 0.225 (0.008) | 0.004 (0.002) | 0.251 (0.006) | 0.253 (0.006) | 0.008 (0.002) | |
| Expr. | 0.241 (0.007) | 0.241 (0.007) | 0.007 (0.004) | 0.266 (0.007) | 0.265 (0.007) | 0.011 (0.003) | |
| Bind. | 0.150 (0.015) | 0.147 (0.015) | 0.009 (0.006) | 0.200 (0.010) | 0.196 (0.010) | 0.008 (0.012) | |
| 650M | Org. | 0.176 (0.004) | 0.176 (0.004) | 0.001 (0.001) | 0.231 (0.003) | 0.231 (0.003) | 0.007 (0.001) |
| Act. | 0.209 (0.010) | 0.210 (0.010) | 0.006 (0.002) | 0.242 (0.007) | 0.243 (0.006) | 0.006 (0.002) | |
| Expr. | 0.230 (0.008) | 0.229 (0.007) | 0.008 (0.003) | 0.242 (0.010) | 0.241 (0.010) | 0.011 (0.001) | |
| Bind. | 0.167 (0.018) | 0.164 (0.018) | 0.015 (0.010) | 0.221 (0.016) | 0.219 (0.010) | 0.008 (0.006) | |
Table 6: Coefficients of structural features of evaluation model for four protein functions: average coefficients across folds for regressing embedding-based predicted logits (ESM-2 650M) on structural tabular features. Significance refers to whether estimate was significant across all folds. Blanks refer to variables that were excluded during features selection.
| Feature | Protein Function | |||
|---|---|---|---|---|
| Org. Fitness | Activity | Expression | Binding | |
| phi | -0.052 ** | — | -0.125 * | -0.082 |
| psi | 0.002 | 0.060 | — | -0.023 |
| plddt | -0.134 * | -0.138 * | -0.061 | -0.132 |
| rsa | 0.348 * | 0.395 * | 0.494 * | 0.415 * |
| strand | — | -0.096 | -0.298 | -0.427 |
| coil | -0.052 | 0.031 | 0.086 | — |
| helix | 0.230 * | 0.065 | — | 0.335 |
*: Significant after the Benjamini–Hochberg procedure at FDR=5%

Figure 8: Heatmaps of coefficients of (binary) substitution features of evaluation model, i.e., fitted on the embedding-based predictions (ESM-2 650M), for different protein functions. The reference amino acid (row) of the wild-type protein was substituted for the alternative amino acid (column). Upper plots illustrate coefficients for single amino acid substitution features, lower ones for substitution features grouped by chemical property. Every entry corresponds to coefficient with either positive (red) or negative (blue) contribution to the predicting the positive class. Coefficients of features excluded by the feature selection during training are set to zero (white). The values of coefficients are averages across folds.