Phiacta
ExplorePostDocsGuidesContributingAbout

Phiacta

The knowledge backend.

Contact Us
ExploreThe Derived Optimizer: Six Questions and Failure on Real Architectures

The Derived Optimizer: Six Questions and Failure on Real Architectures

A program that derives every component of a learnable induced-metric optimizer from first principles. Starting from a 10-hyperparameter heuristic, six questions resolve into a 3-hyperparameter algorithm with globally stable Lyapunov dynamics, a minimax-optimal Newton target s_i* = -log H_ii + mean(log H), Hutchinson-based diagonal Hessian estimation with a (1+δ)/(1-δ) robustness bound independent of dimension and condition number, and joint convergence proofs via block-triangular Jacobian analysis. The derivation is mathematically clean but fails empirically on real neural networks: a full-batch ablation shows diagonal Newton actively hurts on MNIST (more preconditioning yields worse accuracy, with condition number 80,349 at the most aggressive setting giving the worst result), and direct off-diagonal-mass measurements show 40–50% wrong-sign Hutchinson estimates on MNIST MLP and ratios up to 35,402 on transformer attention layers. Both failure modes are mechanistically explained: the diagonal preconditioner class is structurally misspecified for the Kronecker structure of neural-network Hessians, and the Hutchinson estimator's variance inflates quadratically with each Kronecker factor's non-diagonality. The natural structural upgrade — Kronecker minimax — reproduces KFAC.

ContentIssuesEditsHistoryFilesReferences5

The Derived Optimizer: Six Questions and Failure on Real Architectures

1. Motivation

The starting point is the learnable diagonal variant of the induced-metric optimizer with curvature correction. The update rule for the per-coordinate log-scale sis_isi​ that this optimizer used at the start of the program was

s˙i=μ[ξesigi2−βctanh⁡(H^i/τ)esigi2]−μλsi,\dot s_i = \mu\bigl[\xi e^{s_i} g_i^2 - \beta_c \tanh(\hat H_i/\tau) e^{s_i} g_i^2\bigr] - \mu\lambda s_i,s˙i​=μ[ξesi​gi2​−βc​tanh(H^i​/τ)esi​gi2​]−μλsi​,

followed by mean-centering (∑isi=0\sum_i s_i = 0∑i​si​=0) and clipping (∣si∣≤c|s_i| \le c∣si​∣≤c). Here gi=∂iLg_i = \partial_i Lgi​=∂i​L is the gradient component, H^i\hat H_iH^i​ is a cheap estimate of the diagonal Hessian entry, and the symbols μ,ξ,βc,τ,λ,c\mu, \xi, \beta_c, \tau, \lambda, cμ,ξ,βc​,τ,λ,c are hyperparameters. Adding the global denominator r=1/(1+∣v^∣)r = 1/(1 + |\hat v|)r=1/(1+∣v^∣) from the smooth-clipping mechanism, the parameter update is θi←θi−η r esi m^i\theta_i \leftarrow \theta_i - \eta\,r\,e^{s_i}\,\hat m_iθi​←θi​−ηresi​m^i​ with m^\hat mm^ the bias-corrected momentum. The complete hyperparameter list is {η,μ,λ,ξ,βc,τ,c,β,βm,εsec}\{\eta, \mu, \lambda, \xi, \beta_c, \tau, c, \beta, \beta_m, \varepsilon_{\text{sec}}\}{η,μ,λ,ξ,βc​,τ,c,β,βm​,εsec​}, ten in total. The motivation for the diagonal preconditioner class itself comes from the hierarchy of curvature corrections: the diagonal learnable metric is the lowest level of the hierarchy with enough freedom to act as a Newton preconditioner in principle.

Four structural problems with the heuristic rule were visible by inspection.

First, the metric explodes. The driving force ξesigi2\xi e^{s_i} g_i^2ξesi​gi2​ grows exponentially in sis_isi​ while the regulariser λsi\lambda s_iλsi​ grows linearly. The equilibrium of the two requires ξg2/λ<1/e\xi g^2 / \lambda < 1/eξg2/λ<1/e (the existence condition for the Lambert WWW function). In practice ξg2/λ\xi g^2 / \lambdaξg2/λ is in the range 10310^3103 to 10410^4104, so the equilibrium does not exist and only clipping prevents divergence. The clip is doing structural work, not safety work.

Second, the curvature correction is anti-Newton. Without the tanh⁡\tanhtanh term, sis_isi​ relaxes to si∗∝ξgi2/λs_i^* \propto \xi g_i^2 / \lambdasi∗​∝ξgi2​/λ. On a quadratic loss L=12∑hiθi2L = \tfrac{1}{2}\sum h_i \theta_i^2L=21​∑hi​θi2​, where gi=hiθig_i = h_i \theta_igi​=hi​θi​, this gives si∗∝hi2θi2s_i^* \propto h_i^2 \theta_i^2si∗​∝hi2​θi2​. Directions with large curvature receive large metric, which is the opposite of Newton preconditioning. The Pearson correlation between the learned sis_isi​ and HiiH_{ii}Hii​, measured on a 10-dimensional quadratic with random condition number 100, comes out to +0.71+0.71+0.71. Newton would give −1.0-1.0−1.0.

Third, the role of the denominator rrr is not understood. It clearly damps something when gradients are large, but its quantitative effect on the per-coordinate dynamics and its interaction with the per-coordinate metric are unclear.

Fourth, ten hyperparameters is a lot. Several of them interact in non-obvious ways. The optimal value of ξ\xiξ varies by four to six orders of magnitude across tasks.

The program below addresses each problem in turn by asking one question with a clean answer. The structure of this entry is to ask six questions and derive the corresponding piece of the algorithm from first principles, then assemble the pieces into a final algorithm with three free hyperparameters, then examine why the algorithm nonetheless fails on real neural networks.

2. Question 1: why does the metric explode?

The metric scale is Mi=esiM_i = e^{s_i}Mi​=esi​. The quantity we want to control is the denominator trace v=ξ∑jMjgj2v = \xi \sum_j M_j g_j^2v=ξ∑j​Mj​gj2​, which is linear in MMM,

∂v∂Mi=ξgi2.\frac{\partial v}{\partial M_i} = \xi g_i^2.∂Mi​∂v​=ξgi2​.

This is bounded and well-behaved. The optimizer, however, updates s=log⁡Ms = \log Ms=logM, not MMM itself, and the chain rule introduces

∂v∂si=ξgi2⋅esi.\frac{\partial v}{\partial s_i} = \xi g_i^2 \cdot e^{s_i}.∂si​∂v​=ξgi2​⋅esi​.

The factor esie^{s_i}esi​ is the entire source of instability. Updating in the log parameterisation, the derivative we use accidentally inherits the exponential factor that comes from the chain rule, even though the underlying quantity vvv in the MMM-parameterisation has no exponential dependence.

2.1 The fix

Update sss using the gradient with respect to MMM, not with respect to sss. This is mirror descent in MMM-space with the log barrier, or equivalently the natural gradient for the metric parameterisation. (Natural gradient here means: rescale the ordinary gradient by the inverse of the Fisher metric on the parameter manifold, which in this case is just division by MMM to undo the exponential Jacobian.) The corrected update is

s˙i=μ[ξgi2−λsi].\dot s_i = \mu[\xi g_i^2 - \lambda s_i].s˙i​=μ[ξgi2​−λsi​].

The esie^{s_i}esi​ factor is gone. In code this is one line.

2.2 Stability proof

For fixed gradients, the equilibrium si∗=ξgi2/λs_i^* = \xi g_i^2 / \lambdasi∗​=ξgi2​/λ always exists. To prove the equilibrium is globally asymptotically stable, take the Lyapunov candidate V(s)=12∥s−s∗∥2V(s) = \tfrac{1}{2} \|s - s^*\|^2V(s)=21​∥s−s∗∥2. A Lyapunov function is a scalar function of the state that decreases monotonically along the dynamics, with its unique minimum at the equilibrium; the existence of such a function is the standard certificate for global asymptotic stability. Differentiate VVV along the dynamics,

V˙=(s−s∗)⊤s˙=(s−s∗)⊤μ[ξg2−λs]=−μλ(s−s∗)⊤(s−s∗)=−2μλV.\dot V = (s - s^*)^\top \dot s = (s - s^*)^\top \mu[\xi g^2 - \lambda s] = -\mu \lambda (s - s^*)^\top (s - s^*) = -2 \mu \lambda V.V˙=(s−s∗)⊤s˙=(s−s∗)⊤μ[ξg2−λs]=−μλ(s−s∗)⊤(s−s∗)=−2μλV.

The substitution uses ξg2=λs∗\xi g^2 = \lambda s^*ξg2=λs∗ from the equilibrium definition. So VVV decreases exponentially at rate 2μλ2 \mu \lambda2μλ, regardless of initial conditions and regardless of ξ\xiξ or λ\lambdaλ individually. Global asymptotic stability follows without any linearisation.

2.3 Mean-centered version

In the actual optimizer, the gauge symmetry s↦s+c 1s \mapsto s + c\,\mathbf{1}s↦s+c1 is fixed by mean-centering: we enforce ∑isi=0\sum_i s_i = 0∑i​si​=0. With the constraint added via a Lagrange multiplier μL\mu_LμL​, the equilibrium conditions become

ξgi2−λsi=μLfor all i,∑isi=0.\xi g_i^2 - \lambda s_i = \mu_L \quad \text{for all } i, \qquad \sum_i s_i = 0.ξgi2​−λsi​=μL​for all i,i∑​si​=0.

