A Practical Guide to CNNs and Fisher Vectors for Image Instance Retrieval

Vijay Chandrasekhar, Jie Lin, Olivier Morère, Hanlin Goh, Antoine Veillard

Abstract: With deep learning becoming the dominant approach in computer vision, the use of representations extracted from Convolutional Neural Nets (CNNs) is quickly gaining ground on Fisher Vectors (FVs) as favoured state-of-the-art global image descriptors for image instance retrieval. While the good performance of CNNs for image classification are unambiguously recognised, which of the two has the upper hand in the image retrieval context is not entirely clear yet. In this work, we propose a comprehensive study that systematically evaluates FVs and CNNs for image retrieval. The first part compares the performances of FVs and CNNs on multiple publicly available data sets. We investigate a number of details specific to each method. For FVs, we compare sparse descriptors based on interest point detectors with dense single-scale and multi-scale variants. For CNNs, we focus on understanding the impact of depth, architecture and training data on retrieval results. Our study shows that no descriptor is systematically better than the other and that performance gains can usually be obtained by using both types together. The second part of the study focuses on the impact of geometrical transformations such as rotations and scale changes. FVs based on interest point detectors are intrinsically resilient to such transformations while CNNs do not have a built-in mechanism to ensure such invariance. We show that performance of CNNs can quickly degrade in presence of rotations while they are far less affected by changes in scale. We then propose a number of ways to incorporate the required invariances in the CNN pipeline. Overall, our work is intended as a reference guide offering practically useful and simply implementable guidelines to anyone looking for state-of-the-art global descriptors best suited to their specific image instance retrieval problem.

Introduction

In the mid-2010s, computer vision was at a crossroads. Deep learning was conquering image classification, but the "old guard" of hand-crafted features—specifically Fisher Vectors (FVs)—still held its ground in the nuanced world of image instance retrieval. Unlike general classification, where a system just needs to identify a category (e.g., "this is a building"), retrieval requires finding a specific instance (e.g., the exact Eiffel Tower) from different angles, in varying lighting, or at different scales.

This study provides a systematic comparison of these two approaches, offering a roadmap for researchers deciding between the power of neural networks and the geometric reliability of traditional methods.

Methodology: Comparing Two Paradigms

The authors conduct a comprehensive evaluation using two primary pipelines to generate global image descriptors:

  1. Fisher Vectors (FV): This traditional approach was tested in three variants: FVDoG (sparse descriptors based on SIFT at Difference-of-Gaussian interest points), FVDS (densely sampled SIFT at a single scale), and FVDM (densely sampled SIFT at multiple scales).
  2. CNN Descriptors: The study evaluated four pre-trained models (OxfordNet/VGG, AlexNet, PlacesNet, and HybridNet) across different layers, from pool5 through fc8.
Overview of the Fisher Vector and Deep Convolutional Neural Network architectures for image representation.

To address the inherent lack of geometric invariance in CNNs, the researchers investigated various cropping strategies (Center crop vs. Padding vs. "Squishing") and proposed database-side pooling. This technique involves extracting features from multiple rotated or scaled versions of a database image and max-pooling them into a single, robust descriptor.

Key Insights and Best Practices

The systematic evaluation across diverse benchmarks—including INRIA Holidays, Oxford Buildings, UKBench, and Stanford Mobile Visual Search—yielded several critical insights for practitioners:

  • The "Sweet Spot" Layer: For retrieval tasks, the first fully connected layer (fc6) is almost always the most effective. Final layers (fc8) tend to be too specialized for the original training categories, while earlier layers are too raw.
  • The Domain Gap: Training data has a significant impact. A network trained on scenes (e.g., PlacesNet) significantly outperforms an object-trained network (e.g., AlexNet) on landscape retrieval, but the reverse is true for object-centric tasks.
  • Scale vs. Rotation Invariance: CNNs are naturally robust to scale changes, likely because they encounter objects at various sizes during training. However, they are fragile to rotation; performance drops rapidly if a query is rotated more than 10 degrees. In contrast, FVs based on interest point detectors are intrinsically rotation-invariant.
Summary of experimental observations and recommendations for image retrieval descriptors.

Performance and Results

The results indicate that neither descriptor is universally superior. On the Holidays and UKBench datasets, CNNs (specifically OxfordNet) outperformed the best FVs. However, on the Graphics dataset—which features heavy rotation and text—traditional FVDoG remained the clear winner.

Ultimately, the study demonstrates that combination is king. By concatenating a CNN descriptor with a Fisher Vector, the authors achieved state-of-the-art performance. For example, on the Holidays dataset, a fusion of OxfordNet and a baseline FV achieved an mAP of 0.85, outperforming either method used in isolation. Furthermore, the proposed database-side max-pooling successfully "patched" the CNN's rotation weakness, making it nearly as robust as SIFT-based systems.

Conclusion

While CNNs offer powerful semantic representations, FVs provide essential geometric reliability. Future work in this area is expected to focus on unsupervised CNN training and the development of hybrid detectors that use CNNs to describe patches identified by traditional interest-point detectors. For now, practitioners are encouraged to leverage the complementary strengths of both methods to achieve optimal retrieval results.

Summary updated

BibTeX
@article{chandrasekhar2016practical,
  author = {Vijay Chandrasekhar and Jie Lin and Olivier Morère and Hanlin Goh and Antoine Veillard},
  title = {{A Practical Guide to CNNs and Fisher Vectors for Image Instance Retrieval}},
  journal = {Signal Processing},
  year = {2016},
  url = {https://openreview.net/forum?id=q3Qabj7mbx},
}
Figure