Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Adaptive Head Budgeting for Efficient Multi-Head Attention

About

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. 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.

Bilal Faye, Abdoulaye Mbaye, Hanane Azzag, Mustapha Lebbah• 2026

Related benchmarks

TaskDatasetResultRank
Natural Language InferenceSNLI 21 (test)
Accuracy81.06
2
Ontology ClassificationDBpedia 19 (test)
Accuracy98.59
2
Review rating predictionYelp Full 19 (test)
Accuracy61.9
2
Sentiment AnalysisIMDB 20 (test)
Accuracy83.56
2
News topic classificationAG News 19 (test)
Accuracy90.22
2
Showing 5 of 5 rows

Other info

Follow for update