When to Unpair: Regulating Pairing Dependence in Medical Visual In-Context Learning
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.
Create a lesson
Metadata
- Comments
- 24 pages, 12 figures
Related papers
Agentic Reinforcement Learning with Immediate and Prospective Credit Assignment for Medical Visual Reasoning
Shared title terminologycs.CVYuqi Cheng, Rui Meng, Yijin Li et al.
VINCIE-NExT: Unlocking Video Editing from Images via In-Context Modeling
Shared title terminologycs.CVLeigang Qu, Feng Cheng, Ziyan Yang et al.
Beyond Visual Enhancement: Adaptive Multi-Context Steering to Mitigate LVLM Hallucinations
Shared title terminologycs.CVShuran Ma, JiaLe Li, Yuxin Dong et al.
Point-Focused Attention Meets Context-Scan State Space: Robust Biological Visual Perception for Point Cloud Representation
Shared title terminologycs.CVKanglin Qu, Pan Gao, Qun Dai et al.
FloorSAV: Elucidating Spatial Audio-Visual Context with 2D Floormap for AV-LLMs
Shared title terminologycs.CVKyeong-Rae Kim, Sungnyun Kim, Tae-Hyun Oh
TerraAgent: Demonstration-Grounded Multi-Agent Reasoning for Long-Context Remote Sensing Visual Question Answering
Shared title terminologycs.CVJingwen Huang, Yiming Fang, Hanxiao Wu et al.