Trainability Preserving Neural Pruning

Huan Wang, Yun Fu

Introduction

Trainability Preserving Pruning (TPP) is a novel approach to neural network compression that focuses on keeping the network "easy to train" even after significant portions of its architecture are removed. By decorrelating pruned filters from kept ones and regularizing Batch Normalization (BN) parameters, TPP maintains a healthy optimization landscape. This leads to superior performance and greater robustness to hyper-parameters compared to traditional pruning methods.

The Problem: Broken Trainability

Neural network pruning—the process of removing redundant parameters to make models faster and smaller—typically follows a standard "train-prune-retrain" pipeline. However, the "prune" step is often violent. Removing filters abruptly breaks the dynamical isometry of the network. Dynamical isometry is a technical state where signals and gradients flow smoothly through layers without exploding or vanishing.

When this "trainability" is broken, the optimization landscape becomes jagged and difficult to navigate. Recent research has noted a "learning rate mystery": pruned models often require unusually high learning rates during retraining just to recover their original performance. The authors argue that this is a direct symptom of a broken landscape. While previous methods have attempted to fix this for simple linear models, they have largely failed to scale to modern Convolutional Neural Networks (CNNs) that rely heavily on non-linearities (like ReLU) and Batch Normalization.

The Solution: Trainability Preserving Pruning (TPP)

The authors introduce TPP, a scalable method that preserves trainability through two primary technical innovations:

1. Weight Decorrelation (Partial Orthogonality)

Instead of forcing all remaining filters to be strictly orthogonal—which is often too restrictive and hurts model performance—TPP uses a customized weight gram matrix penalty. It specifically encourages the correlation between "to-be-pruned" filters and "to-be-kept" filters to diminish to zero.

Comparison of target gram matrices for different orthogonality constraints.

As shown above, TPP shifts away from strict kernel orthogonality (a) toward a targeted decorrelation (c). This effectively "cuts the dependency" between the two groups of filters, ensuring that when the unimportant filters are eventually deleted, the remaining network remains stable and its signal flow is uninterrupted.

2. Batch Normalization (BN) Regularization

Most pruning algorithms ignore BN layers, focusing solely on convolutional weights. TPP recognizes that BN parameters (scale $\gamma$ and bias $\beta$) are integral parts of the trainable signal path.

Illustration of TPP applied to a Residual Block.

If a filter is removed but its associated BN parameters remain unadjusted, the network skews the feature distribution, severely damaging trainability. To combat this, TPP regularizes both the scale and bias of pruned channels toward zero.

These penalties are applied using a growing regularization scheme. The strength of the penalty increases gradually during a "regularized training" phase before the actual weights are permanently removed.

Key Insights and Results

The authors evaluated TPP across a variety of standard benchmarks, including MNIST (with MLPs), CIFAR-10/100 (with ResNet56 and VGG19), and the large-scale ImageNet-1K (with ResNet34 and ResNet50).

  • Benign Status vs. Perfect Isometry: The paper demonstrates that you do not need a mathematically perfect "identity" Jacobian to have a trainable network. You simply need a "benign" state where gradients aren't extremely large or small. TPP achieves this by imposing the least constraint necessary on the weights.
  • A Flatter Landscape: Visualization of the loss surface shows that TPP results in a much flatter and smoother optimization landscape compared to standard $L_1$ (magnitude-based) pruning. A flatter landscape generally correlates with better generalization and easier optimization.
  • Robustness to Hyper-parameters: Because TPP keeps the network "trainable," it is much less sensitive to the choice of learning rate during the retraining phase. Standard pruning methods often fail if the retraining learning rate is too small; TPP maintains high performance regardless.
  • Superior Accuracy: On CIFAR-10 with ResNet56 at 95% sparsity, TPP achieved 85.86% accuracy, significantly outperforming standard $L_1$ pruning (83.03%). On ImageNet-1K with ResNet50, TPP consistently outperformed top-tier structured pruning methods. At a 3.06× speedup, TPP maintained a top-1 accuracy of 74.51% (only a 1.62% drop from the baseline).

Limitations and Future Work

While highly effective, TPP does have limitations. It requires a "regularized training" phase before weights are removed. While relatively efficient (taking about 30% of the total pruning/retraining time), it is computationally more complex than "one-shot" pruning methods.

Furthermore, the current study focuses on CNNs and MLPs. Future work could explore how TPP might apply to Transformer-based architectures (like Vision Transformers), which utilize Layer Normalization instead of Batch Normalization. Finally, the authors suggest that preserving trainability is a central issue in the "Lottery Ticket Hypothesis," hinting that TPP could be used to find sparse, trainable sub-networks from scratch more effectively.

Summary updated

BibTeX
@inproceedings{wang2023trainability,
  author = {Huan Wang and Yun Fu},
  title = {{Trainability Preserving Neural Pruning}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=AZFvpnnewr},
}
Figure