From Mechanistic Interpretability to Mechanistic Biology: Training, Evaluating,
     and Interpreting Sparse Autoencoders on Protein Language Models


                 Etowah Adams * 1 Liam Bai * 2 Minji Lee 1 Yiyang Yu 1 Mohammed AlQuraishi 1


                         Abstract                                   teins useful for downstream tasks including protein structure
                                                                    (Lin et al., 2023) and function (Rao et al., 2019; Notin et al.,
      Protein language models (pLMs) are powerful pre-              2022) prediction. For this reason, pLMs have become a
      dictors of protein structure and function, learning           growing component of the protein biologist’s toolkit.
      through unsupervised training on millions of pro-
      tein sequences. pLMs are thought to capture com-              As these models are widely adopted, a number of studies
      mon motifs in protein sequences, but the specifics            have investigated their inner workings to understand their
      of pLM features are not well understood. Identi-              limitations. Previous work suggests pLMs do not learn the
      fying these features would not only shed light on             biophysics of proteins, but rather store common sequence
      how pLMs work, but potentially uncover novel                  motifs and contacts (Zhang et al., 2024). For many down-
      protein biology––studying the model to study the              stream tasks, pLM performance is driven by features learned
      biology. Motivated by this, we train sparse au-               in early layers and does not scale well with pre-training (Li
      toencoders (SAEs) on the residual stream of a                 et al., 2024). Yet exactly what pLMs have learned about
      pLM, ESM-2. By characterizing SAE features,                   proteins remains unknown.
      we determine that pLMs use a combination of                   Recent work in mechanistic interpretability points to a path
      generic features and family-specific features to              forward. Sparse autoencoders (SAEs) have successfully
      represent a protein. In addition, we demonstrate              extracted interpretable features from large language models
      how known sequence determinants of properties                 (LLMs) like GPT-4 and Claude (Gao et al., 2024; Temple-
      such as thermostability and subcellular localiza-             ton et al., 2024). SAEs decompose model activations into
      tion can be identified by linear probing of SAE               a sparse, high-dimensional representation where individ-
      features. For predictive features without known               ual latent dimensions often have interpretable activation
      functional associations, we hypothesize their role            patterns. These features provide a window into the inner
      in unknown mechanisms and provide visualiza-                  workings of these complex models. Training SAEs on pLMs
      tion tools to aid their interpretation. Our study             can serve an additional purpose. Unlike natural languages,
      gives a better understanding of the limitations of            which we intuitively understand, the language of proteins
      pLMs, and demonstrates how SAE features can                   is more cryptic. SAE features from pLMs could potentially
      be used to help generate hypotheses for biological            unveil patterns in protein sequences that we have not yet
      mechanisms. We release our code, model weights                discovered.
      and feature visualizer.
                                                                    In this work, we train SAEs on the residual stream of ESM-
                                                                    2, a widely used pLM (Lin et al., 2022) (Figure 1a). To
                                                                    interpret the SAE latents, we develop InterProt, a tool that
1. Introduction                                                     visualizes latent activations on protein sequences and struc-
                                                                    tures. We find that some features are highly interpretable,
Protein language models (pLMs) are language models                  corresponding to a range of concepts from secondary struc-
trained on large datasets of protein sequences. In the pro-         ture elements to entire domains, as reported contempora-
cess of minimizing loss on their pre-training task–usually          neously by Simon & Zou (2024). We conduct a human
masked token prediction–they learn representations of pro-          evaluation study and find that SAE latents are consistently
  *
    Equal contribution 1 Department of Systems Biology,             rated as interpretable, in contrast to the ESM baseline. Fur-
Columbia University 2 Ginkgo Bioworks, Boston. Correspondence       thermore, we find that many features activate highly only
to: Etowah Adams <ea2901@columbia.edu>.                             on specific protein families, suggesting that pLMs rely on
                                                                    internal representations of protein families to perform their
Proceedings of the 42 nd International Conference on Machine        pre-training task. We introduce a method to categorize SAE
Learning, Vancouver, Canada, PMLR 267, 2025. Copyright 2025
by the author(s).                                                   latents based on their family specificity and activation pat-

                                                                1
                           Interpreting Features in Protein Language Models using Sparse Autoencoders




Figure 1. Overview of our paper. a. We train SAEs on the output of ESM intermediate layers. b. We interpret SAE latents using our latent
visualizer InterProt and categorize features based on their activation pattern and family specificity. c. By interpreting the weights of linear
models trained on SAE latents, we show how features which correspond to known sequence determinants can be identified.


tern (Figure 1b).                                                         pLMs seem to use a notion of sequence homology and
                                                                          recurring protein motifs. Using influence functions, Gordon
Having developed a framework for understanding features,
                                                                          et al. (2024) finds that pLM-derived sequence likelihoods
we explore the impact of SAE hyperparameters and ESM
                                                                          are driven by homologous protein training data. Zhang et al.
layers. We find that increasing the sparsity imposed on
                                                                          (2024) propose that pLMs store common motifs in proteins
SAE latents increases the number of features that are family-
                                                                          and the pairwise contacts between them. They arrive at this
specific as does increasing the expansion factor. The number
                                                                          proposition by analyzing what residue segments must be
of family-specific features also varies substantially by ESM
                                                                          unmasked to recover a sequence contact (via the “categorical
layer, with middle layers containing the most family-specific
                                                                          Jacobian”).
features.
                                                                          Many studies have explored how pLMs work mechanisti-
With the goal of mapping SAE features to important protein
                                                                          cally as well. Analyses of attention matrices in pLMs have
properties, we train linear probes on SAE features and an-
                                                                          been shown to resemble pairwise contact maps (Vig et al.,
alyze the most predictive features. Our method identifies
                                                                          2021; Rao et al., 2021; Lin et al., 2023), and contain infor-
features corresponding to known sequence determinants for
                                                                          mation such as binding sites (Vig et al., 2021) and allosteric
properties such as thermostability and subcellular localiza-
                                                                          sites (Kannan et al., 2024; Dong et al., 2024). They have
tion. These results demonstrate that SAEs can help us not
                                                                          been comprehensively mapped to Gene Ontology terms
only understand pLMs, but also the data on which they are
                                                                          (Chen et al., 2025).
trained. By making pLM representations interpretable, we
envision that SAE features may help generate hypotheses                   Concurrent to our work, Simon & Zou (2024) trained SAEs
for unknown biological mechanisms (Figure 1c).                            on ESM-2 and presented methods to analyze their latents:
                                                                          visualizing them, evaluating them against Swiss-Prot anno-
2. Related Works                                                          tations, and interpreting them with a language model. Our
                                                                          work builds on this foundation with a different SAE archi-
2.1. Interpreting protein language models                                 tecture and evaluation methods that focus on coevolution,
                                                                          human preference, and downstream tasks (subsection A.3).
