Abstract
Supervised Discrete Hashing (SDH) addresses the "binary bottleneck" in large-scale image retrieval by directly optimizing binary codes for linear classification. Unlike traditional methods that rely on continuous relaxation—which often leads to suboptimal results due to quantization errors—SDH utilizes a novel discrete cyclic coordinate descent (DCC) algorithm. This approach allows for the direct optimization of discrete bits with analytical, closed-form solutions, resulting in superior retrieval accuracy and significant gains in training efficiency.
Introduction
In the era of big data, large-scale image retrieval necessitates representing complex visual information as short binary strings, known as hash codes. This representation enables lightning-fast searches via Hamming distance and substantial storage savings. The primary challenge in "Learning to Hash" is the discrete nature of binary constraints (bits are restricted to $\{-1, 1\}$), which renders the optimization problem NP-hard.
To circumvent this, most existing algorithms employ "continuous relaxation," solving the problem in a real-valued space and subsequently rounding the results. However, this rounding process introduces significant quantization errors that degrade performance, particularly as code lengths increase. Supervised Discrete Hashing (SDH) overcomes this by treating the discrete constraints as a core part of the optimization process rather than a post-processing step.
Methodology
The SDH framework is built on the hypothesis that optimal hash codes for similarity retrieval should also be ideal for linear classification. The method jointly learns binary codes, classification headers, and hash functions through three key components:
- Nonlinear Embedding: To capture the complex structure of input data, SDH uses a kernel-based mapping. Specifically, an RBF kernel with randomly selected "anchor points" projects the data into a space suitable for hashing.
- Joint Optimization: The objective function integrates a classification loss (such as $\ell_2$ or hinge loss) with a regularization term that minimizes the discrepancy between the continuous embedding and the discrete binary codes.
- Discrete Cyclic Coordinate Descent (DCC): This is the core innovation of the paper. Instead of relaxing the bits, DCC solves for the binary codes directly. By fixing all bits except for one row (representing one bit across all samples), the algorithm derives an analytical, closed-form solution to update that row. Cycling through bits until convergence transforms the NP-hard problem into a series of efficient, simple steps.
Experimental Results
The authors evaluated SDH against state-of-the-art methods, including KSH, FastHash, and ITQ, across several benchmarks: CIFAR-10, MNIST, NUS-WIDE, and ImageNet (ILSVRC 2012).
Performance and Scalability
SDH consistently outperformed competing methods in both precision and Mean Average Precision (MAP). As shown in the comparative analysis, SDH maintains high performance even as the training set size increases, a scenario where many supervised methods become computationally prohibitive.
On the ImageNet dataset, SDH achieved a precision of 64.95% with 64-bit codes, surpassing the next best method (KSH) by over 16%. Furthermore, the efficiency of the DCC algorithm allows SDH to train on 59,000 images in approximately one minute, whereas other supervised methods may take hours on significantly smaller subsets.
Robustness to Code Length
A significant advantage of SDH is its stability across varying code lengths. While relaxed methods often suffer from performance degradation at higher bit counts due to accumulated quantization errors, SDH's performance remains stable or improves.
Conclusion
Supervised Discrete Hashing demonstrates that maintaining discrete constraints during optimization is vital for high-quality hash code generation. By leveraging linear classification as a proxy for similarity and employing the efficient DCC algorithm, SDH provides a scalable and robust solution for large-scale retrieval. Future work may involve reducing the dependency on anchor points for nonlinear mapping and exploring more complex classification architectures within the discrete framework.
Summary updated