Towards Size-invariant Salient Object Detection: A Generic Evaluation and Optimization Approach

Shilong Bao, Qianqian Xu, Feiran Li, Boyu Han, Zhiyong Yang, Xiaochun Cao, Qingming Huang

Introduction: The Hidden Bias in Salient Object Detection

Salient Object Detection (SOD) is a fundamental computer vision task aimed at identifying the most visually significant regions in an image. While deep learning has significantly advanced the state-of-the-art, current evaluation metrics and loss functions suffer from a pervasive "size-bias." Standard pixel-level metrics, such as Mean Absolute Error (MAE) and F-measure, are mathematically dominated by large objects. Consequently, a model can achieve a high performance score while completely failing to detect smaller, semantically critical objects.

Distribution of object sizes and counts across datasets. Most salient objects are small, occupying less than 1% of the image area.

As shown in the figure above, the vast majority of salient objects in standard benchmarks are small, often occupying less than 1% of the total image area. In safety-critical applications like autonomous driving or medical imaging, missing a small object (e.g., a distant traffic sign or a small lesion) is far more detrimental than misclassifying a few pixels of a large background region. This paper introduces a model-agnostic framework to decouple performance from object size.

Methods: SIEva and SIOpt

We propose a two-pronged approach to ensure all objects are treated equally, regardless of their footprint:

  1. SIEva (Size-Invariant Evaluation): Instead of a single global calculation, SIEva partitions the image into "foreground frames"—defined by the bounding boxes of ground truth connected components—and a background frame. Metrics are calculated independently for each partition and then averaged. This ensures a tiny object has the same "vote" as a massive one in the final evaluation.
  2. SIOpt (Size-Invariant Optimization): This applies the same logic to training. We introduce size-invariant versions of common loss functions, such as SI-BCE, SI-Dice, and SI-AUC. By calculating loss per object and aggregating, the model is forced to prioritize the "hard" pixels of small objects. To maintain a holistic understanding of the scene, we include a reconciliation term ($\alpha$) to balance attention between foreground objects and the background.

To make size-invariant AUC optimization feasible, we developed PBAcc (Pixel-level Bipartite Acceleration). This novel graph-based strategy reduces the computational complexity of pairwise pixel comparisons from $O(S^2)$ to $O(S)$, drastically lowering memory requirements (e.g., from 82GB to 2.1GB for a standard backbone).

Experimental Results and Qualitative Analysis

The framework was validated across a wide array of RGB, RGB-D, and RGB-T datasets using seven different model backbones, ranging from traditional CNNs like PoolNet to modern Transformers like VST and foundation model adapters like SAM-Adapter.

Comparison of standard MAE vs. the proposed SI-MAE metric. MAE often ranks poor, blurry predictions higher than those capturing small salient objects, while SI-MAE correctly identifies the superior prediction.

The qualitative impact is striking. As illustrated in the figure above, standard MAE can be highly misleading. In Example 1, MAE assigns a lower (better) error to a blurry, non-informative prediction (ranked 1st) than to a prediction that successfully captures the runners (ranked 2nd). This occurs because the blurry prediction has fewer total pixel-level errors in the background. In contrast, SI-MAE correctly ranks the prediction capturing the salient objects as 1st, demonstrating its robustness to size-based imbalances.

Quantitatively, SIOpt-trained models show significant gains on multi-object datasets. For instance, using the ADMNet backbone on the MSOD dataset, SIOpt improved the Maximum F-measure by 9.0% and reduced MAE by 6.7% compared to standard training.

Conclusion

By shifting the focus from pixel-level accuracy to object-level significance, SIEva and SIOpt provide a more reliable and safety-conscious framework for Salient Object Detection. This approach is model-agnostic, computationally efficient, and theoretically grounded, offering a path toward more robust computer vision systems that do not "blindly" ignore the small details.

Summary updated

BibTeX
@article{bao2025towards,
  author = {Shilong Bao and Qianqian Xu and Feiran Li and Boyu Han and Zhiyong Yang and Xiaochun Cao and Qingming Huang},
  title = {{Towards Size-invariant Salient Object Detection: A Generic Evaluation and Optimization Approach}},
  journal = {IEEE Transactions on Pattern Analysis and Machine Intelligence},
  year = {2025},
  doi = {10.1109/tpami.2025.3609882},
}
Figure