ASCENT-ViT: Attention-based Scale-aware Concept Learning Framework for Enhanced Alignment in Vision Transformers

Sanchit Sinha, Guangzhi Xiong, Aidong Zhang · DOI

Abstract

As Vision Transformers (ViTs) are increasingly adopted in sensitive vision applications, there is a growing demand for improved interpretability. This has led to efforts to forward-align these models with carefully annotated abstract, human-understandable semantic entities - concepts. Concepts provide global rationales to the model predictions and can be quickly understood/intervened on by domain experts. Most current research focuses on designing model-agnostic, plug-and-play generic concept-based explainability modules that do not incorporate the inner workings of foundation models (e.g., inductive biases, scale invariance, etc.) during training. To alleviate this issue for ViTs, in this paper, we propose ASCENT-ViT, an attention-based, concept learning framework that effectively composes scale and position-aware representations from multiscale feature pyramids and ViT patch representations, respectively. Further, these representations are aligned with concept annotations through attention matrices - which incorporate spatial and global (semantic) concepts. ASCENT-ViT can be utilized as a classification head on top of standard ViT backbones for improved predictive performance and accurate and robust concept explanations as demonstrated on five datasets, including three widely used benchmarks (CUB, Pascal APY, Concept-MNIST) and 2 real-world datasets (AWA2, KITS).

Introduction

While Vision Transformers (ViTs) have achieved state-of-the-art performance across various vision tasks, their "black-box" nature remains a significant barrier in high-stakes domains like healthcare. To address this, researchers have turned to "forward alignment," which involves training models to base their decisions on human-understandable "concepts" (e.g., identifying a bird's species based on its beak shape or wing color).

However, existing concept-based explainability modules are often model-agnostic and fail to leverage the specific architectural strengths of ViTs. Crucially, ViTs lack the inherent scale-invariance found in Convolutional Neural Networks (CNNs). When explainability modules ignore these inductive biases, they produce fragile explanations that struggle to remain consistent across different object sizes or minor image transformations.

The ASCENT-ViT Framework

To bridge the gap between high-performance ViT backbones and robust interpretability, we propose ASCENT-ViT (Attention-based Scale-aware Concept Learning Framework). This framework acts as a specialized classification head that can be integrated with standard ViT architectures to inject scale-awareness and spatial alignment.

Overall architecture of the ASCENT-ViT framework, showing the integration of the ViT backbone with the MSE, DMSF, and CRAM modules.

As shown in the architecture overview, ASCENT-ViT consists of three primary modules:

  1. Multi-scale Encoding (MSE) Module: This module utilizes stacked convolutions to extract features at multiple resolutions, creating a feature pyramid that explicitly introduces CNN-like scale-invariance into the pipeline.
  2. Deformable Multi-Scale Fusion (DMSF) Module: This module bridges the gap between the ViT and CNN features. It uses Multi-Scale Deformable Attention to fuse standard ViT patch embeddings with the scale-aware features generated by the MSE module.
  3. Concept-Representation Alignment Module (CRAM): The final stage involves an attention mechanism that aligns the fused, scale-aware representations with human-annotated concepts.
Detailed view of the Concept-Representation Alignment Module (CRAM), illustrating the dual-attention mechanism for spatial and global concepts.

CRAM calculates attention scores for both localized spatial concepts (e.g., a specific body part) and broader global concepts (e.g., semantic categories), ensuring that the final prediction is grounded in identifiable traits.

Experimental Results

We evaluated ASCENT-ViT on five datasets, including standard benchmarks (CUB200, AWA2, Pascal APY, Concept-MNIST) and a real-world medical dataset (KITS).

Key Findings

  • Enhanced Localization: ASCENT-ViT improved the Pixel True Positive Rate (TPR)—a metric for how accurately the model locates a concept—by approximately 4% on CUB200 and 5% on AWA2 compared to baselines.
  • Medical Precision: On the KITS dataset, the framework successfully captured subtle, easily missed concepts like small cysts, improving total pixel accuracy by ~1.5%.
  • Accuracy and Efficiency: Unlike many interpretability methods that degrade raw performance, ASCENT-ViT actually improved task prediction accuracy across all datasets. Furthermore, it introduces a negligible parameter overhead of less than 3% for a standard ViT-Base model.
  • Robustness: Due to its scale-aware design, the model's concept explanations are significantly more robust to image rotations, cropping, and flipping than standard attention-based explainers.

Conclusion

ASCENT-ViT demonstrates that architecture-aware explainability is superior to generic, model-agnostic approaches. By fusing the global context of ViTs with the local, scale-aware features of CNNs, we can create models that are not only highly accurate but also intrinsically aligned with human reasoning. Future work will focus on reducing the dependency on dense, pixel-level concept annotations to make such frameworks more scalable.

Summary updated

BibTeX
@inproceedings{sinha2025ascent,
  author = {Sanchit Sinha and Guangzhi Xiong and Aidong Zhang},
  title = {{ASCENT-ViT: Attention-based Scale-aware Concept Learning Framework for Enhanced Alignment in Vision Transformers}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.24963/ijcai.2025/58},
}
Figure