Solving the system gives μL=ξg2‾\mu_L = \xi \overline{g^2}μL​=ξg2​ where g2‾=1N∑jgj2\overline{g^2} = \tfrac{1}{N}\sum_j g_j^2g2​=N1​∑j​gj2​, and

si∗=ξλ (gi2−g2‾).s_i^* = \frac{\xi}{\lambda}\,(g_i^2 - \overline{g^2}).si∗​=λξ​(gi2​−g2​).

The constrained equilibrium always exists and is always stable (the Hessian of VVV on the constraint surface remains positive-definite). The Lagrange multiplier is the per-component bias that the constraint introduces.

2.4 Consequence for clipping

Before the fix, clipping was structurally required because the unconstrained dynamics had no equilibrium. After the fix, clipping is optional. It becomes a soft bound on the condition number of the preconditioner (κM≤e2c\kappa_M \le e^{2c}κM​≤e2c) rather than the only thing preventing divergence. In practice we keep a modest clip (c≈3c \approx 3c≈3) as a safeguard for noisy stochastic gradients.

3. The separation principle

The Q1 fix has a generalisation that is useful for the rest of the program. The general form of the update rule is

s˙i=ϕ(si) [Di−λsi],\dot s_i = \phi(s_i)\,\bigl[D_i - \lambda s_i\bigr],s˙i​=ϕ(si​)[Di​−λsi​],

where ϕ\phiϕ is the dynamics modulator and DDD is the target driver. At equilibrium (assuming ϕ\phiϕ does not vanish), the equilibrium satisfies Di=λsi∗D_i = \lambda s_i^*Di​=λsi∗​, so si∗s_i^*si∗​ depends only on DDD and not on ϕ\phiϕ. This is the separation principle: the rate at which the metric converges (governed by ϕ\phiϕ) and the place it converges to (governed by DDD) are independent design choices.

The original rule corresponds to ϕ=es\phi = e^sϕ=es (unstable) and D=ξg2D = \xi g^2D=ξg2 (anti-Newton). The Q1 fix sets ϕ=1\phi = 1ϕ=1 while leaving D=ξg2D = \xi g^2D=ξg2 unchanged.

3.1 Why ϕ=1\phi = 1ϕ=1 is the optimal choice for ϕ\phiϕ

Two arguments single out ϕ=1\phi = 1ϕ=1 within the class of ϕ\phiϕ that preserve the same equilibrium.

A minimax convergence-rate argument. Non-uniform ϕ\phiϕ produces non-uniform per-component convergence rates. The worst-case rate dominates the overall convergence. Maintaining stability with non-uniform ϕ\phiϕ forces a reduction of λ\lambdaλ to accommodate the fastest component, which slows every other component. The choice that maximises the worst-case rate is uniform ϕ\phiϕ, which after normalisation is ϕ=1\phi = 1ϕ=1.

A noise-robustness argument. Under stochastic gradients, the variance of s˙i\dot s_is˙i​ scales as ϕ(si)2⋅Var(Di)\phi(s_i)^2 \cdot \mathrm{Var}(D_i)ϕ(si​)2⋅Var(Di​). Any ϕ>1\phi > 1ϕ>1 amplifies the noise injected into sss. The choice that minimises noise amplification is ϕ=1\phi = 1ϕ=1.

The dynamics question is fully resolved by ϕ=1\phi = 1ϕ=1. The remaining question is what DDD should be.

4. Question 2: what should the metric target?

On a local quadratic model L=12θ⊤diag(h) θL = \tfrac{1}{2} \theta^\top \mathrm{diag}(h)\,\thetaL=21​θ⊤diag(h)θ with hi>0h_i > 0hi​>0, the preconditioned gradient descent update is θi←θi−α esi gi\theta_i \leftarrow \theta_i - \alpha\,e^{s_i}\,g_iθi​←θi​−αesi​gi​. Substituting gi=hiθig_i = h_i \theta_igi​=hi​θi​ gives θi←(1−αesihi)θi\theta_i \leftarrow (1 - \alpha e^{s_i} h_i) \theta_iθi​←(1−αesi​hi​)θi​, so the per-coordinate contraction factor is

ρi=∣1−α esi hi∣.\rho_i = |1 - \alpha\,e^{s_i}\,h_i|.ρi​=∣1−αesi​hi​∣.

The overall convergence rate is the maximum ρi\rho_iρi​ across coordinates. The objective is to choose sss minimising this maximum.

4.1 Theorem (Newton minimax preconditioner)

Among diagonal preconditioners M=diag(esi)M = \mathrm{diag}(e^{s_i})M=diag(esi​) with ∑isi=0\sum_i s_i = 0∑i​si​=0,

(a) the minimax convergence rate min⁡smax⁡i∣1−α esi hi∣\min_s \max_i |1 - \alpha\,e^{s_i}\,h_i|mins​maxi​∣1−αesi​hi​∣ is achieved uniquely at

si∗=−log⁡hi+log⁡h‾,s_i^* = -\log h_i + \overline{\log h},si∗​=−loghi​+logh​,

where log⁡h‾=1N∑jlog⁡hj\overline{\log h} = \tfrac{1}{N}\sum_j \log h_jlogh​=N1​∑j​loghj​;

(b) at this optimum, all per-coordinate preconditioned eigenvalues esi hie^{s_i}\,h_iesi​hi​ equal hgeoh_{\mathrm{geo}}hgeo​, where hgeo=exp⁡(log⁡h‾)h_{\mathrm{geo}} = \exp(\overline{\log h})hgeo​=exp(logh​) is the geometric mean of the curvatures (the contraction factors ∣1−α esi hi∣|1 - \alpha\,e^{s_i}\,h_i|∣1−αesi​hi​∣ are then all equal to ∣1−αhgeo∣|1 - \alpha h_{\mathrm{geo}}|∣1−αhgeo​∣);

(c) with the additional optimal choice of learning rate α∗=1/hgeo\alpha^* = 1/h_{\mathrm{geo}}α∗=1/hgeo​, the rate is zero (one-step convergence).

The term "minimax" here means the optimisation min⁡smax⁡i\min_s \max_imins​maxi​: we choose sss to make the worst-case contraction factor (over coordinates) as small as possible. The classical minimax solution equalises the worst-case quantity across all components, which is what produces the geometric-mean structure.

4.2 Proof

Let pi=α esi hip_i = \alpha\,e^{s_i}\,h_ipi​=αesi​hi​. Mean-centering enforces ∑isi=0\sum_i s_i = 0∑i​si​=0, equivalently ∏iesi=1\prod_i e^{s_i} = 1∏i​esi​=1, so

∏ipi=αN∏ihi\prod_i p_i = \alpha^N \prod_i h_ii∏​pi​=αNi∏​hi​

is independent of sss. The problem reduces to minimising max⁡i∣1−pi∣\max_i |1 - p_i|maxi​∣1−pi​∣ subject to fixed product of pip_ipi​. The argument is an endpoint-equalisation: suppose the maximum of ∣1−pi∣|1 - p_i|∣1−pi​∣ over iii is attained both at the largest pip_ipi​ (call it p+p^+p+) and the smallest (p−p^-p−). If p−→0p^- \to 0p−→0 further, ∣1−p−∣|1 - p^-|∣1−p−∣ grows; if p+→∞p^+ \to \inftyp+→∞ further, ∣1−p+∣|1 - p^+|∣1−p+∣ grows. So any spread that pushes p−p^-p− down or p+p^+p+ up (while preserving the geometric mean by the product constraint) strictly increases max⁡∣1−pi∣\max|1 - p_i|max∣1−pi​∣. Conversely, contracting the spread toward the geometric mean weakly decreases the maximum. The optimum is therefore attained at pi=(αN∏hi)1/N=αhgeop_i = (\alpha^N \prod h_i)^{1/N} = \alpha h_{\mathrm{geo}}pi​=(αN∏hi​)1/N=αhgeo​ for all iii, giving esi=hgeo/hie^{s_i} = h_{\mathrm{geo}}/h_iesi​=hgeo​/hi​ and (after taking logs and applying mean-centering) si∗=−log⁡hi+log⁡h‾s_i^* = -\log h_i + \overline{\log h}si∗​=−loghi​+logh​. This proves (a). Part (b) is immediate from the definition of pip_ipi​ at the optimum. For (c), α∗=1/hgeo\alpha^* = 1/h_{\mathrm{geo}}α∗=1/hgeo​ makes pi=1p_i = 1pi​=1 for every iii, giving ρi=0\rho_i = 0ρi​=0.

(The naive "strict convexity of log⁡p↦∣1−elog⁡p∣\log p \mapsto |1 - e^{\log p}|logp↦∣1−elogp∣" version of this argument is false: the function x↦∣1−ex∣x \mapsto |1 - e^x|x↦∣1−ex∣ is concave for x<0x < 0x<0 and convex for x>0x > 0x>0, with a kink at x=0x = 0x=0. The endpoint argument above sidesteps the kink.)

4.3 Interpretation

The optimal metric is Newton preconditioning in log-space, with mean-centering as a gauge fix. Every preconditioned eigenvalue equals hgeoh_{\mathrm{geo}}hgeo​. The condition number becomes 1. The landscape becomes isotropic to the optimiser. The mean-centering convention is what removes the overall scaling freedom and makes the answer unique; without it, any si=−log⁡hi+cs_i = -\log h_i + csi​=−loghi​+c for arbitrary ccc would work, and the natural choice is c=log⁡h‾c = \overline{\log h}c=logh​.

