Chapter 4

4 Foundational Concepts for Mechanistic Interpretability#PDF p. 21

This section introduces foundational concepts in mechanistic interpretability. We establish a shared notation and vocabulary for use throughout the survey. We avoid committing to specific hypotheses about the representations and workings of model activations.

4.1 Behavioural vs. Mechanistic Understanding#PDF p. 21

Behavioural analysis describes what a model does, but safety-critical applications also require understanding its internal mechanism (as we reviewed in Section 2).

Behavioural Interpretability

Behavioural interpretability studies a model fθ:X→Yf_\theta : \mathcal{X} \to \mathcal{Y} through input–output pairs (x,fθ(x))(x, f_\theta(x)) for x∈D⊆Xx \in \mathcal{D} \subseteq \mathcal{X}, where D\mathcal{D} is a finite test set. Behavioural interpretability treats the model as a black box.

Mechanistic Interpretability

Mechanistic interpretability studies a model fθ:X→Yf_\theta : \mathcal{X} \to \mathcal{Y} by examining its internal computations, including model activations and parameters θ\theta that produce them, at different levels of granularity in relation to its behaviour. In short, mechanistic interpretability characterises how a model’s behaviour or output is computed.

4.2 Neuron Polysemanticity in Model Representations#PDF p. 21

What Is a Concept?

Concepts play a central role in many interpretability methods and will be used throughout this paper to define key ideas such as features and polysemanticity. It is therefore worth clarifying what we mean by the term. Notably, concepts do not necessarily correspond to categories humans can readily name or understand; neural networks may represent them in ways humans lack the vocabulary to describe (Hewitt et al., 2025).

Concept

A concept is a distinct, reusable unit of information or knowledge that can be identified across different instances or contexts. Concepts may correspond to familiar human categories, such as “a dog”, “the colour red”, or “words of praise”, but they need not admit a natural human description.

Cross-context identifiability concerns the meaning of the information unit rather than the process by which the information is recognised. Determining whether a concept is present in an information unit may itself require additional contextual information. For example, the word (i.e., an instance of an information unit) “bank” can refer to a financial institution or a river bank, depending on the surrounding sentence. Nevertheless, once identified, each concept can be recognised as the same information across different contexts. For example, the concept of “financial institution” is expected to remain sufficiently stable across the contexts in which it appears.

This definition accommodates both human-interpretable and machine-specific concepts. A machine-specific concept may lack a natural human description yet still form a coherent, reusable unit of information in the neural network (Dalvi et al., 2022; Hewitt et al., 2025). Human interpretability should therefore be treated as a property of some concepts rather than as a necessary condition for the information unit to qualify as a concept. Notably, most interpretability research focuses on concepts that humans can readily understand. Identifying and characterising concepts that matter to a model’s computation but do not map neatly onto human-understandable categories remains underexplored.

Neuron Polysemanticity.

For a single neuron nℓn_\ell in layer ℓ\ell, consider its activation at token position tt for some input prompt xx, denoted by nℓt(x)n_\ell^{t}(x). We can straightforwardly interpret a neuron if it responds to a single concept. For example, if nℓt(x)n_\ell^{t}(x) is large and positive whenever position tt corresponds to the word “blue”, remains close to zero otherwise, and can causally shift the model’s outputs towards or away from blue-related concepts when manipulated, we can conclude that the neuron corresponds to the concept of blue. Assuming some neurons exhibit such a property, early work proposed methods to discover and interpret individual neurons’ functions (Bau et al., 2017; 2019; Dalvi et al., 2019; Bau et al., 2020; Hernandez et al., 2022; Oikarinen & Weng, 2023; Wu et al., 2024). However, follow-up studies have found that, due to representational constraints and superposition (Elhage et al., 2022a) (detailed in Section 5.2), individual neurons often respond strongly to multiple concepts that appear unrelated from a human perspective (Elhage et al., 2022a). This phenomenon is known as neuron polysemanticity.

Neuron Polysemanticity

A neuron nℓn_\ell is polysemantic if there exist two distinct concepts c1c_1 and c2c_2, together with corresponding sets of inputs x1x_1 and x2x_2 as well as token positions of interest tc1t_{c_1} and tc2t_{c_2}, such that nℓtc1(x1)n_\ell^{t_{c_1}}(x_1) and nℓtc2(x2)n_\ell^{t_{c_2}}(x_2) are both large, and interventions on these activations causally influence model behaviour associated with both concepts.

