TL;DR
This paper proposes that the "shortest paths" in the geometric space of neural network models (called geodesics) correspond to "mode-connecting paths" in the loss landscape. They introduce a new algorithm to find these geodesics and show it can connect different trained models with low loss, even when simpler linear paths fail, particularly for narrower network architectures.
What Problem Does This Paper Address?
Training deep neural networks often results in multiple solutions (minima) in the loss landscape that perform similarly well. A key question is whether these different solutions are connected by paths that maintain low loss. This "mode connectivity" is important for understanding generalization, ensembling, and transfer learning. Previous work showed that linear interpolation between two trained models can sometimes maintain low loss. However, this linear approach can fail, especially for certain network architectures. The authors aim to find a more robust way to identify these low-loss paths by leveraging the underlying geometric structure of neural network parameter spaces.
Methods
The core idea is to reframe the problem using Information Geometry. In this view, a neural network is seen as defining a probability distribution, and the space of all possible neural network parameters forms a curved manifold. The "length" of a path between two models in this manifold is defined by the Fisher-Rao metric, which captures how much the output distributions change. The shortest path in such a curved space is called a geodesic.
The authors propose a novel algorithm to approximate these geodesics. Instead of directly calculating the geodesic, they discretize the path into a sequence of models. They then optimize these intermediate models to minimize a discrete approximation of the path's length, which is related to the Jensen-Shannon Divergence (JSD) between the distributions of adjacent models in the sequence. This optimization is performed while keeping the start and end models fixed.
Datasets
The experiments were conducted using the CIFAR-10 dataset.
Key Insights and Ideas
- Geodesics as Mode Connectors: The central hypothesis is that geodesics in the information geometry of neural networks are precisely the mode-connecting paths in the loss landscape. This provides a principled, geometrically-grounded way to find low-loss paths.
- Curvature Matters: Linear interpolation can fail because it doesn't account for the inherent curvature of the neural network's parameter space. Geodesics, by definition, follow this curvature, leading to more efficient paths.
- Narrower Networks: The proposed geodesic optimization method is shown to work for narrower ResNet architectures, where linear mode connectivity has previously failed. This suggests the method is more generalizable to different model complexities.
Key Results
- The paper demonstrates that their geodesic optimization algorithm successfully finds low-loss paths between two trained ResNet20 models on CIFAR-10.
- Figure 2 (Right) shows that while linear interpolation between two models results in a significant loss increase, their geodesic path maintains low loss across all intermediate points.
- This method achieves mode connectivity for narrow ResNets, a task where linear interpolation methods struggled.
Limitations and Future Work
- Approximation: The algorithm approximates geodesics, not computes them exactly. The quality of the approximation depends on the number of intermediate points used.
- Computational Cost: Approximating geodesics might be computationally more expensive than simple linear interpolation.
- Future Work: The authors suggest comparing their geodesic paths with those found by other methods (like Garipov et al., 2018) and theoretically investigating the properties of these geodesic paths. They also mention that their method only requires training data, not labels or test data, which could be a practical advantage.
Summary updated