arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2106.16213cs.CLcs.CCcs.LG
收藏

饱和Transformers是恒定深度阈值电路

Saturated Transformers are Constant-Depth Threshold Circuits

Allen Institute for AI(艾伦人工智能研究所);New York University(纽约大学);University of Washington(华盛顿大学)

William Merrill, Ashish Sabharwal, Noah A. Smith

摘要:

Transformers已经成为许多NLP问题的标准神经网络架构,激发了对它们在形式语言方面的能力的理论分析。最近的研究表明,具有硬注意力的Transformers在功率方面非常有限(Hahn,2020),因为它们可以通过恒定深度的AND/OR电路来模拟(Hao等人,2021)。然而,硬注意是一个强有力的假设,这可能会使这些结果在实践中的相关性复杂化。在这项工作中,我们分析了Transformers的电路复杂性饱和的注意力:硬注意力的概括,更紧密地捕捉到在实际Transformers中学习的注意力模式。我们首先表明,饱和Transformers超越已知的限制硬注意力Transformers。然后,我们证明了饱和Transformers的浮点值可以模拟的恒定深度的阈值电路,给类$\mathsf{TC}^0$作为上界的形式语言,他们承认。

英文摘要:

Transformers have become a standard neural network architecture for many NLP problems, motivating theoretical analysis of their power in terms of formal languages. Recent work has shown that transformers with hard attention are quite limited in power (Hahn, 2020), as they can be simulated by constant-depth AND/OR circuits (Hao et al. 2021). However, hard attention is a strong assumption, which may complicate the relevance of these results in practice. In this work, we analyze the circuit complexity of transformers with saturated attention: a generalization of hard attention that more closely captures the attention patterns learnable in practical transformers. We first show that saturated transformers transcend the known limitations of hard-attention transformers. We then prove saturated transformers with floating-point values can be simulated by constant-depth threshold circuits, giving the class $\mathsf{TC}^0$ as an upper bound on the formal languages they recognize.

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

↑