NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Attention is Turing-Complete

Jorge Pérez, Pablo Barcelo, Javier MarinkovićOpenReview 2021

Abstract

Alternatives to recurrent neural networks, in particular, architectures based on self-attention, are gaining momentum for processing input sequences. In spite of their relevance, the computational properties of such networks have not yet been fully explored.We study the computational power of the Transformer, one of the most paradigmatic architectures exemplifying self-attention. We show that the Transformer with hard-attention is Turing complete exclusively based on their capacity to compute and access internal dense representations of the data.Our study also reveals some minimal sets of elements needed to obtain this completeness result.
BibTeX
@misc{perez2021attention,
  author = {Jorge Pérez and Pablo Barcelo and Javier Marinković},
  title = {{Attention is Turing-Complete}},
  year = {2021},
  url = {https://openreview.net/forum?id=_i2e4J7zIvK},
  howpublished = {OpenReview},
}

Loading related content...

Figure