4.4 Numerical comparison

On a 10-dimensional quadratic with condition number 100, run for 20{,}000 steps, the comparison between the original anti-Newton rule, the heuristic tanh⁡\tanhtanh rule that the curvature-aware variant added, and the Newton minimax target is striking.

Taking the unpreconditioned baseline at 4.7×10−104.7 \times 10^{-10}4.7×10−10 (Section 5.3):

RuleFinal lossRatio vs no preconditioning
Di=ξgi2D_i = \xi g_i^2Di​=ξgi2​ (anti-Newton)0.0210.0210.021≈107\approx 10^{7}≈107 times worse
tanh⁡\tanhtanh heuristic0.130.130.13≈108\approx 10^{8}≈108 times worse
Newton target Di=−λlog⁡hiD_i = -\lambda \log h_iDi​=−λloghi​1.3×10−421.3 \times 10^{-42}1.3×10−42≈1033\approx 10^{33}≈1033 times better

The original rule is not merely suboptimal: it is actively worse than no preconditioning. The anti-Newton structure inflates the condition number from 100 to 1.6×1071.6 \times 10^71.6×107. The full numerical comparison, including loss-vs-step trajectories, is in notebooks/newton-minimax-comparison.nb.

Loss-vs-step trajectories on the 10-dimensional \kappa = 100 quadratic: the anti-Newton (D_i = \xi g_i^2) and \tanh-heuristic rules stall many orders of magnitude above the Newton target (D_i = -\lambda \log h_i), which drives the loss to machine zero

4.5 The resulting metric update

By the separation principle, choose Di=−λlog⁡max⁡(H^ii,ε)D_i = -\lambda \log \max(\hat H_{ii}, \varepsilon)Di​=−λlogmax(H^ii​,ε), so the equilibrium satisfies si∗=−log⁡Hii+consts_i^* = -\log H_{ii} + \mathrm{const}si∗​=−logHii​+const (after mean-centering). The discrete-time form of the update is

si,t+1=(1−μλ) si,t−μλ log⁡max⁡(H^ii,t,ε),s_{i,t+1} = (1 - \mu\lambda)\,s_{i,t} - \mu\lambda\,\log \max(\hat H_{ii,t}, \varepsilon),si,t+1​=(1−μλ)si,t​−μλlogmax(H^ii,t​,ε),

which is an exponential moving average (EMA) of −log⁡Hii-\log H_{ii}−logHii​ with smoothing factor βs=μλ\beta_s = \mu \lambdaβs​=μλ. The floor ε\varepsilonε avoids the logarithm of zero or negative estimates of the diagonal Hessian. Three of the original hyperparameters (βc,τ,εsec\beta_c, \tau, \varepsilon_{\text{sec}}βc​,τ,εsec​) are absorbed or removed by this construction.

5. Question 3: how to estimate the Hessian diagonal?

Two candidate estimators: the secant approximation, and Hutchinson's stochastic estimator.

5.1 Secant estimator

Compare gradients at two consecutive iterates,

h^isec=gi(t)−gi(t−1)θi(t)−θi(t−1).\hat h_i^{\text{sec}} = \frac{g_i^{(t)} - g_i^{(t-1)}}{\theta_i^{(t)} - \theta_i^{(t-1)}}.h^isec​=θi(t)​−θi(t−1)​gi(t)​−gi(t−1)​​.

This is free in the sense that it reuses gradients already computed. On a diagonal Hessian, it is exact. On a non-diagonal Hessian, expand gi(t)=gi(t−1)+∑jHij Δθjg_i^{(t)} = g_i^{(t-1)} + \sum_j H_{ij}\,\Delta\theta_jgi(t)​=gi(t−1)​+∑j​Hij​Δθj​ to get

h^isec=Hii+∑j≠iHij ΔθjΔθi.\hat h_i^{\text{sec}} = H_{ii} + \sum_{j \ne i} H_{ij}\,\frac{\Delta\theta_j}{\Delta\theta_i}.h^isec​=Hii​+j=i∑​Hij​Δθi​Δθj​​.

The cross terms are systematic bias, not noise. The bias does not shrink as the step size shrinks because the ratios Δθj/Δθi\Delta\theta_j / \Delta\theta_iΔθj​/Δθi​ are determined by the optimisation trajectory, not by the step size. On a 10-dimensional quadratic with modest off-diagonal structure, the initial maximum relative error across coordinates exceeds 1100% in numerical tests, and the smallest-curvature coordinate exceeds 730%.

5.2 Hutchinson estimator

Draw a Rademacher vector v∈{−1,+1}Nv \in \{-1, +1\}^Nv∈{−1,+1}N (each component independently ±1\pm 1±1 with equal probability). Compute the Hessian-vector product HvHvHv via reverse-mode automatic differentiation (one extra backward pass per step). Then set

h^i=vi (Hv)i.\hat h_i = v_i\,(Hv)_i.h^i​=vi​(Hv)i​.

Take expectation over vvv: E[vivj]=δij\mathbb{E}[v_i v_j] = \delta_{ij}E[vi​vj​]=δij​ because the components are independent and have unit variance. So

E[h^i]=E[vi∑jHijvj]=∑jHij δij=Hii.\mathbb{E}[\hat h_i] = \mathbb{E}[v_i \sum_j H_{ij} v_j] = \sum_j H_{ij}\,\delta_{ij} = H_{ii}.E[h^i​]=E[vi​j∑​Hij​vj​]=j∑​Hij​δij​=Hii​.

The estimator is exactly unbiased. The variance is

Var(h^i)=E[h^i2]−Hii2=∑j≠iHij2.\mathrm{Var}(\hat h_i) = \mathbb{E}[\hat h_i^2] - H_{ii}^2 = \sum_{j \ne i} H_{ij}^2.Var(h^i​)=E[h^i2​]−Hii2​=j=i∑​Hij2​.

The Rademacher distribution is the variance-minimising choice within the class of zero-mean unit-variance distributions for this estimator; this is why it is preferred over Gaussian vvv (which would give a larger variance constant).

5.3 Numerical comparison

On a 10-dimensional quadratic with condition number 100, run for 20{,}000 steps:

EstimatorFinal lossRatio vs no preconditioning
No preconditioning4.7×10−104.7 \times 10^{-10}4.7×10−10baseline
Secant + clip2.6×10−122.6 \times 10^{-12}2.6×10−12100100100 times better
Hutchinson + clip1.3×10−841.3 \times 10^{-84}1.3×10−84107410^{74}1074 times better
Perfect Newton1.3×10−841.3 \times 10^{-84}1.3×10−84107410^{74}1074 times better

Hutchinson with EMA smoothing exactly matches perfect Newton. The factor-of-two per-step cost (one extra Hessian-vector product, comparable to one extra backward pass) buys a 107210^{72}1072-times improvement in final accuracy on this problem.

5.4 Robustness theorem

Suppose every h^i\hat h_ih^i​ is within multiplicative factor (1±δ)(1 \pm \delta)(1±δ) of HiiH_{ii}Hii​, that is, ∣h^i/Hii−1∣≤δ|\hat h_i / H_{ii} - 1| \le \delta∣h^i​/Hii​−1∣≤δ for some δ∈[0,1)\delta \in [0, 1)δ∈[0,1). Then the preconditioned condition number satisfies

κprec≤1+δ1−δ.\kappa_{\mathrm{prec}} \le \frac{1 + \delta}{1 - \delta}.κprec​≤1−δ1+δ​.

This bound is independent of the original condition number κ(H)\kappa(H)κ(H) and independent of the dimension NNN.

The proof is short. The preconditioned spectrum has esi∗Hii=hgeo (Hii/H^ii)e^{s_i^*} H_{ii} = h_{\mathrm{geo}}\,(H_{ii}/\hat H_{ii})esi∗​Hii​=hgeo​(Hii​/H^ii​). The ratio Hii/H^ii∈[1/(1+δ),1/(1−δ)]H_{ii}/\hat H_{ii} \in [1/(1+\delta), 1/(1-\delta)]Hii​/H^ii​∈[1/(1+δ),1/(1−δ)], so the preconditioned eigenvalues lie in [hgeo/(1+δ),hgeo/(1−δ)][h_{\mathrm{geo}}/(1+\delta), h_{\mathrm{geo}}/(1-\delta)][hgeo​/(1+δ),hgeo​/(1−δ)], and the ratio is (1+δ)/(1−δ)(1+\delta)/(1-\delta)(1+δ)/(1−δ). The full proof, including extension from multiplicative error to log-space error, is in Appendix B.

Numerical implications. Even with 50% estimation error (δ=0.5\delta = 0.5δ=0.5), κprec≤3\kappa_{\mathrm{prec}} \le 3κprec​≤3. Even with 90% error (δ=0.9\delta = 0.9δ=0.9), κprec≤19\kappa_{\mathrm{prec}} \le 19κprec​≤19, which on a problem with κ(H)=104\kappa(H) = 10^4κ(H)=104 is still a 530-times improvement.

The mechanism is the log-space parameterisation. A factor-of-kkk multiplicative error in h^i\hat h_ih^i​ shifts sis_isi​ by log⁡k\log klogk, which is small for moderate kkk. On a κ=104\kappa = 10^4κ=104 problem the target range of sis_isi​ values is log⁡(104)≈9\log(10^4) \approx 9log(104)≈9 nats, so a factor-of-10 error (about 2.3 nats) is a 25% perturbation of the relevant scale.

The secant estimator's problem is that its initial relative error exceeds δ=1\delta = 1δ=1 by an order of magnitude, placing it outside the domain where the robustness theorem applies. Hutchinson stays inside the domain from step 1.

