自回归大语言模型具有计算通用性
Autoregressive Large Language Models are Computationally Universal
AI总结:
该研究证明基于Transformer的自回归大语言模型无需修改权重,通过扩展自回归解码和系统提示即可模拟通用图灵机,具备计算通用性。
摘要:
我们证明,基于Transformer的语言模型的自回归解码无需外部干预或修改模型权重即可实现通用计算。要确立这一结论,需要理解语言模型如何利用有限上下文处理任意长的输入。为此,我们考虑了一种自回归解码的推广形式:给定长输入时,随着上下文窗口向前移动,生成的token会被追加到序列末尾。我们首先证明,由此产生的系统对应一种经典计算模型——Lag系统,该系统早已被证明具有计算通用性。借助一种新的证明方法,我们证明一台通用图灵机可由拥有2027条产生式规则的Lag系统模拟。随后我们研究了现有大语言模型是否能模拟这种通用Lag系统的行为。我们给出了肯定答案:可为gemini-1.5-pro-001设计单个系统提示词,在确定性(贪心)解码下驱动该模型正确应用全部2027条产生式规则。我们得出结论:根据丘奇-图灵论题,采用扩展自回归(贪心)解码、经提示引导的gemini-1.5-pro-001是一台通用计算机。
英文摘要:
We show that autoregressive decoding of a transformer-based language model can realize universal computation, without external intervention or modification of the model's weights. Establishing this result requires understanding how a language model can process arbitrarily long inputs using a bounded context. For this purpose, we consider a generalization of autoregressive decoding where, given a long input, emitted tokens are appended to the end of the sequence as the context window advances. We first show that the resulting system corresponds to a classical model of computation, a Lag system, that has long been known to be computationally universal. By leveraging a new proof, we show that a universal Turing machine can be simulated by a Lag system with 2027 production rules. We then investigate whether an existing large language model can simulate the behaviour of such a universal Lag system. We give an affirmative answer by showing that a single system-prompt can be developed for gemini-1.5-pro-001 that drives the model, under deterministic (greedy) decoding, to correctly apply each of the 2027 production rules. We conclude that, by the Church-Turing thesis, prompted gemini-1.5-pro-001 with extended autoregressive (greedy) decoding is a general purpose computer.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。