NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Embarrassingly Simple Binary Representation Learning

Yuming Shen, Jie Qin, Jiaxin Chen, Li Liu, Fan Zhu, Ziyi ShenWorkshops @ ICCV 2019 · DOI

Abstract

The authors propose Just-Maximizing-Likelihood Hashing (JMLH), a streamlined deep hashing method that achieves state-of-the-art results using a standard classification objective. By treating the binary hash code as a stochastic bottleneck between data and labels, the model leverages the Information Bottleneck principle to learn compact, discriminative representations without the need for complex auxiliary modules like GANs or coordinate descent.

Introduction

In large-scale image retrieval, "learning to hash" transforms high-dimensional data into short binary strings to enable fast similarity searches. Recent deep hashing research has trended toward increasing complexity, often relying on sophisticated discrete optimization, auxiliary models like Generative Adversarial Networks (GANs), or continuous relaxations that create a performance gap between training and testing. JMLH aims to demonstrate that an effective supervised hashing model can be built with minimal auxiliary parts, focusing on a simple classification framework.

Methodology

JMLH turns a standard classification network into a hashing machine by adding two layers to a backbone feature extractor (such as AlexNet).

Architecture and Stochastic Bottleneck

The core of JMLH is the stochastic bottleneck ($b$). Instead of a standard sigmoid activation, it uses a reparameterization trick where bits are flipped based on a random signal $\epsilon \sim U(0, 1)$. This maintains discrete codes during training while allowing gradient flow. The final classifier layer ($y$) predicts labels directly from these binary codes.

Computational graph of JMLH showing the stochastic bottleneck during training (a) and deterministic inference (b).

Variational Information Bottleneck (VIB)

The training objective is grounded in the Information Bottleneck principle, maximizing the mutual information between the code and the label while minimizing redundant information from the input. The loss function combines a standard negative log-likelihood classification loss with a KL divergence term that encourages the learned codes to match a Bernoulli prior ($p=0.5$), ensuring efficient use of the bit space and preventing code collapse.

Experiments and Results

JMLH was evaluated on standard benchmarks: CIFAR-10, NUS-WIDE, and ImageNet. It consistently outperformed state-of-the-art (SOTA) methods across various bit lengths (16, 32, and 64 bits).

Key Performance Metrics

On CIFAR-10, JMLH achieved a mean Average Precision (mAP) of 0.841 at 32 bits, significantly outperforming HashGAN (0.731) and MIHash (0.776). On ImageNet at 64 bits, it reached an mAP@1000 of 0.727, surpassing HashNet (0.684) and GreedyHash (0.688).

Performance comparison on CIFAR-10 across various metrics, showing JMLH (red line) consistently outperforming other methods in P-R curves, Precision@k, and P@H<=2.

The model's efficiency is a key advantage; as a standard classification network, it converges faster than methods requiring complex pair-wise sampling or GAN training.

Conclusion

JMLH proves that simplicity can be powerful in deep hashing. By framing the problem as an Information Bottleneck task with a stochastic bottleneck, the authors achieve superior performance without the overhead of complex optimization or auxiliary models. Future work includes extending this approach to unsupervised settings and exploring its performance with modern backbones like Vision Transformers.

Summary updated

BibTeX
@inproceedings{shen2019embarrassingly,
  author = {Yuming Shen and Jie Qin and Jiaxin Chen and Li Liu and Fan Zhu and Ziyi Shen},
  title = {{Embarrassingly Simple Binary Representation Learning}},
  booktitle = {Workshops @ ICCV},
  year = {2019},
  doi = {10.1109/iccvw.2019.00350},
}
Figure