TL;DR
This paper introduces a weakly supervised prompt learning framework that automates medical image segmentation using only bounding box annotations for training. By combining the representational power of vision foundation models with box-based spatial constraints, the method achieves state-of-the-art performance in data-scarce environments without requiring expensive pixel-wise masks.
What Problem Does This Paper Address?
Deep learning models excel at medical image segmentation but typically require massive amounts of pixel-wise annotations, which are incredibly tedious and expensive to produce. While vision foundation models like the Segment Anything Model (SAM) offer impressive zero-shot segmentation capabilities, they still require manual user prompts (such as clicking points or drawing boxes) at inference time.
Existing methods try to automate this prompt generation process, but they ironically require fully annotated segmentation masks during training to learn how to prompt. This paper tackles the challenge of automating prompt generation for foundation models using only cheap, easy-to-acquire bounding box annotations during the training phase.
Methods
The authors propose a box-based multi-loss optimization framework to train an auxiliary prompt module (composed of a Harmonic DenseNet and a decoder) that sits on top of a frozen foundation model like SAM. Instead of relying on manual prompts or mask-trained prompt encoders, their module automatically generates prompt embeddings directly from the input image.
The training relies on four distinct loss components derived solely from bounding boxes:
- Pseudo-label Loss: The frozen foundation model is fed the true tight bounding box to generate a coarse initial mask, which serves as a pseudo-label to guide the auxiliary module.
- Size Constraint: A pseudo log-barrier function penalizes the network if the predicted mask size falls outside a reasonable ratio of the bounding box area.
- Emptiness Constraint: A cross-entropy loss that strictly enforces that all pixels outside the bounding box must be background.
- Consistency Regularization: To prevent overfitting in low-data regimes, geometric transformations are applied directly to the image encoder's feature space (saving compute), forcing the mask decoder to maintain transformation equivariance.
Datasets
The framework was evaluated on five public multi-modal datasets covering ultrasound (US), MRI, and CT:
- HC18: 2D ultrasound images for fetal head circumference segmentation.
- CAMUS: 2D ultrasound images for left ventricle segmentation.
- ACDC: 3D cardiac MRI volumes (sliced into 2D) for left and right ventricle segmentation.
- MSD-Spleen & MSD-Liver: 3D CT volumes from the Medical Segmentation Decathlon for spleen and liver segmentation.
Key Insights and Ideas
- Bootstrapping Foundation Models: You don't need perfect ground-truth masks to fine-tune or adapt foundation models; you can leverage the model's own zero-shot capabilities (via box prompts) to generate pseudo-labels, and then refine those predictions using simple geometric constraints.
- Constraints as Error Correctors: Bounding boxes provide strict spatial priors. By enforcing "emptiness" outside the box and bounding the total object size inside it, the optimization scheme successfully corrects the inherent fuzziness or boundary errors typical of SAM's zero-shot medical predictions.
- Feature-Level Augmentation: Performing consistency regularization on pre-computed feature embeddings rather than raw image pixels bypasses the heavy image encoder bottleneck, significantly speeding up training and reducing the number of active parameters during training from 141.8M to 45.6M.
Key Results
- In a highly constrained 20-shot learning setting, the proposed method achieved an average Dice Similarity Coefficient (DSC) of 84.90% across the datasets.
- It consistently outperformed other weakly-supervised bounding-box methods by large margins (yielding up to a 32% improvement in Dice score over some baselines).
- Remarkably, in low-data regimes, this weakly-supervised approach often matched or exceeded the performance of fully-supervised models (like standard UNet and Self-prompting SAM) that were trained on complete ground-truth masks.
- The model demonstrated strong robustness to human error; introducing simulated label noise (up to 1.5% pixel displacement of the bounding box) only caused a minor 0.5–0.7% drop in the Dice score.
Limitations and Future Work
- Model Specificity: The current implementation and evaluation focus primarily on SAM-based architectures (SAM ViT-b, SAM ViT-H, and MedSAM).
- Single-Object Focus: The method is currently tailored for single-organ/structure segmentation within a bounding box.
- Future Directions: The authors suggest extending this framework to handle multi-class and multi-organ segmentation tasks natively.
Summary updated