This paper, authored by Cha Zhang and Paul Viola (co-creator of the famed Viola-Jones detector), introduces a more principled way to make face detectors run faster without sacrificing accuracy. By treating face detection as a "Multiple Instance Learning" (MIL) problem, they developed an algorithm that automatically determines when to stop processing a candidate image window, resulting in significant speedups.
The Challenge of Cascade Detectors
Object detection, particularly face detection, traditionally involves sliding a window across an image at various scales. To achieve real-time performance, researchers use a "cascade" of classifiers: easy-to-reject windows (like a patch of clear sky) are tossed out early, while complex regions (like a face) receive more computation.
However, designing these cascades is notoriously difficult. How many stages should there be? What should the target detection rate be for early stages versus later ones? Traditionally, these thresholds were set using heuristics or manual tuning, which is often sub-optimal. If thresholds are too conservative, the detector is slow; if they are too aggressive, the detector misses faces.
Soft Cascades and Pruning Strategies
The authors build upon the concept of a Soft Cascade, where instead of discrete stages, the detector is a long sequence of weak classifiers. A running score is kept for each window, and if it falls below a threshold at any point, the window is rejected. The paper introduces two pruning strategies to optimize these thresholds:
- Direct Backward Pruning (DBP): This serves as the baseline. The authors argue that if the final classifier is going to reject a positive training example anyway, there is no reason to keep it around in the early stages. They set thresholds based only on the "survivors"—the positive examples that actually pass the final stage.
- Multiple Instance Pruning (MIP): This is the core innovation. In face detection, a single face is covered by dozens of slightly shifted and scaled windows. We don't need all of them to pass the detector; we only need one to be classified as a face.
MIP treats these overlapping windows as a "bag." As long as the "best" window in the bag stays above the threshold, the other windows in that same bag can be pruned aggressively. The MIP algorithm is greedy: it sets thresholds for the first features first, ensuring all "bags" (faces) are retained while discarding as many negative windows as possible.
Key Insights
- The "Destiny" Insight: Most pruning methods try to preserve all positive examples. Zhang and Viola realized you only need to preserve the examples that the final, complete classifier would have accepted. This "backward" logic simplifies the optimization significantly.
- Detection as a Bag of Windows: By framing detection as Multiple Instance Learning, the authors acknowledge the spatial redundancy of the sliding window approach. This allows the algorithm to "give up" on weak or noisy windows of a face if a clearer, more centered window is already passing the test.
- Fully Automatic: Unlike previous methods that required ad-hoc parameters, MIP is data-driven. You set the final desired detection rate, and the algorithm calculates all intermediate thresholds automatically.
Datasets and Results
The model was trained on a massive set of over 20,000 web images containing roughly 10,000 faces, supplemented by over 2 billion negative examples generated via bootstrapping. It was evaluated on the standard MIT+CMU frontal face database.
- Efficiency: MIP-pruned detectors were significantly faster than the DBP baseline. For a given detection rate, MIP required an average of only 16 features per window, compared to 36 features for DBP.
- Accuracy: On the MIT+CMU dataset, the MIP-based detector achieved a higher detection rate with fewer false positives than the original Viola-Jones detector and other contemporary methods like WaldBoost.
- Robustness: The method proved robust to noise and mislabeled data because the pruning thresholds are determined by the "survivors" of the final classifier, which naturally filters out outliers during training.
Limitations and Future Work
While highly effective, the approach has a few limitations. The algorithm sets thresholds greedily (one by one from the start of the cascade to the end). A global optimization might yield even better results, though it would be computationally expensive. Additionally, MIP optimizes the thresholds for a given sequence of features; it does not re-order the features to find a more efficient sequence. Finally, while the logic should hold for other objects (like cars or pedestrians), the "bag" dynamics might change depending on how much overlap is required for a correct detection in those domains.
Summary updated