When to Unpair: Regulating Pairing Dependence in Medical Visual In-Context Learning
Cheng Wan, Chenjun Li, Qingyu Zhao
Key points
From the paper's conclusion- We diagnose dependence on individual pairings with a test-time derangement that reassigns every support label to another support image while preserving the query, support images, and label multiset.
Abstract
Visual in-context learning (ICL), well suited to label-scarce medical imaging, uses support image-label pairs to demonstrate input-output mappings, while the labels collectively indicate the requested task. We diagnose dependence on individual pairings with a test-time derangement that reassigns every support label to another support image while preserving the query, support images, and label multiset. The resulting pairing gap, defined as shuffled-minus-matched performance, shows that all four released models depend on the pairing, to widely varying degrees. Further analysis of a paired-trained model reveals support-associated spurious regions and lesion-size biases even with real, unaltered supports, alongside sensitivity to mis-registered support labels. To regulate this dependence, we introduce a late unpairing curriculum (LUC), which starts with matched training and then applies random unpairing, replacing each support label with that of another support in the same episode. LUC nearly closes the pairing gap on two backbones while maintaining or improving matched-support performance across all evaluated task types, with gains extending to held-out tasks and cross-dataset episodes. It also mitigates these failure modes. On BraTS whole-tumor segmentation, matched-support DSC rises from 0.733 to 0.857 while the gap shrinks from -0.184 to -0.008. In a released model, brief fine-tuning with random unpairing reduces the gap. A reversed curriculum that places the same number of unpairing epochs at the start of training leaves a large gap. This shows that pairing dependence is shaped by the order of training and not only by the amount of unpaired training.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Dual-Dynamic In-Context Learning for Medical Image Segmentation.IEEE transactions on medical imaging · 2026
- ViCoR: Estimating Visual Necessity via Counterfactual Residuals for Multimodal Medical Data SelectionarXiv · 2026
- Meta-CLIP: Metadata-Conditioned Contrastive Learning for Zero-Shot Disease InferencearXiv · 2026
- Beyond Classification: Structured Supervision Aligns Visual Evidence with Medical SemanticsarXiv · 2026
- Mitigating Spurious Invariance in Contrastive Learning: A Probabilistic Self-Supervised Learning Framework for Medical Image AnalysisarXiv · 2026
- MedICL: Modality-Anatomy-Aware Visual In-Context Learning for Medical Visual Question AnsweringarXiv · 2026