Auto-Encoding Twin-Bottleneck Hashing

Yuming Shen, Jie Qin, Jiaxin Chen, Mengyang Yu, Li Liu, Fan Zhu, Fumin Shen, Ling Shao

Auto-Encoding Twin-Bottleneck Hashing

Introduction

In the era of "Big Data," efficient image retrieval relies on Approximate Nearest Neighbor (ANN) search, typically powered by hashing—converting images into short binary strings. Unsupervised hashing is particularly valuable as it avoids the high cost of manual labeling. However, existing methods struggle with two main issues: the "Static Graph" problem, where pre-computed similarity graphs are noisy and non-evolving, and the "Deficient Binary Bottleneck," where strictly binary representations lose too much information for effective generative training.

Auto-Encoding Twin-Bottleneck Hashing (TBH) addresses these hurdles by dynamically building similarity graphs from the hash codes themselves and utilizing a dual-bottleneck architecture to balance retrieval efficiency with reconstruction quality.

Methodology

TBH introduces a novel architecture that decouples high-level semantic hashing from low-level detail preservation through three key innovations:

Detailed schematic of the TBH architecture, highlighting the twin bottlenecks (binary and continuous), the code-driven similarity graph, and the GCN integration.
  • Twin Bottlenecks: The encoder simultaneously produces a binary code ($b$) for retrieval and a continuous variable ($z$) for detail. This allows the binary bits to focus on discriminative structure without the burden of representing every pixel.
  • Code-Driven Adaptive Graph: Instead of a fixed graph, TBH constructs a similarity matrix ($A$) on-the-fly for every training batch based on the Hamming distances of the current binary codes. This ensures the graph and hash functions evolve collaboratively.
  • GCN as a "Tunnel": A Graph Convolutional Network (GCN) uses the code-driven graph to "mix" information from the continuous variables. If the decoder successfully reconstructs an image using this mixed information, it confirms the hash codes accurately capture the data's underlying structure.
  • Adversarial Regularization: The model employs discriminators to ensure binary codes follow a binomial distribution (maximizing entropy) and continuous variables follow a uniform distribution, borrowing principles from Wasserstein Auto-Encoders (WAE).

Key Results and Evaluation

TBH was evaluated on standard benchmarks including CIFAR-10, NUS-WIDE, MS COCO, and MNIST, achieving a new state-of-the-art (SOTA) in unsupervised hashing.

Performance analysis of TBH: (a) MAP vs. Bits comparison, (b) Reconstruction error during training, (c) Hyperparameter sensitivity, and (d) Impact of continuous bottleneck size.
  • Superior Retrieval Accuracy: On CIFAR-10 at 16 bits, TBH achieved a Mean Average Precision (MAP) of 0.532, significantly outperforming previous methods like BGAN (0.525) and SGH (0.435). On NUS-WIDE, it reached a MAP of 0.717.
  • Robustness at Low Bit Counts: The model remains highly effective even at extremely short code lengths (e.g., 4 bits), where other generative models often collapse.
  • Reconstruction Quality: Qualitative tests on MNIST showed that TBH produces sharp, recognizable digits, whereas traditional single-bottleneck models often produce blurry results due to information loss.

Limitations and Future Work

While TBH is highly effective, its performance is somewhat dependent on batch size, as the similarity graph is constructed batch-wise. Additionally, building the $N \times N$ adjacency matrix for every batch adds a quadratic computational step ($O(N_B^2)$), though this remains manageable for standard deep learning workflows. Future research could explore more complex decoder architectures to further enhance performance on high-resolution datasets.

Summary updated

BibTeX
@inproceedings{shen2020auto,
  author = {Yuming Shen and Jie Qin and Jiaxin Chen and Mengyang Yu and Li Liu and Fan Zhu and Fumin Shen and Ling Shao},
  title = {{Auto-Encoding Twin-Bottleneck Hashing}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.00289},
}
Figure