Robustness bound \kappa_{\mathrm{prec}} \leq (1+\delta)/(1-\delta) stays under control for \delta < 1

6. Question 4: does the joint (θ,s)(\theta, s)(θ,s) system converge?

Per-component theorems analyse sss assuming θ\thetaθ is frozen. In reality the two coordinates evolve simultaneously, and coupled dynamical systems can oscillate, cycle, or diverge even when each subsystem is stable in isolation. We need a joint convergence result.

6.1 On quadratics, the coupling vanishes

For L=12∑ihiθi2L = \tfrac{1}{2}\sum_i h_i \theta_i^2L=21​∑i​hi​θi2​, the Hessian diagonal is the constant hih_ihi​. The Newton target si∗=−log⁡hi+log⁡h‾s_i^* = -\log h_i + \overline{\log h}si∗​=−loghi​+logh​ does not depend on θ\thetaθ. The metric converges to a fixed point, not a moving one, and the sss dynamics are decoupled from the θ\thetaθ dynamics.

6.2 Joint Lyapunov function

Combine the energy in θ\thetaθ with the energy in sss relative to the Newton target,

V(θ,s)=L(θ)+α2∥s−s∗∥2,V(\theta, s) = L(\theta) + \tfrac{\alpha}{2}\|s - s^*\|^2,V(θ,s)=L(θ)+2α​∥s−s∗∥2,

for some α>0\alpha > 0α>0 to be chosen. The time derivative along the joint dynamics is

V˙=−η r∑iesi hi2 θi2−α μ λ ∥s−s∗∥2.\dot V = -\eta\,r \sum_i e^{s_i}\,h_i^2\,\theta_i^2 - \alpha\,\mu\,\lambda\,\|s - s^*\|^2.V˙=−ηri∑​esi​hi2​θi2​−αμλ∥s−s∗∥2.

Both terms are non-positive. The energy is strictly decreasing except at the joint equilibrium θ=0\theta = 0θ=0, s=s∗s = s^*s=s∗. This is global asymptotic stability of the joint system on quadratics, valid for any positive ratio μ/η\mu/\etaμ/η. No timescale separation is required.

We verified this numerically: zero monotonicity violations across 2{,}000 random initialisations over 20{,}000 steps each. Details in notebooks/joint-lyapunov-verification.nb.

6.3 Beyond quadratics

At any non-degenerate local minimum θ∗\theta^*θ∗ of a smooth (non-quadratic) loss, the joint Jacobian of the update is block-triangular,

J(θ∗,s∗)=(A0BC).J(\theta^*, s^*) = \begin{pmatrix} A & 0 \\ B & C \end{pmatrix}.J(θ∗,s∗)=(AB​0C​).

The block-zero in the upper right is because ℓ=0\ell = 0ℓ=0 at θ∗\theta^*θ∗, killing all cross-terms between the θ\thetaθ block and the sss block. Eigenvalues of a block-triangular matrix are the eigenvalues of the diagonal blocks. Both blocks contract under standard learning-rate conditions (the θ\thetaθ block is the usual contraction of preconditioned gradient descent, the sss block contracts at rate 1−μλ1 - \mu\lambda1−μλ). The joint system therefore inherits local asymptotic stability from each subsystem, without requiring that the metric converge faster than the parameters.

For stochastic gradients with diminishing step sizes, Borkar's two-timescale stochastic-approximation theorem applies (Borkar, 1997), giving almost-sure convergence. With constant step sizes the analysis gives convergence to an O(η+μ)O(\eta + \mu)O(η+μ) neighbourhood of the joint equilibrium. These guarantees are comparable in strength to the convergence results available for standard adaptive optimisers.

7. Question 5: what about the embedding weight ξ\xiξ?

The smooth-clipping denominator r=1/(1+∣v^∣)r = 1/(1 + |\hat v|)r=1/(1+∣v^∣) with v=ξ∑iesi gi2v = \xi \sum_i e^{s_i}\,g_i^2v=ξ∑i​esi​gi2​ remains in the optimizer after Q1-Q4 have done their work. With Newton-targeted sss, does the denominator still help?

7.1 The trace simplifies at equilibrium

At Newton equilibrium esi∗=hgeo/hie^{s_i^*} = h_{\mathrm{geo}}/h_iesi∗​=hgeo​/hi​, the denominator trace is

v=ξ∑ihgeohi (hiθi)2=ξ hgeo ∑ihi θi2=2 ξ hgeo L.v = \xi \sum_i \frac{h_{\mathrm{geo}}}{h_i}\,(h_i \theta_i)^2 = \xi\,h_{\mathrm{geo}}\,\sum_i h_i\,\theta_i^2 = 2\,\xi\,h_{\mathrm{geo}}\,L.v=ξi∑​hi​hgeo​​(hi​θi​)2=ξhgeo​i∑​hi​θi2​=2ξhgeo​L.

The trace is proportional to the loss. This was verified symbolically (Mathematica, N=4N = 4N=4) and numerically (Python, N=20N = 20N=20, κ=1000\kappa = 1000κ=1000).

7.2 The denominator vanishes near the minimum

The effective per-coordinate convergence rate becomes

ηeff=η hgeo1+2 ξ hgeo L.\eta_{\mathrm{eff}} = \frac{\eta\,h_{\mathrm{geo}}}{1 + 2\,\xi\,h_{\mathrm{geo}}\,L}.ηeff​=1+2ξhgeo​Lηhgeo​​.

As L→0L \to 0L→0, ηeff→η hgeo\eta_{\mathrm{eff}} \to \eta\,h_{\mathrm{geo}}ηeff​→ηhgeo​. The asymptotic convergence rate is completely independent of ξ\xiξ.

7.3 Numerical evidence

Take N=20N = 20N=20, κ=1000\kappa = 1000κ=1000, η=0.8/hgeo\eta = 0.8/h_{\mathrm{geo}}η=0.8/hgeo​.

ξ\xiξLLL at step 50LLL at step 100
02.9×10−32.9 \times 10^{-3}2.9×10−31.2×10−31.2 \times 10^{-3}1.2×10−3
0.0014.9×10−14.9 \times 10^{-1}4.9×10−12.4×10−42.4 \times 10^{-4}2.4×10−4
0.17777776.06.06.0
1188188188175175175

ξ=0\xi = 0ξ=0 converges fastest. Increasing ξ\xiξ progressively slows convergence by damping the Newton step. The "safety" argument that ξ>0\xi > 0ξ>0 prevents instability is redundant: the Newton metric already constrains every preconditioned eigenvalue to hgeoh_{\mathrm{geo}}hgeo​, so η\etaη can be set directly against hgeoh_{\mathrm{geo}}hgeo​ without needing a separate safety mechanism. With stochastic gradients ξ>0\xi > 0ξ>0 is actively harmful: gradient noise contributes permanent damping that does not vanish as L→0L \to 0L→0.

7.4 Conclusion

Set ξ=0\xi = 0ξ=0. This eliminates the denominator, the denominator EMA, and the hyperparameters β\betaβ and ξ\xiξ. The parameter update simplifies to

θi←θi−η esi m^i.\theta_i \leftarrow \theta_i - \eta\,e^{s_i}\,\hat m_i.θi​←θi​−ηesi​m^i​.

8. Question 6: which embedding function?

With ξ=0\xi = 0ξ=0, the embedding is moot. If ξ>0\xi > 0ξ>0 is retained as a transient safety net before the metric converges, the choice of embedding function f(L)f(L)f(L) matters.

8.1 Non-interference condition

For the Newton preconditioning to function at convergence, the damping must vanish: rt→1r_t \to 1rt​→1 as L→0L \to 0L→0. With general embedding ϕ=(θ,ξ f(L))\phi = (\theta, \sqrt{\xi}\,f(L))ϕ=(θ,ξ​f(L)), the optimizer descends LLL (not f(L)f(L)f(L)) under the pullback metric, so the gradient in the embedded coordinates is ξ f′(L) ∇L\sqrt{\xi}\,f'(L)\,\nabla Lξ​f′(L)∇L and the Sherman-Morrison denominator becomes

rt=f′(L)1+ξ f′(L)2⋅2 hgeo L,r_t = \frac{f'(L)}{1 + \xi\,f'(L)^2 \cdot 2\,h_{\mathrm{geo}}\,L},rt​=1+ξf′(L)2⋅2hgeo​Lf′(L)​,

