mlsanityData to 14 Oct 2026

A Compositional Theory of Causally Masked Transformers

arXiv 2607.26988 ↗First posted 29 Jul 2026cs.FL cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

What types of decision problems can a causally masked, finite-precision transformer solve for inputs of arbitrary length? Existing answers often rely on idealized arithmetic, but under finite precision, rounding and evaluation order can change what information attention retains and therefore what the model can compute. We develop an algebraic formalization that derives expressivity directly from the model's implemented dynamics. Its central object is its memory; the finite internal state computed by attention that summarizes the information from the prefix available to all future queries. Each attention head updates its own state independently within a layer, while layers compose hierarchically, providing a uniform route from model assumptions to expressivity bounds. Applying this method to transformers without positional embeddings, we obtain an expressivity hierarchy governed by the attention type under specific numerical semantics. Width-one sliding-window attention supports bounded-suffix memory, while a modified form of soft attention supports irreversible, checklist-like state, and combining the two mechanisms provides an interplay of both. Ordinary left-to-right floating-point soft attention can realize more expressive memory operations than any of the above. Algebraically, the four cases correspond to definite, R-trivial, locally R-trivial, and aperiodic semigroups. Under an explicit free-wiring assumption, all four bounds are tight.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 8 of its 16 references that are in the map. First posted on arXiv 29 Jul 2026.

Builds on

8 of 16 references.

References · 8

  1. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  2. 2021Thinking Like Transformerscited by 184
  3. 2018Online normalizer calculation for softmaxcited by 162
  4. 2021Saturated Transformers are Constant-Depth Threshold Circuitscited by 139
  5. 2023Masked Hard-Attention Transformers Recognize Exactly the Star-Free Languagescited by 49
  6. 2025Characterizing the Expressivity of Fixed-Precision Transformer Language Modelscited by 14
  7. 2026An Algebraic View of the Expressivity of Recurrent Language Modelscited by 2
  8. 2023Bitformer: An efficient Transformer with bitwise operation-based attention for Big Data Analytics at low-cost low-precision devicescited by 1

Built on by

Not cited yet.