arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2009.14786cs.LGcs.AIcs.CLstat.ML
收藏

用Transformers测量神经证明生成中的系统泛化

Measuring Systematic Generalization in Neural Proof Generation with Transformers

Polytechnique Montréal(蒙特利尔综合理工学院);McGill University(麦吉尔大学);Facebook AI Research(脸书人工智能研究院);ElementAI(元素人工智能公司)

Nicolas Gontier, Koustuv Sinha, Siva Reddy, Christopher Pal

摘要:

我们感兴趣的是了解如何以及Transformer语言模型(TLM)可以执行推理任务时,在自然语言的形式编码的知识进行训练。我们调查他们的系统概括能力的逻辑推理任务,在自然语言,其中包括推理的基础上的一阶逻辑证明实体之间的关系。具体来说,我们执行软定理证明利用TLM生成自然语言证明。我们测试生成的证明的逻辑一致性,以及最终推理的准确性。我们观察到在比训练序列长的序列上进行评估时的长度泛化问题。然而,我们观察到TLM在暴露于更长,更详尽的证明后提高了其泛化性能。此外,我们发现,TLM能够更好地推广使用后向链证明相比,他们的前向链同行,而他们发现更容易生成前向链证明。我们观察到,没有经过训练来生成证明的模型更善于推广到基于较长证明的问题。这表明,Transformers具有高效的内部推理策略,但很难解释。这些结果突出了TLM在逻辑推理背景下的系统泛化行为,我们相信这项工作激发了对其潜在推理策略的更深入研究。

英文摘要:

We are interested in understanding how well Transformer language models (TLMs) can perform reasoning tasks when trained on knowledge encoded in the form of natural language. We investigate their systematic generalization abilities on a logical reasoning task in natural language, which involves reasoning over relationships between entities grounded in first-order logical proofs. Specifically, we perform soft theorem-proving by leveraging TLMs to generate natural language proofs. We test the generated proofs for logical consistency, along with the accuracy of the final inference. We observe length-generalization issues when evaluated on longer-than-trained sequences. However, we observe TLMs improve their generalization performance after being exposed to longer, exhaustive proofs. In addition, we discover that TLMs are able to generalize better using backward-chaining proofs compared to their forward-chaining counterparts, while they find it easier to generate forward chaining proofs. We observe that models that are not trained to generate proofs are better at generalizing to problems based on longer proofs. This suggests that Transformers have efficient internal reasoning strategies that are harder to interpret. These results highlight the systematic generalization behavior of TLMs in the context of logical reasoning, and we believe this work motivates deeper inspection of their underlying reasoning strategies.

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

↑