arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2410.11396cs.AI
收藏

用自注意力网络实现 Definite 逻辑程序的推导

Implementing Derivations of Definite Logic Programs with Self-Attention Networks

Graduate School of Informatics(情报学研究科);Kyoto University(京都大学);Center for Innovative Research and Education in Data Science(数据科学创新研究与教育中心)

Phan Thi Thanh Thuy, Akihiro Yamamoto

AI总结:

本文提出逻辑推理的限制版本可通过自注意力网络实现,证明了结合 FFNs 的自注意力网络分层结构能为一类逻辑公式实现自顶向下和自底向上的推导,揭示了 LLMs 隐式具备逻辑推理能力。

摘要:

在本文中,我们提出逻辑推理的限制版本可以通过自注意力网络实现。我们的目标是展示由 transformer 网络构建的 LLMs(Large Language Models,大型语言模型)能够进行逻辑推理。我们通过分析作为 transformer 网络主要组件的自注意力网络,来揭示 LLMs 的潜力。我们的方法不基于自然语言语义,而是基于逻辑推理的操作。我们展示了结合前馈网络(FFNs)的自注意力网络分层结构,能够为一类逻辑公式实现自顶向下的推导。我们还表明,对于同一类逻辑公式,自底向上的推导也能被实现。我们相信,我们的结果表明 LLMs 隐式地具备逻辑推理能力。

英文摘要:

In this paper we propose that a restricted version of logical inference can be implemented with self-attention networks. We are aiming at showing that LLMs (Large Language Models) constructed with transformer networks can make logical inferences. We would reveal the potential of LLMs by analyzing self-attention networks, which are main components of transformer networks. Our approach is not based on semantics of natural languages but operations of logical inference. %point of view. We show that hierarchical constructions of self-attention networks with feed forward networks (FFNs) can implement top-down derivations for a class of logical formulae. We also show bottom-up derivations are also implemented for the same class. We believe that our results show that LLMs implicitly have the power of logical inference.

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

↑