Logiformer: A Two-Branch Graph Transformer Network for Interpretable Logical Reasoning
Fangzhi Xu, Jun Liu, Qika Lin, Yudai Pan, Lingling Zhang
Abstract
Machine reading comprehension has aroused wide concerns, since it explores the potential of model for text understanding. To further equip the machine with the reasoning capability, the challenging task of logical reasoning is proposed. Previous works on logical reasoning have proposed some strategies to extract the logical units from different aspects. However, there still remains a challenge to model the long distance dependency among the logical units. Also, it is demanding to uncover the logical structures of the text and further fuse the discrete logic to the continuous text embedding. To tackle the above issues, we propose an end-to-end model Logiformer which utilizes a two-branch graph transformer network for logical reasoning of text. Firstly, we introduce different extraction strategies to split the text into two sets of logical units, and construct the logical graph and the syntax graph respectively. The logical graph models the causal relations for the logical branch while the syntax graph captures the co-occurrence relations for the syntax branch. Secondly, to model the long distance dependency, the node sequence from each graph is fed into the fully connected graph transformer structures. The two adjacent matrices are viewed as the attention biases for the graph transformer layers, which map the discrete logical structures to the continuous text embedding space. Thirdly, a dynamic gate mechanism and a question-aware self-attention module are introduced before the answer prediction to update the features. The reasoning process provides the interpretability by employing the logical units, which are consistent with human cognition. The experimental results show the superiority of our model, which outperforms the state-of-the-art single model on two logical reasoning benchmarks.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 83df7b76-c232-438a-9b69-ca61ff08877eCited by top-tier papers5
- Knowing About Knowing: An Illusion of Human Competence Can Hinder Appropriate Reliance on AI SystemsGaole He, Lucie Kuiper, Ujwal GadirajuCHI 2023 · 101 citations
- APOLLO: A Simple Approach for Adaptive Pretraining of Language Models for Logical ReasoningSoumya Sanyal, Yichong Xu, Shuohang Wang, Ziyi Yang et al.ACL 2023 · 4 citations
- MetaLogic: Logical Reasoning Explanations with Fine-Grained StructureYinya Huang, Hongming Zhang, Ruixin Hong, Xiaodan Liang et al.EMNLP 2022 · 3 citations
- Logic-Aware Knowledge Graph Reasoning for Structural Sparsity under Large Language Model SupervisionYudai Pan, Jiajie Hong, Tianzhe Zhao, Lingyun Song et al.WWW 2025 · 1 citation
- PathReasoner: Modeling Reasoning Path with Equivalent Extension for Logical Question AnsweringFangzhi Xu, Qika Lin, Tianzhe Zhao, Jiawei Han et al.ACL 2024
Builds on8
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- ELECTRA: Pre-training Text Encoders as Discriminators Rather Than GeneratorsKevin Clark, Minh-Thang Luong, Quoc V. Le, Christopher D. ManningICLR 2020 · 541 citations
- ReClor: A Reading Comprehension Dataset Requiring Logical ReasoningWeihao Yu, Zihang Jiang, Yanfei Dong, Jiashi FengICLR 2020 · 325 citations
- Discourse-Aware Neural Extractive Text SummarizationJiacheng Xu, Zhe Gan, Yu Cheng, Jingjing LiuACL 2020 · 264 citations
- Graph Transformer for Graph-to-Sequence LearningDeng Cai, Wai LamAAAI 2020 · 247 citations
Related papers
- AdaLoGN: Adaptive Logic Graph Network for Reasoning-Based Machine Reading ComprehensionXiao Li, Gong Cheng, Ziheng Chen, Yawei Sun et al.ACL 2022 · 29 citations
- Fact-Driven Logical Reasoning for Machine Reading ComprehensionSiru Ouyang, Zhuosheng Zhang, Hai ZhaoAAAI 2024 · 10 citations
- Mask and Reason: Pre-Training Knowledge Graph Transformers for Complex Logical QueriesXiao Liu, Shiyu Zhao, Kai Su, Yukuo Cen et al.KDD 2022 · 38 citations
- Enhancing Transformers for Generalizable First-Order Logical EntailmentTianshi Zheng, Jiazheng Wang, Zihao Wang, Jiaxin Bai et al.ACL 2025 · 7 citations
- Transformer-based Reasoning for Learning Evolutionary Chain of Events on Temporal Knowledge GraphZhiyu Fang, Shuai-Long Lei, Xiaobin Zhu, Chun Yang et al.SIGIR 2024 · 17 citations
