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

On Symmetry and Initialization for Neural Networks

Ido Nachum, Amir Yehudayoff

TL;DR

This paper demonstrates that exploiting symmetry in neural network design, specifically through careful initialization, is crucial for efficient learning of symmetric functions. They show that with symmetry-aware initialization, standard SGD can achieve generalization guarantees for shallow networks, a feat not possible with random initialization. This highlights the significant impact of initialization strategies on a network's ability to learn.

What Problem Does This Paper Address?

The paper tackles a fundamental challenge in understanding neural networks: how to guarantee efficient training and generalization, especially for specific classes of functions. While neural networks are powerful, their behavior can be unpredictable, and achieving good performance often relies on a combination of architecture, optimization, and initialization. The authors focus on the "non-trivial" case of a single hidden layer network and investigate the role of symmetry in the learning process. Specifically, they question whether symmetry can bridge the gap between failure and success in learning certain functions, like parity, which are known to be difficult with random initialization.

Methods

The core of the paper's contribution lies in its theoretical analysis and empirical validation of symmetry-based initialization for shallow neural networks.

  • Architectural Design: They consider neural networks with one hidden layer and analyze two common activation functions: sigmoid and ReLU. They derive specific constructions (Lemmas 1 and 2) showing how these networks can represent symmetric functions.
  • Initialization Strategy: The key novelty is the proposed symmetry-aware initialization. Instead of random weights, they devise an initialization that leverages the inherent symmetries of the target functions.
  • Theoretical Analysis: They employ mathematical tools to analyze the convergence of Stochastic Gradient Descent (SGD) under this specific initialization. The proof involves understanding the interaction between the hidden layer (acting as an "embedding" of the input) and the output layer. They analyze the "margin" of the hidden layer's representation and its stability during training.
  • Empirical Validation: The theoretical findings are supported by experiments. They compare the performance of their proposed initialization against random initialization on learning symmetric functions, including parity.

Datasets

Not explicitly discussed in terms of named datasets. The experiments use synthetic data generated from symmetric functions and random samples from the input space X = {0,1}^n.

Key Insights and Ideas

  • Symmetry is Key for Initialization: The paper strongly suggests that exploiting the symmetries of the target function class is not just an architectural choice but a critical factor for successful initialization, enabling efficient learning where random initialization fails.
  • Initialization as a "Good Geometric Structure": The authors frame the problem in terms of the hidden layer creating a "good geometric structure" or "embedding" of the input space. A well-chosen initialization ensures this embedding has a sufficient margin, which is crucial for SGD to converge efficiently.
  • Parity as a Hard Case: The paper highlights that parity functions, while seemingly simple, are notoriously difficult for neural networks to learn from random initialization. This difficulty is contrasted with the ease of learning them with symmetry-aware initialization.
  • Interaction Between Layers: The theoretical proof emphasizes the interplay between the hidden layer's representation and the output layer's learning process. The stability of the hidden layer's embedding is shown to be vital for the overall network's generalization.
  • Generalization Guarantees: The work provides theoretical guarantees for generalization, showing that with the proposed initialization, shallow networks can learn symmetric functions efficiently with a polynomial number of samples.

Key Results

  • Theoretical Guarantee: The paper proves that for a class of symmetric functions, a shallow neural network with a specific symmetry-aware initialization can be trained efficiently using SGD to achieve generalization guarantees.
  • Empirical Success: Experiments demonstrate that the proposed initialization significantly outperforms random initialization in learning symmetric functions, especially parity.
  • Failure of Random Initialization: The paper empirically shows that random initialization leads to poor performance, with networks failing to generalize even when empirical error is minimized.
  • Robustness: The proposed initialization also shows robustness to data corruption (label flipping and input shifting), maintaining good performance.

Limitations and Future Work

  • Shallow Networks: The theoretical results are primarily focused on networks with a single hidden layer. Extending these findings to deeper networks remains an open question.
  • Specific Symmetric Functions: While the paper focuses on a class of symmetric functions, the generalizability of the approach to other types of symmetries or more complex function classes is not fully explored.
  • Explanation of Random Initialization Failure: The paper poses an open question about why random initialization fails so spectacularly for parity and other symmetric functions, suggesting further theoretical investigation is needed.
  • Generalizing Geometric Structure: The authors suggest that understanding the "favorable geometric states" of the network that guarantee fast convergence and generalization is a promising direction for future research, aiming for a cleaner and more abstract understanding of this phenomenon.

Summary updated

BibTeX
@inproceedings{nachum2020symmetry,
  author = {Ido Nachum and Amir Yehudayoff},
  title = {{On Symmetry and Initialization for Neural Networks}},
  booktitle = {LATIN},
  year = {2020},
  url = {https://openreview.net/forum?id=XkidbVNLXl},
}
Figure