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.
翻译:暂无翻译