mlsanityData to 7 Oct 2026

Deep learning for pedestrians: backpropagation in Transformers

arXiv 2512.23329 ↗First posted 29 Dec 2025cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

This document is a follow-up to our previous paper dedicated to a vectorized derivation of backpropagation in CNNs. Following the same principles and notations already put in place there, we now focus on transformer-based next-token-prediction architectures. To this end, we apply our lightweight index-free methodology to new types of layers such as embedding, multi-headed self-attention and layer normalization. In addition, we also provide gradient expressions for LoRA layers to illustrate parameter-efficient fine-tuning. Why bother doing manual backpropagation when there are so many tools that do this automatically? Any gap in understanding of how values propagate forward will become evident when attempting to differentiate the loss function. By working through the backward pass manually, we gain a deeper intuition for how each operation influences the final output. A complete PyTorch implementation of a minimalistic GPT-like network is also provided along with analytical expressions for of all of its gradient updates.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 13 of its 22 references that are in the map. First posted on arXiv 29 Dec 2025.

Builds on

13 of 22 references.

References · 13

  1. 2017Attention Is All You Needcited by 59,932
  2. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  3. 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
  4. 2016Layer Normalizationcited by 5,579
  5. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  6. 2020Rethinking Attention with Performerscited by 1,584
  7. 2017Deep Setscited by 1,394
  8. 2019Are Sixteen Heads Really Better than One?cited by 803
  9. 2019Transformer Dissection: A Unified Understanding of Transformer's Attention via the Lens of Kernelcited by 211
  10. 2022Transformer Language Models without Positional Encodings Still Learn Positional Informationcited by 148
  11. 2022On The Computational Complexity of Self-Attentioncited by 137
  12. 2025From Principles to Applications: A Comprehensive Survey of Discrete Tokenizers in Generation, Comprehension, Recommendation, and Information Retrievalcited by 11
1 more
  1. 2018Deep learning for pedestrians: backpropagation in CNNscited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.