[Paper Review] Low-Rank Bottleneck in Multi-head Attention Models
This paper identifies a low-rank bottleneck in multi-head attention models caused by shrinking head size as the number of heads increases, which limits representation power and forces reliance on large embedding dimensions. The authors propose fixing the head size to the input sequence length, independent of the number of heads, which enhances model expressiveness, enables better performance with smaller embedding sizes, and reduces model parameters without sacrificing accuracy.
Attention based Transformer architecture has enabled significant advances in the field of natural language processing. In addition to new pre-training techniques, recent improvements crucially rely on working with a relatively larger embedding dimension for tokens. Unfortunately, this leads to models that are prohibitively large to be employed in the downstream tasks. In this paper we identify one of the important factors contributing to the large embedding size requirement. In particular, our analysis highlights that the scaling between the number of heads and the size of each head in the current architecture gives rise to a low-rank bottleneck in attention heads, causing this limitation. We further validate this in our experiments. As a solution we propose to set the head size of an attention unit to input sequence length, and independent of the number of heads, resulting in multi-head attention layers with provably more expressive power. We empirically show that this allows us to train models with a relatively smaller embedding dimension and with better performance scaling.
Motivation & Objective
- To investigate the root cause of the high embedding dimension requirement in modern Transformer models.
- To identify that scaling the head size inversely with the number of heads creates a low-rank bottleneck that limits representation power.
- To propose a new architectural design where head size is fixed to the input sequence length, decoupled from the number of heads and embedding size.
- To demonstrate that this change enables training smaller, more efficient models with improved performance scaling.
- To validate that head size is a critical capacity control parameter, not just the number of heads or embedding dimension.
Proposed method
- Propose a fixed head size setting where each attention head operates in a subspace of size equal to the input sequence length.
- Decouple head size from the number of heads and embedding dimension, allowing arbitrary head counts without rank constraints.
- Prove theoretically (Theorem 1) that head size below sequence length induces a low-rank bottleneck, reducing representation power.
- Demonstrate that increasing head size improves performance monotonically, unlike increasing the number of heads alone.
- Train and evaluate models with fixed head size on LM1B, SQuAD, and MNLI benchmarks using smaller embedding dimensions.
- Compare performance against standard models using the conventional head size heuristic (scaling with number of heads).
Experimental results
Research questions
- RQ1Why do modern Transformer models require large embedding dimensions despite architectural advancements?
- RQ2How does reducing head size with increasing number of heads affect the representation capacity of multi-head attention?
- RQ3Can fixing the head size to the input sequence length eliminate the low-rank bottleneck in attention heads?
- RQ4Does a fixed head size enable better performance scaling with fewer parameters?
- RQ5Is head size a more important capacity control parameter than the number of heads or embedding dimension?
Key findings
- The standard head size heuristic (scaling inversely with number of heads) creates a low-rank bottleneck that limits representation power, as proven in Theorem 1.
- Models with fixed head size (128) and smaller embedding size (256) outperform standard models with larger embedding size (512) on language modeling tasks.
- On SQuAD and MNLI, fixed head size models with 512 embedding size and 8–32 heads achieve higher F1 and accuracy than standard BERT-Large (1024 embedding size).
- Performance improves monotonically with increasing number of heads when head size is fixed, unlike in standard models where performance drops after a threshold.
- Increasing head size from 32 to 128 improves performance significantly, confirming head size as a key capacity parameter.
- The fixed head size approach allows training smaller models with fewer parameters while maintaining or improving performance, reducing inference cost.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.