Studying the Consistency and Composability of Lottery Ticket Pruning Masks

Rajiv Movva, Jonathan Frankle, Michael CarbinarXiv 2021

Introduction

The Lottery Ticket Hypothesis (LTH) suggests that dense neural networks contain sparse subnetworks, termed "winning tickets," which can achieve the original network's accuracy when trained from their initial weights. Identifying these tickets typically involves Magnitude Pruning (MP), a process where weights with the smallest absolute values are removed after training. However, the stochastic nature of training—driven by factors such as data ordering in Stochastic Gradient Descent (SGD)—raises questions about the stability of these masks. This study investigates the consistency of pruning masks across independent training runs and evaluates whether combining masks from multiple "sibling" runs can improve the accuracy-sparsity tradeoff.

Methodology

The experimental framework utilized a ResNet-20 architecture trained on the CIFAR-10 dataset. To analyze mask stability, the researchers implemented a "sibling" protocol:

  1. Initialization and Pretraining: Networks are initialized with a shared random state ($\\theta_0$) and pretrained for $t$ iterations to reach state $\\theta_t$.
  2. Branching: From $\\theta_t$, $k$ independent siblings are created and trained to completion using distinct SGD noise.
  3. Pruning and Composition: Each sibling is pruned to a target sparsity $s$. The resulting masks are then combined using two logic-based strategies: Mask Union (retaining weights present in at least one sibling) and Mask Intersection (retaining only weights present in all siblings).
  4. Evaluation: Subnetworks are rewound to $\\theta_t$, the composed mask is applied, and the model is retrained to assess final accuracy.

Consistency of Pruning Masks

A primary finding of this research is that the "fate" of important weights is determined early in the training process. Without shared pretraining, the overlap between pruning masks of different siblings is minimal. However, introducing even a small amount of shared pretraining (e.g., 500 iterations) significantly increases mask consistency.

Pruning overlap for k=2 and several siblings. Shared pretraining significantly increases the fraction of shared pruned weights compared to the expected random overlap.

As illustrated in Figure 3, with 2000 iterations of pretraining, the fraction of shared weights between siblings far exceeds the random expectation. This suggests that the optimization trajectory, and thus the resulting importance of specific weights, is largely established during the initial phase of training.

Composability and Performance

The study further explored whether aggregating masks from multiple runs could yield a "super-mask" that outperforms standard one-shot magnitude pruning. Two mathematically opposite strategies were tested: Mask Union (conservative) and Mask Intersection (aggressive).

Surprisingly, both strategies resulted in nearly identical performance when compared at the same final sparsity level. Furthermore, neither approach provided a significant improvement over the standard one-shot magnitude pruning baseline.

Accuracy vs. mask sparsity for mask union and intersection across several siblings. Both composition strategies track the one-shot baseline and fail to provide a performance boost.

As shown in Figure 6, while these composed masks significantly outperform random baselines, they fail to surpass the performance of a single "winning ticket" found through standard MP. This "composability paradox" suggests that the information gained from multiple training runs is redundant for the purpose of identifying high-quality sparse subnetworks.

Conclusion

This research demonstrates that while shared pretraining makes pruning masks highly consistent, simple boolean combinations of these masks do not enhance the discovery of winning tickets. The observation that union and intersection masks perform identically to the one-shot baseline remains an open theoretical question. Future investigations may consider more complex mask aggregation methods or evaluate these findings on larger-scale architectures and datasets.

Summary updated

BibTeX
@misc{movva2021studying,
  author = {Rajiv Movva and Jonathan Frankle and Michael Carbin},
  title = {{Studying the Consistency and Composability of Lottery Ticket Pruning Masks}},
  year = {2021},
  eprint = {2104.14753},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.14753},
}
Figure