Adaptive Head Budgeting for Efficient Multi-Head Attention

Bilal Faye, Abdoulaye Mbaye, Hanane Azzag, Mustapha Lebbah
4/24/2026
cs.LG
transformer-attention

No confident code implementation found for this paper.

Abstract

Multi-head attention enables Transformers to capture diverse representations, but all attention heads are typically activated for every input, regardless of task complexity. For coarse-grained tasks such as text classification, where relevant information is often global, this fixed allocation can introduce unnecessary computation.

Show full abstract

We propose BudgetFormer, a Transformer architecture that dynamically allocates attention heads on a per-input basis. The model learns both a head budget and a relevance distribution to select the most informative heads. To support effective head selection, we introduce a training strategy that balances exploration and exploitation. Experiments on text classification tasks show that BudgetFormer reduces FLOPs and memory usage while matching or surpassing the performance of standard multi-head attention. These results highlight adaptive head allocation as an effective approach to improving Transformer efficiency and 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{faye2026adaptive,
  title  = {Adaptive Head Budgeting for Efficient Multi-Head Attention},
  author = {Bilal Faye and Abdoulaye Mbaye and Hanane Azzag and Mustapha Lebbah},
  year   = {2026},
  eprint = {2604.22583},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.22583v3}
}

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/2604.22583.svg)](https://codeofpaper.com/paper/2604.22583)

Discussion