Source-linked AI summary
LogiQA: A Challenge Dataset for Machine Reading Comprehension with Logical Reasoning
Jian Liu, Leyang Cui, Hanmeng Liu, Dandan Huang, Yile Wang, Yue Zhang
TL;DR
Logical reasoning is not fully investigated in machine reading, although it is a fundamental capability in human reading and existing work has addressed factual, multi-hop, and commonsense challenges. The authors construct LogiQA from expert-written logical examination questions, manually selecting 8,678 paragraph-question pairs with four choices across several deductive reasoning types. Experiments show a significant gap between machine (35.31% accuracy) and human ceiling performance (96.00%); state-of-the-art machine readers still fall far behind humans.
Problem
Logical reasoning is not fully investigated in machine reading, although it is a fundamental capability in human reading and existing work has addressed factual, multi-hop, and commonsense challenges.
Source: §1 · p. 1Method
The authors construct LogiQA from expert-written logical examination questions, manually selecting 8,678 paragraph-question pairs with four choices across several deductive reasoning types.
Source: §1 · p. 2Results
Takeaways & Limitations
LogiQA can serve as a benchmark for re-examining logical AI in the deep-learning NLP setting.
Source: §7 · p. 6
Abstract
from arXiv · showhide
Machine reading is a fundamental task for testing the capability of natural language understanding, which is closely related to human cognition in many aspects. With the rising of deep learning techniques, algorithmic models rival human performances on simple QA, and thus increasingly challenging machine reading datasets have been proposed. Though various challenges such as evidence integration and commonsense knowledge have been integrated, one of the fundamental capabilities in human reading, namely logical reasoning, is not fully investigated. We build a comprehensive dataset, named LogiQA, which is sourced from expert-written questions for testing human Logical reasoning. It consists of 8,678 QA instances, covering multiple types of deductive reasoning. Results show that state-of-the-art neural models perform by far worse than human ceiling. Our dataset can also serve as a benchmark for reinvestigating logical AI under the deep learning NLP setting. The dataset is freely available at https://github.com/lgw863/LogiQA-dataset
1 Introduction
Logical reasoning remains relatively underrepresented in machine reading research, despite progress on factual, multi-hop, and commonsense questions. LogiQA addresses this gap with expert-written reasoning questions, and baseline results show a large gap between neural models and human performance.
1 Introduction
- Logical reasoning is a fundamental aspect of reading comprehension, but relatively few modern NLP datasets target it.Earlier and newer machine reading tasks include factual answering, multi-hop evidence integration, and commonsense questions.Source: §1 · p. 1
- LogiQA questions combine natural-language understanding with logical inference, relying less on lexical overlap and external knowledge than factual and commonsense QA.The paper frames them as an opportunity to investigate neural approaches to logical reasoning alongside formal semantic parsing and symbolic reasoning.Source: §1 · pp. 1–2
- LogiQA contains 8,678 paragraph-question pairs with four candidate answers, selected to cover categorical, conditional, disjunctive, and conjunctive reasoning.Problems were manually selected from expert-written public logical examination papers, filtering out figure-, chart-, and mathematics-heavy problems.Source: §1 · p. 2
- In baseline experiments, several state-of-the-art neural reading-comprehension models achieved 35.31% accuracy on LogiQA, compared with 96.00% human ceiling performance, demonstrating a significant gap between machine and human results.Source: §1 · p. 2
2 Related Work
LogiQA differs from existing reading-comprehension and reasoning datasets in its focus on general logical reasoning, expert-written exam questions, and multi-choice reading-comprehension format.
2 Related Work
- Unlike many reading-comprehension datasets built around answers found in the passage, LogiQA requires reasoning beyond text matching.Related datasets target challenges such as evidence integration, multi-step reasoning, numerical reasoning, and dialogue reasoning.Source: §2 · p. 2
- Unlike commonsense datasets that draw on external background knowledge, LogiQA focuses on logical reasoning with most necessary facts in the passage.The authors also distinguish its expert-written examination questions from crowd-sourced datasets.Source: §2 · p. 2
- Compared with argument-reasoning and family-relation datasets, LogiQA is a larger, four-choice machine-reading test of general deductive reasoning.The paper reports 8,678 instances versus 1,970 for Habernal et al.'s dataset, which has two choices; CLUTRR targets inductive reasoning in a fixed family-relations domain.Source: §2 · p. 2
- LogiQA is presented as the first large-scale dataset of varied logical problems drawn from human-expert-designed exams.Unlike exams focused on general language understanding, the cited comparison targets logical skills as well as language skills.Source: §2 · p. 2
3 Dataset
LogiQA is constructed from Chinese civil-service examination questions, filtered and translated into an English dataset. Its test set is categorized by five deductive reasoning types, and a question may involve more than one type.
3.1 Data Collection and Statistics
- The cleaned dataset contains 8,678 paragraph-question pairs after removing non-four-choice, non-self-contained, duplicated, and otherwise difficult-to-reproduce items.The raw collection comprised 13,918 paragraph-question-choice triples with correct answers.Source: §3.1 · p. 3
- Five professional English speakers translated the Chinese dataset, with three proofreaders reviewing translations and requesting revisions when they rejected an instance.The paper also releases a Chinese version for Chinese reasoning-based reading-comprehension research.Source: §3.1 · p. 3
- The authors describe LogiQA's average paragraph length as relatively small because these logical reasoning problems do not heavily rely on complex context..Source: §3.1 · p. 3
3.2 Reasoning Types of the Dataset
- The 867-question test set is categorized into categorical, sufficient conditional, necessary conditional, disjunctive, and conjunctive reasoning, and one question may receive multiple types.These are deductive forms for which a definite conclusion can be derived from premises.Source: §3.2 · pp. 3–4
4 Methods
The evaluation compares rule-based lexical matching, neural text-matching models, and pretrained contextualized models on reading-comprehension questions. Human performance and ceiling scores are also measured.
Human Performance
- The evaluation includes rule-based, deep learning, and pretrained reading-comprehension models, alongside human and ceiling performance.Three postgraduate students answer 500 randomly selected test instances; a question counts toward the ceiling if any student answers correctly.Source: §4 · p. 4
Rule-Based Methods
- Rule-based baselines select answers by unigram overlap or by TF-IDF-style n-gram matching scores.Word matching uses the paragraph-question pair; sliding window extracts n-gram features from that pair.Source: §4 · p. 4
Deep Learning Methods
- Deep learning baselines match paragraph-question text with candidate answers using attentive, multi-hop, or co-matching architectures.The co-matching network also matches paragraph-question and paragraph-candidate pairs.Source: §4 · p. 4
Pre-trained Methods
- Pretrained models score four concatenated paragraph-question-candidate inputs and select the highest-scoring answer.BERT uses [CLS] A [SEP] B [SEP], while RoBERTa substitutes its pretrained model; both use the [CLS] state for MLP-plus-softmax scoring.Source: §4 · p. 4
Implementation Details
- The study re-implements rule-based baselines, uses released implementations for deep learning models, and selects hyperparameters on development sets.Pretrained models follow the HuggingFace implementation and are fine-tuned during training.Source: §4 · p. 4
5 Results
On LogiQA, human performance substantially exceeds algorithmic models, and pretrained models outperform those without contextualized embeddings but remain far below human performance. Lexical matching alone also performs poorly, while the Chinese results are reported at the same level as the English results.
Main Results
- 86.00% human performance and 95.00% ceiling performance contrast with algorithmic models that perform significantly worse than humans.The dataset is randomly split into 80% training, 10% development, and 10% testing.Source: §5 · p. 4, Table 3 · p. 5
Chinese Results
- Chinese dataset results are reported at the same level as English dataset results.The comparison is reported for the study's results across the two datasets.Source: §5 · p. 4
Rule-Based Results
- 28.37% and 22.51% accuracy for the two rule-based methods show that lexical matching alone performs poorly.The latter score is below the random-guess baseline.Source: §5 · p. 4
Pre-trained Results
- 35.31% is the best RoBERTa result on LogiQA, still much lower than human performance.Pretrained models perform better than methods without contextualized embeddings.Source: §5 · p. 5
6 Discussion
The discussion analyzes RoBERTa’s performance on dataset bias, transfer, input length, lexical overlap, and reasoning types.
6.1 Ablation Tests
- 35.31% to 28.92% is the accuracy drop when removing the paragraph; omitting the question hurts less, supporting the conclusion that dataset bias is weak.The authors attribute the relatively smaller question-related drop as likely reflecting lower question diversity.Source: §6.1 · p. 5
6.2 Transfer Learning
- RACE- or COSMOS-pretrained RoBERTa underperforms LogiQA-only; further LogiQA tuning improves source baselines but still does not surpass LogiQA-only, with RACE near random.Source: Table 4 · p. 5, §6.2 · p. 5
6.3 Performance Across Different Lengths
- RoBERTa accuracy is not negatively associated with total instance length (paragraph, question, and candidates combined), suggesting logical challenge is independent of verbosity.Source: Table 5 · p. 5, §6.3 · p. 5
6.4 Lexical Overlap
- 28.37% gold-standard Overlap Ratio is below every model’s; word matching reaches 100%, while RoBERTa has the lowest matching accuracy and leads on best-match-correct cases.Source: Table 6 · p. 6, §6.4 · p. 6
6.5 Reasoning Types
- RoBERTa performs best on categorical reasoning but lags on the other four types; cases expose ignored age constraints, negation, and conjunctive/disjunctive enumeration.Source: Table 7 · p. 6, §6.5 · p. 6
7 Conclusion
LogiQA is a large-scale logical-reasoning reading-comprehension dataset and benchmark for revisiting logical AI in deep-learning NLP. State-of-the-art machine readers remain far behind human performance.
- LogiQA is a large-scale dataset for logical reasoning in machine reading comprehension.Source: §7 · p. 6
- The dataset can serve as a benchmark for re-examining logical AI in the deep-learning NLP era.Source: §7 · p. 6
- State-of-the-art machine readers still fall far behind human performance on this challenging reading-comprehension test.Source: §7 · p. 6