English

DiffCLIP: Differential Attention Meets CLIP

Computer Vision and Pattern Recognition 2025-03-11 v1 Artificial Intelligence Machine Learning

Abstract

We propose DiffCLIP, a novel vision-language model that extends the differential attention mechanism to CLIP architectures. Differential attention was originally developed for large language models to amplify relevant context while canceling out noisy information. In this work, we integrate this mechanism into CLIP's dual encoder (image and text) framework. With minimal additional parameters, DiffCLIP achieves superior performance on image-text understanding tasks. Across zero-shot classification, retrieval, and robustness benchmarks, DiffCLIP consistently outperforms baseline CLIP models. Notably, these gains come with negligible computational overhead, demonstrating that differential attention can significantly enhance multi-modal representations without sacrificing efficiency. Code can be found at https://github.com/hammoudhasan/DiffCLIP.

Keywords

Cite

@article{arxiv.2503.06626,
  title  = {DiffCLIP: Differential Attention Meets CLIP},
  author = {Hasan Abed Al Kader Hammoud and Bernard Ghanem},
  journal= {arXiv preprint arXiv:2503.06626},
  year   = {2025}
}

Comments

Under review

R2 v1 2026-06-28T22:12:54.212Z