An introduction to graphical tensor notation for mechanistic interpretability
Not on the map. Why?
Abstract (arXiv)
Graphical tensor notation is a simple way of denoting linear operations on tensors, originating from physics. Modern deep learning consists almost entirely of operations on or between tensors, so easily understanding tensor operations is quite important for understanding these systems. This is especially true when attempting to reverse-engineer the algorithms learned by a neural network in order to understand its behavior: a field known as mechanistic interpretability. It's often easy to get confused about which operations are happening between tensors and lose sight of the overall structure, but graphical tensor notation makes it easier to parse things at a glance and see interesting equivalences. The first half of this document introduces the notation and applies it to some decompositions (SVD, CP, Tucker, and tensor network decompositions), while the second half applies it to some existing some foundational approaches for mechanistically understanding language models, loosely following ``A Mathematical Framework for Transformer Circuits'', then constructing an example ``induction head'' circuit in graphical tensor notation.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 5 of its 39 references that are in the map. First posted on arXiv 2 Feb 2024.
Builds on
5 of 39 references.
References · 5
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
- 2022In-context Learning and Induction Headscited by 930
- 2023Towards Automated Circuit Discovery for Mechanistic Interpretabilitycited by 700
- 2023Graph Tensor Networks: An Intuitive Framework for Designing Large-Scale Neural Learning Systems on Multiple Domainscited by 10
Built on by
Citing papers per year: 2024: 4; 2025: 1; 2026: 2.
7 papers.
- 2024On the Anatomy of Attentioncited by 3
- 2024Towards a Categorical Foundation of Deep Learning: A Surveycited by 2
- 2024Broadcast Product: Redefining Shape-aligned Element-wise Multiplication and Beyondcited by 1
- 2025Optimal Invariant Bases for Atomistic Machine Learningcited by 1
- 2024Very Basics of Tensors with Graphical Notations: Unfolding, Calculations, and Decompositionscited by 0
- 2026Graphical einops: bridging tensor networks and computation graphscited by 0
- 2026Graphical Design of Interpretable Architecturescited by 0
- 2026Graphical Design of Interpretable Architectures19 Aug 2026
- 2026Graphical einops: bridging tensor networks and computation graphs29 May 2026
- 2025Optimal Invariant Bases for Atomistic Machine Learning30 Mar 2025
- 2024Very Basics of Tensors with Graphical Notations: Unfolding, Calculations, and Decompositions25 Nov 2024
- 2024Towards a Categorical Foundation of Deep Learning: A Survey7 Oct 2024
- 2024Broadcast Product: Redefining Shape-aligned Element-wise Multiplication and Beyond26 Sep 2024
- 2024On the Anatomy of Attention2 Jul 2024