Balanced Prompt Adaptation against Entropy-Induced Collapse for Test-Time Binary Segmentation
Zhengshan Wang, Joshua Charles Webster-Ford, Yifei Tian, Xinxin Wang, Long Chen, Weiping Ding
Abstract
Entropy minimization is a standard objective for test-time adaptation (TTA), but it can fail in imbalanced binary segmentation. Unlike image classification, dense segmentation aggregates thousands of pixel predictions, allowing the larger predicted class to dominate the update, pull minority predictions toward itself, and produce a degenerate mask as predictions saturate and their entropy gradients vanish. We theoretically establish this collapse in a shared-shift model. This analysis motivates Balanced-Anchor Prompt Adaptation (BAPA), which combines two complementary modules. The Class-Balanced Anchors (CBA) module selects high-confidence anchors separately from each predicted class and gives foreground and background equal total loss weight, preventing the larger region from dominating the update. Dynamic Prompt Adaptation (DPA) refreshes these anchors after each prediction update and optimizes only text-side prompt residuals while keeping the vision-language encoders frozen. This prompt-only update refines the foreground-background decision boundary without altering the pretrained dense visual representation. Across experiments from four domains, BAPA achieves the highest mean Dice among the evaluated methods. Factorized ablations further validate the complementary roles of CBA and DPA, supporting balanced prompt adaptation as an effective alternative to entropy minimization for test-time binary segmentation.
Create a lesson
Metadata
- Categories
- cs.CV, cs.AI
Related papers
When Online Adaptation Hurts: Parameter-Frozen Test-Time Ensembling for Continual Medical Image Segmentation
Shared title terminologycs.CVRuijie Huang
HSTTA: Hierarchical Selective Test-Time Adaptation for Label-Free Cross-Subject EEG-to-Image Retrieval
Shared title terminologycs.CVHongzhou Chen, Yuhao Wei, Lianghua He et al.
Info3R: Information-Adaptive Test-Time Training for 3D Reconstruction
Shared title terminologycs.CVSunghyun Baek, Hanna Bae, Minchan Kwon et al.
Should This Case Be Adapted? Prediction Fragmentation Controls Test-Time Adaptation
Shared title terminologycs.CVLili Wang, Jing Li, Xiaowen Sun et al.
VoxelTTO: Voxel-Aligned Feed-Forward 3D Gaussian Splatting with Test-Time Optimization
Shared title terminologycs.CVYibin Zhao, Yihan Pan, Yangwen Li et al.
CLC-YOLO: A Compact Channel-Gated Prototype Network for Real-Time Leakage-Aware Breast Ultrasound Lesion Segmentation
Shared title terminologycs.CVM. Fazri Nizar, Muhammad Naufal Rachmatullah, Julian Supardi