Random initialisations performing above chance and how to find them

Frederik Benzing, Simon Schug, Robert Meier, Johannes von Oswald, Yassir Akram, Nicolas Zucchet, Laurence Aitchison, Angelika Steger · DOI

Abstract

Traditional understanding of neural network training suggests that different random initializations lead to distinct solutions in weight space. However, recent research indicates that for fully connected networks (FCNs), these initializations may actually reside within the same "loss valley" once permutation invariance is accounted for. By employing an activation matching heuristic and the Hungarian algorithm, researchers can identify permutations that align different models. Strikingly, averaging these aligned random initializations results in models that perform significantly above chance—reaching up to 50% accuracy on Fashion MNIST—before any training occurs. This paper details the methodology for finding these permutations and explores the implications for our understanding of loss landscapes across different architectures.

Introduction

When training neural networks, practitioners typically start from different random initializations. While these models often achieve similar final performance, their internal weights appear vastly different. A fundamental question arises: are these networks converging to fundamentally different solutions, or are they merely permuted versions of a singular underlying structure?

This complexity stems from permutation invariance. In any hidden layer, neurons can be reordered without altering the network's output, provided their associated weights are swapped accordingly. Given the astronomical number of possible permutations, two networks might appear distant in weight space while being functionally identical. The authors investigate a recent hypothesis by Entezari et al., which suggests that once you account for these permutations, all solutions found by Stochastic Gradient Descent (SGD) actually live in the same "loss valley."

Methodology: Aligning Networks

To investigate whether different initializations inhabit the same loss valley, we must first solve the computationally difficult (NP-hard) problem of finding the optimal permutation to align two sets of weights.

Activation Matching and the Hungarian Algorithm

Rather than matching weights directly, the authors propose a heuristic based on neuron activations. By passing a subset of data through two networks, $\theta_1$ and $\theta_2$, we can identify neurons that respond similarly to the same inputs. The Hungarian algorithm is then utilized to find the optimal bipartite matching between these activations, yielding a permutation $\pi^*$.

Linear Interpolation and Loss Barriers

To verify if two models occupy the same valley, the study examines the "loss barrier" along a linear path between their parameters. If the loss remains low across the interpolation, the models are considered to be in the same basin.

Overview of the permutation finding and application process.

Key Results

The most significant finding is the existence of a "consensus" within random initializations of fully connected networks.

Performance Above Chance

On the Fashion MNIST dataset, a single random FCN typically performs at chance levels (~10% accuracy). However, when two random initializations are aligned using a permutation found after training and then averaged, the resulting model's accuracy jumps to approximately 50%. This suggests that random weights contain structured information that only becomes apparent upon alignment.

Test accuracy landscape for untrained networks showing above-chance performance.

Barrier Removal and Network Width

The hypothesis that solutions are essentially identical holds most strongly for wide FCNs. As network width increases, the loss barrier between permuted solutions nearly vanishes, confirming the Entezari et al. hypothesis for this specific architecture.

Architectural Divergence: FCNs vs. CNNs

A critical distinction emerged between fully connected and convolutional architectures. Unlike FCNs, Convolutional Neural Networks (CNNs) appear to find genuinely diverse solutions. Even after alignment, significant loss barriers remain, and averaged initializations do not perform above chance. This suggests that the convolutional constraint introduces multi-modality into the loss landscape, a phenomenon further exacerbated by high learning rates near the edge of stability.

Conclusion

The discovery that aligned random initializations can perform above chance challenges our intuition about the "randomness" of starting points in deep learning. While FCNs exhibit a high degree of connectivity and simplicity in their loss landscapes, CNNs maintain a more complex, multi-modal structure. Future work may leverage these "smart" aligned initializations to improve optimization efficiency or develop more robust ensembling techniques.

Summary updated

BibTeX
@inproceedings{benzing2022random,
  author = {Frederik Benzing and Simon Schug and Robert Meier and Johannes von Oswald and Yassir Akram and Nicolas Zucchet and Laurence Aitchison and Angelika Steger},
  title = {{Random initialisations performing above chance and how to find them}},
  booktitle = {OPT @ NeurIPS},
  year = {2022},
  url = {https://openreview.net/forum?id=HS5zuN_qFI},
}
Figure