RECORD
Transformers, parallel computation, and logarithmic depth
Machine Learning · Submitted 14 Feb 2024
abstract compiled · 2026-09-23 · no language-model review
The authors' main claim We thus establish parallelism as a key distinguishing property of transformers.
The compiled record
The paper's own sentences, arranged. Each label is drawn from a closed vocabulary; the number beside it is the probability the classifier gave that label. Numbers in the tables are the authors', checked by code. No sentence in this record was written by a model.
Open the compiled record
The abstract, sentence by sentence
We show that a constant number of self-attention layers can efficiently simulate, and be simulated by, a constant number of communication rounds of Massively Parallel Computation. As a consequence, we show that logarithmic depth is sufficient for transformers to solve basic computational tasks that cannot be efficiently solved by several other neural sequence models and sub-quadratic transformer approximations. We thus establish parallelism as a key distinguishing property of transformers.
background contribution method result interpretation main claim
| # | sentence | role | the authors' own work | states the main conclusion | strength |
|---|---|---|---|---|---|
| s0 | We show that a constant number of self-attention layers can efficiently simulate, and be simulated by, a constant number of communication rounds of Massively Parallel Computation. | result 0.85 | 0.93 | 0.45 | asserted 1.00 |
| s1 | As a consequence, we show that logarithmic depth is sufficient for transformers to solve basic computational tasks that cannot be efficiently solved by several other neural sequence models and sub-quadratic transformer approximations. | result 0.92 | 0.92 | 0.44 | asserted 1.00 |
| s2 | We thus establish parallelism as a key distinguishing property of transformers. | interpretation 1.00 | 0.78 | 0.64 | asserted 1.00 |
What was examined, and what was not
- arXiv listing abstract v1
- full text
- figures and tables
- references and citing sentences
- relations to other papers
- P abstract
- S sections
- T body sentences
- C citations
- R cross-paper relations
The paper
Original abstract
We show that a constant number of self-attention layers can efficiently simulate, and be simulated by, a constant number of communication rounds of Massively Parallel Computation. As a consequence, we show that logarithmic depth is sufficient for transformers to solve basic computational tasks that cannot be efficiently solved by several other neural sequence models and sub-quadratic transformer approximations. We thus establish parallelism as a key distinguishing property of transformers.
Human review
References
How the literature uses it
29 arXiv papers cite this in 53 sentences
Papers citing it · 28 sentences without a confident label
Compares with it 4 papers
-
The result follows from <Ref> and the construction for non-looped models from [ref] (restated in <Ref>).
Reasoning with Latent Thoughts: On the Power of Looped Transformers · Looped models can simulate non-looped models · 0.91
-
For $s = O(1)$ specifically, $⌈k/s ⌉= Θ(k)$ matches the serial upper bound, giving a tight $Θ(k)$ characterization in that sub-regime—comparable to RNNs (which are stuck at $Θ(k)$ under [ref] 's conditional lower bound requiring RNN width $O(N/k^6)$).
How Much Cache Does Reasoning Need? Depth-Cache Tradeoffs in KV-Compressed Transformers · Product lower bound (conjectured) · 0.97
-
Compared with several existing multi-hop reasoning benchmarks [ref] , GAR is two-hop.
Benchmarking and Understanding Compositional Relational Reasoning of LLMs · Evaluating LLMs on GAR · 0.96
Cites it as support 3 papers
-
However, Transformers can only sequentially process $𝐡$ a fixed number of times [ref] , limited by their number of layers.
Counting Ability of Large Language Models and Impact of Tokenization · Inductive Counting and Computation · 0.97
-
To solve a given task, there is a theoretical lower bound on the required depth of computation [ref] .
Why Prompt Design Matters and Works: A Complexity Analysis of Prompt Search Space in LLMs · Nature of Inductive Reasoning · 0.97
-
Transformers, on the other hand, process all time steps in parallel, ensuring consistent computational efficiency regardless of sequence length [ref] .
Foundation Models for Time Series: A Survey · Scalability and Parallelism Advantages Over Traditional Architectures · 0.99
Cites it as background 12 papers
-
[ref] proved Transformer–MPC equivalence.
How Much Cache Does Reasoning Need? Depth-Cache Tradeoffs in KV-Compressed Transformers · Related Work · 0.91
-
The expressive power of neural sequence models has been an active area of research, targeting both RNNs and Transformers [ref] .
Separations in the Representational Capabilities of Transformers and Recurrent Architectures · Related Work · 1.00
-
One line of work studies compositional or multi-step reasoning [ref] .
Benchmarking and Understanding Compositional Relational Reasoning of LLMs · Introduction · 0.99
What it cites · 4 sentences without a confident label
Compares with 1 paper
-
By restating Corollary 4.2 of [ref] , we demonstrate a sharp contrast in the abilities of GNNs and transformers to solve graph algorithmic tasks.
What graph neural networks cannot learn: depth vs width · GNNs need polynomial depth for graph connectivity · 0.84
Discussion
Know something about this paper? Leave a comment, or highlight any passage above to comment on it.