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

Aligning Object Detector Bounding Boxes with Human Preference

Ombretta Strafforello, Osman Semih Kayhan, Oana Inel, Klamer Schutte, Jan van Gemert · DOI

Abstract

Standard object detection models are typically optimized for a "perfect" mathematical fit, measured by metrics like Intersection over Union (IoU) and Average Precision (AP). However, these metrics often fail to capture human visual preference. This research demonstrates that humans consistently prefer bounding boxes that are slightly larger than the object itself, providing "breathing room" and ensuring no part of the object is cut off. To address this, we introduce an asymmetric regression loss function that encourages models to favor larger boxes. Our results show that models trained with this loss are significantly more appealing to human users while maintaining a functional balance with traditional accuracy metrics.

Introduction

In the field of computer vision, the success of an object detector is almost exclusively measured by how tightly its predicted bounding boxes hug the ground-truth boundaries. This is quantified using Average Precision (AP), which relies on Intersection over Union (IoU). While this "tight fit" is ideal for downstream algorithmic tasks—such as cropping an image for a secondary classifier—it often results in a sub-optimal experience when the detections are intended for human viewing.

In applications like medical imaging, security monitoring, or visual inspection, the bounding box serves as a visual cue for a human operator. In these contexts, a mathematically perfect fit can feel cramped or even incorrect. This paper investigates the discrepancy between algorithmic optimization and human visual preference, proposing a method to align AI outputs with human expectations.

The Human Preference Study

To quantify what humans actually want to see, the researchers conducted a large-scale "Scaling Preference" study. They utilized three state-of-the-art detectors—Faster R-CNN, RetinaNet, and Cascade Mask R-CNN—and manually scaled their output boxes by factors ranging from 0.5 to 2.0.

Over 120 participants evaluated these variations across thousands of images from the MS COCO dataset. The findings were striking: humans consistently preferred boxes upscaled by 1.5x or 2.0x. Qualitatively, participants noted that tight boxes often cut off "protrusions"—such as a cat's ears, a person's fingertips, or the flame on a candle. Furthermore, a box that sits exactly on the edge of an object can create visual clutter, whereas a slightly larger box provides a clean frame that makes the object easier to identify at a glance.

Methodology: Asymmetric Regression Loss

Standard object detectors use symmetric loss functions, such as the smooth L1 loss, for bounding box regression. These functions penalize a box that is 10% too small exactly the same as one that is 10% too large. To shift model behavior toward human preference, the authors introduced an asymmetric regression loss governed by a parameter, α.

By setting α > 1, the loss function penalizes under-prediction (boxes that are too small) more heavily than over-prediction (boxes that are too large). This encourages the model to "err on the side of larger." The researchers fine-tuned standard models on the MS COCO dataset using various values of α to find the optimal balance between human preference and traditional detection performance.

The AP-Preference Paradox

The study revealed a significant tension between human preference and standard evaluation metrics. As the scaling factor increased to the levels humans preferred (1.5x to 2.0x), the Average Precision (AP) of the models plummeted toward zero. This "AP-Preference Paradox" highlights a major misalignment: the models that humans find most useful are the ones that perform worst according to traditional benchmarks.

However, the asymmetric loss function provided a middle ground. By fine-tuning with α=10, the researchers produced a model where 80-90% of the predicted boxes were larger than the ground truth. These boxes were, on average, 21% larger than the "perfect" fit. This specific configuration emerged as the "sweet spot": it was the most preferred by humans in a follow-up study while maintaining a much higher AP than simple fixed-factor scaling.

Key Insights

  • Size Sensitivity: The preference for larger boxes is most pronounced for small objects. For larger objects that already occupy a significant portion of the frame, humans are more accepting of a tighter fit.
  • Contextual Constraints: In crowded scenes with overlapping objects, human preference shifts back toward tighter boxes. This is likely to avoid ambiguity regarding which specific object the box is intended to highlight.
  • Visual Framing: Larger boxes act as a "buffer," ensuring that the boundary of the box does not visually interfere with the edges of the object itself.

Conclusion

This research highlights a critical need to move beyond purely mathematical metrics when designing AI systems for human interaction. By introducing a simple yet effective asymmetric loss function, we can train object detectors that see the world more like humans do.

Future work remains to be done in making the asymmetry parameter α dynamic—adjusting it based on object size, shape, or scene complexity. Additionally, exploring how these preferences translate to specialized domains like medical diagnostics or satellite imagery will be essential for deploying human-aligned computer vision in the real world.

Summary updated

BibTeX
@misc{strafforello2024aligning,
  author = {Ombretta Strafforello and Osman Semih Kayhan and Oana Inel and Klamer Schutte and Jan van Gemert},
  title = {{Aligning Object Detector Bounding Boxes with Human Preference}},
  year = {2024},
  eprint = {2408.10844},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.10844},
}
Figure