From Weights to Concepts: Data-Free Interpretability of CLIP via Singular Vector Decomposition

Francesco Gentile, Nicola Dall'Asen, Francesco Tonini, Massimiliano Mancini, Lorenzo Vaquero, Elisa Ricci

TL;DR

SITH (Semantic Inspection of Transformer Heads) is a data-free, training-free interpretability framework that uncovers the internal concepts hidden directly within CLIP's attention head weights via Singular Vector Decomposition. By mapping these weights to human-readable text using a novel sparse decomposition algorithm (COMP), it enables fine-grained model editing—such as removing biases or unsafe content—without any retraining or data.

What Problem Does This Paper Address?

Mechanistic interpretability aims to open the "black box" of neural networks to understand their internal computational pathways. For vision-language models (VLMs) like CLIP, existing interpretability methods usually look at activations—how the model responds to specific datasets. However, this makes them data-dependent, meaning they inherit dataset biases and typically only provide coarse, head-level explanations (e.g., "this entire attention head looks at colors").

SITH addresses this challenge by looking directly at the weights (weight-based interpretability). This makes the method completely data-free and capable of fine-grained, sub-head (vector-level) explanations, avoiding the biases introduced by evaluating models on specific image datasets.

Methods

SITH isolates the Value-Output ($W_{VO}$) matrix of CLIP's Vision Transformer (ViT) attention heads, which determines what information is written into the model's residual stream. It applies Singular Value Decomposition (SVD) to break this matrix down into singular vectors that represent the dominant "writing directions" of the head.

To translate these abstract mathematical vectors into human concepts, the authors introduce Coherent Orthogonal Matching Pursuit (COMP). While standard sparse coding algorithms only optimize for reconstruction accuracy (which can lead to a disjointed, confusing mix of concepts), COMP introduces a novel semantic coherence regularizer. This ensures that the selected text concepts from a dictionary are not only mathematically accurate but also conceptually related to one another.

Overview of SITH and COMP framework

Datasets

The authors evaluated SITH using the following resources:

  • Base Model: OpenCLIP ViT-L/14 pretrained on the LAION-2B dataset.
  • Concept Dictionary: ConceptNet 5.5.
  • Evaluation & Grounding: ImageNet, Flowers 102, Oxford Pets, Stanford Cars, and CC12M (Conceptual 12M) for image-matching verification.
  • Model Editing Benchmarks: Waterbirds (to test the suppression of spurious background correlations) and ViSU (to evaluate safe/NSFW image-text retrieval).
  • Model Adaptation Benchmarks: CUB-200, Flowers 102, and Oxford Pets to analyze weight changes after fine-tuning and LoRA.

Key Insights and Ideas

  • Weights Speak for Themselves: You do not need images to understand what a Vision Transformer has learned; its internal weight space directly aligns with textual concepts when projected into CLIP's multimodal space.
  • Intra-Head Specialization: Attention heads are not monolithic. A single head contains distinct singular vectors specializing in completely different fine-grained concepts (e.g., one vector focusing on "ocean beach" while another in the same head handles "surf culture").
  • Fine-Tuning is Just Reweighting: When CLIP is fine-tuned or adapted via LoRA, it doesn't learn entirely new feature spaces. Instead, it subtly shifts and reweights a remarkably stable pre-existing semantic basis.

Key Results

  • Fidelity vs. Interpretability: COMP successfully balances reconstruction fidelity and semantic coherence, significantly outperforming standard top-$k$ selection and standard Non-Negative Orthogonal Matching Pursuit (NNOMP). Replacing original weights with SITH's sparse concept reconstructions results in negligible accuracy drops across major benchmarks.
Figure 4. Zero-shot classification accuracy when replacing the original singular vectors of layer l = 23 with their reconstructions using different numbers of concepts and across different datasets [15, 35, 45, 54]. We also report the accuracy of the original OpenCLIP model, and its accuracy when all heads of the layer are zeroed-out (i.e., Zero-ablation).
  • Spurious Correlation Suppression: On the Waterbirds dataset, surgically zeroing out singular values associated with background concepts boosted worst-group accuracy from 47.9% to 70.6%, outperforming previous methods that ablated entire attention heads.
  • Removing NSFW Content: Suppressing unsafe singular vectors successfully mitigated CLIP's sensitivity to explicit content on the ViSU dataset, even outperforming Safe-CLIP (a model explicitly trained with text/image safety data) on safe queries.
  • Data-Free Performance Boosting: By amplifying task-relevant concepts and suppressing irrelevant ones, SITH achieved zero-shot classification accuracy gains of up to 1.0 percentage point without any training data or gradient updates.

Limitations and Future Work

  • Incomplete Reconstruction: SITH cannot perfectly reconstruct every single vector because some weights encode non-semantic "noise" or task-irrelevant information that cannot be mapped to clean text concepts.
  • Scope of Analysis: The current framework is restricted to the Value-Output matrices of attention heads. The authors note that future work should extend this weight-space analysis to Feed-Forward Network (FFN) layers and Query-Key matrices to fully map out how attention patterns arise from semantic features.

Summary updated

BibTeX
@inproceedings{gentile2026from,
  author = {Francesco Gentile and Nicola Dall'Asen and Francesco Tonini and Massimiliano Mancini and Lorenzo Vaquero and Elisa Ricci},
  title = {{From Weights to Concepts: Data-Free Interpretability of CLIP via Singular Vector Decomposition}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=LI301x9Mza},
}
Figure