18.S995: Topics in Deep Learning Theory

Fall 2026 · MIT

Room change: Class will now meet in 4-163.

Instructor
Alex Damian
TAs
TBD
Meetings
Tu/Th 1:00pm - 2:30pm, 4-163

Course Description

This is a graduate course on the mathematical foundations of deep learning. Our goal is to develop theory that predicts what a neural network will do in an experiment we have not yet run. Topics include:

Learning Goals

By the end of the course, students should be able to:

Prerequisites

The course assumes mathematical maturity and a working knowledge of linear algebra, analysis, and probability, including eigenvalues, matrix calculus, Gaussian random variables, concentration, and convergence arguments. Students should also be familiar with neural networks, backpropagation, and gradient descent, and comfortable training networks in JAX or PyTorch. Completion of the diagnostic Homework 0 is required to take this course.

Homework 0

Linear Algebra

Let H∈Rd×dH \in \mathbb{R}^{d \times d} be symmetric and positive definite, let w∈Rdw \in \mathbb{R}^d, and define L(w)=12w⊤HwL(w) = \tfrac{1}{2} w^\top H w.

  1. Compute the gradient ∇L(w)\nabla L(w).
  2. Let ww follow gradient descent: wt+1=wt−η∇L(wt)w_{t+1} = w_t - \eta \nabla L(w_t). Solve for wtw_t in closed form as a function of tt.
  3. For what η\eta does wt→0w_t \to 0 as t→∞t \to \infty? What changes if HH is only positive semidefinite?

Analysis

Let f:Rd→Rf:\mathbb{R}^d\to\mathbb{R} be differentiable and suppose that ∇f\nabla f is LL-Lipschitz with respect to a norm ∥⋅∥\|\cdot\|. Let r0,r1,…∈Rdr_0,r_1,\ldots\in\mathbb{R}^d satisfy ∥rt∥≤ε\lVert r_t\rVert\leq\varepsilon, and let η>0\eta > 0. Starting from x0=y0x_0=y_0, define xt+1=xt−η∇f(xt),yt+1=yt−η(∇f(yt)+rt).x_{t+1}=x_t-\eta\nabla f(x_t),\qquad y_{t+1}=y_t-\eta\qty{\nabla f(y_t)+r_t}.

  1. Show that ∥xt+1−yt+1∥≤(1+ηL)∥xt−yt∥+ηε\lVert x_{t+1}-y_{t+1}\rVert\leq\qty{1+\eta L}\lVert x_t-y_t\rVert+\eta\varepsilon.
  2. Using 1+x≤ex1+x\leq e^x, show that ∥xt−yt∥≤εL(eηLt−1)\lVert x_t-y_t\rVert\leq\tfrac{\varepsilon}{L}\qty{e^{\eta Lt}-1}.

Probability

A mean-zero random variable XX is σ\sigma-sub-Gaussian if, for every λ∈R\lambda \in \mathbb{R}, E[exp⁡(λX)]≤exp⁡(λ2σ22).\mathbb{E}\left[\exp\qty{\lambda X}\right] \leq \exp\qty{\frac{\lambda^2\sigma^2}{2}}.

  1. Let X∼N(0,σ2)X \sim \mathcal{N}(0,\sigma^2). Show that XX is σ\sigma-sub-Gaussian.
  2. Let X1,…,XnX_1, \ldots, X_n be independent mean-zero random variables such that XiX_i is σi\sigma_i-sub-Gaussian. Show that ∑i=1nXi\sum_{i=1}^n X_i is ∑i=1nσi2\sqrt{\sum_{i=1}^n \sigma_i^2}-sub-Gaussian.
  3. Let XX be σ\sigma-sub-Gaussian. Use Markov's inequality on exp⁡(λX)\exp\qty{\lambda X} and optimize over λ\lambda to show that, for every t≥0t \geq 0, P(X≥t)≤exp⁡(−t22σ2).\mathbb{P}\qty{X \geq t} \leq \exp\qty{-\frac{t^2}{2\sigma^2}}.
  4. Let W∈Rm×dW \in \mathbb{R}^{m \times d} have i.i.d. N(0,1)\mathcal{N}(0,1) entries. Using Lemma 1 and a union bound, prove that, for some absolute constant CC and any δ∈(0,1]\delta \in (0,1], with probability at least 1−δ1-\delta, ∥W∥op≤C(m+d+2log⁡(1/δ)).\lVert W \rVert_{\mathrm{op}} \leq C\qty{\sqrt{m}+\sqrt{d}+\sqrt{2\log\qty{1/\delta}}}. Hint: Note that for fixed u^,v^\hat u, \hat v, u^⊤Wv^∼N(0,1)\hat u^\top W\hat v \sim \mathcal{N}(0,1), and is therefore sub-Gaussian, so you can apply part 3.
    Note: This bound actually holds with C=1C=1, but proving this requires more advanced techniques.

    Lemma 1. Let Nm⊂Sm−1\mathcal{N}_m \subset \mathbb{S}^{m-1} and Nd⊂Sd−1\mathcal{N}_d \subset \mathbb{S}^{d-1} be 1/41/4-nets with ∣Nm∣≤9m|\mathcal{N}_m| \leq 9^m and ∣Nd∣≤9d|\mathcal{N}_d| \leq 9^d. Then ∥W∥op≤2max⁡(u^,v^)∈Nm×Ndu^⊤Wv^.\lVert W \rVert_{\mathrm{op}} \leq 2\max_{(\hat u,\hat v) \in \mathcal{N}_m \times \mathcal{N}_d}\hat u^\top W\hat v.

    Proof. Let u,vu,v be the top left and right singular vectors of WW, so that u⊤Wv=∥W∥opu^\top Wv = \lVert W\rVert_{\mathrm{op}}, and pick u^∈Nm\hat u \in \mathcal{N}_m and v^∈Nd\hat v \in \mathcal{N}_d with ∥u−u^∥≤1/4\lVert u - \hat u\rVert \leq 1/4 and ∥v−v^∥≤1/4\lVert v - \hat v\rVert \leq 1/4. Then ∥W∥op=u⊤Wv=u^⊤Wv^+(u−u^)⊤Wv+u^⊤W(v−v^)≤u^⊤Wv^+12∥W∥op,\lVert W\rVert_{\mathrm{op}} = u^\top Wv = \hat u^\top W\hat v + \qty{u-\hat u}^\top Wv + \hat u^\top W\qty{v-\hat v} \leq \hat u^\top W\hat v + \tfrac{1}{2}\lVert W\rVert_{\mathrm{op}}, and rearranging completes the proof.

