The complete mathematics curriculum for modern AI

From linear algebra to large language models — rigorous derivations, formal proofs, and deep intuition.

Curriculum

12 volumes covering the full mathematical stack of modern AI.

Vol 111 chapters

Mathematics for AI

Linear algebra, calculus, probability, statistics, and optimization — the mathematical language of machine learning.

Explore
Vol 216 chapters

Machine Learning

Supervised and Bayesian learning, generalization theory, and classical statistical inference.

Explore
Vol 318 chapters

Deep Learning

Neural networks, training dynamics, attention mechanisms, and generative modeling theory.

Explore
Vol 416 chapters

Transformers & Attention

The complete theory of attention mechanisms, transformer architectures, optimization techniques, and KV-cache systems.

Explore
Vol 511 chapters

Diffusion Models

Forward and reverse diffusion processes, score matching, and conditional generation.

Explore
Vol 613 chapters

Large Language Models

Tokenization, pretraining, alignment, fine-tuning, inference, and retrieval-augmented generation.

Explore
Vol 79 chapters

Systems & Optimization

Memory-efficient attention, quantization, distributed training, and inference optimization.

Explore
Vol 813 chapters

Flow Models

Normalizing flows, continuous normalizing flows, flow matching, rectified flows, and optimal transport for generative modeling.

Explore
Vol 912 chapters

Quantization

Reducing model precision for efficient inference: INT8, INT4, GPTQ, AWQ, SmoothQuant, and quantization-aware training.

Explore
Vol 1012 chapters

Model Distillation

Knowledge transfer from large to small models: teacher-student frameworks, logit distillation, feature matching, and self-distillation.

Explore
Vol 1113 chapters

Model Training Methods

Pre-training, fine-tuning, RLHF, DPO, curriculum learning, continual learning, and multi-task training strategies.

Explore
Vol 1212 chapters

Model Optimization

Pruning, sparsity, neural architecture search, efficient architectures, and compute-optimal model design.

Explore

Why this textbook?

Built for engineers and researchers who want real mathematical understanding.

Full Derivations

Every proof step-by-step. No "it can be shown" shortcuts.

Clear Structure

Objectives, intuition, formalism, pitfalls, and exercises.

Theory First

Pure mathematics — understand the why, not just the how.

Research Grade

Original papers cited. Connections to frontier research.

Ready to build deep intuition?

Start from linear algebra or jump to any topic you need.