Manuscript Offprint

arXiv:2609.09055

"World Knowledge" in the Weights: Reading Concept Circuits of Vision Transformers

Yanlin Chen, Tang Li, Xi Peng

Yanlin Chen¹, Tang Li¹, and Xi Peng²,†

¹ Department of Computer & Information Sciences, University of Delaware, USA {yanlin,tangli}@udel.edu ² Department of Computer Science, University of Virginia, USA naq5rd@virginia.edu

Abstract. Vision transformers (ViTs) have achieved remarkable generalization across visual domains, yet little is known about how they internally represent the structure of the world. To address this gap, we use Cross-Layer Transcoders (CLTs) to read concept circuits from ViTs: directed graphs whose nodes correspond to sparse, interpretable concepts and edges capture concept interactions across layers. Our method yields two complementary views of model behavior. The global concept circuit is input-invariant and can be recovered directly from learned cross-layer weights, exposing the reusable “world knowledge” encoded in the model. The instance concept circuit is input-dependent and identifies the concepts and pathways actually used for a specific prediction, enabling faithful example-level explanations. We demonstrate the utility of concept circuits in three ways: (1) Automatic spurious correlation discovery: leveraging the statistics of our global concept circuits to identify shortcut dependencies within the model. (2) Spurious correlation removal: intervening on the instance concept circuit to steer the model towards correct predictions. Empirical results show that our method outperforms existing counterparts by 11.0% on the Waterbird dataset. (3) Model comparison: contrasting the global concept circuits of different foundation models (e.g., CLIP vs. DINO) to reveal how supervision paradigms shape representational structure. Our code is available at https://github.com/deep-real/VisionCLT

Keywords: Vision Transformer · Concept Circuit · Interpretability

1 Introduction

Vision transformers (ViTs) [14] have achieved remarkable generalization across a wide range of visual domains [10,44,51,52]. Despite this empirical success, we still lack an understanding of the inner workings of ViTs that give rise to robust behavior or well-known failures such as reliance on spurious correlations [20,32,41,53,55], i.e. their “world knowledge”. In particular, it remains unclear what concepts ViTs encode and how these concepts interact across layers. Recovering

† Corresponding author.

Y. Chen et al.

this internal structure is crucial because it enables principled auditing, diagnosis of shortcuts, and targeted interventions at the level of internal mechanisms.

Yet, reading the “world knowledge” of ViTs remains challenging. Most existing interpretable machine learning (IML) methods focus on saliency maps [48,49,59] or feature-importance scores [29,46], highlighting which input regions or features matter for a prediction but treating the network’s internals as a black box. While recent Sparse Autoencoder (SAE) methods [5,19,22,45] decompose polysemantic neurons into sparse, more interpretable features and support circuit discovery [12,26,33] to identify “sparse feature circuits” [31], SAE-based pipelines primarily capture input-dependent behavior [15], which does not reflect the model’s general behavior. Although one can obtain a global view of feature interactions by averaging over large datasets, it requires expensive attribution and still risks being not fully input-invariant.

To address these gaps, we propose to use Cross-Layer Transcoders (CLTs) [2] to read the “world knowledge” of ViTs (Fig. 1). CLTs are sparse cross-layer dictionaries trained to approximate the computation performed by language trans-

Figure

Fig. 1: A comparison between existing Interpretable Machine Learning (IML) and our concept circuit. Existing IML methods are typically limited to where the model focuses on, while our concept circuit answers the question of how the model understands the visual world.

formers. Specifically, they encode the residual stream into sparse feature activations and use a learned decoder to reconstruct the downstream MLP outputs across layers. Compared to SAEs, a key advantage of CLTs is that they learn input-invariant encoder/decoder weights which define how features interact across layers in an input-independent manner. By adapting CLTs to vision data, we recover global concept circuits directly from learned parameters without expensive dataset-scale attribution. This enables systematic analyses of model's general behavior and principled auditing of model bias. Additionally, CLTs also decompose model representation into input-dependent sparse codes, which we leverage to extract instance concept circuits. This offers a view complementary to global concept circuits, enabling fine-grained auditing and control at instance level. Although SAEs can also identify instance concept circuits, we show that CLT-based circuits are more faithful than SAE-based circuits.

We showcase the utility of concept circuits through three key applications: (1) Spurious correlation discovery: The global concept circuits allow us to automatically identify shortcut dependencies; to our knowledge, this is the first work that aims to uncover spurious correlations without domain knowledge. (2) Spurious correlation removal: Leveraging the instance-specific concept circuits, we can localize the specific concepts/interactions responsible for biased behavior, and intervene to reduce the model's reliance on spurious cues. Empir-

Figure

