NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Convolutional Patch Representations for Image Retrieval: An Unsupervised Approach

Mattis Paulin, Julien Mairal, Matthijs Douze, Zaïd Harchaoui, Florent Perronnin, Cordelia Schmid

TL;DR

This paper introduces Convolutional Kernel Networks (CKNs) as a novel, unsupervised approach to learning powerful patch descriptors for image retrieval. CKNs achieve state-of-the-art results on standard benchmarks, outperforming supervised CNNs and traditional methods like SIFT, while being significantly faster to train.

What Problem Does This Paper Address?

Image retrieval, the task of finding similar images in a large database, heavily relies on effective visual descriptors that can capture the essence of image patches. While Convolutional Neural Networks (CNNs) have shown great promise in computer vision tasks like classification, their application to unsupervised image retrieval has been limited. This is primarily because training CNNs typically requires vast amounts of labeled data, which is scarce for retrieval tasks. Existing methods often resort to using pre-trained CNNs (trained for classification) or artificially introducing supervision, which can be suboptimal. This paper aims to bridge this gap by proposing an unsupervised method for learning patch descriptors that are competitive with, or even superior to, supervised approaches.

Methods

The core contribution is the Convolutional Kernel Network (CKN), a framework for learning patch representations without explicit labels. CKNs build upon the concept of kernel methods and approximate infinite-dimensional feature maps. The key ideas include:

  • Layer-wise Learning: CKNs are trained layer by layer, approximating a specific non-linear kernel at each stage. This allows for efficient learning without requiring end-to-end training on labeled data.
  • Kernel Approximation: The paper leverages approximations of the Gaussian kernel to create finite-dimensional feature maps. This is crucial for practical implementation and allows for a CNN-like architecture.
  • Unsupervised Training: Instead of relying on classification labels, CKNs are trained to approximate kernel functions, effectively learning invariant representations from unlabeled data.
  • Patch-CKN Descriptor: The proposed descriptor, named Patch-CKN, is derived from this CKN framework.
  • Image Retrieval Pipeline: The pipeline involves extracting keypoints (using Hessian-Affine detector), encoding them with Patch-CKN descriptors, and then aggregating these local descriptors using VLAD pooling to form a global image representation.

Datasets

  • Standard Benchmarks:
    • Patch Retrieval: Mikolajczyk et al. dataset.
  • Image Retrieval: Holidays, Oxford, and University of Kentucky Benchmark (UKB).
  • New Dataset:
    • RomePatches: Introduced by the authors, this dataset provides ground truth for both patch and image retrieval. It's derived from 3D reconstructions of landmarks in Rome, offering synchronized views of scenes with consistent parameters. This dataset allows for joint evaluation of patch descriptor performance on both tasks.

Key Insights and Ideas

  • Unsupervised Learning is Sufficient: The paper strongly suggests that for patch description and image retrieval, explicit supervision might not be necessary. CKNs demonstrate that learning from kernel approximations can yield state-of-the-art results.
  • CKNs as a Faster Alternative: CKNs are significantly faster to train than traditional CNNs, making hyperparameter tuning and experimentation much more efficient. This is a major practical advantage.
  • Patch and Image Retrieval Link: The paper highlights the importance of evaluating patch descriptors on both patch and image retrieval tasks, as performance on one doesn't always guarantee performance on the other. The RomePatches dataset facilitates this joint evaluation.
  • CKN Inputs Matter: Different input representations for CKNs (raw RGB, whitened RGB, gradients) show varying performance, indicating that the initial data preprocessing plays a crucial role. Gradients (CKN-grad) and whitened RGB (CKN-white) often perform better for tasks involving structures like buildings.

Key Results

  • State-of-the-Art Performance: Patch-CKN achieves state-of-the-art results on several standard patch and image retrieval benchmarks, outperforming SIFT and supervised CNNs.
  • Speed Advantage: CKNs are significantly faster to train (e.g., 10 minutes on a GPU for a layer) compared to traditional CNNs.
  • Patch Retrieval: CKN-grad and CKN-white descriptors, especially after dimensionality reduction (PCA+whitening), achieve high mAP scores, often surpassing supervised methods like PhilippNet and AlexNet. For instance, CKN-grad with semi-whitening achieved 92.5% mAP on RomePatches-train.
  • Image Retrieval: CKN-mix (concatenation of CKN-grad and CKN-white descriptors) performs competitively, achieving high mAP scores on Holidays (79.3%) and Oxford (49.8% with Hessian-Affine, 56.5% with crop).
  • Robustness: CKN descriptors show good robustness to transformations like rotation, zoom, and translation, as demonstrated by low average L2 distances between transformed and original patch descriptors.

Limitations and Future Work

  • Hyperparameter Tuning: While faster to train, CKNs still require careful hyperparameter tuning, though the authors provide heuristics for stable training.
  • CKN-grad Performance: While CKN-grad performs well on building-centric datasets like Oxford, its performance can be less optimal on datasets with more diverse color content.
  • Future Work: The authors suggest further exploring the specific level of invariance induced by CKNs and how their fast training time can be leveraged for even more extensive hyperparameter searches or larger-scale applications. They also leave open the question of whether the success is due to invariance or training speed.

Summary updated

BibTeX
@article{paulin2017convolutional,
  author = {Mattis Paulin and Julien Mairal and Matthijs Douze and Zaïd Harchaoui and Florent Perronnin and Cordelia Schmid},
  title = {{Convolutional Patch Representations for Image Retrieval: An Unsupervised Approach}},
  journal = {Int. J. Comput. Vis.},
  year = {2017},
  doi = {10.1007/s11263-016-0924-3},
}
Figure