paper-with-me

홈 › Papers

Kronecker-factored Approximate Curvature (KFAC) From Scratch

2025-07-01 · Felix Dangel, Bálint Mucsányi, Tobias Weber, Runa Eschenhagen arxiv

Kronecker-factored approximate curvature (KFAC) is arguably one of the most prominent curvature approximations in deep learning. Its applications range from optimization to Bayesian deep learning, training data attribution with influence functions, and model compression or merging. While the intuition behind KFAC is easy to understand, its implementation is tedious: It comes in many flavours, has common pitfalls when translating the math to code, and is challenging to test, which complicates ensuring a properly functioning implementation. Some of the authors themselves have dealt with these challenges and experienced the discomfort of not being able to fully test their code. Thanks to recent advances in understanding KFAC, we are now able to provide test cases and a recipe for a reliable KFAC implementation. This tutorial is meant as a ground-up introduction to KFAC. In contrast to the existing work, our focus lies on providing both math and code side-by-side and providing test cases based on the latest insights into KFAC that are scattered throughout the literature. We hope this tutorial provides a contemporary view of KFAC that allows beginners to gain a deeper understanding of this curvature approximation while lowering the barrier to its implementation, extension, and usage in practice.

📄 PDF Abstract BibTeX arXiv:2507.05127

Code (0)

등록된 구현이 없습니다.

Tasks

Model Compression

Similar Papers 제목 키워드 기반

A Trace-restricted Kronecker-Factored Approximation to Natural Gradient

2020-11-21 · Kai-Xin Gao, Xiao-Lei Liu, Zheng-Hai Huang, Min Wang 외

Second-order optimization methods have the ability to accelerate convergence by modifying the gradient through the curvature matrix. There have been many attempts to use second-order optimization methods for training dee…

SKFAC:Training Neural Networks with Faster Kronecker-Factored Approximate Curvature

2021-06-01 · Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition 2021 6 · Zedong Tang, Fenlong Jiang, Maoguo Gong, Hao Li 외

The bottleneck of computation burden limits the widespread use of the 2nd order optimization algorithms for training deep neural networks. In this paper, we present a computationally efficient approximation for natural g…

Dimensionality Reduction

SKFAC: Training Neural Networks With Faster Kronecker-Factored Approximate Curvature

2021-06-19 · CVPR 2021 1 · Zedong Tang, Fenlong Jiang, Maoguo Gong, Hao Li 외

The bottleneck of computation burden limits the widespread use of the 2nd order optimization algorithms for training deep neural networks. In this paper, we present a computationally efficient approximation for natur…

Dimensionality Reduction

Kronecker-Factored Approximate Curvature for Physics-Informed Neural Networks

2024-05-24 · Felix Dangel, Johannes Müller, Marius Zeinhofer

Physics-informed neural networks (PINNs) are infamous for being hard to train. Recently, second-order methods based on natural gradient and Gauss-Newton methods have shown promising performance, improving the accuracy ac…

Second-order methods

Efficient Bilevel Optimization with KFAC-Based Hypergradients

2026-03-31 · Disen Liao, Felix Dangel, Yaoliang Yu arxiv

Bilevel optimization (BO) is widely applicable to many machine learning problems. Scaling BO, however, requires repeatedly computing hypergradients, which involves solving inverse Hessian-vector products (IHVPs). In prac…

Bilevel Optimization