# Exploiting Biases in Attention for Transformers

DevFeed: [Exploiting Biases in Attention for Transformers](<https://devfeed.tech/articles/exploiting-biases-in-attention-for-transformers-116966.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.04657>)

Author: Charles Herr, Gabriele Spadaro, Enzo Tartaglione

Published: 2026-11-04T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Transformer](<https://devfeed.tech/topics/transformer.md>), [Transformers](<https://devfeed.tech/topics/transformers.md>)

Tags: [attention](<https://devfeed.tech/tags/attention.md>), [bias](<https://devfeed.tech/tags/bias.md>), [classification](<https://devfeed.tech/tags/classification.md>), [classification-accuracy](<https://devfeed.tech/tags/classification-accuracy.md>), [cost](<https://devfeed.tech/tags/cost.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [inference](<https://devfeed.tech/tags/inference.md>), [influence](<https://devfeed.tech/tags/influence.md>), [latency](<https://devfeed.tech/tags/latency.md>), [maps](<https://devfeed.tech/tags/maps.md>), [models](<https://devfeed.tech/tags/models.md>), [serve](<https://devfeed.tech/tags/serve.md>), [tokens](<https://devfeed.tech/tags/tokens.md>), [transformers](<https://devfeed.tech/tags/transformers.md>), [vision-transformers](<https://devfeed.tech/tags/vision-transformers.md>)

## AI overview

The paper proposes adding an input-dependent bias to query-key dot products to make tokens' query-independent influence on other tokens explicit. The resulting scalar token scores act as a proxy for pruning attention maps. Across multiple vision transformer sizes, the authors report lower attention FLOPs and inference latency while retaining most original classification accuracy. The supplied text does not provide quantitative results or implementation details.

## Source excerpt

arXiv:2611.04657v1 Announce Type: new Abstract: Attention is known to be sparse in vision transformers. In particular, we analyze the unequal relevance of attention-matrix columns to the final computation and show that this phenomenon becomes increasingly pronounced with network depth. This can be interpreted as saying that tokens have an absolute importance for the attention process, independently of queries. Inspired by this, we propose a reformulation of the attention formula that makes this phenomenon explicit by adding an input-dependent bias to the query-key dot product. We show that this new term gives each token a scalar value indicating its anticipated influence on other tokens during the attention process, and can thus serve as a proxy for pruning attention maps. Across multiple transformer model sizes, this allows us to substantially reduce the computational cost of attention, in terms of both FLOPs and inference latency, while retaining most of the original classification accuracy. We publicly released the code and models at https://github.com/EIDOSLAB/AttentionWithBias.