Introduction
Vision Transformers (ViTs) have established themselves as state-of-the-art models in computer vision. However, their "black box" nature poses significant challenges in high-stakes domains such as medical imaging and autonomous driving. While concept-based interpretability methods attempt to map internal features to human-understandable attributes, they often fail to account for the architectural specifics of ViTs. Notably, ViTs lack the scale invariance inherent in Convolutional Neural Networks (CNNs). Processing images as fixed-size patches makes it difficult for ViTs to align semantic concepts that vary in size or resolution, leading to misalignments between visual evidence and model explanations.
Methodology: The ASCENT-ViT Framework
To address these limitations, we propose ASCENT-ViT, a framework that integrates scale and patch awareness into the concept-learning process through three primary modules.
1. Multi-scale Encoding (MSE) Module
The MSE module utilizes a CNN-style backbone to extract a feature pyramid. By capturing image data at multiple resolutions (e.g., 1/8, 1/16, and 1/32 of the original size), the model gains the multi-scale perspective necessary for robust concept identification.
2. Deformable Multi-Scale Fusion (DMSF) Module
At the core of ASCENT-ViT is the DMSF module, which employs deformable attention to fuse standard ViT patch embeddings with the multi-scale features from the MSE. This allows the model to dynamically attend to different scales simultaneously, ensuring that concepts are captured regardless of their size in the input image.
3. Concept-Representation Alignment Module (CRAM)
The CRAM module uses cross-attention to align fused representations with human-annotated concepts. It distinguishes between spatial concepts (localizable traits) and global concepts (abstract attributes), employing separate attention matrices to ensure the model's focus corresponds to the physical location of the concept.
Experimental Results
We evaluated ASCENT-ViT across five diverse datasets: CUB200, AWA2, KITS (Kidney Tumor Segmentation), Pascal APY, and Concept-MNIST.
Predictive Accuracy and Alignment
ASCENT-ViT consistently outperformed both standard ViTs and existing concept-based models. On the CUB200 dataset, using a ViT-Large backbone, the framework achieved 87.26% accuracy, surpassing the "Only CRAM" baseline of approximately 86.3%. Furthermore, concept localization (measured by True Positive Rate) improved by 4-5% on CUB200 and AWA2. In the medical KITS dataset, the model demonstrated a superior ability to identify small, critical features like renal cysts.
The Scale-Awareness Tradeoff
A key finding of our study is the impact of the scale-aware hyperparameter $\psi$. There is a "sweet spot" for injecting scale-aware information; while moderate amounts of scale-aware features enhance performance, excessive injection can cause these features to dominate the patch embeddings, potentially degrading accuracy.
Discussion and Conclusion
ASCENT-ViT demonstrates that re-introducing CNN-style inductive biases, specifically scale awareness, is vital for enhancing the interpretability of Vision Transformers. The framework's explanations are notably robust to image transformations such as rotations and crops, as the model maintains concept understanding across scales.
Despite adding only about 2% more parameters to the base model, ASCENT-ViT provides significant gains in both accuracy and alignment. Future work will focus on reducing the dependency on high-quality manual annotations through unsupervised concept discovery and scaling the framework to even larger foundation models.
Summary updated