[Paper Review] Deep Affinity Net: Instance Segmentation via Affinity
Deep Affinity Net (DaffNet) introduces an affinity-based instance segmentation framework that predicts pixel-level affinities and uses a novel cascaded graph partitioning algorithm, Cascade-GAEC, to segment instances without relying on regions or keypoints. It achieves 32.4% AP on Cityscapes validation and 27.5% on test, outperforming prior affinity-based models and even Mask R-CNN, while running 7× faster than previous methods.
Most of the modern instance segmentation approaches fall into two categories: region-based approaches in which object bounding boxes are detected first and later used in cropping and segmenting instances; and keypoint-based approaches in which individual instances are represented by a set of keypoints followed by a dense pixel clustering around those keypoints. Despite the maturity of these two paradigms, we would like to report an alternative affinity-based paradigm where instances are segmented based on densely predicted affinities and graph partitioning algorithms. Such affinity-based approaches indicate that high-level graph features other than regions or keypoints can be directly applied in the instance segmentation task. In this work, we propose Deep Affinity Net, an effective affinity-based approach accompanied with a new graph partitioning algorithm Cascade-GAEC. Without bells and whistles, our end-to-end model results in 32.4% AP on Cityscapes val and 27.5% AP on test. It achieves the best single-shot result as well as the fastest running time among all affinity-based models. It also outperforms the region-based method Mask R-CNN.
Motivation & Objective
- To propose a new paradigm for instance segmentation based on learned pixel affinities rather than regions or keypoints.
- To address the limitations of fixed-grid affinity prediction and high computational cost in multicut graph partitioning.
- To develop a scalable, end-to-end model that achieves high accuracy with single-shot inference and low inference time.
- To demonstrate that affinity-based methods can surpass region-based models like Mask R-CNN in accuracy and speed.
Proposed method
- DaffNet uses a Feature Pyramid Network (FPN) backbone to generate semantic maps, affinity maps, and grouping embeddings at multiple resolutions.
- A novel grouping module enables prediction and utilization of affinities across arbitrary grid spacings, enhancing segment reconstruction for disconnected parts.
- Cascade-GAEC integrates the greedy multicut algorithm GAEC with a cascaded structure, processing low-resolution maps first and refining high-resolution segments.
- Position-Aware GAEC (PA-GAEC) improves accuracy by incorporating spatial context during label assignment in graph partitioning.
- A Greedy Association (GAS) module accelerates processing by replacing expensive priority queue operations with random-order label assignment.
- The model is trained end-to-end with multi-scale affinity losses, using decaying weights (0.25, 0.5, 1, 1) for optimal performance.
Experimental results
Research questions
- RQ1Can instance segmentation be effectively solved using learned affinities as the primary signal, without relying on bounding boxes or keypoints?
- RQ2How can affinity prediction be extended beyond fixed grid spacing to improve segmentation of complex, fragmented instances?
- RQ3Can a cascaded graph partitioning strategy reduce computational cost while maintaining or improving segmentation accuracy?
- RQ4What is the trade-off between speed and accuracy when using greedy acceleration in multicut-based segmentation?
Key findings
- DaffNet achieves 32.4% AP on Cityscapes validation and 27.5% on test using single-shot inference, outperforming all prior affinity-based models.
- The model surpasses the region-based Mask R-CNN, achieving higher accuracy with faster inference.
- Cascade-GAEC processes one Cityscapes image in 0.24 seconds, which is approximately 7× faster than the previous state-of-the-art method.
- The ablation study confirms that the grouping module contributes a 4.2% AP gain, PA-GAEC adds 1.6%, and full Cascade-GAEC with GAS yields 32.4% AP.
- Using the GAS acceleration module reduces inference time by 0.14 seconds per image, though it causes a 0.4% AP drop on validation and 0.5% on test.
- The practical running time of Cascade-GAEC is approximately linear with image size, enabling efficient scaling to high-resolution inputs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.