Simple Algorithm
Machine Learning · Convergence · 28 min

Newton & Quasi-Newton Methods

Curvature, quadratic convergence, BFGS and L-BFGS.

Close to a minimizer, Newton's method doubles its number of correct digits at every step, and it does not care how badly the problem is scaled. This lesson proves both facts, shows how damping and self-concordance make it work from far away (the engine of interior-point methods), and builds the quasi-Newton and Gauss–Newton methods that bring curvature to problems too large for a Hessian.

What you’ll learn

  • Prove that Newton's method is affine invariant and converges quadratically near a nondegenerate minimizer with a Lipschitz Hessian.
  • Explain damped Newton, the Newton decrement and self-concordance, and state the iteration bound that makes interior-point methods polynomial.
  • Derive the BFGS update from the secant condition, prove that it preserves positive definiteness, and describe superlinear convergence and the L-BFGS two-loop recursion.
  • Derive Gauss–Newton and Levenberg–Marquardt, and explain how Hessian-free optimization and K-FAC bring curvature to deep networks.

Newton's step and affine invariance

Newton's method minimizes the local quadratic model at every step: xt+1=xt+dt\mathbf x_{t+1}=\mathbf x_t+\mathbf d_t with ∇2f(xt) dt=−∇f(xt)\nabla^2f(\mathbf x_t)\,\mathbf d_t=-\nabla f(\mathbf x_t) (derived in Adaptive & Second-Order Methods). Its natural measure of progress is the Newton decrement

λ(x)=(∇f(x)⊤∇2f(x)−1∇f(x))1/2,\lambda(\mathbf x)=\Big(\nabla f(\mathbf x)^\top\nabla^2f(\mathbf x)^{-1}\nabla f(\mathbf x)\Big)^{1/2},

the length of the step in the local metric, λ2=d⊤∇2f(x) d\lambda^2=\mathbf d^\top\nabla^2f(\mathbf x)\,\mathbf d, and half its square is the decrease the quadratic model predicts, f(x)−min⁡dm(d)=λ(x)2/2f(\mathbf x)-\min_{\mathbf d}m(\mathbf d)=\lambda(\mathbf x)^2/2.

DerivationProof
  1. ∇f~(y)=A⊤∇f(x),∇2f~(y)=A⊤∇2f(x) A,x=Ay+b\nabla\tilde f(\mathbf y)=A^\top\nabla f(\mathbf x),\qquad\nabla^2\tilde f(\mathbf y)=A^\top\nabla^2f(\mathbf x)\,A,\qquad\mathbf x=A\mathbf y+\mathbf b

    The chain rule transforms the gradient by A⊤A^\top and the Hessian by A⊤(⋅)AA^\top(\cdot)A:

  2. d~=−(A⊤∇2f A)−1A⊤∇f=A−1d,λ~2=∇f⊤A(A⊤∇2f A)−1A⊤∇f=λ2\tilde{\mathbf d}=-\big(A^\top\nabla^2f\,A\big)^{-1}A^\top\nabla f=A^{-1}\mathbf d,\qquad\tilde\lambda^2=\nabla f^\top A\big(A^\top\nabla^2f\,A\big)^{-1}A^\top\nabla f=\lambda^2

    So the Newton step for f~\tilde f is the Newton step for ff pulled back by A−1A^{-1}, which maps the iterates onto each other, and the decrement's quadratic form is unchanged:

Gradient descent has no such property. On f~\tilde f its step maps back to −ηAA⊤∇f-\eta AA^\top\nabla f, so it is invariant only under rotations, and rescaling one coordinate changes κ\kappa, the iterates and the step count. A satisfying analysis of Newton's method should therefore avoid constants such as μ\mu, LL or a Hessian Lipschitz constant, which all change under rescaling. The classical analysis of the next step uses them anyway; self-concordance, two steps on, repairs this.

Check your understanding

