analiza aiqbench
BudgetFormer introduces a dynamic allocation mechanism for Transformer attention heads that adjusts activation based on input complexity, significantly reducing FLOPs and memory usage without sacrificing accuracy. By learning a head budget and relevance distribution, this architecture effectively mitigates the inefficiency of fixed attention allocations in coarse-grained tasks like text classification. The approach demonstrates that adaptive head selection is a viable strategy for optimizing model efficiency while maintaining strong performance.
Adaptive Head Budgeting for Efficient Multi-Head Attention
arXiv:2604.22583v2 Announce Type: replace 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. 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.
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. 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.
Machine Learning (cs.LG)
arXiv:2604.22583 [cs.LG]
(or arXiv:2604.22583v2 [cs.LG] for this version)
https://doi.org/10.48550/arXiv.2604.22583 Focus to learn more arXiv-issued DOI via DataCite
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.
Text integral sub licența deschisă a publicației · 220 cuvinte
Subiecte conexe

Expenditure Horizon: Measuring Optimization Ability, with an Application to NanoGPT
METR · 21 iul. 2026

[AINews] Reality Checks on AI News (Yegge shuts down Gas Town, Databricks’ +60% Astra cost)
Latent Space · 17 sept. 2026
Adaptive Head Budgeting for Efficient Multi-Head Attention
arXiv · 5 iun. 2026
[AINews] High Taste Testers Ep. 1
Latent Space · 17 oct. 2026