Enhancing Transformers for Generalizable First-Order Logical Entailment
Tianshi Zheng, Jiazheng Wang, Zihao Wang, Jiaxin Bai, Hang Yin, Zheye Deng, Yangqiu Song, Jianxin Li

TL;DR
This paper investigates how transformers perform in generalizable first-order logical reasoning, identifies architectural limitations, and introduces TEGA, a logic-aware model that enhances reasoning capabilities and outperforms previous methods.
Contribution
It provides a comprehensive analysis of transformers' reasoning abilities, reveals design mismatches, and proposes TEGA to improve logical entailment performance.
Findings
Transformers outperform previous methods in knowledge graph query answering.
Input query syntax and architecture significantly impact reasoning performance.
Positional encoding mismatches affect transformer reasoning capabilities.
Abstract
Transformers, as the fundamental deep learning architecture, have demonstrated great capability in reasoning. This paper studies the generalizable first-order logical reasoning ability of transformers with their parameterized knowledge and how to improve it. Transformers' capability of first-order reasoning is further captured by whether they can conduct first-order logical entailment, which is quantitatively measured by their performance in answering knowledge graph queries. We establish the connections between (1) two types of distribution shifts studied in out-of-distribution generalization and (2) unseen knowledge and query settings discussed in the task of knowledge graph query answering, which makes it possible to characterize the fine-grained generalizability. Results on our comprehensive dataset showed that transformers \textit{outperform} previous methods designed particularly…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
Taxonomy
TopicsLogic, Reasoning, and Knowledge
