Multi-Modal Interpretability

Label vision model neurons with natural-language concepts using CLIP embeddings and CRP heatmaps.

75|7|Updated May 2, 2026
One-click install
npx skills add https://github.com/zjunlp/Mechanist --skill multi-modal-interpretability-zjunlp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Multi-Modal Interpretability
Source: https://github.com/zjunlp/Mechanist/tree/main/skills/mechanism-skills/multi-modal
Command: npx skills add https://github.com/zjunlp/Mechanist --skill multi-modal-interpretability-zjunlp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires torch, torchvision, zennit-crp, zennit, clip, numpy, pillow, and includes scripts (resource) and references (resource) components.

What problem does it solve? Internal units of vision and vision-language models (convolutional neurons, attention heads, channels, SAE features) are anonymous tensors with no human-readable meaning. This Skill assigns each unit a natural-language concept label by scoring the similarity between its activation pattern over probing images and text embeddings from an aligned multi-modal model such as CLIP, turning opaque representations into named, attributable concepts. ## Core Features & Use Cases - Concept-Set Neuron Description (CLIP-Dissect): Automatically label every neuron in CNNs or Vision Transformers by ranking concept-set text embeddings against activation-weighted image embeddings, with support for Broden/ImageNet probing sets and 3k/10k/20k concept vocabularies. - Concept Relevance Propagation (Zennit-CRP): Generate concept-conditional heatmaps, RelMax/ActMax reference images, and attribution graphs for PyTorch models using LRP composites. - Composed concept-vector pipeline: Crop each unit's top activating images to their high-relevance regions with CRP, then embed the crops with CLIP/SigLIP/DINOv2 to build clean per-component concept vectors for text-query ranking. - Use Case: Given a ResNet-50 classifier, dissect all layers to produce a CSV of per-neuron concept descriptions, then visualize which latent concepts drive a specific prediction. ## Quick Start Ask the agent to label the neurons of your PyTorch vision model with natural-language concepts using CLIP-Dissect on a probing dataset, optionally refining reference images with CRP cropping.

Frequently Asked Questions about Multi-Modal Interpretability

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically label neurons in a vision neural network?

Use CLIP-Dissect: collect each neuron's activations over a probing image set, compute activation-weighted CLIP image embeddings, and rank concept-set text embeddings by cosine similarity. The top concept becomes the neuron's human-readable description, saved to a CSV file.

What is Concept Relevance Propagation in PyTorch?

Concept Relevance Propagation (CRP) is an LRP-based method from the zennit-crp library that produces heatmaps conditioned on a chosen latent concept such as a channel or neuron. It also supports Relevance Maximization reference images and attribution graphs tracing relevance flows through layers.

CLIP-Dissect vs Zennit-CRP: which should I use?

They solve different sub-problems and are often composed. Use CLIP-Dissect alone for pure neuron labeling, Zennit-CRP alone for explaining single predictions with heatmaps, and both together when building per-component concept vectors, where CRP crops reference images before CLIP embedding.

Does CLIP-Dissect work with Vision Transformers and custom models?

Yes, CLIP-Dissect is model-agnostic and works with any PyTorch model including ResNets and ViTs by implementing a loader function in data_utils.py. For ViTs, zennit-crp lacks CRP through self-attention, so use upsampled spatial-token activation maps as a fallback heatmap.

Why are my CLIP concept labels noisy for some neurons?

Labels inherit the biases and blind spots of the alignment model, so concepts CLIP cannot embed cleanly yield noisy rankings. Probing-image and concept-set choices also change labels, and embedding full reference images instead of CRP-cropped regions adds background noise.

What are the limitations of similarity-based neuron labeling?

A high similarity score only localizes a concept correlationally; it does not prove the unit is causally responsible for the model using that concept. Causal claims require interventional follow-up such as masking, swapping, or steering the labeled unit and observing prediction changes.