Fig. 2: Overview of our pipeline for extracting concept circuits of ViTs. Left: the CLT architecture, which is trained to approximate the MLP computation of a transformer. Middle: The concept circuit extracted by CLT, i.e., a graph of concepts and their interactions. Right: The concept circuits can be leveraged to (1) automatically discover spurious correlations encoded in the ViT, (2) remove the spurious correlations to steer the model toward correct predictions, and (3) offer insights on how variant supervision paradigms shape model's internal structure and behavior.

ical results show that our method outperforms existing counterparts by 11.0% on the Waterbird dataset. (3) Model comparison: By analyzing the structure of global concept circuits across different pretrained foundation models (e.g., CLIP [44] v.s. DINO [8] v.s. ViT [14]), we can evaluate and compare how various supervision paradigms and datasets influence model behaviors. This provides a principled mechanistic basis for model optimization and selection.

In summary, our contributions are:

– We adapt CLTs to ViTs, validating their effectiveness on vision data.

– We use CLTs to read instance-specific and, first of its kind, global concept circuits from ViTs, revealing their inner “world knowledge”.

– We showcase the utility of concept circuits in three applications: automatic spurious correlation discovery, spurious correlation removal, where our method outperforms existing counterparts by 11.0%, and comparing vision foundation models through their internal representation structure.

References (56)

  • Meaningfully debugging model mistakes using conceptual counterfactual explanations
  • Transformer Circuits Thread
  • Mechanistic interpretability for AI safety - a review
  • Interpreting clip with sparse linear concept embeddings (splice)
  • Batchtopk sparse autoencoders (opens arXiv in a new tab)
  • Curve circuits (opens the publisher in a new tab)
  • Emerging properties in self-supervised vision transformers
  • This looks like that: deep learning for interpretable image recognition
  • Vision transformer adapter for dense predictions
  • Concept whitening for interpretable image recognition
  • Towards automated circuit discovery for mechanistic interpretability
  • Imagenet: A large-scale hierarchical image database
  • An image is worth 16x16 words: Transformers for image recognition at scale
  • Transcoders find interpretable llm feature circuits
  • Understanding deep networks via extremal perturbations and smooth masks
  • Interpretable explanations of black boxes by meaningful perturbation
  • Scaling and evaluating sparse autoencoders
  • Imagenet-trained cnns are biased towards texture; increasing shape bias improves accuracy and robustness
  • Lvis: A dataset for large vocabulary instance segmentation
  • Sparse autoencoders find highly interpretable features in language models
  • Interpretability beyond feature attribution: Quantitative testing with concept activation vectors (tcav)
  • Understanding black-box predictions via influence functions
  • Concept bottleneck models
  • Atp*: An efficient and scalable method for localizing llm behaviour to components (opens arXiv in a new tab)
  • Visual genome: Connecting language and vision using crowdsourced dense image annotations
  • Inside the visual mind: Neuroscience-motivated concept circuits for interpreting and steering vision transformers
  • A unified approach to interpreting model predictions
  • Medical AI Encodes a 'Feeling of Error': Verifying Cancer Segmentation via Internal Concepts
  • Sparse feature circuits: Discovering and editing interpretable causal graphs in language models
  • A comprehensive study of image classification model sensitivity to foregrounds, backgrounds, and visual attributes
  • Attribution patching: Activation patching at industrial scale
  • Progress measures for grokking via mechanistic interpretability
  • Spurious features everywhere-large-scale detection of harmful spurious features in imagenet
  • Label-free concept bottleneck models
  • CLIP-dissect: Automatic description of neuron representations in deep vision networks
  • Zoom in: An introduction to circuits (opens the publisher in a new tab)
  • Sparse autoencoders learn monosematic features in vision-language models
  • Inside-out: Measuring generalization in vision transformers through inner workings
  • Rise: Randomized input sampling for explanation of black-box models (opens arXiv in a new tab)
  • Finding and fixing spurious patterns with explanations
  • Learning transferable visual models from natural language supervision
  • Jumping ahead: Improving reconstruction fidelity with jumprelu sparse autoencoders (opens arXiv in a new tab)
  • why should i trust you?
  • Distributionally robust neural networks
  • Grad-cam: Visual explanations from deep networks via gradient-based localization
  • Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Maps
  • Salient imagenet: How to discover spurious features in deep learning? In: International Conference on Learning Representations
  • Not all images are worth 16x16 words: Dynamic transformers for efficient image recognition
  • CLIPSelf: Vision transformer distills itself for open-vocabulary dense prediction
  • Noise or signal: The role of image backgrounds in object recognition
  • Language in a bottle: Language model guided concept bottlenecks for interpretable image classification
  • Spurious correlations in machine learning: A survey (opens arXiv in a new tab)
  • On completeness-aware concept-based explanations in deep neural networks
  • Representer point selection for explaining deep neural networks
  • Post-hoc concept bottleneck models
  • Learning deep features for discriminative localization