Abstract
To work at scale, a complete image indexing system comprises two components: An inverted file index to restrict the actual search to only a subset that should contain most of the items relevant to the query; An approximate distance computation mechanism to rapidly scan these lists. While supervised deep learning has recently enabled improvements to the latter, the former continues to be based on unsupervised clustering in the literature. In this work, we propose a first system that learns both components within a unifying neural framework of structured binary encoding.
Introduction
Searching through massive image databases requires efficient pruning and ranking. Standard systems employ a two-stage "coarse-to-fine" approach: an Inverted File Index (IVF) to partition the search space into "bins," followed by Approximate Distance Computation (ADC) using compact binary codes for ranking within those bins. Historically, the binning stage relied on unsupervised K-means clustering, which fails to leverage the semantic relationships captured by modern deep networks. This work introduces the first fully supervised deep learning framework that jointly learns both the inverted file index and the compact feature encoder, bridging the gap between representation learning and indexing efficiency.
The SUBIC Pipeline
The proposed architecture, SUBIC (SUpervised Block-structured bInary Coding), replaces traditional unsupervised components with a unified neural framework.
The pipeline consists of three primary modules:
- Bin Selection Block: Instead of static K-means centroids, a fully connected layer followed by a softmax/argmax operation assigns images to one of $N$ bins. This is trained as a classification task, ensuring that visually similar images are grouped together.
- Learned Residual Computation: Traditional systems use a fixed subtraction of the bin center. SUBIC employs a learned residual block that processes the original feature and the bin assignment to produce a refined vector for encoding.
- Feature Encoder: A block-structured encoder produces compact binary codes. It utilizes a "soft-softmax" during training to enable gradient flow and a "hard" one-hot encoding at inference.
Training is guided by a multi-objective loss function: cross-entropy for retrieval accuracy, entropy loss to encourage sharp binary assignments, and negative batch entropy to ensure uniform distribution of images across bins, maintaining search efficiency.
Experimental Results
The authors evaluated SUBIC on standard benchmarks including Oxford5K, Paris6K, and Holidays, with large-scale distractor sets (Flickr1M) to test scalability.
Key findings include:
- Significant Accuracy Gains: On the Holidays dataset with 1 million distractors, the SUBIC-I variant significantly outperformed the standard IVF-PQ baseline, often doubling the mAP at specific shortlist sizes.
- Superiority over IMI: SUBIC outperformed the Inverted Multi-Index (IMI), a more complex unsupervised strategy, by at least 19% relatively.
- Efficiency: The system maintains high performance with very compact codes (8 to 16 bytes), making it highly suitable for web-scale applications.
Conclusion
By treating binning as a supervised classification problem and training the entire pipeline end-to-end, SUBIC learns partitions that are more robust to visual variations than unsupervised methods. The inclusion of a negative batch entropy loss is crucial for load balancing across bins. While performance is sensitive to the diversity of the training data, the unified objective allows the encoder to effectively compensate for the characteristics of the binning stage, setting a new state-of-the-art for large-scale instance retrieval.
Reference: Jain, H., Zepeda, J., Pérez, P., & Gribonval, R. (2019). Learning a Complete Image Indexing Pipeline. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR).
Summary updated