TL;DR
Scheduled Restart SGD (SRSGD) brings the theoretical speed of Nesterov Accelerated Gradient (NAG) to the noisy world of deep learning by periodically resetting momentum to zero. This simple modification prevents the error accumulation that typically causes NAG to fail in stochastic settings, resulting in faster convergence and significantly better generalization, especially for very deep networks.
What Problem Does This Paper Address?
In the world of deep learning, training speed is everything. While Stochastic Gradient Descent (SGD) with constant momentum is the industry standard, researchers have long eyed Nesterov Accelerated Gradient (NAG) for its superior convergence rates in convex optimization.
The catch? NAG is notoriously sensitive to noise. In standard gradient descent, you have the exact gradient; in SGD, you only have a noisy estimate from a mini-batch. NAG tends to "accumulate" the errors from these noisy estimates, which can lead to slow convergence or even total divergence. Consequently, practitioners usually stick to constant momentum, leaving the potential gains of NAG on the table. The authors set out to bridge this gap: how can we leverage NAG’s aggressive acceleration without letting stochastic noise derail the training?
Methods
The authors propose Scheduled Restart SGD (SRSGD). The core idea is to use NAG-style increasing momentum but "restart" the momentum to zero according to a fixed schedule.
In standard NAG, the momentum coefficient grows over time, typically following the form $(k-1)/(k+2)$. In SRSGD, the authors replace the iteration index $k$ with $(k \mod F_i)$, where $F_i$ is the restart frequency for a given training stage. By resetting the momentum, the algorithm effectively "forgets" the accumulated errors from previous noisy gradient steps, preventing them from snowballing.
The authors explore two main scheduling strategies for the restart frequency $F$:
- Linear Schedule: The restart interval grows linearly as the learning rate decays.
- Exponential Schedule: The interval grows exponentially.
Implementation-wise, SRSGD is incredibly lightweight, requiring only a few lines of code change in standard Pytorch or Keras SGD optimizers with no additional memory or computational overhead.
Datasets
The effectiveness of SRSGD was validated across several standard benchmarks:
- CIFAR-10 & CIFAR-100: Used with various Pre-ResNet architectures (depths ranging from 110 to 1001).
- ImageNet: The gold standard for image classification, tested on ResNet-50, 101, 152, and 200.
- MNIST: Used for initial proofs-of-concept in logistic regression and Wasserstein GAN (WGAN) training.
- Permuted MNIST: Used to test SRSGD on Recurrent Neural Networks (LSTMs).
Key Insights and Ideas
- The "Sanity Reset": The most important insight is that NAG's instability in stochastic settings isn't inherent to the acceleration itself, but to its "memory." Periodic restarts act as a safety valve, clearing out the noise while still allowing for bursts of high-momentum acceleration.
- Depth Synergy: One of the most striking findings is that the advantage of SRSGD over standard SGD actually increases as the network gets deeper. As shown in Figure 1, the gap in test error widens significantly as we move from ResNet-110 to ResNet-1001. Error vs. depth of ResNet models
- Overfitting Mitigation: On very deep models like ResNet-200 on ImageNet, standard SGD often hits a wall where it begins to overfit. SRSGD appears to navigate these complex loss landscapes better, allowing the model to continue improving where SGD plateaus.
- Robustness to Noise: Through a quadratic case study (Figure 2/5), the authors demonstrate that while standard NAG (yellow line) oscillates wildly or diverges under noise, SRSGD (blue line) remains stable and converges faster than standard momentum. Comparison between different schemes in optimizing the quadratic function
Key Results
- ImageNet Breakthrough: Training ResNet-200 with SRSGD achieved a top-1 error rate of 20.93%, a significant improvement over the 22.13% benchmark set by standard SGD.
- Training Speedup: On CIFAR datasets, SRSGD reached baseline accuracy levels in roughly half the number of epochs required by SGD.
- Generalization: Across the board, SRSGD consistently produced models with better test accuracy than those trained with constant momentum or standard NAG.
- Versatility: Beyond CNNs, the authors showed that SRSGD also improves the training of LSTMs and GANs, leading to lower discriminator loss and better sample quality in WGANs.
Limitations and Future Work
- Hyperparameter Tuning: SRSGD introduces two new hyperparameters: the initial restart frequency ($F_1$) and the growth rate ($r$). While the authors provide robust defaults, these may require tuning for entirely new architectures or datasets.
- Theoretical Optimality: While the paper provides convergence proofs for non-convex problems, the mathematically optimal restart schedule for a given loss landscape remains an open theoretical question.
- Integration with Adaptive Methods: The current work focuses on SGD. A promising next step is integrating scheduled restarts into adaptive optimizers like Adam or RMSProp to see if their benefits are additive.
- Noise Removal: The authors suggest that combining SRSGD with "on-the-fly" noise removal techniques (like Laplacian smoothing) could further stabilize training.
Summary updated