Logical Fallacy Detection

Zhijing Jin, Abhinav Lalwani, Tejas Vaidhya, Xiaoyu Shen, Yiwen Ding, Zhiheng Lyu, Mrinmaya Sachan, Rada Mihalcea, Bernhard Schölkopf

Abstract

This paper introduces the task of logical fallacy detection, providing two new datasets: LOGIC (general fallacies) and LOGICCLIMATE (climate change claims). The authors demonstrate that while standard large language models (LLMs) struggle to identify reasoning flaws, a "structure-aware" classifier that masks content to focus on the underlying argument form significantly outperforms state-of-the-art baselines.

Introduction

Reasoning is a cornerstone of intelligence, yet human discourse is frequently marred by logical fallacies—arguments that seem persuasive but are structurally flawed. These range from "Ad Hominem" attacks (attacking the person rather than the point) to "False Causality" (assuming correlation implies causation).

While NLP has made strides in sentiment analysis and fact-checking, logical fallacy detection remains a significant gap. Fact-checking confirms if a statement is true, but fallacy detection asks if the path to that conclusion is valid. A claim can be factually true but logically fallacious. This is particularly dangerous in the context of misinformation; for example, climate change denial often relies on sophisticated-sounding but logically broken arguments. The authors tackle the challenge of teaching models to look past "what" is being said to "how" it is being argued.

Datasets: LOGIC and LOGICCLIMATE

The paper introduces two distinct datasets to benchmark this task:

  • LOGIC: A collection of 2,449 samples covering 13 common fallacy types (e.g., Circular Claim, Equivocation, False Dilemma). These were crawled from educational websites and quiz platforms designed to teach logic to students.
  • LOGICCLIMATE: A "challenge set" of 1,109 samples specifically focused on climate change claims. These were sourced from news articles and annotated by experts. This set is significantly harder because the fallacies are embedded in complex, real-world journalistic prose rather than "textbook" examples.
Examples of logical fallacies from the LOGIC and LOGICCLIMATE datasets.

Methodology: Structure-Aware Modeling

The authors propose a novel Structure-Aware Model built on a Natural Language Inference (NLI) backbone. The core innovation is structure distillation, which mimics how ancient logicians used symbols to evaluate arguments independently of their subject matter.

The architecture of the Structure-Aware Model, showing premise masking and hypothesis augmentation.

As illustrated in the architecture above, the process involves:

  1. Premise Masking: Instead of feeding raw text to the model, coreference resolution and semantic similarity (via Sentence-BERT) are used to identify related text spans. These spans are replaced with generic placeholders (e.g., [MSK1], [MSK2]). This strips away distracting "content" and leaves behind the "skeleton" of the argument.
  2. Hypothesis Augmentation: Following the NLI framework (where a model decides if a premise entails a hypothesis), the hypothesis is formulated as: "This example matches the logical form: [Logical Template of the Fallacy]."
  3. Backbone: They use ELECTRA as the primary transformer backbone, finding it superior to other models like BERT or RoBERTa for this specific task.

Results and Discussion

The study revealed that standard LLMs are "content-hungry" but "structure-blind." Off-the-shelf models like GPT-3 and RoBERTa-MNLI performed poorly, with F1 scores hovering around 12-13%—barely above random guessing for some metrics. If a model sees "vaccines" or "climate," it often relies on learned biases or keyword associations rather than analyzing the logical flow.

Finetuning significantly improved performance. ELECTRA emerged as the strongest baseline with a 53.31% micro F1 score on the LOGIC dataset. The proposed Electra-StructAware model achieved 58.77% F1 on LOGIC, outperforming the standard ELECTRA by 5.46%. On the difficult LOGICCLIMATE set, the structure-aware model maintained a lead, achieving 27.23% F1 compared to the baseline's 22.72%. While these numbers are lower overall, the relative improvement remains consistent.

Conclusion and Future Work

The drop in performance on climate claims suggests that models still struggle with the nuances of specific domains and implicit premises (enthymemes). Future work could involve matching input text against multiple candidate templates or moving toward multi-label, voting-based systems to improve robustness against arguments containing multiple fallacies simultaneously. The success of structure-aware masking proves that inductive biases about logical form are crucial for high-level reasoning tasks.

Summary updated

BibTeX
@inproceedings{jin2022logical,
  author = {Zhijing Jin and Abhinav Lalwani and Tejas Vaidhya and Xiaoyu Shen and Yiwen Ding and Zhiheng Lyu and Mrinmaya Sachan and Rada Mihalcea and Bernhard Schölkopf},
  title = {{Logical Fallacy Detection}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.findings-emnlp.532},
}
Figure