Enhancing Transformers for Generalizable First-Order Logical Entailment
Tianshi Zheng, Jiazheng Wang, Zihao Wang, Jiaxin Bai, Hang Yin, Zheye Deng, Yangqiu Song, Jianxin Li
摘要
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 outperform previous methods designed particularly for this task and provided detailed empirical evidence about the impact of the input query syntax, token embedding, and transformer architectures on their reasoning capability. Interestingly, our results revealed the mismatch of positional encoding and other design choices of transformer architectures in previous practices. Motivated by this, we propose TEGA, a logic-aware architecture that significantly improves the performance in generalizable first-order logical entailment.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 3 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- LogiDynamics: Unraveling the Dynamics of Inductive, Abductive and Deductive Logical Inferences in LLM Reasoning 引用了 Abductive Commonsense Reasoning
- Beta Embeddings for Multi-Hop Logical Reasoning in Knowledge Graphs 引用了 Query2box: Reasoning over Knowledge Graphs in Vector Space Using Box Embeddings
- Neural Scalable Symbolic Search Framework for Complex Logical Queries with Multiple Free Variables 引用了 Query2box: Reasoning over Knowledge Graphs in Vector Space Using Box Embeddings
- Neural Scalable Symbolic Search Framework for Complex Logical Queries with Multiple Free Variables 引用了 Beta Embeddings for Multi-Hop Logical Reasoning in Knowledge Graphs
- Unifying Deductive and Abductive Reasoning in Knowledge Graphs with Masked Diffusion Model 引用了 Query2box: Reasoning over Knowledge Graphs in Vector Space Using Box Embeddings
- Unifying Deductive and Abductive Reasoning in Knowledge Graphs with Masked Diffusion Model 引用了 Abductive Commonsense Reasoning
- Unifying Deductive and Abductive Reasoning in Knowledge Graphs with Masked Diffusion Model 引用了 Beta Embeddings for Multi-Hop Logical Reasoning in Knowledge Graphs
引用它的顶会 Paper3
- Unifying Deductive and Abductive Reasoning in Knowledge Graphs with Masked Diffusion ModelYisen Gao, Jiaxin Bai, Yi Huang, Xingcheng Fu 等WWW 2026 · 3 次引用
- LogiDynamics: Unraveling the Dynamics of Inductive, Abductive and Deductive Logical Inferences in LLM ReasoningTianshi Zheng, Cheng Jiayang, Chunyang Li, Haochen Shi 等EMNLP 2025
- Neural Scalable Symbolic Search Framework for Complex Logical Queries with Multiple Free VariablesWeizhi Fei, Hang Yin, Zihao Wang, Shukai Zhao 等KDD 2026
它引用的 Paper27
- Deberta: decoding-Enhanced Bert with Disentangled AttentionPengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu ChenICLR 2021 · 3,729 次引用
- Abductive Commonsense ReasoningChandra Bhagavatula, Ronan Le Bras, Chaitanya Malaviya, Keisuke Sakaguchi 等ICLR 2020 · 521 次引用
- Deep Learning For Symbolic MathematicsGuillaume Lample, François ChartonICLR 2020 · 477 次引用
- Query2box: Reasoning over Knowledge Graphs in Vector Space Using Box EmbeddingsHongyu Ren, Weihua Hu, Jure LeskovecICLR 2020 · 355 次引用
- Beta Embeddings for Multi-Hop Logical Reasoning in Knowledge GraphsHongyu Ren, Jure LeskovecNeurIPS 2020 · 267 次引用
相关 Paper
- Mask and Reason: Pre-Training Knowledge Graph Transformers for Complex Logical QueriesXiao Liu, Shiyu Zhao, Kai Su, Yukuo Cen 等KDD 2022 · 38 次引用
- A Foundation Model for Zero-shot Logical Query ReasoningMichael Galkin, Jincheng Zhou, Bruno Ribeiro, Jian Tang 等NeurIPS 2024 · 20 次引用
- When can transformers reason with abstract symbols?Enric Boix-Adserà, Omid Saremi, Emmanuel Abbe, Samy Bengio 等ICLR 2024 · 21 次引用
- A Holistic Approach for Answering Logical Queries on Knowledge GraphsYuhan Wu, Yuanyuan Xu, Xuemin Lin, Wenjie ZhangICDE 2023 · 6 次引用
- LinE: Logical Query Reasoning over Hierarchical Knowledge GraphsZijian Huang, Meng-Fen Chiang, Wang-Chien LeeKDD 2022 · 17 次引用