Previous evaluations of pLM representations on downstream
tasks provide evidence of features that pLMs may be learn-
                                                                          2.2. Dictionary learning for feature extraction from
ing (Rao et al., 2019; Dallago et al., 2021; Detlefsen et al.,
                                                                               models trained on biological data
2022; Li et al., 2024). In particular, Li et al. 2024 performs
a comprehensive analysis of ESM performance on a range                    Following the success of extracting interpretable features
of downstream tasks across different model sizes and layers.              from LLMs, a number of works have applied sparse dic-
Of the tasks they tested, they find that only structure-related           tionary learning techniques to models trained on scientific
prediction tasks scales with model size, and that most tasks              data. Donhauser et al. (2024) evaluates the possibility of
use “low-level features” learned early in pre-training. A key             extracting features from models trained on microscopy data.
limitation of using downstream tasks to understand the fea-               Interpretable features have also been uncovered from sin-
tures learned by pLMs is that features cannot be discovered               gle cell foundation models (Schuster, 2024; Adam Green,
without supervision. In contrast, SAEs can uncover features               2024). Associating the extracted features with functional
in a more unsupervised manner.                                            labels via probing, however, has not yet been explored in


                                                                      2
                          Interpreting Features in Protein Language Models using Sparse Autoencoders




Figure 2. Examples of SAE features. We find features related to secondary structure (a), conserved motifs and domains (b), and
biochemical patterns in specific structural contexts (c). The structures are colored according to activation (red: activation, blue: no
activation).


this context.                                                          them from the underlying conceptual features of the model.
                                                                       This is in contrast to previous works which use the word
3. Background and Methods                                              feature to refer to both (Bricken et al., 2024).

3.1. Sparse autoencoders (SAEs)                                        3.2. Downstream tasks
An SAE is an autoencoder designed to learn efficient and               Secondary structure. The secondary structure dataset from
meaningful representations by enforcing sparsity constraints           TAPE (Rao et al., 2019) contains residue-level labels in 3
on encoder output. We use SAEs with TopK activation to en-             classes: alpha helix, beta strand, or other. To prevent data
force sparsity, as introduced in Gao et al. (2024). This activa-       leakage, sequences are divided into training and test sets
tion function only allows the k largest latents to be non-zero.        based on a threshold of 25% sequence identity.
We choose TopK SAEs due to their improved reconstruction
at a given level of sparsity compared to other techniques,             Subcellular localization. Subcellular localization is a
and because it allows us to directly set the L0-norm of the en-        protein-level label for where a protein is localized within
coding using k. We note that improved reconstruction may               a cell. The dataset from Almagro Armenteros et al. (2017)
come at the cost of increased feature absorption (Karvonen             consists of UniProt-sourced eukaryotic proteins, with strin-
et al., 2024).                                                         gent homology-based train-test splits.

The encoder and decoder are defined as:                                Thermostability. The thermostability dataset from the
                                                                       Melteome Atlas (Jarzab et al., 2020) measures the melt-
                z = TopK (Wenc (x − bpre ))                            ing temperature of 48,000 proteins across 13 species. We
                      x̂ = Wdec z + bpre                               use the train-test split from FLIP (Dallago et al., 2021) con-
                                                                       taining all sequences clustered at 25% sequence identity.
where Wenc projects the residual stream into the SAE latent
space and Wdec the reverse. TopK zeros all latents that are            Mammalian cell expression. The dataset curated by Mas-
not in the top k. The loss is simply the reconstruction mean           son et al. (2022) contains expression data of 2,165 proteins
squared error L = ∥x − x̂∥22 . We train our TopK SAEs                  from the human secretome in Chinese hamster ovary (CHO)
on 1 million random sequences under 1022 residues from                 cells, commonly used mammalian hosts for therapeutic pro-
UniRef50 (Suzek et al., 2007).                                         tein production. We use this dataset as a binary classification
                                                                       task to determine whether a protein can be successfully ex-
Following Lieberum et al. (2024), we refer to the hidden               pressed in CHO cells. We split proteins into training and
dimensions of the SAE as “latents” to clearly distinguish

                                                                   3
                           Interpreting Features in Protein Language Models using Sparse Autoencoders




Figure 3. a. Example of a family specific feature, the central helix of a beta lactamase. The histogram shows the distribution of maximum
activations in the sequences which activate the latent. b. Example of a non-family specific feature, corresponding to disordered sequences.
c. Latents classified by activation pattern across layers. d. Number of family-specific latents across layers. The SAEs used in c and d have
a hidden dimension of 4096 and k=64.


test sets based on a threshold of 40% sequence identity.                 To interpret a given SAE latent dimension (i.e., a latent), we
                                                                         examine the top activating protein sequences, i.e., those that
3.3. Linear probes                                                       produce the largest activation for that dimension. We devel-
                                                                         oped a latent visualizer, InterProt, to streamline the process
For each task and for varying ESM layers, we train linear                of identifying features. InterProt allows users to align the
probes on both ESM and SAE embeddings. We mean-pool                      most-activating sequences and highlight their corresponding
embeddings over the length of the sequence for tasks with                protein structure by activation strength. It is open source
protein-level labels: subcellular localization, thermostabil-            and can be accessed at https://interprot.com.
ity, and mammalian cell expression. For all linear regression
and logistic regression tasks, we perform grid search over               Through these visualizations, we gain insight into how ESM
a range of regularization strengths and pick the best model              internally represents protein sequences (Figure 2). Many
using a validation set. See Table 1 for a summary of the                 discovered features correspond to recognizable biological
probe implementation for each task.                                      concepts, such as secondary structure elements (e.g., alpha
                                                                         helices and beta strands), short conserved motifs, or entire
3.4. Manual feature interpretability study                               functional domains. Some features capture biochemical
                                                                         concepts like cysteine-cysteine bonds or the orientation of
Following Rajamanoharan et al. (2024), we conducted a                    residue side chains. In many ways, latents capture charac-
blinded study in which seven participants (graduate students             teristics of a protein that a biologist might notice.
and undergraduates familiar with protein biology) rated
the interpretability of SAE and ESM latents from layer 24.               Notably, while many latents are intuitive (e.g., focused on
Embeddings were computed on sequences from Swiss-Prot                    conserved motifs), others are unexpectedly specific. For
clustered at 30% sequence identity (see subsection A.6).                 instance, rather than a single, generic “alpha helix” latent,
Using our InterProt visualizer, each participant viewed 100              we observe multiple helix-related latents that activate under
randomly selected features (drawn uniformly from both                    more context-dependent conditions (e.g., at the beginning
models) and rated their interpretability as yes, no, or maybe.           of a helix, only when the helix is buried, or when the helix
                                                                         meets a certain length criterion). Other examples include
                                                                         highly context specific amino acids, such as asparagine
