Introduction
Modern mobile visual search applications typically rely on "online" architectures, offloading feature matching to powerful remote servers. However, this dependency on network connectivity limits utility in remote areas or for international travelers. The primary obstacle to "offline" retrieval is the memory bottleneck: while mobile devices have ample flash storage, the search index must reside in RAM for responsive performance. Standard Bag-of-Words (BoW) indices for large datasets often exceed the 16–32MB RAM footprint typical of mobile applications.
This paper addresses this challenge by introducing a method that reduces the memory footprint of visual search indices by 60–80x, enabling a database of 50,000 images to fit within just 25MB of RAM.
Methodology: Geometry-Aware Phrase Indexing
The core innovation lies in moving from indexing individual "visual words" (quantized SIFT features) to 2-word-phrases. These are pairs of visual words that appear in close proximity within an image. To achieve extreme compression without sacrificing precision, the authors apply several pruning and geometric constraints:
- Vocabulary and Spatial Pruning: Non-discriminative visual words (too frequent or too rare) are discarded. Furthermore, an offline "pre-processing" query identifies and removes features that do not consistently appear as mathematically consistent "inliers," filtering out unstable or occluded points.
- Scale and Space Constraints: Phrases are only formed from feature pairs with similar scales. The relative position of the second word is encoded using a minimal 2-bit representation (quadrant-based). This "loose" geometry is computationally cheap to store yet highly effective at filtering false matches during the initial search phase.
By baking these weak geometric checks directly into the index, the system avoids the need for expensive post-search re-ranking, saving both time and memory.
Experimental Results
The system was evaluated on standard benchmarks including Oxford Buildings 5K, Paris Buildings, and UkBench, as well as a new 50,292-image "Heritage Structures" dataset.
- Compression: On the Oxford 5K dataset, the index size dropped from a 110MB baseline to 16MB. For the 50,000-image Heritage dataset, the index required only 25MB.
- Accuracy: While Mean Average Precision (mAP) decreased, the system maintained near-perfect precision for the top results. Precision at 1 ($P_1$) remained at 0.91 for Oxford 5K, and reached 100% for the Heritage dataset.
- Performance: Queries on a 1GHz mobile processor averaged 1.08 seconds, including feature extraction and search.
Conclusion
The proposed "Spatially Valid Phrases" (SV-Phr) method demonstrates that aggressive pruning and implicit geometry can enable high-precision instance retrieval on resource-constrained mobile devices. While the system is less effective at exhaustive retrieval (lower mAP), its high top-K accuracy makes it ideal for real-world mobile applications where users typically only require the most relevant result.
Summary updated