arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.14699cs.LGcs.AIcs.LOcs.PL
收藏

Transformer 能否学会递归地解决问题?

Can Transformers Learn to Solve Problems Recursively?

University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);EleutherAI;Booz Allen Hamilton(博思艾伦汉密尔顿)

Shizhuo Dylan Zhang, Curt Tigges, Stella Biderman, Maxim Raginsky, Talia Ringer

AI总结:

本文通过机制可解释性视角研究 transformer 模型学习结构递归函数的能力,发现并重建了模型使用的“捷径”算法,能预测91%的失败案例,为理解神经网络在其训练任务上的失败行为提供了新基础。

摘要:

近年来,神经网络在帮助软件工程师编写程序甚至形式化验证程序方面展现出了潜力。虽然语义信息在这些过程中起着至关重要的作用,但目前尚不清楚 transformer 等流行的神经架构在多大程度上能够建模这些信息。本文通过机制可解释性的视角,考察了神经网络学习与程序和形式化验证证明相关算法的行为,特别关注结构递归。结构递归是目前符号工具优于神经模型的任务的核心,例如推断数据类型之间的语义关系以及模拟程序行为。我们评估了 transformer 模型从输入输出示例中学习模拟结构递归函数行为的能力。我们的评估包括对 transformer 模型在近似这些函数时的局限性和能力的经验和概念分析,以及对模型学习到的“捷径”算法的重建。通过重建这些算法,我们能够正确预测其中一个近似函数 91% 的失败案例。我们的工作为理解未能解决其训练任务的神经网络行为提供了新的基础。

英文摘要:

Neural networks have in recent years shown promise for helping software engineers write programs and even formally verify them. While semantic information plays a crucial part in these processes, it remains unclear to what degree popular neural architectures like transformers are capable of modeling that information. This paper examines the behavior of neural networks learning algorithms relevant to programs and formal verification proofs through the lens of mechanistic interpretability, focusing in particular on structural recursion. Structural recursion is at the heart of tasks on which symbolic tools currently outperform neural models, like inferring semantic relations between datatypes and emulating program behavior. We evaluate the ability of transformer models to learn to emulate the behavior of structurally recursive functions from input-output examples. Our evaluation includes empirical and conceptual analyses of the limitations and capabilities of transformer models in approximating these functions, as well as reconstructions of the ``shortcut" algorithms the model learns. By reconstructing these algorithms, we are able to correctly predict 91 percent of failure cases for one of the approximated functions. Our work provides a new foundation for understanding the behavior of neural networks that fail to solve the very tasks they are trained for.

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

↑