A study on the Ramanujan Graph Property of Winning Lottery Tickets

Bithika Pal, Arindam Biswas, Sudeshna Koley, Pabitra Mitra, Biswajit BasuICML 2022

Deep neural networks are notoriously over-parameterized, often containing millions more weights than strictly necessary for their tasks. The Lottery Ticket Hypothesis (LTH) famously posits that within these massive models exist tiny, sparse subnetworks—"winning tickets"—that can match the performance of the full model if trained from scratch with the original initialization.

But what mathematically distinguishes a "winning ticket" from a poorly performing sparse network? Is it merely the magnitude of the remaining weights, or is there a fundamental structural property at play? Recent research suggests the answer lies in Spectral Graph Theory, specifically a robust mathematical structure known as a Ramanujan Graph.

This paper demonstrates that winning ticket subnetworks are uniquely characterized by the Ramanujan graph property, a gold standard for robust connectivity in sparse networks. By introducing a pruning algorithm that explicitly preserves this property, researchers can discover ultra-sparse networks that are significantly more accurate and noise-robust than those found by standard magnitude-based methods.

While the Lottery Ticket Hypothesis is widely accepted, the underlying mechanics of why certain sparse structures succeed while others fail has remained elusive. Standard empirical methods, such as Iterative Magnitude Pruning (IMP), successfully find these tickets but lack a formal mathematical framework to explain why some sparse structures maintain optimal "information flow."

Most pruning research focuses on weight magnitudes or gradients, largely ignoring the global connectivity of the network. If a pruned network becomes structurally bottlenecked or disconnected, it loses its ability to learn effectively. The core challenge is identifying the mathematical limit of sparsity: exactly how thin can a layer be pruned before it loses its capacity to transmit information?

Methodology: Networks as Bipartite Graphs

To answer this, the researchers treat each layer of a neural network—whether Fully Connected or Convolutional—as a bipartite graph.

Mapping a convolutional layer to a bipartite graph

To analyze these graphs, they utilize Spectral Expansion:

  1. Ramanujan Graphs: These are a special class of "expander graphs" offering the best possible trade-off between sparsity and connectivity. Mathematically, they are defined by the "spectral gap" between the largest and second-largest eigenvalues of their adjacency matrix.
  2. The Ramanujan Boundary: Using Cheeger’s inequality to define bounds for irregular graphs, the authors monitor whether a layer satisfies the Ramanujan property as it undergoes pruning.
  3. Connectivity-Based Pruning: Instead of blindly removing the smallest weights, the proposed algorithm checks the "Ramanujan-ness" of a layer. If pruning a specific percentage of weights causes the layer to lose its Ramanujan property, the algorithm backs off—halving the pruning rate or stopping entirely for that layer to prevent structural collapse.
  4. Weighted vs. Unweighted Analysis: The study analyzes both the binary structure (existence of a connection) and the weighted structure (strength of the connection) to ensure robust information flow.

Key Insights: The Phase Transition of Pruning

By evaluating this approach on standard computer vision benchmarks (MNIST with LeNet, and CIFAR-10 with Conv4, Conv6, and VGG19), the authors uncovered a critical phase transition during the pruning process.

They identified three distinct regimes:

  • Fully Ramanujan: The network retains the Ramanujan property across layers, and accuracy remains highly stable.
  • Partially Ramanujan: Some layers lose the property, and model accuracy begins to decline.
  • Non-Ramanujan: The network loses its expander graph properties, resulting in a complete performance collapse.

This reveals that the Ramanujan property acts as a natural "stopping criterion" for pruning. It mathematically defines when a layer has become too sparse to function as an efficient expander. Furthermore, networks that preserve this property are much more resilient to input noise, suggesting that winning tickets are not just accurate, but structurally robust. Standard IMP often breaks the Ramanujan property at high sparsity levels, leading to the sudden accuracy "cliff" commonly observed in pruning literature.

Striking Results at Extreme Sparsity

The quantitative improvements achieved by respecting the Ramanujan boundary are particularly striking at extreme sparsity levels:

  • MNIST (LeNet): At a microscopic density of 1.33%, a Ramanujan-aware pruning algorithm maintained 93.82% accuracy. In contrast, the standard version plummeted to 67.21%.
  • CIFAR-10 (Conv4): At 2.54% density, standard IMP yielded a mere 28.13% accuracy. By simply enforcing the Ramanujan constraint, accuracy surged to 70.58%.
  • Noise Resilience: When subjected to noisy environments (Gaussian noise, $\sigma=0.6$), Ramanujan-preserving networks maintained significantly higher accuracy than standard counterparts, proving that spectral expansion is vital for model reliability.

Limitations and Future Directions

While groundbreaking, this spectral approach comes with computational overhead. Calculating eigenvalues for every layer during every pruning iteration is more computationally expensive than simple magnitude pruning. Additionally, while the method was successfully tested on architectures up to VGG19, scaling it to massive Transformer models or LLMs will require highly efficient spectral approximation techniques.

Finally, there remains a theoretical gap: the Ramanujan bound is technically optimal for infinite sequences of graphs. Applying it to the finite, relatively small graphs of a neural network layer serves as a highly effective heuristic, but leaves room for the development of more rigorous finite-graph theories.

By linking deep learning to the elegant world of spectral graph theory, this research provides a much-needed theoretical compass for navigating the sparse, complex landscape of the Lottery Ticket Hypothesis.

Summary updated

BibTeX
@inproceedings{pal2022study,
  author = {BITHIKA PAL and Arindam Biswas and Sudeshna Koley and Pabitra Mitra and BISWAJIT BASU},
  title = {{A study on the Ramanujan Graph Property of Winning Lottery Tickets}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=sZwf9T13Hl},
}
Figure