Abstract
For practical applications, an object detection system requires huge number of classes to meet real world needs. Many successful object detection systems use part-based model which trains several filters (classifiers) for each class to perform multiclass object detection. However, these methods have linear computational complexity in regard to the number of classes and may lead to huge computing time. To solve the problem, some works learn a codebook for the filters and conduct operations only on the codebook to make computational complexity sublinear in regard to the number of classes. But the past studies missed to consider filter characteristics, e.g., filters are weights trained by Support Vector Machine, and rather they applied method such as sparse coding for visual signals' optimization. This misuse results in huge accuracy loss when a large speedup is required. To remedy this shortcoming, we have developed a new method called Regularized Sparse Coding which is designed to reconstruct filter functionality. That is, it reconstructs the ability of filter to produce accurate score for classification. Our method can reconstruct filters by minimizing score map error, while sparse coding reconstructs filters by minimizing appearance error. This different optimization strategy makes our method be able to have small accuracy loss when a large speedup is achieved. On the ILSVRC 2013 dataset, which has 200 classes, this work represents a 16 times speedup using only 1.25% memory on single CPU with 0.04 mAP drop when compared with the original Deformable Part Model. Moreover, parallel computing on GPUs is also applicable for our work to achieve more speedup.
Introduction
In large-scale object detection, such as the ILSVRC 2013 challenge involving 200 classes, traditional frameworks like the Deformable Part Model (DPM) face significant scalability challenges. These models typically train multiple filters for each object class, leading to thousands of filters (e.g., nearly 5,000 for 200 classes). The primary computational bottleneck is the convolution of every filter with the input image, resulting in a linear increase in processing time as the number of classes grows.
Previous attempts to mitigate this using standard sparse coding—representing filters as combinations of a smaller "codebook"—often resulted in substantial accuracy loss at high compression ratios. The core issue identified is that standard sparse coding prioritizes reconstructing the visual appearance of filter weights rather than their functional performance in generating classification scores.
Methodology: Regularized Sparse Coding
The proposed method shifts the focus from reconstructing filter appearance to reconstructing filter functionality. The goal is to ensure that the compressed filters produce score maps as close as possible to the original uncompressed filters.
The Pipeline
The process is divided into offline and online stages. In the offline stage, a filter codebook is learned, and "Performance Augmented Sparse Activations" are calculated. These activations are optimized in a "Performance Augmented Space" where the objective is to minimize score map error using regularization features from the training set.
Key Innovations
- Functionality over Appearance: Unlike standard sparse coding which minimizes $L_2$ distance between weight vectors, Regularized Sparse Coding introduces a regularization matrix ($F_{reg}$) of actual feature patches. This transforms the optimization problem to minimize the difference in the resulting score maps.
- Codebook Approach: By convolving the image with a small set of "codewords" and linearly combining these intermediate results, the computational complexity becomes sublinear relative to the number of classes.
- Smart Budgeting: The regularization forces the model to prioritize reconstructing the discriminative parts of a filter that are most critical for classification, rather than wasting capacity on visually accurate but functionally irrelevant details.
Experimental Results
The method was evaluated on the PASCAL VOC 2012 and ILSVRC 2013 datasets. The results demonstrate that functionality-based reconstruction significantly outperforms appearance-based methods.
On the ILSVRC 2013 dataset (200 classes), the method achieved:
- 16x Speedup: Achieved on a single CPU.
- Minimal Accuracy Loss: Only a 0.04 mAP drop compared to the original DPM, whereas standard sparse coding lost 0.10 mAP at the same speedup.
- Memory Efficiency: The model size was reduced to 1.25% of the original.
Conclusion
Regularized Sparse Coding addresses the scalability wall in object detection by recognizing that filters are functional weights, not natural images. By optimizing for score map fidelity rather than visual similarity, the method enables massive speedups and memory savings with negligible impact on detection accuracy. This approach is particularly effective as the number of classes and filters increases, making it a robust solution for real-world, large-scale applications.
Summary updated