학술

Pruning as a Lens: Understanding the Functional Roles of Attention Heads in Vision Transformers

arXiv CS.AI
CC BY
이 매체는 공공·자유 라이선스로 본문을 직접 표시합니다.

Abstract

Vision foundation models, such as DINOv2, learn highly expressive representations but rely on massive, opaque architectures that demand substantial computational and memory resources.

To provide an interpretability-guided and efficient solution to this issue, we first propose Laplace maps, a novel spectral analysis and visualization technique for individual attention heads based on the Laplacian eigenvectors of attention activations.

This allows us to categorize the functional specializations of individual heads, uncovering local convolutional processing, topological routers, and complex semantic parsing.

Building upon recent observations regarding contiguous representational phases in vision transformers, we extend this discovery to the head level, assess their similarity, and identify functional redundancies.

Leveraging these insights, we introduce Soft Attention PrunER (SAPER), an end-to-end differentiable pruning framework powered by the LapSum Soft top-k operator.

By clearing redundant heads, SAPER significantly reduces FLOPs while preserving core model performance, allowing us to quantitatively assess the architectural importance of router heads under constrained capacity.

관련 뉴스