A Mathematical Framework for Transformer Circuits (2021)
Bluestein
93 points
17 comments
September 12, 2026
Related Discussions
Found 5 related stories in 63.5ms across 6,361 title embeddings via pgvector HNSW
- Transformer Transformer: A Unified Model for Motion-Conditioned Robot Co-Design ilreb · 24 pts · July 29, 2026 · 64% similar
- Recurrent Looped Transformer MayCXC · 14 pts · September 13, 2026 · 54% similar
- On Next-Gen Transformer: Loops Are Not What You Need matt_d · 22 pts · September 10, 2026 · 51% similar
- I trained a small transformer in 1.5hrs and it beats many LLMs porridgeraisin · 601 pts · September 01, 2026 · 48% similar
- GPT-6 Astra, looped transformers, and hidden reasoning ModelForge · 387 pts · September 09, 2026 · 47% similar
Discussion Highlights (5 comments)
myself248
Nothing about B-H curves or magnetization current, must be that other kind of transformer, in that other kind of circuit.
amelius
> A previous project, the Distill Circuits thread, has attempted to reverse engineer vision models, but so far there hasn’t been a comparable project for transformers or language models. How successful was that?
oofbey
I’ve tried reading this many times. But it’s sooooo long. Is it worth it?
_jayhack_
Shocking to me how little interest the general public has in mechinterp given the alien capabilities demonstrated by LLMs - this and the subsequent transformer-circuits.pub publications will be seen as classic, foundational work in a few years
libraryofbabel
This is one of those papers that ought to have several textbook chapters unpacking some of the insights... I'll just pick a couple things I love: 1) There's a kind of "rabbit–duck illusion" moment where they show how you can reframe all the linear algebra around attention in a totally different way, demoting the Q, K, and V matrices in favor of emphasizing a set of much larger matrices that are mathematically equivalent and very useful for interpretability purposes. (So, don't trust anyone who insists that vague analogies about "keys" and "queries" are the only good way to understand attention! They probably haven't read this paper.) 2) They show the importance of the "residual stream" inside LLMs: it's not just a series of bypasses of layers that's useful for training stability (like I first had it explained to me) but a kind of main communication bus that runs unbroken through the whole model from embedding to output. Attention heads and Feedforward are off to the side, adding embeddings into the stream. Somehow I find this a much more satisfying way to understand LLM architectures, and whenever I see an architecture diagram now I mentally redraw it with the residual stream at the center.