arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2404.15758cs.CLcs.AI
收藏

让我们逐点思考:Transformer语言模型中的隐藏计算

Let's Think Dot by Dot: Hidden Computation in Transformer Language Models

Center for Data Science(数据科学中心);New York University(纽约大学)

Jacob Pfau, William Merrill, Samuel R. Bowman

AI总结:

本文研究了语言模型思维链性能提升是否源于额外计算量,发现Transformer可利用无意义填充词元解决复杂算法任务,但需密集监督,并揭示了中间词元可能引发无法审计的隐藏计算风险。

摘要:

语言模型生成的思维链响应在大多数基准测试中提升了性能。然而,这些性能提升在多大程度上可归因于类似人类的任务分解,还是仅仅因为额外词元带来了更多计算量,目前尚不清楚。我们表明,transformers可以使用无意义的填充词元(例如'......')来代替思维链,从而解决在没有中间词元响应时无法解决的两个困难算法任务。然而,我们通过实验发现,学习使用填充词元十分困难,需要特定且密集的监督才能收敛。我们还对填充词元有用的问题类别提供了理论刻画,以一阶公式的量词深度来表示。对于满足此刻画的问题,思维链词元无需提供关于多词元计算中涉及的中间计算步骤的信息。总之,我们的结果表明,额外的词元可以提供独立于词元选择的计算收益。中间词元可以作为填充词元这一事实引发了担忧:大语言模型可能会进行无法审计的隐藏计算,且这些计算正日益脱离观察到的思维链词元。

英文摘要:

Chain-of-thought responses from language models improve performance across most benchmarks. However, it remains unclear to what extent these performance gains can be attributed to human-like task decomposition or simply the greater computation that additional tokens allow. We show that transformers can use meaningless filler tokens (e.g., '......') in place of a chain of thought to solve two hard algorithmic tasks they could not solve when responding without intermediate tokens. However, we find empirically that learning to use filler tokens is difficult and requires specific, dense supervision to converge. We also provide a theoretical characterization of the class of problems where filler tokens are useful in terms of the quantifier depth of a first-order formula. For problems satisfying this characterization, chain-of-thought tokens need not provide information about the intermediate computational steps involved in multi-token computations. In summary, our results show that additional tokens can provide computational benefits independent of token choice. The fact that intermediate tokens can act as filler tokens raises concerns about large language models engaging in unauditable, hidden computations that are increasingly detached from the observed chain-of-thought tokens.

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

↑