You rescale one coordinate of a smooth, strongly convex problem by a factor of 10001000, making it badly conditioned. What happens to the number of iterations of pure Newton and of gradient descent (exact arithmetic, gradient descent's step size retuned)?

  1. Both stay the same
  2. Newton's stays the same; gradient descent's can grow by orders of magnitude
  3. Newton's grows; gradient descent's stays the same
  4. Both grow by about a factor of 10001000
Show the answer

B. Newton's stays the same; gradient descent's can grow by orders of magnitude

Newton's iterates transform with the change of variables, so they are the same points of the original space and the count is unchanged. Gradient descent's rate depends on κ\kappa, and rescaling a coordinate by 10001000 multiplies its curvature by 10002=1061000^2=10^6, which can raise κ\kappa by up to that factor.

Local quadratic convergence, and its limits

DerivationProof
  1. et+1=Ht−1∫01[Ht−∇2f(x⋆+τet)] et dτ,∥∫01[⋯] et dτ∥≤M2rt2\mathbf e_{t+1}=H_t^{-1}\int_0^1\big[H_t-\nabla^2f(\mathbf x^\star+\tau\mathbf e_t)\big]\,\mathbf e_t\,d\tau,\qquad\Big\lVert\int_0^1\big[\cdots\big]\,\mathbf e_t\,d\tau\Big\rVert\le\frac M2r_t^2

    With et=xt−x⋆\mathbf e_t=\mathbf x_t-\mathbf x^\star, rt=∥et∥r_t=\norm{\mathbf e_t} and Ht=∇2f(xt)H_t=\nabla^2f(\mathbf x_t), write the error as an integral along the segment from x⋆\mathbf x^\star (as in the Descent lesson). The Lipschitz Hessian bounds the integral by M2rt2\frac M2r_t^2:

  2. Ht ⪰ ∇2f(x⋆)−MrtI ⪰ (μ−Mrt) I⟹rt+1 ≤ M rt22(μ−Mrt)H_t\ \succeq\ \nabla^2f(\mathbf x^\star)-Mr_tI\ \succeq\ (\mu-Mr_t)\,I\qquad\Longrightarrow\qquad r_{t+1}\ \le\ \frac{M\,r_t^2}{2(\mu-Mr_t)}

    Strong convexity is now assumed only at x⋆\mathbf x^\star. Moving a distance rtr_t away lowers the smallest eigenvalue by at most MrtMr_t (Weyl's inequality), so the Hessian stays invertible while rt<μ/Mr_t<\mu/M:

  3. rt+1 ≤ 3M2μ rt2 < rtr_{t+1}\ \le\ \frac{3M}{2\mu}\,r_t^2\ <\ r_t

    If rt<2μ3Mr_t<\frac{2\mu}{3M}, then μ−Mrt>μ/3\mu-Mr_t>\mu/3, which gives the quadratic bound, and the bound is below 3M2μ⋅2μ3Mrt=rt\frac{3M}{2\mu}\cdot\frac{2\mu}{3M}r_t=r_t, so the next iterate lies in the ball too. Induction completes the proof, with 3M2μrt≤(3M2μr0)2t\frac{3M}{2\mu}r_t\le\big(\frac{3M}{2\mu}r_0\big)^{2^t}.

Where the classical theory falls short. The radius 2μ3M\frac{2\mu}{3M} depends on constants that are unknown in practice and change under rescaling, though the iterates do not. Outside some region pure Newton can fail even on a smooth, strictly convex function: for f(x)=1+x2f(x)=\sqrt{1+x^2} the Newton map is x↦−x3x\mapsto-x^3, which converges from ∣x0∣<1\abs{x_0}<1, cycles between ±1\pm1 from ∣x0∣=1\abs{x_0}=1 and diverges from ∣x0∣>1\abs{x_0}>1. On nonconvex functions the method converges just as readily to nondegenerate saddle points and maxima, since it solves ∇f=0\nabla f=\mathbf 0 without regard to the sign of the curvature.

Predict before you look

Run pure Newton on f(x)=1+x2f(x)=\sqrt{1+x^2} from x0=0.5x_0=0.5. After how many steps is ∣xt∣<10−6\abs{x_t}<10^{-6} for the first time?

Show the answer

3

x1=−0.125x_1=-0.125, x2≈0.00195x_2\approx0.00195, x3≈−7.5×10−9x_3\approx-7.5\times10^{-9}. The convergence is even cubic here, ∣xt+1∣=∣xt∣3\abs{x_{t+1}}=\abs{x_t}^3, because f′′′(0)=0f'''(0)=0 removes the quadratic error term. From x0=1.1x_0=1.1 the same map gives −1.33-1.33, then 2.362.36, then −13.1-13.1: divergence.

Damped Newton and self-concordance

Away from the solution, take a damped step x+=x+s d\mathbf x^+=\mathbf x+s\,\mathbf d, with s∈(0,1]s\in(0,1] chosen by backtracking line search: start at s=1s=1 and multiply by β∈(0,1)\beta\in(0,1) until the Armijo condition f(x+sd)≤f(x)+αs ∇f(x)⊤df(\mathbf x+s\mathbf d)\le f(\mathbf x)+\alpha s\,\nabla f(\mathbf x)^\top\mathbf d holds, with α∈(0,12)\alpha\in(0,\frac12). Since ∇f⊤d=−λ2<0\nabla f^\top\mathbf d=-\lambda^2<0 away from stationary points, the Newton direction is a descent direction wherever the Hessian is positive definite. For strongly convex ff with a Lipschitz Hessian the method has two phases: a damped phase in which each step lowers ff by at least a fixed amount, then a quadratic phase in which the full step s=1s=1 is always accepted.

Think first For α=0.1\alpha=0.1, β=0.8\beta=0.8, an initial gap f(x0)−p⋆=10f(\mathbf x_0)-p^\star=10 and ε=10−10\varepsilon=10^{-10}, how many iterations does this bound allow, and which term dominates?

γ=0.1⋅0.8⋅0.64/19.2≈0.00267\gamma=0.1\cdot0.8\cdot0.64/19.2\approx0.00267, so the damped phase is bounded by 10/0.00267=375010/0.00267=3750 iterations, and the quadratic phase by log⁡2log⁡2(1010)=log⁡2(33.2)≈5\log_2\log_2(10^{10})=\log_2(33.2)\approx5 more: about 37553755 in all. The quadratic phase is nearly free, and the damped-phase term is very conservative in practice. What matters is that no unknown μ\mu, LL or MM appears.

This is what makes interior-point methods polynomial. To solve min⁡f0(x)\min f_0(\mathbf x) subject to fi(x)≤0f_i(\mathbf x)\le0, they minimize τf0(x)+ϕ(x)\tau f_0(\mathbf x)+\phi(\mathbf x) with a self-concordant barrier ϕ\phi, such as −∑ilog⁡(−fi(x))-\sum_i\log(-f_i(\mathbf x)) for linear constraints, for an increasing sequence of τ\tau, warm-starting Newton each time. For a barrier with parameter ν\nu (ν=m\nu=m for mm linear inequalities), path-following needs O(νlog⁡(ν/ε))\order{\sqrt\nu\log(\nu/\varepsilon)} Newton steps in all (Nesterov & Nemirovski, 1994), the theory behind efficient solvers for linear, quadratic, second-order cone and semidefinite programs.

Quasi-Newton methods: BFGS and L-BFGS

Quasi-Newton methods replace ∇2f\nabla^2f by an approximation built from gradients. With st=xt+1−xt\mathbf s_t=\mathbf x_{t+1}-\mathbf x_t and yt=∇f(xt+1)−∇f(xt)\mathbf y_t=\nabla f(\mathbf x_{t+1})-\nabla f(\mathbf x_t), the fundamental theorem of calculus gives yt=[∫01∇2f(xt+τst) dτ]st\mathbf y_t=\big[\int_0^1\nabla^2f(\mathbf x_t+\tau\mathbf s_t)\,d\tau\big]\mathbf s_t: the gradient change reveals the average Hessian along the last step, in one direction. The secant condition asks the new approximation to reproduce it, Bt+1st=ytB_{t+1}\mathbf s_t=\mathbf y_t, or for an inverse approximation H=B−1H=B^{-1}, Ht+1yt=stH_{t+1}\mathbf y_t=\mathbf s_t. A positive definite solution can exist only under the curvature condition st⊤yt>0\mathbf s_t^\top\mathbf y_t>0 (since then st⊤yt=st⊤Bt+1st\mathbf s_t^\top\mathbf y_t=\mathbf s_t^\top B_{t+1}\mathbf s_t); it is automatic for strongly convex ff, and a Wolfe line search enforces it otherwise.

DerivationProof of the two properties
  1. (I−ρ ys⊤)y=y−ρ y (s⊤y)=0,ρ ss⊤y=s⟹Ht+1y=s\big(I-\rho\,\mathbf y\mathbf s^\top\big)\mathbf y=\mathbf y-\rho\,\mathbf y\,(\mathbf s^\top\mathbf y)=\mathbf 0,\qquad\rho\,\mathbf s\mathbf s^\top\mathbf y=\mathbf s\qquad\Longrightarrow\qquad H_{t+1}\mathbf y=\mathbf s

    Secant condition. Since ρ s⊤y=1\rho\,\mathbf s^\top\mathbf y=1, the right factor annihilates y\mathbf y and the last term maps it to s\mathbf s:

  2. z⊤Ht+1z=w⊤Htw+ρ (s⊤z)2 ≥ 0\mathbf z^\top H_{t+1}\mathbf z=\mathbf w^\top H_t\mathbf w+\rho\,(\mathbf s^\top\mathbf z)^2\ \ge\ 0

    Positive definiteness. For any z\mathbf z, set w=(I−ρ ys⊤)z=z−ρ (s⊤z) y\mathbf w=(I-\rho\,\mathbf y\mathbf s^\top)\mathbf z=\mathbf z-\rho\,(\mathbf s^\top\mathbf z)\,\mathbf y. The quadratic form splits into two nonnegative terms when ρ>0\rho>0:

  3. z≠0⟹z⊤Ht+1z>0\mathbf z\ne\mathbf 0\quad\Longrightarrow\quad\mathbf z^\top H_{t+1}\mathbf z>0

    Both terms vanish only if s⊤z=0\mathbf s^\top\mathbf z=0 and w=0\mathbf w=\mathbf 0, and then z=w+ρ(s⊤z)y=0\mathbf z=\mathbf w+\rho(\mathbf s^\top\mathbf z)\mathbf y=\mathbf 0. So Ht+1≻0H_{t+1}\succ0, and the next direction −Ht+1∇f-H_{t+1}\nabla f is a descent direction.

Convergence. With a Wolfe line search, BFGS converges globally on smooth, strongly convex functions (Nocedal & Wright, 2006, §6.4) and superlinearly near a minimizer where the Hessian is positive definite and Lipschitz. The Dennis–Moré theorem (1974) explains how: a quasi-Newton method taking unit steps converges superlinearly exactly when ∥(Bt−∇2f(x⋆))st∥/∥st∥→0\norm{(B_t-\nabla^2f(\mathbf x^\star))\mathbf s_t}/\norm{\mathbf s_t}\to0. The approximation never has to converge to the Hessian; it only has to act like it along the steps actually taken. On a strictly convex quadratic with exact line searches, BFGS terminates in at most dd steps. For nonconvex functions there is no general global guarantee, and counterexamples exist; explicit non-asymptotic superlinear rates for the classical methods were proved only in the early 2020s.

text
LBFGS_DIRECTION(g, pairs (s_i, y_i) for i = t−m, ..., t−1)    # Nocedal & Wright, Algorithm 7.4
    q ← g
    for i = t−1 down to t−m:                 # newest pair first
        ρ_i ← 1 / (y_i · s_i)
        a_i ← ρ_i (s_i · q)
        q ← q − a_i y_i
    γ ← (s_{t−1} · y_{t−1}) / (y_{t−1} · y_{t−1})
    r ← γ q                                  # initial inverse Hessian H0 = γ I
    for i = t−m up to t−1:                   # oldest pair first
        b ← ρ_i (y_i · r)
        r ← r + (a_i − b) s_i
    return −r                                # = −H_t g

The two-loop recursion applies the inverse-Hessian approximation that BFGS would build from the last mm pairs, starting from the scaled identity γI\gamma I, without forming any matrix: about 4md4md multiplications and 2m2m stored vectors (Liu & Nocedal, 1989).

Gauss–Newton, Levenberg–Marquardt and curvature for deep networks

DerivationFrom least squares to the generalized Gauss–Newton matrix
  1. ∇f=J⊤r,∇2f=J⊤J+∑iri ∇2ri\nabla f=J^\top\mathbf r,\qquad\nabla^2f=J^\top J+\sum_ir_i\,\nabla^2r_i

    For a sum of squared residuals f(θ)=12∥r(θ)∥2f(\boldsymbol\theta)=\frac12\norm{\mathbf r(\boldsymbol\theta)}^2 with Jacobian J=∂r/∂θJ=\partial\mathbf r/\partial\boldsymbol\theta, the Hessian has two parts:

  2. (J⊤J) d=−J⊤r\big(J^\top J\big)\,\mathbf d=-J^\top\mathbf r

    Gauss–Newton drops the second part, which is small when the residuals are small or nearly linear, and solves the normal equations of the linearized problem min⁡d∥r+Jd∥2\min_{\mathbf d}\norm{\mathbf r+J\mathbf d}^2. Its matrix is positive semidefinite, so with JJ of full column rank the step is a descent direction:

  3. (J⊤J+λI) d=−J⊤r\big(J^\top J+\lambda I\big)\,\mathbf d=-J^\top\mathbf r

    Levenberg–Marquardt adds damping (Levenberg, 1944; Marquardt, 1963), moving between Gauss–Newton (λ→0\lambda\to0) and a short gradient step −J⊤r/λ-J^\top\mathbf r/\lambda (λ→∞\lambda\to\infty); λ\lambda rises after a rejected step and falls after a good one, a trust-region strategy:

  4. G=J⊤ ∇z2ℓ  J,J=∂z∂θG=J^\top\,\nabla^2_{\mathbf z}\ell\;J,\qquad J=\frac{\partial\mathbf z}{\partial\boldsymbol\theta}

    For a convex loss ℓ\ell of a model's outputs z(θ)\mathbf z(\boldsymbol\theta), the same idea keeps the loss's curvature and drops the model's. The generalized Gauss–Newton matrix is positive semidefinite whenever ℓ\ell is convex, unlike the Hessian of a network's loss:

Curvature without storing it. A network with 10810^8 parameters has no storable Hessian, but curvature-vector products are cheap. Pearlmutter (1994) showed how to compute ∇2f v\nabla^2f\,\mathbf v exactly at a small constant multiple of the cost of a gradient, and a product GvG\mathbf v needs one forward-mode and one reverse-mode pass. Hessian-free optimization (Martens, 2010) solves (G+λI)d=−∇f(G+\lambda I)\mathbf d=-\nabla f approximately by conjugate gradients using only such products, with Levenberg–Marquardt damping.

K-FAC (Martens & Grosse, 2015) approximates each layer's block of the Fisher matrix, which for common losses coincides with the generalized Gauss–Newton matrix (Mirror Descent & Natural Gradient). For a layer z=Wa\mathbf z=W\mathbf a, with δ\boldsymbol\delta the back-propagated gradient with respect to z\mathbf z (for targets sampled from the model's own predictions), the block is E[(aa⊤)⊗(δδ⊤)]\E\big[(\mathbf a\mathbf a^\top)\otimes(\boldsymbol\delta\boldsymbol\delta^\top)\big], and K-FAC replaces the expectation of the product by the product of expectations:

FW ≈ A⊗S,A=E[aa⊤],  S=E[δδ⊤],(A⊗S)−1vec⁡(∇W)=vec⁡(S−1∇W A−1).F_W\ \approx\ A\otimes S,\qquad A=\E[\mathbf a\mathbf a^\top],\ \ S=\E[\boldsymbol\delta\boldsymbol\delta^\top],\qquad(A\otimes S)^{-1}\operatorname{vec}(\nabla_W)=\operatorname{vec}\big(S^{-1}\nabla_W\,A^{-1}\big).

Two inverses the size of the layer's input and output replace one whose size is the square of the layer's weight count.

Key takeaways

  • Newton's method is affine invariant: its iterates and its decrement λ(x)=(∇f⊤[∇2f]−1∇f)1/2\lambda(\mathbf x)=(\nabla f^\top[\nabla^2f]^{-1}\nabla f)^{1/2} do not depend on the coordinates. With an MM-Lipschitz Hessian and ∇2f(x⋆)⪰μI\nabla^2f(\mathbf x^\star)\succeq\mu I it converges quadratically from within 2μ/(3M)2\mu/(3M), while pure Newton can diverge from farther away.
  • For self-concordant functions (∣f′′′∣≤2(f′′)3/2\abs{f'''}\le2(f'')^{3/2}), damped Newton needs at most (f(x0)−p⋆)/γ+log⁡2log⁡2(1/ε)(f(\mathbf x_0)-p^\star)/\gamma+\log_2\log_2(1/\varepsilon) iterations, a bound free of problem constants that makes interior-point methods polynomial.
  • BFGS enforces the secant condition Ht+1yt=stH_{t+1}\mathbf y_t=\mathbf s_t with a rank-two update that stays positive definite when yt⊤st>0\mathbf y_t^\top\mathbf s_t>0. It converges superlinearly when it acts like the Hessian along its steps (Dennis–Moré), and L-BFGS applies it in O(md)\order{md} time with a two-loop recursion.
  • Gauss–Newton and Levenberg–Marquardt drop the residuals' curvature and add damping. Hessian-free optimization and K-FAC bring generalized Gauss–Newton or Fisher curvature to deep networks through matrix-vector products and Kronecker factors.

