internalsGet Pro

Module 04 · Lesson 10 of 11Pro

Jacobians and Hessians: derivatives for whole layers

Level
Advanced
Topic
Calculus and optimization for machine learning
Reading time
17 min

When you finish this page you can

  1. Write the Jacobian of a layer that maps a vector to a vector, and read each entry as one output’s rate per one input.
  2. Explain why backpropagation multiplies a slope vector by each layer’s Jacobian instead of building the Jacobian, and estimate the memory that saves.
  3. Build a small Hessian, read its eigenvalues as curvatures, and take one Newton step by hand.
  4. Measure a model’s largest curvature with Hessian-vector products, without ever storing the Hessian.

Builds on 5 lessons

Start with lesson 214 min
  1. The chain rule: derivatives through layers14 min
  2. Gradients: derivatives with many inputs14 min
  3. Learning rate: step size and stability14 min
  4. Matrix multiplication in practice14 min
  5. Eigenvectors: the natural axes of a matrix16 min

The layer has 64 outputs, not one

is our example online store. Farah, an ML engineer, predicts which customers will stop buying, so Joseph’s growth team can send them a voucher. She works on a notebook sample of 200,000 customers.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan