On the Neural Tangent Kernel Analysis of Randomly Pruned Wide Neural Networks

Hongru Yang, Zhangyang Wang · DOI

Abstract

Recent empirical evidence suggests that randomly pruned neural networks can achieve performance comparable to dense networks, provided they are sufficiently wide. This paper provides a theoretical foundation for this phenomenon using the Neural Tangent Kernel (NTK) framework. We demonstrate that a randomly pruned sparse network is asymptotically equivalent to its dense counterpart when weights are properly rescaled. Furthermore, we establish non-asymptotic bounds showing that the width required to maintain this equivalence scales linearly with the sparsity parameter.

Introduction

Neural network pruning is a critical technique for deploying efficient models on resource-constrained devices. While traditional methods focus on pruning after training, the Lottery Ticket Hypothesis (LTH) revealed the existence of sparse sub-networks at initialization that can be trained to high accuracy. However, finding these "winning tickets" typically requires computationally expensive iterative procedures.

Surprisingly, recent studies have shown that even the simplest form of pruning—randomly removing weights at initialization—can be remarkably effective if the network is sufficiently overparameterized. This paper investigates the theoretical underpinnings of this observation. By analyzing the training dynamics through the lens of the Neural Tangent Kernel (NTK), we explain why and under what conditions randomly pruned networks behave like dense ones.

The NTK Framework for Sparse Networks

The Neural Tangent Kernel describes how a network's outputs evolve during gradient descent in the "lazy training" regime, where weights stay close to their initial values. To compare dense and sparse architectures, the authors analyze the NTK of a fully-connected network and a version where weights are masked by a random pruning process with a keep-probability $\alpha$.

1. Asymptotic Equivalence and Rescaling

The authors prove that in the infinite-width limit, the NTK of a randomly pruned network converges to the NTK of the original dense network, scaled by the factor $\alpha$. This implies that the training dynamics are identical in shape but differ in magnitude. Crucially, by rescaling the remaining weights by $1/\sqrt{\alpha}$, the scaling factor is neutralized, making the kernels—and thus the training trajectories—mathematically identical to the dense case.

2. Finite-Width Analysis

Because real-world networks are not infinitely wide, the authors derive non-asymptotic bounds to determine the necessary width for a sparse network to approximate its dense counterpart. They introduce "mask-induced pseudo-networks" as an analytical tool to track error propagation through the sparse structure. Their findings indicate that the required width $m$ scales linearly with the inverse of the sparsity ($1/\alpha$). In practical terms, to maintain the same training dynamics while making a network 10x sparser, one should increase the initial width by approximately 10x.

Empirical Validation

The theoretical predictions were validated across several benchmarks:

  • Synthetic Data: Monte Carlo simulations confirmed that as width increases (from $2^5$ to $2^{13}$), the empirical NTK of pruned models converges precisely to the theoretical dense limit.
  • MNIST and CIFAR-10: Experiments using LeNet, VGG-11, and ResNet-20 architectures demonstrated that rescaling is essential for maintaining performance.
  • Overparameterization in Practice: On CIFAR-10, a ResNet-20-128 (a wider variant of the standard model) was pruned to 86.6% sparsity and achieved accuracy within 1% of the full dense model. This confirms that sufficient width allows random pruning to become a viable alternative to more complex pruning heuristics.

Discussion and Limitations

This work establishes random pruning as a rigorous theoretical baseline. If sophisticated pruning methods (such as SNIP or GraSP) cannot outperform a properly rescaled randomly pruned wide network, their added complexity may not be justified.

However, several open questions remain:

  1. Pruning Type: This analysis is specific to random pruning. Data-dependent methods like Magnitude Pruning (IMP) introduce correlations between weights and masks that the current NTK framework does not yet account for.
  2. The Backward Pass: While the forward pass shows a linear dependence on $1/\alpha$, the current theoretical bound for the backward pass (gradient flow) is more restrictive ($1/\alpha^2$). It remains to be seen if this gap can be closed.
  3. Feature Learning: The NTK analysis assumes the "lazy training" regime. Future research is needed to explore how sparse networks behave in the "feature learning" regime, where weights move significantly from their initialization to adapt to the data.

Conclusion

By proving the asymptotic equivalence between dense and randomly pruned wide networks, this paper clarifies why overparameterization is a prerequisite for successful pruning at initialization. The linear relationship between width and sparsity provides a clear heuristic for practitioners looking to deploy efficient, sparse models without the overhead of iterative pruning schedules.

Summary updated

BibTeX
@inproceedings{yang2023neural,
  author = {Hongru Yang and Zhangyang Wang},
  title = {{On the Neural Tangent Kernel Analysis of Randomly Pruned Wide Neural Networks}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2023},
}
Figure