Check yourself

In the interactive lesson these are scored with your confidence, and what you miss comes back for review.

Question 1

After an invertible linear change of variables x=Ay\mathbf x=A\mathbf y, which method produces the same iterates once they are mapped back to x\mathbf x, for every AA?

  1. Gradient descent
  2. Adam
  3. Coordinate descent
  4. Newton's method
Show the answer

D. Newton's method

Newton's step transforms as d~=A−1d\tilde{\mathbf d}=A^{-1}\mathbf d, so its iterates are the same points of the original space. That is why its speed does not depend on the condition number.

Question 2

BFGS is about to update Ht≻0H_t\succ0 with a pair satisfying y⊤s<0\mathbf y^\top\mathbf s<0. What is the risk, and the remedy?

  1. None: the BFGS update always preserves positive definiteness
  2. Ht+1H_{t+1} may fail to be positive definite, so −Ht+1∇f-H_{t+1}\nabla f may not be a descent direction; a Wolfe line search, skipping the update or a damped update prevents it
  3. No symmetric matrix satisfies the secant condition any more
  4. The method automatically switches to gradient descent
Show the answer

B. Ht+1H_{t+1} may fail to be positive definite, so −Ht+1∇f-H_{t+1}\nabla f may not be a descent direction; a Wolfe line search, skipping the update or a damped update prevents it

