EffSeg: Efficient Fine-Grained Instance Segmentation using Structure-Preserving Sparsity

Cédric Picron, Tinne TuytelaarsarXiv 2023 · DOI

Abstract

EffSeg introduces a novel "Structure-Preserving Sparsity" (SPS) method to achieve high-quality, fine-grained instance segmentation without the heavy computational tax. By intelligently separating feature storage from spatial indexing, it matches the performance of state-of-the-art dense models while slashing inference FLOPs by 71% and boosting frame rates by 29%.

Introduction

Most standard instance segmentation models, such as Mask R-CNN, predict coarse $28 \times 28$ pixel masks. While computationally efficient, this resolution is insufficient for capturing the intricate details of complex shapes, such as thin chair legs or human fingers.

Existing solutions generally fall into two categories:

  1. PointRend: Efficiently computes only at "uncertain" points but uses simple MLPs that ignore neighboring pixel context.
  2. RefineMask: Produces high-quality masks using 2D convolutions but does so densely across the entire object area, leading to significant computational waste.

EffSeg addresses the fundamental question: Can we combine the efficiency of sparse point-based methods with the high performance of neighborhood-aware 2D convolutions?

Comparison of segmentation heads.

Methodology: Structure-Preserving Sparsity (SPS)

The core innovation of EffSeg is Structure-Preserving Sparsity (SPS). Unlike standard dense 2D grids, SPS decouples data into three distinct components:

  • Active Features: A matrix containing features only at locations requiring updates (e.g., object boundaries).
  • Passive Features: A matrix of features that provide necessary context without requiring updates.
  • 2D Index Map: A dense map storing indices that point to the corresponding features in the active or passive matrices.
Illustration of Structure-Preserving Sparsity (SPS) and 2D convolution.

This separation allows the model to perform standard 2D operations, such as convolutions, while maintaining sparsity. The 2D index map preserves the spatial layout, enabling a convolution kernel to quickly look up neighboring features from the compact active/passive matrices. EffSeg employs a multi-stage refinement process, iteratively upsampling from a $14 \times 14$ mask to a $112 \times 112$ resolution, focusing computation only on the most uncertain pixels at each step.

Evaluation and Results

The authors evaluated EffSeg on the COCO and LVIS datasets. LVIS was specifically used to measure fine-grained quality due to its more detailed mask annotations. Key findings include:

  • Efficiency: Compared to RefineMask++, EffSeg reduces parameters by 36% and inference FLOPs by 71%.
  • Performance: It achieves a 29% increase in inference speed (FPS) on an NVIDIA A100 GPU.
  • Accuracy: EffSeg maintains nearly identical accuracy to dense models on COCO (approx. 40.1 AP with a ResNet-50 backbone) and significantly outperforms point-based methods in boundary-specific metrics.

Conclusion

EffSeg demonstrates that "point-wise" processing is sub-optimal and that accessing neighboring features via 2D convolutions is essential for high-quality boundaries. By using an Index Map to keep the grid structure intact, EffSeg enables sparse computation without sacrificing the benefits of 2D operations. Future work includes optimizing implementation via custom CUDA kernels and extending the framework to panoptic segmentation.

Summary updated

BibTeX
@misc{picron2023effseg,
  author = {Cédric Picron and Tinne Tuytelaars},
  title = {{EffSeg: Efficient Fine-Grained Instance Segmentation using Structure-Preserving Sparsity}},
  year = {2023},
  eprint = {2307.01545},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.01545},
}
Figure