← Latest papers
🤖 AI

ForEx: A Formal Verification Framework for Explainable Reasoning in Logical Fallacy Detection and Annotation

This paper introduces ForEx, a formal verification framework that translates LLM-generated explanations into Lean4 to verify the derivability of reasoning chains, revealing a significant gap between high formal verification rates and low label agreement with human annotations in logical fallacy detection.

Original authors: Pei-Cing Huang, Chienyu Liu, Chan Hsu, Ci-Siang Chen, Pei-Ju Lee, Yihuang Kang

Published 2026-06-23
📖 5 min read🧠 Deep dive

Original authors: Pei-Cing Huang, Chienyu Liu, Chan Hsu, Ci-Siang Chen, Pei-Ju Lee, Yihuang Kang

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Big Problem: "Right Answer, Wrong Reasoning"

Imagine you are taking a math test. You write down the correct final answer, but your steps are a complete mess, or you got lucky by guessing. In a normal test, you get full credit. But in the world of Artificial Intelligence (AI), specifically Large Language Models (LLMs), this is a huge issue.

Current tests for AI only check if the final label (the answer) is right. They don't check if the reasoning (the steps) actually supports that answer. An AI might say, "This sentence is a logical fallacy," and be right, but its explanation might be nonsense. Or, it might be wrong, but its explanation sounds very convincing.

The Solution: ForEx (The "Logic Translator")

The authors created a tool called ForEx. Think of ForEx as a strict translator and a referee working together.

  1. The Translator (Lean4): When an AI gives an explanation, ForEx translates that messy human language into Lean4, which is like a super-strict, computer-readable language for math and logic. It's like translating a casual conversation into a legal contract where every word must be precise.
  2. The Referee (The Compiler): Once the explanation is in Lean4, a computer program tries to "run" it. If the logic holds up, the computer says, "Pass!" If the logic is broken, it says, "Fail!"

Crucial Distinction: The paper clarifies that passing this test doesn't mean the AI understood the whole human sentence perfectly. It just means: "Given the specific rules we wrote down, the AI's conclusion logically follows from its own explanation."

The New Scorecard: The Verification Matrix

Instead of just saying "Correct" or "Incorrect," the authors invented a new scorecard called the LLM Argument Verification Matrix. It divides results into four boxes, like a tic-tac-toe board:

  • Box 1: The Gold Standard (Compilable-Correct)
    • The Analogy: You got the right answer, and your math steps are perfect.
    • Meaning: The AI's label matches the human expert, AND the computer verified the reasoning is solid.
  • Box 2: The Hidden Gem (Compilable-Alternative)
    • The Analogy: You got a different answer than the teacher, but your math steps are perfect and prove your answer is valid under a different interpretation.
    • Meaning: The AI's label is different from the human expert, BUT the computer verified the reasoning is solid. This suggests the human expert might have missed a valid way to look at the sentence.
  • Box 3: The Lucky Guess (Uncompilable-Correct)
    • The Analogy: You got the right answer, but your math steps are scribbled nonsense.
    • Meaning: The AI matched the human label, but the computer couldn't verify the reasoning. It might have guessed correctly.
  • Box 4: The Double Failure (Uncompilable-Incorrect)
    • The Analogy: You got the wrong answer, and your math steps are nonsense.
    • Meaning: The AI was wrong, and its reasoning was broken.

What They Found (The Results)

The researchers tested this on a dataset called LOGIC-Climate (about 100 examples of logical arguments). Here is what they discovered:

  1. AI is surprisingly good at building logic chains: Over 90% of the time, the AI's explanations could be translated into Lean4 and passed the computer's logic check.
  2. But AI is bad at matching human labels: Despite having good logic chains, the AI only agreed with human experts about 20% of the time.
  3. The "Alternative" Box is huge: Most of the time, the AI wasn't "wrong"; it was just Box 2 (Compilable-Alternative). It found a logically sound reason to label a sentence differently than the human did.

The Takeaway: There is a massive gap between "Can the AI prove its reasoning?" and "Does the AI agree with humans?" The paper suggests that many human labels might be too narrow, missing valid interpretations that the AI found.

The "Group Chat" for Annotations

To fix the issue of humans and AI disagreeing, the authors built a Consensus-Guided Annotation Pipeline.

  • The Analogy: Imagine a classroom where the teacher (human) and 15 students (AI models) all grade a test. Usually, if the teacher says "A" and the students say "B," we assume the students are wrong.
  • The ForEx Approach: They only look at the students who proved their logic was sound (passed the Lean4 check). If a group of these "smart" students all agree on a label that the teacher missed, they flag it as a potential "Alternative" label.
  • The Result: They found a few cases where the AI models collectively saw a valid logical path that the original human label missed. They added these to the dataset, but only for the cases where everyone agreed (high consensus).

Summary

The paper argues that we need to stop just checking if an AI gets the "right" label. We need to check if its reasoning holds up like a mathematical proof.

They found that AI models are actually very good at building logical proofs (90% pass rate), but they often disagree with human experts. This suggests that human experts might be too rigid in how they label logical fallacies, and there are valid, logical ways to interpret sentences that current human labels don't capture. ForEx is a tool to find those "hidden" valid interpretations.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →