Decay Pruning Method: Smooth Pruning With a Self-Rectifying Procedure

Minghao Yang, Linlin Gao, Pengyuan Li, Wenbo Li, Yihong Dong, Zhiying CuiarXiv 2024 · DOI

Abstract

Structured pruning is a critical technique for deploying Deep Neural Networks (DNNs) on resource-constrained devices. However, traditional pruning methods often suffer from significant information loss due to the abrupt removal of network structures. We introduce the Decay Pruning Method (DPM), a "plug-and-play" enhancement for existing pruning frameworks. DPM replaces abrupt structural deletion with a multi-step Smooth Pruning (SP) process and introduces a Self-Rectifying (SR) procedure to rescue mistakenly pruned structures based on gradient signals. Our evaluation across CIFAR and ImageNet benchmarks shows that DPM consistently improves the accuracy and efficiency of state-of-the-art pruning methods.

Introduction

Deep Neural Networks are notoriously resource-intensive, necessitating structured pruning—the removal of entire channels or filters—to reduce computational FLOPs. Despite their utility, current pruning methods face two primary challenges: the "shock" of abrupt structural removal and sub-optimal decision-making based on static network snapshots. These issues often lead to irreversible accuracy drops that even extensive fine-tuning cannot fully recover.

Methodology

The Decay Pruning Method (DPM) addresses these limitations through two synergistic components designed to stabilize the pruning process and improve structural selection.

Smooth Pruning (SP)

Instead of setting weights to zero in a single step, SP decays the magnitude of targeted structures over $N$ optimization steps. During this period, the optimizer continues to update the weights, preserving their "directional integrity" while their $L_2$ norm is gradually scaled down toward zero. This allows the surrounding network to adapt incrementally to the diminishing influence of the structure.

Self-Rectifying (SR) Procedure

To mitigate sub-optimal pruning decisions, the SR mechanism acts as a safeguard. While a structure is decaying, DPM monitors its gradient information. If a structure exhibits strong "resistance"—indicated by gradients attempting to increase its magnitude to minimize loss—the SR mechanism halts the decay and restores the structure to the model. This treats the gradient as a signal of "future importance," allowing the network to correct mistakes in real-time.

Conceptual overview of standard pruning versus the proposed Decay Pruning Method (DPM), illustrating smooth decay and the self-rectifying mechanism.

Experimental Results

The researchers integrated DPM into popular frameworks such as OTOv2, Depgraph, and Gate Decorator, testing them on standard benchmarks including CIFAR-10, CIFAR-100, and ImageNet.

Performance Gains

DPM consistently outperformed the baseline methods across various architectures:

  • CIFAR-10 (VGG16): Adding DPM to OTOv2 resulted in a 1% boost in Top-1 accuracy while maintaining high efficiency.
  • ResNet56: Integrated with Depgraph, the method achieved a state-of-the-art Top-1 accuracy of 94.13%.
  • ImageNet (ResNet50): At 70% group sparsity, DPM achieved a 0.84% increase in Top-1 accuracy and a 1.32% further reduction in FLOPs compared to the original OTOv2 method.
Performance comparison on CIFAR-10 using VGG16, showing improvements in accuracy and efficiency when adding SP and SR to the OTOv2 framework.

Conclusion

The Decay Pruning Method shifts the pruning paradigm from abrupt deletion to a smoother, more adaptive transition. By leveraging gradient information to rectify pruning decisions and allowing the network to fade out redundant parts gradually, DPM achieves superior accuracy-efficiency trade-offs. While future work may explore its application to Transformers and Large Language Models, DPM currently stands as a robust enhancement for CNN optimization.

Summary updated

BibTeX
@misc{yang2024decay,
  author = {Minghao Yang and Linlin Gao and Pengyuan Li and Wenbo Li and Yihong Dong and Zhiying Cui},
  title = {{Decay Pruning Method: Smooth Pruning With a Self-Rectifying Procedure}},
  year = {2024},
  eprint = {2406.03879},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.03879},
}
Figure