Exploiting Information Redundancy in Attention Maps for Extreme Quantization of Vision Transformers

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Maisonnave, Lucas, Haroun, Karim, Pegeot, Tom
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911116653756416
author Maisonnave, Lucas
Haroun, Karim
Pegeot, Tom
author_facet Maisonnave, Lucas
Haroun, Karim
Pegeot, Tom
contents Transformer models rely on Multi-Head Self-Attention (MHSA) mechanisms, where each attention head contributes to the final representation. However, their computational complexity and high memory demands due to MHSA hinders their deployment at the edge. In this work, we analyze and exploit information redundancy in attention maps to accelerate model inference. By quantifying the information captured by each attention head using Shannon entropy, our analysis reveals that attention heads with lower entropy, i.e., exhibiting more deterministic behavior, tend to contribute less information, motivating targeted compression strategies. Relying on these insights, we propose Entropy Attention Maps (EAM), a model that freezes the weights of low-entropy attention maps and quantizes these values to low precision to avoid redundant re-computation. Empirical validation on ImageNet-1k shows that EAM achieves similar or higher accuracy at $\leq$20\% sparsity in attention maps and competitive performance beyond this level for the DeiT and Swin Transformer models.
format Preprint
id arxiv_https___arxiv_org_abs_2508_16311
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Exploiting Information Redundancy in Attention Maps for Extreme Quantization of Vision Transformers
Maisonnave, Lucas
Haroun, Karim
Pegeot, Tom
Computer Vision and Pattern Recognition
Artificial Intelligence
Information Theory
Transformer models rely on Multi-Head Self-Attention (MHSA) mechanisms, where each attention head contributes to the final representation. However, their computational complexity and high memory demands due to MHSA hinders their deployment at the edge. In this work, we analyze and exploit information redundancy in attention maps to accelerate model inference. By quantifying the information captured by each attention head using Shannon entropy, our analysis reveals that attention heads with lower entropy, i.e., exhibiting more deterministic behavior, tend to contribute less information, motivating targeted compression strategies. Relying on these insights, we propose Entropy Attention Maps (EAM), a model that freezes the weights of low-entropy attention maps and quantizes these values to low precision to avoid redundant re-computation. Empirical validation on ImageNet-1k shows that EAM achieves similar or higher accuracy at $\leq$20\% sparsity in attention maps and competitive performance beyond this level for the DeiT and Swin Transformer models.
title Exploiting Information Redundancy in Attention Maps for Extreme Quantization of Vision Transformers
topic Computer Vision and Pattern Recognition
Artificial Intelligence
Information Theory
url https://arxiv.org/abs/2508.16311