Size-invariance Matters: Rethinking Metrics and Losses for Imbalanced Multi-object Salient Object Detection

Feiran Li, Qianqian Xu, Shilong Bao, Zhiyong Yang, Runmin Cong, Xiaochun Cao, Qingming Huang

Abstract

Salient Object Detection (SOD) models often struggle with multi-object scenes where object sizes vary significantly. Traditional evaluation metrics, such as Mean Absolute Error (MAE), are pixel-sensitive and inherently biased toward larger objects. This paper addresses this flaw by introducing size-invariant (SI) metrics and a corresponding SI-loss function. By treating every object instance with equal weight regardless of its pixel count, the proposed framework enables models to capture small, critical targets more effectively. Experimental results across eight datasets demonstrate consistent performance gains when integrating SI-optimization into state-of-the-art backbones.

Introduction: The Bias in Standard Metrics

In Salient Object Detection, the objective is to segment the most visually prominent objects in an image. However, current evaluation methods suffer from a fundamental imbalance. Standard metrics like MAE calculate error globally across all pixels. In a scene containing one large object (e.g., 50% of pixels) and one small object (e.g., 1% of pixels), a model that perfectly segments the large object but misses the small one entirely will still achieve a very low error score.

Distribution of object sizes and counts in SOD datasets, illustrating the prevalence of small objects and the inherent imbalance that biases pixel-wise metrics.

This mathematical bias encourages models to prioritize large regions during training, as ignoring small objects has negligible impact on the loss function. In critical applications like autonomous driving, where a small traffic light is as salient as a large vehicle, this bias can be detrimental.

Methodology: Size-Invariant Evaluation and Training

The authors propose shifting from global pixel-wise evaluation to instance-level evaluation.

Size-Invariant (SI) Metrics

The core innovation involves decomposing standard metrics (MAE, F-score, AUC) into weighted sums where each object instance is assigned a constant weight. This ensures that a tiny object contributes as much to the final performance score as a massive one. To identify individual objects, the framework utilizes "connected components" from ground-truth masks to define foreground frames for each instance.

SI-Optimization and Loss

To align training with these new metrics, the researchers introduced a generic size-invariant loss function ($L_{SI}$). This loss forces the neural network to distribute its attention equally across all detected instances. Additionally, an adaptive background balancing parameter ($\alpha$) was introduced to prevent the model from becoming over-sensitive and generating excessive false positives in complex backgrounds.

Experimental Results

The approach was validated across eight diverse datasets, including MSOD (Multi-object Salient Object Detection) and DUTS. The SI-loss was integrated into five state-of-the-art backbones, including EDN, ICON, and PoolNet.

Quantitative and Qualitative Gains

On the MSOD dataset, which features high object-size imbalance, applying the SI-loss to the PoolNet backbone improved the SI-MAE from 0.1196 to 0.0924 and boosted the Max F-score from 0.7755 to 0.8200. Visual analysis confirms that SI-optimized models are significantly better at recovering small, distant objects that baseline models typically ignore.

Qualitative comparison showing how the proposed size-invariant approach (EDN+Ours) successfully detects small salient objects missed by the baseline EDN model.

Theoretical Foundations

Using Rademacher complexity analysis, the authors proved that the size-invariant loss leads to a "sharper" generalization bound. This theoretical grounding suggests that models trained with SI-loss are more likely to perform robustly on unseen data compared to those trained with standard pixel-wise losses.

Conclusion and Future Directions

While the proposed framework offers a robust solution to size imbalance, some limitations remain. The reliance on connected components means that overlapping objects may be treated as a single entity. Furthermore, the current model treats all instances with equal weight; future iterations could incorporate semantic information to prioritize certain object categories. Despite these challenges, the shift toward size-invariance represents a critical step in developing more reliable and equitable salient object detection systems.

Summary updated

BibTeX
@inproceedings{li2024size,
  author = {Feiran Li and Qianqian Xu and Shilong Bao and Zhiyong Yang and Runmin Cong and Xiaochun Cao and Qingming Huang},
  title = {{Size-invariance Matters: Rethinking Metrics and Losses for Imbalanced Multi-object Salient Object Detection}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=4HCi7JGCZk},
}
Figure