Transformer的推理能力有多远?全局性障碍与归纳式草稿板
How Far Can Transformers Reason? The Globality Barrier and Inductive Scratchpad
AI总结:
该研究提出目标分布的全局性程度概念,证明高全局性分布难以被Transformer高效学习,同时开发归纳式草稿板技术,既能打破全局性障碍,又能提升分布外泛化能力,部分算术任务长度泛化可达6倍。
摘要:
Transformer能否通过组合已有的三段论来预测新的三段论?更普遍地说,这类模型从零开始可以学习何种类型的目标?近期研究表明,Transformer在表达能力上可达到图灵完备,但这并未解决可学习性的目标。本文提出目标分布的“全局性程度”概念,以刻画常规Transformer何时能高效实现弱学习。该度量与本文进一步研究的、由$TC^0/TC^1$类所刻画的Transformer表达能力结果形成对比,因为全局性与更受限的$NC^0$类的相关性有关。我们在额外假设下通过实验和理论证明,具有高全局性的分布无法被高效学习。具体而言,三段论无法在长链上进行组合。此外,我们开发了草稿板技术并证明:(i) 不可知草稿板无法打破全局性障碍;(ii) 有知识的草稿板可通过中间步骤打破全局性,但并非所有此类草稿板都能实现分布外(OOD)泛化;(iii) 一种能更高效组合先验信息的“归纳式草稿板”概念,既能打破全局性障碍,又能提升OOD泛化能力。具体来说,根据输入格式的不同,我们的部分归纳式草稿板在一些算术任务上可实现高达6倍的长度泛化。
英文摘要:
Can Transformers predict new syllogisms by composing established ones? More generally, what type of targets can be learned by such models from scratch? Recent works show that Transformers can be Turing-complete in terms of expressivity, but this does not address the learnability objective. This paper puts forward the notion of 'globality degree' of a target distribution to capture when weak learning is efficiently achievable by regular Transformers. This measure shows a contrast with the expressivity results of Transformers captured by $TC^0/TC^1$ classes (further studied here), since the globality relates to correlations with the more limited $NC^0$ class. We show here experimentally and theoretically under additional assumptions that distributions with high globality cannot be learned efficiently. In particular, syllogisms cannot be composed on long chains. Further, we develop scratchpad techniques and show that: (i) agnostic scratchpads cannot break the globality barrier, (ii) educated scratchpads can break the globality with intermediate steps, although not all such scratchpads can generalize out-of-distribution (OOD), (iii) a notion of 'inductive scratchpad', that composes the prior information more efficiently, can both break the globality barrier and improve the OOD generalization. In particular, some of our inductive scratchpads can achieve length generalizations of up to $6\times$ for some arithmetic tasks depending on the input formatting.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。