Exploring Linear Relationship in Feature Map Subspace for ConvNets Compression

Dong Wang, Lei Zhou, Xueni Zhang, Xiao Bai, Jun ZhouarXiv 2018

Abstract

Modern Convolutional Neural Networks (CNNs) achieve state-of-the-art performance at the cost of significant computational and memory overhead. This paper presents a novel filter pruning framework that leverages the linear redundancy inherent in feature map subspaces. By formulating the pruning process as a subspace clustering problem, we identify and merge redundant filters through a self-expressiveness principle and linear reconstruction. Our approach achieves up to a 5x speedup on VGG-16 and a 2x speedup on ResNet-50 with negligible accuracy loss, demonstrating robust generalization across image classification, object detection, and human pose estimation tasks.

Introduction

While CNNs have revolutionized computer vision, their deployment on mobile and embedded systems remains challenging due to high storage requirements and floating-point operations (FLOPs). For instance, the VGG-16 architecture requires over 500MB of memory and billions of FLOPs per inference. To mitigate this, filter pruning has emerged as a key technique to remove redundant network components.

However, traditional pruning methods often rely on simple heuristics, such as removing filters with the smallest weight magnitudes. These "greedy" approaches fail to account for the complex linear relationships between feature maps. This research addresses the problem by treating filter selection as a subspace clustering task, aiming to preserve the most representative information within the network's internal representations.

Methodology

The proposed framework operates on the observation that feature maps within the same layer are often linearly dependent. The compression process follows a three-step pipeline:

  1. Feature Map Clustering: The method utilizes a subspace clustering algorithm based on the "self-expressiveness" property. This property posits that a feature map can be efficiently represented as a linear combination of other maps within the same subspace. This step identifies groups of redundant feature maps.
  2. Filter Merging and Reconstruction: Unlike subtractive methods that simply delete filters, this approach is consolidative. Redundant filters in the current layer and their corresponding input channels in the subsequent layer are averaged to form a single representative filter. Linear least squares are then employed to minimize the reconstruction error between the original and pruned outputs, ensuring the "knowledge" of the network is preserved.
  3. Fine-tuning: A final training phase is conducted to recover any minor accuracy drops incurred during the structural modification.

This framework is designed to be library-agnostic, allowing for seamless integration into standard deep learning environments like Caffe or TensorFlow without necessitating architectural changes.

Visualizing Subspace Redundancy

A core insight of this work is that redundancy in CNNs is fundamentally linear. Visual analysis of feature maps reveals that many outputs are nearly identical or are simple linear transformations of one another. By identifying these subspaces, the method can mathematically prove redundancy rather than relying on weight-based heuristics.

Linear feature maps grouped into subspaces, illustrating the redundancy targeted by the pruning algorithm.

As shown in the visualization, feature maps within a specific subspace (represented by rows) exhibit high similarity. The proposed method exploits this by selecting the most representative maps to maintain the network's discriminative power while reducing its size.

Experimental Results

The effectiveness of the subspace clustering approach was evaluated across several benchmarks, consistently outperforming state-of-the-art heuristic methods.

ImageNet Classification

  • VGG-16: The model achieved a 5x speedup with only a 1.1% drop in top-5 accuracy. Notably, at a 2x speedup, the model maintained its original accuracy (0% loss).
  • ResNet-50: The method achieved a 2x speedup with a mere 1.0% increase in error, surpassing the performance of popular LASSO-based pruning techniques.

Generalization to Detection and Pose Estimation

To test the robustness of the compressed features, the method was applied to complex tasks beyond classification:

  • Object Detection: Using Faster R-CNN on PASCAL VOC 2007, a 2x pruned model resulted in only a 0.2% drop in mean Average Precision (mAP).
  • Human Pose Estimation: Evaluation on MSCOCO-14 (using CMU-Pose) confirmed that the pruned models retain high-fidelity spatial information necessary for precise localization.

Discussion and Future Work

One observed trend is that pruning difficulty increases with network depth. Shallow layers exhibit massive redundancy, allowing for aggressive compression, whereas deeper layers contribute more unique features to the final output.

A current limitation involves modern architectures with "shortcut" connections, such as ResNet. The requirement for consistent dimensions in identity mappings restricted pruning to the first two layers of each residual block. Future research will focus on developing strategies to prune these restricted shortcut layers and projection branches to achieve even higher compression rates on multi-path architectures.

Summary updated

BibTeX
@misc{wang2018exploring,
  author = {Dong Wang and Lei Zhou and Xueni Zhang and Xiao Bai and Jun Zhou},
  title = {{Exploring Linear Relationship in Feature Map Subspace for ConvNets Compression}},
  year = {2018},
  eprint = {1803.05729},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1803.05729},
}
Figure