Reproduce “On Limitations of the Transformer Architecture” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Binghui Peng, Srini Narayanan, Christos Papadimitriou

The paper theoretically demonstrates that Transformer architectures face fundamental limitations in performing function composition and general compositional tasks, attributing issues like hallucinations in LLMs to information bottlenecks in self-attention and inherent logarithmic space constraints. It provides quantitative error bounds for single-layer composition and identifies scaling challenges for Chain-of-Thought prompting in iterated compositions.

Key insights

  • The self-attention mechanism's softmax computation creates an information bottleneck, limiting the non-local information a single Transformer layer can aggregate for function composition.
  • Chain-of-Thought prompting, while beneficial, exhibits theoretical scaling limitations for deeply iterated compositional tasks, requiring a large number of steps related to domain size.
  • Transformers, functioning as logarithmic space machines, are fundamentally constrained from solving certain crucial compositional tasks (e.g., Derivability, Circuit Evaluation) for large enough instances, consistent with complexity theory conjectures.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.