[Paper Review] Inefficiency of K-FAC for Large Batch Size Training
This paper investigates whether the Kronecker-Factored Approximate Curvature (K-FAC) optimizer improves large-batch training scalability and robustness compared to Stochastic Gradient Descent (SGD). Despite K-FAC's theoretical promise for second-order optimization, the authors find it exhibits similar diminishing returns, worse speedup efficiency, and comparable hyperparameter sensitivity to SGD when using large batch sizes on ResNet and AlexNet models, indicating no significant advantage for large-batch training.
In stochastic optimization, using large batch sizes during training can leverage parallel resources to produce faster wall-clock training times per training epoch. However, for both training loss and testing error, recent results analyzing large batch Stochastic Gradient Descent (SGD) have found sharp diminishing returns, beyond a certain critical batch size. In the hopes of addressing this, it has been suggested that the Kronecker-Factored Approximate Curvature (\mbox{K-FAC}) method allows for greater scalability to large batch sizes, for non-convex machine learning problems such as neural network optimization, as well as greater robustness to variation in model hyperparameters. Here, we perform a detailed empirical analysis of large batch size training %of these two hypotheses, for both \mbox{K-FAC} and SGD, evaluating performance in terms of both wall-clock time and aggregate computational cost. Our main results are twofold: first, we find that both \mbox{K-FAC} and SGD doesn't have ideal scalability behavior beyond a certain batch size, and that \mbox{K-FAC} does not exhibit improved large-batch scalability behavior, as compared to SGD; and second, we find that \mbox{K-FAC}, in addition to requiring more hyperparameters to tune, suffers from similar hyperparameter sensitivity behavior as does SGD. We discuss extensive results using ResNet and AlexNet on \mbox{CIFAR-10} and SVHN, respectively, as well as more general implications of our findings.
Motivation & Objective
- To evaluate whether K-FAC improves scalability and generalization in large-batch training compared to SGD.
- To investigate the impact of batch size on K-FAC's hyperparameter sensitivity under different training budgets (epoch vs. iteration-based).
- To compare the speedup efficiency of K-FAC and SGD as batch size increases, measuring wall-clock and computational cost.
- To determine whether K-FAC's second-order approximation provides meaningful benefits in non-convex deep learning optimization under large-batch regimes.
- To assess whether K-FAC reduces the need for hyperparameter tuning compared to SGD in large-batch settings.
Proposed method
- Empirically evaluate K-FAC and SGD on ResNet20/32 for CIFAR-10 and AlexNet for SVHN using controlled batch sizes from 2^8 to 2^14.
- Measure training and test accuracy, loss, and iteration speedup to assess scalability and performance degradation with increasing batch size.
- Conduct hyperparameter sweeps across damping and learning rate values to assess robustness under fixed-epoch and fixed-iteration budgets.
- Use box plots to visualize the distribution of test accuracy and training loss across 64 hyperparameter configurations per batch size.
- Compare K-FAC’s performance and scaling behavior against SGD under identical training conditions and hyperparameter tuning efforts.
- Analyze robustness by evaluating the fraction of hyperparameter configurations achieving target accuracy thresholds under different budget constraints.
Experimental results
Research questions
- RQ1Does K-FAC exhibit better scalability to large batch sizes than SGD in terms of training speedup and convergence?
- RQ2How does increasing batch size affect the hyperparameter sensitivity of K-FAC compared to SGD?
- RQ3Is K-FAC more robust to hyperparameter tuning than SGD under fixed-epoch and fixed-iteration training budgets?
- RQ4Does K-FAC achieve superior test accuracy or training loss reduction compared to SGD at large batch sizes with equivalent tuning?
- RQ5Can K-FAC maintain stable performance across a wider range of hyperparameters when training with large batches?
Key findings
- K-FAC achieves comparable but not superior training or test performance to SGD when using the same level of hyperparameter tuning and training duration.
- K-FAC exhibits smaller speedup gains with increasing batch size compared to SGD, indicating worse scalability in terms of iterations.
- Under fixed-epoch budgets, larger batch sizes increase hyperparameter sensitivity in K-FAC, reducing the region of hyperparameter space that leads to good convergence.
- Under fixed-iteration budgets, larger batch sizes reduce hyperparameter sensitivity in K-FAC, resulting in more robust convergence across a wider range of hyperparameters.
- The robustness of K-FAC to hyperparameter tuning is inversely related to batch size under epoch-based budgets, mirroring findings for SGD.
- K-FAC does not alleviate the diminishing returns of large-batch training, and its performance degrades similarly to SGD beyond a critical batch size.
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.