Skip to main content
QUICK REVIEW

[Paper Review] Sketchy Empirical Natural Gradient Methods for Deep Learning

Minghan Yang, Dong Xu|arXiv (Cornell University)|Jun 10, 2020
Sparse and Compressive Sensing TechniquesEngineering27 references5 citations
TL;DR

This paper proposes Sketchy Empirical Natural Gradient (SENG), a scalable second-order optimization method for deep learning that uses randomized sketching to efficiently approximate the empirical Fisher information matrix (EFIM) in low-rank subspaces. By applying sketching to regularized least squares subproblems and low-rank matrix approximations, SENG achieves global convergence and fast linear convergence under the neural tangent kernel (NTK) regime, outperforming SGD and KFAC on ResNet50/ImageNet-1k with 75.9% Top-1 accuracy in 41 epochs and 663s per epoch, while maintaining high scaling efficiency in distributed settings.

ABSTRACT

In this paper, we develop an efficient sketchy empirical natural gradient method (SENG) for large-scale deep learning problems. The empirical Fisher information matrix is usually low-rank since the sampling is only practical on a small amount of data at each iteration. Although the corresponding natural gradient direction lies in a small subspace, both the computational cost and memory requirement are still not tractable due to the high dimensionality. We design randomized techniques for different neural network structures to resolve these challenges. For layers with a reasonable dimension, sketching can be performed on a regularized least squares subproblem. Otherwise, since the gradient is a vectorization of the product between two matrices, we apply sketching on the low-rank approximations of these matrices to compute the most expensive parts. A distributed version of SENG is also developed for extremely large-scale applications. Global convergence to stationary points is established under some mild assumptions and a fast linear convergence is analyzed under the neural tangent kernel (NTK) case. Extensive experiments on convolutional neural networks show the competitiveness of SENG compared with the state-of-the-art methods. On the task ResNet50 with ImageNet-1k, SENG achieves 75.9\% Top-1 testing accuracy within 41 epochs. Experiments on the distributed large-batch training show that the scaling efficiency is quite reasonable.

Motivation & Objective

  • Address the high computational and memory cost of natural gradient methods in large-scale deep learning, despite the low-rank nature of the empirical Fisher information matrix (EFIM).
  • Develop efficient randomized sketching techniques to reduce the computational burden of EFIM approximation without sacrificing convergence guarantees.
  • Enable scalable, distributed training with high communication and computational efficiency for large-batch settings.
  • Establish global convergence and fast linear convergence under mild assumptions and in the NTK regime.
  • Demonstrate competitive performance against state-of-the-art first- and second-order methods on standard benchmarks like ImageNet-1k and CIFAR10.

Proposed method

  • Use the Sherman-Morrison-Woodbury (SMW) formula to express the natural gradient direction as a linear combination of subsampled gradients, leveraging the low-rank structure of the EFIM.
  • For layers with moderate parameter count, apply sketching to a regularized least squares subproblem formed from subsampled gradients to reduce dimensionality.
  • For high-dimensional layers, represent gradients as matrix products, apply low-rank approximation to the matrices, and use sketching to accelerate the solution of the resulting subproblems.
  • Integrate the SMW-based direction computation with randomized algorithms to handle large-scale matrix operations efficiently.
  • Design a distributed version of SENG with communication-reduction strategies to maintain high scaling efficiency across multiple GPUs.
  • Ensure theoretical convergence by proving global convergence under mild assumptions and linear convergence in the NTK regime.

Experimental results

Research questions

  • RQ1Can randomized sketching techniques effectively reduce the computational and memory costs of empirical natural gradient methods in deep learning while preserving convergence?
  • RQ2How does the proposed SENG method compare in training speed and accuracy to first-order methods like SGD and second-order methods like KFAC on large-scale benchmarks?
  • RQ3What is the scaling efficiency of SENG in distributed, large-batch training settings compared to existing methods?
  • RQ4Does SENG achieve fast linear convergence in the neural tangent kernel (NTK) regime, and under what assumptions?
  • RQ5Can SENG maintain high performance and low per-epoch time even with large batch sizes, avoiding the performance degradation typical of large-batch training?

Key findings

  • SENG achieves 75.9% Top-1 accuracy on ImageNet-1k with ResNet50 in just 41 epochs, outperforming a well-tuned SGD (76 epochs) and KFAC (42 epochs) in total training time.
  • SENG reduces time per epoch to 663.17 seconds on ResNet50/ImageNet-1k, significantly lower than KFAC’s 712.29 seconds and much lower than KFAC’s 1007.31 seconds with higher matrix update frequency.
  • On CIFAR10 with VGG16_bn, SENG completes one epoch in 18 seconds, compared to 113.37 seconds for KFAC, demonstrating superior computational efficiency.
  • SENG maintains over 90% GPU scaling efficiency across 4 to 32 GPUs, indicating strong potential for distributed large-batch training.
  • SENG achieves the same number of epochs (41) across all batch sizes (including 4,096), showing robustness and effectiveness in large-batch training.
  • Theoretical analysis confirms global convergence under mild assumptions and linear convergence in the NTK regime, supporting its practical efficacy.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.