arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.17498cs.AIcs.CLcs.NEcs.SC
收藏

Transformer网络中上下文学习符号处理的机制

Mechanisms of Symbol Processing for In-Context Learning in Transformer Networks

Microsoft Research(微软研究院);Yale University(耶鲁大学);University of Edinburgh(爱丁堡大学);UIUC(伊利诺伊大学厄巴纳-香槟分校)

Paul Smolensky, Roland Fernandez, Zhenghao Herbert Zhou, Mattia Opper, Adam Davies, Jianfeng Gao

AI总结:

本文提出了一种基于生产系统语言PSL的转换器架构,用于提升转换器在符号处理中的能力,展示了其在抽象符号任务中的应用和图灵通用性。

摘要:

大型语言模型(LLMs)通过上下文学习(ICL)展示了在符号处理方面的出色能力。这种成功与几十年来关于人工神经网络无法掌握抽象符号操作的批评形成对比。我们试图了解能够使转换器网络实现稳健符号处理的机制,揭示转换器在符号处理中的意外成功和显著限制。借鉴符号AI和认知科学对生产系统架构强大性的洞察,我们开发了一种高级生产系统语言(PSL),允许我们编写符号程序进行复杂的抽象符号处理,并创建编译器,将PSL程序精确地实现为转换器网络,这些网络通过构造是100%机械可解释的。这项工作由我们开发的纯抽象(无语义)符号任务——模板生成(TGT)所驱动。尽管通过研究TGT开发,我们证明PSL具有高度通用性:它是图灵通用的。我们从PSL程序编译的新转换器架构提出了一些增强转换器在符号处理能力的途径。然而,我们报告的工作解决的是转换器网络的可计算性,而非可学习性。

英文摘要:

Large Language Models (LLMs) have demonstrated impressive abilities in symbol processing through in-context learning (ICL). This success flies in the face of decades of critiques asserting that artificial neural networks cannot master abstract symbol manipulation. We seek to understand the mechanisms that can enable robust symbol processing in transformer networks, illuminating both the unanticipated success, and the significant limitations, of transformers in symbol processing. Borrowing insights from symbolic AI and cognitive science on the power of Production System architectures, we develop a high-level Production System Language, PSL, that allows us to write symbolic programs to do complex, abstract symbol processing, and create compilers that precisely implement PSL programs in transformer networks which are, by construction, 100% mechanistically interpretable. The work is driven by study of a purely abstract (semantics-free) symbolic task that we develop, Templatic Generation (TGT). Although developed through study of TGT, PSL is, we demonstrate, highly general: it is Turing Universal. The new type of transformer architecture that we compile from PSL programs suggests a number of paths for enhancing transformers' capabilities at symbol processing. We note, however, that the work we report addresses computability, and not learnability, by transformer networks. Note: The first section provides an extended synopsis of the entire paper.

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

↑