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
7/31/2026
cs.CVcs.AI
transformer-attention

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ksiek2026interpretabilityguided,
  title  = {Interpretability-Guided Soft Pruning of Attention Heads in Vision Transformers},
  author = {Kamil Książek and Piotr Suszyński and Michał Jan Włodarczyk and Jacek Tabor and Przemysław Biecek},
  year   = {2026},
  eprint = {2608.00264},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.00264v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.00264.svg)](https://codeofpaper.com/paper/2608.00264)

Discussion