The proof needs ρ=1/(y⊤s)>0\rho=1/(\mathbf y^\top\mathbf s)>0. With negative curvature along s\mathbf s, no positive definite HH can satisfy Hy=sH\mathbf y=\mathbf s, since that would force y⊤s=y⊤Hy>0\mathbf y^\top\mathbf s=\mathbf y^\top H\mathbf y>0. Implementations enforce the curvature condition with a Wolfe line search, skip the update, or use Powell's damped modification.

Question 3

When does the Gauss–Newton matrix J⊤JJ^\top J equal the true Hessian of 12∥r(θ)∥2\frac12\norm{\mathbf r(\boldsymbol\theta)}^2?

  1. Always
  2. Whenever JJ has full column rank
  3. When the residuals are affine in θ\boldsymbol\theta, or all vanish at the point
  4. Never: J⊤JJ^\top J is only ever an approximation
Show the answer

C. When the residuals are affine in θ\boldsymbol\theta, or all vanish at the point

The dropped term ∑iri∇2ri\sum_ir_i\nabla^2r_i vanishes when every ∇2ri=0\nabla^2r_i=0 (linear least squares) or every ri=0r_i=0 (a zero-residual solution). Near a zero-residual minimizer Gauss–Newton therefore converges quadratically, like Newton; with large residuals it can be slow.

