arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.02729cs.CLcs.LG
收藏

连接链网络:Transformer中多头注意力的逻辑推理观

Join-Chain Network: A Logical Reasoning View of the Multi-head Attention in Transformer

Duke University(杜克大学);Tencent AI Lab(腾讯人工智能实验室)

Jianyi Zhang, Yiran Chen, Jianshu Chen

摘要:

开发能够进行逻辑推理的神经架构对于广泛的应用(例如,自然语言处理)。为了实现这一宏伟目标,我们提出了一个符号推理架构,链接许多连接运算符在一起,以模拟输出逻辑表达式。特别是,我们证明了这样的合奏的连接链可以表示一个广泛的子集的“树结构”的一阶逻辑表达式,名为FOET,这是特别有用的建模自然语言。为了赋予它可微的学习能力,我们仔细研究了各种神经算子近似的符号连接链。有趣的是,我们发现Transformer中广泛使用的多头自注意模块可以理解为一种特殊的神经算子,它实现了概率谓词空间中连接算子的联合界。我们的分析不仅为BERT等预训练模型用于自然语言理解的机制提供了新的视角,而且还提出了几个重要的未来改进方向。

英文摘要:

Developing neural architectures that are capable of logical reasoning has become increasingly important for a wide range of applications (e.g., natural language processing). Towards this grand objective, we propose a symbolic reasoning architecture that chains many join operators together to model output logical expressions. In particular, we demonstrate that such an ensemble of join-chains can express a broad subset of ''tree-structured'' first-order logical expressions, named FOET, which is particularly useful for modeling natural languages. To endow it with differentiable learning capability, we closely examine various neural operators for approximating the symbolic join-chains. Interestingly, we find that the widely used multi-head self-attention module in transformer can be understood as a special neural operator that implements the union bound of the join operator in probabilistic predicate space. Our analysis not only provides a new perspective on the mechanism of the pretrained models such as BERT for natural language understanding but also suggests several important future improvement directions.

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

↑