IBoxCLA: Towards Robust Box-supervised Segmentation of Polyp via Improved Box-dice and Contrastive Latent-anchors

Zhiwei Wang, Qiang Hu, Hongkuan Shi, Li He, Man He, Wenxuan Dai, Ting Li, Yitong Zhang, Dun Li, Mei Liu, Qiang Li

Abstract

Box-supervised polyp segmentation attracts increasing attention for its cost-effective potential. Existing solutions often rely on learning-free methods or pretrained models to laboriously generate pseudo masks, triggering Dice constraint subsequently. In this paper, we found that a model guided by the simplest box-filled masks can accurately predict polyp locations/sizes, but suffers from shape collapsing. In response, we propose two innovative learning fashions, Improved Box-dice (IBox) and Contrastive Latent-Anchors (CLA), and combine them to train a robust box-supervised model IBoxCLA. The core idea behind IBoxCLA is to decouple the learning of location/size and shape, allowing for focused constraints on each of them. Specifically, IBox transforms the segmentation map into a proxy map using shape decoupling and confusion-region swapping sequentially. Within the proxy map, shapes are disentangled, while locations/sizes are encoded as box-like responses. By constraining the proxy map instead of the raw prediction, the box-filled mask can well supervise IBoxCLA without misleading its shape learning. Furthermore, CLA contributes to shape learning by generating two types of latent anchors, which are learned and updated using momentum and segmented polyps to steadily represent polyp and background features. The latent anchors facilitate IBoxCLA to capture discriminative features within and outside boxes in a contrastive manner, yielding clearer boundaries. We benchmark IBoxCLA on five public polyp datasets. The experimental results demonstrate the competitive performance of IBoxCLA compared to recent fully-supervised polyp segmentation methods, and its superiority over other box-supervised state-of-the-arts with a relative increase of overall mDice and mIoU by at least 6.5% and 7.5%, respectively.

Introduction: The Challenge of Box-Supervision

In medical imaging, particularly colonoscopy, segmenting polyps is crucial for early cancer detection. However, training deep learning models typically requires thousands of images with pixel-perfect "masks" delineating the exact boundary of every polyp. These masks are incredibly expensive and time-consuming for clinicians to produce.

"Box-supervised" segmentation offers a cost-effective alternative where annotators simply draw a rectangle around the polyp. The fundamental challenge is the entanglement trap: if a model is trained to match a box-filled mask directly, it often suffers from shape collapsing—learning to predict rectangular blocks rather than the actual organic shapes of polyps. Previous solutions attempted to solve this with complex multi-instance learning (MIL) or unstable pseudo-mask generation.

Methodology: The IBoxCLA Framework

The authors introduce IBoxCLA, a framework designed to overcome shape collapsing by decoupling object location from its actual shape. The architecture utilizes a Pyramid Vision Transformer (PVT) encoder paired with Receptive Field Blocks (RFB) to capture multi-scale features, governed by two primary innovations:

1. Improved Box-dice (IBox)

To prevent the model from learning "box shapes," IBox decouples location and size from the actual shape. It achieves this by "squeezing" the 2D segmentation prediction into two 1D orthogonal vectors via horizontal and vertical max-pooling. By supervising these 1D projections with the ground-truth box, the model learns where the polyp is and how big it is without being forced to adopt a rectangular 2D shape. This provides a "freedom of shape" while strictly enforcing spatial constraints.

Conceptual overview of shape decoupling in box-supervised learning.

2. Contrastive Latent-Anchors (CLA)

To refine boundaries, IBoxCLA employs a "Teacher-Student" setup. A teacher model (an Exponential Moving Average of the student) identifies representative feature "anchors" for both polyps and background. The student model is then trained to pull polyp features toward the polyp anchor and push background features toward the background anchor. This contrastive approach results in much sharper, more discriminative boundaries, allowing the model to ignore "distractor" tissues and reflections.

Experimental Evaluation

Datasets

The researchers benchmarked IBoxCLA on five widely-used public polyp datasets: ClinicDB, Kvasir-SEG, ColonDB, EndoScene, and ETIS. Additionally, they utilized the LDPolypVideo dataset (containing over 33,000 images) to test "mix-supervised" performance—combining a small number of expensive masks with a large volume of cheap box annotations.

Key Results

  • Superiority over SOTA: IBoxCLA outperformed the previous best box-supervised method (WeakPolyp) by 6.5% in mDice and 7.5% in mIoU across all datasets.
  • Closing the Gap: In "Mix-supervised" settings, IBoxCLA achieved an mDice of 0.869, remarkably close to established fully-supervised models like PraNet and SANet. This suggests that scaling with "weak" labels can be more effective than relying solely on limited "strong" labels.
  • Robustness: Qualitative results demonstrate that IBoxCLA is significantly better at delineating organic boundaries compared to methods that often over-segment or produce boxy artifacts.
Qualitative comparison of IBoxCLA against state-of-the-art box-supervised methods.

Conclusion

IBoxCLA demonstrates that high-quality medical image segmentation is possible without exhaustive pixel-level annotation. By decoupling shape from location and utilizing contrastive latent anchors, the model achieves state-of-the-art performance in box-supervised polyp segmentation. Future work will explore extending this decoupling logic to 3D medical volumes and improving robustness against noisy annotations where boxes may contain multiple objects or significant background area.

Summary updated

Abstract

Box-supervised polyp segmentation attracts increasing attention for its cost-effective potential. Existing solutions often rely on learning-free methods or pretrained models to laboriously generate pseudo masks, triggering Dice constraint subsequently. In this paper, we found that a model guided by the simplest box-filled masks can accurately predict polyp locations/sizes, but suffers from shape collapsing. In response, we propose two innovative learning fashions, Improved Box-dice (IBox) and Contrastive Latent-Anchors (CLA), and combine them to train a robust box-supervised model IBoxCLA. The core idea behind IBoxCLA is to decouple the learning of location/size and shape, allowing for focused constraints on each of them. Specifically, IBox transforms the segmentation map into a proxy map using shape decoupling and confusion-region swapping sequentially. Within the proxy map, shapes are disentangled, while locations/sizes are encoded as box-like responses. By constraining the proxy map instead of the raw prediction, the box-filled mask can well supervise IBoxCLA without misleading its shape learning. Furthermore, CLA contributes to shape learning by generating two types of latent anchors, which are learned and updated using momentum and segmented polyps to steadily represent polyp and background features. The latent anchors facilitate IBoxCLA to capture discriminative features within and outside boxes in a contrastive manner, yielding clearer boundaries. We benchmark IBoxCLA on five public polyp datasets. The experimental results demonstrate the competitive performance of IBoxCLA compared to recent fully-supervised polyp segmentation methods, and its superiority over other box-supervised state-of-the-arts with a relative increase of overall mDice and mIoU by at least 6.5% and 7.5%, respectively.
BibTeX
@misc{wang2023iboxcla,
  author = {Zhiwei Wang and Qiang Hu and Hongkuan Shi and Li He and Man He and Wenxuan Dai and Ting Li and Yitong Zhang and Dun Li and Mei Liu and Qiang Li},
  title = {{IBoxCLA: Towards Robust Box-supervised Segmentation of Polyp via Improved Box-dice and Contrastive Latent-anchors}},
  year = {2023},
  eprint = {2310.07248},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.07248},
}
Figure