Question 4

K-FAC approximates a layer's Fisher block E[(aa⊤)⊗(δδ⊤)]\E\big[(\mathbf a\mathbf a^\top)\otimes(\boldsymbol\delta\boldsymbol\delta^\top)\big] by A⊗SA\otimes S. Why does this help?

  1. Inverting A⊗SA\otimes S needs only A−1A^{-1} and S−1S^{-1}, matrices the size of the layer's input and output, instead of one matrix the size of the weight count squared
  2. It makes the Fisher block diagonal
  3. It removes the need for back-propagated gradients
  4. It is exact for every network
Show the answer

A. Inverting A⊗SA\otimes S needs only A−1A^{-1} and S−1S^{-1}, matrices the size of the layer's input and output, instead of one matrix the size of the weight count squared

(A⊗S)−1=A−1⊗S−1(A\otimes S)^{-1}=A^{-1}\otimes S^{-1}, and applying it to the gradient is the matrix product S−1∇WA−1S^{-1}\nabla_WA^{-1}. For a layer with ninn_{\text{in}} inputs and noutn_{\text{out}} outputs that means inverses of sizes ninn_{\text{in}} and noutn_{\text{out}} instead of one of size ninnoutn_{\text{in}}n_{\text{out}}.

Further reading

  • J. Nocedal & S. J. Wright, Numerical Optimization, 2nd ed. (Springer, 2006), chapters 3, 6, 7 and 10.
  • S. Boyd & L. Vandenberghe, Convex Optimization (Cambridge University Press, 2004), chapters 9–11.
  • Yu. Nesterov & A. Nemirovskii, Interior-Point Polynomial Algorithms in Convex Programming (SIAM, 1994).
  • D. C. Liu & J. Nocedal, "On the limited memory BFGS method for large scale optimization," Mathematical Programming 45, 503–528 (1989).
  • J. Martens & R. Grosse, "Optimizing neural networks with Kronecker-factored approximate curvature," Proceedings of the 32nd International Conference on Machine Learning, PMLR 37, 2408–2417 (2015).