DyKAF: Dynamical Kronecker Approximation of the Fisher Information Matrix for Gradient Preconditioning

Nikolay Yudin, Ekaterina Grishina, Andrey Veprikov, Alexandr Beznosikov, Maxim V. RakhubaarXiv 2025 · DOI

Abstract

Second-order optimization methods, which leverage the curvature of the loss surface via the Fisher Information Matrix (FIM), offer the potential for faster convergence in deep learning. However, the computational cost of maintaining and inverting the FIM for large-scale models is prohibitive. Existing Kronecker-factored approximations, such as Shampoo and SOAP, often rely on heuristic updates that lead to significant approximation errors. We introduce DyKAF (Dynamical Low-Rank Approximation of the Fisher Matrix), a novel optimizer that employs projector-splitting integrators from numerical analysis to maintain a mathematically principled, high-fidelity estimate of the FIM. Our results demonstrate that DyKAF significantly reduces approximation error and outperforms state-of-the-art optimizers in both large language model (LLM) pretraining and downstream fine-tuning tasks.

Introduction

Training massive neural networks is a high-dimensional search problem. While first-order methods like Adam utilize gradient information, they lack a precise understanding of the loss surface's local geometry. Second-order methods provide this "high-definition map" using the Hessian or FIM, but the sheer size of these matrices for models with billions of parameters necessitates approximation.

Kronecker-factored approximations (e.g., K-FAC, Shampoo) decompose the FIM into smaller, manageable factors. However, the standard "greedy" update rules used in these methods often fail to capture the true evolution of the FIM during training, especially when gradients are not collinear. DyKAF addresses this by treating the FIM update as a dynamical system, ensuring the factors remain as close to the true Fisher matrix as possible.

Methodology: Dynamical Low-Rank Approximation

The core innovation of DyKAF is the transition from heuristic updates to Dynamical Low-Rank Approximation (DLRA).

Projector-Splitting Integrators

Rather than simply accumulating gradients, DyKAF utilizes a "projector-splitting" algorithm. Borrowed from the study of differential equations, this technique treats the evolution of the Fisher matrix as a trajectory. It "integrates" new gradient information into the low-rank Kronecker factors with much higher precision than previous methods.

Integration with the SOAP Framework

DyKAF builds upon the SOAP optimizer, which rotates gradients into a space where the FIM is nearly diagonal. By providing a more accurate approximation of the Fisher eigenspace, DyKAF ensures that the resulting rotation matrices ($Q_L$ and $Q_R$) are more effective, leading to better-conditioned gradient steps.

DyKAF maintains an approximation error nearly identical to the theoretical best Kronecker approximation, significantly outperforming Shampoo.

Key Insights

The primary bottleneck in previous second-order methods is approximation accuracy. Theoretical analysis shows that Shampoo’s accuracy is highly dependent on "mutual coherence"—the alignment of successive gradients. When gradients vary wildly in direction, Shampoo’s estimate degrades. DyKAF is robust to these variations, maintaining an error level close to the theoretical lower bound for Kronecker approximations.

Experimental Results

We evaluated DyKAF across several benchmarks, ranging from small-scale pretraining to large-scale LLM adaptation.

LLM Downstream Adaptation

On the Qwen3-8B model fine-tuned via LoRA, DyKAF showed substantial gains, particularly in reasoning-heavy tasks. For instance, on MathQA, DyKAF achieved 47% accuracy compared to SOAP's 41%.

DyKAF outperforms AdamW, Muon, and SOAP across various LLM downstream tasks, showing particular strength in reasoning (MathQA).

GLUE and Pretraining

  • GLUE Benchmark: DyKAF achieved an average score of 88.00 on Roberta-Large, surpassing AdamW (87.70) and SOAP (86.79).
  • LLaMA Pretraining: In training a LLaMA-124M model on the FineWeb dataset, DyKAF consistently maintained a lower validation loss than all baseline optimizers throughout the training trajectory.

Discussion and Limitations

While DyKAF is more step-efficient, it introduces a computational overhead of approximately 20% in wall-clock time per step compared to SOAP, due to the additional matrix multiplications required by the projector-splitting step. However, the improved convergence quality and final model performance often justify this cost. Future work includes optimizing the preconditioning frequency and extending the method to higher-order tensors for convolutional architectures.

Summary updated

BibTeX
@misc{yudin2025dykaf,
  author = {Nikolay Yudin and Ekaterina Grishina and Andrey Veprikov and Alexandr Beznosikov and Maxim V. Rakhuba},
  title = {{DyKAF: Dynamical Kronecker Approximation of the Fisher Information Matrix for Gradient Preconditioning}},
  year = {2025},
  eprint = {2511.06477},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.06477},
}
Figure