Disentangling Linear Mode Connectivity

Gül Sena Altıntaş, Gregor Bachmann, Lorenzo Noci, Thomas Hofmann · DOI

Abstract

Linear Mode Connectivity (LMC) is a phenomenon where two neural networks, trained from the same initialization but with different data orderings, are connected by a path of low loss in parameter space. This study systematically deconstructs neural architectures and optimization procedures to identify the minimal conditions for LMC. Through a bottom-up approach, we identify weight-sharing (the hallmark of CNNs) and the ADAM optimizer as primary disruptors of connectivity. Furthermore, we demonstrate how increasing dataset complexity and network depth significantly widen the "complexity gap," making LMC increasingly difficult to maintain.

Introduction

In the study of deep learning loss landscapes, LMC suggests that the optimization process often leads models into a single, broad basin of low error. While well-documented, the underlying reasons why certain architectures or optimizers preserve or break this connectivity have remained elusive. Previous research often conflated multiple variables—datasets, optimizers, and complex architectures—making it difficult to pinpoint the source of disruption. This work aims to "disentangle" these factors to find the minimal conditions required for LMC to occur.

Experimental Framework

The researchers adopt a bottom-up methodology, starting with the simplest possible model—Logistic Regression—and gradually adding complexity. They identify a 1-hidden layer MLP with ReLU activation trained with SGD as the "minimal non-trivial model" that robustly exhibits LMC. From this baseline, they systematically intervene on three axes:

  1. Architecture: Comparing standard MLPs to Locally Connected Networks (LCNs), Convolutional Neural Networks (CNNs), and Vision Transformers (ViTs).
  2. Optimization: Comparing SGD with ADAM, while varying learning rates and the use of warm-up periods.
  3. Data Complexity: Scaling tasks across MNIST, CIFAR-10, CIFAR-100, and TinyImageNet.

To compare LMC across these varied settings, the authors introduce a normalized error barrier metric that accounts for the baseline test accuracy of the models.

The Role of Architecture: Locality vs. Weight-Sharing

A significant finding of this study is that weight-sharing is a primary disruptor of connectivity. While "locality" (where neurons only process nearby pixels) tends to preserve LMC, the reuse of filters across an image—as seen in CNNs—significantly breaks it. This suggests that the constraints imposed by weight-sharing force the optimization path into more isolated regions of the loss landscape.

Comparison of error barriers across different architectures. Locally Connected Networks (LCNs) maintain connectivity similar to MLPs, whereas weight-sharing in CNNs and global attention in ViTs introduce significant barriers.

Optimization and the Complexity Gap

The choice of optimizer also plays a critical role. ADAM is much more likely to break connectivity than SGD, particularly as network depth increases. Interestingly, LMC can often be "rescued" in ADAM by using a learning rate warm-up, suggesting that the trajectory toward a connected or disconnected state is determined very early in the training process.

Furthermore, as the underlying dataset becomes more complex, LMC becomes harder to maintain. This "complexity gap" pushes models into distinct, isolated regions of the loss landscape as they attempt to learn more intricate features.

Scaling of task barriers with dataset complexity and model depth. Deeper networks and more complex datasets (e.g., TinyImageNet) lead to higher connectivity barriers, especially under high learning rates.

Conclusion

By deconstructing neural networks to their simplest components, this research identifies weight-sharing, the ADAM optimizer, and task complexity as the primary factors that break Linear Mode Connectivity. While these findings provide a clearer empirical picture of loss landscape geometry, future work is needed to develop a formal theoretical framework explaining why weight-sharing specifically exerts such a disruptive influence. Investigating the early phases of training more closely may reveal the exact moment when models diverge into disconnected basins.

Summary updated

BibTeX
@misc{altntas2023disentangling,
  author = {Gül Sena Altıntaş and Gregor Bachmann and Lorenzo Noci and Thomas Hofmann},
  title = {{Disentangling Linear Mode Connectivity}},
  year = {2023},
  eprint = {2312.09832},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.09832},
}
Figure