Self-Supervised Consistent Quantization for Fully Unsupervised Image Retrieval

Guile Wu, Chao Zhang, Stephan LiwickiarXiv 2022 · DOI

Abstract

This paper introduces Self-Supervised Consistent Quantization (SSCQ), a novel framework for fully unsupervised image retrieval. Unlike traditional methods that rely on labeled data or pre-trained weights, SSCQ learns discriminative binary codes by enforcing consistency at both global and part-based levels. By discovering semantic structures through neighbor consistency and bridging the quantization gap via fused representation learning, SSCQ achieves state-of-the-art performance on standard benchmarks including CIFAR-10, NUS-WIDE, and FLICKR25K.

Introduction

Image retrieval—the task of finding images similar to a query in a massive database—traditionally relies on high-quality visual features and efficient quantization to compress these features into short binary codes. However, most high-performing models require extensive supervision or pre-training on massive labeled datasets like ImageNet. Fully unsupervised retrieval aims to train models from scratch on raw pixels, avoiding the cost of labeling and the biases of pre-trained models.

The primary challenge in unsupervised retrieval is that existing methods often treat every image as an isolated instance, failing to capture the inherent semantic relationships between different images (e.g., recognizing that two different photos of a park should be neighbors). Additionally, the quantization process typically introduces a "bottleneck" where useful semantic information is lost during the conversion from continuous vectors to discrete codes.

Methodology

SSCQ addresses these challenges by introducing a training objective composed of two main pillars: Part Consistent Quantization (PCQ) and Global Consistent Quantization (GCQ).

The SSCQ framework architecture, highlighting Part Consistent Quantization (PCQ) and Global Consistent Quantization (GCQ) modules.

Part Consistent Quantization (PCQ)

PCQ operates on the principle of Product Quantization (PQ), which breaks a large feature vector into smaller sub-embeddings. SSCQ identifies the nearest neighbors for these parts within a training batch and forces the model to maintain consistency among these "part-neighbors." This process effectively uses local neighborhood structures as self-supervision cues to discover semantic categories. To prevent the model from collapsing into a few redundant codes, a Codeword Diversity Regularization term is employed to maximize entropy across the codeword vocabulary.

Global Consistent Quantization (GCQ)

GCQ focuses on bridging the gap between continuous embeddings and quantized codes. The model performs contrastive learning on both representations and, crucially, fuses them. By enforcing consistency (via KL-Divergence) between the fused representations of different augmented views of the same image, the model learns features that are specifically "quantization-hardened," retaining vital semantic information even after lossy compression.

Experiments and Results

The authors evaluated SSCQ on three standard benchmarks: CIFAR-10, NUS-WIDE, and FLICKR25K. The framework was tested across various bit lengths (16, 32, and 64 bits) and compared against existing state-of-the-art unsupervised methods.

Precision-Recall and P@1000 curves across CIFAR10, NUSWIDE, and FLICKR datasets, demonstrating SSCQ's superior performance.

SSCQ sets a new state-of-the-art for fully unsupervised retrieval. On CIFAR-10, it achieved 78.3% Mean Average Precision (mAP) at 16 bits, significantly outperforming the previous best of 76.8%. On the multi-label NUS-WIDE dataset, it surpassed previous methods by a margin of 3.0% at 16 bits. Furthermore, a variant using a pre-trained backbone (SSCQ-p) also outperformed existing pre-trained unsupervised methods like MeCoQ, demonstrating the framework's versatility.

Conclusion

SSCQ demonstrates that enforcing consistency at multiple granularities allows a model to discover hidden semantic structures without any human intervention. By treating quantization as an integral part of the learning process rather than a post-processing step, the framework effectively mitigates information loss. While a performance gap still exists between fully unsupervised and supervised methods, SSCQ represents a significant step forward in autonomous visual representation learning. Future work may explore richer self-supervision cues and more complex relational structures within the data.

Summary updated

BibTeX
@misc{wu2022self,
  author = {Guile Wu and Chao Zhang and Stephan Liwicki},
  title = {{Self-Supervised Consistent Quantization for Fully Unsupervised Image Retrieval}},
  year = {2022},
  eprint = {2206.09806},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.09806},
}
Figure