mlsanityData to 24 Nov 2026

Formally Verified Autoresearch for Analyzing the Expressivity of Multi-Head Attention

arXiv 2610.25341 ↗Submitted 18 Oct 2026cs.CC cs.AI cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Multi-head attention is a central component of the transformer architecture, yet how its expressivity depends on the number of heads remains poorly understood. We study a one-layer, attention-only transformer with additive positional embeddings and define the head complexity H^ast(f) of a Boolean function f as the minimum number of attention heads required to represent it. We derive an exact linear-fractional normal form for head complexity, prove a general threshold-degree lower bound, and give an explicit ten-bit function for which this bound is strict. For symmetric Boolean functions, we independently show that head complexity equals the number of times the function changes value between consecutive Hamming-weight levels, even when positional embeddings are allowed. This agrees with the concurrent characterization of Hsu and Xu (arXiv:2608.04243) in a model without positional embeddings. The symmetric lower bound combines our general threshold-degree bound with the classical result of Aspnes et al. (1994). These results were discovered and formalized by a frontier model through conjecture generation, theorem proving, and machine verification, while human researchers asked the high-level questions and reviewed the generated theorems. We make the Lean formalization and research traces publicly available to support agent-assisted theorem proving and formal verification in mechanistic interpretability. This work provides a proof of concept for using the capabilities of frontier models, grounded by formal verification, to develop an understanding of transformer architectures.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 18 of its 28 references that are in the map. Submitted 18 Oct 2026.

Builds on

18 of 28 references.

References · 18

  1. 2017Attention Is All You Needcited by 62,125
  2. 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,607
  3. 2023Progress measures for grokking via mechanistic interpretabilitycited by 919
  4. 2023LeanDojo: Theorem Proving with Retrieval-Augmented Language Modelscited by 457
  5. 2019Theoretical Limitations of Self-Attention in Neural Sequence Modelscited by 299
  6. 2021Thinking Like Transformerscited by 201
  7. 2023A mathematical perspective on Transformerscited by 186
  8. 2023Are Transformers with One Layer Self-Attention Using Low-Rank Weight Matrices Universal Approximators?cited by 53
  9. 2024Counting Like Transformers: Compiling Temporal Counting Logic Into Softmax Transformerscited by 44
  10. 2025The Intrinsic Dimension of Prompts in Internal Representations of Large Language Modelscited by 20
  11. 2025Constrained belief updates explain geometric structures in transformer representationscited by 18
  12. 2026From Directions to Regions: Decomposing Activations in Language Models via Local Geometrycited by 14
6 more
  1. 2026Seven simple steps for log analysis in AI systemscited by 7
  2. 2026Parity, Sensitivity, and Transformerscited by 6
  3. 2026Attention-based representations for multi-task computationcited by 4
  4. 2026The Head Complexity of Boolean Functions in Single-Layer Attentioncited by 3
  5. 2026Understanding the Parameter Space Geometry of Transformers Encoding Boolean Functionscited by 2
  6. 2026Lower bounds for one-layer transformers that compute paritycited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Towards Understanding the Nature of Attention with Low-Rank Sparse Decomposition
  2. 2021Saturated Transformers are Constant-Depth Threshold Circuits
  3. 2026A Provable Expressiveness Hierarchy in Hybrid Linear-Full Attention
  4. 2026Capacity-Controlled Global Attention for Graph Transformers
  5. 2026Quantifying LLM Attention-Head Stability: Implications for Circuit Universality
  6. 2026Positional versus Symbolic Attention Heads: Learning Dynamics, RoPE Geometry, and Length Generalization
  7. 2025Minimalist Softmax Attention Provably Learns Constrained Boolean Functions
  8. 2026Rational Transductors