Mathematics in Deep Learning

Mathematics in Deep Learning

A textbook on the mathematical objects that shape modern deep learning, from tensors and optimization to attention, generative models, vision, audio, and reinforcement learning.

Hardcover mockup of Mathematics in Deep Learning

Public excerpts

Sample Chapters

Sample chapters are released under the CC BY-NC-ND 4.0 license.

Book contents

Table of Contents

Free chapter overview slides are released under the CC BY-NC-ND 4.0 license.

  1. Mathematical Language of Deep Learning
  2. Functions, Decision Boundaries, and Neural Network Geometry
  3. Tensors, Data, Probability, and Empirical Risk
  4. Linear Operators, Images, and Convolution
  5. Optimization, Backpropagation, and Stochastic Gradients
  6. Depth, Residuals, Normalization, and CNN Architecture Math
  7. Transfer Learning, Fine-Tuning, and Representation Reuse
  8. Embedding Spaces and Learned Representations
  9. Sequence Models as Dynamical Systems
  10. Attention, Self-Attention, and Transformer Algebra
  11. Autoregressive Modeling, Entropy, and Decoding
  12. Markov Decision Processes and Reinforcement Learning Foundations
  13. Preference Learning, Policy Optimization, and RLHF/GRPO
  14. Training Theory Revisited: Stability, Calibration, Compression, and Distillation
  15. Vision Tokens and Multimodal Alignment: ViTs, CLIP, and Vision-Language Geometry
  16. Bounding Boxes, Matching, and Detection Metrics
  17. Masks, Per-Location Prediction, and Segmentation Losses
  18. Generative Modeling: VAEs, GANs, Score Matching, and Diffusion
  19. Audio Signals, Alignment, and Speech Recognition Objectives
  20. Speech Generation, Codecs, Vocoders, and Sequence-to-Audio Models
  21. Advanced Mathematical Topics in Modern Architectures
  22. Extended Mathematical Reading in Deep Learning