Polysemanticity complicates neuron-level explanations and suggests that human-interpretable semantic content may not be aligned with individual neurons. This motivates searching for representational units beyond individual neurons.

4.3 Features as Representational Units#PDF p. 22

Since individual neurons are often polysemantic, mechanistic interpretability has increasingly shifted towards alternative units of analysis. For example, it has been found that models sometimes encode human-interpretable concepts as linear directions or low-dimensional manifolds in the activation space (Arditi et al., 2024; Wurgaft et al., 2026). We thus use the term feature broadly to encompass any model representation corresponding to a human-interpretable concept. Such distributed representations motivate analysing the activation space as a whole, rather than individual neurons in isolation (Elhage et al., 2022a; Bricken et al., 2023; Templeton et al., 2024).

Specifically, we treat a feature technically as a geometric structure ϕ\phi in the activation space Rd\mathbb{R}^d of a model component, such as the residual stream, an attention-head output, or an MLP output, where dd denotes the hidden dimension. Conceptually, a feature is a manipulable manifestation of a concept of interest. As with neurons, for a feature ϕ\phi claimed to correspond to a concept cc, we expect interventions that increase or suppress the activation of ϕ\phi to causally influence model behaviour associated with cc. In this sense, features provide a more expressive, general representational unit than individual neurons for describing how neural networks may encode concepts.

Feature

A feature ϕ\phi associated with a concept cc is a geometric structure in the model’s activation space Rd\mathbb{R}^d whose activation is predictive of, and causally relevant to, the presence or expression of cc.

At this stage, we remain agnostic about the precise mathematical form features take and how the model encodes them. Instead, we treat existing methods for identifying and manipulating features as operational approximations shaped by their methodological assumptions and constraints. We examine these representational hypotheses explicitly in Section 5.

Within this operational perspective, researchers can identify features using several methodological families, including readout-based methods (Ghandeharioun et al., 2024; Pan et al., 2026; Karvonen et al., 2026a) and sparse decomposition techniques (Cunningham et al., 2024; Dunefsky et al., 2024), and then manipulate them to test causal relevance (Wu et al., 2025b; Mueller et al., 2025). In practice, many such approaches operationalise features as approximately linear or linearised components of internal representations (Yun et al., 2021; Marks & Tegmark, 2024; Arditi et al., 2024). Examples include linear probes and dictionary-learning methods (Belinkov, 2022; Bricken et al., 2023).

An important caveat is that, for a given concept, an identified manipulable geometric structure—that is, a candidate feature—may be only one of many possible internal representations associated with that concept. For example, a language model may encode the concept of “refusal” in a complex manner across multiple layers and components. Successfully identifying a linear direction in the residual stream that can steer the model towards or away from refusal (Arditi et al., 2024) does not imply that this direction uniquely or exhaustively captures how refusal is represented. Other causally relevant structures (e.g., low-dimensional manifolds) for refusal may also exist but remain unidentified.

4.4 Transformer Computation#PDF p. 23

Transformers (Vaswani et al., 2017) have become the dominant architecture underlying modern language-model-based AI assistants such as ChatGPT and Claude, and are consequently the primary subject of study in mechanistic interpretability. Several properties of the transformer architecture, most notably its modular structure and additive information flow, make it particularly amenable to mechanistic analysis (Elhage et al., 2021). In particular, transformer components can be viewed as reading from and writing to a shared residual stream, allowing information to persist and be incrementally transformed as it passes through successive layers (Elhage et al., 2021). Below, we briefly review the main classical components of the transformer architecture.

Residual Stream and Computational Components

Let

hℓ1:T(x)∈Rd×Th^{1:T}_\ell(x) \in \mathbb{R}^{d \times T}
denote the sequence of residual-stream activations at layer ℓ\ell for an input sequence xx, where TT is the sequence length and dd is the model hidden size. The residual stream serves as the shared communication channel through which transformer components exchange information. Below, in this box, we let hℓ(x)≔hℓ1:T(x)h_\ell(x) \coloneqq h^{1:T}_\ell(x) to simplify the notation.
For a standard transformer layer ℓ\ell, consisting of a multi-head attention module Attnℓ(⋅)\mathrm{Attn}_\ell(\cdot) and a multi-layer perceptron MLPℓ(⋅)\mathrm{MLP}_\ell(\cdot), we have
hℓ′(x)=hℓ−1(x)+Attnℓ(hℓ−1(x)),hℓ(x)=hℓ′(x)+MLPℓ(hℓ′(x))=hℓ−1(x)+Attnℓ(hℓ−1(x))+MLPℓ(hℓ′(x)).\begin{align*} h'_\ell(x) &= h_{\ell-1}(x) + \mathrm{Attn}_\ell(h_{\ell-1}(x)), \\ h_\ell(x) &= h'_\ell(x) + \mathrm{MLP}_\ell(h'_\ell(x)) = h_{\ell-1}(x) + \mathrm{Attn}_\ell(h_{\ell-1}(x)) + \mathrm{MLP}_\ell(h'_\ell(x)). \end{align*}

