Skip to main content
QUICK REVIEW

[Paper Review] On-the-fly Network Pruning for Object Detection

Marc Masana, Joost van de Weijer|arXiv (Cornell University)|May 11, 2016
Advanced Neural Network ApplicationsComputer Science5 references5 citations
TL;DR

This paper proposes on-the-fly network pruning for object detection by leveraging image-level feature activations to dynamically remove redundant units in fully connected layers before processing thousands of candidate bounding boxes. By identifying and pruning units with near-zero activation across the entire image, the method reduces network parameters by up to 40% with minimal mAP degradation, significantly improving inference efficiency without retraining.

ABSTRACT

Object detection with deep neural networks is often performed by passing a few thousand candidate bounding boxes through a deep neural network for each image. These bounding boxes are highly correlated since they originate from the same image. In this paper we investigate how to exploit feature occurrence at the image scale to prune the neural network which is subsequently applied to all bounding boxes. We show that removing units which have near-zero activation in the image allows us to significantly reduce the number of parameters in the network. Results on the PASCAL 2007 Object Detection Challenge demonstrate that up to 40% of units in some fully-connected layers can be entirely eliminated with little change in the detection result.

Motivation & Objective

  • To reduce computational cost in object detection by exploiting high correlation among thousands of candidate bounding boxes derived from a single image.
  • To develop a dynamic pruning strategy that removes redundant neural network units based on image-level activation patterns, rather than static or post-training pruning.
  • To maintain high detection accuracy while reducing model complexity by eliminating units with near-zero activation across the entire image.
  • To explore the feasibility of pruning both forward and backward units in fully connected layers using activation analysis.
  • To evaluate the method on the PASCAL VOC 2007 dataset using the Fast R-CNN framework with a modified VGG16 architecture.

Proposed method

  • The method performs forward unit pruning on the fc6 layer by identifying and removing units in the pool5 layer with near-zero activation across spatial dimensions, based on a thresholded sum of activations.
  • Backward unit pruning is applied to the fc8 layer by using a pre-classifier to predict likely object classes in the image, then retaining only the top-N classes and pruning the rest from the weight and bias matrices.
  • The approach uses ReLU activation functions, and units with activations below a threshold are treated as zero, enabling removal of corresponding rows in weight matrices and bias vectors.
  • The pruning is applied before processing bounding box proposals, allowing a smaller, more efficient network to be used for all candidate boxes.
  • The method is applicable to both fully connected and convolutional layers, as the activation analysis is layer-agnostic.
  • The network is not retrained after pruning; the pruned network directly uses the original trained weights, with parameter reduction achieved through structural removal of inactive units.

Experimental results

Research questions

  • RQ1Can image-level activation patterns be used to identify and remove redundant units in a neural network before processing multiple correlated bounding boxes?
  • RQ2To what extent can parameter reduction be achieved in fully connected layers without significant performance degradation in object detection?
  • RQ3How does forward pruning (based on feature map activations) compare to backward pruning (based on predicted class probabilities) in terms of accuracy and efficiency?
  • RQ4What is the optimal threshold for identifying near-zero activations that still preserves detection performance?
  • RQ5Can this on-the-fly pruning strategy be extended to other layers and tasks such as semantic segmentation?

Key findings

  • Up to 40% of units in the fc6 layer can be pruned with less than 1% mAP loss, demonstrating significant parameter reduction with minimal accuracy impact.
  • Forward pruning on the pool5 layer achieved a 25–40% reduction in fc6 parameters with a mAP loss of less than 1%, indicating high efficiency and robustness.
  • Backward pruning on fc8 achieved up to 70% parameter reduction with less than 1% mAP loss when keeping 6 or more classes, showing strong performance for output layer compression.
  • Performance degradation occurred beyond 40% parameter reduction in fc6 and after keeping fewer than 6 classes in fc8, indicating a performance trade-off at high pruning rates.
  • The method showed a minor initial performance improvement when pruning low-activation units, possibly due to reduced noise from negligible activations.
  • The approach is effective even though only a small fraction of total network parameters reside in fc8, suggesting relevance in models with many output classes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.