paper-with-me

Papers

Characterizing the Expressivity of Transformer Language Models

2025-05-29 · Jiaoda Li, Ryan Cotterell

Transformer-based language models (LMs) have achieved widespread empirical success, but their theoretical expressive power remains only partially understood. Prior work often relies on idealized models with assumptions -- such as arbitrary numerical precision and hard attention -- that diverge from real-world transformers. In this work, we provide an exact characterization of fixed-precision transformers with strict future masking and soft attention, an idealization that more closely mirrors practical implementations. We show that these models are precisely as expressive as a specific fragment of linear temporal logic that includes only a single temporal operator: the past operator. We further relate this logic to established classes in formal language theory, automata theory, and algebra, yielding a rich and unified theoretical framework for understanding transformer expressivity. Finally, we present empirical results that align closely with our theory: transformers trained on languages within their theoretical capacity generalize perfectly over lengths, while they consistently fail to generalize on languages beyond it.

📄 PDF Abstract BibTeX arXiv:2505.23623

Code (0)

등록된 구현이 없습니다.

Tasks

Hard Attention

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음
ALIGN In the ALIGN method, visual and language representations are jointly trained from noisy image alt-text data. The image and text encoders are learned via contrastive loss…

Similar Papers 제목 키워드 기반

Tighter Bounds on the Expressivity of Transformer Encoders

2023-01-25 · David Chiang, Peter Cholak, Anand Pillay

Characterizing neural networks in terms of better-understood formal systems has the potential to yield new insights into the power and limitations of these networks. Doing so for transformers remains an active area of re…

Characterizing the Expressivity of Local Attention in Transformers

2026-05-01 · Jiaoda Li, Ryan Cotterell arxiv

The transformer is the most popular neural architecture for language modeling. The cornerstone of the transformer is its global attention mechanism, which lets the model aggregate information from all preceding tokens be…

Probability Distributions Computed by Autoregressive Transformers

2025-10-31 · Andy Yang, Anej Svete, Jiaoda Li, Anthony Widjaja Lin 외 arxiv

Most expressivity results for transformers treat them as language recognizers -- devices that accept or reject strings -- rather than as they are used in practice: as language models that generate strings autoregressivel…

Circuit Complexity Bounds for RoPE-based Transformer Architecture

2024-11-12 · Bo Chen, Xiaoyu Li, YIngyu Liang, Jiangxuan Long 외

Characterizing the express power of the Transformer architecture is critical to understanding its capacity limits and scaling law. Recent works provide the circuit complexity bounds to Transformer-like architecture. On t…

Position

What Expressivity Theory Misses: Message Passing Complexity for GNNs

2025-09-01 · Niklas Kemper, Tom Wollschläger, Stephan Günnemann arxiv

Expressivity theory, characterizing which graphs a GNN can distinguish, has become the predominant framework for analyzing GNNs, with new models striving for higher expressivity. However, we argue that this focus is misg…