[Paper Review] The Effect of Network Width on the Performance of Large-batch Training
This paper investigates how neural network width and depth affect large-batch training performance, showing theoretically and empirically that wider, shallower networks maintain fast convergence with large batches due to higher gradient diversity, while deeper networks suffer from slower convergence. The key contribution is demonstrating that for a fixed parameter count, increased width improves amenability to large-batch training by enhancing gradient diversity, enabling better distributed training scalability without performance degradation.
Distributed implementations of mini-batch stochastic gradient descent (SGD) suffer from communication overheads, attributed to the high frequency of gradient updates inherent in small-batch training. Training with large batches can reduce these overheads; however, large batches can affect the convergence properties and generalization performance of SGD. In this work, we take a first step towards analyzing how the structure (width and depth) of a neural network affects the performance of large-batch training. We present new theoretical results which suggest that--for a fixed number of parameters--wider networks are more amenable to fast large-batch training compared to deeper ones. We provide extensive experiments on residual and fully-connected neural networks which suggest that wider networks can be trained using larger batches without incurring a convergence slow-down, unlike their deeper variants.
Motivation & Objective
- To understand how neural network architecture—specifically width and depth—affects the performance of large-batch training.
- To analyze the role of gradient diversity as a key factor in determining the effectiveness of large-batch training.
- To investigate whether wider networks are more amenable to large-batch training than deeper ones when the total number of parameters is fixed.
- To provide theoretical and empirical evidence that width increases gradient diversity, enabling faster convergence with large batches.
Proposed method
- Theoretical analysis of gradient diversity in two-layer fully-connected linear and non-linear networks, and multi-layer linear networks, under random weight initialization.
- Derivation of expected inner product between gradients of different data points to quantify gradient diversity as a function of width and depth.
- Use of i.i.d. Gaussian weights and activation functions to compute expectations of gradient products across layers.
- Derivation of closed-form expressions for gradient inner products in deep linear networks, showing monotonic increase in gradient diversity with width and decrease with depth.
- Empirical evaluation on CIFAR10, MNIST, EMNIST, Gisette, and synthetic datasets with fixed parameter count, varying depth and width.
- Measurement of convergence speed (epochs to reach 96% accuracy) across different batch sizes to identify the batch size threshold $B^*$ beyond which convergence slows.
Experimental results
Research questions
- RQ1How does network width affect gradient diversity in large-batch training?
- RQ2Does increasing width improve the convergence speed of large-batch SGD compared to increasing depth?
- RQ3Is there a theoretical relationship between network width and the threshold batch size $B^*$ beyond which convergence slows?
- RQ4How does gradient diversity vary with depth and width in deep linear networks?
- RQ5Can wider networks maintain fast convergence with large batches, while deeper networks do not?
Key findings
- Wider networks exhibit higher gradient diversity compared to deeper networks when the total number of parameters is fixed.
- For a fixed number of parameters, increasing width while reducing depth leads to a monotonic increase in gradient diversity.
- The threshold batch size $B^*$, beyond which convergence slows, is smaller for deeper networks, indicating they are less amenable to large-batch training.
- Empirical results confirm that wider networks require fewer epochs to converge at large batch sizes, while deeper networks suffer from convergence slowdown.
- Theoretical analysis shows that gradient diversity increases with width and decreases with depth, explaining the observed empirical behavior.
- The study demonstrates that architectural design—specifically width—can be used to improve scalability in distributed training by enabling faster large-batch convergence.
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.