mlsanityData to 7 Oct 2026

Attention-based representations for multi-task computation

arXiv 2608.04243 ↗First posted 4 Aug 2026cs.LG cs.AI cs.CCcited by 1

Not on the map. Why?

Abstract (arXiv)

Multi-head attention layers produce vector representations that support multiple downstream tasks. We establish bounds on the number of heads required in two simple and concrete multi-task scenarios. In the first scenario, a vector representation is sought so that linear predictors can compute both the smallest and largest numbers in a given list. In this case, it is known two attention heads with small embedding dimension and bit precision level suffice. We prove that a single attention head requires exponentially higher embedding dimension or precision level. In the second scenario, a vector representation is sought so that a polynomial threshold function can compute the XOR of a given string of n bits. This scenario is analogous to the first one for n=2, since XOR is readily computed by a linear function using a vector representation that encodes both the AND and the OR of the two bits. We observe that n-bit XOR requires the product of the number of heads and the polynomial degree to be at least n, and we construct multi-head attention layers that match this lower bound. These results generalize to arbitrary (symmetric) Boolean functions, where the bound is given in terms of the threshold degree.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 20 of its 30 references that are in the map. First posted on arXiv 4 Aug 2026.

Builds on

20 of 30 references.

References · 20

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2017A Structured Self-attentive Sentence Embeddingcited by 318
  4. 2019Theoretical Limitations of Self-Attention in Neural Sequence Modelscited by 286
  5. 2022Transformers Learn Shortcuts to Automatacited by 260
  6. 2016A Decomposable Attention Model for Natural Language Inferencecited by 214
  7. 2020Few-Shot Learning via Learning the Representation, Provablycited by 213
  8. 2022The Parallelism Tradeoff: Limitations of Log-Precision Transformerscited by 191
  9. 2020Provable Meta-Learning of Linear Representationscited by 161
  10. 2023Representational Strengths and Limitations of Transformerscited by 132
  11. 2022Formal Language Recognition by Hard Attention Transformers: Perspectives from Circuit Complexitycited by 92
  12. 2023Tighter Bounds on the Expressivity of Transformer Encoderscited by 65
8 more
  1. 2024On Limitations of the Transformer Architecturecited by 63
  2. 2025A Little Depth Goes a Long Way: The Expressive Power of Log-Depth Transformerscited by 49
  3. 2023Are Transformers with One Layer Self-Attention Using Low-Rank Weight Matrices Universal Approximators?cited by 46
  4. 2024Theoretical limitations of multi-layer Transformercited by 43
  5. 2024One-layer transformers fail to solve the induction heads taskcited by 30
  6. 2025The Effect of Attention Head Count on Transformer Approximationcited by 4
  7. 2024Lower bounds on transformers with infinite precisioncited by 3
  8. 2025A Capacity-Based Rationale for Multi-Head Attentioncited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.