Manuscript Offprint

arXiv:2611.03438

Align Once to Explain: Feature Alignment for Scalable B-cosification of Foundational Vision Transformers

Raphael Maser, Siddhartha Gairola, Sukrut Rao, Bernt Schiele

Raphael Maser*, Siddhartha Gairola*, Sukrut Rao, Bernt Schiele

Max Planck Institute for Informatics, Saarland Informatics Campus, Saarbrücken, Germany

{raphael.maser,siddhartha.gairola,sukrut.rao,schiele}@mpi-inf.mpg.de

Project Page

Code

Models

Figure

Interpretability vs. Accuracy

Figure

Figure 1. ALOE: performant, preserves semantics, explains faithfully.— Left: Explanations and representations. ALOE enables inherently interpretable B-cos: W(x) [11] attributions (row 2) that are object-centric and class-specific. The accompanying PCA visualizations (row 3; RGB = first three principal components of the final image representation for our ALOE aligned DINOv3 [72] model) preserve global feature geometry—indicating aligned semantics with improved explainability (cf. Fig. 5). Right: Performance vs. interpretability. Across ViT-B/16 backbones, ALOE substantially boosts localization quality on GridPG [10, 81] while maintaining competitive ImageNet [65] accuracy relative to the corresponding foundation models (Supervised [25], DINOv3 [72], SigLIP2 [76]). Baseline denotes each teacher explained with AttnLRP [1].

Abstract

Foundational vision models have become the de facto standard for many vision tasks due to their strong performance. However, they are notoriously opaque and remain hard to interpret. We present ALOE (ALign Once to Explain), a one-time, label-free feature alignment approach that efficiently converts foundational vision models into inherently interpretable B-cos [11] variants. Once aligned, the B-cos backbone is used as a drop-in replacement across several downstream tasks—amortizing the cost of interpretability. ALOE is robust across pre-training paradigms (supervised, self-supervised, vision-language) and can preserve teacher-level generalization with orders of magnitude less data than training from scratch. On classification, it

strongly outperforms vanilla B-cosification (e.g., +10.5 p.p. top-1 on ImageNet for DINOv3 ViT-B/16), retains strong linear probing, k-NN, and zero-shot transfer competitive with foundational backbones (DINOv3 [72], SigLIP2 [76]) across diverse downstream datasets. It also preserves spatially structured features useful for dense prediction, while yielding well-localized and highly human-interpretable explanations by design.

1. Introduction

Large-scale vision foundation models, including self-supervised encoders in the DINO family [12, 55, 72] and contrastive vision-language models such as CLIP [60] and SigLIP [76, 80], are powerful and versatile feature extractors that achieve state-of-the-art performance across a di-

*Equal contribution.

verse set of downstream tasks. Trained on billions of images and image-text pairs, these models serve as general-purpose building blocks across various domains, from fine-grained recognition to medical imaging, often replacing their fully supervised, domain-specific counterparts [72]. However, their decision-making processes remain largely opaque, which hinders their use in sensitive and safety-critical applications. Post-hoc explanation methods aim to mitigate this issue, but can be noisy and not always faithful to the underlying model being explained [2, 3, 61].

An alternative line of work develops inherently interpretable architectures that yield model-faithful explanations by design. They introduce architectural constraints that lead to human-interpretable, faithful summaries of the model's computations; examples include prototype-based models [17, 24, 51], dynamic linear models [6, 10], and concept-bottleneck models [37, 54, 62]. A prominent example is the family of B-cos Networks [6, 11], which replace linear transforms with bias-free B-cos transforms that promote weight-input alignment to enhance interpretability and enable a faithful summary of the model's decision. To avoid training these models from scratch, recent work proposed 'B-cosification' [4], an approach that efficiently transforms existing models to their B-cos variants post-hoc at a fraction of the full training cost. However, despite strong gains on fully-supervised convolutional backbones and competitive results on a CLIP ResNet [32] backbone, the B-cosification recipe provides only modest improvements for Vision Transformers (ViTs) [25], sometimes failing to match the performance of training from scratch. Since most modern foundation models are ViT-based, this significantly limits its practical utility and broader adoption.

