NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Box2Mask: Box-Supervised Instance Segmentation via Level-Set Evolution

Wentong Li, Wenyu Liu, Jianke Zhu, Miaomiao Cui, Risheng Yu, Xiansheng Hua, Lei Zhang · DOI

Introduction

Instance segmentation is a fundamental task in computer vision, requiring the identification and precise masking of individual objects. However, the high cost of data annotation remains a significant barrier; labeling a single object mask in the COCO dataset takes approximately 80 seconds, compared to just 7 seconds for a bounding box. While "box-supervised" methods aim to alleviate this "data tax," they often rely on simplistic pairwise affinity heuristics that struggle in complex or crowded scenes.

Box2Mask introduces a mathematically robust alternative by integrating classical level-set evolution—a variational method for curve optimization—directly into a differentiable deep learning framework. By treating the bounding box as a constraint rather than a mere hint, the model learns to evolve accurate object boundaries without ever requiring human-labeled pixel masks.

Methodology

The core innovation of Box2Mask is the incorporation of the Chan-Vese level-set model into the training loop. This approach treats the mask as a dynamic curve that evolves to minimize an energy function, balancing internal and external area uniformity with curve smoothness.

Overview of the Box2Mask framework, integrating level-set evolution into a deep learning pipeline.

The architecture consists of several key components:

  1. Instance-aware Decoder (IAD): Generates initial mask maps. The authors propose two variants: Box2Mask-C (CNN-based) using dynamic convolutions, and Box2Mask-T (Transformer-based) utilizing object queries and bipartite matching.
  2. Level-set Evolution: During training, this module acts as an implicit supervisor. It evolves the predicted masks by minimizing the energy function within the ground-truth bounding box.
  3. Local Consistency Module (LCM): To address intensity inhomogeneity (where object colors are non-uniform), the LCM employs a pixel affinity kernel to maintain local spatial relationships and ensure smooth boundaries.

Importantly, the iterative level-set evolution is only utilized during training. At inference, the network performs a fast, single-pass prediction, maintaining the efficiency of standard fully supervised models.

Evaluation and Results

The performance of Box2Mask was validated across five diverse benchmarks, including general scenes (COCO, Pascal VOC), remote sensing (iSAID), medical imaging (LiTS), and scene text (ICDAR2019 ReCTS).

Qualitative comparison of Box2Mask against other box-supervised methods across various domains.

Box2Mask demonstrates state-of-the-art performance for box-supervised methods, often rivaling fully supervised counterparts:

  • COCO: Achieved 42.4% mask AP with a Swin-L backbone, comparable to models trained with full pixel-level supervision.
  • Pascal VOC: Reached 43.2% AP, outperforming the previous leading method, BoxInst, by a significant 6.7%.
  • Cross-Domain Robustness: In the medical domain (LiTS), it achieved an 80.0% $AP_{50}$, nearly matching the 80.2% of fully supervised models despite the visual complexity of liver tumors.

Discussion and Insights

The success of Box2Mask highlights the enduring value of classical variational methods when combined with deep learning. By providing a geometric prior that standard neural networks lack, level-set evolution allows the model to "discover" object shapes based on mathematical boundary conditions provided by bounding boxes.

Limitations and Future Work

Despite its strengths, the model faces challenges with very small objects, particularly in aerial datasets like iSAID, where feature depth is insufficient for accurate level-set convergence. Additionally, extremely cluttered backgrounds can occasionally lead the level-set to settle on incorrect edges. The authors suggest extending this framework to video instance segmentation, where temporal consistency across frames could further refine the level-set evolution and improve boundary accuracy in dynamic scenes.

Summary updated

BibTeX
@article{li2022box,
  author = {Wentong Li and Wenyu Liu and Jianke Zhu and Miaomiao Cui and Risheng Yu and Xiansheng Hua and Lei Zhang},
  title = {{Box2Mask: Box-Supervised Instance Segmentation via Level-Set Evolution}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2022},
  doi = {10.1109/tpami.2024.3363054},
}
Figure