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.
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 that this optimizer used at the start of the program was
followed by mean-centering () and clipping (). Here is the gradient component, is a cheap estimate of the diagonal Hessian entry, and the symbols are hyperparameters. Adding the global denominator from the smooth-clipping mechanism, the parameter update is with the bias-corrected momentum. The complete hyperparameter list is , 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 grows exponentially in while the regulariser grows linearly. The equilibrium of the two requires (the existence condition for the Lambert function). In practice is in the range to , 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 term, relaxes to . On a quadratic loss , where , this gives . Directions with large curvature receive large metric, which is the opposite of Newton preconditioning. The Pearson correlation between the learned and , measured on a 10-dimensional quadratic with random condition number 100, comes out to . Newton would give .
Third, the role of the denominator 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 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.
The metric scale is . The quantity we want to control is the denominator trace , which is linear in ,
This is bounded and well-behaved. The optimizer, however, updates , not itself, and the chain rule introduces
The factor 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 in the -parameterisation has no exponential dependence.
Update using the gradient with respect to , not with respect to . This is mirror descent in -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 to undo the exponential Jacobian.) The corrected update is
The factor is gone. In code this is one line.
For fixed gradients, the equilibrium always exists. To prove the equilibrium is globally asymptotically stable, take the Lyapunov candidate . 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 along the dynamics,
The substitution uses from the equilibrium definition. So decreases exponentially at rate , regardless of initial conditions and regardless of or individually. Global asymptotic stability follows without any linearisation.
In the actual optimizer, the gauge symmetry is fixed by mean-centering: we enforce . With the constraint added via a Lagrange multiplier , the equilibrium conditions become
Solving the system gives where , and
The constrained equilibrium always exists and is always stable (the Hessian of on the constraint surface remains positive-definite). The Lagrange multiplier is the per-component bias that the constraint introduces.
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 () rather than the only thing preventing divergence. In practice we keep a modest clip () as a safeguard for noisy stochastic gradients.
The Q1 fix has a generalisation that is useful for the rest of the program. The general form of the update rule is
where is the dynamics modulator and is the target driver. At equilibrium (assuming does not vanish), the equilibrium satisfies , so depends only on and not on . This is the separation principle: the rate at which the metric converges (governed by ) and the place it converges to (governed by ) are independent design choices.
The original rule corresponds to (unstable) and (anti-Newton). The Q1 fix sets while leaving unchanged.
Two arguments single out within the class of that preserve the same equilibrium.
A minimax convergence-rate argument. Non-uniform produces non-uniform per-component convergence rates. The worst-case rate dominates the overall convergence. Maintaining stability with non-uniform forces a reduction of to accommodate the fastest component, which slows every other component. The choice that maximises the worst-case rate is uniform , which after normalisation is .
A noise-robustness argument. Under stochastic gradients, the variance of scales as . Any amplifies the noise injected into . The choice that minimises noise amplification is .
The dynamics question is fully resolved by . The remaining question is what should be.
On a local quadratic model with , the preconditioned gradient descent update is . Substituting gives , so the per-coordinate contraction factor is
The overall convergence rate is the maximum across coordinates. The objective is to choose minimising this maximum.
Among diagonal preconditioners with ,
(a) the minimax convergence rate is achieved uniquely at
where ;
(b) at this optimum, all per-coordinate preconditioned eigenvalues equal , where is the geometric mean of the curvatures (the contraction factors are then all equal to );
(c) with the additional optimal choice of learning rate , the rate is zero (one-step convergence).
The term "minimax" here means the optimisation : we choose 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.
Let . Mean-centering enforces , equivalently , so
is independent of . The problem reduces to minimising subject to fixed product of . The argument is an endpoint-equalisation: suppose the maximum of over is attained both at the largest (call it ) and the smallest (). If further, grows; if further, grows. So any spread that pushes down or up (while preserving the geometric mean by the product constraint) strictly increases . Conversely, contracting the spread toward the geometric mean weakly decreases the maximum. The optimum is therefore attained at for all , giving and (after taking logs and applying mean-centering) . This proves (a). Part (b) is immediate from the definition of at the optimum. For (c), makes for every , giving .
(The naive "strict convexity of " version of this argument is false: the function is concave for and convex for , with a kink at . The endpoint argument above sidesteps the kink.)
The optimal metric is Newton preconditioning in log-space, with mean-centering as a gauge fix. Every preconditioned eigenvalue equals . 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 for arbitrary would work, and the natural choice is .
On a 10-dimensional quadratic with condition number 100, run for 20{,}000 steps, the comparison between the original anti-Newton rule, the heuristic rule that the curvature-aware variant added, and the Newton minimax target is striking.
Taking the unpreconditioned baseline at (Section 5.3):
| Rule | Final loss | Ratio vs no preconditioning |
|---|---|---|
| (anti-Newton) | times worse | |
| heuristic | times worse | |
| Newton target | 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 . The full numerical comparison, including loss-vs-step trajectories, is in notebooks/newton-minimax-comparison.nb.

