Abstract
Efficient large-scale image retrieval relies on hashing techniques that map high-dimensional features into compact binary strings. However, existing supervised hashing methods often suffer from complex optimization problems due to the tight coupling of loss functions and hash functions. This paper presents FastHash, a framework that decouples binary code inference from hash function learning. By formulating code discovery as a binary quadratic problem solved via efficient Graph Cuts and employing Boosted Decision Trees as hash functions, FastHash achieves state-of-the-art accuracy and significantly faster training times on massive datasets like ImageNet.
Introduction
Searching through millions of images requires mapping complex visual features into short binary codes (e.g., 64 bits) to enable fast Hamming distance comparisons. The goal of supervised hashing is to ensure that semantically similar images result in similar binary strings.
Traditional supervised hashing methods face a major hurdle: the optimization objective typically couples the discrete binary codes with the parameters of the hash function. This leads to non-convex, NP-hard problems that are difficult to scale. Furthermore, many methods use linear or kernel-based functions which either lack the capacity to model complex data or are computationally expensive during real-time search.
FastHash Methodology
The FastHash framework addresses these challenges by splitting the problem into two distinct steps:
1. Binary Code Inference
Instead of simultaneous learning, FastHash first determines the optimal binary bits ($Z$) for the training set. The authors demonstrate that common hashing loss functions (e.g., KSH or BRE) can be reformulated as a Binary Quadratic Problem (BQP). To solve this at scale, they introduce a "Block GraphCut" algorithm. By partitioning data into submodular blocks, they leverage efficient graph cut solvers to find high-quality binary codes without the need for spectral relaxation, which often leads to poor local optima.
2. Hash Function Learning
With the binary codes fixed, the problem reduces to a standard binary classification task: predicting a specific bit given the image features. This allows for the use of any robust classifier. The authors specifically utilize Boosted Decision Trees (Adaboost). Unlike linear models, trees capture non-linear relationships effectively. Compared to kernel methods, they are significantly faster to evaluate as they rely on simple conditional comparisons.
Experimental Setup
FastHash was evaluated on several large-scale benchmarks, including CIFAR-10, SUN397, and the 1.2-million-image ILSVRC2012 (ImageNet) dataset. These datasets encompass a wide variety of object categories and scenes, testing the framework's ability to generalize across diverse visual domains.
Key Results and Insights
- Superior Accuracy: FastHash consistently outperforms state-of-the-art methods like KSH and MLH. On CIFAR-10, it achieved a precision of 0.763, a significant improvement over KSH's 0.590.
- Computational Efficiency: The training speedup is dramatic, often 10 to 100 times faster than kernel-based supervised hashing on high-dimensional features.
- Scalability: The framework successfully scaled to the full ImageNet dataset, a task that is often computationally prohibitive for competing supervised techniques.
- Optimization Quality: The Block GraphCut approach achieves lower objective values than traditional spectral methods in less time, proving the effectiveness of direct binary optimization.
Conclusion
FastHash provides a flexible and powerful framework for supervised hashing by decoupling code inference from function learning. While performance remains dependent on input feature quality, the use of Boosted Decision Trees and Graph Cuts offers a scalable solution for modern large-scale retrieval tasks. Future work may involve integrating this decoupled logic into end-to-end deep learning architectures.
Summary updated