4. Feature Analysis                                                      residues in disordered regions.
4.1. SAEs uncover interpretable features                                 To systematically evaluate interpretability, we conducted a
We train TopK SAEs on the residual stream of different lay-              blinded human study to rate SAE and ESM latents (subsec-
ers of ESM-2 (650M) to explore its learned representations.              tion 3.4). SAE latents were rated as interpretable far more


                                                                     4
                          Interpreting Features in Protein Language Models using Sparse Autoencoders

                                                                        Activation Pattern. Latents exhibit distinct activation pat-
                                                                        terns across their top sequences (Figure 1b). To capture
                                                                        these differences, we use a rule-based scheme that classifies
                                                                        features into categories such as: point (activates on single
                                                                        residues at a time), periodic (activates in a regular inter-
                                                                        val, repeating every n residues), motif (activates in short,
                                                                        medium, or long contiguous intervals), and domain (acti-
                                                                        vates over nearly the entire sequence). Refer to Table 2 for
                                                                        precise definitions.
                                                                        Family Specificity. To quantify family specificity, we use
                                                                        each latent for binary classification: given a protein, can
Figure 4. Human rater scores of SAE or ESM latents from layer           this latent’s activations be used to predict membership in a
24. The error bars indicate the 95% confidence interval, assuming       particular family? We label a latent “family-specific” if it
a binomial 1-vs-all distribution.                                       achieves an F1 score > 0.7 at a certain activation threshold.
                                                                        We use all protein sequences from Swiss-Prot (Boeckmann
often than those from ESM (Figure 4). Approximately 80%
                                                                        et al., 2003) (clustered as 30% sequence identity) and cate-
of SAE features received a “yes” rating for interpretability,
                                                                        gorized into InterPro protein families (Paysan-Lafosse et al.,
broadly consistent with previous findings on SAEs trained
                                                                        2023) for our evaluation. Refer to subsection A.6 for details.
on language model activations (Rajamanoharan et al., 2024).
                                                                        These classifications allow us to systematically group SAE
4.2. SAE latents reveal a learned notion of protein                     features and draw broader conclusions about their roles in
     families                                                           representing protein structure and function.

Intriguingly, a large subset of latents appear to be protein            4.4. Influence of SAE training choices on latent
family-specific. These latents activate weakly on most se-                   classification
quences but strongly on proteins belonging to a particular
family. For example, the latent shown in Figure 3a ap-                  Prior literature on LLMs suggests that SAE-learned features
pears to highly activates only for the central helix in beta-           depend on multiple factors, including model hyperparame-
lactamases, but only exhibits marginal activations when                 ters (e.g., the sparsity level and latent dimension size) and
a similar structural motif appears in proteins outside the              training data (e.g., which layer’s activations are used). We
beta-lactamase family.                                                  therefore examine how these factors impact the types of
                                                                        features that emerge in pLMs.
By contrast, a non-family-specific latent such as the “dis-
ordered” latent in Figure 3b, responds broadly to intrin-               Effect of k. In TopK SAEs, the k hyperparameter controls
sically disordered regions in proteins across many fami-                how many latents can be active for a given input, effectively
lies. These observations collectively suggest that pLMs                 setting the sparsity level. We find that, for a fixed hidden
learn internal representations that, in part, mirror known              dimension, lower k (i.e., higher sparsity) yields more family-
sequence-homology based groupings of proteins, akin to a                specific features (Figure 8a). One plausible explanation
model-internal notion of protein families.                              is that family-specific features constitute the most salient
                                                                        signals used in reconstruction.
To better understand the relationship between a family-
specific latent and its associated protein family, we investi-          Effect of expansion factor. We also experiment with in-
gate what happens when we “steer” ESM using the latent.                 creasing the latent dimension, called the expansion factor.
Specifically, we set the activation of a family-specific latent         While we initially hypothesized that a larger latent dimen-
to a multiple of its maximum activation, and continue the               sion might shift the distribution of feature activation patterns,
model’s forward pass using the reconstructed activation. We             we observed that activation pattern classifications (point, mo-
find that, compared to steering random latents which acti-              tif, domain, etc.) remain largely consistent, while increasing
vate on a sequence, steering family specific latents causes             the number of family specific features (Figure 8b).
fewer residues to change (Figure 7). Investigating how to
                                                                        Comparison across layers. Finally, we investigate layer-
steer the model in useful ways remains an open direction
                                                                        wise differences in the learned features. Previous studies
for future work.
                                                                        have shown that downstream performance can vary substan-
                                                                        tially depending on which layer representations are used,
4.3. Classifying latents                                                suggesting that different layers capture different degrees of
Motivated by these observations, we propose two classifica-             abstraction. In our experiments, family-specific features
tion schemes for the SAE latents.                                       tend to peak in certain early-to-mid layers of ESM, then

                                                                    5
                         Interpreting Features in Protein Language Models using Sparse Autoencoders

                                                                       secondary structure, subcellular localization, thermostabil-
                                                                       ity, as well as a novel task, mammalian cell line expression
                                                                       prediction.
                                                                       We find that linear probes on SAEs achieve performance
                                                                       similar to their ESM baselines across all layers (Figure 5).
                                                                       For secondary structure prediction, the SAE probe consis-
                                                                       tently outperforms the ESM probe, a result we discuss in the
                                                                       next section and attribute to the abundance of SAE latents
                                                                       that correspond to secondary structure.

                                                                       5.2. SAE probes uncover interpretable latents
                                                                            corresponding to known mechanisms
                                                                       To assess the interpretability of linear probes trained on
                                                                       SAE latents, we analyze the distribution of their coefficients
                                                                       (Figure 10) and manually inspect the latents with the largest
                                                                       coefficients in the InterProt visualizer 1 . We find that those
Figure 5. Linear probe performance on ESM vs. SAE embeddings
                                                                       latents often correspond to biological concepts with known
across ESM layers. In all 4 downstream tasks, SAE performs
competitively with ESM. For secondary structure prediction, SAE        relevance to each task (Figure 6). 2
consistently outperforms ESM in most layers. All classifications
tasks are measured using accuracy; thermostability is measured         5.2.1. S ECONDARY STRUCTURE
using Spearman’s rank correlation.
                                                                       Secondary structure prediction is a task that is known to
                                                                       utilize the features learned during pLM pre-training (Li
decline in later layers (Figure 3d). Similarly, features which         et al., 2024). Our analysis of the highest-weighted SAE
activate contiguously over long sections (motif/domain) are            latents in our secondary structure probe confirms this and
more common in earlier layers, whereas later layers exhibit            provides an explanation for why early layers perform worse.
features with shorter contiguous activations (Figure 3c).
                                                                       Our SAE probes reveal that most layers contain features
Given that later layers are thought to specialize for final
                                                                       corresponding to secondary structure elements. The most
