Eigenvalues, positive definiteness and gradient descent versus Newton's method

HardConcept15 minRERSPro outline

The question

What does it mean for a symmetric matrix to be positive definite, and how can you check it?

For the quadratic f(x) = 0.5 x^T A x - b^T x, explain how the eigenvalues of A control gradient descent, and compare one Newton step with many gradient steps. Why is Newton's method rarely used directly for large neural networks?

What the interviewer is looking for

  • Positive definite: x^T A x > 0 for every non-zero x, equivalently all eigenvalues positive, or a Cholesky factorization exists
  • Gradient descent converges for step size below 2 / lambda_max, with speed set by the condition number lambda_max / lambda_min
  • Newton's step x - A^-1 (A x - b) lands on the minimum of a quadratic in one step
  • Cost argument: the Hessian of an n-parameter model has n^2 entries and inverting it is O(n^3)
  • Mentions practical middle grounds: quasi-Newton, Hessian-vector products, diagonal preconditioners such as Adam

Your answer

Saved in this browser only. Nobody else sees it.

Why this question

Written by BlogLLM in the style of a publicly reported Google DeepMind question type: linear algebra and optimization: eigenvalues, matrix inverses, positive definiteness, gradient descent versus Newton's method.

Reported in: leetml.org

Practice question written by BlogLLM based on publicly reported interview formats. Not an official Google DeepMind question.