In this work, we propose a scalable approach to efficiently transform existing foundation models into B-cos variants, that is practically useful for modern ViTs. Specifically, we explore feature-alignment methods for fine-grained matching between a pre-trained foundational teacher and its B-cosified student without any labeled supervision. We conduct a comprehensive study of key design choices, including which features/layers to align, alignment losses, model scales, and alignment dataset sizes. Unlike [4], our approach, ALOE (ALign Once to Explain) (Fig. 4), is a general-purpose recipe that requires only a single alignment of the backbone irrespective of the pre-training paradigm, such as fully-supervised, self-supervised, or contrastive vision-language training. Once aligned, the backbone can be used as a drop-in replacement across downstream tasks, amortizing the cost of interpretability.

Despite its simplicity, ALOE is surprisingly effective and highly data and compute efficient. For example, while training SigLIP2 [76] from scratch required ≈10B images and ≈12B alt-texts, ALOE B-cosifies such a model while maintaining its generalization with only a small unlabeled

Figure

(a) ImageNet-1k linear-probe accuracy (%).

Figure

(b) Grid-PG (localization) Score (%).

Figure 2. ALOE vs. B-cosification [4]. ALOE consistently outperforms vanilla B-cosification in ImageNet-1k linear-probe accuracy across model scales for both SigLIP2 [76] and DINOv3 [72] (see (a)). It reaches performance close to the original SigLIP2 and DINOv3 baselines while significantly improving localization scores (Grid-PG, see (b))—even compared against different SOTA post-hoc attribution methods.

alignment set: even 150k YFCC15M images already keep the ImageNet top-1 gap below 0.50 p.p. (Fig. 9), and the full 15M-image alignment set reaches 83.87% vs. 84.21% for the SigLIP2 teacher (see Fig. 1). This makes the one-time alignment overhead clearly preferable to full retraining for achieving interpretability. Moreover, ALOE consistently outperforms vanilla B-cosification [4] across pretraining paradigms, improving ImageNet-1k linear-probe accuracy by +8.82 to +10.50 p.p. for the SigLIP2 and DINOv3 ViT-B/16 models shown in Fig. 2. Our models also deliver strong linear-probing and zero-shot performance across datasets, preserve spatially structured features useful for dense prediction, and provide faithful, well-localized explanations (Fig. 1).

In summary, our contributions are:

(1) We propose ALOE (ALign Once to Explain), a universal, one-time, label-free feature-alignment approach that enables efficient transformation of foundational ViT backbones into inherently interpretable B-cos variants while preserving downstream utility.

(2) We conduct a detailed study of the design choices and provide key insights into alignment targets (layer-wise vs. pooled; single vs. multi-layer), loss families (MSE, cosine, SigLIP, InfoNCE), model scales, and alignment dataset sizes.

We make the following key empirical findings:

(F1) Generality: ALOE B-cos ViTs outperform B-cosified [4] baselines in classification, retain strong linear probing, k-NN, and zero-shot transfer performance competitive with foundational backbones (DINOv3, SigLIP2), preserve spatially structured features for dense prediction, and provide faithful and well-localized explanations (e.g., +8.82 to +10.50 p.p. ImageNet-1k linear-probe accuracy over [4] for the SigLIP2 and DINOv3 ViT-B/16 models).

(F2) Data efficiency: feature alignment with as few as 150k unlabeled images keeps the SigLIP2 ImageNet top-1 gap below 0.50 p.p. (Fig. 9); full 15M-image alignment reduces the gap to 0.34 p.p., using far less data than billion-scale pre-training.

With ALOE we establish a practical path to scalable trustworthy vision foundation models that are faithful by design, strong in transfer tasks, and easy to adopt.

