Module 8 · Looking inside: what the weights actually hold

Patching: finding which parts do the work

In this lesson

  • 9 min read
  • 8 reading sections
  • Knowledge check
  • Lesson 4 of 10 in this chapter

This chapter’s goalExplain how a probe, a sparse autoencoder, an activation patch and a steering vector each extract evidence about what a model represents, state what each finding does and does not prove, run a steering experiment on an open model, and say where the questions of memorisation, unlearning and faithful reasoning currently stand.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available
Activation patching, one cell at a timeBuild a pairdiffering inone thingClean: theEiffel Tower isin the city of:Paris.Corrupted: theColosseum: Rome.Run the cleanprompt, storeeveryactivationOne cache,reused for thewhole gridRun thecorruptedprompt with onevalueoverwrittenOne layer, onetoken position,the stored cleanactivation inits placeMeasure how farthe outputmoves backRead the Parislogit: a brightcell means theinformation waspresent andsufficientRepeat forevery layer andpositionThe grid is themap. Patch theother way totest necessityas well assufficiency.This is the only method in the module that yields a causal claim, which is why probes and dictionariesare checked against it. Two cautions it never loses: a corrupted prompt differing in several wayslights the grid up for all of them, and a removed component is often quietly covered for by another onthe same forward pass.
This is the only method in the module that yields a causal claim, which is why probes and dictionaries are checked against it. Two cautions it never loses: a corrupted prompt differing in several ways lights the grid up for all of them, and a removed component is often quietly covered for by another on the same forward pass.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 9Free · no account needed
Lesson steps

The question the first three lessons cannot answer

A probe says a property is readable. A dictionary says a direction exists and what it fires on. Neither says whether the model uses it to produce the output in front of you, or where. For that you need to intervene, and the standard intervention is called activation patching.

The method

Choose two prompts that differ in one thing and produce different answers. Clean: “The Eiffel Tower is in the city of”: answer Paris. Corrupted: “The Colosseum is in the city of”: answer Rome.

Run both, and store every activation from the clean run. Now run the corrupted prompt again, but at one layer and one token position, overwrite the activation with the stored clean one. Measure how far the output moves back toward Paris.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the AI, Actually Explained exam.

Stuck on something?Ask Anjali, your AI tutor

How to cite: Addaly (2026) ‘Patching: finding which parts do the work’, in How a Language Model Actually Works. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/how-llms-work/activation-patching-and-circuits (Accessed: 29 November 2026).