Hash Bit Selection: A Unified Solution for Selection Problems in Hashing

Xianglong Liu, Junfeng He, Bo Lang, Shih-Fu ChangCVPR 2013

Abstract

Recent years have witnessed the active development of hashing techniques for nearest neighbor search over big datasets. However, to apply hashing techniques successfully, there are several important issues remaining open in selecting features, hashing algorithms, parameter settings, kernels, etc. In this work, we unify all these selection problems into a hash bit selection framework, i.e., selecting the most informative hash bits from a pool of candidate bits generated by different types of hashing methods using different feature spaces and/or parameter settings, etc. We represent the bit pool as a vertex- and edge-weighted graph with the candidate bits as vertices. The vertex weight represents the bit quality in terms of similarity preservation, and the edge weight reflects independence (non-redundancy) between bits. Then we formulate the bit selection problem as quadratic programming on the graph, and solve it efficiently by replicator dynamics. Moreover, a theoretical study is provided to reveal a very interesting insight: the selected bits actually are the normalized dominant set of the candidate bit graph. We conducted extensive large-scale experiments for three important application scenarios of hash techniques, i.e., hashing with multiple features, multiple hashing algorithms, and multiple bit hashing. We demonstrate that our bit selection approach can achieve superior performance over both naive selection methods and state-of-the-art hashing methods under each scenario, with significant accuracy gains ranging from 10% to 50% relatively.

Introduction

Nearest neighbor search is a fundamental component of modern information retrieval, yet searching through millions of high-dimensional vectors is computationally prohibitive. Hashing addresses this by compressing data into short binary codes. However, practitioners often face a "paradox of choice": which features (e.g., GIST or SIFT), algorithms (e.g., LSH or ITQ), or parameters should be used?

Most existing methods attempt to optimize a specific algorithm for a specific feature set. This paper shifts the focus to the selection problem: given an over-complete pool of candidate hash bits generated by various features, algorithms, and parameters, how can we select a small, high-quality subset? The challenge lies in balancing two competing goals: Similarity Preservation (each bit must accurately reflect the original data structure) and Mutual Independence (bits should not be redundant).

Methodology: Bit Selection as a Graph Problem

The proposed framework transforms bit selection into a graph theory problem. The pool of candidate bits is represented as a vertex- and edge-weighted graph:

  • Vertices (Bits): Each vertex is assigned a weight based on how well that specific bit preserves data similarity, typically calculated using spectral embedding loss.
  • Edges (Relationships): Edges are weighted based on the mutual information between bits. High edge weights indicate high independence (low redundancy).
Overview of the hash bit selection framework, transforming various hashing scenarios into a unified graph-based selection problem.

To identify the optimal subset, the authors formulate a quadratic programming objective to maximize the "cohesiveness" of the selected bits. This is solved efficiently using replicator dynamics—an iterative update rule from evolutionary game theory. Theoretically, the selected bits correspond to the normalized dominant set of the graph. This subset contains members that are both highly relevant (high vertex weight) and strongly complementary (high edge weight), while non-members are effectively "dominated" by the chosen set.

Experimental Evaluation

The researchers evaluated the "NDomSet" (Normalized Dominant Set) method on three large-scale benchmarks:

  • GIST-1M: One million 960-dimensional GIST descriptors for metric neighbor search.
  • CIFAR-10: 60,000 images across 10 classes for semantic neighbor search.
  • NUS-WIDE: Over 269,000 images with 81 concept tags for complex multi-label semantic search.

Key Results

The NDomSet method consistently outperformed baseline selection methods (Random, Greedy, and standard Dominant Set) and state-of-the-art multi-feature hashing (MFH).

Precision-recall curves comparing the proposed NDomSet method against state-of-the-art baselines, demonstrating significant performance gains.
  • Significant Accuracy Gains: In multi-feature scenarios on CIFAR-10 and NUS-WIDE, NDomSet showed relative accuracy gains of 10% to 50% over competing methods.
  • Multi-Algorithm Success: When selecting bits from a pool generated by different algorithms (such as ITQ, SPH, and RMMH), NDomSet achieved significantly higher Mean Average Precision (MAP) than using any single algorithm in isolation.
  • Robustness: The method proved effective even when the initial pool contained many low-quality candidates, as the graph-based selection naturally filtered out redundant or weak bits.

Conclusion and Future Work

This work demonstrates that intelligent selection can be a powerful "meta-algorithm," harvesting the best bits from existing methods rather than inventing new ones. By linking optimization to the concept of a "dominant set," the authors provide a rigorous mathematical foundation for why this selection process excels.

Future research may address the computational overhead of building the affinity matrix for extremely large bit pools ($O(L^2)$ complexity) and explore dynamic updates for streaming data environments where feature distributions change over time. Overall, this framework provides a robust toolkit for large-scale data retrieval in multi-modal contexts.

Summary updated

BibTeX
@inproceedings{liu2013hash,
  author = {Xianglong Liu and Junfeng He and Bo Lang and Shih-Fu Chang},
  title = {{Hash Bit Selection: A Unified Solution for Selection Problems in Hashing}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2013},
  url = {https://openreview.net/forum?id=rJEasTZ_ZB},
}
Figure