Sparse CLIP: Co-Optimizing Interpretability and Performance in Contrastive Learning

Chuan Qin, Constantin Venhoff, Sonia Joseph, Fanyi Xiao, Stefan Scherer

TL;DR

Researchers from Meta and the University of Oxford have challenged the long-standing assumption that AI models must sacrifice performance to be interpretable. By integrating sparsity directly into the training process of CLIP models—rather than applying it after the fact—they created "Sparse CLIP," a model that maintains state-of-the-art accuracy while producing clear, multimodal features that can be used to "steer" vision-language models.

The Problem with Dense Representations

Contrastive Language-Image Pre-training (CLIP) serves as the "eyes" of modern AI, acting as the default vision backbone for multimodal large language models (MLLMs). However, CLIP’s internal representations are dense and opaque mathematical vectors that are nearly impossible for humans to decipher.

To fix this, researchers typically use Sparse Autoencoders (SAEs) to disentangle these dense vectors into interpretable "features" after the model is already trained. This post-hoc approach has two major flaws:

  1. Performance Loss: Forcing sparsity on a pre-trained model often degrades its accuracy on downstream tasks.
  2. Unimodality: Most features discovered by SAEs end up being unimodal, meaning they respond to an image or text, but rarely both. This loses the cross-modal magic that makes CLIP so useful.

Enter Sparse CLIP

The authors propose Sparse CLIP, which bakes interpretability into the model from day one. Surprisingly, they found that effective sparsity requires only two minimal modifications to the standard CLIP training recipe:

  1. Non-negative Constraints: Adding a ReLU activation function after the final projection layer ensures that feature activations are either zero or positive, preventing the "cancellation" effects that make dense representations messy.
  2. Dimension Expansion: Significantly increasing the dimensionality of the final projection layer (up to 72x) provides enough "room" for the model to spread out concepts into distinct, sparse features.
Comparison of standard CLIP, Sparse CLIP, and SAE architectures

Theoretically, this approach aligns CLIP training with Non-negative Matrix Factorization (NMF). The researchers also discovered that the "logit scale cap" (a temperature parameter used in contrastive learning) acts as a natural dial for controlling the level of sparsity in the model.

Key Insights and Results

Sparse CLIP proves that the interpretability-performance trade-off is largely a myth. Sparse CLIP didn't just match the dense baseline; in many cases, it outperformed it. This suggests that sparsity might actually be a superior inductive bias for contrastive learning.

Impact of ReLU and dimensionality on accuracy and sparsity
  • Superior Accuracy: The ViT-L/14 Sparse model (with only 0.66% of features active at once) achieved a 75.6% average on zero-shot classification benchmarks, surpassing the dense baseline's 75.1%. As shown in the charts above, adding a ReLU activation allows the model to scale in dimensions, increasing accuracy while maintaining high sparsity (low L0).
  • Native Multimodality: Because sparsity is enforced during contrastive training, the resulting features are truly multimodal. A single feature for "dog" activates for both a photo of a golden retriever and the word "puppy."
  • Higher Clarity: Using a metric called "Clarity" (which measures how semantically consistent the images activating a feature are), Sparse CLIP scored 0.559, significantly higher than post-hoc SAE methods (approx. 0.52).
  • Interpretable Steering: Because the features are so clean, they can be manipulated to control a Vision-Language Model (VLM). By boosting the "cat" feature and suppressing the "dog" feature in the vision encoder, researchers could make a VLM describe a picture of a dog as if it were a cat.

Datasets and Evaluation

The models were trained on the MetaCLIP dataset, using a 15M sample subset for initial experiments and the full 2.2 billion image-text pairs for the final ViT-L/14 model. Performance was benchmarked on ImageNet-1k and several fine-grained classification sets. For downstream tasks, they used COCO for retrieval and trained a VLM using SA-1B-1M and a 2.5M image-QA dataset, evaluating it on benchmarks like MMMU, AI2D, and TextVQA.

Limitations and Future Work

While highly effective, Sparse CLIP does introduce some overhead. Expanding the projection layer adds parameters; for a ViT-L/14, the 72x expansion adds about 14% more parameters to the vision tower. Training with massive dimension expansion is also memory-intensive, hitting the limit on 80GB GPUs. Scaling to even larger dictionaries will require more efficient training kernels. Finally, while this native sparsity works beautifully for CLIP, future research will need to determine if it can be applied as successfully to other architectures like LLMs or diffusion models.

Summary updated

BibTeX
@inproceedings{qin2026sparse,
  author = {Chuan Qin and Constantin Venhoff and Sonia Joseph and Fanyi Xiao and Stefan Scherer},
  title = {{Sparse CLIP: Co-Optimizing Interpretability and Performance in Contrastive Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=DjefrO8TJr},
}
Figure