M-FAC: Efficient Matrix-Free Approximations of Second-Order Information
摘要
Efficiently approximating local curvature information of the loss function is a key tool for optimization and compression of deep neural networks. Yet, most existing methods to approximate second-order information have high computational or storage costs, which can limit their practicality. In this work, we investigate matrix-free, linear-time approaches for estimating Inverse-Hessian Vector Products (IHVPs) for the case when the Hessian can be approximated as a sum of rank-one matrices, as in the classic approximation of the Hessian by the empirical Fisher matrix. We propose two new algorithms as part of a framework called M-FAC: the first algorithm is tailored towards network compression and can compute the IHVP for dimension , if the Hessian is given as a sum of rank-one matrices, using precomputation, cost for computing the IHVP, and query cost for any single element of the inverse Hessian. The second algorithm targets an optimization setting, where we wish to compute the product between the inverse Hessian, estimated over a sliding window of optimization steps, and a given gradient direction, as required for preconditioned SGD. We give an algorithm with cost for computing the IHVP and for adding or removing any gradient from the sliding window. These two algorithms yield state-of-the-art results for network pruning and optimization with lower computational overhead relative to existing second-order methods. Implementations are available at [9] and [17].
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 24 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- WoodFisher: Efficient Second-Order Approximation for Neural Network Compression 引用了 Soft Threshold Weight Reparameterization for Learnable Sparsity
- Compressing LLMs: The Truth is Rarely Pure and Never Simple 引用了 The Emergence of Essential Sparsity in Large Pre-trained Models: The Weights that Matter
- Compressing LLMs: The Truth is Rarely Pure and Never Simple 引用了 WoodFisher: Efficient Second-Order Approximation for Neural Network Compression
- ZipLM: Inference-Aware Structured Pruning of Language Models 引用了 WoodFisher: Efficient Second-Order Approximation for Neural Network Compression
- ZipLM: Inference-Aware Structured Pruning of Language Models 引用了 Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruning
- Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruning 引用了 WoodFisher: Efficient Second-Order Approximation for Neural Network Compression
引用它的顶会 Paper24
- Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and PruningElias Frantar, Dan AlistarhNeurIPS 2022 · 440 次引用
- SpikingBERT: Distilling BERT to Train Spiking Language Models Using Implicit DifferentiationMalyaban Bal, Abhronil SenguptaAAAI 2024 · 78 次引用
- ZipLM: Inference-Aware Structured Pruning of Language ModelsEldar Kurtic, Elias Frantar, Dan AlistarhNeurIPS 2023 · 69 次引用
- Compressing LLMs: The Truth is Rarely Pure and Never SimpleAjay Kumar Jaiswal, Zhe Gan, Xianzhi Du, Bowen Zhang 等ICLR 2024 · 61 次引用
- The Emergence of Essential Sparsity in Large Pre-trained Models: The Weights that MatterAjay Jaiswal, Shiwei Liu, Tianlong Chen, Zhangyang WangNeurIPS 2023 · 57 次引用
它引用的 Paper3
- ADAHESSIAN: An Adaptive Second Order Optimizer for Machine LearningZhewei Yao, Amir Gholami, Sheng Shen, Mustafa Mustafa 等AAAI 2021 · 358 次引用
- Soft Threshold Weight Reparameterization for Learnable SparsityAditya Kusupati, Vivek Ramanujan, Raghav Somani, Mitchell Wortsman 等ICML 2020 · 266 次引用
- WoodFisher: Efficient Second-Order Approximation for Neural Network CompressionSidak Pal Singh, Dan AlistarhNeurIPS 2020 · 217 次引用
相关 Paper
- Error Feedback Can Accurately Compress PreconditionersIonut-Vlad Modoranu, Aleksei Kalinov, Eldar Kurtic, Elias Frantar 等ICML 2024 · 6 次引用
- SKFAC: Training Neural Networks With Faster Kronecker-Factored Approximate CurvatureZedong Tang, Fenlong Jiang, Maoguo Gong, Hao Li 等CVPR 2021
- THOR, Trace-based Hardware-driven Layer-Oriented Natural Gradient Descent ComputationMengyun Chen, Kai-Xin Gao, Xiaolei Liu, Zidong Wang 等AAAI 2021 · 7 次引用
- Rich Information is Affordable: A Systematic Performance Analysis of Second-order Optimization Using K-FACYuichiro Ueno, Kazuki Osawa, Yohei Tsuji, Akira Naruse 等KDD 2020 · 9 次引用
- Scalable Kronecker-Factored Fisher Approximation for Neural Network Parameter SensitivityViktoriia Chekalina, Daniil Moskovskiy, Tatyana Matveeva, Andrey Kuznetsov 等ICML 2026
