Appendix C

C Mathematical Foundations#PDF p. 181

This section provides background on some key mathematical frameworks used in mechanistic interpretability.

C.1 Causal Inference Basics#PDF p. 181

Mechanistic interpretability relies on causal reasoning: determining whether a component is necessary and sufficient for a behaviour.

C.1.1 Necessity#PDF p. 181

A component SS is necessary for behaviour BB if:

Remove S⇒B disappears\begin{equation*} \text{Remove } S \Rightarrow B \text{ disappears} \tag{4} \end{equation*}

Tested via ablation: measure the effect of removing SS on downstream loss or output distribution.

C.1.2 Sufficiency#PDF p. 181

A component SS is sufficient for behaviour BB if:

Only S is active⇒B occurs\begin{equation*} \text{Only } S \text{ is active} \Rightarrow B \text{ occurs} \tag{5} \end{equation*}

Tested via interchange interventions: in the corrupted run with a reference input containing no target information, patch the activation of SS with that from a clean run using an input containing the target information, and then verify whether the behaviour emerges.

C.1.3 Causal Abstraction#PDF p. 181

Causal abstraction (Geiger et al., 2021) formalises when a high-level description (“this head implements copying”) correctly describes lower-level computation. A high-level abstraction is causally correct if interventions on the high-level description produce the same causal effects as interventions on the low-level system. This is formalised via causal diagrams: high-level variables correspond to low-level variables via abstraction maps Φ\Phi, and interventions commute:

Intervene at high level→ΦIntervene at low level\begin{equation*} \text{Intervene at high level} \xrightarrow{\Phi} \text{Intervene at low level} \tag{6} \end{equation*}

C.2 Local Learning Coefficient#PDF p. 181

Singular Learning Theory (SLT; Watanabe, 2009) provides a geometric analysis of learning and generalisation in singular statistical models, including neural networks. The Local Learning Coefficient (LLC; Lau et al., 2025) builds on SLT by localising Watanabe’s learning coefficient around a particular parameter configuration, thereby providing a measure of the effective local complexity of a neural network around a local minimum. Below, we introduce the LLC step by step, following the exposition in Section 3 of Lau et al. (2025).

We first consider a neural network and a downstream task. For each neural network parameter configuration, say θ\theta, we can evaluate its loss L(θ)\mathcal{L}(\theta). The task should have an explicitly defined loss function L(⋅)\mathcal{L}(\cdot), such that we can optimise the model parameters until they converge to a local minimum θ∗\theta^*. Now we choose a sufficiently small closed ball B(θ∗)B(\theta^*) centred at θ∗\theta^* such that any element in it, i.e., θ\theta, satisfies

L(θ∗)≤L(θ).\mathcal{L}(\theta^*) \leq \mathcal{L}(\theta).
Within this ball, we further consider the subset where each element has a loss that, while always greater than or equal to the local minimum, falls within a tolerance threshold ϵ\epsilon. Formally, we define
B(θ∗,ϵ)≔{θ∈B(θ∗)∣L(θ)−L(θ∗)<ϵ}.B(\theta^*, \epsilon) \coloneqq \left\{ \theta \in B(\theta^*) \mid \mathcal{L}(\theta) - \mathcal{L}(\theta^*) < \epsilon \right\}.

We can then calculate the volume of B(θ∗,ϵ)B(\theta^*, \epsilon). Viewing each element in this set, which corresponds to a parameter configuration, as a point in a high-dimensional parameter space whose dimension is the number of scalar parameters in θ\theta, we have

V(ϵ)≔∫B(θ∗,ϵ)dθ.V(\epsilon) \coloneqq \int_{B(\theta^*, \epsilon)} d\theta.
Intuitively, V(ϵ)V(\epsilon) measures how much parameter-space volume around θ∗\theta^* achieves a loss within ϵ\epsilon of the local minimum.

By SLT, as ϵ→0\epsilon \to 0, V(ϵ)V(\epsilon) has the asymptotic form

V(ϵ)=cϵλ(θ∗)(−log⁡ϵ)m(θ∗)−1+o ⁣(ϵλ(θ∗)(−log⁡ϵ)m(θ∗)−1),V(\epsilon) = c\epsilon^{\lambda(\theta^*)} (-\log\epsilon)^{m(\theta^*)-1} + o\!\left( \epsilon^{\lambda(\theta^*)} (-\log\epsilon)^{m(\theta^*)-1} \right),
where cc is a positive constant, λ(θ∗)\lambda(\theta^*) is a positive rational number termed the Local Learning Coefficient, and m(θ∗)m(\theta^*) is a positive integer called the local multiplicity. Importantly, the equation shows that λ(θ∗)\lambda(\theta^*) determines the dominant rate at which V(ϵ)V(\epsilon) shrinks as ϵ→0\epsilon \to 0, while m(θ∗)m(\theta^*) contributes a lower-order logarithmic term. The larger λ(θ∗)\lambda(\theta^*) is, the faster V(ϵ)V(\epsilon) decreases as ϵ→0\epsilon \to 0.

The convergence speed of V(ϵ)V(\epsilon), as characterised by λ(θ∗)\lambda(\theta^*), can therefore measure the model’s effective local complexity. Conceptually, a large λ(θ∗)\lambda(\theta^*) means that, when we are just around the local minimum (i.e., for small ϵ\epsilon), the volume of parameter configurations that preserve a similarly low loss is small: perturbing the parameters is more likely to substantially change the loss. This trend corresponds to a local solution with more complexity but less degeneracy. Conversely, a small λ(θ∗)\lambda(\theta^*) implies that a larger number of nearby parameter configurations reach similarly low loss, indicating lower effective local complexity and higher degeneracy.

The LLC has been used to characterise properties of trained neural networks. For example, Lau et al. (2025) showed that the LLC can capture differences in effective complexity between models trained under different settings, even when their training losses are similar.

C.3 Information Theory Basics#PDF p. 182

In mechanistic interpretability, concepts from information theory are often used to quantify relationships between internal components and how much information is preserved, and to measure representation quality. Although they do not directly establish causal mechanisms, they are highly useful for quantifying how information is encoded and changes during model computation.

Entropy.

A random variable XX has entropy (or information content) that is defined as:

H(X)≔−∑xp(x)log⁡p(x).H(X) \coloneqq -\sum_x p(x)\log p(x).

High entropy indicates greater uncertainty, while low entropy implies more predictable distributions. Entropy is frequently utilised to measure learned representation diversity or prediction confidence.

Mutual Information.

The mutual information between two random variables XX and YY is

I(X;Y)=H(X)−H(X∣Y),I(X;Y) = H(X)-H(X|Y),

which measures how much information one variable provides about the other. Equivalently,

I(X;Y)=DKL(p(X,Y) ∥ p(X)p(Y)).I(X;Y)=D_{\mathrm{KL}}(p(X,Y)\,\|\,p(X)p(Y)).

In interpretability, mutual information is often used to estimate how strongly a representation encodes a property of interest, such as a concept, label, or downstream behaviour.

KL Divergence.

The Kullback–Leibler (KL) divergence between distributions PP and QQ is

DKL(P∥Q)=∑xP(x)log⁡P(x)Q(x),D_{\mathrm{KL}}(P\|Q) = \sum_x P(x)\log\frac{P(x)}{Q(x)},

which measures how different one probability distribution is from another. KL divergence is widely used to compare model outputs before and after interventions, evaluate reconstruction quality, and train auxiliary interpretability models such as tuned lenses.