# Activation patching

Activation patching copies an internal activation from one run of a model into another and watches whether the output follows. Where the copy flips the answer is where that fact is decided.

Canonical: https://parameterspaceinspector.com/glossary/activation-patching/  
Updated: 2026-10-16  
Part of the Parameter Space Inspector (free, open-source desktop app) · section: https://parameterspaceinspector.com/glossary/ · Site guide for AI: https://parameterspaceinspector.com/llms.txt

**Activation patching** is an experiment on the inside of a model. Run two prompts that differ in one fact, such as "The Eiffel Tower is located in the city of" and the same sentence about the Colosseum. Copy one internal activation, at one layer and one token position, from the first run into the second, and see whether the answer becomes "Paris". Where the copy flips the answer, that layer and position carry the fact.

The [Anatomy](/instruments/anatomy/) view does this with two sentences and a click, over every layer and position, and draws the map. Libraries such as TransformerLens and pyvene do the same in code. Patching shows presence; the [logit lens](/glossary/logit-lens/) shows readability, and the distance between them is the [emergence gap](/glossary/emergence-gap/).

---

From [The Emergence Machine](https://emergencemachine.com/). Newsletter: [subscribe on Substack](https://theemergencemachine.substack.com/subscribe). Use-case feed: https://parameterspaceinspector.com/feed.xml. Follow: [Substack](https://theemergencemachine.substack.com) · [YouTube](https://www.youtube.com/@emergencemachine) · [X](https://x.com/emergences4me) · [Bluesky](https://bsky.app/profile/emergencemachine.bsky.social) · [Reddit](https://www.reddit.com/r/emergencemachine/) · [Instagram](https://www.instagram.com/emergencemachine/) · [TikTok](https://www.tiktok.com/@emergencemachine) · [Kaggle](https://www.kaggle.com/emergencemachine/datasets).
