用可解释的符号程序让Transformer学会抽象符号处理
Mechanisms of Symbol Processing for In-Context Learning in Transformer Networks
- 设计可编程的符号语言PSL,让Transformer按规则执行抽象操作
- 在无语义的模板生成任务中实现100%可解释的符号计算
- 揭示了Transformer符号能力的机制与局限,适合研究者参考
大型语言模型在上下文学习中展现出惊人的符号处理能力,这挑战了传统神经网络无法掌握抽象符号操作的观点。本文通过借鉴符号人工智能和认知科学中的产生式系统思想,提出一种高层符号语言PSL,可编写复杂抽象符号程序,并通过编译器将这些程序精确映射到Transformer网络中,实现100%机制可解释。研究基于一个纯抽象的符号任务——模板生成(Templatic Generation, TGT),发现该方法具有图灵完备性,且所生成的Transformer架构为提升符号处理能力提供了新路径。但需强调,本工作关注的是可计算性,而非模型的可学习性。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。