MAC: An Efficient Gradient Preconditioning using Mean Activation Approximated Curvature

Hyunseok Seung, Jaewoo Lee, Hyunsuk Ko
6/10/2025
cs.LG
transformer-attention

No confident code implementation found for this paper.

Abstract

Second-order optimization methods for training neural networks, such as KFAC, exhibit superior convergence by utilizing curvature information of loss landscape. However, it comes at the expense of high computational burden.

Show full abstract

In this work, we analyze the two components that constitute the layer-wise Fisher information matrix (FIM) used in KFAC: the Kronecker factors related to activations and pre-activation gradients. Based on empirical observations on their eigenspectra, we propose efficient approximations for them, resulting in a computationally efficient optimization method called MAC. To the best of our knowledge, MAC is the first algorithm to apply the Kronecker factorization to the FIM of attention layers used in transformers and explicitly integrate attention scores into the preconditioning. We also study the convergence property of MAC on nonlinear neural networks and provide two conditions under which it converges to global minima. Our extensive evaluations on various network architectures and datasets show that the proposed method outperforms KFAC and other state-of-the-art methods in terms of accuracy, end-to-end training time, and memory usage.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{seung2025mac,
  title  = {MAC: An Efficient Gradient Preconditioning using Mean Activation Approximated Curvature},
  author = {Hyunseok Seung and Jaewoo Lee and Hyunsuk Ko},
  year   = {2025},
  eprint = {2506.08464},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.08464v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.08464.svg)](https://codeofpaper.com/paper/2506.08464)

Discussion