arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.02393cs.LGcs.CC
收藏

硬注意力 Transformer 中思维链推理的下界

Lower Bounds for Chain-of-Thought Reasoning in Hard-Attention Transformers

Sharif University of Technology(沙里夫技术大学);Saarland University(萨尔兰大学)

Alireza Amiri, Xinting Huang, Mark Rofin, Michael Hahn

AI总结:

本研究在硬注意力机制下系统探讨了不同算法问题中思维链步数的下界,提供了对数因子内紧致的界限,深化了对思维链推理能力与局限的理解。

摘要:

思维链推理与草稿本已成为增强 Transformer 计算能力的关键工具。尽管理论结果表明,多项式长度的草稿本可将 Transformer 的表达能力从 $TC^0$ 扩展至 $PTIME$,但其所需长度仍鲜为人知。实证证据甚至表明,Transformer 在处理 Parity 或 Multiplication 等 $TC^0$ 中的许多问题时也需要草稿本,这挑战了由电路复杂性得出的乐观界限。在本研究中,我们着手在硬注意力机制下,系统研究不同算法问题中思维链步数的下界。我们探讨了多种算法问题,并提供了对数因子内紧致的界限。总体而言,这些结果有助于深入理解思维链推理的能力与局限。

英文摘要:

Chain-of-thought reasoning and scratchpads have emerged as critical tools for enhancing the computational capabilities of transformers. While theoretical results show that polynomial-length scratchpads can extend transformers' expressivity from $TC^0$ to $PTIME$, their required length remains poorly understood. Empirical evidence even suggests that transformers need scratchpads even for many problems in $TC^0$, such as Parity or Multiplication, challenging optimistic bounds derived from circuit complexity. In this work, we initiate the study of systematic lower bounds for the number of chain-of-thought steps across different algorithmic problems, in the hard-attention regime. We study a variety of algorithmic problems, and provide bounds that are tight up to logarithmic factors. Overall, these results contribute to emerging understanding of the power and limitations of chain-of-thought reasoning.

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

↑