mlsanityData to 7 Oct 2026

Neural Circuit Diagrams: Robust Diagrams for the Communication, Implementation, and Analysis of Deep Learning Architectures

arXiv 2402.05424 ↗First posted 8 Feb 2024cs.LGcited by 8

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2020Denoising Diffusion Probabilistic Modelscited by 20,851
  5. 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,604
  6. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
  7. 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
  8. 2016Layer Normalizationcited by 5,579
  9. 2021Improved Denoising Diffusion Probabilistic Modelscited by 3,736
  10. 2016Identity Mappings in Deep Residual Networkscited by 1,960
  11. 2021Transformers in Vision: A Surveycited by 1,009
  12. 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 594
17 more
  1. 2017Understanding the Effective Receptive Field in Deep Convolutional Neural Networkscited by 549
  2. 2015Highway Networkscited by 257
  3. 2023Patch n' Pack: NaViT, a Vision Transformer for any Aspect Ratio and Resolutioncited by 226
  4. 2019A Step Toward Quantifying Independently Reproducible Machine Learning Researchcited by 77
  5. 2022Formal Algorithms for Transformerscited by 70
  6. 2022Leakage and the Reproducibility Crisis in ML-based Sciencecited by 63
  7. 2017Backprop as Functor: A compositional perspective on supervised learningcited by 44
  8. 2021Categorical Foundations of Gradient-Based Learningcited by 44
  9. 2021Category Theory in Machine Learningcited by 36
  10. 2023GELU Activation Function in Deep Learning: A Comprehensive Mathematical Analysis and Performancecited by 16
  11. 2019Reverse derivative categoriescited by 15
  12. 2020Representable Markov Categories and Comparison of Statistical Experiments in Categorical Probabilitycited by 11
  13. 2021Named Tensor Notationcited by 11
  14. 2023Graph Tensor Networks: An Intuitive Framework for Designing Large-Scale Neural Learning Systems on Multiple Domainscited by 10
  15. 2022Markov Categories and Entropycited by 7
  16. 2020Towards an Understanding of Residual Networks Using Neural Tangent Hierarchy (NTH)cited by 4
  17. 2022Categories of Differentiable Polynomial Circuits for Machine Learningcited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 2; 2026: 4.

8 papers.