Abstract
This paper addresses the significant speed gap between instance retrieval and category detection in computer vision. While specific objects can be found instantly using inverted file indexing, general category detection typically relies on computationally expensive sliding window searches. We propose a method that decomposes complex HOG classifier templates into a sparse set of mid-level discriminative patches. By indexing these patches offline, we enable sub-second retrieval times for object categories across large datasets, achieving a thousand-fold speedup while maintaining high precision for top-ranked results.
Introduction: The Speed Gap in Detection
In modern computer vision, finding a specific instance (e.g., a particular book cover) is a solved problem for speed, thanks to "visual words" and inverted indices. However, finding any member of a category (e.g., any bicycle) remains slow. The standard approach—running a classifier over every possible position and scale in every image—is linear relative to dataset size. For massive datasets, a single query can take hours.
This research aims to bridge this gap, bringing the "immediate" speed of search engines to the broader task of category detection by moving the heavy computational load to an offline indexing phase.
Methodology: Indexing Mid-Level Parts
The proposed architecture consists of three primary stages designed to replace exhaustive sliding window searches with efficient lookups.
1. The Vocabulary of Parts
Instead of using low-level pixels or texture-specific SIFT descriptors, the system builds a vocabulary of Classifier Patches (CPs). These are mid-level, discriminative features—such as the specific curve of a wheel or the corner of a window—harvested from pre-trained Deformable Part Models (DPMs). Unlike SIFT, these patches capture the structural shape necessary to generalize across different objects within the same category.
2. Offline Indexing and Query Reconstruction
During the offline phase, every image in the database is processed to find the maximum response and location for every CP in the vocabulary. This information is stored in an inverted index.
When a user provides a HOG template as a query, the system approximates it as a sparse combination of these pre-indexed CPs, creating a Reconstructed Template (RT). This allows the system to treat a detection query as a weighted sum of part lookups.
3. Fast Retrieval and Spatial Reranking
The retrieval process happens in two steps:
- Shortlisting: The inverted index quickly identifies images where the weighted sum of CP responses is high. This provides a mathematical upper bound on the potential score of the full template.
- Spatial Reranking: For the top $K$ images, the system verifies the spatial arrangement of the patches (e.g., ensuring wheels are correctly positioned relative to the frame) to filter out false positives.
Key Results and Performance
The most significant contribution of this work is the dramatic reduction in query time. While an exhaustive sliding window search on the PASCAL VOC 2007 dataset takes approximately 1.3 hours per query, the proposed method completes the same task in 0.2 to 0.9 seconds.
In terms of accuracy, the system achieves performance comparable to state-of-the-art exhaustive searches for top-ranked results. For the "bicycle" category, the precision for the top 10 results (PR@10) was 100%, matching the exhaustive search. While overall Average Precision (AP) is lower due to noise in the approximation for lower-ranked results, the system is highly effective for applications requiring immediate, high-precision feedback.
Conclusion
By leveraging mid-level discriminative patches and inverted indexing, this method transforms category detection from a linear search into a scalable retrieval task. Future work will focus on narrowing the approximation gap between reconstructed and original templates and optimizing the memory footprint for billion-scale image datasets.
Summary updated