Retaining Knowledge and Enhancing Long-Text Representations in CLIP through Dual-Teacher Distillation

Yuheng Feng, Changsong Wen, Zelin Peng, Li jiaye, Siyu Zhu
2/10/2026

No confident code implementation found for this paper.

Abstract

Contrastive language–image pretraining models such as CLIP have demonstrated remarkable performance in various text-image alignment tasks. However, the inherent 77-token input limitation and reliance on predominantly short-text training data restrict its ability to handle long-text tasks effectively. To overcome these constraints, we propose LongD-CLIP, a dual-teacher distillation framework designed to enhance long-text representation while mitigating knowledge forgetting. In our approach, a teacher model, fine-tuned on long-text data, distills rich representation knowledge into a student model, while the original CLIP serves as a secondary teacher to help the student retain its foundational knowledge. Extensive experiments reveal that LongD-CLIP significantly outperforms existing models across long-text retrieval, short-text retrieval, and zero-shot image classification tasks. For instance, in the image-to-text retrieval task on the ShareGPT4V test set, LongD-CLIP exceeds Long-CLIP’s performance by 2.5%, achieving an accuracy of 98.3%. Similarly, on the Urban1k dataset, it records a 9.2% improvement, reaching 91.9%, thereby underscoring its robust generalization capabilities. Additionally, the text encoder of LongD-CLIP exhibits reduced latent space drift and improved compatibility with existing generative models, effectively overcoming the 77token input constraint.

DOISemantic Scholar

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{feng2026retaining,
  title  = {Retaining Knowledge and Enhancing Long-Text Representations in CLIP through Dual-Teacher Distillation},
  author = {Yuheng Feng and Changsong Wen and Zelin Peng and Li jiaye and Siyu Zhu},
  year   = {2026},
  doi    = {10.1109/CVPR52734.2025.02318},
  url    = {https://doi.org/10.1109/CVPR52734.2025.02318},
  journal = {CVPR 2025 2025}
}

Discussion