Cited by 35semigroups and automata theoryComplexity and Algorithms in GraphsComputability, Logic, AI Algorithms

Saturated Transformers are Constant-Depth Threshold Circuits

Open access
Merrill, William, Sabharwal, Ashish, Smith, Noah A.·2022·Transactions of the Association for Computational Linguistics

Abstract

Transformers have become a standard neural network architecture for many NLP problems, motivating theoretical analysis of their power in terms of formal languages. Recent work has shown that transformers with hard attention are quite limited in power (Hahn, 2020), as they can be simulated by constant-depth AND/OR circuits (Hao et al., 2022). However, hard attention is a strong assumption, which may complicate the relevance of these results in practice. In this work, we analyze the circuit complexity of transformers with saturated attention: a generalization of hard attention that more closely captures the attention patterns learnable in practical transformers. We first show that saturated transformers transcend the known limitations of hard-attention transformers. We then prove saturated transformers with floating-point values can be simulated by constant-depth threshold circuits, giving the class TC0 as an upper bound on the formal languages they recognize.

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1162/tacl_a_00493

Cites

26 of 26 references verified0 citation errors · 0 not checkable

Statistics

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • Standard transformers, even with ideal parameters, cannot perfectly solve many sequential reasoning problems at scale, such as simulating finite-state machines, deciding whether nodes in a graph are connected, or solving matrix equalities.

    “They have shown that standard transformers, even with ideal parameters, cannot perfectly solve many sequential reasoning problems at scale, such as simulating finite-state machines, deciding whether nodes in a graph are connected, or solving matrix equalities.”

    From The expressive power of transformers with chain of thought (2023) · cites this paper as Merrill et al., 2022

    Section 2 (Roadmap) says that saturated transformers with floating-point values can recognize only languages in TC0, supporting a qualified limit on their computational power. But §4 (Circuit Complexity) says it is unknown whether TC0 contains all regular languages, and the paper does not establish that transformers cannot solve the listed finite-state, graph-connectivity, or matrix-equality tasks. The claim turns a model-specific upper bound into categorical impossibility claims about standard transformers. (LLM, conf=0.88)

    Experimental — accuracy not yet measured
  • Merrill et al. (2022) studied a binary-only version of the mode task and demonstrated strong length generalization.

    “Merrill et al. (2022) studied a binary-only version of this task and demonstrated strong length generalization.”

    From What Algorithms can Transformers Learn? A Study in Length Generalization (2023) · cites this paper as Merrill et al. (2022)

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Cites

Flagged first, then by citations

2 of the 28 references couldn’t be matched to a known paper.

Research works printed but not linked: 1

  1. Liliana Cojocaru. 2016. Advanced Studies on the Complexity of Formal Languages. Ph.D. thesis, University of Tampere.

Cited by

Sorted by citations

Authors
Merrill, W., Sabharwal, A., & Smith, N. A.
Affiliations
  • Allen Institute for Artificial Intelligence (US)
  • University of Washington (US)
Corresponding author
  • Merrill, William
  • Sabharwal, Ashish
  • Smith, Noah A.
Venue
Transactions of the Association for Computational Linguistics
Publisher
MIT Press
Published
2022
Volume
10
Pages
843-856
ISSN
2307-387X (ISSN-L)
OpenAlex
W4290994975
Cited by
25
References
28
Citations by year
2026: 5 · 2025: 5 · 2024: 3 · 2023: 11 · 2022: 1
FWCI
2.61
Type
journal article
Language
en
Open access
Locations
  • Transactions of the Association for Computational Linguistics (publishedVersion, cc-by)
  • arXiv (Cornell University) (submittedVersion)
  • DOAJ (DOAJ: Directory of Open Access Journals) (submittedVersion)
  • arXiv (Cornell University)
Topics
  • Physical Sciences › Computer Science › Computational Theory and Mathematics › semigroups and automata theory
  • Physical Sciences › Computer Science › Computational Theory and Mathematics › Complexity and Algorithms in Graphs
  • Physical Sciences › Computer Science › Computational Theory and Mathematics › Computability, Logic, AI Algorithms
Keywords
transformer models, threshold circuits, TC0, circuit complexity, formal languages, hard attention, floating-point arithmetic

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review