By the separation principle, choose , so the equilibrium satisfies (after mean-centering). The discrete-time form of the update is
which is an exponential moving average (EMA) of with smoothing factor . The floor avoids the logarithm of zero or negative estimates of the diagonal Hessian. Three of the original hyperparameters () are absorbed or removed by this construction.
Two candidate estimators: the secant approximation, and Hutchinson's stochastic estimator.
Compare gradients at two consecutive iterates,
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 to get
The cross terms are systematic bias, not noise. The bias does not shrink as the step size shrinks because the ratios 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%.
Draw a Rademacher vector (each component independently with equal probability). Compute the Hessian-vector product via reverse-mode automatic differentiation (one extra backward pass per step). Then set
Take expectation over : because the components are independent and have unit variance. So
The estimator is exactly unbiased. The variance is
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 (which would give a larger variance constant).
On a 10-dimensional quadratic with condition number 100, run for 20{,}000 steps:
| Estimator | Final loss | Ratio vs no preconditioning |
|---|---|---|
| No preconditioning | baseline | |
| Secant + clip | times better | |
| Hutchinson + clip | times better | |
| Perfect Newton | 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 -times improvement in final accuracy on this problem.
Suppose every is within multiplicative factor of , that is, for some . Then the preconditioned condition number satisfies
This bound is independent of the original condition number and independent of the dimension .
The proof is short. The preconditioned spectrum has . The ratio , so the preconditioned eigenvalues lie in , and the ratio is . The full proof, including extension from multiplicative error to log-space error, is in Appendix B.
Numerical implications. Even with 50% estimation error (), . Even with 90% error (), , which on a problem with is still a 530-times improvement.
The mechanism is the log-space parameterisation. A factor-of- multiplicative error in shifts by , which is small for moderate . On a problem the target range of values is 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 by an order of magnitude, placing it outside the domain where the robustness theorem applies. Hutchinson stays inside the domain from step 1.

