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

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

Ivan Anokhin, Dmitry Yarotsky

Neural network training is often visualized as a descent into a rugged, mountainous landscape of "loss." For years, the prevailing wisdom was that this landscape was littered with isolated local minima—valleys separated by high, impassable ridges. However, recent research suggests a different reality: in large, overparameterized networks, these low-loss valleys are actually connected.

In their paper "Low-loss connection of weight vectors: distribution-based approaches," Ivan Anokhin and Dmitry Yarotsky explore how to practically find these hidden paths. They move beyond expensive numerical optimizations to propose "macroscopic" methods that treat network weights not just as individual numbers, but as samples from a distribution.

TL;DR

This paper introduces a suite of distribution-based methods to connect two different trained neural networks with a path of consistently low loss. By preserving the statistical properties of weights—rather than just interpolating their values—the authors demonstrate that we can bridge local minima efficiently, enabling new applications like computationally cheap model ensembling.

What Problem Does This Paper Address?

When you train two identical neural networks from different random starting points, they end up at different weight vectors, $\Theta^A$ and $\Theta^B$. If you try to "walk" from one to the other using a simple straight line (linear interpolation), the loss usually spikes significantly in the middle. The network essentially "breaks" halfway through.

Previous work showed that low-loss paths do exist, but finding them required intense numerical optimization for every single pair of models. Anokhin and Yarotsky sought a "general-purpose" solution: simple, analytic, or globally learnable methods that can connect any two models without needing a new optimization run every time.

Methods

The authors propose several techniques based on the idea that a network's performance depends on the distribution of its neurons' weights.

  • Arc Connection: A simple geometric fix. Instead of a straight line, which "squeezes" the weight distribution toward zero, the Arc Connection moves along a circular path. This preserves the variance of the weights, which is crucial for maintaining the network's signal. Comparison of Linear vs. Arc connection distributions
  • Learnable Methods (Normalizing Flows): Since real weight distributions aren't perfectly Gaussian, the authors use models like RealNVP to map complex weight distributions into a simple Gaussian space. They perform the Arc Connection in that "easy" space and then map the results back to the original weights. Mapping distributions to Gaussian space for connection
  • Optimal Transportation (OT): This "microscopic" approach matches individual neurons in network A to the most similar neurons in network B before connecting them, minimizing the distance the weights have to travel.
  • Weight Adjustment (WA): For multi-layer networks, the authors propose adjusting the weights of a subsequent layer (which depends linearly on the previous one) to mathematically compensate for changes in the earlier layers, effectively "fixing" the output as you move along the path. Layer-wise weight replacement strategy
Figure 2: Connection of two samples X, Y ∼N(0, 12×2). Top: Linear, Eq.(5), squeezes the distribution. Bottom: Arc, Eq.(6), preserves the distribution.
Mapping distributions to Gaussian space for connection
Figure 4: Intermediate points on the path from a four-layer network A to a network B. Starting from the first layer, the weights of model A are gradually replaced with weights of model B.

Datasets

The methods were evaluated on standard computer vision benchmarks:

  • MNIST: The classic handwritten digit dataset.
  • CIFAR-10: A dataset of 60,000 small color images in 10 classes.
  • CIFAR-100: Used specifically for testing the ensembling applications.

Key Insights and Ideas

  • Linearity is the Enemy: The "squeezing" effect of linear interpolation is a primary reason why simple paths fail. Preserving the "macroscopic" statistics of weights is often enough to keep the loss low.
  • Global Connection Models: By training a Normalizing Flow on a set of weights, you create a "global connection model." Once trained, it can connect any two new models from that distribution instantly, without further training.
  • The Power of Matching: Combining distributional methods with neuron matching (OT) and analytical fixes (WA) produces paths that are nearly as good as those found by heavy optimization.
  • Efficient Ensembling: These paths allow for "WA-ensembles." Instead of running three separate models, you can have them share a "common backbone" and only compute small, adjusted "heads" for each, saving significant memory and computation.

Key Results

The authors compared their methods against the gold-standard numerical optimization method (Garipov et al.).

  • Accuracy Preservation: On MNIST, the OT + WA method achieved a worst-point test accuracy of 97.91%, remarkably close to the 98.01% accuracy of the endpoints.
  • Complexity vs. Performance: While simple Arc Connection is a massive improvement over Linear interpolation, adding OT and WA brings the performance on par with state-of-the-art numerical methods.
  • VGG16 Success: For complex networks like VGG16 on CIFAR-10, methods without Weight Adjustment failed completely, but Arc + WA and OT + WA successfully maintained high accuracy (around 88-89% vs 91% at endpoints).

Limitations and Future Work

  • Skip Connections: The current implementation does not cover architectures with skip connections (like ResNets) due to their topological complexity, though the authors outline a theoretical way to handle them.
  • Overparameterization Dependency: The methods rely on networks being large. In "underparameterized" regimes (very small networks), these distributional assumptions start to break down.
  • Path Complexity: The OT-based paths, while effective, are piecewise linear and grow in complexity with the size of the network. The authors suggest that finding even simpler, smoother paths is a promising direction for future research.

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