logit computation (Gao et al., 2024), one possibility is that
                                                                       positive coefficients for the alpha helix class are typically
shorter, more specific activations better serve this goal.
                                                                       latents that activate exclusively on helices (Figure 6a). They
                                                                       range from specific helix residues, to entire helices, to helix-
5. Interpretable Probing                                               helix interactions. We observe similar results for the two
                                                                       other classes: beta strand and other, where other tends to
Representations learned by pLMs can be used in down-
                                                                       correlate with features that activate on disordered regions.
stream tasks. Often, this is as simple as training a linear
model on the pLM embeddings. Although this leads to a                  Why is classification performance worse in early layers?
predictive model, it does so at the expense of interpretability,       We find that early layers do not contain generic features
as the coefficients of the linear model do not correspond to           for secondary structure. For example, the top latent for
interpretable features. In this section, we explore the ability        helix classification in layer 4 (L4/2624) detects proline (P)
of SAE representations to overcome this limitation. Since              residues, which often appear at helix boundaries due to their
SAE latents are often interpretable, those that contribute             disruptive effect on hydrogen bonding. This reliance on a
significantly to prediction could reveal biological reasons            weak amino acid-level correlation highlights the absence of
that explain the prediction.                                           a more generalized helix feature. Similarly, the top latent
                                                                       for the disordered classifier activates on N-terminal residues,
5.1. SAE probes perform competitively with ESM                         reflecting the spurious correlation that many proteins have
     probes                                                            disordered regions at their N-terminus, rather than capturing
                                                                          1
In the context of LLMs, linear probes on SAE embeddings                      Linear probe coefficients are not comparable across tasks
can achieve performance similar to, or in some cases better            because different tasks may apply different regularization strengths,
                                                                       optimized via grid search.
than, linear probes on their base model embeddings (Bricken                2
                                                                             In this section and in Figure 6, we discuss latents from a range
et al., 2024; Kantamneni et al., 2024). To explore this dy-            of layers. The choice of layers is qualitative––primarily based on
namic in pLMs, we train linear probes on ESM and SAE em-               latents we find particularly interpretable or notable––and does not
beddings across different layers. Following Li et al. (2024),          imply the lack of interesting latents in undiscussed layers.
we evaluate the probes on benchmarked downstream tasks:

                                                                   6
                           Interpreting Features in Protein Language Models using Sparse Autoencoders




Figure 6. Linear probes identify predictive SAE latents for downstream tasks. a. The top 5 alpha helix latents from the secondary structure
prediction task. These latents activate mostly exclusively on alpha helices (SAE trained on ESM layer 16). b. The latents corresponding to
the 3 most positive and 3 most negative coefficients from the linear probe on thermostability. The most positive latent activates on residues
in the hydrophobic core, which is structurally important for thermostability; the most negative latent activates on glutamine (Q) amino
acids, whose absence is correlated with increased thermostability (SAE trained on ESM layer 8). c-d. Top 5 nucleus and extracellular
latents from the subcellular localization prediction task. The top nucleus latents activate on bipartite nuclear localization signals (NLS),
which contain a variable-length linker and generally follow the pattern R/K(X)10−12 KRXK. The top extracellular latent activates on
signal peptide cleavage sites, while another top latent activates on the extracellular regions adjacent to the membrane (SAE trained on
ESM layer 28).


fundamental structural properties.                                       variants still remain unknown, our SAE-based approach has
                                                                         the potential to become a novel method to aid their discovery
5.2.2. S UBCELLULAR LOCALIZATION                                         and characterization.
Transport mechanisms involving sequence motifs such as                   Extracellular localization. The most positive coefficients
transit peptides and localization signals determine the loca-            for the extracellular class relate to signal peptides (Fig-
tion of proteins within the cell. We find that linear probes             ure 6d). Signal peptides are short sequences at the N-
trained on SAE latents can uncover some of these known                   terminus that trigger the secretory pathway to transport
mechanisms.                                                              proteins outside the cell. L28/1541 activates on the signal
                                                                         peptide cleavage site while L28/1470 and L28/1555 activate
Nuclear localization. The most highly weighted latents
                                                                         across the peptide. The top latents also include a latent that
for nuclear localization often correspond to nuclear local-
                                                                         activates on the extracellular portion of membrane-bound
ization signals (NLS). For example, the top latents in the
                                                                         proteins (L28/2111), demonstrating precise recognition of
probe for layer 28 probe activates on K/R rich sequence
                                                                         transmembrane regions, as well as a latent (L28/2472) that
motifs (Figure 6c) and on bipartite nuclear localization
                                                                         only activates on cuticle proteins, extracellular proteins that
signals (L28/2375), which generally follow the pattern
                                                                         support the exoskeleton of insects.
R/K(X)10−12 KRXK (Lu et al., 2021). The latent activates
strongly on the R/K motifs at each end and can flexibly                  For the other localization classes, we also find a variety of
recognize the variable-length linker sequence that connects              interpretable latents, including mitochondrial transit pep-
them. These sequence motifs engage cellular mechanisms                   tides (L28/3277) and transmembrane regions (L28/2818,
that enable the protein to enter the nucleus. As many NLS                L28/1298) (Figure 9c). Overall, this task uncovered many


                                                                     7
                        Interpreting Features in Protein Language Models using Sparse Autoencoders

latents related to signal peptides, consistent with the obser-       et al., 2022; Gordon et al., 2024), the use of motifs (Zhang
vations from (Almagro Armenteros et al., 2017) that the              et al., 2024), and the unexpected effectiveness of early layers
attention maps of their transformer model trained on this            on some downstream tasks (Li et al., 2024). To facilitate
task focus on sequence termini.                                      further exploration, we introduce InterProt, an open-source
                                                                     visualizer for interpreting SAE latents.
5.2.3. T HERMOSTABILITY
                                                                     Mechanistic interpretability methods like SAEs hold
Thermostability prediction is a task that does not scale with        promise not only for understanding how complex models
increased pre-training and larger models (Li et al., 2024).          function but also for advancing scientific discovery (Don-
Our SAE probes reveal why—thermostability prediction                 hauser et al., 2024). However, existing approaches often
relies most on simple amino acid statistics (Figure 6b).             rely on matching features to concepts already known to the
                                                                     scientific community, potentially overlooking novel features.
Unlike the other tasks, the middle layers perform worse than
                                                                     To address this gap, we developed a probing strategy that
early or late layers. We find that in middle layers the most
                                                                     associates latents with candidate functional roles by training
significant latents tend to recognize specific amino acids.
                                                                     linear probes on SAE latents. Through this process, we
For example, layer 24’s most positive latents correspond
                                                                     uncover features that align with known sequence determi-
to Arginine (R), Tyrosine (Y), and Leucine (L); its most
                                                                     nants, such as nuclear localization signals, which our probe
