A smaller contrastive temperature helps CLIP retain accuracy
In plain words
The paper introduces ComCLIP, a recipe for updating a pretrained CLIP image encoder while leaving its text encoder unchanged. It combines image-text matching with a reminder to stay near the original image features and guidance about which images look alike.
In one test, the usual contrastive temperature lowered CLIP’s accuracy when classifying images from text descriptions. A smaller temperature improved the average across 12 datasets, suggesting this kind of post-training can work under that tested setup.
The research
Can a pretrained CLIP image encoder be refined with contrastive learning without losing the capabilities it already has? Prior work described small-batch post-training as a cause of forgetting and some methods replaced that training signal with distillation. The paper tests whether the contrastive temperature helps explain that problem.
ComCLIP combines temperature-calibrated image-text matching, feature anchoring and image-relation guidance to refine CLIP’s vision encoder.
On ViT-B/16, the temperature test answers whether contrastive post-training can preserve CLIP’s zero-shot ability: at 0.07, accuracy fell from 61.82% to 57.90%; at 0.01, it rose to 62.90%. Zero-shot accuracy measures classification from text descriptions without a task-specific classifier, averaged over 12 datasets.
ComCLIP builds on this setting with feature anchoring and image-relation guidance. Across three seeds, ComCLIP and CLIP-Refine had similar zero-shot accuracy, while ComCLIP scored higher on linear probing, which tests a simple classifier using frozen image features, and CLIP-Refine led on all four image-text retrieval measures.
This comparison supports a transferability advantage for ComCLIP alongside a retrieval trade-off. The best-setting rows used different post-training datasets for the two methods; separate dataset-matched results also favored ComCLIP on linear probing.
The strongest comparison used different post-training datasets for the two methods, and the downstream compatibility test covered one LLaVA setup with its language model and projector frozen. The findings do not establish that ComCLIP improves downstream accuracy or applies to every CLIP-like model.
Analysis
Deep
- Original paper authors
- Zidan Wang, Yaqian Li, Xiaokai Zhang, Kaiwen Long, Kun He
- Submitted to arXiv
- License
- CC BY 4.0