Why is Newton's method computationally prohibitive for large neural networks?

Quick Overview

Asks why Newton's method is impractical for training large neural networks. Tests whether you can size the Hessian's memory and solve cost, explain the problems with nonconvex and noisy objectives, and name the cheaper curvature methods used in practice.

Why is Newton's method computationally prohibitive for large neural networks?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Why is Newton's method computationally prohibitive for large neural networks? ```hint Count the entries Write down the size of the Hessian for a network with a billion parameters, then the cost of solving a linear system with it. ``` ```hint Beyond cost Suppose you could afford the computation. What does a Newton step do when the Hessian has negative or near-zero eigenvalues? ``` ### What a Strong Answer Covers - The memory needed to store the full Hessian, with a concrete figure for a large model. - The cost of forming the Hessian and solving the Newton system, compared with one gradient step. - Problems that remain even when cost is ignored: indefinite Hessians in nonconvex losses, noisy mini-batch curvature, near-zero eigenvalues. - Practical methods that use curvature information cheaply, and what each one approximates. ### Follow-up Questions - How can a Hessian-vector product be computed for about the cost of a gradient? - Why does Hessian-free optimization often use the Gauss-Newton matrix instead of the Hessian? - How does L-BFGS build its curvature estimate, and why does it struggle with mini-batch noise?

Overview: Asks why Newton's method is impractical for training large neural networks. Tests whether you can size the Hessian's memory and solve cost, explain the problems with nonconvex and noisy objectives, and name the cheaper curvature methods used in practice.

General logo
General
Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

Why is Newton's method computationally prohibitive for large neural networks?

What a Strong Answer Covers Guidance

  • The memory needed to store the full Hessian, with a concrete figure for a large model.
  • The cost of forming the Hessian and solving the Newton system, compared with one gradient step.
  • Problems that remain even when cost is ignored: indefinite Hessians in nonconvex losses, noisy mini-batch curvature, near-zero eigenvalues.
  • Practical methods that use curvature information cheaply, and what each one approximates.

Follow-up Questions Guidance

  • How can a Hessian-vector product be computed for about the cost of a gradient?
  • Why does Hessian-free optimization often use the Gauss-Newton matrix instead of the Hessian?
  • How does L-BFGS build its curvature estimate, and why does it struggle with mini-batch noise?