BASNet: Boundary-Aware Salient Object Detection.

Xuebin Qin, Zichen Zhang, Chenyang Huang, Chao Gao, Masood Dehghan, Martin JägersandCVPR 2019

Abstract

Deep Convolutional Neural Networks have been adopted for salient object detection and achieved the state-of-the-art performance. Most of the previous works however focus on region accuracy but not on the boundary quality. In this paper, we propose a predict-refine architecture, BASNet, and a new hybrid loss for Boundary-Aware Salient object detection. Specifically, the architecture is composed of a densely supervised Encoder-Decoder network and a residual refinement module, which are respectively in charge of saliency prediction and saliency map refinement. The hybrid loss guides the network to learn the transformation between the input image and the ground truth in a three-level hierarchy — pixel-, patch- and map- level — by fusing Binary Cross Entropy (BCE), Structural SIMilarity (SSIM) and Intersection-over-Union (IoU) losses. Equipped with the hybrid loss, the proposed predict-refine architecture is able to effectively segment the salient object regions and accurately predict the fine structures with clear boundaries. Experimental results on six public datasets show that our method outperforms the state-of-the-art methods both in terms of regional and boundary evaluation measures. Our method runs at over 25 fps on a single GPU.

Introduction

Salient Object Detection (SOD) aims to segment the most visually important objects in an image. While deep learning has significantly advanced the field, most existing models suffer from a common flaw: they are effective at identifying general object regions but struggle to define sharp, accurate edges.

The authors identify two primary causes for this "blurry boundary" problem. First, standard loss functions like Binary Cross Entropy (BCE) treat pixels independently, ignoring the structural relationships between neighbors. This leads to low confidence and "halo" effects at boundaries. Second, saliency is a global property requiring a wide field of view, whereas boundaries are local details. Balancing these conflicting scales within a single architecture is inherently difficult.

Methods: The Predict-Refine Architecture

BASNet addresses these challenges using a two-stage "Predict-Refine" strategy supported by a unique hybrid loss function.

Architecture Design

The model consists of two main components:

  1. The Predict Module: A modified U-Net-like architecture using a ResNet-34 backbone. To preserve spatial details, the authors removed the initial pooling layers, maintaining higher resolution in early stages. It utilizes "deep supervision," producing seven intermediate saliency maps during training to assist convergence.
  2. The Residual Refinement Module (RRM): Instead of outputting the final map directly, the Predict Module passes a coarse map to the RRM. This module learns to predict the residual (the difference) between the coarse map and the ground truth, effectively polishing edges and filling regional gaps.
The BASNet architecture consists of a Predict Module for initial saliency estimation and a Residual Refinement Module (RRM) for polishing boundaries.

The Hybrid Loss

The "secret sauce" of BASNet is its three-level hybrid loss, which forces the network to be accurate across different scales:

  • BCE (Pixel-level): Standard binary cross-entropy for overall convergence.
  • SSIM (Patch-level): Structural Similarity Index, which forces the network to respect local structures and boundaries.
  • IoU (Map-level): Intersection-over-Union, which ensures the global shape and area of the object are correct.

Key Results

BASNet was evaluated against 15 state-of-the-art methods on six public benchmarks, including DUTS-TE, ECSSD, and DUT-OMRON.

Qualitatively, BASNet excels at capturing thin structures—such as bird legs or intricate spokes—where competing models often produce indistinct blobs. Quantitatively, the model outperformed all competitors in both regional accuracy (F-measure) and boundary quality. Notably, it improved the boundary F-measure by 5.9% on the DUTS-TE dataset compared to previous leaders. Despite its two-stage design, BASNet maintains real-time performance, running at over 25 fps on a single NVIDIA GTX 1080ti.

Qualitative comparison showing BASNet's ability to produce sharper boundaries and more accurate fine structures compared to other state-of-the-art methods like PiCANet.

Conclusion

By combining a hierarchical hybrid loss with a residual refinement strategy, BASNet successfully bridges the gap between global saliency detection and local boundary accuracy. While the two-stage process adds some complexity, the gains in boundary sharpness and regional precision make it a powerful tool for SOD. Future work may involve extending this "predict-refine" paradigm to other domains like medical imaging or satellite extraction.

Summary updated

BibTeX
@inproceedings{qin2019basnet,
  author = {Xuebin Qin and Zichen Zhang and Chenyang Huang and Chao Gao and Masood Dehghan and Martin Jägersand},
  title = {{BASNet: Boundary-Aware Salient Object Detection.}},
  booktitle = {CVPR},
  year = {2019},
  url = {https://openreview.net/forum?id=Hm0NQazx_TS},
}
Figure