Chapter 3 Quiz

Chapter 3, Numerical Optimization for Learning

Learning objectives

  • Test your understanding of Chapter 3: the gradient descent step, the learning rate and the curvature, and stochastic and mini-batch descent with seeded orders

This quiz covers Chapter 3: gradient descent on the line from density to porosity in Ogbon-1's sandstone, its learning rate and the loss's curvature (Section 3.1), and the same fit taken one sample and one mini-batch at a time (Section 3.2). Its numbers are the book's kernel's on the book's own synthetic learning set.

Key Concepts Review

  • The step: 𝜽←𝜽−η ∇J(𝜽)\boldsymbol\theta \leftarrow \boldsymbol\theta - \eta\,\nabla J(\boldsymbol\theta); for the mean squared error the gradient is 2nA⊤(A𝜽−𝐲)\tfrac{2}{n}A^{\top}(A\boldsymbol\theta - \mathbf y).
  • The curvature: the Hessian H=2nA⊤AH = \tfrac{2}{n}A^{\top}A; along an eigenvector a step keeps 1−ηλ1 - \eta\lambda of the error.
  • The limit: the descent converges only for 0<η<2/λmax⁡0 < \eta < 2/\lambda_{\max}: below half the limit it creeps in, between half and the limit it swings across, past it it diverges.
  • A flat direction: along λmin⁡\lambda_{\min} each step keeps 1−2r λmin⁡/λmax⁡1 - 2r\,\lambda_{\min}/\lambda_{\max}; standardizing makes the curvatures equal. On Ogbon-1's sandstone in g/cc they differ 9055-fold.
  • Mini-batches: a batch's gradient is the full gradient plus noise, the full gradient on average; small batches take many steps an epoch and wander about the answer at a constant rate.
  • The seed: each epoch's order from a seeded shuffle, so a run replays to the last digit.

This page is prerendered for SEO and accessibility. The interactive widgets above hydrate on JavaScript load.