arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2207.00729cs.CCcs.CL
收藏

并行性权衡:对数精度 Transformer 的局限性

The Parallelism Tradeoff: Limitations of Log-Precision Transformers

Center for Data Science(数据科学中心);New York University(纽约大学);Allen Institute for AI(艾伦人工智能研究所)

William Merrill, Ashish Sabharwal

AI总结:

本文证明对数精度 transformer 可由常数深度 logspace 一致阈值电路模拟,并据此推断高并行架构存在固有的计算能力限制。

摘要:

尽管 transformer 神经网络在现代 NLP 中无处不在,但刻画其计算能力仍是一个有趣的开放问题。我们证明,算术精度相对于输入 token 数量为对数级(且其前馈网络可使用相对于其输入为线性的空间来计算)的 transformer,能够由常数深度、logspace 一致的阈值电路模拟。这借助复杂性理论中的已知结果,为理解 transformer 的能力提供了洞见。例如,如果 L ≠ P(即并非所有多项式时间问题都能用对数空间求解),那么 transformer 甚至无法准确求解线性等式,也无法检查任意带空产生式的上下文无关文法中的成员资格。我们的结果在直观上源于 transformer 架构的高度可并行性。因此,我们推测性地提出一种根本性并行性权衡的思想:任何与 transformer 同样可并行的模型架构,都会受到与之类似的限制。由于并行性是大规模训练模型的关键,这表明扩展范式可能存在一种潜在的固有弱点。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