atlas

Research map / Architectures and efficiency / Attention and transformers

Interpreting vision transformers via residual replacement model

NeurIPS 2025 · Architectures and efficiency › Attention and transformers · approach: Efficient and robust vision transformers · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Systematically annotates 6.6K TopK SAE features across all layers of ViT, CLIP and DINOv2, and builds a residual replacement model that yields faithful, parsimonious feature circuits for ViTs, applied to debiasing spurious correlations.

Problem

Vision transformers are hard to interpret: their features are poorly understood across all layers, and attention-based token-to-token circuits are too large for human-scale interpretability.

Approach

Replace ViT computation with SAE features in the residual stream only (bypassing attention), aggregate features over tokens, select circuit nodes by edge importance to already-selected downstream nodes, and correct noisy gradients with a LibraGrad-based method.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add edge-based discovery to the naïve feature circuit (ablation)Residual replacement model · ImageNet val, ViT/DINOv2/CLIP circuitsfaithfulness: 64.9 -> 74.2; 58.9 -> 64.1; 50.7 -> 52.2Helped
Add gradient correction to edge-based feature discovery (ablation)Residual replacement model · ImageNet val, ViT/DINOv2/CLIP circuitsfaithfulness: 74.2 -> 94.1; 64.1 -> 85.1; 52.2 -> 82.3Helped
Use feature nodes instead of neuron nodes (ablation)Residual replacement model · ImageNet val, ViT/DINOv2/CLIP circuitsfaithfulness: 26.3 -> 74.2; 26.7 -> 64.1; 30.2 -> 52.2Helped
Replace top-k node selection with top-p selection (ablation)Residual replacement model · ImageNet val, ViT/DINOv2/CLIP circuitsfaithfulness: 94.1 -> 95.0; 85.1 -> 85.4; 82.3 -> 82.9No clear effect
Replace top-k node selection with threshold selection (ablation)Residual replacement model · ImageNet val, ViT/DINOv2/CLIP circuitsfaithfulness: 94.1 -> 93.6; 85.1 -> 84.6; 82.3 -> 82.2No clear effect
Ablate the identified spurious featureViT · ImageNet val debiasingmAUC: 0.854 -> 0.904Helped
Ablate the identified spurious featureViT · ImageNet val debiasingAccuracy: 0.849 -> 0.848Hurt

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet-1K

Benchmarks: ImageNet validation (1,500 sampled images) ImageNet spurious correlation evaluation

Metrics: faithfulness 1 - completeness causality AUC interpretability score accuracy mAUC

Baselines: Cross-Layer Attribution (CLA) neuron circuit random circuit naive circuit SpuFix

Builds on: TopK SAE replacement model attribution patching LibraGrad cross-layer transcoder

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy