Abstract
This paper introduces DISH (Discrete Supervised Hashing), a framework designed for high-quality image retrieval at scale. By employing an asymmetric matrix factorization technique, the authors reduce the computational complexity of similarity-based hashing from $O(n^2)$ to $O(n)$. This allows for efficient training on large-scale datasets like ImageNet in under an hour while maintaining high retrieval accuracy by directly optimizing discrete binary codes and avoiding the quantization errors typical of relaxation-based methods.
Introduction
Hashing is essential for fast image retrieval, converting complex visual data into short binary codes to ensure that similar images have similar representations. However, supervised hashing faces two major bottlenecks. First, the Discrete Constraint makes optimizing binary codes NP-hard, leading many researchers to use continuous relaxations that result in high quantization errors. Second, the $O(n^2)$ Complexity of pairwise similarity matrices makes training on large datasets like ImageNet (1.2 million images) computationally prohibitive, often requiring terabytes of RAM.
Methodology
The DISH framework addresses these challenges through three primary innovations:
- Asymmetric Low-rank Matrix Factorization: Instead of a full $n \times n$ similarity matrix $S$, DISH approximates it as $S \approx PR^T$, where $P$ and $R$ are smaller matrices. This reduces memory and time complexity to $O(n)$, enabling linear scalability.
- Fast C-BCD (Batch Coordinate Descent): The learning process is decomposed into two sub-problems: learning the hash function (F-subproblem) and learning the binary codes (H-subproblem). The H-subproblem is solved bit-by-bit as a fast clustering problem, avoiding expensive matrix operations like Cholesky decomposition.
- Flexible Integration and Regularization: DISH is a "plug-and-play" framework compatible with both kernel-based methods (DISH-K) and deep learning architectures (DISH-D). To prevent overfitting in deep models, the authors introduced DisturbBinaryCodes, a technique that randomly flips bits during training, analogous to Dropout.
Experimental Setup
The authors evaluated DISH on three standard benchmarks:
- CIFAR-10: 60,000 images across 10 categories.
- Nuswide: Approximately 190,000 images with multi-label semantic annotations.
- ImageNet (ILSVRC2012): Over 1.2 million images across 1,000 categories, serving as the primary test for scalability.
Key Insights and Results
Experiments demonstrated that training on the full ImageNet dataset significantly boosts retrieval accuracy, with Mean Average Precision (MAP) increasing by over 33% compared to models trained on smaller subsets. By handling binary constraints directly, DISH avoids the performance degradation seen in "relaxed" models.
- State-of-the-Art Accuracy: On CIFAR-10, DISH-D outperformed existing deep hashing methods (e.g., DHN, CNNH+) by 4% to 10% in MAP.
- Extreme Scalability: DISH successfully trained on the full 1.2 million ImageNet samples in less than one hour.
- Efficiency: For kernel-based hashing on Nuswide, DISH-K was nearly twice as fast as the previous state-of-the-art (SDH) while maintaining comparable accuracy.
- Robustness: The DisturbBinaryCodes method significantly improved generalization, proving that discrete label noise can enhance model performance.
Conclusion
DISH provides a scalable and robust solution for supervised hashing. While the framework requires some hyperparameter tuning for similarity balancing, its ability to handle millions of images with linear complexity marks a significant advancement. Future work may extend this framework to cross-modal retrieval, such as searching for images via text queries.
Summary updated