[Paper Review] Large-Scale Distributed Second-Order Optimization Using Kronecker-Factored Approximate Curvature for Deep Convolutional Neural Networks
This paper proposes a large-scale distributed second-order optimization method using Kronecker-Factored Approximate Curvature (K-FAC) for training ResNet-50 on ImageNet with extremely large mini-batches. By leveraging half-precision computation, symmetric Kronecker factorization, and diagonal approximation of Fisher information matrices (FIMs) for Batch Normalization layers, the method achieves 75% top-1 accuracy in just 978 iterations (100 epochs) with a mini-batch size of 131,072—demonstrating that second-order methods can generalize as well as first-order methods while converging faster.
Large-scale distributed training of deep neural networks suffer from the generalization gap caused by the increase in the effective mini-batch size. Previous approaches try to solve this problem by varying the learning rate and batch size over epochs and layers, or some ad hoc modification of the batch normalization. We propose an alternative approach using a second-order optimization method that shows similar generalization capability to first-order methods, but converges faster and can handle larger mini-batches. To test our method on a benchmark where highly optimized first-order methods are available as references, we train ResNet-50 on ImageNet. We converged to 75% Top-1 validation accuracy in 35 epochs for mini-batch sizes under 16,384, and achieved 75% even with a mini-batch size of 131,072, which took only 978 iterations.
Motivation & Objective
- To address the generalization gap in large-scale distributed training of deep neural networks caused by increased effective mini-batch sizes.
- To demonstrate that second-order optimization methods like K-FAC can match the generalization performance of highly optimized first-order methods (e.g., SGD with adaptive learning rates) on ImageNet.
- To reduce the computational and memory overhead of K-FAC in distributed settings through aggressive approximation techniques, such as diagonal FIMs and stale Fisher matrix updates.
- To enable training with mini-batch sizes up to 131,072 while maintaining high validation accuracy and fast convergence.
Proposed method
- The authors implement a synchronous all-worker distributed K-FAC optimizer using half-precision floating-point arithmetic to reduce memory and communication overhead.
- They exploit the symmetry of Kronecker factors in the curvature approximation to minimize redundant computation and communication.
- The Fisher Information Matrix (FIM) for Batch Normalization layers is approximated as a diagonal matrix, reducing memory consumption from 1017 MiB to 587 MiB for ResNet-50.
- The frequency of updating the Fisher matrices is reduced after 500 iterations (stale FIM update), significantly cutting computational cost without sacrificing accuracy.
- A hybrid data-model parallelism strategy is employed to scale across 1,024 Tesla V100 GPUs, enabling efficient large-batch training.
- The method uses a dynamic interval for FIM updates: every 1 iteration for first 13 epochs, then every 20 epochs, to balance accuracy and efficiency.
Experimental results
Research questions
- RQ1Can second-order optimization methods like K-FAC generalize as well as first-order methods (e.g., SGD with learning rate scaling) when training deep networks with extremely large mini-batches?
- RQ2How can the computational and memory overhead of K-FAC be reduced in large-scale distributed training without degrading model performance?
- RQ3What is the impact of approximating the Fisher Information Matrix (FIM) for Batch Normalization layers as diagonal matrices on training stability and accuracy?
- RQ4Can stale updates of the Fisher matrices be used effectively to reduce computation while maintaining convergence and generalization?
- RQ5How does the FIM structure of ResNet-50 evolve during training with large mini-batches, and what insights does it provide into optimization dynamics?
Key findings
- The K-FAC optimizer achieved 75.0% top-1 validation accuracy on ImageNet with ResNet-50 using a mini-batch size of 131,072 in only 978 iterations (100 epochs), demonstrating state-of-the-art performance for such large batches.
- With mini-batch sizes up to 16,384, the model converged to 75.2% accuracy in just 35 epochs, significantly faster than first-order methods that require more epochs for similar accuracy.
- Using diagonal approximation of the FIM for Batch Normalization layers reduced memory usage from 1017 MiB to 587 MiB, with no measurable impact on training accuracy.
- Stale FIM updates (updated every 20 epochs after epoch 13) reduced computational cost while maintaining 75% accuracy, even at 131,072 mini-batch size.
- The method achieved 74.9% top-1 accuracy in 10 minutes using 1,024 Tesla V100 GPUs, outperforming existing SGD-based approaches in training speed and scalability.
- The study shows that second-order methods do not suffer from worse generalization than SGD, even at extremely large mini-batch sizes, challenging prior assumptions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.