A Path Already Walked · handbook
Handbook / Part 03

The graph contract

What a graph claim declares before any statistic, and one way to measure an edge.

02Proposal

A graph claim should say which graph it is about

One transformer induces many graphs. Nodes can be neurons, heads, SAE features or whole blocks, and edges can be weights, activation correlations, patching effects or Jacobians. Each choice of threshold, of symmetrisation and of prompt set can change the answer, and a paper that reports only the final statistic gives the reader no way to tell which of these choices produced it.

The transformer graph contract fixes these choices before any statistic is computed. Signed effects are projected to a nonnegative strength or split into a positive and a negative graph. Directed measures are never quietly swapped for undirected ones, and binary measures get a threshold or a density target that is matched across models. The null keeps what the architecture forces, namely layer order, density and the degree of each node.

A result then has to pass two checks, since its statistic must lie outside what the null produces and it must predict held-out behaviour better than a simple count of components would. If either check fails, so does the claim.

Stage

Declared in the GPT-2 small test
Figure 1The contract as five stages. Select one to see what it asks for and what our GPT-2 small test declared there. Blue marks what the contract declares.
Build a contract · illustration

Choose each declaration. The checklist applies the paper's rules to your choices, and it computes nothing about any model.

06Definition

One way to measure how strongly a head drives another

Effective connectivity, the directed influence of one unit on another, is where network neuroscience and patching-based circuit work meet. A patching edge records the effect of a finite intervention. Our proxy records infinitesimal sensitivity instead, and the two measures complement each other.

Definition 1 · Gradient effective-connectivity proxy For upstream components 𝒜 and downstream components ℬ with declared intervention coordinates, let Jba(x) be the block Jacobian from 𝒜 to ℬ. Then
ECab(𝒳)=𝔼x∼𝒳‖Jba(x)‖F2

Writing the proxy down forces two declarations that the contract asks for, signed or unsigned effects and proxy or intervention. A rich club is only meaningful against a degree-preserving null, so its coefficient is reported as a ratio to that null.

Φnorm(k)=Φ(k)Φrand(k)σ=C/CrandL/Lrand

How close does the proxy come to an intervention? We compared it with finite path patching on 20 edges, the 10 strongest by EC and 10 drawn at random from the retained edges. Pairwise probing grows with the product of the two component sets, and vector-Jacobian products can often cut the number of derivative queries.

EC against finite path patching, 20 edges
Figure 3The 10 strongest edges (EC ≈ 4–7 × 10³) and 10 random retained edges (EC ≈ 50–230) have similar finite effects. With a Spearman correlation of 0.38, the proxy ranks edges only weakly as patching does.