Unrolling the recursion gives

hℓ(x)=h0(x)+∑k=1ℓ(Attnk(hk−1(x))+MLPk(hk′(x))),h_\ell(x) = h_0(x) + \sum_{k=1}^{\ell} \Big( \mathrm{Attn}_k(h_{k-1}(x)) + \mathrm{MLP}_k(h'_k(x)) \Big),

where h0(x)h_0(x) denotes the input embedding representation. The equation shows that the residual stream at layer ℓ\ell equals the input embeddings plus the accumulated outputs of all computational components that have written to the residual stream up to that point. This perspective is central to mechanistic interpretability, as it lets us decompose model computation into additive contributions from individual components (Elhage et al., 2021).

For simplicity, we omit layer-normalisation operations from the notation. Following Elhage et al. (2021), most of the layer-normalisation transformation can be absorbed into adjacent linear components. Specifically, for a fixed input, layer normalisation is well approximated as an affine transformation with a scalar rescaling factor. The affine part can be folded into neighbouring parameters, and the remaining scalar normalisation term simply reweights component contributions. This approximation lets us treat the residual stream as an additive communication channel without explicitly representing normalisation at every layer.

Attention heads and MLPs play distinct roles in transformer computation. Attention modules primarily route, aggregate, and compose information across token positions (Olsson et al., 2022; Wang et al., 2023), whereas MLPs often perform feature transformation and factual knowledge retrieval (Geva et al., 2021; Meng et al., 2022). This functional separation enables more localised analyses of how the model routes, transforms, and stores information, as well as how attention modules and MLPs interact (Neo et al., 2024).

Below, we detail the computations of canonical attention modules and MLPs.

Attention Module

A multi-head attention module consists of NHN_H attention heads operating in parallel. Consider the residual-stream activations hℓ1:T(x)∈Rd×Th_\ell^{1:T}(x) \in \mathbb{R}^{d \times T} and let h:=hℓ1:T(x)h := h_\ell^{1:T}(x) for notational simplicity. For each head r∈{1,…,NH}r \in \{1,\ldots,N_H\}, the residual stream is first projected into query, key, and value representations:

Qr=WQrh,Kr=WKrh,Vr=WVrh,Q^r = W_Q^r h, \qquad K^r = W_K^r h, \qquad V^r = W_V^r h,
where WQr,WKr,WVr∈Rdhead×dW_Q^r, W_K^r, W_V^r \in \mathbb{R}^{d_{\text{head}} \times d} and dheadd_{\text{head}} denotes the dimensionality of each attention head. The attention pattern of head rr is then computed as
Ar=softmax⁡ ⁣((Qr)⊤Krdhead)∈RT×T,A^r = \operatorname{softmax}\!\left( \frac{(Q^r)^\top K^r}{\sqrt{d_{\text{head}}}} \right) \in \mathbb{R}^{T \times T},
where the softmax is applied row-wise. Thus, At,t′rA^r_{t,t'} denotes the attention weight assigned by the query at position tt to the key at position t′t'. The head then writes an update to the residual stream:
Δhr=WOrVr(Ar)⊤,\Delta h^r = W_O^r V^r (A^r)^\top,
where WOr∈Rd×dheadW_O^r \in \mathbb{R}^{d \times d_{\text{head}}}. The output of the full multi-head attention module is the sum of the contributions from all heads:
Attn⁡(h)=∑r=1NHΔhr.\operatorname{Attn}(h) = \sum_{r=1}^{N_H} \Delta h^r.

An MLP block applies a position-wise nonlinear transformation to each position of the residual stream. In the canonical transformer architecture (Vaswani et al., 2017), this transformation takes the form

ΔhMLP=W2 σ(W1h+b1)+b2,\Delta h_{\text{MLP}} = W_2 \,\sigma(W_1h+b_1)+b_2,
where W1∈Rdmlp×dW_1 \in \mathbb{R}^{d_{\text{mlp}}\times d}, W2∈Rd×dmlpW_2 \in \mathbb{R}^{d\times d_{\text{mlp}}}, and σ(⋅)\sigma(\cdot) denotes a nonlinear activation function, for which the original transformer uses ReLU (Nair & Hinton, 2010). The same transformation is applied independently at each position in the sequence. MLP blocks primarily transform and generate internal features, writing new directions into the residual stream.
Notably, W1W_1 typically projects the activations into a much higher-dimensional space (dmlp≫dd_{\text{mlp}} \gg d), which has recently been found to yield more interpretable representations natively in the model (Nikankin et al., 2025; Arora et al., 2026).

The transformer components discussed above correspond to their canonical formulations. Numerous variants have since been proposed and adopted in modern architectures. For example, variants of the attention module include Grouped Query Attention (GQA) (Ainslie et al., 2023), used in Llama 3 (Grattafiori et al., 2024), and Multi-Head Latent Attention (MLA) (DeepSeek-AI et al., 2024), used in DeepSeek-V2 (DeepSeek-AI et al., 2024) and DeepSeek-V3 (DeepSeek-AI, 2025). Variants of the MLP block include gated architectures such as SwiGLU (Shazeer, 2020), used in Llama 3, and Mixture-of-Experts (MoE) architectures, used in DeepSeek-V3.

4.5 Circuits as Descriptions of Internal Mechanisms#PDF p. 25

Sections 4.2–4.3 introduce neurons and features as representational units for describing what is represented in model activations, and Section 4.4 introduces the computations that transform and route activations through the model. We use the term mechanism to refer to the organisation of model activations, their representational units, or the transformations applied to them that together produce a particular model behaviour. A central topic in mechanistic interpretability is identifying and understanding such mechanisms in neural networks.

A common way to represent and describe such a mechanism is through a circuit: a subgraph of the model’s computational graph whose nodes correspond to computational components or representational units and whose edges represent information flow between them (Elhage et al., 2021).

Circuit (Figure 3)

For a fixed model computation, let GG denote the corresponding directed acyclic computational graph. A circuit C⊆G\mathcal{C} \subseteq G is a subgraph of GG, where:

  • Nodes: computational components, such as Attnℓ\mathrm{Attn}_\ell and MLPℓ\mathrm{MLP}_\ell, or representational units, such as features ϕi\phi_i;

  • Edges: directed connections representing information flow or transformation between nodes.

The subgraph C\mathcal{C} represents a collection of components and interactions that jointly contribute to a particular computation or model behaviour, and can therefore serve as a description of the underlying mechanism.

Figure 3: Circuit. This diagram illustrates a circuit within a transformer, where specific nodes (MLP layers and attention heads in this case) perform specialised computations.
Figure 3: Circuit. This diagram illustrates a circuit within a transformer, where specific nodes (MLP layers and attention heads in this case) perform specialised computations.

Examples of Circuits

  • Induction head circuit: Two attention heads cooperate to implement in-context learning (Olsson et al., 2022).

  • QK circuits: Query–Key interactions prioritising specific token positions (Kamath et al., 2025).

The study of circuits has developed along two complementary lines. The first line of work (Wang et al., 2023; Conmy et al., 2023; Hanna et al., 2024; Haklay et al., 2025), referred to as capability circuit discovery by Wu & Barez (2026), aims to identify minimal sets of architectural components, such as attention heads or MLP layers, that are sufficient to reproduce a given behaviour or capability of the model, such as indirect object identification (Wang et al., 2023), numerical comparison (Hanna et al., 2023), and in-context learning (Kharlapenko et al., 2025). In this setting, the capability of interest is defined as a dataset of queries that exercise it, and a discovered circuit is considered successful if it recovers the model’s performance on this dataset.

The second line of work, referred to as query-level circuit discovery (Wu & Barez, 2026), focuses on how internal features interact and propagate across the computational graph to produce the model’s decision for a particular input query (Ameisen et al., 2025; Wu & Barez, 2026). Studies in this line usually use sparse autoencoders or cross-layer transcoders (detailed in Section 6) to automatically decompose MLP outputs into interpretable units, trace attributions between these features, and track how information flow converges to the final prediction.

Summary.

This section introduced the foundational concepts of mechanistic interpretability: neuron polysemanticity, which motivates the use of features as more expressive units of analysis; transformer computation, which describes how representations are transformed and information is routed through the model; and internal mechanisms, which organise these units, transformations, and information flows to produce model behaviour and can be described by circuits. How we interpret and leverage these concepts depends on assumptions about the structure of model representations and computation, which we examine explicitly in Section 5.