negative latents recognize Glutamine (Q), Aspartic acid (D),
                                                                     identified as strongly predictive of nuclear localization. Had
and Threonine (T). The absence of Glutamine is known to
                                                                     the role of these signals been unknown, our probing results
correlate with increased thermostability (Farias & Bonato,
                                                                     would have provided a strong hypothesis for subsequent
2003).
                                                                     validation. More broadly, probing SAE latents offers a
In contrast, earlier layers seem to contain more relevant            means to explain how pLMs achieve their performance on
features. For instance, the most positive coefficient in layer       downstream tasks. Notably, we find that thermostability
8 (L8/2064) corresponds to a latent that activates primarily         prediction relies heavily on latents which provide simple
on hydrophobic residues, which are important for stability           amino acid composition statistics.
(Figure 6b).
                                                                     In our probing experiments, we observe that not all predic-
                                                                     tive latents are easily interpretable. For instance, a predictor
5.2.4. M AMMALIAN CELL EXPRESSION
                                                                     for membrane localization, latent L28/3154, predominantly
We were interested to see if our SAE probing method could            activates on poly-alanine sequences, whose functional rele-
be used to help interpret a novel task with relevance to drug        vance remains unclear. Such hard-to-interpret but predictive
development: binary human protein expression in CHO                  features could result from biases in training data, limitations
cells. The two latents most predictive of expression ac-             of our SAE, or ESM. However, another intriguing possibility
tivate on terminus-specific long motifs (Figure 9b). The             is that these features correspond to biological mechanisms
latent most predictive of failed expression recognizes an            that have yet to be discovered.
ATP binding site, suggesting that its interactions with ATP          Limitations. Our study has several limitations. First, we
may disrupt essential metabolic processes in the host cell.          focus exclusively on the 650M-parameter variant of ESM-2,
While we found many latents hard to interpret, this task             and extending our analysis to other model sizes, checkpoints,
demonstrates the potential of our method in a practical set-         and architectures could yield richer insights into how fea-
ting. If SAEs can help discover biological mechanisms                tures vary with pre-training scale and model architecture.
that affect expression in CHO cells, then can guide us in            Second, the features uncovered by our SAEs are sensitive
designing protein therapeutics with better developability            to the training data distribution; although we use a diverse
profiles.                                                            set of sequences from UniRef50, different datasets may pro-
                                                                     duce a distinct feature set. Third, our probing approach
                                                                     relies on mean-pooling across the sequence for protein-level
