ConnNet: A Long-Range Relation-Aware Pixel-Connectivity Network for Salient Segmentation

Michael Kampffmeyer, Nanqing Dong, Xiaodan Liang, Yujia Zhang, Eric P. Xing · DOI

Abstract

Salient segmentation aims to segment out attention-grabbing regions, a critical yet challenging task and the foundation of many high-level computer vision applications. It requires semantic-aware grouping of pixels into salient regions and benefits from the utilization of global multi-scale contexts to achieve good local reasoning. Previous works often address it as two-class segmentation problems utilizing complicated multi-step procedures including refinement networks and complex graphical models. We argue that semantic salient segmentation can instead be effectively resolved by reformulating it as a simple yet intuitive pixel-pair based connectivity prediction task. Following the intuition that salient objects can be naturally grouped via semantic-aware connectivity between neighboring pixels, we propose a pure Connectivity Net (ConnNet). ConnNet predicts connectivity probabilities of each pixel with its neighboring pixels by leveraging multi-level cascade contexts embedded in the image and long-range pixel relations. We achieve state-of-the-art performance, outperforming or being comparable to existing approaches while reducing inference time due to our less complex approach.

Introduction

In computer vision, "saliency" refers to the parts of an image that naturally stand out to a human observer. Traditional deep learning approaches treat salient segmentation as a binary classification task: for every pixel, is it "salient" or "background"? While effective, this approach often struggles with spatial consistency, leading to "noisy" masks where pixels that should be grouped together are disconnected. To fix this, researchers often resort to complex post-processing steps like Conditional Random Fields (CRFs), which are computationally expensive.

Overview of the ConnNet approach, illustrating the integration of local and global information for salient object detection.

ConnNet reformulates this task from a standard pixel-wise classification problem into a pixel-pair connectivity prediction task. By predicting whether neighboring pixels are connected rather than just labeling them individually, the model achieves state-of-the-art performance with significantly faster inference speeds and better boundary preservation.

Methodology

The core innovation of ConnNet is the replacement of the standard segmentation head with a Connectivity Head.

Connectivity Reformulation

Instead of outputting a single-channel mask, ConnNet outputs a "connectivity cube." For every pixel, the network predicts the probability of it being connected to its immediate neighbors. The authors investigated two types of connectivity: Diamond-connectivity (4 neighbors) and Square-connectivity (8 neighbors). Two pixels are considered "connected" in the ground truth only if both are part of a salient object.

Comparison of connectivity patterns: (a) Diamond-connectivity (4 neighbors) and (b) Square-connectivity (8 neighbors).

Long-Range Relation Awareness

To provide the network with a global perspective, Non-Local (NL) blocks are integrated. Unlike standard convolutions that only look at nearby pixels, NL blocks allow every pixel to "attend" to every other pixel in the image, effectively fusing global context into the local connectivity predictions. This is complemented by Atrous Spatial Pyramid Pooling (ASPP) to handle objects of varying sizes.

Inference and Regularization

To obtain the final mask, the connectivity cube is converted back into a binary image. A pixel is determined to be salient based on the consensus of its predicted connections to its neighbors. This connectivity approach acts as an implicit spatial smoother, removing the need for slow post-processing like CRFs. Furthermore, connectivity is inherently sensitive to edges; if a pixel is on the edge of an object, its connections to background neighbors will be zero, naturally sharpening the object's contours.

Experimental Results

The model was evaluated on four major salient object segmentation benchmarks: MSRA-B, HKU-IS, ECSSD, and PASCAL-S.

  • State-of-the-Art Performance: ConnNet (specifically the "ConnNet+" version with global relations) outperformed or matched existing methods across all four datasets in terms of F-measure.
  • Efficiency: Because the connectivity head is simple and the model doesn't require multi-stage refinement, it is incredibly fast. ConnNet achieves an inference time of 0.03 seconds per image, compared to 0.6 or 1.0 seconds for competing high-performance models.
  • Instance Saliency: When integrated into a Mask R-CNN framework, the Mean Average Precision (mAP) for salient instance segmentation improved from 77.20% to 81.06%.
  • Connectivity Type: Ablation studies showed that "Square-connectivity" (8 neighbors) consistently outperformed "Diamond-connectivity" (4 neighbors), suggesting that diagonal relationships are crucial for capturing complex shapes.

Conclusion

ConnNet demonstrates that reformulating salient segmentation as a connectivity task provides significant benefits in terms of both accuracy and efficiency. While the current implementation is optimized for binary tasks, the primary limitation is scalability to multi-class semantic segmentation. Future work will explore more efficient ways to apply this connectivity logic to large-scale multi-class problems and investigate deeper integration of learnable relationship models within the network architecture.

Summary updated

BibTeX
@article{kampffmeyer2018connnet,
  author = {Michael Kampffmeyer and Nanqing Dong and Xiaodan Liang and Yujia Zhang and Eric P. Xing},
  title = {{ConnNet: A Long-Range Relation-Aware Pixel-Connectivity Network for Salient Segmentation}},
  journal = {IEEE Trans. Image Process.},
  year = {2018},
  doi = {10.1109/tip.2018.2886997},
}
Figure