A Capacity-Based Rationale for Multi-Head Attention
Abstract
Lay Summary
Imagine a listener at a crowded party trying to follow who is talking to whom. Modern AI language systems face the same challenge through a mechanism called "attention," which links related items in a passage—say, connecting a pronoun to the name it refers to. We asked a basic question: for a fixed budget, how many such links can a single attention layer keep straight before the voices blur together and it starts making mistakes? To find out, we created a clean, controllable test in which the relationships to be learned form a graph the model must recover. We then proved mathematical limits showing that the required budget grows in proportion to the number of relationships divided by how much internal space the model uses to describe each item. This also explained a principle used in every Transformer, the design behind today's large language models: splitting attention into many parallel "heads." Because compact descriptions force unrelated items to share space and create background noise, dividing the work among many smaller listeners cuts the interference—like splitting a party into small conversations. Knowing this limit lets engineers size attention layers by principle rather than by trial and error.