The Long Mathematical Path to Transformers
Transformers sit at the junction of several older subjects, not a single trick.
The probability side includes conditional probability, maximum likelihood, cross-entropy, entropy, Bayes-style reasoning, sampling, and distributions over token sequences.
The optimization side includes gradient descent, momentum, Adam and AdamW, initialization, normalization, minibatches, regularization, learning-rate schedules, and stability over many updates.
The sequence-modeling side includes autoregression, embeddings, attention, causal masking, KV cache, position encodings, recurrent-model history, and the problem of preserving context while generating one token at a time.
The systems side includes tensor contraction, matrix multiplication, fused operations, memory bandwidth, quantization, low-precision weights, and the hardware path that decides whether a model can run at useful speed.
That is the point of the long list in the original post: transformers are not isolated from applied mathematics, numerical methods, or machine architecture. They are where those subjects meet.