Skip to main content
QUICK REVIEW

[Paper Review] Large batch size training of neural networks with adversarial training and second-order information

Zhewei Yao, Amir Gholami|arXiv (Cornell University)|Oct 2, 2018
Advanced Neural Network ApplicationsComputer Science54 references35 citations
TL;DR

This paper proposes an adaptive batch size training framework using second-order Hessian information and adversarial training (ABSA) to accelerate large-batch neural network training. By dynamically scaling batch sizes via Ray-based elastic clustering and leveraging curvature-aware learning rate adjustments, ABSA reduces SGD iterations by up to 5× and training time by 8.78× on ImageNet, achieving state-of-the-art speedups with minimal hyperparameter tuning.

ABSTRACT

The most straightforward method to accelerate Stochastic Gradient Descent (SGD) computation is to distribute the randomly selected batch of inputs over multiple processors. To keep the distributed processors fully utilized requires commensurately growing the batch size. However, large batch training often leads to poorer generalization. A recently proposed solution for this problem is to use adaptive batch sizes in SGD. In this case, one starts with a small number of processes and scales the processes as training progresses. Two major challenges with this approach are (i) that dynamically resizing the cluster can add non-trivial overhead, in part since it is currently not supported, and (ii) that the overall speed up is limited by the initial phase with smaller batches. In this work, we address both challenges by developing a new adaptive batch size framework, with autoscaling based on the Ray framework. This allows very efficient elastic scaling with negligible resizing overhead (0.32\% of time for ResNet18 ImageNet training). Furthermore, we propose a new adaptive batch size training scheme using second order methods and adversarial training. These enable increasing batch sizes earlier during training, which leads to better training time. We extensively evaluate our method on Cifar-10/100, SVHN, TinyImageNet, and ImageNet datasets, using multiple neural networks, including ResNets and smaller networks such as SqueezeNext. Our method exceeds the performance of existing solutions in terms of both accuracy and the number of SGD iterations (up to 1\% and $5 imes$, respectively). Importantly, this is achieved without any additional hyper-parameter tuning to tailor our method in any of these experiments.

Motivation & Objective

  • Address the poor generalization and limited speedup in large-batch SGD training due to sharp loss landscapes.
  • Overcome the bottleneck of initial small-batch phases in adaptive batch size training, which limits overall speedup despite elastic scaling.
  • Develop a scalable, low-overhead framework for dynamic batch size and cluster resizing to enable efficient large-batch training.
  • Integrate second-order Hessian information and adversarial training to enable earlier and safer batch size increases during training.
  • Achieve faster convergence and better accuracy with minimal hyperparameter tuning across diverse datasets and architectures.

Proposed method

  • Propose an Adaptive Batch Size (ABS) method that uses Hessian spectrum analysis to dynamically adjust batch size and learning rate based on loss landscape curvature.
  • Introduce Adaptive Batch Size Adversarial (ABSA) training by combining ABS with adversarial robustness via min-max optimization, implicitly regularizing against sharp minima.
  • Implement a Ray-based distributed framework enabling near-zero overhead (0.32%) for cluster resizing during training, supporting elastic scaling.
  • Use gradient accumulation in early training phases to compute Hessian information efficiently with only 1–2 GPUs, minimizing Hessian computation cost (9.3% of total time).
  • Apply a warm-up phase with gradually increasing batch size and learning rate, tuned only in the final experiments to further accelerate convergence.
  • Leverage implicit regularization from adversarial training to stabilize training when increasing batch size early, improving generalization and robustness.

Experimental results

Research questions

  • RQ1Can second-order Hessian information enable earlier and safer increases in batch size during training, reducing the bottleneck of initial small-batch phases?
  • RQ2Does combining Hessian-based adaptive batch sizing with adversarial training improve generalization and robustness in large-batch training?
  • RQ3Can a Ray-based framework enable elastic, low-overhead cluster resizing during training, eliminating the communication and restart costs of prior methods?
  • RQ4To what extent can the number of SGD iterations be reduced without sacrificing accuracy, especially when scaling to large batch sizes?
  • RQ5Can the proposed method achieve state-of-the-art speedups across diverse datasets and architectures with minimal hyperparameter tuning?

Key findings

  • ABSA reduces the number of SGD iterations by up to 5× on CIFAR-10 and 28.8× on ImageNet (ResNet18), achieving 70.04% top-1 accuracy on ImageNet with only 14.8K updates.
  • With minimal hyperparameter tuning (only warm-up phase), ABSA achieves 8.78× speedup on ResNet18 ImageNet training, reducing total training time from 125K to 14.2K seconds.
  • The Ray-based framework introduces only 0.32% overhead for cluster resizing, enabling efficient elastic scaling with negligible performance penalty.
  • Hessian computation accounts for only 9.3% of total training time, and the main bottleneck is early-phase gradient accumulation with few GPUs.
  • ABSA achieves 84.24% accuracy on CIFAR-10 with ResNet18 using 90 epochs and a final batch size of 16K, outperforming standard large-batch SGD (76.82%) and small-batch SGD (83.05%).
  • The method generalizes across architectures (ResNet, SqueezeNext, AlexNet) and datasets (CIFAR-10/100, SVHN, TinyImageNet, ImageNet), consistently outperforming baselines in both accuracy and iteration efficiency.

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.