Skip to main content
QUICK REVIEW

[Paper Review] Compression of Deep Neural Networks for Image Instance Retrieval

Vijay Chandrasekhar, Jie Lin|arXiv (Cornell University)|Jan 18, 2017
Advanced Image and Video Retrieval TechniquesComputer Science20 references4 citations
TL;DR

This paper proposes a comprehensive compression framework for deep neural networks tailored to image instance retrieval, combining quantization, pruning, coding, and weight sharing—especially for residual networks—achieving models as small as 5–10 MB with negligible performance loss compared to full-precision networks.

ABSTRACT

Image instance retrieval is the problem of retrieving images from a database which contain the same object. Convolutional Neural Network (CNN) based descriptors are becoming the dominant approach for generating {\it global image descriptors} for the instance retrieval problem. One major drawback of CNN-based {\it global descriptors} is that uncompressed deep neural network models require hundreds of megabytes of storage making them inconvenient to deploy in mobile applications or in custom hardware. In this work, we study the problem of neural network model compression focusing on the image instance retrieval task. We study quantization, coding, pruning and weight sharing techniques for reducing model size for the instance retrieval problem. We provide extensive experimental results on the trade-off between retrieval performance and model size for different types of networks on several data sets providing the most comprehensive study on this topic. We compress models to the order of a few MBs: two orders of magnitude smaller than the uncompressed models while achieving negligible loss in retrieval performance.

Motivation & Objective

  • Address the challenge of deploying large, uncompressed deep neural networks in mobile and embedded systems due to their high storage and memory requirements.
  • Study model compression techniques—quantization, pruning, coding, and weight sharing—specifically for image instance retrieval, a task with different requirements than image classification.
  • Provide a comprehensive empirical analysis of the trade-off between model size and retrieval performance across multiple architectures and datasets.
  • Enable deployment of deep learning-based descriptors in emerging standards like MPEG's Compact Descriptors for Visual Search (CDVS), which require feature extractors under 1 MB.

Proposed method

  • Apply 4- to 5-bit scalar quantization to network weights, reducing precision while preserving retrieval performance.
  • Use vector quantization (VQ) and scalar quantization (SQ) for compressing fully connected layers, with Huffman coding for further size reduction.
  • Implement structured pruning by removing entire filters or channels in convolutional layers, reducing model size while maintaining feature representation.
  • Introduce weight sharing across residual blocks in deep residual networks (ResNets), significantly reducing parameter count with shared weights across repeated blocks.
  • Train Shared ResNet models from scratch with shared weights, and further compress them using quantization and coding.
  • Evaluate compression techniques across multiple networks (AlexNet, VGG, ResNet, SqueezeNet) and datasets (Oxford-5K, Paris-6K, Holidays, UKB), measuring performance via mAP.

Experimental results

Research questions

  • RQ1What is the trade-off between model size and retrieval performance when applying quantization, pruning, and coding to deep networks for image instance retrieval?
  • RQ2How does weight sharing across residual blocks affect model size and retrieval accuracy in deep residual networks?
  • RQ3Can compressed models be reduced to a few megabytes (e.g., 5–10 MB) while maintaining performance comparable to full-precision models?
  • RQ4How do different compression techniques compare in performance and efficiency across diverse architectures and datasets?
  • RQ5To what extent do aggressive architectural optimizations (e.g., SqueezeNet) compromise retrieval performance despite reducing model size?

Key findings

  • 4-bit quantization results in negligible performance loss for AlexNet and VGG, while 5-bit quantization is required for ResNet to maintain high retrieval accuracy.
  • Compressed models of 5–10 MB achieve retrieval performance nearly identical to their uncompressed counterparts across all datasets, representing a 100x reduction in size.
  • Pruning and coarser quantization yield similar trade-offs between model size and performance, indicating both are effective compression strategies.
  • Compressed VGG achieves the highest performance on Oxford-5K, while compressed ResNet outperforms others on Paris-6K, Holidays, and UKB.
  • Shared ResNet with weight sharing reduces model size by 3–4× compared to non-shared versions, and further quantization enables even smaller models.
  • SqueezeNet-based models (C-SqueezeN) are only 0.5 MB but perform significantly worse than top-performing schemes, indicating that aggressive architectural compression harms retrieval performance.

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.