Cross-Prompt Inference Mitigates Rare-Class Suppression in Imbalanced VLM Finetuning
Emanuel Ben Baruch, Sivan Biham, Alon Shoshan, Yochai Zvik, Avi Ben-Cohen
Abstract
When a vision-language model is finetuned on class-imbalanced data, rare-class recall can fall well below the model's own zero-shot performance. In this regime, we uncover a surprising matched-prompt penalty whereby the standard choice of reusing the descriptive finetuning prompt at inference can yield lower rare-class recall than using a different descriptive prompt. We call this inference-time strategy cross-prompt inference. We evaluate diverse VLMs across six datasets and find that cross-prompt inference consistently recovers rare-class recall, with varying trade-offs in frequent-class recall. The effect reflects a train-eval prompt interaction rather than prompt quality alone, and does not arise with non-descriptive prompt changes. It is strongest when imbalance and visual confusability produce substantial rare-class suppression, and is weak or absent when such suppression does not occur. Using Tuning Contribution (TuCo), which decomposes a model's computation into pretrained and finetuning parts, we find that cross-prompt inference reduces reliance on finetuning-induced computation and shifts the model toward its pretrained component. Reducing that finetuning contribution also substantially reduces the cross-prompt advantage. These results show that rare-class knowledge suppressed by imbalanced finetuning can remain accessible under a different inference prompt.
Create a lesson
Related papers
Synthetic Image Oversampling for Rare-Class Representation Learning in Deep Facial Phenotyping
Shared title terminologycs.CVMiles Liao, Zhanliang Wang, Hongzhuo Chen et al.
Detector Operating Behavior Inference via Data-Space Sampling
Shared title terminologycs.CVStefan Becker, Simon Weiss, Wolfgang Hübner
Beyond Logits: Coherent Hallucination Mitigation via Attention Contrastive Decoding
Shared title terminologycs.CVYujia Chen, Rui Sun, Huayu Mai et al.
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.
FoMNet: Adaptive Kernels Meet Contextual Matching for Cross-Modal Homography Estimation
Shared title terminologycs.CVZhuoran Yang, Zhenyu Yi, Runmin Zhang et al.
Rethinking Unsupervised Cross-Modal Homography Estimation:Spatially Aware Representations and Geometric Consistency Learning
Shared title terminologycs.CVZhuoran Yang, Junchen Yu, Runmin Zhang et al.