Representational Similarity via Interpretable Visual Concepts

Neehar Kondapaneni, Oisin Mac Aodha, Pietro Perona

Abstract

Traditional metrics for comparing neural network representations, such as CKA or RSA, provide global similarity scores but lack interpretability regarding specific features. We present Representational Similarity via Interpretable Visual Concepts (RSVC), a framework that decomposes model activations into human-understandable visual concepts. By regressing these concepts from a source model to a target model, RSVC identifies which features are shared, missing, or over-represented. Our results across ImageNet and fine-grained benchmarks demonstrate that RSVC can pinpoint semantic differences between architectures (e.g., ResNets vs. ViTs) and training objectives, offering a bridge between representational similarity and explainable AI.

Introduction

As deep learning architectures diverge—from convolutional neural networks (CNNs) to Vision Transformers (ViTs)—understanding their representational differences becomes critical. Existing metrics typically output a single scalar value, failing to explain why two models are similar or where they differ semantically. Conversely, Explainable AI (XAI) focuses on individual model decisions rather than comparative analysis. RSVC addresses this "tension between model fidelity and human understanding" by providing a granular, concept-based comparison of model representations.

Methodology: The RSVC Pipeline

RSVC operates through a three-stage process to compare a target model ($M_1$) and a source model ($M_2$):

  1. Concept Extraction: Activations from a specific layer in $M_1$ are factorized using dictionary learning (e.g., Non-Negative Matrix Factorization). This yields a concept basis representing "what" features are learned and a coefficient matrix representing "how much" each feature is present in specific image patches.
  2. Concept Regression: To determine if $M_2$ captures the same information, a sparse linear regressor is trained to predict $M_1$’s concept coefficients using $M_2$’s activations.
  3. Similarity and Visualization: Similarity is quantified via the correlation (Pearson $\rho$) between predicted and actual coefficients. Concepts with low similarity can be visualized by identifying image patches where the models disagree, revealing features that one model might ignore.
The RSVC pipeline: extracting concepts from Model 1, regressing them from Model 2's activations, and measuring similarity.

Additionally, a Replacement Test allows for quantitative assessment of a concept's importance by swapping ground-truth coefficients with predicted ones and measuring the impact on classification performance.

Experimental Results

The framework was evaluated on ImageNet, NABirds, and Stanford Cars across various architectures (ResNet-18/50, ViT-S/L) and training regimes (DINO, MAE).

Validation via Toy Concepts

To validate the sensitivity of RSVC, we conducted a controlled experiment using a "pink square" artifact added to images. We compared a model trained to use the square for classification ($M_{ps}$) against one trained to ignore it ($M_{nc}$). RSVC successfully identified the "pink square" concept in $M_{ps}$ and correctly reported near-zero similarity when attempting to predict it from $M_{nc}$, confirming the method's ability to isolate specific visual features.

Toy concept experiment: RSVC identifies that a model invariant to the pink square cannot predict the corresponding concept in a model that utilizes it.

Architecture and Training Insights

  • Layer-wise Convergence: Similarity between ResNets and ViTs is highest in early layers, diverges in middle layers, and shows a slight convergence in the final layers as representations prepare for classification.
  • Semantic Gaps: RSVC revealed that ResNets often focus on human-object interactions (e.g., "hands lifting weights"), whereas ViTs may focus more on the objects themselves (e.g., "gym equipment").
  • Training Objectives: While random seeds have minimal impact on conceptual similarity (~0.89 correlation), changing pretraining objectives (e.g., DINO vs. MAE) results in significant conceptual shifts.

Discussion and Limitations

RSVC provides a powerful tool for identifying model biases and failure modes. However, the method currently faces limitations in reconstruction error during factorization and sensitivity to the choice of comparison dataset. While demonstrated on computer vision tasks, extending RSVC to Large Language Models (LLMs) remains a promising avenue for future research. By automating interpretation through LLM-generated descriptions of concept collages, RSVC makes deep model comparison accessible to a broader range of practitioners.

Summary updated

BibTeX
@inproceedings{kondapaneni2025representational,
  author = {Neehar Kondapaneni and Oisin Mac Aodha and Pietro Perona},
  title = {{Representational Similarity via Interpretable Visual Concepts}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=ih3BJmIZbC},
}
Figure