Explaining CLIP Zero-shot Predictions Through Concepts

Onat Ozdemir, Anders Christensen, Stephan Alaniz, Zeynep Akata, Emre Akbas

TL;DR

EZPC (Explaining CLIP Zero-shot Predictions Through Concepts) bridges the gap between the powerful zero-shot capabilities of vision-language models like CLIP and the interpretability of Concept Bottleneck Models. By learning a lightweight linear projection that maps CLIP's entangled embeddings into a human-understandable concept space, EZPC delivers faithful, concept-level explanations for zero-shot predictions with negligible computational overhead and minimal loss in accuracy.

What Problem Does This Paper Address?

Vision-language models (VLMs) like CLIP have revolutionized computer vision by enabling zero-shot classification—the ability to recognize objects and scenes from natural language descriptions without task-specific training. However, CLIP operates as a black box; its high-dimensional embeddings are deeply entangled, making it difficult to diagnose why a model made a specific prediction.

Conversely, Concept Bottleneck Models (CBMs) offer a highly interpretable alternative by breaking down decisions into intermediate, human-defined concepts (e.g., predicting "has wings" and "is blue" before concluding "blue jay"). Unfortunately, traditional CBMs suffer from two major flaws: they require expensive, dense concept annotations for training, and they operate under a "closed-world" assumption, failing to generalize to unseen classes or domains.

The authors introduce EZPC to solve this dilemma, providing the best of both worlds: the open-vocabulary flexibility of CLIP combined with the transparent, concept-driven reasoning of CBMs, all without requiring additional manual supervision.

Methods

EZPC introduces a unified, trainable linear decomposition layer that projects CLIP’s joint image-text embedding space into a predefined, human-interpretable concept space.

Figure 1. Overview of EZPC. CLIP image and text embeddings are projected into a shared concept space using a learnable matrix A. The projected representations cx and ck provide (i) concept-based explanations via a Hadamard product and (ii) class logits via a dot-product in concept space. Training jointly optimizes a matching loss and a reconstruction loss to preserve CLIP’s predictive behavior.

The core of the method is a learnable projection matrix $A$ that maps $d$-dimensional CLIP embeddings to an $m$-dimensional concept space. To train this matrix without manual annotations, the authors optimize two complementary objectives:

  1. Matching Loss ($L_{match}$): The projection matrix $A$ is initialized using the CLIP text embeddings of a predefined concept vocabulary (e.g., "has feathers", "made of metal"). The matching loss acts as an anchor, forcing the columns of $A$ to remain close to these known semantic directions throughout training, ensuring the space remains human-interpretable.
  2. Reconstruction Loss ($L_{recon}$): To ensure that the projection doesn't destroy CLIP's predictive power, this loss minimizes the Kullback-Leibler (KL) divergence between the original CLIP similarity distribution and the new concept-space similarity distribution.

At inference time, zero-shot classification is performed directly within the concept space via a simple dot product. Crucially, fine-grained explanations are generated using a Hadamard (element-wise) product between the image and class concept activations, yielding exact "concept contribution scores" that faithfully reflect the model's internal decision process.

Datasets

The authors evaluated EZPC across five diverse benchmark datasets to test its robustness across object-centric, fine-grained, and scene-level domains:

  • CIFAR-100 (Object-centric)
  • ImageNet-100 & ImageNet-1k (Large-scale object diversity)
  • CUB-200-2011 (Fine-grained bird species)
  • Places365 (Scene-level understanding)

The concept vocabularies for these datasets were adopted from LF-CBM, which originally used GPT-3 to generate descriptive attributes based on class names. To improve cross-domain transferability, smaller concept sets were merged with ImageNet-1k’s large pool, resulting in concept spaces ranging from 370 to over 4,700 dimensions.

Key Insights and Ideas

  • The Interpretability-Accuracy Trade-off ($\lambda$): The parameter $\lambda$ balances the matching loss and reconstruction loss. The authors discovered a fascinating qualitative trade-off: while higher $\lambda$ values yield slightly better quantitative accuracy by strictly preserving CLIP's original structure, lower values ($\lambda=1$) force the model to stick closer to the anchor concepts, producing far more semantically meaningful and human-aligned explanations.
Figure 2. Qualitative comparison of image-level explanations for different λ values. For λ = 1, EZPC produces semantically consistent concept activations. For larger values (e.g., λ = 100), unrelated concepts appear among the top activations.
  • Zero-Shot Concept Generalization: Because the projection matrix $A$ aligns CLIP's latent space with global language concepts, it generalizes naturally to entirely unseen classes. The model doesn't just learn a mapping for specific training labels; it learns a generalized text-to-concept alignment.
  • Inference Efficiency: Unlike recent instance-specific explanation methods that require costly optimization or retrieval steps at test time, EZPC treats explanation as a single forward-pass matrix multiplication.

Key Results

  • Maintained Accuracy: Across CIFAR-100, ImageNet-100, and CUB, EZPC stays within roughly 1% of the original CLIP's generalized zero-shot performance, proving that interpretability does not have to come at the cost of performance.
  • Baseline Outperformance: EZPC significantly outperforms existing zero-shot concept models like Z-CBM and SpLiCE, frequently beating them by 10–15% in harmonic mean accuracy.
  • Massive Speedups: In inference time benchmarks on an NVIDIA H100 GPU, EZPC adds a negligible 0.13 ms of overhead per image compared to standard CLIP. In contrast, optimization-based baselines like Z-CBM and SpLiCE are 94× and 58× slower, respectively, making EZPC uniquely suited for real-time deployment.
  • Cross-Dataset Transfer: When trained on ImageNet-100 and evaluated directly on CIFAR-100 or CUB without any fine-tuning, EZPC retained performance close to CLIP, confirming that the learned concept projection captures truly transferable visual semantics.

Limitations and Future Work

While EZPC represents a major step forward, the authors note a few key limitations:

  • Linearity Constraints: The model relies entirely on a linear projection. Highly non-linear semantic relationships within CLIP's embedding space might not be fully captured.
  • Concept Vocabulary Bias: The quality and fidelity of the explanations remain tightly bound to the diversity and accuracy of the initial concept set generated by the LLM.
  • Task Scope: The current framework is strictly optimized for classification tasks; extending this concept-decomposition approach to broader multimodal reasoning or text generation remains an open challenge for future research.

Summary updated

BibTeX
@inproceedings{ozdemir2026explaining,
  author = {Onat Ozdemir and Anders Christensen and Stephan Alaniz and Zeynep Akata and Emre Akbas},
  title = {{Explaining CLIP Zero-shot Predictions Through Concepts}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=M8VT1sTFTz},
}
Figure