Abstract
Content-Based Image Retrieval (CBIR) requires capturing fine-grained, instance-level details to distinguish specific objects from similar classes. This paper introduces MSCNet, a novel framework that enhances image representations through two key components: a Multiple Saliency Block (MSB) for diverse spatial attention and a Gram-matrix-based Channel Sensitivity (Gram-CS) block for informative feature weighting. By utilizing a Normalized Gram-Difference (NGD) loss, MSCNet forces multiple attention masks to focus on distinct object parts, creating a robust "fingerprint." Experimental results on standard benchmarks like Oxford5K and Paris6K demonstrate that MSCNet achieves state-of-the-art performance even with significantly less training data than competing models.
Introduction
Standard Convolutional Neural Networks (CNNs) are typically optimized for category-level classification, where intra-class variations are suppressed. In contrast, instance-level retrieval demands the preservation of these subtle differences. The primary challenges in this field are achieving high distinctiveness—capturing unique object details while ignoring background noise—and maintaining strong generalization capabilities when labeled data is scarce. MSCNet addresses these by explicitly modeling spatial diversity and channel importance.
Methodology: The MSCNet Architecture
The MSCNet framework integrates spatial and channel-wise attention into a unified pipeline for generating aggregated convolutional features.
Multiple Saliency Block (MSB)
Rather than relying on a single attention map, the MSB generates several different saliency masks. To ensure these masks capture non-overlapping information (e.g., different parts of a building), the authors propose the Normalized Gram-Difference (NGD) Loss. This loss function penalizes similarity between masks, encouraging the network to "divide and conquer" the visual features of an object—one mask might focus on a roof, another on windows, and a third on the base.
Gram-CS Block (Channel Sensitivity)
The Gram-CS block leverages the Gram matrix—traditionally used in style transfer—to model inter-channel correlations. By treating channels as a covariance matrix, the network identifies redundant versus informative features.
The block applies a weighting scheme inspired by Inverse Document Frequency (IDF): channels that are overly active across various features are suppressed as noise, while rare, highly specific channels are boosted to enhance the descriptor's discriminative power.
Training Strategies
MSCNet supports two training paradigms:
- Unsupervised Mode (UN): Employs an "Instance Loss" where each image is treated as its own class, allowing the model to learn representations without manual labels.
- Supervised Mode (SU): A two-stage process involving initial classification followed by fine-tuning with a triplet ranking loss and "batch hard mining" to optimize the embedding space.
Experimental Results
MSCNet was evaluated on five major benchmarks, including Oxford5K, Paris6K, and their large-scale counterparts (Oxford105K, Paris106K).
- Performance: The supervised model achieved a Mean Average Precision (mAP) of 86.1 on Oxford5K, surpassing established methods like R-MAC and GeM.
- Data Efficiency: Remarkably, MSCNet was trained on a dataset of only 7,154 images—roughly 1/7th of the data used by other state-of-the-art models—demonstrating superior generalization.
- Efficiency: The system is highly practical, with a query time of approximately 2.60ms on a standard GTX 1080 Ti GPU.
Conclusion
MSCNet provides a robust solution for instance-level image retrieval by prioritizing feature diversity and sensitivity. The combination of the NGD loss for spatial variety and the Gram-CS block for channel-wise refinement allows the model to excel even in data-constrained environments. Future work may involve better integration of whitening layers and exploring dynamic multi-scale training to further enhance retrieval accuracy across diverse object domains.
Summary updated