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

Karthik Viswanathan, Plamen Dimitrov, Stefano Rocca, Sarayu Sirikonda

For the paper’s one-layer, attention-only transformer on Boolean inputs with a dedicated query token and linear threshold readout, the autonomous core results characterize head complexity by sums of admissible linear-fractional functions, bound it below by threshold degree, and determine it exactly for symmetric Boolean functions by the number of sign changes. In particular, n-bit parity requires exactly n heads.

What was already known

Prior transformer-expressivity work gives lower bounds and studies related architectures. Hsu and Xu obtain a concurrent symmetric-function characterization without positional embeddings; Rajaraman and collaborators also study head complexity. This record covers the stated additive token/position model and its autonomous core, without claiming exclusive priority.

How the result developed

  1. 18 Oct 2026 · Manuscript date [1]

    Karthik Viswanathan, Plamen Dimitrov, Stefano Rocca, and Sarayu Sirikonda reported the AI-assisted result in this manuscript.

Follow new evidence and revisions to this result.

Get email updates

Download contribution history

Contribution Assessment

AI involvementAI-autonomous
ImportanceNotable
Technical verificationFormal (Lean)
Human understandingFew

AI involvement

The researchers specified the mathematical model and acceptance criteria. They describe the source of the normal form, lower bound and exact characterization. The theorems in Section 2 were generated by a single GPT-5.6 Sol agent running in a Codex Desktop sandbox. They later selected and checked the formal statements and reorganized the code.

Importance

Provides exact architectural-resource bounds in a well-defined Boolean attention model, including a normal-form characterization and matching symmetric-function bounds.

Technical verification

The paper reports complete Lean checking of the core results and expert review of statement fidelity. The pinned formalization maps the normal-form and symmetric-head theorems to exact Lean declarations; the checking execution date is undocumented.

Machine checking

The paper reports complete Lean checking of the core results and expert review of statement fidelity. The pinned formalization maps the normal-form and symmetric-head theorems to exact Lean declarations; the checking execution date is undocumented.

Checker
Project authors: Lean 4 kernel checks and expert statement review
Scope
The general-n core theorems, including HStar_eq_Lfrac and HStar_symmetricFn_eq_signChanges, under the formalized head model. The project reports only standard Lean axioms; the paper describes human expert statement-fidelity review.
Basis
Source-reported

Human understanding

No named human account explaining the scoped central reasoning was established. Few is the documentation default, not a finding that people cannot understand it.

View revision history
· addition

Added the research timeline.

· addition

Added a source excerpt documenting AI involvement.

· publication

Added the sourced result with its exact hypotheses, prior work, AI contribution and checking scope.