Group Sparsity: The Hinge Between Filter Pruning and Decomposition for Network Compression

Yawei Li, Shuhang Gu, Christoph Mayer, Luc Van Gool, Radu Timofte

Abstract

This paper introduces a unified framework for neural network compression that bridges the gap between two popular techniques: filter pruning and low-rank decomposition. By inserting a "sparsity-inducing matrix" and applying group sparsity regularization, the authors create a "hinge" that allows a model to flexibly switch between pruning and decomposition depending on the specific structural needs of each layer. This approach effectively addresses the limitations of pruning in modern architectures like ResNet while maintaining the efficiency of decomposition.

Introduction

Deep Convolutional Neural Networks (CNNs) are notoriously resource-hungry, making them difficult to deploy on mobile or edge devices. To reduce their computational footprint, researchers typically employ two distinct strategies: filter pruning and low-rank decomposition. Filter pruning involves deleting entire filters to reduce output channels, while low-rank decomposition breaks a heavy convolutional layer into two lighter ones.

However, these methods are usually treated as separate entities with distinct drawbacks. Pruning often struggles with architectures like ResNet because "shortcut" connections require specific layers to have matching dimensions, creating constraints that prevent pruning certain channels. Decomposition is more flexible but can introduce extra computational overhead. This paper argues that these two methods are actually two sides of the same "compact tensor approximation" coin and should be handled within a single, cohesive mathematical framework.

The Hinge Mechanism

The core innovation is the introduction of a sparsity-inducing matrix ($A$) attached to a standard convolutional layer ($W$). This matrix $A$ acts as a $1 \times 1$ convolution. By applying group sparsity regularization to this matrix, the authors create a "Hinge" that can perform two different types of compression:

  • Filter Pruning (Column Sparsity): Enforcing sparsity on the columns of $A$ effectively nullifies output channels.
  • Filter Decomposition (Row Sparsity): Enforcing sparsity on the rows of $A$ reduces the "inner" channels between $W$ and $A$, splitting the operation into two smaller pieces.
The Hinge mechanism unifying filter pruning and decomposition through a sparsity-inducing matrix.

This unified view allows the framework to switch to decomposition when pruning is physically impossible (such as at the end of a ResNet block), enabling the compression of network segments that previous pruning-only methods had to leave untouched.

Optimization Pipeline

To implement this framework, the authors developed a sophisticated optimization pipeline designed to handle the non-differentiable nature of sparsity-inducing penalties and ensure global optimality across the network.

Overview of the compression and fine-tuning workflow.

The pipeline consists of several key components:

  1. Proximal Gradient Solver: Handles non-differentiable sparsity penalties.
  2. Binary Search for Thresholding: Finds the exact threshold needed to reach a specific target compression ratio (e.g., a 50% reduction in FLOPs).
  3. Layer Balancing & Learning Rate Adjustment: Dynamically adjusts parameters across layers to prevent bottlenecks and ensure uniform compression quality.
  4. Knowledge Distillation: Uses the original uncompressed model as a "teacher" during the final fine-tuning phase to help the compressed "student" model recover accuracy.

Experimental Results

The "Hinge" method was evaluated on standard computer vision benchmarks, including CIFAR-10, CIFAR-100, and ImageNet (2012), using architectures such as VGG16, ResNet, and DenseNet. The results consistently outperformed state-of-the-art (SOTA) techniques:

  • ResNet56 (CIFAR-10): Achieved a 50% reduction in FLOPs with a Top-1 error of 6.31%, outperforming competitors like KSE (6.77%) and FPGM (6.74%).
  • VGG16 (CIFAR-10): Reduced FLOPs by nearly 40% while slightly improving accuracy over the baseline.
  • ResNet50 (ImageNet): At approximately 46.5% FLOPs, the method achieved a 25.30% error rate, outperforming SSS and ThinNet under similar constraints.

Conclusion and Future Work

By viewing pruning and decomposition as different ways of enforcing low-rank constraints on a parameter tensor, the Hinge framework provides a more flexible and globally optimal approach to network compression. While the method introduces some overhead due to extra $1 \times 1$ layers in decomposition, it significantly advances the ability to compress complex architectures like ResNet. Future work may focus on hardware-aware optimization and further automating the search for regularization hyperparameters.

Summary updated

BibTeX
@inproceedings{li2020group,
  author = {Yawei Li and Shuhang Gu and Christoph Mayer and Luc Van Gool and Radu Timofte},
  title = {{Group Sparsity: The Hinge Between Filter Pruning and Decomposition for Network Compression}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.00804},
}
Figure