Spectral Pruning: Compressing Deep Neural Networks via Spectral Analysis and its Generalization Error

Taiji Suzuki, Hiroshi Abe, Tomoya Murata, Shingo Horiuchi, Kotaro Ito, Tokuma Wachi, So Hirai, Masatoshi Yukishima, Tomoaki Nishimura

Overview

Spectral Pruning introduces a novel compression framework that leverages "statistical degrees of freedom"—derived from the eigenvalues of internal covariance matrices—to identify and remove redundant neurons. By bridging the gap between practical pruning heuristics and statistical learning theory, this method achieves state-of-the-art results on ImageNet, outperforming established methods like ThiNet and NISP.

The Challenge of Over-parameterization

Deep Neural Networks (DNNs) are notoriously over-parameterized, presenting significant barriers to deployment on resource-constrained edge devices like smartphones or drones. While various pruning techniques have been developed to mitigate this, most rely on heuristics and lack a rigorous theoretical foundation. Specifically, a gap exists between practical compression and the "compression-based generalization bounds" in statistical learning theory. Spectral Pruning aims to identify a pruning metric that is both mathematically sound and practically effective.

Methodology: The Spectral Framework

The core of Spectral Pruning is treating model compression as an information preservation problem. The process consists of three primary components:

  1. Statistical Degrees of Freedom (DoF): Rather than relying on weight magnitudes, the authors analyze the eigenvalue distribution of the covariance matrix of a layer's internal nodes. A rapid decay in eigenvalues indicates high redundancy, allowing the "degrees of freedom" to represent the layer's intrinsic dimensionality.
Eigenvalue decay demonstrating high redundancy in layer representations.
  1. Information Loss Minimization: The algorithm selects a subset of nodes to minimize a joint objective:
  2. Input Information Loss: The ability of selected nodes to reconstruct the original layer's information.
  3. Output Information Loss: The ability of selected nodes to predict the input for the subsequent layer.
  4. Greedy Optimization: Finding the absolute optimal subset is NP-hard. However, because the objective function is submodular, a greedy algorithm can efficiently find a near-optimal solution by sequentially adding nodes that most reduce the combined information loss.

Theoretical Insights

  • Bias-Variance Tradeoff: The paper provides a sharp generalization error bound, demonstrating that pruning introduces bias (approximation error) while reducing variance (overfitting risk). The optimal compression level is found at the balance of this tradeoff.
  • Intrinsic vs. Nominal Size: The intrinsic dimensionality (DoF) is often orders of magnitude smaller than the nominal parameter count. In architectures like VGG-19, layers can be compressed by factors of 10 to 100 without significant information loss.
  • Collective Redundancy: Unlike magnitude-based pruning, Spectral Pruning accounts for inter-node correlations. A node with large weights may still be pruned if its contribution is redundant relative to the rest of the ensemble.

Key Results and Performance

The researchers evaluated Spectral Pruning across MNIST, CIFAR-10, and ImageNet (ILSVRC2012).

  • ImageNet Benchmarks: On ResNet-50, the Spec-ResA variant achieved 72.99% Top-1 accuracy with only 12.38M parameters, significantly outperforming ThiNet-50 (71.01%) and NISP-50-B (71.99%).
Performance comparison on ImageNet using ResNet-50.
  • Efficiency and Robustness: The layer-wise nature of the algorithm makes it compatible with complex architectures like ResNet without requiring global optimization. Furthermore, the method is robust to hyperparameter selection, particularly the $\theta$ parameter balancing input and output loss.

Limitations and Future Work

While Spectral Pruning offers a robust theoretical and practical framework, some limitations remain. The greedy approach, while efficient, is still an approximation. Additionally, the method is data-dependent, requiring a pass through training data to compute covariance matrices. Future research could extend this spectral analysis to specialized structures like attention heads in Transformers or explore non-greedy optimization strategies.

Summary updated

BibTeX
@inproceedings{suzuki2020spectral,
  author = {Taiji Suzuki and Hiroshi Abe and Tomoya Murata and Shingo Horiuchi and Kotaro Ito and Tokuma Wachi and So Hirai and Masatoshi Yukishima and Tomoaki Nishimura},
  title = {{Spectral Pruning: Compressing Deep Neural Networks via Spectral Analysis and its Generalization Error}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.24963/ijcai.2020/393},
}
Figure