References (75)

  • AttnLRP: attention-aware layer-wise relevance propagation for transformers
  • Sanity Checks for Saliency Maps
  • Post Hoc Explanations may be Ineffective for Detecting Unknown Spurious Correlation
  • B-cosification: Transforming Deep Neural Networks to be Inherently Interpretable
  • On Pixel-wise Explanations for Non-Linear Classifier Decisions by Layer-wise Relevance Propagation
  • B-cos Networks: Alignment is All We Need for Interpretability
  • Food-101-mining discriminative components with random forests
  • LeGrad: An Explainability Method for Vision Transformers via Feature Formation Sensitivity
  • Rank analysis of incomplete block designs: I. the method of paired comparisons
  • Convolutional Dynamic Alignment Networks for Interpretable Classifications
  • B-cos Alignment for Inherently Interpretable CNNs and Vision Transformers
  • Emerging Properties in Self-Supervised Vision Transformers
  • Conceptual 12M: Pushing web-scale image-text pre-training to recognize long-tail visual concepts
  • Grad-CAM++: Improved Visual Explanations for Deep Convolutional Networks
  • Generic Attention-Model Explainability for Interpreting Bi-Modal and Encoder-Decoder Transformers
  • Transformer interpretability beyond attention visualization
  • This Looks Like That: Deep Learning for Interpretable Image Recognition
  • An empirical study of training self-supervised vision transformers
  • Reproducible Scaling Laws for Contrastive Language-Image Learning
  • Describing textures in the wild
  • LLaVA-MORE: A comparative study of llms and visual backbones for enhanced visual instruction tuning
  • Democratizing contrastive language-image pretraining: A clip benchmark of data, model, and supervision (opens arXiv in a new tab)
  • ScanNet: Richly-annotated 3D reconstructions of indoor scenes
  • Deformable ProtoPNet: An Interpretable Image Classifier using Deformable Prototypes
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Probing the 3d awareness of visual foundation models
  • How to Probe: Simple Yet Effective Techniques for Improving Post-hoc Explanations
  • Deep Residual Learning for Image Recognition
  • Distilling the Knowledge in a Neural Network
  • OpenCLIP, 2021
  • NAVI: Category-agnostic image collections with high-quality 3D shape and pose annotations
  • LayerCAM: Exploring Hierarchical Class Activation Maps for Localization
  • Concept Bottleneck Models
  • Captum: A Unified and Generic Model Interpretability Library for PyTorch (opens arXiv in a new tab)
  • Big transfer (BiT): General visual representation learning
  • 3D object representations for fine-grained categorization
  • Technical Report, Computer Science Department, University of Toronto, 2009
  • Discriminatively trained dense surface normal estimation
  • Caltech 101, 2022
  • Visual instruction tuning
  • Decoupled Weight Decay Regularization
  • Fine-grained visual classification of aircraft (opens arXiv in a new tab)
  • Align once to explain: Feature alignment for scalable B-cosification of foundational vision transformers
  • DINOv3 ViT-B/16 pretrain checkpoint (224), 2025
  • DINOv3 ViT-L/16 pretrain checkpoint (224), 2025
  • DINOv3 ViT-S/16 pretrain checkpoint (224), 2025
  • Neural Prototype Trees for Interpretable Fine-grained Image Recognition
  • Zero-Shot Knowledge Distillation in Deep Networks
  • Automated flower classification over a large number of classes
  • Label-Free Concept Bottleneck Models
  • DINOv2: Learning robust visual features without supervision
  • Good Teachers Explain: Explanation-Enhanced Knowledge Distillation
  • FaCT: Faithful concept traces for explaining neural network decisions
  • Relational knowledge distillation
  • RISE: Randomized Input Sampling for Explanation of Black-box Models
  • Towards Better Understanding Attribution Methods
  • Discover-then-Name: Task-Agnostic Concept Bottlenecks via Automated Concept Discovery
  • Why Should I Trust You?
  • FitNets: Hints for thin deep nets
  • ImageNet Large Scale Visual Recognition Challenge
  • Evaluating the Visualization of What a Deep Neural Network has Learned
  • Grad-CAM: Visual Explanations from Deep Networks via Gradient-Based Localization
  • Conceptual Captions: A Cleaned, Hypernymed, Image Alt-Text Dataset for Automatic Image Captioning
  • Teacher as a lenient expert: Teacher-agnostic data-free knowledge distillation
  • Learning Important Features through Propagating Activation Differences
  • Indoor segmentation and support inference from rgbd images
  • DINOv3
  • Axiomatic Attribution for Deep Networks
  • Training data-efficient image transformers & distillation through attention
  • Score-CAM: Score-Weighted Visual Explanations for Convolutional Neural Networks
  • SUN database: Large-scale scene recognition from abbey to zoo
  • Paying More Attention to Attention: Improving the Performance of Convolutional Neural Networks via Attention Transfer
  • Sigmoid Loss for Language Image Pre-Training
  • Top-Down Neural Attention by Excitation Backprop
  • Rethinking centered kernel alignment in knowledge distillation (opens arXiv in a new tab)