The Head Complexity of Boolean Functions in Single-Layer Attention
Not on the map. Why?
Abstract (arXiv)
What can a single layer of self-attention compute? We study head complexity: the minimum number of attention heads required to compute a function in a one-layer attention-only model. We establish an exact hierarchy under this measure: k heads compute k-bit parity but cannot compute (k+1)-bit parity. The lower bound is unconditional in the two resources a transformer might otherwise exploit; it holds at unbounded embedding dimension and unbounded numerical precision. The proof rests on an alternating-sum obstruction: after clearing the softmax denominators, every monomial in the resulting decision polynomial omits at least one of the k+1 input bits, forcing its correlation with parity to vanish. The same obstruction yields lower bounds for related tasks, including the well-studied multi-hop induction-head task. We also establish compactness bounds for embedding dimension and numerical precision. Specifically, a compactness theorem shows that any function computable at all can be computed with embedding dimension and precision bounded by the discrete data of the task, namely, head count, alphabet size, and length. Thus, potentially unbounded dimension or precision provably cannot substitute for heads. Finally, we derive nearly matching universal bounds for general binary functions: 2n heads suffice to compute every n-bit binary function, with one head per monomial in its multilinear expansion, while a counting argument shows almost all such functions require Omega(2n/n2) heads. This lower bound matches the upper bound to within a operatornamepoly(n) factor, even when dimension and precision are unbounded. Together, these results characterize head requirements for Boolean computation in this model.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 0 of its 38 references that are in the map. First posted on arXiv 3 Sep 2026.
Builds on
0 of 38 references.
No references here yet.
Built on by
Citing papers per year: 2026: 2.
2 papers.
- 2026Transformer Heads Looking for Ordercited by 0
- 2026Checking Leakage Witnesses versus Certifying Bounded Non-Leakagecited by 0
- 2026Checking Leakage Witnesses versus Certifying Bounded Non-Leakage26 Sep 2026
- 2026Transformer Heads Looking for Order22 Sep 2026