Techniques for tracing what happens inside a model — logging activations and patching them — to see how and where it forms an output.
Mechanistic interpretability is the practice of looking inside a model to understand how it reaches an output, rather than just observing what it produces. It treats the network's internal activations as something you can record, probe and even intervene on.
Two core techniques sit at its heart. Activation logging records the internal states — attention patterns, layer outputs, residual-stream values — during a forward pass, so you can see where in the network a fact or entity (say a brand name) first appears; a "logit lens" projects a mid-layer state onto the vocabulary to watch a token become probable. Activation patching goes further, swapping activations between runs to establish causation, not just correlation.
For AI visibility this is powerful: if you can see at which layer a model "decides" to associate a term with your brand, you can reason about how to strengthen it. It connects the attention mechanism to observable behaviour and underpins tools like our Tree Walker.