Label-efficient Segmentation via Affinity Propagation

Wentong Li, Yuqian Yuan, Song Wang, Wenyu Liu, Dongqi Tang, Jian liu, Jianke Zhu, Lei Zhang

Abstract

Training deep models for image segmentation typically requires dense, pixel-wise masks, which are expensive to obtain. This paper presents Affinity Propagation (APro), a novel and efficient plug-and-play component designed to enhance weakly-supervised segmentation. By capturing both fine-grained local details and global object topology, APro generates high-quality pseudo labels from sparse annotations like bounding boxes or points. Formulated as a propagation process on a tree-based graph, APro achieves state-of-the-art performance across multiple tasks with minimal computational overhead.

Introduction

Weakly-supervised segmentation methods aim to reduce annotation costs by using "label-efficient" inputs such as bounding boxes, single points, or scribbles. However, conventional methods often rely on local appearance kernels that suffer from "short-sightedness," failing to capture long-range dependencies, and "topology ignorance," leading to masks that ignore object boundaries. While global context methods exist, they are often computationally expensive ($O(N^2)$) or produce blurry results. APro addresses these challenges by unifying global topological awareness with local spatial consistency.

Methodology

APro refines network predictions into accurate "soft pseudo labels" through two complementary processes:

Global and Local Affinity Propagation

  1. Global Affinity Propagation (GP): This process captures the overall object structure. The image is represented as a graph, and a Minimum Spanning Tree (MST) is constructed to represent its topology. Labels are propagated along the tree using a "distance-insensitive max affinity" function. This allows strong connections between distant pixels if they share a clear topological path, preventing the affinity decay common in standard tree-based methods.
  2. Local Affinity Propagation (LP): To ensure fine-grained detail and spatial consistency, LP utilizes a standard Gaussian kernel. This step effectively cleans up noise and ensures local smoothness.
The APro framework applied to box, point/scribble, and CLIP-guided segmentation tasks.

Computational Efficiency

To enable online training, the authors developed a Lazy Update algorithm. By updating values only at root nodes and postponing descendant updates, the computational complexity is reduced from $O(N^2)$ to $O(N \log N)$. In practice, the GP process takes only 0.8ms per image, making it significantly faster than traditional refinement methods.

The dual-path architecture of APro: Global affinity captures topology while local affinity ensures consistency.

Experimental Results

The APro method was evaluated on standard benchmarks including COCO, Pascal VOC 2012, Pascal Context, and COCO-Stuff.

  • Box-Supervised Instance Segmentation: On Pascal VOC, APro achieved 37.1% AP, outperforming BoxInst (34.3%) and DiscoBox.
  • Point/Scribble-Supervised Semantic Segmentation: New benchmarks were set on Pascal VOC with 67.7% mIoU for point supervision and 76.6% mIoU for scribble supervision.
  • CLIP-Guided Segmentation: Integration with MaskCLIP+ resulted in an improvement of up to 3.6% mIoU on Pascal VOC.

Conclusion

APro demonstrates that respecting intrinsic image topology is key to effective label propagation. By combining global topological paths with local refinement in an efficient $O(N \log N)$ framework, it provides a robust solution for label-efficient segmentation. Future work includes integrating APro with large-scale foundation models like SAM to further leverage semantic priors.

Summary updated

BibTeX
@inproceedings{li2023label,
  author = {Wentong Li and Yuqian Yuan and Song Wang and Wenyu Liu and Dongqi Tang and Jian liu and Jianke Zhu and Lei Zhang},
  title = {{Label-efficient Segmentation via Affinity Propagation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=8BPzLxF9p5},
}
Figure