We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cs.CL

Change to browse by:

References & Citations

DBLP - CS Bibliography

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo

Computer Science > Computational Complexity

Title: The Parallelism Tradeoff: Limitations of Log-Precision Transformers

Abstract: 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 the number of input tokens (and whose feedforward nets are computable using space linear in their input) can be simulated by constant-depth logspace-uniform threshold circuits. This provides insight on the power of transformers using known results in complexity theory. For example, if $\mathsf L \neq \mathsf P$ (i.e., not all poly-time problems can be solved using logarithmic space), then transformers cannot even accurately solve linear equalities or check membership in an arbitrary context-free grammar with empty productions. Our result intuitively emerges from the transformer architecture's high parallelizability. We thus speculatively introduce the idea of a fundamental parallelism tradeoff: any model architecture as parallelizable as the transformer will obey limitations similar to it. Since parallelism is key to training models at massive scale, this suggests a potential inherent weakness of the scaling paradigm.
Comments: Accepted at TACL. Formerly entitled "Log-Precision Transformers are Constant-Depth Threshold Circuits". Updated with minor corrections in Section 2 (Implications) on March 6, 2023. Update with minor edits to the proof of Lemma 3 on April 26, 2023
Subjects: Computational Complexity (cs.CC); Computation and Language (cs.CL)
Cite as: arXiv:2207.00729 [cs.CC]
  (or arXiv:2207.00729v4 [cs.CC] for this version)

Submission history

From: William Merrill [view email]
[v1] Sat, 2 Jul 2022 03:49:34 GMT (51kb)
[v2] Tue, 21 Feb 2023 05:45:52 GMT (369kb,D)
[v3] Tue, 7 Mar 2023 23:07:38 GMT (369kb,D)
[v4] Wed, 26 Apr 2023 22:34:12 GMT (369kb,D)

Link back to: arXiv, form interface, contact.