NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Anchor Cascade for Efficient Face Detection

Baosheng Yu, Dacheng Tao · DOI

TL;DR

The paper introduces Anchor Cascade, a hybrid face detection framework that bridges the gap between fast-but-inaccurate cascade detectors and accurate-but-heavy anchor-based detectors. By embedding a small set of anchors into a coarse image pyramid and using a novel context pyramid maxout mechanism, it achieves state-of-the-art accuracy on par with massive networks while running at a fraction of the computational cost.

What Problem Does This Paper Address?

In face detection, practitioners usually have to choose between two paradigms, each with a major drawback:

  1. Cascade Face Detectors (e.g., MTCNN): These are incredibly fast because they use simple classifiers to quickly reject easy negative samples (background). However, to detect faces of different sizes, they must scan a dense image pyramid slice by slice. Because computations aren't shared across these slices, they are forced to use tiny, shallow CNNs, which severely hurts accuracy in real-world scenarios with variations in lighting, pose, and occlusion.
  2. Anchor-Based Detectors (e.g., Faster R-CNN, SSD): These avoid the image pyramid by using multi-scale "anchors" to detect objects of all sizes simultaneously. However, covering an enormous range of scales requires massive base networks (like ResNet or VGG) pre-trained on ImageNet. This makes them too computationally heavy for efficient training and deployment.

The authors address this efficiency-accuracy dilemma by asking: Can we build a framework that avoids both dense image pyramids and massive, heavy networks?

Methods

The authors propose Anchor Cascade, which combines the best of both worlds through two key components:

1. Anchor-based Proposal Network (APN)

Instead of using anchors to cover all possible face sizes, the APN uses a small set of anchors to cover just a narrow range of scales (e.g., from 16x16 to 32x32 pixels). To handle larger variations, it uses a coarse image pyramid rather than a dense one.

As shown in Figure 2, this hybrid approach allows the network to simultaneously scan multiple slices of a traditional dense pyramid, reducing the total number of required pyramid slices to $1/n_A$ (where $n_A$ is the number of anchors).

The trade-off between multi-scale anchors and a dense image pyramid.

2. Context Pyramid Maxout (CPM)

Detecting difficult faces (like tiny faces or faces in profile) requires contextual information around the face. However, adding too much context can squeeze out the actual face features in a fixed-size detection window.

To solve this, the authors introduce the CPM mechanism. For each candidate window, the model generates multiple context templates with expanding boundaries (Figure 6). It applies a maxout structure, meaning a candidate window is only rejected if all context templates fail to recall it. Crucially, because of the anchor design, these diverse context templates can be processed in a parallel-style pipeline, keeping the operation highly efficient.

Context templates and the context pyramid maxout mechanism.

Datasets

The framework was evaluated on two premier face detection benchmarks:

  • FDDB (Face Detection Dataset and Benchmark): Contains 2,845 images with 5,171 faces, used to test performance in unconstrained settings.
  • WIDER FACE: A highly challenging dataset containing 32,203 images and 393,793 faces, split into "Easy", "Medium", and "Hard" categories based on detection difficulty.

Key Insights and Ideas

  • The Long-Tail Property of Pyramid Costs: The authors observed that the vast majority of computational cost in a dense image pyramid comes from scanning the largest slice (searching for the smallest faces). As illustrated in Figure 5, the cost drops drastically as the scale decreases. By using anchors to handle the smallest face scales, the largest, most expensive pyramid slices can be skipped entirely.
  • The Context Sweet Spot is Dynamic: There is no single "optimal" amount of context for every face. A profile face might need ear and contour context, while an occluded face relies purely on internal features like the nose or eyes. The Maxout strategy elegantly bypasses the need to predict the perfect context ratio by evaluating multiple options simultaneously and picking the strongest response.

Key Results

The proposed anchor cascade was evaluated in both two-stage and three-stage configurations, yielding impressive speed and accuracy trade-offs:

  • Vs. Cascade Detectors (MTCNN): On the FDDB dataset, the two-stage Anchor Cascade boosted detection accuracy from 0.9435 to 0.9704 (at 1k false positives) while maintaining a comparable running speed.
  • Vs. Heavy Anchor Detectors (HR / Finding Tiny Faces): The three-stage Anchor Cascade achieved comparable accuracy to state-of-the-art heavy models on the WIDER FACE "Hard" set, but used less than 1/25 of the parameters and required only 1/10 of the inference time.
  • State-of-the-Art Proposal Generation: The APN24 model recalled over 93% of faces on the WIDER FACE "Hard" set with fewer than 1,000 proposals per image, vastly outperforming traditional proposal methods.

Limitations and Future Work

While Anchor Cascade significantly closes the gap between lightweight cascade models and heavy generic object detectors, a performance gap still remains when it comes to extremely tiny faces. The authors note that state-of-the-art anchor-based detectors leverage much broader contextual information (such as body parts). They suggest that incorporating wider, more sophisticated context extraction into the lightweight cascade pipeline is a promising direction for future work.

Summary updated

BibTeX
@article{yu2018anchor,
  author = {Baosheng Yu and Dacheng Tao},
  title = {{Anchor Cascade for Efficient Face Detection}},
  journal = {IEEE Trans. Image Process.},
  year = {2018},
  doi = {10.1109/tip.2018.2886790},
}
Figure