Introduction
Convolutional Neural Networks (CNNs) have fundamentally changed the landscape of computer vision, particularly in image classification. However, their application to instance-level image retrieval—finding specific objects across different images—presents unique challenges. While classification benefits from semantic invariance (grouping different objects into one category), retrieval requires variance to distinguish between specific instances of the same category. This paper investigates how to leverage intermediate convolutional layers as dense local feature extractors to bridge this gap.
Methodology
The authors propose a pipeline that treats a pre-trained CNN as a source of local descriptors rather than a monolithic classifier.
The process involves several key steps:
- Dense Feature Extraction: Instead of using fully connected layers, the system extracts 3D feature maps from intermediate convolutional layers. Each spatial location in these maps is treated as a high-dimensional local descriptor.
- VLAD Encoding: These local features are aggregated using the Vector of Locally Aggregated Descriptors (VLAD) method. By clustering features into $k=100$ visual words, the method produces a global image representation that captures local distributions.
- Multi-Scale Analysis: To improve robustness, images are processed at multiple resolutions (e.g., $224 \times 224$ and $448 \times 448$).
- Compression: To ensure scalability, the resulting high-dimensional vectors are compressed using Principal Component Analysis (PCA) and whitening, resulting in a compact 128-dimensional descriptor.
Performance Across Network Layers
A central finding of this research is the "U-shaped" performance curve observed as one moves deeper into the network. While initial layers capture generic edges, and final layers capture broad semantics, the intermediate layers provide the optimal balance for instance retrieval.
As shown in the figures above, performance generally peaks at intermediate stages (like inception_4e in GoogLeNet or conv5_1 in OxfordNet) before declining in the final layers. This decline occurs because the deepest layers become "too semantic," losing the fine-grained local details necessary for distinguishing specific objects.
Key Results and Insights
The proposed method achieves state-of-the-art results for compact descriptors (128-D) on standard benchmarks:
- Holidays: 82.0% mAP using intermediate layers, significantly higher than the 68.5% achieved by final layers.
- Oxford (5k) and Paris (6k): The approach outperforms traditional SIFT-based methods and other CNN-based global descriptors.
- Network Architecture: OxfordNet (VGG-16) typically outperformed GoogLeNet in this context. This is attributed to OxfordNet's larger feature maps, which provide a denser set of local samples for the VLAD aggregation process.
Conclusion
This work demonstrates that the "off-the-shelf" features from intermediate convolutional layers are highly effective for instance-level image retrieval. By treating CNN activations as local descriptors and aggregating them with VLAD, the authors create a powerful and compact representation that outperforms traditional methods. Future work may involve incorporating spatial verification or fine-tuning networks specifically for the retrieval task using ranking-based loss functions.
Summary updated