paper-with-me

홈 › Papers

Transformers, parallel computation, and logarithmic depth

2024-02-14 · Clayton Sanford, Daniel Hsu, Matus Telgarsky

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.

📄 PDF Abstract BibTeX arXiv:2402.09268

Code (1)

chsanford/hop-induction-heads 공식 구현 pytorch

Similar Papers 제목 키워드 기반

The Parallelism Tradeoff: Limitations of Log-Precision Transformers

2022-07-02 · William Merrill, Ashish Sabharwal

Despite their omnipresence in modern NLP, characterizing the computational power of transformer neural nets remains an interesting open question. We prove that transformers whose arithmetic precision is logarithmic in th…

Open-Ended Question Answering

Positional Attention: Expressivity and Learnability of Algorithmic Computation

2024-10-02 · Artur Back de Luca, George Giapitzakis, Shenghao Yang, Petar Veličković 외

There is a growing interest in the ability of neural networks to execute algorithmic tasks (e.g., arithmetic, summary statistics, and sorting). The goal of this work is to better understand the role of attention in Trans…

Out-of-Distribution Generalization

Exact Expressive Power of Transformers with Padding

2025-05-25 · William Merrill, Ashish Sabharwal

Chain of thought is a natural inference-time method for increasing the computational power of transformer-based large language models (LLMs), but comes at the cost of sequential decoding. Are there more efficient alterna…

Hard Attention

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…

Parallel Recursive LSTM

2026-05-16 · Tristan Gaudreault, Yongyi Mao arxiv

Transformers have become the dominant architecture for sequence modeling by using self-attention to enable expressive and highly parallel processing. However, the resulting quadratic time and memory costs limit efficienc…