Elhage, N., Nanda, N., Olsson, C., Henighan, T., Joseph, N., Mann, B., et al. (2021). A mathematical framework for transformer circuits. Transformer Circuits Thread, 22 December 2021. https://transformer-circuits.pub/2021/framework/index.html

Read in full on 2026-10-26 (NOTE-1189). Two accounts were drawn from it: THEORY-988 and THEORY-977.

Why this is here

Registered and read at the owner’s request of 2026-10-26, after an answer to “how’s the record on neural circuit theory?” found that the record held almost none of the core circuits literature. The record’s transformer circuits line rested on this paper without holding it. The induction-head paper (LIT-1538) takes its induction head and its K-composition mechanism from here, and THEORY-973 and the readings of Wang et al.’s refined learning coefficients (THEORY-975, THEORY-967) and of Musat et al. (THEORY-981, THEORY-1009) use its two-layer attention-only setting and its vocabulary of QK and OV circuits. Its observation that the residual stream has no privileged basis is the setting of THEORY-802 and THEORY-018.