Fast, Accurate Detection of 100, 000 Object Classes on a Single Machine

Thomas L. Dean, Mark A. Ruzon, Mark Segal, Jonathon Shlens, Sudheendra Vijayanarasimhan, Jay YagnikCVPR 2013

Abstract

Many object detection systems are constrained by the time required to convolve a target image with a bank of filters that code for different aspects of an object's appearance, such as the presence of component parts. We exploit locality-sensitive hashing to replace the dot-product kernel operator in the convolution with a fixed number of hash-table probes that effectively sample all of the filter responses in time independent of the size of the filter bank. To show the effectiveness of the technique, we apply it to evaluate 100,000 deformable-part models requiring over a million (part) filters on multiple scales of a target image in less than 20 seconds using a single multi-core processor with 20GB of RAM. This represents a speed-up of approximately 20,000 times - four orders of magnitude - when compared with performing the convolutions explicitly on the same hardware. While mean average precision over the full set of 100,000 object classes is around 0.16 due in large part to the challenges in gathering training data and collecting ground truth for so many classes, we achieve a mAP of at least 0.20 on a third of the classes and 0.30 or better on about 20% of the classes.

Introduction

Traditional object detection systems, such as the Deformable Part Model (DPM), rely on convolving an image with a bank of filters representing object parts. The computational complexity of this approach is $O(L \cdot C)$, where $L$ is the number of image locations and $C$ is the number of classes (filters). As the field moves toward detecting tens of thousands of categories, this linear dependence on $C$ creates a significant computational bottleneck. While previous research has focused on reducing $L$ through cascades or objectness measures, this work addresses the scaling of $C$ directly, aiming to make detection time independent of the number of classes.

Methodology: Hashing as a Proxy for Convolution

The proposed system replaces standard dot-product convolutions with a Locality-Sensitive Hashing (LSH) framework, specifically utilizing Winner-Take-All (WTA) Hashing. This approach transforms the detection task from a signal processing problem into a search problem.

The detection pipeline: Image patches are transformed via HOG and WTA hashing into hash bands for O(1) candidate lookup.

Ordinal Embedding and Multi-band Hashing

Instead of comparing raw feature values, the system uses ordinal embedding. By taking random permutations of feature vectors and recording the index of the maximum value, the system captures the relative ordering of features. This rank correlation is inherently more robust to lighting changes and noise than linear correlation. These binary hashes are then divided into multiple "bands," each serving as a key for a hash table. During detection, the system hashes an image window and probes these tables to return a short list of candidate filters. This lookup is $O(1)$, meaning the time to find candidates does not increase with the total number of filters.

Experimental Results

The system was evaluated on the PASCAL VOC 2007 benchmark and a massive new dataset, ImageSearch-100k, containing 100,000 object entities derived from Freebase.

Speed and Accuracy Trade-offs

On a single machine with 20GB of RAM, the system evaluated 100,000 classes (over 1 million part filters) in under 20 seconds. This represents a 20,000x speedup over explicit convolution. On PASCAL VOC 2007, the hashing method achieved a mAP of 0.24, nearly matching the exhaustive baseline of 0.26.

Detection performance (mAP) as a function of time, demonstrating the efficiency of the hashing approach across different parameter configurations.

For the 100,000-class task, the system achieved an overall mAP of 0.16. Despite the noisy nature of the weakly-supervised training data, 20% of the classes achieved a mAP of 0.30 or better, demonstrating the viability of the approach for extreme-scale detection.

Discussion and Limitations

While highly efficient, the current implementation requires all filters to be of uniform size, which can impact accuracy for objects with highly variable global shapes (e.g., the "person" category). Additionally, the memory footprint for 100,000 classes is substantial, requiring approximately 20GB of RAM. Future work will focus on improving data quality for large-scale training and adapting the hashing framework to support multi-scale root filters.

Summary updated

BibTeX
@inproceedings{dean2013fast,
  author = {Thomas L. Dean and Mark A. Ruzon and Mark Segal and Jonathon Shlens and Sudheendra Vijayanarasimhan and Jay Yagnik},
  title = {{Fast, Accurate Detection of 100, 000 Object Classes on a Single Machine}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2013},
  url = {https://openreview.net/forum?id=Sybo63WuWS},
}
Figure