6. Discussion
                                                                     tasks–a strategy known to have shortcomings (NaderiAl-
In this work, we train sparse autoencoders (SAEs) to extract         izadeh & Singh, 2024)–and exploring alternative pooling
interpretable features from a protein language model (pLM).          methods may yield stronger associations between latents
We categorize SAE latents based on their activation patterns         and functional properties. Finally, our capacity to interpret
and specialization across protein families, systematically           latents is inherently constrained by the current state of bio-
analyzing how SAE sparsity, width, and layer choice affect           logical knowledge, leaving open the possibility that some of
feature extraction. Our work offers a new perspective on             our interpretations, particularly for latents showing complex
previous efforts to understand pLMs, confirming known                activation patterns, may be incomplete or misstated.
results such as the central role of sequence homology (Lin           Future directions. The success of our SAE linear probes

                                                                 8
                        Interpreting Features in Protein Language Models using Sparse Autoencoders

in uncovering known biological mechanisms suggests their              tein knowledgebase and its supplement trembl in 2003.
potential for discovering new ones. A key next step is to             Nucleic acids research, 31(1):365–370, 2003.
formulate and experimentally test hypotheses around un-
explained predictive features. Since SAE-derived features           Bricken, T., Marcus, J., Mishra-Sharma, S., Tong, M.,
depend on the dataset (Kissane et al., 2024), investigat-             Perez, E., Sharma, M., Rivoire, K., and Henighan,
ing how data diversity influences feature emergence could             T. Using dictionary learning features as classifiers,
be valuable–training on task-relevant sequences may yield             2024. https://transformer-circuits.pub/2024/features-as-
more function-specific latents. Another promising direc-              classifiers/index.html.
tion is model steering via SAEs: while Simon & Zou 2024
provides a proof of concept, further research is needed to          Chen, H., Tian, B., Zhong, J., Zhang, X., Chen, J., Guo, L.,
determine whether SAEs can be used as a practical tool for            Xiong, X., Zhang, X., Liu, X., and Xiao, B. Automatically
protein engineering.                                                  defining protein words for diverse functional predictions
                                                                      based on attention analysis of a protein language model.
                                                                      bioRxiv, pp. 2025–01, 2025.
Impact Statement
                                                                    Dallago, C., Mou, J., Johnston, K. E., Wittmann, B. J., Bhat-
This paper presents work whose goal is to better understand
                                                                      tacharya, N., Goldman, S., Madani, A., and Yang, K. K.
protein language models. Our findings may aid in biological
                                                                      Flip: Benchmark tasks in fitness landscape inference for
discovery, particularly in understanding sequence-function
                                                                      proteins. bioRxiv, pp. 2021–11, 2021.
relationships. While our work has potential applications
in protein engineering and drug discovery, we do not fore-          Detlefsen, N. S., Hauberg, S., and Boomsma, W. Learning
see any immediate ethical concerns beyond those generally             meaningful representations of protein sequences. Nature
associated with machine learning research.                            communications, 13(1):1914, 2022.

Acknowledgments and Funding                                         Dong, T., Kan, C., Devkota, K., and Singh, R. Allo-allo:
                                                                      Data-efficient prediction of allosteric sites. bioRxiv, pp.
We thank Elana Simon, Neil Thomas, Andre Cornman,                     2024–09, 2024.
Yunha Hwang, Garyk Brixi, Peter Koo, Samuel Maffa,
Philipe Chlenski, and Neel Nanda for helpful discussion             Donhauser, K., Ulicna, K., Moran, G. E., Ravuri, A.,
around understanding and analyzing SAE latents. We thank              Kenyon-Dean, K., Eastwood, C., and Hartford, J. To-
Diego del Alamo, Daniel Saltzberg, James Michael Krieger,            wards scientific discovery with dictionary learning: Ex-
and many others on Twitter/X for contributing to SAE la-              tracting biological concepts from microscopy foundation
tent interpretation. We thank Pranay Satya for discussion             models, 2024. URL https://arxiv.org/abs/
on training SAEs. We thank the Evolved 2024 hackathon                 2412.16247.
for providing compute resources for an earlier version of
this project. We thank Zeming Lin, Uri Laserson, Noah               Farias, S. T. and Bonato, M. Preferred amino acids and
MacCallum, Tess van Stekelenburg, and Matthew Nemeth                  thermostability. Genet Mol Res, 2(4):383–393, 2003.
for their feedback and support during the hackathon. M.L.
and M.A. are supported by NIH grant R35GM150546.                    Gao, L., la Tour, T. D., Tillman, H., Goh, G., Troll, R.,
                                                                      Radford, A., Sutskever, I., Leike, J., and Wu, J. Scal-
                                                                      ing and evaluating sparse autoencoders. arXiv preprint
References                                                            arXiv:2406.04093, 2024.
Adam Green. Through a glass darkly: Mechanistic
  interpretability as the bridge to end-to-end biology, 2024.       Gordon, C., Lu, A. X., and Abbeel, P. Protein language
  URL https://www.markov.bio/research/                                model fitness is a matter of preference. bioRxiv, pp. 2024–
  mech-interp-path-to-e2e-biology.                                   10, 2024.

                                                                    Jarzab, A., Kurzawa, N., Hopf, T., Moerch, M., Zecha, J.,
Almagro Armenteros, J. J., Sønderby, C. K., Sønderby, S. K.,          Leijten, N., Bian, Y., Musiol, E., Maschberger, M., Stoehr,
  Nielsen, H., and Winther, O. Deeploc: prediction of pro-            G., et al. Meltome atlas—thermal proteome stability
  tein subcellular localization using deep learning. Bioin-           across the tree of life. Nature methods, 17(5):495–503,
  formatics, 33(21):3387–3395, 2017.                                  2020.

Boeckmann, B., Bairoch, A., Apweiler, R., Blatter, M.-C.,           Kannan, G. R., Hie, B., and Kim, P. S. Single-sequence,
  Estreicher, A., Gasteiger, E., Martin, M. J., Michoud,              structure free allosteric residue prediction with protein
  K., O’Donovan, C., Phan, I., et al. The swiss-prot pro-             language models. bioRxiv, pp. 2024–10, 2024.

                                                                9
                        Interpreting Features in Protein Language Models using Sparse Autoencoders

Kantamneni,      S.,    Engel,     J.,   Rajamanoharan, Notin, P., Dias, M., Frazer, J., Marchena-Hurtado, J.,
  S., and Nanda, N.            Sae probing: What is       Gomez, A. N., Marks, D., and Gal, Y. Tranception: pro-
  it good for?           absolutely something, 2024.      tein fitness prediction with autoregressive transformers
  https://www.lesswrong.com/posts/NMLq8yoTecAF44KX9/sae- and inference-time retrieval. In International Conference
  probing-what-is-it-good-for-absolutely-something.       on Machine Learning, pp. 16990–17017. PMLR, 2022.

Karvonen, A., Rager, C., Lin, J., Tigges, C., Bloom, J.,             Paysan-Lafosse, T., Blum, M., Chuguransky, S., Grego, T.,
  Chanin, D., Lau, Y.-T., Farrell, E., Conmy, A., Mc-                  Pinto, B. L., Salazar, G. A., Bileschi, M. L., Bork, P.,
  Dougall, C., Ayonrinde, K., Wearden, M., Marks, S.,                  Bridge, A., Colwell, L., et al. Interpro in 2022. Nucleic
  and Nanda, N. SAEBench: A comprehensive benchmark                    acids research, 51(D1):D418–D427, 2023.
  for sparse autoencoders, December 2024. URL https:
 //www.neuronpedia.org/sae-bench/info.                               Rajamanoharan, S., Lieberum, T., Sonnerat, N., Conmy, A.,
                                                                       Varma, V., Kramár, J., and Nanda, N. Jumping ahead:
Kissane, C., Krzyzanowski, R., Nanda, N., and Conmy,
                                                                       Improving reconstruction fidelity with jumprelu sparse au-
  A.    Saes are highly dataset dependent: A case
                                                                       toencoders, 2024. URL https://arxiv.org/abs/
  study on the refusal direction. Alignment Forum,
                                                                       2407.14435.
  2024.     URL https://www.alignmentforum.
  org/posts/rtp6n7Z23uJpEH7od/                       Rao, R., Bhattacharya, N., Thomas, N., Duan, Y., Chen, P.,
  saes-are-highly-dataset-dependent-a-case-study-on-the.
                                                       Canny, J., Abbeel, P., and Song, Y. Evaluating protein
Li, F.-Z., Amini, A. P., Yue, Y., Yang, K. K., and Lu, A. X.           transfer learning with tape. Advances in neural informa-
  Feature reuse and scaling: Understanding transfer learn-             tion processing systems, 32, 2019.
  ing with protein language models. bioRxiv, pp. 2024–02,
  2024.                                                              Rao, R., Meier, J., Sercu, T., Ovchinnikov, S., and Rives,
                                                                       A. Transformer protein language models are unsuper-
Lieberum, T., Rajamanoharan, S., Conmy, A., Smith, L.,                 vised structure learners. In International Conference
  Sonnerat, N., Varma, V., Kramár, J., Dragan, A., Shah, R.,          on Learning Representations, 2021. URL https://
  and Nanda, N. Gemma scope: Open sparse autoencoders                  openreview.net/forum?id=fylclEqgvgd.
  everywhere all at once on gemma 2, 2024. URL https:
  //arxiv.org/abs/2408.05147.                                        Rives, A., Meier, J., Sercu, T., Goyal, S., Lin, Z., Liu,
                                                                       J., Guo, D., Ott, M., Zitnick, C. L., Ma, J., and Fer-
Lin, Z., Akin, H., Rao, R., Hie, B., Zhu, Z., Lu, W., dos              gus, R. Biological structure and function emerge from
  Santos Costa, A., Fazel-Zarandi, M., Sercu, T., Candido,             scaling unsupervised learning to 250 million protein se-
  S., et al. Language models of protein sequences at the               quences. Proceedings of the National Academy of Sci-
  scale of evolution enable accurate structure prediction.             ences, 118(15):e2016239118, 2021. doi: 10.1073/pnas.
  BioRxiv, 2022:500902, 2022.                                          2016239118. URL https://www.pnas.org/doi/
                                                                       abs/10.1073/pnas.2016239118.
Lin, Z., Akin, H., Rao, R., Hie, B., Zhu, Z., Lu, W.,
  Smetanin, N., Verkuil, R., Kabeli, O., Shmueli, Y., et al.         Schuster, V. Can sparse autoencoders make sense of latent
  Evolutionary-scale prediction of atomic-level protein                representations?, 2024. URL https://arxiv.org/
  structure with a language model. Science, 379(6637):                 abs/2410.11468.
  1123–1130, 2023.
                                                                     Sievers, F., Wilm, A., Dineen, D., Gibson, T. J., Karplus,
Lu, J., Wu, T., Zhang, B., Liu, S., Song, W., Qiao, J., and
                                                                       K., Li, W., Lopez, R., McWilliam, H., Remmert, M.,
  Ruan, H. Types of nuclear localization signals and mech-
                                                                       Söding, J., et al. Fast, scalable generation of high-quality
  anisms of protein import into the nucleus. Cell communi-
                                                                       protein multiple sequence alignments using clustal omega.
  cation and signaling, 19(1):60, 2021.
                                                                       Molecular systems biology, 7(1):539, 2011.
Masson, H. O., Kuo, C.-C., Malm, M., Lundqvist, M., Siev-
 ertsson, Å., Berling, A., Tegel, H., Hober, S., Uhlén, M.,        Simon, E. and Zou, J. Interplm: Discovering interpretable
 Grassi, L., et al. Deciphering the determinants of recom-             features in protein language models via sparse autoen-
 binant protein yield across the human secretome. bioRxiv,             coders. bioRxiv, pp. 2024–11, 2024.
 pp. 2022–12, 2022.
                                                                     Steinegger, M. and Söding, J. Mmseqs2 enables sensi-
NaderiAlizadeh, N. and Singh, R. Aggregating residue-                  tive protein sequence searching for the analysis of mas-
  level protein language model embeddings with optimal                 sive data sets. Nature biotechnology, 35(11):1026–1028,
  transport. bioRxiv, pp. 2024–01, 2024.                               2017.

                                                                10
                        Interpreting Features in Protein Language Models using Sparse Autoencoders

Suzek, B. E., Huang, H., McGarvey, P., Mazumder, R., and
  Wu, C. H. Uniref: comprehensive and non-redundant
  uniprot reference clusters. Bioinformatics, 23(10):1282–
  1288, 2007.
Templeton, A., Conerly, T., Marcus, J., Lindsey, J., Bricken,
  T., Chen, B., Pearce, A., Citro, C., Ameisen, E., Jones,
  A., Cunningham, H., Turner, N. L., McDougall, C.,
  MacDiarmid, M., Freeman, C. D., Sumers, T. R.,
  Rees, E., Batson, J., Jermyn, A., Carter, S., Olah,
  C., and Henighan, T. Scaling monosemanticity: Ex-
  tracting interpretable features from claude 3 sonnet.
  Transformer Circuits Thread, 2024. URL https:
  //transformer-circuits.pub/2024/
  scaling-monosemanticity/index.html.
Vig, J., Madani, A., Varshney, L. R., Xiong, C., Socher, R.,
  and Rajani, N. F. Bertology meets biology: Interpreting
  attention in protein language models, 2021. URL https:
  //arxiv.org/abs/2006.15222.

Ye, J., McGinnis, S., and Madden, T. L. Blast: improve-
  ments for better sequence analysis. Nucleic acids re-
  search, 34(suppl 2):W6–W9, 2006.
Zhang, Z., Wayment-Steele, H. K., Brixi, G., Wang, H.,
  Kern, D., and Ovchinnikov, S. Protein language models
  learn evolutionary statistics of interacting sequence mo-
  tifs. Proceedings of the National Academy of Sciences,
  121(45):e2406285121, 2024.


Author contributions
E.A. and L.B trained the SAE models, built the InterProt
visualizer, and interpreted SAE latents. E.A. led the feature
characterization experiments. L.B led the interpretable prob-
ing experiments. M.L. wrote the code for SAE steering and
performed the family-specific latent steering experiments.
Y.Y. contributed to the training code. E.A., L.B., M.A., pro-
vided feedback on all experiments. E.A. and L.B. wrote the
manuscript with feedback from M.L. and M.A. All authors
read and approved the manuscript.

Competing interests
M.A. is a member of the scientific advisory boards of Cyrus
Biotechnology, Deep Forest Sciences, Nabla Bio, and Ora-
cle Therapeutics.




                                                                11
                       Interpreting Features in Protein Language Models using Sparse Autoencoders

A. Appendix
A.1. Code availability and model weights
Our SAE training and evaluation code is publicly available at https://github.com/etowahadams/interprot.
The feature visualization tool, InterProt, can be accessed at https://interprot.com, and pre-trained SAE weights
are hosted at https://huggingface.co/liambai/InterProt-ESM2-SAEs.

A.2. Background on protein language models
Protein language models (pLMs) apply techniques from natural language processing to model biological sequences,
leveraging the ability of transformer architectures to learn patterns from large-scale data. Just as language models capture
structure in text, pLMs can learn meaningful representations of proteins from large protein sequence databases. The
ESM family of pLMs are BERT-style transformers trained with a masked language modeling objective to learn contextual
embeddings of amino acids (Rives et al., 2021; Lin et al., 2023). In this work, we focus on the 650M-parameter variant of
ESM-2 (Lin et al., 2023) which has 33 total layers.

A.3. Key differences from InterPLM
Concurrent to our work, Simon & Zou (2024) also trained SAEs on ESM-2 models. Some key differences from work are as
follows:
SAE Architecture. Simon & Zou (2024) used ReLU-based SAEs, we employ TopK SAEs, which allow explicit control
over L0 sparsity.
Evaluation. Simon & Zou (2024) proposed an automated evaluation framework based on Swiss-Prot annotations, establish-
ing that more SAE latents correspond to annotations compared to ESM neurons. We support this finding with a manual
evaluation where participants blindly rated SAE latents and ESM neurons based on their interpretability in our visualization
tool.
Analysis. Simon & Zou (2024) used an LLM to generate SAE feature descriptions based on activation examples and
annotations. They also explored the application of SAE features in identifying missing annotations. Our analyses focused
on classifying SAE latents based on activation patterns and family-specificity and using linear probes to uncover features
most predictive in downstream tasks.
Visualization. Both works provide an interactive visualizer for SAE latents. interplm.ai from Simon & Zou (2024) display
UMAP visualizations, results from Swiss-Prot concept mapping, and other statistics. Our visualizer, interprot.com, focus on
the top activating sequences of each latent, displaying activation patterns overlaid on structure, sequence alignments, and
information on shared protein family. We used this interface to conduct our human ratings experiment.

A.4. Probe details
Table 1 summarizes the linear probes used in each downstream task.




                                Table 1. Summary of downstream tasks for interpretable probing

 DATASET                        TASK TYPE        L ABEL LEVEL       E VALUATION METRIC             P ROBE IMPLEMENTATION
 S ECONDARY STRUCTURE        C LASSIFICATION        R ESIDUE            ACCURACY               P Y T ORCH LINEAR CLASSIFIER
 S UBCELLULAR LOCATION       C LASSIFICATION        P ROTEIN            ACCURACY            S KLEARN LOGISTIC REGRESSION
 T HERMOSTABILITY              R EGRESSION          P ROTEIN          S PEARMAN ’ S ρ          S KLEARN RIDGE REGRESSION
 CHO CELL EXPRESSION         C LASSIFICATION        P ROTEIN            ACCURACY            S KLEARN LOGISTIC REGRESSION




                                                               12
                          Interpreting Features in Protein Language Models using Sparse Autoencoders

A.5. Steering family-specific latents




Figure 7. The fraction of residues that remains unchanged after steering, averaged for 2089 family specific features revealed using SAE.

We steer each family-specific latent and analyze the resulting sequence changes compared to steering random latents or
latents corresponding to amino acid features. Steering refers to clamping of the activation of a specific latent to a fixed
level–either increasing it to amplify the feature or decreasing it to suppress it. For each family-specific latent corresponding
to an InterPro family, we identify the top-activating sequences, conduct protein-protein BLAST (Ye et al., 2006), and
align sequences within the same InterPro family to obtain a multiple sequence alignment using Clustal Omega (Sievers
et al., 2011). Finally, we determine the maximum activation of a family-specific latent and clamp the activation of the
activating residues to 1×, 2×, 3×, and 4× the maximum value. As a baseline, we steer the residues which activated the
family-specific latent with two random latent dimensions (1 and 11) and two amino acid specific latent dimensions (3267 for
alanine and 3830 for glycine in the SAE with a hidden dimension of 4096 from layer 24). Because we choose two latents
as representative random and amino acid latents, we take the average of the unchanged ratio. The unchanged ratio is the
fraction of residues across the whole sequence that remains unchanged after steering.
Figure 7 compares the fraction of residues that remains unchanged after steering of family-specific (labeled “family”),
random (labeled “random”), and amino acid (labeled “aa”) latents, by the degree of conservation (decreasing order, left
to right). For any degree of conservation, steering a family-specific latent has the least effect in the decoded sequence for
the same steering strength, suggesting that family-specific latents capture underlying evolutionary constraints that resist
disruption. The difference in unchanged ratio between family-specific and random latents is larger in conserved residues,
implying steering family-specific latents tends to keep the residues with high consensus. Still, it is interesting that absolute
unchanged ratio is roughly in a similar range for any degree of conservation.

A.6. Classifying latents by family specificity
We evaluate the ability of a single SAE latent to classify a protein as belonging to a specific InterPro-defined protein family
(Paysan-Lafosse et al., 2023). To do this, we determine the optimal normalized activation threshold that maximizes the F1
score for binary classification of protein families. Specifically, we sweep threshold values from 0.1 to 0.9 in 0.1 increments
and select the threshold that results in the highest F1 score. Our final evaluation is conducted on a held-out test set.
For our evaluation, we use protein sequences from Swiss-Prot (Boeckmann et al., 2003). To reduce sequence re-
dundancy, we cluster all Swiss-Prot sequences with a length of 1022 residues or fewer at 30% sequence identity us-
ing MMseqs2 (mmseqs easy-cluster swissprot.fasta session tmp --min-seq-id 0.3 -c 0.9
-s 8 --max-seqs 1000000 --cluster-mode 1) (Steinegger & Söding, 2017). Given the low sequence identity
between clustered sequences, we perform a random train-test split for classification evaluation.
To determine which protein family to assess for each latent, we identify the InterPro family of the sequence that exhibits the
highest activation for that latent. The F1 score is then computed for this family using the thresholding approach described
above.




                                                                  13
                      Interpreting Features in Protein Language Models using Sparse Autoencoders

A.7. Classifying latents by activation pattern


                                      Table 2. Activation pattern classification criteria
           Category                  Criteria
           Dead Latent               If the latent is never activated by any test sequences, it is classified a
                                     dead latent.
           Not Enough Data           If less than 5 sequences activate the latent then we say there is not enough
                                     data.
           Periodic                  Features that exhibit consistent activation patterns at regular intervals.
                                     These features must satisfy: (1) a high frequency of activation at specific
                                     positions (over 50% of distances between activations are the same two
                                     values), (2) a large number of activation regions (there are more than 10
                                     activations per sequence), and (3) relatively short contiguous activation
                                     spans (median length of the top activating contig is less than 10).
           Point                     Features that activate in a highly localized manner, defined by a single,
                                     prominent activation site (the median length of the highest activating
                                     region is 1).
           Motif (Short: 1-20)       Features that activate in short contiguous regions (median length of the
                                     highest activating region is > 1 and < 20) and have an overall mean
                                     activation coverage of less than 80%.
           Motif (Medium: 20-50)     Features that activate in short contiguous regions (median length of the
                                     highest activating region is ≥ 20 and < 50) and have an overall mean
                                     activation coverage of less than 80%.
           Motif (Long: 50-300)      Features that activate in short contiguous regions (median length of the
                                     highest activating region is ≥ 50 and < 300) and have an overall mean
                                     activation coverage of less than 80%.
           Whole                     Features that are active across nearly the entire sequence (overall mean
                                     activation coverage of greater than 80%.).
           Other                     Features that do not meet any of the above criteria are classified as
                                     ”other.”




                                                             14
                         Interpreting Features in Protein Language Models using Sparse Autoencoders

A.8. Testing SAE hyperparameters




Figure 8. Testing SAE hyperparameters. a. k parameter sweep (other hyperparameters held constant, layer=24, hidden size=8096)
showing the number of family specific features (left) and the features categorized by activation pattern (right). b. SAE hidden size
hyperparameter sweep (other hyperparameters held constant, layer=24, k=64) showing the number of family specific features (left) and
the features categorized by activation pattern (right).




                                                                15
                           Interpreting Features in Protein Language Models using Sparse Autoencoders

A.9. Additional latent visualizations from linear probes




Figure 9. Linear probes identify predictive SAE latents for downstream tasks. a. The top 5 beta sheet latents from the secondary structure
prediction task (SAE trained on ESM layer 16). b. The latents corresponding to the 3 most positive and 3 most negative coefficients
from the linear probe on CHO cell line expression. The most positive latent activates on an unidentified motif; the most negative latent
activates on an ATP binding site (SAE trained on ESM layer 8). c-d. Top 5 mitochondrion and cell membrane latents from the subcellular
localization prediction task. The top nucleus latents identify transit peptides. The top cell membrane latents correlate with signal peptides
and transmembrane regions (SAE trained on ESM layer 28).




                                                                    16
                          Interpreting Features in Protein Language Models using Sparse Autoencoders

A.10. Distribution of linear probe coefficients




Figure 10. Example distribution of ESM vs. SAE linear probe coefficients. Shown here are coefficients for the alpha helix class from the
secondary structure prediction task, using layer 16. The SAE coefficients have higher variance (2.03e−3) than the ESM coefficients
(3.24e−4) because more latents are individually predictive of the label. The SAE coefficients also have a larger negative skew (−2.05e−1)
compared to ESM (−6.51e−2). This can be explained by the SAE latents being more monosemantic: they sort more distinctly into helix
vs. non-helix classes, and there are more non-helix examples than helix ones.




                                                                  17
