NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Low-loss connection of weight vectors: distribution-based approaches

Ivan Anokhin, Dmitry Yarotsky

When training the same neural network architecture twice with different random initializations, the optimization process typically converges to two entirely different points (weight vectors) in a high-dimensional loss landscape. Surprisingly, recent research has revealed that these points aren't isolated islands; they are usually connected by continuous "valleys" of low loss.

However, finding these paths previously required one of two extremes: computationally expensive numerical optimization that "trains" a path specifically for two given points, or rigorous theoretical constructions that only work under highly restrictive conditions (like networks with an infinite number of neurons).

This paper bridges that gap. By treating the weights of a network as samples from a "macroscopic" distribution, the authors develop simple, universally applicable methods to connect two trained models without the need for expensive numerical path optimization.

The "Squeeze" Effect and the Problem with Straight Lines

Why can't we just draw a straight line between two models? The authors identify a phenomenon called the "squeeze" effect. Simple linear interpolation fails because it fundamentally alters the statistical distribution of the weights.

For instance, at the exact midpoint of a linear path between two independent models, the variance of the weights is artificially reduced (squeezed). The network was never trained to handle this compressed distribution, leading to a massive spike in error along the path. Low-loss connectivity can instead be achieved by focusing on the "macroscopic" distribution of weights rather than the specific "microscopic" values of individual neurons.

Visualizing the Squeeze Effect: Linear vs. Arc Interpolation

Distribution-Based Solutions

To overcome the squeeze effect, the authors propose viewing a neural network as a distribution of neurons and introduce several methods to connect them:

  • Arc Connection: A simple geometric improvement over a straight line. While a straight line squeezes the distribution, an arc preserves the variance, keeping the macroscopic properties of the network stable along the path.
  • Learnable Methods (Normalizing Flows): Using architectures like RealNVP and IAF, the authors learn a mapping from the complex distribution of trained weights to a simple, tractable Gaussian distribution. They connect the models in this "easy" Gaussian space and then map the path back to the original weight space.
  • Optimal Transportation (OT): This method treats neurons as physical particles. It calculates the most efficient way to "move" the neurons of Model A to match the positions of neurons in Model B, effectively permuting them into a compatible order before connecting them.

Scaling to Deep Networks: Weight Adjustment (WA)

While simple arc connections work well for single layers, deep networks require a more nuanced approach. For multi-layer networks, the authors propose a step-wise "Weight Adjustment" (WA) method.

They connect the weights of one layer using a simple rule (like an arc or OT) and then analytically solve a linear system—using a pseudo-inverse—to adjust the next layer's weights. This ensures that the network's intermediate outputs remain nearly constant, preventing cascading errors deeper into the network.

Step-wise Weight Adjustment across multiple layers

Key Results and Applications

The methods were rigorously evaluated on standard computer vision benchmarks, including MNIST and CIFAR-10/100, using architectures ranging from simple fully-connected networks to deep convolutional models like VGG16.

  • Arc vs. Linear: On CIFAR-10, a simple linear connection between two models drops to ~39% accuracy. The Arc Connection maintains ~41%, and adding Weight Adjustment (Arc + WA) dramatically improves it to ~58%—nearly matching the endpoint accuracy of ~59%.
  • Optimal Transport Success: The OT + WA method proved highly effective, achieving 97.91% accuracy on MNIST and 58.96% on CIFAR-10, rivaling the performance of the original models.
  • Rescuing VGG16: For complex models like VGG16, where simple interpolation fails completely (dropping to 10% accuracy), the Arc + WA and OT + WA methods maintained high accuracy (up to 89.24% on CIFAR-10). This rivals the much more expensive numerical optimization methods of previous studies.
  • Efficient Ensembling: The authors also introduce "WA-ensembles." Instead of running five separate, full-sized models, practitioners can use one common backbone and several small "adjusted heads." This provides the accuracy boost of a traditional ensemble but with significantly less computational overhead.

Limitations and Future Work

While highly effective for feed-forward and standard convolutional networks, the paper notes that implementing these methods for architectures with skip connections (like ResNets) is relatively complex and remains an area for future work.

Additionally, the Weight Adjustment method relies heavily on the network being overparameterized. If the number of data points vastly exceeds the number of neurons in a layer, the analytical pseudo-inverse solution becomes less accurate, leading to a performance drop along the path. Finally, while Optimal Transportation provides excellent accuracy, it is computationally more demanding than simpler Arc methods, highlighting an ongoing need to find the perfect sweet spot between simplicity and accuracy.

Summary updated

BibTeX
@inproceedings{anokhin2020low,
  author = {Ivan Anokhin and Dmitry Yarotsky},
  title = {{Low-loss connection of weight vectors: distribution-based approaches}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
  url = {https://openreview.net/forum?id=8cgkKfn2IRT},
}
Figure