where the f′(L)f'(L)f′(L) in the numerator is the multiplicative correction from differentiating the embedded coordinate, and ∥ℓembed∥2=ξf′(L)2⋅∥∇L∥2=ξf′(L)2⋅2 hgeo L\|\ell_{\mathrm{embed}}\|^2 = \xi f'(L)^2 \cdot \|\nabla L\|^2 = \xi f'(L)^2 \cdot 2\,h_{\mathrm{geo}}\,L∥ℓembed​∥2=ξf′(L)2⋅∥∇L∥2=ξf′(L)2⋅2hgeo​L on the equilibrium-preconditioned quadratic. Among power-law embeddings f(L)=Lpf(L) = L^pf(L)=Lp, the limit lim⁡L→0rt=1\lim_{L \to 0} r_t = 1limL→0​rt​=1 requires p=1p = 1p=1. More generally, f′(0)f'(0)f′(0) finite and non-zero forces f(L)∼cL+constf(L) \sim cL + \mathrm{const}f(L)∼cL+const near L=0L = 0L=0. The plain loss embedding (Thomas Harvey's original choice) is the unique non-interfering choice within this family.

8.2 Why the log embedding fails

For f=log⁡Lf = \log Lf=logL, we have f′(L)=1/Lf'(L) = 1/Lf′(L)=1/L, so as L→0L \to 0L→0 the denominator approaches rt→1/(2ξhgeo)r_t \to 1/(2 \xi h_{\mathrm{geo}})rt​→1/(2ξhgeo​). This is a permanent step-size cap that depends on ξ\xiξ but not on the geometry of the problem. The cap decouples the learning rate from the curvature, which is the opposite of what Newton preconditioning is trying to achieve.

8.3 Transient stability

Before the metric converges, the preconditioned eigenvalues span [hmin⁡,hmax⁡][h_{\min}, h_{\max}][hmin​,hmax​]. Stability requires η rt max⁡(esi hi)<2\eta\,r_t\,\max(e^{s_i}\,h_i) < 2ηrt​max(esi​hi​)<2. We compared the maximum stable η\etaη at κ=100\kappa = 100κ=100 across the three embedding choices.

EmbeddingMaximum stable η\etaη at κ=100\kappa = 100κ=100
Plain (f=Lf = Lf=L)∼1.0\sim 1.0∼1.0
Log (f=log⁡Lf = \log Lf=logL)∼1.0\sim 1.0∼1.0
Identity (ξ=0\xi = 0ξ=0)∼0.03\sim 0.03∼0.03

The plain embedding is self-stabilising: large gradients automatically reduce rtr_trt​, permitting much larger η\etaη during the metric transient. The identity embedding (ξ=0\xi = 0ξ=0) gives no safety net, and the stability window is 30 times smaller during the transient. So the practical recommendation is ξ=0\xi = 0ξ=0 at deployment (Section 7), with the plain embedding kept as a fallback if the optimisation hits a transient instability and needs the geometric safety net.

9. The final algorithm

The composition of the answers to the six questions gives a clean algorithm with three free hyperparameters (plus momentum if used).

Inputs: learning rate η\etaη, metric smoothing rate βs=μλ\beta_s = \mu\lambdaβs​=μλ, clip bound ccc. Optional: momentum coefficient βm\beta_mβm​.

Each step:

(1) Compute the gradient gt=∇L(θt)g_t = \nabla L(\theta_t)gt​=∇L(θt​).

(2) Estimate the Hessian diagonal via Hutchinson: draw a Rademacher vector v∈{−1,+1}Nv \in \{-1, +1\}^Nv∈{−1,+1}N, compute HvHvHv via reverse-mode autodiff, set h^i,t=vi (Hv)i\hat h_{i,t} = v_i\,(Hv)_ih^i,t​=vi​(Hv)i​.

(3) Update the metric: si,t+1=(1−βs) si,t−βs log⁡max⁡(h^i,t,ε)s_{i,t+1} = (1 - \beta_s)\,s_{i,t} - \beta_s\,\log \max(\hat h_{i,t}, \varepsilon)si,t+1​=(1−βs​)si,t​−βs​logmax(h^i,t​,ε).

(4) Mean-center and clip: si←si−sˉs_i \leftarrow s_i - \bar ssi​←si​−sˉ, then si←clip(si,−c,+c)s_i \leftarrow \mathrm{clip}(s_i, -c, +c)si​←clip(si​,−c,+c).

(5) Update parameters: θt+1=θt−η diag(es) gt\theta_{t+1} = \theta_t - \eta\,\mathrm{diag}(e^s)\,g_tθt+1​=θt​−ηdiag(es)gt​.

9.1 Before versus after

Original heuristicDerived
Hyperparameters103 (+1 if using momentum)
Metric stabilityDiverges without clippingGlobally asymptotically stable
Preconditioning qualityAnti-Newton (correlation +0.71+0.71+0.71)Newton (correlation −1.0-1.0−1.0)
Hessian estimationSecant (1100% initial bias)Hutchinson (unbiased)
Global dampingUnclear roleEliminated
Curvature correctionHeuristic tanh⁡\tanhtanhDerived from minimax theorem
Convergence guaranteeNoneLyapunov + Borkar

9.2 Closest published cousins

Adahessian (Yao et al., 2021) uses diagonal Hutchinson Hessian estimation with momentum. The key difference is parameterisation: Adahessian works in linear space (EMA of h2h^2h2, then square root, in the style of Adam), while the algorithm above works in log space (EMA directly on log⁡h\log hlogh). The log-space parameterisation is what enables the robustness theorem.

Sophia (Liu et al., 2024) uses a diagonal Hessian with clipping. Sophia clips the update ratio m/hm/hm/h element-wise and updates the Hessian every k=10k = 10k=10 steps. The derived optimiser clips the log-preconditioner sss (bounding the condition number of the metric) and updates the metric every step as a stable ODE.

What is genuinely new in the derived optimizer:

(a) the log-space stable dynamical system for the preconditioner update, with a formal Lyapunov proof;

(b) the separation principle, decomposing the update into independent dynamics and target subproblems with separate optimality results;

(c) the robustness theorem explaining log-space tolerance to estimation error.

10. Convergence rate analysis

The derived optimizer has two phases.

Phase 1, the metric transient: the EMA learns the Newton target. Metric error decays as (1−βs)t(1 - \beta_s)^t(1−βs​)t, reaching tolerance δ\deltaδ in Tmetric≈(1/βs) log⁡(∥e0∥/δ)T_{\mathrm{metric}} \approx (1/\beta_s)\,\log(\|e_0\|/\delta)Tmetric​≈(1/βs​)log(∥e0​∥/δ) steps, where e0e_0e0​ is the initial metric error. During this phase the preconditioned eigenvalues are not yet equal: the optimizer sees a partially-corrected canyon.

Phase 2, the metric equilibrium: all preconditioned eigenvalues are approximately hgeoh_{\mathrm{geo}}hgeo​, the effective condition number is approximately 1, and convergence is fast.

Phase 1 dominates the total iteration count. With a fixed learning rate η\etaη chosen safely for the worst (uncorrected) direction, the iteration complexity is O(κ)O(\sqrt\kappa)O(κ​), the same as plain momentum without preconditioning. The metric converges to a perfect Newton preconditioner, but the learning rate is set for the worst case throughout. The "perfect Newton" state is only reached at the end of Phase 1, and Phase 2 is short.

10.1 The L\sqrt LL​ embedding restores O(log⁡κ)O(\log \kappa)O(logκ) during the transient

The Question 5 / Question 6 conclusion (ξ=0\xi = 0ξ=0 at the optimum, plain embedding when ξ>0\xi > 0ξ>0) is the right asymptotic choice but discards an adaptive step-size mechanism that helps during the transient. A practical refinement: use the L\sqrt LL​ embedding (f(L)=Lf(L) = \sqrt Lf(L)=L​) with ξ>0\xi > 0ξ>0 during early training and let ξ\xiξ decay toward 000 as the optimizer approaches the minimum. Among power-law embeddings f(L)=Lpf(L) = L^pf(L)=Lp, only p=1/2p = 1/2p=1/2 makes the denominator dimensionally scale-independent under L→cLL \to c LL→cL. The scale-independent denominator absorbs the worst-case eigenvalue during the metric transient, giving O(log⁡κ)O(\log \kappa)O(logκ) iteration complexity instead of O(κ)O(\sqrt \kappa)O(κ​); much better than κ\sqrt \kappaκ​ for large κ\kappaκ, though not strictly an exponential improvement (the comparison is log⁡\loglog vs \sqrt{}​).

A quantitative comparison: on a problem with κ=105\kappa = 10^5κ=105, the L\sqrt LL​ embedding is 11 times faster than the plain embedding (with ξ\xiξ tuned in both cases). Full derivation and numerical comparison in notebooks/convergence-rates.nb.

The complete recipe is therefore: use the L\sqrt LL​ embedding with ξ>0\xi > 0ξ>0 during the metric transient (Phase 1), and the conclusions of Section 7 (which favour ξ→0\xi \to 0ξ→0 at convergence) take over in Phase 2 as the denominator naturally approaches 111. The two regimes compose continuously rather than contradicting each other.

11. Failure on real architectures

The derivation lives in a problem class: diagonal quadratics with deterministic gradients. Real neural-network Hessians do not lie in this class. Two failure modes were verified directly.

11.1 Failure mode 1: diagonal Newton is wrong for non-diagonal HHH

The Question 2 theorem assumes diagonal HHH. The Gauss-Newton Hessian of a dense layer y=Wxy = Wxy=Wx has the Kronecker structure Hlayer=A⊗BH_{\mathrm{layer}} = A \otimes BHlayer​=A⊗B, where A=X⊤X/∣B∣A = X^\top X / |\mathcal B|A=X⊤X/∣B∣ is the per-layer input second moment and B=(Go)⊤Go/∣B∣B = (G_o)^\top G_o / |\mathcal B|B=(Go​)⊤Go​/∣B∣ is the per-layer output-gradient second moment (averaged over batch size ∣B∣|\mathcal B|∣B∣, with GoG_oGo​ the matrix of output-gradients per sample). The symbol ⊗\otimes⊗ denotes the Kronecker tensor product. The off-diagonal mass of such a matrix is structured and large.

For the MNIST MLP dense2 layer (64×6464 \times 6464×64, approximately 4{,}000 parameters) measured after 100 training steps, the condition numbers of the preconditioned Hessian under three different preconditioner choices are:

Preconditionerκ(MH)\kappa(MH)κ(MH)
Identity (no preconditioning)1.79×1091.79 \times 10^91.79×109
Diagonal Newton1.16×1091.16 \times 10^91.16×109
Kronecker (A⊗BA \otimes BA⊗B)15.515.515.5

Diagonal Newton barely improves the condition number (the diagonal preconditioner cannot break up the off-diagonal block structure that dominates the spectrum). The Kronecker preconditioner, which respects the true factor structure of the Hessian, yields a condition number of 15.515.515.5, which is not literally "near 1" in the conditioning sense but is near-isotropic compared with 10910^9109 (an improvement of approximately eight orders of magnitude). The Kronecker upgrade that resolves this is the subject of the companion entry on pullback unification.

11.2 Failure mode 2: Hutchinson breaks on real architectures

The variance of the Hutchinson estimator scales as ∑j≠iHij2\sum_{j \ne i} H_{ij}^2∑j=i​Hij2​. Normalise this by the diagonal entry to get the diagonal-dominance ratio

ρi:=∑j≠iHij2Hii.\rho_i := \frac{\sqrt{\sum_{j \ne i} H_{ij}^2}}{H_{ii}}.ρi​:=Hii​∑j=i​Hij2​​​.

The estimator's variance, relative to the magnitude of HiiH_{ii}Hii​, is ρi2\rho_i^2ρi2​. The robustness theorem of Section 5.4 requires multiplicative error bounded by a value δ<1\delta < 1δ<1, which translates to ρ≲0.3\rho \lesssim 0.3ρ≲0.3 for the error to stay in the theorem's domain over the timescales the EMA averages.

We measured ρ\rhoρ on real architectures. The measurement uses the Hutchinson samples themselves, via the coefficient of variation of h^i\hat h_ih^i​ across multiple draws: ρi=std(h^i)/∣mean(h^i)∣\rho_i = \mathrm{std}(\hat h_i) / |\mathrm{mean}(\hat h_i)|ρi​=std(h^i​)/∣mean(h^i​)∣. The code is in scripts/rho-measurements.py.

MNIST MLP (55K parameters, three dense layers), Optuna-tuned, 200 epochs:

Layerρ\rhoρ at epoch 0ρ\rhoρ at epoch 199P(h^i<0)P(\hat h_i < 0)P(h^i​<0)
Layer 1 kernel744138-39%
Layer 2 kernel743948-50%
Layer 3 kernel1861144-49%

Miniature 4-layer transformer (843K parameters), Optuna-tuned, 200 epochs:

Layerρ\rhoρ
Self-attention layer 0, value kernel35{,}402
Self-attention layer 0, output kernel33{,}718
Dense layer 3 kernel6{,}598
Embedding layer 1855

For MNIST MLP, ρ\rhoρ values of 111111 to 186186186 are approximately one to two orders of magnitude outside the usable-threshold of about 0.30.30.3. For the transformer attention layers, ρ\rhoρ values of 10310^3103 to 10410^4104 are three to five orders of magnitude outside. The sign-error probability (the empirical fraction of h^i<0\hat h_i < 0h^i​<0) is 38 to 50% on the dense layers. Across 200 training epochs, the metric never gets within 10 nats of the Newton target on either architecture.

The variance scaling has a Kronecker amplification effect. For a Kronecker-structured Hessian H=A⊗BH = A \otimes BH=A⊗B, where the factor matrices AAA and BBB have their own diagonal-dominance ratios ρA\rho_AρA​ and ρB\rho_BρB​, the joint diagonal-dominance ratio for the Kronecker product satisfies ρ2=ρA2+ρB2+ρA2ρB2\rho^2 = \rho_A^2 + \rho_B^2 + \rho_A^2 \rho_B^2ρ2=ρA2​+ρB2​+ρA2​ρB2​. Even modest non-diagonality of each Kronecker factor compounds multiplicatively. This explains the catastrophic ρ\rhoρ values on transformer attention layers, where the factor matrices are themselves moderately non-diagonal.

Per-layer \rho_i distribution: 1-2 OOM on MNIST MLP, 3-5 OOM on MiniGPT

11.3 The definitive evidence: full-batch ablation

To isolate whether the failure is caused by gradient noise or by the target itself, MNIST was trained with the entire training set as one batch (so the gradient noise from minibatch sampling is zero) using the exact Gauss-Newton diagonal (so the Hessian estimation noise is zero). Running 1000 steps at a fixed learning rate, sweeping the clip ccc:

Clip cccκ(M)\kappa(M)κ(M)Accuracy at step 1000Fraction of components clipped
0.52.797.00%92%
1.07.497.07%84%
2.05596.92%69%
4.02{,}98195.61%37%
8.080{,}34994.89%0%

At c=8c = 8c=8 the clip never activates: the full Newton target is expressed. This is the worst result. Accuracy decreases monotonically as preconditioning aggressiveness increases. For reference, Adam reaches 97.17% under the same conditions and SGD reaches 94.22%.

This is the definitive evidence. Minibatch noise is not the cause: full-batch results are within 0.3% of minibatch results step-for-step. The cause is the target itself: diagonal Newton preconditioning of a non-diagonal Hessian inflates the effective condition number, as predicted by Section 11.1. The derived optimiser works best in this regime when the clip forces minimal preconditioning (c≈1c \approx 1c≈1, κ(M)≈7\kappa(M) \approx 7κ(M)≈7), at which point the optimiser is essentially SGD with a mild rescaling and matches Adam. The full reproduction code is in scripts/fullbatch-ablation.py.

Full-batch ablation: accuracy vs clip threshold, peak at c \approx 1

11.4 Standing in the 1000-trial sweep

The curvature-aware diagonal (sgd_learn_diag_curv) — the optimizer this entry derives and cleans up — is in the project's 1000-trial MNIST MLP Optuna sweep (results/mnist_mlp/). Its standing corroborates the failure analysis: a high best-run ceiling but a median well below the baselines.

OptimizerBestMedianMeanWorst
sgd_learn_diag_curv98.39%78.04%60.88%5.36%
Adam98.09%94.73%72.69%9.80%
SGD98.04%78.19%58.43%2.57%
Muon98.39%93.73%70.53%9.29%

The ceiling ties Muon for the best single run, but the median (78.04%78.04\%78.04%) sits ≈16{\approx}16≈16 points below Adam — the same high-ceiling / low-robustness signature the full-batch ablation (§11.3) traces to diagonal misspecification against Kronecker-structured Hessians.

12. What survives

The derived optimiser is mathematically clean. Every component has a theorem behind it. Ten hyperparameters reduce to three. Lyapunov stability is global. The robustness theorem is striking. The Lyapunov-stable preconditioner update with the natural-gradient correction is a foundational contribution: no prior optimizer frames the preconditioner update as a provably stable ODE.

The Question 2 minimax theorem is tautological in the formal sense, as discussed in the companion entry on the master minimax framework. An instance of the framework is tautological when the preconditioner class can exactly invert any element of the problem class: in that case the "minimax-optimal preconditioner" is just the inverse, and the theorem is an algorithmic re-derivation of a known optimizer (Newton, in this case). The same is true for the Kronecker-level upgrade, which reproduces KFAC (Martens and Grosse, 2015).

On real neural networks, the diagonal preconditioner class is structurally misspecified for the Kronecker structure of layer Hessians (Section 11.1), and the Hutchinson estimator's variance scales quadratically with each Kronecker factor's non-diagonality (Section 11.2). Both failure modes are mechanistically explained, not statistically noisy.

What survives as contribution: the Lyapunov / natural-gradient stable update for the preconditioner; the separation principle for dynamics and target; the robustness theorem explaining why log-space targets tolerate enormous estimation error within their domain; the unified pullback-metric view connecting SGD, Newton, Gauss-Newton, Fisher, and KFAC; and precise mechanistic explanations for why naive diagonal Newton and Hutchinson curvature estimation do not transfer to neural networks.

What does not survive: a "derived state-of-the-art optimizer from differential geometry" claim. On MNIST, the derived optimizer loses to SGD. Hutchinson is not a viable curvature estimator for real architectures. Diagonal is not the right structural level for neural-network preconditioning.

The framework's contribution at the diagonal level is foundational understanding rather than a new dominant optimizer. The natural next move, minimax at the Kronecker level, produces KFAC, which is itself competitive but not Adam-beating on benchmarks.

Appendix A: Lyapunov stability of the corrected metric update

This appendix gives the full proof of global asymptotic stability for the metric update s˙i=μ[ξgi2−λsi]\dot s_i = \mu[\xi g_i^2 - \lambda s_i]s˙i​=μ[ξgi2​−λsi​].

Assume the gradient components gig_igi​ are constants (this is the appropriate setting for fixed-point analysis of the sss subsystem; the joint case is in Appendix D). The unique equilibrium is si∗=ξgi2/λs_i^* = \xi g_i^2 / \lambdasi∗​=ξgi2​/λ. Define the Lyapunov candidate

V(s)=12∥s−s∗∥2=12∑i(si−si∗)2.V(s) = \tfrac{1}{2} \|s - s^*\|^2 = \tfrac{1}{2} \sum_i (s_i - s_i^*)^2.V(s)=21​∥s−s∗∥2=21​i∑​(si​−si∗​)2.

This is non-negative, equal to zero only at s=s∗s = s^*s=s∗, and radially unbounded. Differentiate along the dynamics:

V˙=∑i(si−si∗) s˙i=∑i(si−si∗) μ (ξgi2−λsi).\dot V = \sum_i (s_i - s_i^*)\,\dot s_i = \sum_i (s_i - s_i^*)\,\mu\,(\xi g_i^2 - \lambda s_i).V˙=i∑​(si​−si∗​)s˙i​=i∑​(si​−si∗​)μ(ξgi2​−λsi​).

Substitute ξgi2=λsi∗\xi g_i^2 = \lambda s_i^*ξgi2​=λsi∗​ from the equilibrium definition:

V˙=∑i(si−si∗) μ (λsi∗−λsi)=−μλ∑i(si−si∗)2=−2μλV.\dot V = \sum_i (s_i - s_i^*)\,\mu\,(\lambda s_i^* - \lambda s_i) = -\mu \lambda \sum_i (s_i - s_i^*)^2 = -2 \mu \lambda V.V˙=i∑​(si​−si∗​)μ(λsi∗​−λsi​)=−μλi∑​(si​−si∗​)2=−2μλV.

So V(t)=V(0) e−2μλtV(t) = V(0)\,e^{-2 \mu \lambda t}V(t)=V(0)e−2μλt, decaying exponentially at rate 2μλ2 \mu \lambda2μλ. The decay is global: no linearisation was used and the result holds for all initial conditions. This is global asymptotic stability.

In discrete time, with stepsize Δt\Delta tΔt, the update is st+1=(1−μλΔt)st+μξg2Δts_{t+1} = (1 - \mu\lambda \Delta t) s_t + \mu \xi g^2 \Delta tst+1​=(1−μλΔt)st​+μξg2Δt. Stability requires ∣1−μλΔt∣<1|1 - \mu\lambda \Delta t| < 1∣1−μλΔt∣<1, which holds for Δt<2/(μλ)\Delta t < 2/(\mu\lambda)Δt<2/(μλ). Standard implementations use Δt=1\Delta t = 1Δt=1 and absorb μλ\mu\lambdaμλ into a single rate βs=μλ\beta_s = \mu\lambdaβs​=μλ with βs∈(0,1)\beta_s \in (0, 1)βs​∈(0,1).

Appendix B: Robustness theorem

Let HHH be a diagonal N×NN \times NN×N matrix with positive diagonal entries HiiH_{ii}Hii​, and let H^ii\hat H_{ii}H^ii​ be estimates with multiplicative error bounded by δ∈[0,1)\delta \in [0, 1)δ∈[0,1):

∣H^iiHii−1∣≤δfor every i.\left|\frac{\hat H_{ii}}{H_{ii}} - 1\right| \le \delta \quad \text{for every } i.​Hii​H^ii​​−1​≤δfor every i.

With Newton-style preconditioner M=diag(H^ii−1)M = \mathrm{diag}(\hat H_{ii}^{-1})M=diag(H^ii−1​) multiplied by a normalising scalar α=(∏iH^ii)1/N\alpha = (\prod_i \hat H_{ii})^{1/N}α=(∏i​H^ii​)1/N (which corresponds to mean-centering in sss-space), the preconditioned matrix MHMHMH has diagonal entries

(MH)ii=α HiiH^ii.(MH)_{ii} = \alpha\,\frac{H_{ii}}{\hat H_{ii}}.(MH)ii​=αH^ii​Hii​​.

By the multiplicative error bound, Hii/H^ii∈[1/(1+δ),1/(1−δ)]H_{ii}/\hat H_{ii} \in [1/(1+\delta), 1/(1-\delta)]Hii​/H^ii​∈[1/(1+δ),1/(1−δ)]. Therefore

max⁡i(MH)iimin⁡i(MH)ii≤1/(1−δ)1/(1+δ)=1+δ1−δ.\frac{\max_i (MH)_{ii}}{\min_i (MH)_{ii}} \le \frac{1/(1-\delta)}{1/(1+\delta)} = \frac{1+\delta}{1-\delta}.mini​(MH)ii​maxi​(MH)ii​​≤1/(1+δ)1/(1−δ)​=1−δ1+δ​.

This is the bound on the preconditioned condition number. Note that the bound is independent of κ(H)\kappa(H)κ(H) and independent of NNN.

Numerical illustration: at δ=0.5\delta = 0.5δ=0.5, the bound gives κprec≤3\kappa_{\mathrm{prec}} \le 3κprec​≤3; at δ=0.9\delta = 0.9δ=0.9, the bound gives κprec≤19\kappa_{\mathrm{prec}} \le 19κprec​≤19. Either way, this is a dramatic reduction from κ(H)\kappa(H)κ(H) even when the estimation error is large.

The bound is tight in the worst case: take H^ii\hat H_{ii}H^ii​ to alternate between Hii(1+δ)H_{ii}(1+\delta)Hii​(1+δ) and Hii(1−δ)H_{ii}(1-\delta)Hii​(1−δ), and the bound is achieved with equality.

The reason the theorem is so strong is the log-space parameterisation. A multiplicative error in H^ii\hat H_{ii}H^ii​ is an additive error in log⁡H^ii\log \hat H_{ii}logH^ii​, hence in sis_isi​. The target spectrum spans log⁡(κ(H))\log(\kappa(H))log(κ(H)) nats, so an additive error of log⁡(1+δ)≈δ\log(1+\delta) \approx \deltalog(1+δ)≈δ nats is small relative to the target span. The condition-number bound is the exponential of twice the additive error in sss, which is exactly (1+δ)/(1−δ)(1+\delta)/(1-\delta)(1+δ)/(1−δ).

The theorem does not apply if the estimate has the wrong sign (multiplicative error greater than 1 in magnitude). On real architectures the wrong-sign rate is 40 to 50% (Section 11.2), placing the estimator outside the theorem's domain.

Appendix C: Hutchinson estimator details

The Hutchinson estimator for the diagonal of a square matrix HHH uses a random vector vvv to project the matrix into a scalar that, in expectation, recovers a chosen diagonal entry.

Algorithm. Draw vi∈{−1,+1}v_i \in \{-1, +1\}vi​∈{−1,+1} independently with equal probability (Rademacher distribution). Compute w=Hvw = Hvw=Hv via one application of HHH. The Rademacher choice can be replaced by any zero-mean unit-variance distribution; the Rademacher distribution is variance-optimal within this class (see below). Set h^i=vi wi\hat h_i = v_i\,w_ih^i​=vi​wi​ for each iii.

Unbiasedness. E[vivj]=δij\mathbb{E}[v_i v_j] = \delta_{ij}E[vi​vj​]=δij​ because the components are independent. Therefore

E[h^i]=E[vi∑jHij vj]=∑jHij E[vivj]=∑jHij δij=Hii.\mathbb{E}[\hat h_i] = \mathbb{E}\Bigl[v_i \sum_j H_{ij}\,v_j\Bigr] = \sum_j H_{ij}\,\mathbb{E}[v_i v_j] = \sum_j H_{ij}\,\delta_{ij} = H_{ii}.E[h^i​]=E[vi​j∑​Hij​vj​]=j∑​Hij​E[vi​vj​]=j∑​Hij​δij​=Hii​.

Variance.

Var(h^i)=E[h^i2]−Hii2=E[vi2 (∑jHij vj)2]−Hii2.\mathrm{Var}(\hat h_i) = \mathbb{E}[\hat h_i^2] - H_{ii}^2 = \mathbb{E}\Bigl[v_i^2\,\Bigl(\sum_j H_{ij}\,v_j\Bigr)^2\Bigr] - H_{ii}^2.Var(h^i​)=E[h^i2​]−Hii2​=E[vi2​(j∑​Hij​vj​)2]−Hii2​.

Expanding the square and using vi2=1v_i^2 = 1vi2​=1 identically (the special feature of the Rademacher distribution),

Var(h^i)=∑j,kHij Hik E[vj vk]−Hii2=∑jHij2−Hii2=∑j≠iHij2.\mathrm{Var}(\hat h_i) = \sum_{j, k} H_{ij}\,H_{ik}\,\mathbb{E}[v_j\,v_k] - H_{ii}^2 = \sum_j H_{ij}^2 - H_{ii}^2 = \sum_{j \ne i} H_{ij}^2.Var(h^i​)=j,k∑​Hij​Hik​E[vj​vk​]−Hii2​=j∑​Hij2​−Hii2​=j=i∑​Hij2​.

The variance is the off-diagonal squared row sum of HHH, normalised by Hii2H_{ii}^2Hii2​ it is exactly ρi2\rho_i^2ρi2​.

Why Rademacher specifically. Among zero-mean unit-variance distributions, the Rademacher distribution achieves the lower bound on E[vi4]\mathbb{E}[v_i^4]E[vi4​] (which is 1 because vi2=1v_i^2 = 1vi2​=1 identically). The variance calculation involves E[vi2vj2]\mathbb{E}[v_i^2 v_j^2]E[vi2​vj2​] terms; these are minimised by Rademacher. A Gaussian vvv would give a variance constant of 2 times the Rademacher value, which is the standard trade-off when choosing between the two.

Computational cost. One HvHvHv product is one extra reverse-mode autodiff pass per training step, approximately doubling the per-step cost relative to a vanilla gradient computation. For amortisation across multiple samples per step (the multi-Hutchinson estimator), the cost scales linearly in the number of samples.

Appendix D: Joint (θ,s)(\theta, s)(θ,s) Lyapunov function

The joint Lyapunov function for the coupled (θ,s)(\theta, s)(θ,s) system on a diagonal quadratic loss is

V(θ,s)=L(θ)+α2 ∥s−s∗∥2V(\theta, s) = L(\theta) + \tfrac{\alpha}{2}\,\|s - s^*\|^2V(θ,s)=L(θ)+2α​∥s−s∗∥2

for any α>0\alpha > 0α>0. We show that V˙≤0\dot V \le 0V˙≤0 along the joint dynamics, with equality only at the joint equilibrium.

The joint dynamics. The parameter update on a quadratic with diagonal H=diag(h)H = \mathrm{diag}(h)H=diag(h) is θ˙i=−η r esi gi=−η r esi hi θi\dot \theta_i = -\eta\,r\,e^{s_i}\,g_i = -\eta\,r\,e^{s_i}\,h_i\,\theta_iθ˙i​=−ηresi​gi​=−ηresi​hi​θi​. The metric update with the Newton-targeted driving force is s˙i=μ λ (si∗−si)\dot s_i = \mu\,\lambda\,(s_i^* - s_i)s˙i​=μλ(si∗​−si​), where si∗=−log⁡hi+log⁡h‾s_i^* = -\log h_i + \overline{\log h}si∗​=−loghi​+logh​ is constant on a fixed quadratic (it does not depend on θ\thetaθ). This is the form used here. The earlier gradient-magnitude rule s˙i=μ[ξgi2−λsi]\dot s_i = \mu[\xi g_i^2 - \lambda s_i]s˙i​=μ[ξgi2​−λsi​] has a θ\thetaθ-dependent target via gi=hiθig_i = h_i \theta_igi​=hi​θi​, and the Lyapunov argument below would need modification to account for that coupling; on a quadratic, the Newton-targeted form has the convenient property of a fixed target, which is what makes the joint analysis clean.

The loss is L(θ)=12∑ihi θi2L(\theta) = \tfrac{1}{2} \sum_i h_i\,\theta_i^2L(θ)=21​∑i​hi​θi2​, so L˙=∑ihi θi θ˙i=−η r∑iesi hi2 θi2\dot L = \sum_i h_i\,\theta_i\,\dot \theta_i = -\eta\,r \sum_i e^{s_i}\,h_i^2\,\theta_i^2L˙=∑i​hi​θi​θ˙i​=−ηr∑i​esi​hi2​θi2​. This term is non-positive: η,r>0\eta, r > 0η,r>0, esi>0e^{s_i} > 0esi​>0, hi2>0h_i^2 > 0hi2​>0, θi2≥0\theta_i^2 \ge 0θi2​≥0.

The metric error term has 12 d/dt(∥s−s∗∥2)=∑i(si−si∗) s˙i=−μλ∥s−s∗∥2\tfrac{1}{2}\,d/dt(\|s - s^*\|^2) = \sum_i (s_i - s_i^*)\,\dot s_i = -\mu\lambda \|s - s^*\|^221​d/dt(∥s−s∗∥2)=∑i​(si​−si∗​)s˙i​=−μλ∥s−s∗∥2 by direct substitution of s˙i=μλ(si∗−si)\dot s_i = \mu\lambda(s_i^* - s_i)s˙i​=μλ(si∗​−si​). This is also non-positive.

Therefore

V˙=L˙+α2 ddt∥s−s∗∥2=−η r∑iesi hi2 θi2  −  α μ λ ∥s−s∗∥2.\dot V = \dot L + \tfrac{\alpha}{2}\,\frac{d}{dt}\|s - s^*\|^2 = -\eta\,r \sum_i e^{s_i}\,h_i^2\,\theta_i^2 \;-\; \alpha\,\mu\,\lambda\,\|s - s^*\|^2.V˙=L˙+2α​dtd​∥s−s∗∥2=−ηri∑​esi​hi2​θi2​−αμλ∥s−s∗∥2.

Both terms are non-positive, and the sum is zero only when θ=0\theta = 0θ=0 and s=s∗s = s^*s=s∗. This is global asymptotic stability of the joint system.

The parameter α>0\alpha > 0α>0 is free in the sense that any positive choice gives a valid Lyapunov function. In particular, no relationship between μ\muμ and η\etaη is required: the joint dynamics are stable for any ratio μ/η>0\mu/\eta > 0μ/η>0. This was a key concern at the start of the program (whether the slow-fast timescale ratio mattered), and the Lyapunov calculation shows that on quadratics it does not.

Beyond quadratics: at a non-degenerate local minimum, the joint Jacobian is block-triangular because ℓ=0\ell = 0ℓ=0 at the minimum kills the cross-coupling. Local asymptotic stability follows from each diagonal block being a contraction. With diminishing step sizes and additional assumptions (martingale-difference noise, Lipschitz dynamics, boundedness of the iterates, and the standard timescale-ratio condition ηt/μt→0\eta_t/\mu_t \to 0ηt​/μt​→0), Borkar's two-timescale stochastic-approximation theorem (Borkar, 1997) gives almost-sure convergence to the stable equilibrium set; with constant step sizes, the iterates converge to an O(η+μ)O(\eta + \mu)O(η+μ) neighbourhood. The Borkar hypotheses are non-trivial to verify on real architectures and we do not claim to do so here; the role of the theorem is to suggest that the joint stability of the quadratic analysis extends to the stochastic case under conventional regularity, not to provide an end-to-end proof of convergence for deep network training.

Appendix E: Full-batch ablation methodology

The full-batch ablation in Section 11.3 is constructed to isolate the contribution of each potential cause of the diagonal-Newton failure on MNIST. We list the controls explicitly.

The training set is the full 60{,}000-sample MNIST training set, used as a single batch for every gradient evaluation. This eliminates minibatch sampling noise from the gradient.

The Hessian diagonal is computed exactly via the Gauss-Newton approximation, HGN=J⊤JH_{\mathrm{GN}} = J^\top JHGN​=J⊤J for a regression layer and the appropriate generalisation for softmax-cross-entropy. The diagonal entries are extracted analytically rather than estimated via Hutchinson. This eliminates Hessian-estimation noise.

The model is a three-layer MLP with ReLU activations, batch normalisation off, no dropout, fixed random seed. The model has approximately 55K parameters. The clip parameter ccc is swept across {0.5,1.0,2.0,4.0,8.0}\{0.5, 1.0, 2.0, 4.0, 8.0\}{0.5,1.0,2.0,4.0,8.0}. All other hyperparameters are held fixed at their values from the best Optuna run for c=1c = 1c=1.

The accuracy reported is on the held-out 10{,}000-sample test set after 1000 gradient steps. Adam and SGD baselines use the same loss function and step count with their own tuned hyperparameters.

The result is that accuracy decreases monotonically with ccc when both gradient noise and Hessian noise are removed. Since the only thing varying is the aggressiveness of the diagonal Newton preconditioning, the cause of the failure is the preconditioning itself, not the estimation. This is the experimental complement to the structural argument of Section 11.1 (Kronecker structure makes diagonal preconditioning misspecified).

Appendix F: Attached materials

Notebooks (notebooks/):

  • notebooks/newton-minimax-comparison.nb: symbolic verification of the Newton minimax theorem and numerical comparison on the 10-dimensional quadratic. Generates the Section 4.4 table.
  • notebooks/lyapunov-stability.nb: symbolic verification of the Appendix A Lyapunov calculation and numerical integration of the metric ODE from multiple initial conditions, confirming exponential decay.
  • notebooks/hutchinson-robustness.nb: numerical verification of the robustness theorem for sweeps over δ\deltaδ, plus the Section 5.3 estimator comparison table.
  • notebooks/joint-lyapunov-verification.nb: numerical integration of the coupled (θ,s)(\theta, s)(θ,s) dynamics from 2000 random initialisations on quadratics of dimension up to 50; confirms monotonic decrease of V(θ,s)V(\theta, s)V(θ,s).
  • notebooks/convergence-rates.nb: phase analysis of the O(κ)O(\sqrt\kappa)O(κ​) scaling, derivation of the L\sqrt LL​ embedding O(log⁡κ)O(\log\kappa)O(logκ) result, and the 11-times speedup comparison on κ=100,000\kappa = 100{,}000κ=100,000.

Scripts (scripts/):

  • scripts/rho-measurements.py: measures the diagonal-dominance ratio ρ\rhoρ from Hutchinson samples on a given model and dataset, producing the tables in Section 11.2.
  • scripts/fullbatch-ablation.py: reproduces the Section 11.3 MNIST full-batch sweep, including the clip-sweep table.
  • scripts/make_figures.py: reproduces every figure shown in this entry (PDF and PNG written to figures/).

References

Borkar, V.S. (1997). Stochastic approximation with two time scales. Systems and Control Letters, 29(5), 291-294.

Hutchinson, M.F. (1989). A stochastic estimator of the trace of the influence matrix for Laplacian smoothing splines. Communications in Statistics: Simulation and Computation, 18(3), 1059-1076.

Liu, H., Tian, X., Chen, X., Tao, R., Liu, Y. (2024). Sophia: A scalable stochastic second-order optimizer for language model pre-training. International Conference on Learning Representations.

Martens, J., Grosse, R. (2015). Optimizing neural networks with Kronecker-factored approximate curvature. International Conference on Machine Learning, 2408-2417.

Yao, Z., Gholami, A., Shen, S., Mustafa, M., Keutzer, K., Mahoney, M.W. (2021). AdaHessian: An adaptive second order optimizer for machine learning. AAAI Conference on Artificial Intelligence, 35(12), 10665-10673.

Metadata

Type
result
Visibility
public
Published
May 17, 2026
Last updated
Jun 4, 2026

Tags

derived-optimizerhutchinsoninduced-metrickronecker-hessianlyapunov-stabilityminimaxnegative-resultneural-network-optimizationnewton-preconditioningrobustness-theorem