Abstract
Unsupervised hashing has received extensive research focus on the past decade, which typically aims at preserving a predefined metric (i.e. Euclidean metric) in the Hamming space. To this end, the encoding functions of the existing hashing are typically quasi-isometric, which devote to reducing the quantization loss from the target metric space to the discrete Hamming space. However, it is indeed problematic to directly minimize such error, since such mentioned two metric spaces are heterogeneous, and the quasi-isometric mapping is non-linear. The former leads to inconsistent feature distributions, while the latter leads to problematic optimization issues. In this paper, we propose a novel unsupervised hashing method, termed Sparsity-Induced Generative Adversarial Hashing (SiGAH), to encode large-scale high-dimensional features into binary codes, which well solves the two problems through a generative adversarial training framework. Instead of minimizing the quantization loss, our key innovation lies in enforcing the learned Hamming space to have similar data distribution to the target metric space via a generative model. In particular, we formulate a ReLU-based neural network as a generator to output binary codes and an MSE-loss based auto-encoder network as a discriminator, upon which a generative adversarial learning is carried out to train hash functions. Furthermore, to generate the synthetic features from the hash codes, a compressed sensing procedure is introduced into the generative model, which enforces the reconstruction boundary of binary codes to be consistent with that of original features. Finally, such generative adversarial framework can be trained via the Adam optimizer. Experimental results on four benchmarks, i.e., Tiny100K, GIST1M, Deep1M, and MNIST, have shown that the proposed SiGAH has superior performance over the state-of-the-art approaches.
Introduction
In the era of "Big Data," finding the nearest neighbor to a query—such as identifying similar images in a database of millions—is a computationally intensive task. Hashing addresses this by compressing high-dimensional features into short binary strings (e.g., 32 or 64 bits), enabling lightning-fast searches using Hamming distance.
However, traditional unsupervised hashing methods face two significant hurdles. First is Space Heterogeneity: the original Euclidean space and the target discrete Hamming space are fundamentally different, and forcing a direct mapping often results in inconsistent data distributions. Second is Optimization Difficulty: the "sign" function used to generate bits is non-differentiable, making it difficult to train deep models using standard gradient descent. SiGAH addresses these by shifting the focus from direct error minimization to distribution matching within a generative adversarial framework.
The SiGAH Framework
SiGAH frames hashing as a generative adversarial learning problem. The architecture consists of a hash function module, a generator, and a discriminator working in tandem to bridge the gap between feature spaces.
Sparsity-Induced Generator (SiGM)
Rather than simply producing bits, the model attempts to reconstruct the original feature from the hash code. It utilizes a ReLU-based neural network to create a high-dimensional sparse representation, which is then multiplied by a random Gaussian matrix. This approach is grounded in Compressive Sensing theory, which posits that structured signals can be recovered from a small number of linear measurements (the hash codes).
Energy-Based Discriminator
To ensure the synthetic features generated from hash codes resemble real data, the framework employs an auto-encoder as a discriminator. It assigns a "reconstruction energy" score based on Mean Squared Error (MSE); real data receives low energy, while synthetic data receives high energy. The generator is trained to "win" by producing hash codes that result in low-energy, realistic reconstructions.
Differentiable Learning
To overcome the non-differentiability of binary bits, SiGAH uses a hyperbolic tangent ($\tanh$) relaxation during training, allowing the entire pipeline to be optimized using the Adam optimizer. Additionally, in-batch graph regularization ensures that items close in the original space remain close in the Hamming space.
Experimental Results
The authors evaluated SiGAH on several standard benchmarks, including MNIST, Tiny100K, GIST1M, and Deep1M. These datasets cover a variety of feature types, from GIST descriptors to deep features extracted from AlexNet.
As shown in the performance table, SiGAH consistently outperforms state-of-the-art methods like ITQ, SGH, and OCH. On the GIST1M, Deep1M, and Tiny100K benchmarks, it achieved an average mean Average Precision (mAP) gain of over 13.5%. Notably, SiGAH often achieves higher accuracy with 32 bits than competing methods do with 64 bits, demonstrating superior information density.
Conclusion
SiGAH represents a significant advancement in unsupervised hashing by prioritizing population-level distribution matching over point-wise error minimization. By integrating compressive sensing and generative adversarial networks, it provides a robust and theoretically grounded method for large-scale image retrieval. Future work may involve extending this framework to deeper non-linear hash functions and exploring its scalability to even higher-dimensional data regimes.
Summary updated