Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Logiformer: A Two-Branch Graph Transformer Network for Interpretable Logical Reasoning

About

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.

Fangzhi Xu, Jun Liu, Qika Lin, Yudai Pan, Lingling Zhang• 2022

Related benchmarks

TaskDatasetResultRank
Logical reasoningLogiQA (test)
Accuracy42.6
92
Logical reasoningReClor (test)
Accuracy63.5
87
Logical reasoningLogiQA (val)
Accuracy42.24
50
Logical reasoningReClor (dev)
Accuracy0.684
46
Logical reasoningLogiQA (dev)
Accuracy42.2
40
Logical reasoningReClor v1 (test)
Accuracy63.5
23
Logical reasoningReClor (test-H)
Accuracy51.25
23
Logical reasoningReClor (test-e)
Accuracy79.09
23
Dialogue-based Multiple-choice Question AnsweringDREAM (test)
Accuracy83.76
21
Logical reasoningReClor (val)
Accuracy (ReClor val)68.4
15
Showing 10 of 24 rows

Other info

Code

Follow for update