Win the Lottery Ticket via Fourier Analysis: Frequencies Guided Network Pruning

Yuzhang Shang, Bin Duan, Ziliang Zong, Liqiang Nie, Yan Yan

Abstract

Magnitude-Based Pruning (MBP) is a cornerstone of neural network compression, yet its theoretical underpinnings remain under-explored. This paper provides a novel explanation for MBP's success using Fourier analysis, showing that it preserves robust, low-frequency data representations. We introduce WILTON (WIn the Lottery Tickets through the FOurier ANalysis), a two-stage pruning method. WILTON first captures a network's low-frequency topological structure and then utilizes knowledge distillation to recover high-frequency details. Our approach achieves state-of-the-art results at extreme compression rates, maintaining performance even when 98% of weights are removed.

Introduction

As deep learning models scale, deploying them on resource-constrained edge devices necessitates aggressive compression. Magnitude-Based Pruning (MBP), which removes weights with the smallest absolute values, is widely used and underpins the "Lottery Ticket Hypothesis." This hypothesis posits that dense networks contain sparse subnetworks capable of matching the original model's performance when trained from scratch. However, a rigorous theoretical understanding of why large-magnitude weights preserve generalization has been missing. This work addresses this gap by analyzing neural networks in the frequency domain.

Theoretical Foundations: Pruning as a Frequency Filter

We bridge network pruning and spectral analysis by mathematically analyzing ReLU networks. Neural networks exhibit a "spectral bias," learning simple, low-frequency components of data first. These components are notably robust to parameter perturbations. We prove that MBP mathematically stabilizes the upper bound of the network's layer-wise transformation matrix. Consequently, MBP works because it effectively preserves the robust, low-frequency representations acquired early in training.

The WILTON Framework

Inspired by our theoretical findings, we propose WILTON, a two-stage pruning architecture designed to optimize the selection and training of sparse subnetworks.

Overview of the WILTON two-stage pruning process.
  1. Stage 1 (Lower Frequency): An unpruned network is trained briefly to learn foundational low-frequency components. MBP is then applied to extract the topological structure and initialization weights of the sparse subnetwork.
  2. Stage 2 (Higher Frequency): Knowledge Distillation (KD) is employed to transfer intricate, high-frequency representations from a fully trained "teacher" network into the pruned "student" network. This recontextualizes KD as a tool for recovering fragile details that a pruned network might otherwise struggle to learn.

Experimental Evaluation

We evaluated WILTON on CIFAR-10 and CIFAR-100 using ResNet32, ResNet56, and VGG16 architectures. WILTON was compared against vanilla MBP, the Lottery Ticket (LT) approach, and Soft Threshold Reparameterization (STR) at extreme sparsity levels (90%, 95%, and 98%).

Comparative results on CIFAR-100 at extreme sparsity.

Key Results

  • Robustness at Extreme Sparsity: On CIFAR-100 with ResNet32 at 98% sparsity, WILTON achieved 68.77% accuracy. In contrast, vanilla MBP collapsed to 1.00% accuracy (equivalent to random guessing).
  • Near-Baseline Performance: On CIFAR-10 with ResNet32, WILTON maintained 91.64% accuracy at 98% sparsity, remarkably close to the 92.30% unpruned baseline.
  • Overparameterization Proof: On CIFAR-100 with ResNet56, a WILTON-pruned model with only 10% parameters remaining actually outperformed the unpruned baseline by 0.3%.

Key Insights

  • Frequency Filtering: MBP protects the low-frequency knowledge acquired during early gradient descent.
  • KD for High-Frequency Recovery: KD helps pruned networks recover high-frequency details they lack the capacity to learn from scratch.
  • Pruning Timing: Pruning at epoch 0 fails as no low-frequency representations exist yet. Pruning at epoch 50 or 100 yields significantly better structural integrity.

Limitations and Future Work

At extreme 98% pruning ratios, architectures without residual connections (e.g., VGG16) suffer catastrophic failure because the removal of weights destroys propagation pathways. Additionally, very early pruning is ineffective due to the lack of established low-frequency guidance. Future research could further explore frequency domain decomposition to understand neural network dynamics.

Summary updated

BibTeX
@inproceedings{shang2022win,
  author = {Yuzhang Shang and Bin Duan and Ziliang Zong and Liqiang Nie and Yan Yan},
  title = {{Win the Lottery Ticket via Fourier Analysis: Frequencies Guided Network Pruning}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2022},
  url = {https://openreview.net/forum?id=VeLnc_53ut},
}
Figure