← Back to article

Equation 4 · How Mechanistic Interpretability Research Is Actually Done

What does this equation mean?

p^θ(y∣aℓ)=σ ⁣(w⊤aℓ+b),θ={w,b},\hat p_\theta(y \mid a_\ell) = \sigma\!\left(w^{\top} a_\ell + b\right), \qquad \theta = \{w, b\},

Read the formula alongside the article passage below. Each part has a deeper page with its role in the equation, the supporting passage and nearby citations.

Inputs and operationsσ(w^top a_ell + b), qquad θ = w, b
Result or conditionhat p_θ(y mid a_ell)
How to read the two sides of this formula. Follow the article passage for the meaning of each quantity.

This equation states an equality: the expressions on both sides have the same value under the article’s assumptions. Read the equation part by part below; each part has a contextual explanation and a link to its mathematical background.

Read it piece by piece

p^θ\hat p_\theta

Symbol hat p_θ

hat p_θ is part of the quantity the equation computes from the expression on the right.

Understand this part →

yy

Symbol y

y is an argument of the function-like quantity on the left; its role is set by that function’s stated inputs.

Understand this part →

aℓa_\ell

Symbol a_ell

aea_ell is an argument of the function-like quantity on the left; its role is set by that function’s stated inputs.

Understand this part →

σ\sigma

Symbol σ

σ is one of the signed contributions combined to compute the quantity on the left.

Understand this part →

w⊤w^{\top}

Symbol w^top

wtw^top is one of the signed contributions combined to compute the quantity on the left.

Understand this part →

bb

Symbol b

b is one of the signed contributions combined to compute the quantity on the left.

Understand this part →

θ\theta

Symbol θ

θ is part of the quantity the equation computes from the expression on the right.

Understand this part →

ww

Symbol w

w is one of the signed contributions combined to compute the quantity on the left.

Understand this part →

=

=

The expressions on both sides represent the same quantity under the stated assumptions.

Understand this part →

See an illustrated explanation →
addition

addition

Add the term after the plus sign to the term or group before it.

Understand this part →

superscript

superscript

A raised number can be a power. When it is a label or bound, it selects a case or the upper limit of a sum; the formula’s structure distinguishes these uses.

Understand this part →

See an illustrated explanation →

How to interpret it

Read it with the definitions, units, and assumptions supplied by the article.

What the article says around this equation

The first concrete operation in almost any interpretability project is the least glamorous: run the model forward on a batch of inputs, and at some chosen point in the computation — a residual-stream position, an attention head’s output, a particular MLP layer — copy the activation tensor out before it is overwritten by the next step of the forward pass. This is extraction, and it produces nothing on its own beyond a large table of vectors. What turns it into evidence is probing: fitting a small, separately trained classifier to predict some property of interest directly from those vectors, while the model’s own weights stay frozen. Formally, for an activation aℓa_\ell read out at layer ℓ\ell…
Read the full surrounding passage
The first concrete operation in almost any interpretability project is the least glamorous: run the model forward on a batch of inputs, and at some chosen point in the computation — a residual-stream position, an attention head’s output, a particular MLP layer — copy the activation tensor out before it is overwritten by the next step of the forward pass. This is extraction, and it produces nothing on its own beyond a large table of vectors. What turns it into evidence is probing: fitting a small, separately trained classifier to predict some property of interest directly from those vectors, while the model’s own weights stay frozen. Formally, for an activation aℓa_\ell read out at layer ℓ\ell and a binary property y , p^θ(y∣aℓ)=σ ⁣(w⊤aℓ+b),θ={w,b}\hat p_\theta(y \mid a_\ell) = \sigma\!\left(w^{\top} a_\ell + b\right), \qquad \theta = \{w, b\}. with θ\theta fit by ordinary gradient descent to minimise cross-entropy against labelled examples. Alain and Bengio introduced this move under the name “probes” and made an observation that still organises how the technique is used: linear separability of a target property increases monotonically with depth in the networks they studied, which is itself informative about where in the computation a property becomes available for linear readout [ 1 ] .

Read the equation in its article →

Sources cited in the surrounding passage

These citations give research context. Read each source to check which claims it supports.

Return to How Mechanistic Interpretability Research Is Actually Done

See this formula across 1 published context →

Browse the mathematical compendium →