Skip to main content
QUICK REVIEW

[Paper Review] Optimizing the F-measure for Threshold-free Salient Object Detection

Kai Zhao, Shanghua Gao|arXiv (Cornell University)|May 19, 2018
Visual Attention and Saliency DetectionComputer Science40 references11 citations
TL;DR

This paper proposes FLoss, a differentiable F-measure loss function that directly optimizes the F-measure during training for salient object detection, enabling threshold-free, high-precision saliency maps. By reformulating the standard F-measure into a relaxed, differentiable form, FLoss maintains strong gradients even in saturated activation regions, leading to faster convergence and superior performance across multiple benchmarks without requiring threshold tuning.

ABSTRACT

Current CNN-based solutions to salient object detection (SOD) mainly rely on the optimization of cross-entropy loss (CELoss). Then the quality of detected saliency maps is often evaluated in terms of F-measure. In this paper, we investigate an interesting issue: can we consistently use the F-measure formulation in both training and evaluation for SOD? By reformulating the standard F-measure we propose the relaxed F-measure which is differentiable w.r.t the posterior and can be easily appended to the back of CNNs as the loss function. Compared to the conventional cross-entropy loss of which the gradients decrease dramatically in the saturated area, our loss function, named FLoss, holds considerable gradients even when the activation approaches the target. Consequently, the FLoss can continuously force the network to produce polarized activations. Comprehensive benchmarks on several popular datasets show that FLoss outperforms the state-of-the-art with a considerable margin. More specifically, due to the polarized predictions, our method is able to obtain high-quality saliency maps without carefully tuning the optimal threshold, showing significant advantages in real-world applications.

Motivation & Objective

  • To address the misalignment between training (cross-entropy loss) and evaluation (F-measure) in salient object detection.
  • To enable end-to-end optimization of the F-measure as the training objective, improving model generalization and robustness.
  • To eliminate the need for threshold tuning in inference by producing inherently polarized saliency maps.
  • To balance precision and recall effectively in imbalanced data distributions through the F-measure's harmonic mean formulation.
  • To achieve faster convergence and higher performance compared to conventional cross-entropy and balanced cross-entropy losses.

Proposed method

  • Proposes a relaxed F-measure formulation that is differentiable with respect to the predicted posterior probabilities, overcoming the non-differentiability of the standard F-measure.
  • Introduces FLoss as a differentiable loss function derived from the relaxed F-measure, which can be appended to the end of any CNN-based saliency detection model.
  • Employs a parameterized $eta^2$ factor to control the trade-off between precision and recall, enabling application-specific optimization.
  • Uses the harmonic mean of precision and recall as the core metric, which inherently balances class imbalance in saliency detection.
  • Applies the loss in a fully end-to-end manner during training, allowing the network to learn polarized predictions directly.
  • Leverages the fact that FLoss maintains significant gradients even when predictions saturate, promoting sharper foreground-background separation.

Experimental results

Research questions

  • RQ1Can the F-measure be directly optimized during training in a differentiable manner for salient object detection?
  • RQ2Does using the F-measure as the training objective lead to better generalization and performance than cross-entropy loss?
  • RQ3Can FLoss produce high-quality saliency maps without requiring threshold tuning in inference?
  • RQ4How does FLoss perform in handling class-imbalanced data compared to standard and balanced cross-entropy losses?
  • RQ5To what extent does FLoss improve convergence speed and final performance across multiple SOTA architectures?

Key findings

  • FLoss achieves state-of-the-art performance on multiple benchmark datasets, outperforming both standard and balanced cross-entropy losses.
  • On the ECSSD dataset, the DSS+FLoss model achieves an F-measure of 0.843, surpassing DSS+Balance (0.837) and DSS+CE (0.835).
  • On the PASCAL-S dataset, the Amulet+FLoss model reaches an F-measure of 0.889, exceeding Amulet+CE (0.889) and Amulet+Balance (0.889), with improved recall and precision.
  • The method converges faster than cross-entropy baselines, achieving high F-measure scores within a few hundred iterations.
  • FLoss-based models produce highly polarized predictions, maintaining high performance across a wide range of threshold values, demonstrating threshold-free robustness.
  • Adjusting $eta^2$ allows effective control over the precision-recall trade-off, with higher $eta^2$ favoring recall and lower $eta^2$ favoring precision.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.