DiffCLIP: Differential Attention Meets CLIP

Hasan Abed Al Kader Hammoud, Bernard Ghanem
3/9/2025
cs.CVcs.AIcs.LG

Official code: hammoudhasan/DiffCLIP (57 stars, last commit 2025-03-12).

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.

View on arXivView PDF

Code Implementations(1)

Official Implementation of DiffCLIP: Differential Attention Meets CLIP

573PythonMar 7, 20251 years ago

Similar Papers

Cite this paper

@article{hammoud2025diffclip,
  title  = {DiffCLIP: Differential Attention Meets CLIP},
  author = {Hasan Abed Al Kader Hammoud and Bernard Ghanem},
  year   = {2025},
  eprint = {2503.06626},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.06626v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.06626.svg)](https://codeofpaper.com/paper/2503.06626)

Discussion