M 375T — Mathematical Foundations of Machine Learning — Fall 2026

  • M 375T, Unique Number 59335 — Tuesday & Thursday, 3:30–5:00 PM, PMA 5.122
  • Instructor: Matias G. Delgadino — matias.delgadino@utexas.edu
  • The complete syllabus (grading, office hours, university policies) is on the course Canvas site.

References

  • Calder, J., & Olver, P. J. (2025). Linear Algebra, Data Science, and Machine Learning. Springer. (Primary reference, cited as C&O below)
  • Gordan Zitkovic. Lecture notes for “Introduction to Stochastic Processes”. Zitkovic lecture notes
  • Cover, T. M., & Thomas, J. A. (2006). Elements of Information Theory (2nd ed.). Wiley. (Entropy and relative entropy: Ch. 2; Sanov's theorem via the method of types: §11.1–11.4. Cited as C&T below)
  • MacKay, D. J. C. (2003). Information Theory, Inference, and Learning Algorithms. Cambridge University Press. Free PDF from the author's site
  • Shalev-Shwartz, S., & Ben-David, S. (2014). Understanding Machine Learning: From Theory to Algorithms. Cambridge University Press.
  • Strang, G. (2016). Introduction to Linear Algebra. Wellesley-Cambridge Press.

Course Schedule

Course schedule: dates, lecture topics, lecture notes, quizzes and practice notebooks, and suggested reading
Date Lecture Topic Lecture Notes Quiz / Practice Suggested Reading
Tue, Aug 25 Introduction. Data as samples from a distribution. Python/NumPy basics Notes Practice 1 (Python) Syllabus
Thu, Aug 27 Sampling from distributions: uniform, Gaussian; histograms vs. densities; empirical distribution Notes Quiz 0 (ungraded) · solutions C&O §7.1
Tue, Sep 1 Multivariate Gaussians and mixtures, operationally: sampling, mean, covariance Notes Practice 2 (NumPy + sampling) C&O §7.1
Thu, Sep 3 Matrices that stretch Gaussians; is the best fit a good model? Mixtures of Gaussians by gradient descent Notes Quiz 1 · solutions C&O §7.1
Tue, Sep 8 Maximum likelihood; the two-bin test by hand; sizing the experiment; Sanov's theorem exactly Notes Practice 3 (Gaussian fit + Sanov) C&T §11.1–11.4
Thu, Sep 10 Relative entropy for densities; Gibbs’ inequality and maximum likelihood as D-minimization; generative models: mixtures, pushforwards, GANs, diffusion Notes Quiz 2 · solutions C&T Ch. 2; MacKay Ch. 2
Tue, Sep 15 From samples to graphs: similarity graphs, random walks, the Markov property, and probability distributions on a graph Notes Practice 4 (model testing) C&O §9.1, §9.1.2, §9.6 (pp. 410–412); Zitkovic Ch. 5
Thu, Sep 17 The linear algebra of a random walk: the law moves by matrix multiplication; the lazy walk; invariant measure; eigenvalues and the spectral theorem; the graph Laplacian, connected components, and spectral clustering Notes Quiz 3 · solutions C&O §§5.1–5.3, §9.3, §9.4, §9.6; Zitkovic Ch. 5, 8
Tue, Sep 22 Two clusters: why the sign of one Laplacian eigenvector cuts a graph; cuts, the normalized cut and its relaxation; a weak bridge by hand; three species and the limits of a sign; k-means Notes Practice 5 (graphs and the Markov property) C&O §9.3, §9.4, §9.7
Thu, Sep 24 Reset: from a graph to a vector worth looking at. All the notation on one graph; connected components are not clusters; the spectral theorem, Rayleigh quotient and power method; the identity D−1L = I − P; the power method on the lazy walk and the plateau as the second eigenvector Notes Quiz 4 · solutions C&O §5.3, §9.1, §9.3, §9.6; von Luxburg §§1–3
Tue, Sep 29 Eigenvalues without symmetry: diagonalizable matrices and powers; directed graphs and Jordan blocks; the cut problem, its relaxation, and why the answer is an eigenvector; convergence of the lazy walk and relative entropy Notes Midterm 1 practice C&O §5.1, §9.4; Axler Ch. 8
Thu, Oct 1 Entropy decay along random walks; eigenvalues set the rate; Google's PageRank; review Notes Quiz 5 (optional) · solutions Zitkovic Ch. 8; C&O §9.6.1
Tue, Oct 6 Midterm 1: random walks, linear systems, eigenvector fixed points Midterm 1 · solutions —
Thu, Oct 8 Sampling a given measure: detailed balance, Metropolis, and Langevin dynamics. From the random walk to Brownian motion (the CLT); the lazy walk as the heat equation; Brownian motion with a pull as the forward process of diffusion models; stochastic gradient descent Notes — Zitkovic, Brownian motion chapter; C&O §9.6
Tue, Oct 13 Vectors you can hear and see: sounds, images and data rows as vectors; length as energy, the dot product as the cross term of ‖u + v‖2; the dot product with a sine as a frequency detector; Fourier coordinates, Parseval, compression; the cosine basis of JPEG; projection as the matrix qqT Notes Practice 6 (random walks, detailed balance, vectors) C&O §1.1–1.3, §4.1
Thu, Oct 15 Aligning a basis with the data: cosine similarity and ∑k cos2(x, qk) = 1; random vectors in high dimension are nearly orthogonal, data are not; the closest point in a span by completing the square, gradient and convexity (ck = qk·x, residual ⊥ span, dropped energy); Fourier and Haar bases in 1-D and 2-D; compression of a chord, a photograph and digits Notes Quiz 6 · solutions C&O §4.1–4.4
Tue, Oct 20 Quadratic energies (Dirichlet energy, variance in a direction) and the directions with no cross terms: eigenvectors; the spectral theorem on a 2×2 by hand and stated in general Notes Practice 7 (Haar, Fourier, cosine similarity) C&O §5.2–5.3
Thu, Oct 22 Diagonalizing the energy: xTSx = ∑k λkck2 in the eigenbasis; the maximum-likelihood Gaussian has covariance S = XTX/n and its major axis is the top eigenvector; PCA keeps the k longest axes (error = dropped eigenvalues); eigen-digits, the 3s vs. the 8s; outlook: the SVD X = ∑k σkukqkT Notes Quiz 7 · solutions C&O §8.1–8.2
Tue, Oct 27 The singular value decomposition: what a matrix does to a circle, the Gram matrix ATA, A = UΣVT = ∑k σkukvkT (rotate, stretch, rotate), the best rank-k approximation (Eckart–Young), the data matrix and PCA Notes Practice 8 (eigenvectors, PCA, SVD; released Mon Oct 26) C&O Ch. 5
Thu, Oct 29 PCA in practice: finding the directions by the power method and how fast it converges; eigen-digits and compression; two PCA coordinates as a map of the data; a classifier in k coordinates; whitening; choosing k; failure modes Notes Quiz 8 · solutions C&O §8.1–8.2
Tue, Nov 3 From linear to nonlinear features: what a feature is; where linear features fail (a note of unknown phase, the two crescents); polynomial interpolation and overfitting, train versus test error; gradient descent on a parabola and as the way to train a feature; one trained direction versus the first PCA direction on the digits Notes Practice 9 (power method, PCA, nonlinear features) C&O §4.4–4.6, §5.1
Thu, Nov 5 Training features by gradient descent: features as the nouns of a model; objectives with a formula (normal equations, PCA) and without (a trained feature); the stability condition h < 2/λmax, sharpness and the edge of stability; stochastic gradient descent as a noisy, cheaper gradient Notes Quiz 9 C&O §5.1–5.2
Tue, Nov 10 Stability and convergence of gradient descent: the bowl and the condition h < 2/λmax; the descent lemma (the energy decreases and the gradient goes to zero); sharpness of a minimum; gradient descent can only settle at minima with sharpness at most 2/h, so the step size chooses the minimum; the edge of stability in a small network Notes Midterm 2 practice · solutions C&O §5.1–5.2
Thu, Nov 12 Recall of supervised learning and stochastic gradient descent; anisotropy of the loss; perceptrons and one-hidden-layer networks; Cybenko’s universal approximation theorem; convolutional and transformer architectures; energy landscapes, minima, and sharpness Notes Quiz 10 (optional) C&O §7.2–7.3
Tue, Nov 17 Architectures that work: an architecture as a constraint on the weights; convolution (shared weights, local filters) against a dense layer; residual networks x + f(x) and why the skip connection keeps deep networks trainable; architecture drawings — C&O §7.5
Thu, Nov 19 Midterm 2: PageRank, Brownian motion and sampling (detailed balance, Metropolis), vectors and orthonormal bases (Fourier, Haar), projection and least squares, quadratic energies and eigenvectors, PCA, the SVD, the power method, nonlinear features and overfitting, gradient descent and stochastic gradient descent — —
Nov 24 & 26 Fall break / Thanksgiving — no classes — —
Tue, Dec 1 Latent spaces and the language of tokens: the last hidden layer as learned features; PCA of the latent space; the autoencoder as nonlinear PCA; tokenization (byte-pair encoding); embeddings as vectors and cosine similarity; next-token cross-entropy as the loss Final practice —
Thu, Dec 3 Transformers: attention as a data-dependent weighted average of tokens (a row-stochastic matrix); the transformer block (attention, a small network, skip connections); sampling with a temperature; then review for the final: one idea (energy picks the coordinates), one theorem (spectral theorem), one algorithm (descent) — —
Sat, Dec 12 Final Exam, 1:00–3:00 PM, PMA 5.122: cumulative; emphasis on projections, eigenvectors and PCA, gradient descent, features and loss functions, neural networks and their architectures — —