Mobile product search with Bag of Hash Bits and boundary reranking

Junfeng He, Jinyuan Feng, Xianglong Liu, Tao Cheng, Tai-Hsu Lin, Hyunjin Chung, Shih-Fu ChangCVPR 2012

Abstract

Rapidly growing applications on smartphones have provided an excellent platform for mobile visual search. Most previous visual search systems adopt the framework of "Bag of Words" (BoW), in which words indicate quantized codes of visual features. In this work, we propose a novel visual search system based on "Bag of Hash Bits" (BoHB), in which each local feature is encoded to a very small number of hash bits, instead of quantized to visual words, and the whole image is represented as a bag of hash bits. The proposed BoHB method offers unique benefits in solving challenges associated with mobile visual search, such as low transmission cost and efficient computation. We also incorporate a boundary feature in the reranking step to describe object shapes, complementing local features. Extensive experiments over large-scale datasets up to 400k product images demonstrate the effectiveness of our approach.

Introduction

Mobile visual search allows users to identify products by simply taking a photo. However, this technology faces a "triple threat" of constraints: bandwidth limitations for transmitting high-dimensional features, restricted mobile hardware resources, and the need for millisecond-level server scalability. Traditional systems rely on the "Bag of Words" (BoW) approach, which clusters local features into "visual words." A significant drawback of BoW is that the distance between word IDs is meaningless, making high-accuracy matching difficult without memory-intensive vocabulary trees that are impractical for mobile devices.

Proposed Framework: Bag of Hash Bits (BoHB)

To address these limitations, we introduce the Bag of Hash Bits (BoHB) framework. Instead of assigning a feature to a single cluster ID, BoHB encodes each local feature into a short string of bits using similarity-preserving hashing.

The proposed mobile visual search system architecture, illustrating the interaction between mobile feature extraction and server-side matching.

Key Advantages of BoHB:

  • Similarity Preservation: Unlike BoW, the Hamming distance between hash bits correlates with the original feature distance, allowing for more nuanced matching.
  • Multi-Table Indexing and Bit Reuse: The server utilizes multiple hash tables to accelerate searches. Crucially, the mobile device only sends one set of bits, which the server "reuses" across different tables, minimizing bandwidth consumption.
  • Efficiency: BoHB enables efficient search over gigantic databases using multiple bucket probing and Hamming distance-based ranking.

Boundary Reranking for Shape Verification

While local features like SURF are excellent for capturing textures, they often fail to represent the overall shape of an object. To complement BoHB, we incorporate a boundary reranking step.

Examples of product images and their corresponding binary masks extracted via the SaliencyCut algorithm for boundary reranking.

We utilize an automatic "SaliencyCut" algorithm to isolate the object's outline. This boundary is converted into a "central distance" feature—a 1D signal representing the distance from the center to the edge. By applying a Discrete Fourier Transform (DFT), we make this feature invariant to rotation, scale, and translation. This shape information acts as a powerful filter, removing "noisy" matches that share similar textures but have incorrect silhouettes (e.g., distinguishing between a shoe and a piece of furniture with similar patterns).

Experimental Evaluation

The system was evaluated on two large-scale datasets: Product Data Set 1 (360,000 images from Amazon.com) and Product Data Set 2 (400,000 images from eBay, Zappos, and Amazon).

Key Results:

  • Speed: On Data Set 1, the BoHB search step took just 0.057 seconds, nearly 30x faster than the 1.5 seconds required by standard BoW.
  • Accuracy: BoHB using SPICA hashing improved top-10 recall by approximately 30% over traditional methods.
  • Reranking Impact: Adding boundary reranking provided an additional 8-10% boost in recall by effectively filtering irrelevant products.

Conclusion

The BoHB approach provides a scalable, efficient, and accurate solution for mobile product search. By replacing rigid quantization with similarity-preserving hash bits and incorporating shape-based reranking, we achieve significant performance gains over state-of-the-art methods like CHoG. Future work will explore direct image indexing and extending the framework to non-rigid objects and other media types.

Summary updated

BibTeX
@inproceedings{he2012mobile,
  author = {Junfeng He and Jinyuan Feng and Xianglong Liu and Tao Cheng and Tai-Hsu Lin and Hyunjin Chung and Shih-Fu Chang},
  title = {{Mobile product search with Bag of Hash Bits and boundary reranking}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2012},
  url = {https://openreview.net/forum?id=SkVcZ0ZOZS},
}
Figure