Neural Networks

Let x∈Rdx \in \mathbb{R}^d with ∥x∥2=d\lVert x \rVert^2 = d. Let W∈Rm×dW \in \mathbb{R}^{m \times d}, b∈Rmb \in \mathbb{R}^m, A∈Rk×mA \in \mathbb{R}^{k \times m}, and let σ(z)=max⁡(0,z)\sigma(z) = \max\qty{0,z} be the ReLU activation, applied coordinatewise. Define the logits fθ(x)=Aσ(Wx+b)∈Rk,θ=(W,b,A).f_\theta(x) = A\sigma\qty{Wx+b} \in \mathbb{R}^k, \qquad \theta = \qty{W,b,A}.

  1. Suppose WW has i.i.d. N(0,1/d)\mathcal{N}(0,1/d) entries, AA has i.i.d. N(0,1/m)\mathcal{N}(0,1/m) entries, and b=0b=0.
    1. Show that each coordinate of WxWx is N(0,1)\mathcal{N}(0,1), and that Ez∼N(0,1)[σ(z)2]=1/2\mathbb{E}_{z \sim \mathcal{N}(0,1)}\left[\sigma(z)^2\right] = 1/2.
    2. Compute Cov⁡[fθ(x)]∈Rk×k\operatorname{Cov}\left[f_\theta(x)\right] \in \mathbb{R}^{k \times k}.
    3. What is the limiting distribution of fθ(x)f_\theta(x) as m→∞m \to \infty? Hint: CLT.
  2. For a label y∈{1,…,k}y \in \{1, \ldots, k\}, let L=−log⁡S(fθ(x))yL = -\log \mathcal{S}\qty{f_\theta(x)}_y, where S\mathcal{S} is the softmax function. Using the chain rule / backpropagation, compute ∇AL\nabla_A L, ∇WL\nabla_W L, and ∇bL\nabla_b L. What are the ranks of ∇AL\nabla_A L and ∇WL\nabla_W L?
    Hint: the gradient of f↦−log⁡S(f)yf \mapsto -\log \mathcal{S}\qty{f}_y is S(f)−ey\mathcal{S}\qty{f} - e_y, where eye_y is the one-hot vector for yy.
  3. Complete the following notebook, which involves checking your answer to part 1 and using the gradients you computed in part 2 to train the model on MNIST using gradient descent. Use only NumPy, and do not add imports beyond those provided (e.g. no JAX/PyTorch).

Assessment

There will be 3 problem sets combining theory and experiments, graded on completion. Each problem set is followed by a short in-class quiz covering the same material. The course ends with a final project. Grades are 20% problem sets, 20% quizzes, and 60% final project. Final project details will be announced during the first few weeks of the semester. There is no final exam.

AI Policy

This is a graduate topics course, and you are responsible for your own learning. AI tools are allowed on homework and the final project, with the exception of Homework 0. You are responsible for everything you submit. The homework exists to help you engage with the material. You will learn far more by working through it yourself than by handing it to a model.

Lecture notes

DateTopicNotes
Introduction & Expressivity
Scaling Limits
Standard Parameterization
Neural Tangent Kernel