Abstract
This paper proposes SplitSGD, a new dynamic learning rate schedule for stochastic optimization. This method decreases the learning rate for better adaptation to the local geometry of the objective function whenever a stationary phase is detected—that is, when iterates begin to bounce around a local minimum. The detection is performed by briefly splitting a single training thread into two and using the inner product of their gradients as a measure of stationarity. SplitSGD is easy to implement, adds negligible computational cost, and is highly robust across a wide range of problems, often yielding better generalization than adaptive methods like Adam.
TL;DR
SplitSGD is a dynamic learning rate scheduler that automatically detects when an optimizer has reached a "stationary phase." By splitting a training thread into two and measuring the "coherence" of their gradients, SplitSGD knows exactly when to drop the learning rate, leading to better generalization and higher robustness than Adam or manually tuned SGD.
What Problem Does This Paper Address?
Choosing the right learning rate (LR) schedule is often the most critical hyperparameter decision in deep learning. If the LR is too high, the model bounces around the optimum; if it's too low, training is inefficient.
Traditional "step decay" schedules require expensive manual trial-and-error. While adaptive methods like Adam automate scaling, they often struggle with generalization. The core challenge is building a reliable "diagnostic" that distinguishes between the transient phase (active learning) and the stationary phase (spinning wheels due to noise).
Methods
The authors introduce SplitSGD, which relies on a novel Splitting Diagnostic:
- The Split: At specific intervals, the algorithm splits the current model into two parallel threads.
- Independent Updates: Both threads start from the same point but receive independent batches of data to calculate updates.
- Gradient Coherence: The algorithm calculates the inner product (dot product) of the average gradients from these two threads, denoted as $Q_2$.
- Positive coherence: Gradients point in the same direction; the model is making clear progress.
- Zero/Negative coherence: Gradients are uncorrelated; the model has reached stationarity and is "bouncing" due to noise.
- Adaptive Decay: If stationarity is detected, SplitSGD decreases the learning rate (e.g., by factor $\gamma = 0.5$) and increases the iterations before the next check.
The diagnostic signal $Q_2$ provides a clear statistical indicator of the optimization phase. As shown in the histograms below, the distribution of normalized $Q_2$ shifts significantly as the model moves from the transient phase ($t_1$ small) to the stationary phase ($t_1$ large).
Key Insights and Ideas
- Independence is a Superpower: Previous diagnostics looked at successive gradients in a single thread, which are highly correlated and noisy. By using two independent threads, SplitSGD gets a clean, theoretically grounded signal of whether the "true" gradient still dominates the noise.
- Robustness to Initialization: SplitSGD is remarkably "tuning-insensitive," performing well across a wide range of initial learning rates where standard SGD often fails.
- Generalization vs. Optimization: While Adam is known for fast training, SplitSGD often achieves better test accuracy. The authors suggest that SplitSGD’s method of settling into minima helps avoid the overfitting common in adaptive-moment methods.
Key Results
- Superior Detection: SplitSGD detects the need for a learning rate drop more accurately and earlier than classic tests like the Pflug diagnostic.
- Beating the Baseline: On CIFAR-10 with ResNet-18, SplitSGD achieved higher test accuracy than Adam and matched manually tuned schedules without the manual effort.
- Overfitting Prevention: In CNN experiments on Fashion-MNIST, while SGD and Adam showed signs of overfitting (test accuracy dropping after a peak), SplitSGD remained stable, maintaining peak performance through the end of training.
Limitations and Future Work
SplitSGD introduces a few new hyperparameters, such as the "tolerance" $q$ (the proportion of negative coherences needed to trigger a drop). While $q=0.25$ works well generally, it remains a parameter to consider. Future work may explore applying the diagnostic to individual layers for "layer-wise" adaptive rates, potentially further accelerating convergence in deep architectures.
Summary updated