Introduction
Second-order stochastic optimizers offer a compelling advantage over first-order methods like SGD or Adam by adapting parameter updates to the curvature of the loss landscape. However, these methods have historically been hindered by high computational costs and numerical instability. While the Shampoo optimizer addressed memory constraints through Kronecker factorization, it remains sensitive to numerical precision, often requiring 64-bit floating-point operations to handle ill-conditioned matrices. This requirement creates a bottleneck on modern AI accelerators, such as TPUs and GPUs, which are optimized for 32-bit or 16-bit precision.
The KrAD Factorization
The core contribution of this work is Kronecker Approximation-Domination (KrAD), a novel factorization technique that enables stable second-order optimization in standard 32-bit precision. Unlike Shampoo, which tracks curvature and subsequently computes an inverse matrix root, KrADagrad utilizes the Woodbury matrix identity to directly update an approximation of the inverse empirical Fisher matrix.
By maintaining the inverse directly, the algorithm avoids the precision-sensitive inversion step. Furthermore, KrADagrad only requires the computation of positive matrix roots (e.g., square roots) rather than inverse roots. Positive roots are significantly more stable in lower-precision environments, allowing the optimizer to run efficiently on standard hardware without sacrificing mathematical integrity.
Numerical Stability and the Precision Gap
The necessity of KrAD's approach is most evident in ill-conditioned scenarios. In synthetic "stress tests" involving poorly conditioned quadratic functions, traditional second-order methods like Shampoo fail when restricted to 32-bit precision.
As shown in the synthetic experiments, 32-bit Shampoo often plateaus or fails to converge on difficult landscapes. In contrast, KrADagrad maintains performance parity with 64-bit Shampoo while operating entirely in 32-bit precision. This robustness is achieved through the "domination" property of the KrAD factorization, which ensures the preconditioner remains theoretically sound and prevents divergence.
Empirical Performance
Beyond synthetic tests, KrADagrad demonstrates competitive performance on standard deep learning benchmarks. The authors evaluated the optimizer using ResNet architectures on the CIFAR-10 and CIFAR-100 datasets.
In these real-world tasks, KrADagrad (specifically the KrADagrad variant) achieves generalization performance comparable to or better than both Adam and Shampoo. Notably, KrADagrad maintains the same computational complexity as Shampoo—$O(m^3 + n^3)$ for a matrix of size $m \times n$—ensuring that its stability benefits do not come at the cost of increased per-step overhead.
Conclusion
KrADagrad bridges the gap between the theoretical power of second-order optimization and the practical constraints of modern hardware. By rethinking the factorization of the preconditioner to avoid numerical instability, it provides a path for curvature-aware training on 32-bit accelerators. Future work will focus on optimizing hardware-specific kernels to improve wall-clock efficiency and exploring low-rank updates to further reduce the cost of matrix root operations.
Summary updated