mlsanityData to 14 Oct 2026

Choosing the Number of Attention Heads from Intrinsic Dimension: A Small-Scale Study

arXiv 2610.19966 ↗First posted 14 Oct 2026cs.CL cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

The number of attention heads in a transformer is usually set by convention or grid search. We test a simple heuristic for setting it in advance: estimate the intrinsic dimension of token representations without labels, and use roughly that many heads. We estimate intrinsic dimension with a nested-dropout VAE trained on DistilBERT embeddings of WikiText-2, choosing the KL weight at the knee of the VAE's rate-distortion curve rather than by hand. This gives k^*=9.2 (95% CI [8.6, 9.8]). In a small 4-layer transformer trained from scratch, 10 heads and 32 heads are statistically equivalent on SST-2 and on MRPC (paired TOST over 10 seeds, ±1 point margin), with 69% fewer attention parameters for the 10-head model. Training 10 heads from the start also slightly outperforms training 32 heads and pruning to 10 (0.6 points, p=0.008). The evidence is narrow: two classification tasks, one small architecture, no pretrained models, and no formal link between intrinsic dimension and head count. We present the result as a practical heuristic worth testing at larger scale, not as a general principle.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 10 of its 16 references that are in the map. First posted on arXiv 14 Oct 2026.

Builds on

10 of 16 references.

References · 10

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  3. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
  4. 2016Pointer Sentinel Mixture Modelscited by 3,096
  5. 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 856
  6. 2019Are Sixteen Heads Really Better than One?cited by 816
  7. 2020Intrinsic Dimensionality Explains the Effectiveness of Language Model Fine-Tuningcited by 671
  8. 2019Intrinsic dimension of data representations in deep neural networkscited by 282
  9. 2018Estimating the intrinsic dimension of datasets by a minimal neighborhood informationcited by 250
  10. 2014Learning Ordered Representations with Nested Dropoutcited by 84

Built on by

Not cited yet.