Abstract
We propose a novel weakly supervised learning segmentation based on several global constraints derived from box annotations. Particularly, we leverage a classical tightness prior to a deep learning setting via imposing a set of constraints on the network outputs. Such a powerful topological prior prevents solutions from excessive shrinking by enforcing any horizontal or vertical line within the bounding box to contain, at least, one pixel of the foreground region. Furthermore, we integrate our deep tightness prior with a global background emptiness constraint, guiding training with information outside the bounding box. We demonstrate experimentally that such a global constraint is much more powerful than standard cross-entropy for the background class. Our optimization problem is challenging as it takes the form of a large set of inequality constraints on the outputs of deep networks. We solve it with a sequence of unconstrained losses based on a recent powerful extension of the log-barrier method, which is well-known in the context of interior-point methods. This accommodates standard stochastic gradient descent (SGD) for training deep networks, while avoiding computationally expensive and unstable Lagrangian dual steps and projections. Extensive experiments over two different public data sets and applications (prostate and brain lesions) demonstrate that the synergy between our global tightness and emptiness priors yield very competitive performances, approaching full supervision and outperforming significantly DeepCut. Furthermore, our approach removes the need for computationally expensive proposal generation. Our code is publicly available.
Introduction
In medical imaging, training deep learning models for semantic segmentation typically requires massive datasets with pixel-perfect annotations. Because drawing exact boundaries around organs or lesions is prohibitively time-consuming for medical experts, researchers often turn to weak supervision, using simpler annotations like bounding boxes.
The standard approach for bounding-box supervision (like the popular DeepCut method) relies on generating "pseudo-masks" or proposals. The model uses an algorithm like DenseCRF to guess the pixel-level mask inside the box, trains on that guess, and iteratively refines it. However, this iterative process is computationally heavy, not end-to-end, and highly unstable. Early mistakes—like under-segmenting a lesion—act as a negative feedback loop, causing the model to reinforce its own errors until it collapses and predicts nothing at all. This paper seeks to eliminate these iterative proposals entirely by directly constraining the network's predictions.
Methodology
Instead of generating fake pixel-level labels, the proposed method formulates the problem using global constraints applied directly to the network's softmax outputs. This approach avoids the confirmation bias inherent in pseudo-labeling by enforcing the mathematical properties of a bounding box.
Global Constraints
- The Emptiness Constraint (Outside the Box): It is known that anything outside the bounding box is background. Instead of using standard cross-entropy for these pixels, the authors apply a global constraint forcing the sum of all predicted foreground probabilities outside the box to be zero or less.
- The Tightness Prior (Inside the Box): A bounding box tightly hugs the target object. Therefore, any horizontal or vertical line drawn straight through the box should intersect the object at least once. The authors translate this into an inequality constraint: any segment of width $w$ spanning the box must contain a sum of foreground probabilities $\ge w$.
- Global Size Constraint: The total predicted foreground size is bounded by the total volume of the box (upper bound) and a small fraction of it (lower bound).
Optimization via Log-Barriers
Optimizing a deep neural network with a massive set of competing inequality constraints is notoriously difficult. Standard penalty methods often oscillate. To solve this, the authors adapt the log-barrier method from classical interior-point convex optimization. This creates a smooth, unconstrained loss function that acts as a "barrier," aggressively penalizing the network only when it gets close to violating a constraint. This allows the model to be trained end-to-end using standard Stochastic Gradient Descent (SGD).
Experimental Evaluation
The authors evaluated their method on two public medical imaging datasets:
- PROMISE12: Prostate segmentation from transversal T2-weighted MR images.
- ATLAS (Anatomical Tracings of Lesions After Stroke): Brain stroke lesion segmentation from T1-weighted MR images. This is a particularly challenging dataset due to highly heterogeneous lesion shapes and a massive class imbalance (tiny lesions in large brain volumes).
Key Results
- Near-Full Supervision Performance: On the highly challenging ATLAS dataset, the proposed method achieved a Dice Similarity Coefficient (DSC) of 0.474, significantly outperforming DeepCut (0.375) and performing remarkably close to a fully supervised model trained on exact pixel labels (0.489).
- Training Stability: While DeepCut's performance actively degraded over time (collapsing to empty segmentations on ATLAS after 25 epochs), the proposed method's validation metrics remained highly stable throughout training.
- Efficiency: By removing the need to iteratively update proposals using DenseCRF, training time plummeted. Total training time on ATLAS was 4.5 hours for the proposed method, compared to 11.9 hours for DeepCut.
- Robustness to Sloppy Annotations: When the authors intentionally added a 10-pixel margin of error to the bounding boxes (making them "loose"), their method's performance only dropped by ~5% (DSC 0.778), whereas DeepCut's performance plummeted by ~14% (DSC 0.684).
Conclusion
By constraining the mathematical output of the network rather than forcing it to learn from flawed, iteratively generated fake labels, the training process becomes vastly more stable. The use of global emptiness constraints for the background proved much more powerful than standard masked cross-entropy, particularly in cases of extreme class imbalance. Borrowing log-barrier extensions from classical optimization allows deep networks to juggle thousands of inequality constraints smoothly within standard SGD, avoiding the computationally expensive primal-dual steps usually required for such formulations.
Summary updated