# Rethinking Contrastive Loss in CLIP Post-training: A Complementary Framework with Frozen Text Encoder

*Zidan Wang, Yaqian Li, xiaokai zhang, Kun He, Kaiwen Long, Hanpeng Liu*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/148979) · [Open on the map](../papers.html#p148979)

Category: [Vision-Language Models](../pcat/0.md) › [Vision-Language Alignment](../pgroup/55.md) · Type: new method · Keywords: post-training CLIP, contrastive loss temperature, multi-loss training, vision encoder adaptation, distillation, zero-shot classification

Areas: [Multimodal](../areas/multimodal.md) › Multimodal Alignment › Vision-Language Adaptation; [Continual Learning & Adaptation](../areas/continual-adaptation.md) › Long-Tailed Incremental Recognition › Test-Time Adaptation

## Summary
ComCLIP is a post-training framework that freezes CLIP’s text encoder and uses three complementary losses-including a properly-tempered contrastive loss-to improve vision encoder performance on downstream VLMs.

## Explained to a 5-year-old
A computer program called CLIP knows how pictures relate to words. When people try to improve it later, they sometimes lose the knowledge it already has. The researchers found that the problem was because the numbers they used to compare pictures and words were too big. They created a new method that uses three simple ideas: a better picture-word match, a way to keep the old pictures similar, and learning from another picture-learning model. This helps the picture part get smarter quickly, making the program better at guessing and finding things without needing a lot of extra work.

## Explained to a 5-year-old, longer
A computer program called CLIP knows how pictures relate to words. When people try to improve it later, they sometimes lose the knowledge it already has. The researchers looked at why this happens and discovered that the numbers they used to compare pictures and words were too big. They realized that by making those numbers smaller, the old way of comparing pictures and words works much better. They then built a new training plan that uses three simple tricks. First, they keep the picture-word comparison but adjust the numbers to be just right. Second, they add a rule that makes the new pictures stay close to the old ones. Third, they let the model learn from another model that already knows a lot about pictures. This new plan lets the picture part get smarter quickly, using only a tiny amount of data. As a result, the program becomes better at guessing what a picture means and at finding related pictures and words. It also works well when people use it with other big language models, improving their performance without any extra work. The whole idea is simple: keep the good parts, fix the numbers, and learn from friends.

## For a technical reader
The paper observes that recent post-training of CLIP suffers from forgetting because the contrastive temperature is too large. By reducing the temperature, a standard contrastive loss becomes highly effective. The authors therefore propose a multi-loss training scheme that freezes the text encoder, adds a tempered contrastive loss for image-text alignment, an MSE anchor loss to preserve the original feature space, and a distillation loss from DINOv2 for fine-grained visual knowledge. Experiments on ViT-B/16 and ViT-L/14 show consistent gains on zero-shot classification, retrieval, linear probing, and MMVP, with up to +7.41 points on MMVP, and the frozen encoder can be dropped into LLaVA-7B, boosting performance across eight VLM benchmarks.

## Problem
Post-training of CLIP often suffers from catastrophic forgetting when using small batches, and recent methods abandon contrastive loss in favor of distillation, limiting performance. The problem is to refine CLIP’s vision encoder efficiently without losing pretrained knowledge or requiring full re-training.

## Method
The approach freezes the text encoder of CLIP, trains the vision encoder with three losses in the shared contrastive space: a contrastive loss with a small temperature for image-text alignment, an MSE anchoring loss to preserve the original CLIP feature manifold, and a relational distillation loss from DINOv2 to inject fine-grained visual knowledge.

## Results
The approach achieves up to +7.41 points on MMVP and improves average performance across eight VLM benchmarks when used as a drop-in vision encoder for LLaVA-7B, outperforming prior post-training methods on ViT-B/16 and ViT-L/14.

## Contributions
It identifies that contrastive loss failure is due to temperature magnitude, proposes a complementary loss combination that retains contrastive alignment while preventing forgetting, and demonstrates strong zero-shot and downstream performance with minimal training data.

## Practical relevance
It offers a plug-and-play vision encoder that can be directly substituted into existing VLMs, delivering performance gains with only a single epoch on small data.

## Research questions this paper is counted under

- [How can we adapt pretrained vision-language models to new tasks while preserving their existing knowledge?](../q/669.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/148979)
