Hybrid multi-layer Deep CNN/Aggregator feature for image classification

Praveen Kulkarni, Joaquin Zepeda, Frederic Jurie, Patrick Perez, Louis ChevallierarXiv 2015

TL;DR

This paper introduces a hybrid image classification feature that treats the intermediate layers of a pre-trained Deep Convolutional Neural Network (DCNN) as dense local descriptors, aggregating them using classical, unsupervised methods like Bag-of-Words (BoW). This approach bypasses the need for expensive DCNN fine-tuning and bounding-box annotations on new datasets, delivering competitive classification accuracy at a fraction of the computational cost.

What Problem Does This Paper Address?

Deep learning has revolutionized image classification, but standard DCNNs come with heavy baggage: massive computational costs and a hunger for huge annotated datasets. While transfer learning helps by reusing networks pre-trained on large datasets (like ImageNet), existing adaptation methods still require fine-tuning millions of parameters and often rely on tedious, expensive bounding-box annotations to train on image patches.

The authors tackle this problem by bridging the gap between classical feature engineering (which is fast, unsupervised, and lightweight) and deep learning (which is highly accurate but resource-intensive) to make domain adaptation efficient and annotation-light.

Methods

The authors propose a hybrid pipeline. Instead of fine-tuning a pre-trained DCNN (specifically, the classic AlexNet architecture shown in Figure 1), they treat the spatial feature maps from the intermediate convolutional and pooling layers (layers 1 to 10) as a dense set of local descriptors.

They then apply traditional, unsupervised aggregation techniques—specifically Bag-of-Words (BoW) and Fisher Vectors (FV)—individually to the descriptors extracted from each layer. The aggregated features from a selected subset of layers are concatenated to form the final image representation, which is then classified using a simple linear SVM.

In an extended variant, they also append the raw outputs of the network's fully connected layers (layers 11–13) directly to this hybrid feature vector to further boost performance.

Fig. 1. Architecture of the Deep-CNN pipeline of [8] trained on ImageNet 2012 and used in this paper. Each layer, represented by a box, is labeled with the size Rl × Cl × Kl of its output in (3). The Kl kernels at layer l have dimension nl × nl × Kl−1. The layer index l (respectively, kernel spatial dimension nl) is indicated below (above) the box for each layer. The input image is assumed normalized to size 224 × 224 × 3, and 4× downsampling is applied during the first layer. Dark-lined boxes: convolutional layers; dash- lined boxes: normalization layers; light-lined boxes: max-pooling layers; grayed-in boxes: fully-connected layers.

Datasets

  • ImageNet 2012: Used for the initial supervised pre-training of the base DCNN architecture (15 million images, 22,000 classes).
  • PASCAL VOC 2007: Used as the target benchmark to evaluate the hybrid feature extraction and classification performance (9,163 images across 20 visual categories).

Key Insights and Ideas

  • Deep Layers as Local Descriptors: Intermediate DCNN layers naturally capture multi-scale spatial support (ranging from an 11x11 pixel receptive field in the first layer up to 75x75 in later layers), making them excellent proxies for traditional multi-scale dense SIFT descriptors.
  • The Last Layers Matter Most: When selecting which intermediate layers to aggregate, layers further down the pipeline are significantly more informative. The authors found that using the last 5 intermediate layers yielded the best results.
  • BoW Beats Fisher Vectors Here: Surprisingly, while Fisher Vectors usually outperform Bag-of-Words for SIFT features, BoW performs better in this hybrid architecture. Because intermediate DCNN layers yield a relatively small number of local descriptors per image, the vector-averaging process in Fisher Vectors becomes statistically noisy.
  • Tiny Codebooks Pack a Punch: Even with an incredibly small codebook size of just 30 (resulting in a tiny 150-dimensional feature vector), the hybrid approach outperforms traditional SIFT-based BoW models with Spatial Pyramid Matching (SPM).

Key Results

  • Efficiency vs. Performance: The hybrid DCNN/BoW approach with a codebook size of 500 achieves a mean Average Precision (mAP) of 60.32% on PASCAL VOC 2007. This matches the performance of complex Fisher Vector schemes but utilizes a feature vector that is 150 times smaller.
  • Drastic Training Speedup: Compared to supervised DCNN adaptation methods (like PRE1000C), which require roughly a day of training on high-end GPUs, the hybrid DCNN/BoW approach trains in just 1 hour and 5 minutes on a standard 8-core CPU.
  • Fully Connected Boost: When the fully connected layers are appended to the hybrid feature, the performance jumps to nearly 74% mAP, approaching the state-of-the-art supervised adaptation performance (77.73%) while maintaining a significantly lower computational footprint during both training and testing.
Fig. 4. Using last L layers from Fig. 1. Here we include the fully connected layers 11-13.

Limitations and Future Work

  • Statistical Noise in FV: The current method cannot fully exploit Fisher Vector aggregation due to the low density of descriptors produced by the intermediate DCNN layers.
  • Dimensionality Alignment: Currently, features from different layers are simply concatenated. The authors note that mapping all layers to a common dimensionality using techniques like PCA or discriminative dimensionality reduction before pooling could be a promising direction to improve scale invariance and further compress the feature size.

Summary updated

BibTeX
@misc{kulkarni2015hybrid,
  author = {Praveen Kulkarni and Joaquin Zepeda and Frederic Jurie and Patrick Perez and Louis Chevallier},
  title = {{Hybrid multi-layer Deep CNN/Aggregator feature for image classification}},
  year = {2015},
  eprint = {1503.04065},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1503.04065},
}
Figure