paper-with-me

홈 › Papers

A Compositional Theory of Causally Masked Transformers

2026-07-29 · Franz Nowak, Ryan Cotterell, Reda Boumasmoud 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.

📄 PDF Abstract BibTeX arXiv:2607.26988

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

UNCAGE: Contrastive Attention Guidance for Masked Generative Transformers in Text-to-Image Generation

2025-08-07 · Wonjun Kang, Byeongkeun Ahn, Minjae Lee, Kevin Galim 외 arxiv

Text-to-image (T2I) generation has been actively studied using Diffusion Models and Autoregressive Models. Recently, Masked Generative Transformers have gained attention as an alternative to Autoregressive Models to over…

Text-to-Image Generation

CM3: A Causal Masked Multimodal Model of the Internet

2022-01-19 · Armen Aghajanyan, Bernie Huang, Candace Ross, Vladimir Karpukhin 외

We introduce CM3, a family of causally masked generative models trained over a large corpus of structured multi-modal documents that can contain both text and image tokens. Our new causally masked approach generates toke…

ArticlesEntity DisambiguationEntity Linking

Pause Tokens Strictly Increase the Expressivity of Constant-Depth Transformers

2025-05-27 · Charles London, Varun Kanade

Pause tokens, simple filler symbols such as "...", consistently improve Transformer performance on both language and mathematical tasks, yet their theoretical effect remains unexplained. We provide the first formal separ…

When does compositional structure yield compositional generalization? A kernel theory

2024-05-26 · Samuel Lippl, Kim Stachenfeld

Compositional generalization (the ability to respond correctly to novel combinations of familiar components) is thought to be a cornerstone of intelligent behavior. Compositionally structured (e.g. disentangled) represen…

MemorizationRepresentation Learning

Can a Transformer Represent a Kalman Filter?

2023-12-12 · Gautam Goel, Peter Bartlett

Transformers are a class of autoregressive deep learning architectures which have recently achieved state-of-the-art performance in various vision, language, and robotics tasks. We revisit the problem of Kalman Filtering…