Neural Circuit Diagrams: Robust Diagrams for the Communication, Implementation, and Analysis of Deep Learning Architectures
Not on the map. Why?
Abstract (arXiv)
Diagrams matter. Unfortunately, the deep learning community has no standard method for diagramming architectures. The current combination of linear algebra notation and ad-hoc diagrams fails to offer the necessary precision to understand architectures in all their detail. However, this detail is critical for faithful implementation, mathematical analysis, further innovation, and ethical assurances. I present neural circuit diagrams, a graphical language tailored to the needs of communicating deep learning architectures. Neural circuit diagrams naturally keep track of the changing arrangement of data, precisely show how operations are broadcast over axes, and display the critical parallel behavior of linear operations. A lingering issue with existing diagramming methods is the inability to simultaneously express the detail of axes and the free arrangement of data, which neural circuit diagrams solve. Their compositional structure is analogous to code, creating a close correspondence between diagrams and implementation. In this work, I introduce neural circuit diagrams for an audience of machine learning researchers. After introducing neural circuit diagrams, I cover a host of architectures to show their utility and breed familiarity. This includes the transformer architecture, convolution (and its difficult-to-explain extensions), residual networks, the U-Net, and the vision transformer. I include a Jupyter notebook that provides evidence for the close correspondence between diagrams and code. Finally, I examine backpropagation using neural circuit diagrams. I show their utility in providing mathematical insight and analyzing algorithms' time and space complexities.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 29 of its 50 references that are in the map. First posted on arXiv 8 Feb 2024.
Builds on
29 of 50 references.
References · 29
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2020Denoising Diffusion Probabilistic Modelscited by 20,851
- 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,604
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
- 2016Layer Normalizationcited by 5,579
- 2021Improved Denoising Diffusion Probabilistic Modelscited by 3,736
- 2016Identity Mappings in Deep Residual Networkscited by 1,960
- 2021Transformers in Vision: A Surveycited by 1,009
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 594
17 more
- 2017Understanding the Effective Receptive Field in Deep Convolutional Neural Networkscited by 549
- 2015Highway Networkscited by 257
- 2023Patch n' Pack: NaViT, a Vision Transformer for any Aspect Ratio and Resolutioncited by 226
- 2019A Step Toward Quantifying Independently Reproducible Machine Learning Researchcited by 77
- 2022Formal Algorithms for Transformerscited by 70
- 2022Leakage and the Reproducibility Crisis in ML-based Sciencecited by 63
- 2017Backprop as Functor: A compositional perspective on supervised learningcited by 44
- 2021Categorical Foundations of Gradient-Based Learningcited by 44
- 2021Category Theory in Machine Learningcited by 36
- 2023GELU Activation Function in Deep Learning: A Comprehensive Mathematical Analysis and Performancecited by 16
- 2019Reverse derivative categoriescited by 15
- 2020Representable Markov Categories and Comparison of Statistical Experiments in Categorical Probabilitycited by 11
- 2021Named Tensor Notationcited by 11
- 2023Graph Tensor Networks: An Intuitive Framework for Designing Large-Scale Neural Learning Systems on Multiple Domainscited by 10
- 2022Markov Categories and Entropycited by 7
- 2020Towards an Understanding of Residual Networks Using Neural Tangent Hierarchy (NTH)cited by 4
- 2022Categories of Differentiable Polynomial Circuits for Machine Learningcited by 4
Built on by
Citing papers per year: 2024: 2; 2025: 2; 2026: 4.
8 papers.
- 2024On the Anatomy of Attentioncited by 3
- 2025SAM-DA: Decoder Adapter for Efficient Medical Domain Adaptationcited by 3
- 2024Towards a Categorical Foundation of Deep Learning: A Surveycited by 2
- 2025Accelerating Machine Learning Systems via Category Theory: Applications to Spherical Attention for Gene Regulatory Networkscited by 1
- 2026Weaves, Wires, and Morphisms: Formalizing and Implementing the Algebra of Deep Learningcited by 0
- 2026Graphical einops: bridging tensor networks and computation graphscited by 0
- 2026Biological Motifs for Agentic Controlcited by 0
- 2026Graphical Design of Interpretable Architecturescited by 0
- 2026Graphical Design of Interpretable Architectures19 Aug 2026
- 2026Biological Motifs for Agentic Control5 Jul 2026
- 2026Graphical einops: bridging tensor networks and computation graphs29 May 2026
- 2026Weaves, Wires, and Morphisms: Formalizing and Implementing the Algebra of Deep Learning8 Apr 2026
- 2025Accelerating Machine Learning Systems via Category Theory: Applications to Spherical Attention for Gene Regulatory Networks14 May 2025
- 2025SAM-DA: Decoder Adapter for Efficient Medical Domain Adaptation12 Jan 2025
- 2024Towards a Categorical Foundation of Deep Learning: A Survey7 Oct 2024
- 2024On the Anatomy of Attention2 Jul 2024