Interpretability-Guided Soft Pruning of Attention Heads in Vision Transformers
Kamil Książek, Piotr Suszyński, Michał Jan Włodarczyk, Jacek Tabor, Przemysław Biecek
Abstract
Vision foundation models, such as DINOv2, learn highly expressive representations but rely on massive, opaque architectures that demand substantial computational power and memory. To provide an interpretable-guided and efficient solution to this issue, we first propose a spectral analysis and new visualization technique for individual attention heads based on the Laplacian eigenvectors of their attention maps. Building upon recent observations regarding the block structure of Vision Transformers, we perform semantic clustering of attention heads and identify functional redundancies. Leveraging these insights, we introduce SAPER (Soft Attention PrunER), an end-to-end differentiable pruning framework based on the LapSum Soft Top-K approach. Extensive experiments on ImageNet-1K demonstrate that SAPER achieves a highly favorable accuracy-efficiency trade-off, outperforming the competitive RAPTOR baseline in FLOPs reduction while preserving strong classification performance.
Create a lesson
Related papers
CanopyFormer: Attention-Guided SegFormer for Explainable Forest Cover Segmentation
Shared title terminology · Dhinanjaya Fernando, Dinura Ginige, Kalana Lakshan et al.
GAAFormer: Geometry-Anchored Attention Transformer for Joint Point Cloud Denoising and Upsampling
Shared title terminology · Haoxi Tian
SGAR: Feed-Forward 3D Reconstruction via Sparse Geometry-Guided Attention
Shared title terminology · Aoxiang Fan, Maria Pilligua, Corentin Dumery et al.
Attention-Steered Vision-Language Models for Sign Language Translation
Shared title terminology · Meibo Hu, Guohao Sun, Annemarie D. Ross et al.
Role-Break in Attention Heads: Understanding and Detecting Hallucinations in VLMs
Shared title terminology · Mingyu Wang, Weilin Jin, Wenbo Li et al.
Fix Where It Fails: Root-Cause-Guided Agentic Harness Optimization for Scene Graph Generation
Shared title terminology · Jee Eun Kim, Donghyeon Choi, Sangjune An et al.