Per-component theorems analyse assuming 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.
For , the Hessian diagonal is the constant . The Newton target does not depend on . The metric converges to a fixed point, not a moving one, and the dynamics are decoupled from the dynamics.
Combine the energy in with the energy in relative to the Newton target,
for some to be chosen. The time derivative along the joint dynamics is
Both terms are non-positive. The energy is strictly decreasing except at the joint equilibrium , . This is global asymptotic stability of the joint system on quadratics, valid for any positive ratio . 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.
At any non-degenerate local minimum of a smooth (non-quadratic) loss, the joint Jacobian of the update is block-triangular,
The block-zero in the upper right is because at , killing all cross-terms between the block and the block. Eigenvalues of a block-triangular matrix are the eigenvalues of the diagonal blocks. Both blocks contract under standard learning-rate conditions (the block is the usual contraction of preconditioned gradient descent, the block contracts at rate ). 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 neighbourhood of the joint equilibrium. These guarantees are comparable in strength to the convergence results available for standard adaptive optimisers.
The smooth-clipping denominator with remains in the optimizer after Q1-Q4 have done their work. With Newton-targeted , does the denominator still help?
At Newton equilibrium , the denominator trace is
The trace is proportional to the loss. This was verified symbolically (Mathematica, ) and numerically (Python, , ).
The effective per-coordinate convergence rate becomes
As , . The asymptotic convergence rate is completely independent of .
Take , , .
| at step 50 | at step 100 | |
|---|---|---|
| 0 | ||
| 0.001 | ||
| 0.1 | ||
| 1 |
converges fastest. Increasing progressively slows convergence by damping the Newton step. The "safety" argument that prevents instability is redundant: the Newton metric already constrains every preconditioned eigenvalue to , so can be set directly against without needing a separate safety mechanism. With stochastic gradients is actively harmful: gradient noise contributes permanent damping that does not vanish as .
Set . This eliminates the denominator, the denominator EMA, and the hyperparameters and . The parameter update simplifies to
With , the embedding is moot. If is retained as a transient safety net before the metric converges, the choice of embedding function matters.
For the Newton preconditioning to function at convergence, the damping must vanish: as . With general embedding , the optimizer descends (not ) under the pullback metric, so the gradient in the embedded coordinates is and the Sherman-Morrison denominator becomes
where the in the numerator is the multiplicative correction from differentiating the embedded coordinate, and on the equilibrium-preconditioned quadratic. Among power-law embeddings , the limit requires . More generally, finite and non-zero forces near . The plain loss embedding (Thomas Harvey's original choice) is the unique non-interfering choice within this family.
For , we have , so as the denominator approaches . This is a permanent step-size cap that depends on 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.
Before the metric converges, the preconditioned eigenvalues span . Stability requires . We compared the maximum stable at across the three embedding choices.
| Embedding | Maximum stable at |
|---|---|
| Plain () | |
| Log () | |
| Identity () |
The plain embedding is self-stabilising: large gradients automatically reduce , permitting much larger during the metric transient. The identity embedding () gives no safety net, and the stability window is 30 times smaller during the transient. So the practical recommendation is 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.
The composition of the answers to the six questions gives a clean algorithm with three free hyperparameters (plus momentum if used).
Inputs: learning rate , metric smoothing rate , clip bound . Optional: momentum coefficient .
Each step:
(1) Compute the gradient .
(2) Estimate the Hessian diagonal via Hutchinson: draw a Rademacher vector , compute via reverse-mode autodiff, set .
(3) Update the metric: .
(4) Mean-center and clip: , then .
(5) Update parameters: .
| Original heuristic | Derived | |
|---|---|---|
| Hyperparameters | 10 | 3 (+1 if using momentum) |
| Metric stability | Diverges without clipping | Globally asymptotically stable |
| Preconditioning quality | Anti-Newton (correlation ) | Newton (correlation ) |
| Hessian estimation | Secant (1100% initial bias) | Hutchinson (unbiased) |
| Global damping | Unclear role | Eliminated |
| Curvature correction | Heuristic | Derived from minimax theorem |
| Convergence guarantee | None | Lyapunov + Borkar |
Adahessian (Yao et al., 2021) uses diagonal Hutchinson Hessian estimation with momentum. The key difference is parameterisation: Adahessian works in linear space (EMA of , then square root, in the style of Adam), while the algorithm above works in log space (EMA directly on ). 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 element-wise and updates the Hessian every steps. The derived optimiser clips the log-preconditioner (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.
The derived optimizer has two phases.
Phase 1, the metric transient: the EMA learns the Newton target. Metric error decays as , reaching tolerance in steps, where 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 , the effective condition number is approximately 1, and convergence is fast.
Phase 1 dominates the total iteration count. With a fixed learning rate chosen safely for the worst (uncorrected) direction, the iteration complexity is , 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.
The Question 5 / Question 6 conclusion ( at the optimum, plain embedding when ) is the right asymptotic choice but discards an adaptive step-size mechanism that helps during the transient. A practical refinement: use the embedding () with during early training and let decay toward as the optimizer approaches the minimum. Among power-law embeddings , only makes the denominator dimensionally scale-independent under . The scale-independent denominator absorbs the worst-case eigenvalue during the metric transient, giving iteration complexity instead of ; much better than for large , though not strictly an exponential improvement (the comparison is vs ).
A quantitative comparison: on a problem with , the embedding is 11 times faster than the plain embedding (with tuned in both cases). Full derivation and numerical comparison in notebooks/convergence-rates.nb.
The complete recipe is therefore: use the embedding with during the metric transient (Phase 1), and the conclusions of Section 7 (which favour at convergence) take over in Phase 2 as the denominator naturally approaches . The two regimes compose continuously rather than contradicting each other.
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.
The Question 2 theorem assumes diagonal . The Gauss-Newton Hessian of a dense layer has the Kronecker structure , where is the per-layer input second moment and is the per-layer output-gradient second moment (averaged over batch size , with the matrix of output-gradients per sample). The symbol denotes the Kronecker tensor product. The off-diagonal mass of such a matrix is structured and large.
For the MNIST MLP dense2 layer (, approximately 4{,}000 parameters) measured after 100 training steps, the condition numbers of the preconditioned Hessian under three different preconditioner choices are:
| Preconditioner | |
|---|---|
| Identity (no preconditioning) | |
| Diagonal Newton | |
| Kronecker () |
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 , which is not literally "near 1" in the conditioning sense but is near-isotropic compared with (an improvement of approximately eight orders of magnitude). The Kronecker upgrade that resolves this is the subject of the companion entry on pullback unification.
The variance of the Hutchinson estimator scales as . Normalise this by the diagonal entry to get the diagonal-dominance ratio
The estimator's variance, relative to the magnitude of , is . The robustness theorem of Section 5.4 requires multiplicative error bounded by a value , which translates to for the error to stay in the theorem's domain over the timescales the EMA averages.
We measured on real architectures. The measurement uses the Hutchinson samples themselves, via the coefficient of variation of across multiple draws: . The code is in scripts/rho-measurements.py.
MNIST MLP (55K parameters, three dense layers), Optuna-tuned, 200 epochs:
| Layer | at epoch 0 | at epoch 199 | |
|---|---|---|---|
| Layer 1 kernel | 74 | 41 | 38-39% |
| Layer 2 kernel | 74 | 39 | 48-50% |
| Layer 3 kernel | 186 | 11 | 44-49% |
Miniature 4-layer transformer (843K parameters), Optuna-tuned, 200 epochs:
| Layer | |
|---|---|
| Self-attention layer 0, value kernel | 35{,}402 |
| Self-attention layer 0, output kernel | 33{,}718 |
| Dense layer 3 kernel | 6{,}598 |
| Embedding layer 1 | 855 |
For MNIST MLP, values of to are approximately one to two orders of magnitude outside the usable-threshold of about . For the transformer attention layers, values of to are three to five orders of magnitude outside. The sign-error probability (the empirical fraction of ) 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 , where the factor matrices and have their own diagonal-dominance ratios and , the joint diagonal-dominance ratio for the Kronecker product satisfies . Even modest non-diagonality of each Kronecker factor compounds multiplicatively. This explains the catastrophic values on transformer attention layers, where the factor matrices are themselves moderately non-diagonal.

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 :
| Clip | Accuracy at step 1000 | Fraction of components clipped | |
|---|---|---|---|
| 0.5 | 2.7 | 97.00% | 92% |
| 1.0 | 7.4 | 97.07% | 84% |
| 2.0 | 55 | 96.92% | 69% |
| 4.0 | 2{,}981 | 95.61% | 37% |
| 8.0 | 80{,}349 | 94.89% | 0% |
At 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 (, ), 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.

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.
| Optimizer | Best | Median | Mean | Worst |
|---|---|---|---|---|
sgd_learn_diag_curv | 98.39% | 78.04% | 60.88% | 5.36% |
| Adam | 98.09% | 94.73% | 72.69% | 9.80% |
| SGD | 98.04% | 78.19% | 58.43% | 2.57% |
| Muon | 98.39% | 93.73% | 70.53% | 9.29% |
The ceiling ties Muon for the best single run, but the median () sits points below Adam — the same high-ceiling / low-robustness signature the full-batch ablation (§11.3) traces to diagonal misspecification against Kronecker-structured Hessians.
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.
This appendix gives the full proof of global asymptotic stability for the metric update .
Assume the gradient components are constants (this is the appropriate setting for fixed-point analysis of the subsystem; the joint case is in Appendix D). The unique equilibrium is . Define the Lyapunov candidate
This is non-negative, equal to zero only at , and radially unbounded. Differentiate along the dynamics:
Substitute from the equilibrium definition:
So , decaying exponentially at rate . 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 , the update is . Stability requires , which holds for . Standard implementations use and absorb into a single rate with .
Let be a diagonal matrix with positive diagonal entries , and let be estimates with multiplicative error bounded by :
With Newton-style preconditioner multiplied by a normalising scalar (which corresponds to mean-centering in -space), the preconditioned matrix has diagonal entries
By the multiplicative error bound, . Therefore
This is the bound on the preconditioned condition number. Note that the bound is independent of and independent of .
Numerical illustration: at , the bound gives ; at , the bound gives . Either way, this is a dramatic reduction from even when the estimation error is large.
The bound is tight in the worst case: take to alternate between and , and the bound is achieved with equality.
The reason the theorem is so strong is the log-space parameterisation. A multiplicative error in is an additive error in , hence in . The target spectrum spans nats, so an additive error of nats is small relative to the target span. The condition-number bound is the exponential of twice the additive error in , which is exactly .
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.
The Hutchinson estimator for the diagonal of a square matrix uses a random vector to project the matrix into a scalar that, in expectation, recovers a chosen diagonal entry.
Algorithm. Draw independently with equal probability (Rademacher distribution). Compute via one application of . 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 for each .
Unbiasedness. because the components are independent. Therefore
Variance.
Expanding the square and using identically (the special feature of the Rademacher distribution),
The variance is the off-diagonal squared row sum of , normalised by it is exactly .
Why Rademacher specifically. Among zero-mean unit-variance distributions, the Rademacher distribution achieves the lower bound on (which is 1 because identically). The variance calculation involves terms; these are minimised by Rademacher. A Gaussian 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 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.
The joint Lyapunov function for the coupled system on a diagonal quadratic loss is
for any . We show that along the joint dynamics, with equality only at the joint equilibrium.
The joint dynamics. The parameter update on a quadratic with diagonal is . The metric update with the Newton-targeted driving force is , where is constant on a fixed quadratic (it does not depend on ). This is the form used here. The earlier gradient-magnitude rule has a -dependent target via , 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 , so . This term is non-positive: , , , .
The metric error term has by direct substitution of . This is also non-positive.
Therefore
Both terms are non-positive, and the sum is zero only when and . This is global asymptotic stability of the joint system.
The parameter is free in the sense that any positive choice gives a valid Lyapunov function. In particular, no relationship between and is required: the joint dynamics are stable for any ratio . 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 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 ), 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 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.
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, 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 is swept across . All other hyperparameters are held fixed at their values from the best Optuna run for .
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 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).
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 , plus the Section 5.3 estimator comparison table.notebooks/joint-lyapunov-verification.nb: numerical integration of the coupled dynamics from 2000 random initialisations on quadratics of dimension up to 50; confirms monotonic decrease of .notebooks/convergence-rates.nb: phase analysis of the scaling, derivation of the embedding result, and the 11-times speedup comparison on .Scripts (scripts/):
scripts/rho-measurements.py: measures the diagonal-dominance ratio 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/).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.