TL;DR
This paper explores the intriguing phenomenon of linear weight interpolation between neural networks trained with different random seeds. They discover that interpolating weights can lead to a temporary, significant performance boost, but this gain is transient, with performance degrading upon further training. This suggests that while interpolation can find "better" regions in the loss landscape, these regions are not conducive to continued learning.
What Problem Does This Paper Address?
The paper delves into the properties of neural network loss landscapes and the behavior of weight interpolation. While linear interpolation of network weights has been used to understand training dynamics and even improve performance at convergence, its behavior during earlier stages of training and its implications for continued learning remain less understood. Specifically, the authors investigate why interpolating networks trained with different SGD noise might offer a performance advantage and why this advantage disappears with further training.
Methods
The core experimental setup involves training a neural network for a short period ($k$ steps), then creating two copies that are further trained on different sets of SGD noise for $s$ epochs. The weights of these two "child" networks are then linearly interpolated. The performance of this interpolated network (the "interpolant") is then evaluated, both immediately after interpolation and after further training. The authors also analyze the phenomenon through the lens of example importance, using the EL2N score to categorize training examples by difficulty and their contribution to generalization.
Datasets
The experiments were conducted on standard vision tasks using the following datasets:
- CIFAR-10
- CIFAR-100
- CINIC-10
Key Insights and Ideas
- Transient Performance Boost: Linearly interpolating the weights of networks trained with different SGD noise can lead to a significant, albeit temporary, improvement in performance over the individual networks.
- Unfavorable Regions: These interpolated networks seem to land in regions of the optimization landscape that offer immediate gains but are not amenable to further improvement through standard SGD training. Performance degrades or stagnates upon continued training.
- Dependence on Training History ($k$ and $s$): The magnitude and duration of the performance boost from interpolation are influenced by how long the child networks were trained before interpolation ($k$) and how long they were trained on different noise trajectories ($s$). Larger $k$ values lead to more stable interpolants that degrade more slowly.
- Example Importance Matters: The performance gains and subsequent drops are not uniform across the dataset. They are most pronounced on "harder" examples (those with higher EL2N scores), which are known to be more important for generalization. Easier examples remain relatively stable.
- Implications for Optimization: The findings suggest that while interpolation can find "good" weight configurations, these configurations might be brittle and not naturally support continued learning with standard optimization techniques.
Key Results
- Interpolating networks trained for a small number of epochs ($s$) after initial training ($k$) can yield better accuracy than the individual networks.
- However, this performance advantage quickly diminishes within 1-2 epochs of further training.
- Dropping the learning rate early in training can prevent the performance degradation observed after interpolation, but it also lowers the final convergence performance.
- Linear warmup of the learning rate after interpolation does not prevent the performance drop.
- The performance variation due to interpolation is most noticeable on the harder subsets of the training data (e.g., Split 3 and 4 in Figure 4), while performance on easier subsets remains stable.
Limitations and Future Work
- Generalizability: The authors acknowledge that their current observations might be specific to the standard vision tasks and network architectures (ResNet, VGG) used in the study and may not generalize to other domains.
- Mitigation Strategies: While they explored dropping the learning rate and linear warmup, these did not fully resolve the issue of performance degradation. Future work could investigate alternative optimization strategies to better leverage interpolated weights.
- Understanding the "Why": The paper raises key questions about why interpolation leads to these transient gains and why interpolants are not amenable to further SGD training. Further research is needed to understand the underlying properties of these weight configurations and their position in the loss landscape.
- Practical Applications: The authors suggest that understanding these phenomena could lead to better methods for understanding neural network loss landscapes and potentially for more efficient optimization or model ensembling.
Summary updated