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

Transformers作为语言的软推理

Transformers as Soft Reasoners over Language

Allen Institute for AI(艾伦人工智能研究所)

Peter Clark, Oyvind Tafjord, Kyle Richardson

摘要:

从McCarthy的Advice Taker(1959)开始,AI追求的目标是提供一个具有明确的一般知识的系统,并让系统对这些知识进行推理。然而,表达的知识在一个正式的(逻辑或概率)表示一直是一个主要的障碍,这项研究。本文研究了一种现代的方法来解决这个问题,其中的事实和规则提供的自然语言句子,从而绕过了正式的表示。我们训练Transformers使用综合生成的数据对这些句子进行推理(或模拟推理)。我们的模型,我们称之为RuleTakers,提供了第一个经验证明,这种对语言的软推理是可学习的,可以达到高(99%)的准确率,并推广到测试数据,需要比训练期间更深的链接(95%+分数)。我们还表明,模型转移到两个手工编写的规则库,并解释成更多的自然语言的规则库。这些发现是重要的,因为它表明了Transformers的新作用,即作为有限的“软定理证明器”在语言中的明确理论操作。这反过来又为问答中的可解释性、可纠正性和反事实推理提供了新的可能性。

英文摘要:

Beginning with McCarthy's Advice Taker (1959), AI has pursued the goal of providing a system with explicit, general knowledge and having the system reason over that knowledge. However, expressing the knowledge in a formal (logical or probabilistic) representation has been a major obstacle to this research. This paper investigates a modern approach to this problem where the facts and rules are provided as natural language sentences, thus bypassing a formal representation. We train transformers to reason (or emulate reasoning) over these sentences using synthetically generated data. Our models, that we call RuleTakers, provide the first empirical demonstration that this kind of soft reasoning over language is learnable, can achieve high (99%) accuracy, and generalizes to test data requiring substantially deeper chaining than seen during training (95%+ scores). We also demonstrate that the models transfer well to two hand-authored rulebases, and to rulebases paraphrased into more natural language. These findings are significant as it suggests a new role for transformers, namely as limited "soft theorem provers" operating over explicit theories in language. This in turn suggests new possibilities for explainability, correctability, and counterfactual reasoning in question-answering.

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

↑