Sparse autoencoders reveal selective remapping of visual concepts during adaptation
Hyesu Lim, Jinho Choi, Jaegul Choo, Steffen Schneider
TL;DR
<3-5 sentence high-level summary> PatchSAE introduces a sparse autoencoder framework tailored to CLIP's Vision Transformer to extract patch-level visual concepts and their spatial attributions. By analyzing how these concepts align with classification outcomes, the study reveals that adaptation methods largely reuse existing concepts and primarily remap them to downstream task classes rather than introducing many new concepts. The authors demonstrate the tool's ability to localize concepts, reveal class-discriminative latent directions, and explain the mechanisms behind prompt-based adaptation (e.g., MaPLe) across 11 datasets. This work provides a concrete framework to debug, interpret, and categorize adaptation strategies for vision-language foundation models, with implications for principled model customization and explainability.
Abstract
Adapting foundation models for specific purposes has become a standard approach to build machine learning systems for downstream applications. Yet, it is an open question which mechanisms take place during adaptation. Here we develop a new Sparse Autoencoder (SAE) for the CLIP vision transformer, named PatchSAE, to extract interpretable concepts at granular levels (e.g., shape, color, or semantics of an object) and their patch-wise spatial attributions. We explore how these concepts influence the model output in downstream image classification tasks and investigate how recent state-of-the-art prompt-based adaptation techniques change the association of model inputs to these concepts. While activations of concepts slightly change between adapted and non-adapted models, we find that the majority of gains on common adaptation tasks can be explained with the existing concepts already present in the non-adapted foundation model. This work provides a concrete framework to train and use SAEs for Vision Transformers and provides insights into explaining adaptation mechanisms.
