[Paper Review] MIHash: Online Hashing with Mutual Information
This paper proposes MIHash, a novel online hashing method that uses mutual information as a quality measure to reduce unnecessary hash table updates while maintaining high retrieval accuracy. By optimizing mutual information via stochastic gradient descent, MIHash achieves state-of-the-art performance in both online and batch settings, reducing hash table recomputations by over an order of magnitude on large-scale benchmarks like Places205.
Learning-based hashing methods are widely used for nearest neighbor retrieval, and recently, online hashing methods have demonstrated good performance-complexity trade-offs by learning hash functions from streaming data. In this paper, we first address a key challenge for online hashing: the binary codes for indexed data must be recomputed to keep pace with updates to the hash functions. We propose an efficient quality measure for hash functions, based on an information-theoretic quantity, mutual information, and use it successfully as a criterion to eliminate unnecessary hash table updates. Next, we also show how to optimize the mutual information objective using stochastic gradient descent. We thus develop a novel hashing method, MIHash, that can be used in both online and batch settings. Experiments on image retrieval benchmarks (including a 2.5M image dataset) confirm the effectiveness of our formulation, both in reducing hash table recomputations and in learning high-quality hash functions.
Motivation & Objective
- To address the inefficiency in online hashing systems where frequent hash table recomputations are required after hash function updates.
- To develop a general, parameter-free quality measure for hash functions that correlates with retrieval performance.
- To enable efficient online learning by updating the hash table only when mutual information indicates improved quality.
- To optimize mutual information directly as a learning objective for end-to-end hash function learning.
- To achieve state-of-the-art retrieval accuracy in both online and batch settings without tuning hyperparameters.
Proposed method
- Proposes a mutual information-based quality measure between Hamming distance distributions of neighbors and non-neighbors to assess hash function quality.
- Introduces a streaming-computable estimator of mutual information to guide when to update the hash table in online settings.
- Derives stochastic gradient descent rules for optimizing mutual information as a learning objective, enabling online and deep learning.
- Designs a plug-in module that can be integrated with existing online hashing methods to reduce update frequency without sacrificing accuracy.
- Applies the method to both linear and deep neural network architectures, supporting end-to-end training.
- Uses a dual-stream data structure to maintain neighbor and non-neighbor Hamming distance distributions for mutual information estimation.
Experimental results
Research questions
- RQ1When should the hash table be updated in online hashing to balance computational cost and retrieval quality?
- RQ2Can mutual information serve as an effective, parameter-free quality measure for hash functions in nearest neighbor retrieval?
- RQ3Can mutual information be optimized effectively via stochastic gradient descent for learning high-quality hash functions?
- RQ4Does using mutual information as a criterion for hash table updates lead to significant computational savings without performance degradation?
- RQ5Can mutual information-based optimization achieve state-of-the-art performance in both online and batch hashing settings?
Key findings
- MIHash reduces hash table recomputations by over an order of magnitude compared to baseline online hashing methods on the 2.5M-image Places205 dataset.
- In the batch setting, MIHash achieves state-of-the-art mAP of 0.942 on CIFAR-10 with 48-bit codes, outperforming DTSH (0.934) and DPSH (0.932).
- Even with a single training epoch, MIHash achieves mAP of 0.746 on CIFAR-10 (48-bit), surpassing methods like FastHash (0.738) and DTSH (0.702).
- The mutual information quality measure correlates strongly with standard retrieval metrics like mAP, validating its effectiveness as a proxy objective.
- The method is general-purpose and can be applied as a plug-in to existing online hashing frameworks to reduce update frequency without retraining.
- MIHash achieves superior performance without requiring tuning of margins, thresholds, or other hyperparameters, unlike competing methods.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.