# Interpretability as Compression: Reconsidering SAE Explanations of Neural Activations with MDL-SAEs

*This work was produced as part of the ML Alignment & Theory Scholars Program - Summer 24 Cohort, under mentorship from Lee Sharkey and Jan Kulveit.*

***Note: An updated paper version of this post can be found*** [***here***](https://arxiv.org/abs/2410.11179)***.***

Abstract
--------

Sparse Autoencoders (SAEs) have emerged as a useful tool for interpreting the internal representations of neural networks. However, naively optimising SAEs on the for reconstruction loss and sparsity results in a preference for SAEs which are extremely wide and sparse.

To resolve this issue, we present an information-theoretic framework for interpreting **SAEs as lossy compression algorithms** for communicating explanations of neural activations. We appeal to the **Minimal Description Length (MDL) principle** to motivate explanations of activations which are both accurate and concise. We further argue that interpretable SAEs require an additional property, **“independent additivity”**: features should be able to be understood separately. We demonstrate an example of applying MDL by training SAEs on MNIST handwritten digits and find that SAE features representing significant line segments are optimal, as opposed to SAEs with features for memorised digits from the dataset or small digit fragments. We argue that **MDL may avoid potential pitfalls** with naively maximising sparsity such as undesirable feature splitting and suggests new hierarchical SAE architectures which provide more concise explanations.

1\. Intro
---------

[Sparse Autoencoders](https://www.alignmentforum.org/tag/sparse-autoencoders-saes) (SAEs) provide a way to disentangle the internal activations of a neural network into a human-understandable representation of the features. They have recently become popular for use in Mechanistic Interpretability in order to interpret the activations of foundation models, typically language models ([Sharkey et al 2022](https://www.alignmentforum.org/posts/z6QQJbtpkEAX3Aojj/interim-research-report-taking-features-out-of-superposition); [Cunningham et al., 2023](https://arxiv.org/abs/2309.08600); [Bricken et al. 2023](https://transformer-circuits.pub/2023/monosemantic-features)). It has been speculated that the features that SAEs find may closely map onto the constituent features that the model is using.

Human interpretability, however, is difficult to optimise for. Evaluating the quality of SAEs often requires potentially unreliable auto-interpretability methods since human interpretability ratings cannot be efficiently queried. And since neither naive human nor LLM-as-judge interpretability methods are differentiable at training time, researchers often use the $L_0$ or "sparsity" as a proxy for interpretability. We provide an alternative and more principled proxy for human interpretability.

In this post, we discuss an information theoretic view of the goals of using SAEs. This view suggests that sparsity may appear as a special case of a larger objective: minimising description length. This operationalises Occam's razor for selecting explanations - the idea that more concise explanations are better.

We start by framing SAEs as an explanatory and communicative tool. We discuss the importance of linear additivity and partial explanations for human-interpretability and the constraints this imposes on SAEs. We find that sparsity (i.e. minimizing $L_0$) is a key component of minimizing description length but in cases where sparsity and description length diverge, minimizing description length directly gives more intuitive results. We demonstrate our approach empirically by finding the Minimal Description Length solution for SAEs trained on the MNIST dataset.

2\. Background on SAEs
----------------------

Sparse autoencoders (SAEs) ([Le et al 2011](https://arxiv.org/abs/1112.6209)) were developed to learn an over-complete basis, or dictionary, of sparsely activating features.

The typical objective for an SAE is minimising the reconstruction error while activating a small number of dictionary features. Because the number of non-zero latent features   
($L_0$) is not easily differentiable, SAEs typically use auxiliary loss functions such as an $L_1$ penalty to encourage sparse latent activations[^yjkxvcfhuap].

$L_0$ is often treated as a proxy for interpretability, with lower $L_0$ representing a more interpretable model. It's acknowledged in the SAE literature that this proxy isn't the actual thing we're interested in. To get around this problem, the main way to evaluate the quality of the explanations is through manual Human Interpretability Rating Studies (HumanInterp) ([Bricken et al. 2023](https://transformer-circuits.pub/2023/monosemantic-features)) and AutoInterp ([Bills et al.](https://openaipublic.blob.core.windows.net/neuron-explainer/paper/index.html)).

3\. SAEs are Communicable Explanations
--------------------------------------

The goal of Mechanistic Interpretability is to provide explanations of the internals of neural networks. SAEs, in particular, aim to provide *explanations of neural activations in terms of "features"*[^gouq3zkajz]. We often desire for these explanations to be human-understandable (though for some purposes machine-understandable explanations are also useful).

We define explanations as follows:

**Definition 1:** An explanation $e$ of some phenomena $p$ is a statement $e(p)$ for which knowing $e(p)$ gives some information about $p$[^yaolpsvdbzb].

**Definition 2:** The Description Length (DL) of some explanation e is given as $|e|$, for some metric $|⋅|$. The metric we'll consider is the number of bits needed to send the explanation through a communication channel.

**SAEs are feature explanations**. An SAE encoding of features $z=Enc(x)$ and Decoder network $Dec(⋅)$ together provide an explanation of neural activations x. We would like the features to have meaning as both the **causal result** of some previous events (i.e. the feature should help us understand the model input and/or previous model computation) and as the **cause** of later events (i.e. the feature should be causally relevant to later model computation and/or the model output).

Given the above we can reformulate the SAE as solving a communication problem. Suppose that we would like to transmit the neural activations x to a friend with some tolerance ε, either in terms of the reconstruction error or change in the downstream cross-entropy loss. Using the SAE as an encoding mechanism, we can approximate the representation of the activations in two parts:

*   First, we send them the SAE encodings of the activations $z=Enc(x)$
*   Second, we send them a decoder network $Dec(⋅)$ that recompiles these activations back to (some close approximation of) the neural activations, $\widehat{x} = Dec(z).$

![](https://39669.cdn.cke-cs.com/rQvD3VnunXZu34m86e5f/images/f431f1c48e648108e809a94d5dc8c691f35e3b06c12abd82.png)

Note that this formulation is known as a *two-part code* ([Grünwald, 2007](https://direct.mit.edu/books/monograph/3813/The-Minimum-Description-Length-Principle)) and closely tracks how we might consider communicating the binaries for a computer program (or a piece of data):

*   We must first share the source code e.g. Python code (or the data e.g. mp3 file)
*   Then we must share the compiler to translate the source code into the executable representation. In this case, we might naturally say that the description length of some program is given by DL(program) = |source\_code| + |compiler\_program|. The first term represents the fit of the model to data; as the model fits better this term shrinks. The second term represents the complexity of the model; it grows as the model becomes more complex (for example as the SAE width grows).

**The large data regime**: When we are communicating many neural activations using our encoding scheme, we send the description of the decoder network exactly once (as it is reused) but we must send the SAE encodings for each set of activations separately. Therefore we may amortise the cost of sending the decoder network and our expression for the description length reduces to approximately just DL(z), the cost of sending the feature activations. For our analysis, we assume that the dataset size is sufficiently large for this assumption to hold in our MDL analysis.

**Occam's Razor**: All else equal, an explanation $e_1$ is preferred to explanation $e_2$ if $DL(e_1)<DL(e_2)$. Intuitively, the simpler explanation is the better one. We can operationalise this as the Minimal Description Length (MDL) Principle for model selection: Choose the model with the shortest description length which solves the task. It has been observed that lower description length models often generalise better ([MacKay ch.28](https://www.inference.org.uk/itprnn/book.pdf)).

More explicitly, we define the Minimum Description Length as:

**Definition 3 - Minimal Description Length (MDL)**: $MDL_\varepsilon(x) = \min  DL(SAE)$ where $Loss(x, \widehat{x}) < \varepsilon$ and $\widehat{x} = SAE(x).$ We say an SAE is ε-MDL-optimal if it obtains this minimum.

4\. Independent Additivity of Feature Explanations
--------------------------------------------------

Following Occam's razor we prefer simpler explanations, as measured by description length (if the explanations have equal predictive power). Note, however, that SAEs are not intended to simply give compressed explanations of neural activations - compression alone is not enough to guarantee interpretability. SAEs are intended to give explanations that are **human-understandable**. We must also account for how humans would actually make sense of feature activations.

SAE features are typically understood in an independent manner. For example, we would often like to look at the max activations of a feature without controlling for the activations of the other features.

For human interpretability, there's a good reason for this: given D features there are $O(D^2)$ pairs of features and $\sum_i^K{D\choose{i}}$ possible sets of features. Humans can only typically hold a few concepts in working memory, so if features are all entangled such that understanding a single concept requires understanding arbitrary feature interactions, the explanation will not be human-understandable. This is also why the dense neural activations themselves are typically not interpretable.

We would like to understand features independently of each other so that understanding a collection of features together is equivalent to understanding them all separately. We call this property "**independent additivity**", defined below.

**Definition 4 - Independent Additivity**: An explanation e based on a vector of feature activations $\vec{z} =  \sum_i \vec{z_i}$ is independently additive if $e(\vec{z}) \approx \sum_i e(\vec{z_i})$. We say that a set of features $z_i$ are independently additive if they can be understood independently of each other and the explanation of the sum of the features is the sum of the explanations of the features.

Note that here the notion of summation depends on the explanation space. For natural language explanations, summation of adjectives is typically concatenation ("big" + "blue" + "bouncy" + "ball" = "The big blue bouncy ball"). For neural activations, summation is regular vector addition ($\widehat{x} = \text{Dec}(\vec{z}) = \sum_i \text{Dec}(z_i)$).

![](https://39669.cdn.cke-cs.com/rQvD3VnunXZu34m86e5f/images/bab070afb13b73241e2253bb027f714f821a598d906b6690.png)

We see that if our SAE features are independently additive, we can also use this property for interventions and counterfactuals too. For example, if we intervene on a single feature (e.g. using it as a steering vector), we can understand the effect of this intervention without needing to understand the other features.

Note that linear decoders have this property. The independent additivity condition is directly analogous to the "composition as addition" property of the Linear Representation Hypothesis discussed in [Olah et al. 2024](https://transformer-circuits.pub/2024/july-update/index.html#linear-representations). The key difference is that "independent additivity" relates to the SAE features being composable via addition with respect to the explanation - this is a property of the SAE Decoder.   
Whereas in the Linear Representation Hypothesis (LRH), "composition as addition" is about the underlying true features (i.e. the generating factors of the underlying distribution) - this is a property of the underlying distribution.

![](https://39669.cdn.cke-cs.com/rQvD3VnunXZu34m86e5f/images/053ae67833b32dc310e6719c9338f56220545325711d99f7.png)

Independent additivity also allows for more general decoder architectures than strictly linear decoders. For example, features can be arranged to form a collection of directed trees, as shown above, where arrows represent the property "the child node can only be active if the parent node is active"[^ay2csdstrrh]. Each feature still corresponds to its own vector direction in the decoder.

Since each child feature has a single path to its root feature, there are no interactions to disentangle and the independent additivity property still holds, in that each *tree* can be understood independently in a way that's natural for humans to understand. The advantage of the directed-tree formulation is that it can be more description-length efficient.

In practice, we typically expect feature trees to be shallow structures which capture causal relationships between highly related features. A particularly interesting example of this structure is a group-sparse autoencoder where linear subspaces are densely activated together.

### Connection to Description Length

An important point is that independent additivity also constrains how we should compute the description length of the SAE activations. Essentially we want the description length of the set of activations, {$z_i$} to be the sum of the lengths for each feature. That is $DL(z) = \sum_i DL(z_i)$.

If we know the distribution of the activations, $p_i(z)$, then it is possible to send the activations using an average description length equal to the distribution's entropy, $DL(z_i) = H(p_i) \equiv \sum_{z\in Z} -p_i(z) \log_2 p_i(z)$. For directed trees, the average description length of a child feature would be the conditional entropy,$DL_\text{child}(z_i) = H(p_i | \text{ parent active})$, which accounts for the fact that DL=0 when the parent is not active. This is one reason that directed tree-style SAEs can potentially have smaller descriptions than conventional SAEs.

Powerful nonlinear autoencoders could potentially compress activations further and reduce the minimum description length but are not consistent with independent additivity. The compressed activations would likely be uninterpretable since there are interactions between the $𝑧_𝑖$ that remain entangled. It may not be generally possible to read off the effects of a single feature activation by looking only at that feature. That is, for an arbitrary non-linear decoder, interpreting $z_i$ depends on all $z_{j≠i}$[^kxmmxmyarv].

5\. SAEs should be sparse, but not too sparse
---------------------------------------------

SAEs are typically seen as unpacking features in superposition from within dense activations, so it's perhaps unclear how SAEs result in compression. Sparsity plays a key role since it's more efficient to specify which activations are nonzero than to send a full vector of activations.

As discussed in the previous section, the description length for a set of SAE activations with distribution pi(z) is the sum of their individual entropies, $H(p_i) = \sum_{z\in Z} -p_i(z) \log_2 p_i(z)$. A simpler formulation is to directly consider the bits needed without prior knowledge of the distributions. If we know $L_0$ activations are non-zero out of D dictionary features, then an upper bound on the description length is $DL≲L_0(B+log_2⁡D)$ where B is the bits for each non-zero float and $log_2⁡D$ is the number of bits to specify which features are active.

We see that increasing sparsity (decreasing $L_0$) generally results in smaller description lengths. But achieving the same loss with higher sparsity typically requires a larger dictionary size, which tends to increase description length. This points to an inherent trade-off between decreasing $L_0$ and decreasing the SAE width (dictionary size) in order to reduce description length. We typically find that the minimal description length is achieved when these two effects are balanced and not at the sparse/wide or dense/narrow extreme points.

As an illustrative example, we can compare reasonable SAE parameters to the dense and sparse extremes to show that intermediate sparsities and widths have smaller description lengths. We'll focus on SAEs for GPT-2.

*   **Reasonable SAEs**: Joseph Bloom's [open source SAE](https://www.lesswrong.com/posts/f9EgfLSurAiqRJySD/open-source-sparse-autoencoders-for-all-residual-stream) for layer 8 has $L_0$=65, D=25,000. We'll use B=7 bits per nonzero float (basically 8-bit quantization minus one bit for the specified sign). For these hyperparameters, the description length per input token is 1405 bits.
*   **Dense Activations**: A dense representation that still satisfies independent additivity would be to send the neural activations directly instead of training an SAE. GPT-2 has a model size of d=768, the description length is simply $DL = B d = 5376$ bits per token.
*   **One-hot encodings**: At the sparse extreme, our dictionary could have a row for each neural activation in the dataset, so $L_0$=1 and $D=(vocab\_size)^{seq\_len}$. GPT-2 has a vocab size of 50,257 and the SAEs are trained 128 token sequences. All together this gives DL=13,993 bits per token.

We see that the reasonable SAE indeed is compressed compared to the dense and sparse extremes. We hypothesise that the reason that we're able to get this helpful compression is that the true features from the generating process are themselves sparse.

The above comparison is somewhat unfair because the SAE is lossy (93% variance explained) and the dense and sparse extremes are lossless. In the next section we do a more careful analysis on SAEs trained on MNIST.

Note the difference here from choosing models based on the reconstruction loss vs sparsity ($L_0$) Pareto frontier. When minimising $L_0$, we are encouraging decreasing $L_0$ and increasing D until $L_0$=1\. Under the MDL model selection paradigm we are typically able to discount trivial solutions like a one-hot encoding of the input activations and other extremely sparse solutions which make the reconstruction algorithm analogous to a k-Nearest Neighbour classifier[^b8trkx4ts8s].

6\. Experiment: Finding the MDL solution for SAEs
-------------------------------------------------

[Lee et al. 2001](https://onlinelibrary.wiley.com/doi/epdf/10.1111/j.1751-5823.2001.tb00455.x) describe the classical method for using the MDL criteria for model selection. Here we choose between model hyperparameters (in particular the SAE width and expected $L_0$) to choose the optimal SAE under the two-part coding scheme.

The algorithm for finding the minimal description length (MDL) solution for SAEs is as follows (with some additional methodological details):

1.  **Specify a tolerance level, ε, for the loss function**. The tolerance ε is the maximum allowed value for the loss, either the reconstruction loss (MSE for the SAE) or the model's cross-entropy loss when intervening on the model to swap in the SAE reconstructions in place of the clean activations. For small datasets using a reconstruction, the test loss should be used.
2.  **Train a set of SAEs within the loss tolerance**. It may be possible to simplify this task by allowing the sparsity parameter to also be learned.
3.  **Find the effective precision needed for floats**. The description length depends on the float quantisation. We typically reduce the float precision until the change in loss results in the reconstruction tolerance level is exceeded.
4.  **Calculate description lengths**. With the quantised latent activations, the entropy can be computed from the (discretised) probability distribution, $\{p^i_\alpha\}$, for each feature i, as $H = \sum_{i,\alpha} -p^i_\alpha \log p^i_\alpha$
5.  **Select the SAE that minimizes the description length** i.e. the ε-MDL-optimal SAE.

### MNIST Case Study

![](https://39669.cdn.cke-cs.com/rQvD3VnunXZu34m86e5f/images/70f67e50f5a3fff1bcd4c458539059cdb2886e9cc58ad011.png)

As a small case study, we trained SAEs[^jiip7dsxy3] on the MNIST dataset of handwritten digits ([LeCun et al 1998](https://ieeexplore.ieee.org/document/726791)) and find the set of hyperparameters resulting in the same test MSE. We see three basic regimes:

*   **High **$L_0$**, narrow SAE width** (C, D in the figure): Here, the description length (DL) is linear with $L_0$, suggesting that the DL is dominated by the number of bits needed to represent the $L_0$ nonzero floats. The features appear as small sections of digits that could be relevant to many digits (C) or start to look like dense features that one might obtain from PCA (D).
*   **Low **$L_0$**, wide SAE width** (A): Even though $L_0$ is small, the DL is large because of the additional bits needed to specify which activations are nonzero when the wide is exponentially larger. The features appear closer to being full digits, i.e. similar to samples from the dataset. Note that the features appear somewhat noisy because early stopping was needed to prevent overfitting to the train set.
*   **The MDL solution** (B): There's a balance between the two contributions to the description length. The features appear like longer line segments for digits, but could apply to multiple digits.

[Gao et al. (2024)](https://cdn.openai.com/papers/sparse-autoencoders.pdf) find that as the SAE width increases, there's a point where the number of dead features starts to rise. In our experiments, we noticed that this point seems to be at a similar point to where the description length starts to increase as well, although we did not test this systematically and this property may be somewhat dataset dependent.

7\. Divergence between the Sparsity and MDL Criteria
----------------------------------------------------

Below we discuss two toy examples where minimal description length (MDL) and minimal $L_0$ would give different results. We argue that MDL generally gives the more intuitive solutions. For convenience, the toy examples consider boolean features and compare cases with the same reconstruction error.

### Limits to Feature Splitting

For LLMs, SAEs with larger dictionaries can find finer-grained versions of features from smaller SAEs, a phenomenon known as "feature splitting" \[[Bricken et al. 2023](https://transformer-circuits.pub/2023/monosemantic-features)\]. Some feature splitting is desirable but other cases can be seen as a failure mode of the SAE. We consider two types of feature splitting:

1.  **Desirable Feature Splitting**: A novel feature direction is introduced that corresponds to a natural concept that the SAE hadn't yet represented well. This is a desirable form of feature splitting. For example, [Bricken et al. 2023](https://transformer-circuits.pub/2023/monosemantic-features) show that a small model learned a feature for "mathematical terminology" whereas larger models learned to distinguish between quantifiers, category theory and prepositions etc.
2.  **Undesirable Feature Splitting**: A sparser combination of existing directions is found that allows for smaller $L_0$. This is a less desirable form of feature splitting for human interpretability. For example [Bricken et al. 2023](https://transformer-circuits.pub/2023/monosemantic-features) note one bug where the model learned dozens of features which all represented the letter P in different contexts.

Undesirable feature splitting can waste dictionary capacity and might represent a failure mode of minimizing $L_1$. We can see this as the SAE [Goodharting](https://en.wikipedia.org/wiki/Goodhart%27s_law) the sparsity criterion.

A toy model of undesirable feature splitting is an SAE that represents the AND of two boolean features, A and B, as a third feature direction. The two booleans represent whether the feature vectors $v_A$ and $v_B$ are present or not, so there are four possible activations: 0, $v_A$, $v_B$, and $v_A+v_B$.

**No Feature Splitting**: An SAE with only the two boolean feature vectors, $v_A$ and $v_B$, is capable of reconstructing $A∧B$ as the sum $v_A+v_B$, as illustrated in the diagram below. The $L_0$ would simply be the expectation of the boolean activations, so $L_0$=$p_A$+$p_B$ and the description length would be $DL=H(p_A)+H(p_B)$ where $H(p)$ is the entropy of boolean random variable with probability p.

![](https://39669.cdn.cke-cs.com/rQvD3VnunXZu34m86e5f/images/a7cf163563cb23cbc307da1a7ba60a7f8144aa30e092739a.png)

**Feature Splitting**: For an SAE with three features, $A∧B$ is explicitly represented with the vector$v_A+v_B$ while the two other features represent $A∧¬B$ and $B∧¬A$ with vectors $v_A$ and $v_B$[^lh0g05nnxf]. This setup has the same reconstruction error and has lower sparsity, $\begin{aligned} L_0 &= p_{A\wedge \neg B} + p_{B\wedge \neg A} + p_{A\wedge B} = p_A + p_B - p_{A \wedge B}\end{aligned}$ since the probabilities for $A∧¬B$, say, are reduced as $p_{A∧¬B}=p_A−p_{A∧B}$.

Even though the setup with three features always has lower $L_0$ it does not always have the smallest description length. The phase diagram above shows the case where $p_A=p_B$. If the correlation coefficient, $\rho$, between A and B is large then it takes fewer bits to represent all three features. But if the correlation is small (typically, less than $p_A$), then representing only A and B, but not $A∧B$, takes fewer bits. The preferred solution is to not have feature splitting in this case.

Imagine that we have an SAE with fixed width and small ε loss but one of the features is as of yet undecided. We might choose between representing some scarcely used direction which explains some variance or the AND of two features that are already in our feature codebook (an example of feature splitting). This is a problem of deciding which will give the largest improvement on the (loss, DL)-Pareto curve. Adding the novel feature will likely improve the loss but adding the composite feature may improve the description length. This tradeoff will lead to a stricter condition on when to add the composite feature than suggested in the phase diagram above.

### More efficient coding schemes for hierarchical features

Often features are strongly related and this should allow for more efficient coding schemes.

For example, consider the hierarchical concepts "Animal" (A) and "Bird" (B). Since all birds are animals, the "Animal" feature will always be active when the "Bird" feature is active.

A conventional SAE would represent these as separate feature vectors, one for "Bird" (B) and one for "Generic Animal" ($A∧¬B$), that are never active together. This setup has a low $L_0$ equal to the probability of "Animal", $p_A$, since something is a bird, a generic animal, or neither.

![](https://39669.cdn.cke-cs.com/rQvD3VnunXZu34m86e5f/images/621853548ef749f86df452b0941b9c4df4a72ae346d3e9bc.png)

An alternative approach would be to define a [variable length coding scheme](https://web.stanford.edu/class/ee376a/files/2017-18/lecture_5.pdf), meaning that, in the communication setting discussed before, the number of activations sent over can change. One scheme is to first send the activation for "Animal" (A) and only if "Animal" is active, send the activation for "Animal is a Bird" (B→A). This scheme saves bits in description length whenever the second activation is not sent. The overall $L_0$however is higher because sometimes two activations are nonzero at the same time.

In order to make use of this coding scheme, the encoder and decoder would need to explicitly have the same hierarchical structure. Otherwise, it would not be easy to identify the dependencies between features when assessing the description length.

Note: Hierarchical features are a special case of having ANDs of features, discussed in the Feature Splitting section above. For example, we could define "Bird" in terms of its specific properties as "Bird" equals "Animal" AND "Has Wings" AND "Has Beak" etc. These properties are highly correlated with "Animal" and each other, which is why it's possible to define a more efficient coding scheme.

8\. Related Work
----------------

Our setting is inspired by rate-distortion theory ([Shannon 1944](https://people.math.harvard.edu/~ctm/home/text/others/shannon/entropy/entropy.pdf)) and the Rate-Distortion-Perception Tradeoff from [Blau et al. 2019](https://proceedings.mlr.press/v97/blau19a/blau19a.pdf). Blau et al. note the surprising result that distortion (e.g. squared-error distortion) is often at odds with perceptual quality and suggest that the divergence d($p_X,p_\widehat{X}$) more accurately represents perception as judged by humans (though the exact divergence which most closely matches human intuition is still an ongoing area of research).

As in [Ramirez et al. 2011](https://arxiv.org/abs/1110.2436), we use the MDL approach for the Model Selection Problem using the criteria that the best model for the data is the model that captures the most useful structure from the data. The more structure or "regularity" a model captures, the shorter the description of the data, X, will be under that model (by avoiding redundancy in the description). Therefore, MDL will select the best model as the one that produces the most efficient description of the data.

[Dhillon et al. 2011](https://www.jmlr.org/papers/volume12/dhillon11a/dhillon11a.pdf) use the information theoretic MDL principle to motivate their Multiple Inclusion Criterion (MIC) for learning sparse models. Their setup is similar to ours but their method relies on sequential greedy-sampling rather than a parallel approach, which performs slower than the SAE methods on modern hardware but is otherwise a promising approach. They present applications where human interpretability is a key driver of the reason for a sparse solution and we present additional motivations for sparsity as plausibly aligning with human interpretability.

[Bricken et al. 2023](https://transformer-circuits.pub/2023/may-update/index.html#simple-factorization) discuss defining features as "the simplest factorization of the activations". We don't directly claim that this should be the definition of features but we instead argue that features make up explanations, where simpler explanations are preferred. Given our experiments we find similar "bounces" (global minima) in the description length as a function of SAE width, rather than a monotonic function. Larger dictionaries tend to require more information to represent, but sparser codes require less information to represent, which may counterbalance.

[Gross et al. 2024](https://www.alignmentforum.org/posts/bRsKimQcPTX3tNNJZ/compact-proofs-of-model-performance-via-mechanistic) use Mechanistic Interpretability techniques to generate compact formal guarantees (i.e. proofs) of model performance. Here they are seeking *explanations* which bound the model loss by some ε on a task. They find that better understanding of the model leads to shorter (i.e. lower description length) proofs. Similar to our work the authors note the deep connection between mechanistic interpretability and compression.

9\. Conclusion
--------------

In this work, we have presented an information-theoretic perspective on Sparse Autoencoders as explainers for neural network activations. Using the MDL principle, we provide some theoretical motivation for existing SAE architectures and hyperparameters. We also hypothesise a mechanism and criteria to describe the commonly observed phenomena of feature splitting. In the cases where feature splitting can be seen as undesirable for downstream applications, we hope that, using this theoretical framework, the prevalence of undesirable feature splitting could be decreased in practical modelling settings.

Our work suggests a path to a formal link between existing interpretability methods and information-theoretic principles such as the Rate-Distortion-Perception trade-off and two-part MDL coding schemes. We would be excited about work which further connects concise explanations of learned representations to well-explored problems in compressed sensing.

Historically, evaluating SAEs for interpretability has been difficult without human interpretability ratings studies, which can be labour intensive and expensive. We propose that operationalising interpretability as efficient communication can help in creating principled evaluations for interpretability, requiring less subjective and expensive SAE metrics.

We would be excited about future work which explores to what extent the variants in SAE architectures can decrease the MDL of communicated latents. In particular, Section 5 suggests that causal structure may be important to efficient coding. We would also be interested in future work which explores the relationship between the MDL-optimal hyperparameters for a given allowable error rate ε, possibly through scaling laws analysis.

* * *

See [here](https://kolaayonrinde.com/assets/mdl_saes_poster.pdf) for a poster version of this post.

*Thanks to Jason Gross and Jacob Drori for reading early drafts of this work. Thanks to Jack Foxabbott, Louis Jaburi, Can Rager, Evžen Wybitul, Lawrence Chan and Sandy Tanwisuth for helpful conversations.*

[^yjkxvcfhuap]: Given that SAEs are sparse we note the following result which we inherit from theory on Lasso-style algorithms (assuming the irrepresentable condition from Zhao et al 2006):Top-K sparse dictionary learning is *sparsistent* i.e. satisfies "sparsity pattern consistency".In other words: \(P(\text{nonzero}(f_i^{true}) = \text{nonzero}(f_i^{SAE_n})) \rightarrow 1\) as \(n \rightarrow \infty,\) where \(\text{nonzero}(f)\) denotes the indices of the non-zero elements of \(f\). Sparsistency here implies that the dictionary learning algorithm is consistently able to identify the correct set of sparse features in the asymptotic limit, given that the true features of the generating process are indeed sparsely linearly represented. Hence our SAE training method provably converges to the correct solution in ideal conditions. 

[^gouq3zkajz]: Here we're using the term "feature" as is common in the literature to refer to a linear direction which corresponds to a member of the set of a (typically overcomplete) basis for the activation space. Ideally the features are relatively monosemantic and correspond to a single (causally relevant) concept. We make no guarantees that the features found by an SAE are the "true" generating factors of the system (though we might hope for this and use this as an intuition pump). 

[^yaolpsvdbzb]: An explanation is typically a natural language statement. SAEs give outputs which are analogous to explanations since we can simply give an interpretation of individual features with a process like AutoInterp. 

[^ay2csdstrrh]: In particular we may be interested in a set-up where the child node is active if and only if the parent node is active as a special case of this. 

[^kxmmxmyarv]: One possible middle ground here might be bilinear structures which can be more expressive than linearity but have been shown to maintain some interpretability properties as in Sharkey 2023. 

[^b8trkx4ts8s]: Note that we cannot always strictly rule out these solutions since there is some dependency on the loss tolerance \(\varepsilon\) given and the dataset. We show how this plays out for a real dataset in the following section. 

[^jiip7dsxy3]: We trained BatchTopK SAEs (Bussman et al 2024), typically for 1000+ epochs until the test reconstruction loss converged or stopping early in cases of overfitting. Our desired MSE tolerance was 0.0150. Discretizing the floats to roughly 5 bits per nonzero float gave an average change in MSE of ≈0.0001. 

[^lh0g05nnxf]: With three features in a 2d plane it may seem difficult to find a linear encoder to separate them, but we can find lines that separate each feature from the other two and have the encoder measure the distance away from dividing line.