Evaluating Large-Vocabulary Object Detectors: The Devil is in the Details

Achal Dave, Piotr Dollár, Deva Ramanan, Alexander Kirillov, Ross B. GirshickarXiv 2021

Introduction: The Hidden Flaw in Average Precision

Average Precision (AP) is the gold standard for evaluating object detectors. Ideally, AP should be category-independent: a model's ability to detect a "dog" should not influence its score for "cat." However, this paper reveals a significant implementation detail that breaks this independence in large-vocabulary datasets like LVIS.

The issue stems from a "detections-per-image" limit (typically 100 or 300) used to keep evaluation computationally efficient. While harmless in small datasets like COCO (80 classes), this limit creates a "crowding" effect in LVIS (1200+ classes). High-confidence detections of frequent classes can exhaust the budget, preventing correct but lower-confidence detections of rare classes from being counted.

The cross-category competition caused by a fixed detection limit per image.

The "Gaming" of Evaluation Metrics

The authors demonstrate that this crowding effect allows for a counter-intuitive strategy to "game" the AP score. By artificially suppressing high-confidence detections of frequent classes (like "person"), a researcher can "make room" for rare class detections.

Example of artificial suppression: removing high-confidence true positives to allow lower-confidence detections to count, paradoxically increasing the AP score.

As shown above, removing true positives of a frequent class can actually increase the overall AP from 25.5 to 27.2. This discovery suggests that the standard metric has been rewarding "budget management" rather than genuine improvements in detection quality.

Proposed Solutions: $AP^{Fixed}$ and $AP^{Pool}$

To address these issues, the authors propose two new metrics:

  1. $AP^{Fixed}$ (The Procedural Fix): Instead of a per-image limit, this metric applies a per-class limit across the entire dataset (e.g., the top 10,000 detections for each class). This restores category independence by ensuring that detections of one class never push out detections of another.
  2. $AP^{Pool}$ (The Calibration Metric): This metric pools detections from all classes before calculating a single precision-recall curve. It specifically rewards calibration—the requirement that confidence scores be comparable across different categories.

Re-evaluating Recent Progress

When re-evaluated using $AP^{Fixed}$, many recent "advances" in long-tailed object detection appear less impactful. For instance, the performance gain of Federated Loss over standard Softmax shrank from 2.4 points to just 0.8 points under the new metric. This indicates that previous methods were primarily helping models rank rare classes higher to fit within the 300-detection limit, rather than improving underlying detection accuracy.

Conclusion

The "devil" in the details of AP evaluation has led the community to over-optimize for a specific implementation quirk. By adopting $AP^{Fixed}$ for measuring detection quality and $AP^{Pool}$ for measuring real-world calibration, researchers can ensure that future progress in large-vocabulary object detection is both genuine and practically useful.

Summary updated

BibTeX
@misc{dave2021evaluating,
  author = {Achal Dave and Piotr Dollár and Deva Ramanan and Alexander Kirillov and Ross B. Girshick},
  title = {{Evaluating Large-Vocabulary Object Detectors: The Devil is in the Details}},
  year = {2021},
  eprint = {2102.01066},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.01066},
}
Figure