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 Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
5 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Knowing About Knowing: An Illusion of Human Competence Can Hinder Appropriate Reliance on AI Systems cites ReClor: A Reading Comprehension Dataset Requiring Logical Reasoning
- APOLLO: A Simple Approach for Adaptive Pretraining of Language Models for Logical Reasoning cites ReClor: A Reading Comprehension Dataset Requiring Logical Reasoning
- MetaLogic: Logical Reasoning Explanations with Fine-Grained Structure cites ReClor: A Reading Comprehension Dataset Requiring Logical Reasoning
- PathReasoner: Modeling Reasoning Path with Equivalent Extension for Logical Question Answering cites ReClor: A Reading Comprehension Dataset Requiring Logical Reasoning
- PathReasoner: Modeling Reasoning Path with Equivalent Extension for Logical Question Answering cites Language Models are Few-Shot Learners
Cited 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 on9
- 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
- Logical Transformers: Infusing Logical Structures into Pre-Trained Language ModelsBorui Wang, Qiuyuan Huang, Budhaditya Deb, Aaron Halfaker et al.ACL Findings 2023 · 4 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
