TL;DR
This paper investigates how to leverage keypoint estimation to fix "spilled" segmentation masks in challenging human instance segmentation tasks. By comparing Test-time Adaptation (TTA)—updating model weights on a single test image—against Training-time Generalization (TTG)—integrating keypoint features into the mask head during training—the authors find that TTG is significantly more robust and effective at handling large domain shifts.
What Problem Does This Paper Address?
Human instance segmentation is notoriously difficult in crowded or occluded scenes. Standard models like Mask R-CNN often suffer from "mask spill-over," where a person's mask incorrectly bleeds into adjacent people or objects.
Interestingly, the authors observed that even when a model's segmentation fails, its keypoint estimation (identifying joints like elbows and knees) often remains remarkably accurate. The core challenge addressed here is: How can we best use these reliable keypoints to improve unreliable segmentation masks?
The researchers explore two paradigms:
- Adaptation: Can we tweak the model "on the fly" for every new image we see?
- Generalization: Can we build a better architecture that learns to use keypoint information more effectively from the start?
Methods
The authors use Mask R-CNN as their baseline and propose two frameworks (illustrated in TTA vs TTG frameworks):
1. Test-time Adaptation (TTA)
In this approach, the model is already trained. When it sees a new, unlabeled test image:
- It estimates keypoints.
- It treats high-confidence estimates as pseudo-labels.
- It performs a few rounds of backpropagation to update the backbone weights based on these pseudo-labels.
- Finally, it generates the segmentation mask using the "adapted" weights.
2. Training-time Generalization (TTG)
This is an architectural improvement. The authors split the keypoint head into a feature extractor and a regressor. During training on the source dataset:
- Keypoint features are extracted.
- These features are concatenated with the standard backbone features.
- This combined "rich" feature vector is fed into the mask head.
- The model learns to use pose information to refine mask boundaries during its initial training phase.
The authors also devised three Keypoint Head Variants, including transformer-based decoders, to improve the quality of pose estimates and include visibility/occlusion indicators.
Datasets
- COCOPersons: A refined split of the MS-COCO dataset (~60k images) used as the "source" domain for training.
- OCHuman: A highly challenging dataset specifically designed for Occluded Human segmentation. It represents a significant domain shift, with an average MaxIOU (a measure of person-to-person overlap) of 0.67, compared to just 0.08 in COCO.
Key Insights and Ideas
- Keypoints as a Prior: The central "aha moment" is that pose estimation is more robust to occlusion than pixel-wise segmentation. Keypoints provide a structural skeleton that can "anchor" a mask.
- The TTA Double-Edge: TTA is risky. If there isn't a large domain shift, adapting to a single image can actually hurt performance by overfitting to noise. Even with a shift, TTA is highly sensitive to heuristics like learning rates and confidence thresholds.
- Occlusion Awareness: Standard keypoint heads don't explicitly say if a joint is hidden. The authors found that adding visibility indicators is crucial; otherwise, TTA might try to include an occluding object (like a bouquet of flowers) in the person's mask because it "thinks" a joint is behind it (see Occlusion spill-over).
- TTG Superiority: TTG is more "set it and forget it." Because it uses rich feature maps rather than just raw coordinate estimates, it implicitly learns about visibility and body structure, making it much more robust to architectural choices and domain shifts.
Key Results
- Domain Shift Impact: Moving from COCO to OCHuman caused a massive performance drop (over 30% in keypoint accuracy and 40% in mask accuracy), highlighting the difficulty of the task.
- Quantitative Gains: On the OCHuman validation set:
- TTA provided a modest gain of about 1.05% $AP_{mask}$ using their best transformer variant.
- TTG delivered a much larger gain of 3.77% $AP_{mask}$.
- Qualitative Improvement: As seen in Mask spill-over reduction, using keypoint information significantly reduces the "spill-over" effect where one person's mask bleeds into another's.
Limitations and Future Work
- TTA Hyper-parameters: A major limitation of TTA is the need to tune hyper-parameters (like the number of adaptation steps or learning rate) without knowing the target domain. The authors show that the "optimal" settings vary by image, making a one-size-fits-all TTA approach difficult.
- Pseudo-label Quality: TTA is strictly capped by the quality of the initial keypoint estimates. If the pose estimation is wrong, the adaptation will only make the mask worse.
- Future Directions: The authors suggest exploring dynamic hyper-parameter selection for TTA and further refining transformer-based heads to provide even richer features for the TTG framework.
Summary updated