← Latest papers
🤖 AI

QMFOL: Benchmarking Large Language Model Reasoning via Quantifiable Monadic First-Order Logic Test Case Generation

This paper introduces QMFOL, an automated framework that generates controllable monadic first-order logic reasoning tasks to create the QMFOLBench benchmark, enabling precise evaluation of how logical complexity, label types, and semantic variations impact the performance and efficiency of large language models.

Original authors: Xinyi Zheng, Ling Shi, Tianlong Yu, Yongxin Zhao, Lorenz Goette, Kailong Wang

Published 2026-06-19
📖 4 min read☕ Coffee break read

Original authors: Xinyi Zheng, Ling Shi, Tianlong Yu, Yongxin Zhao, Lorenz Goette, Kailong Wang

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

Imagine you are trying to teach a group of very smart, but sometimes overconfident, students how to solve logic puzzles. You want to know if they are truly getting smarter or just memorizing the answers to the puzzles you've given them before.

This paper introduces QMFOL, a new "puzzle factory" designed to test how well Large Language Models (LLMs)—the brains behind AI chatbots—can actually reason.

Here is the breakdown of how it works, using simple analogies:

1. The Problem: The "Cookie Cutter" vs. The "Master Chef"

Previous tests for AI reasoning were like cookie cutters. They took a basic logic shape, stamped it out, and maybe changed the flavor (the words) slightly.

  • The Issue: Because the shapes were so predictable, AI models could just memorize the pattern rather than actually thinking. Also, it was hard to make the puzzles slightly harder in just one way (like making the chain of logic longer) without messing up everything else.
  • The Goal: The authors wanted a Master Chef approach. They wanted to build a kitchen where they could control every single ingredient: the length of the recipe, the number of confusing ingredients, and the type of dish, all while ensuring the final meal actually tastes like the recipe intended.

2. The Solution: The QMFOL Factory

The authors built an automated system called QMFOL. Think of it as a two-step assembly line:

  • Step 1: Building the Skeleton (The Logic):
    First, the system builds a strict, mathematical skeleton using "Monadic First-Order Logic." Imagine this as building a tower out of Lego blocks.

    • Depth: How tall the tower is (how many steps of logic you need to take).
    • Width: How wide the base is (how many facts you have to juggle at once).
    • Distractors: The system adds "decoy blocks"—pieces that look like they belong but actually do nothing. It's like putting a red herring in a mystery story to see if the detective gets distracted.
  • Step 2: Dressing the Skeleton (The Language):
    A computer program (an LLM) then takes this rigid Lego tower and translates it into a natural story about a specific topic, like "University Life" or "Animals."

    • The Safety Check: This is the most important part. The system doesn't just trust the story. It takes the story, translates it back into Lego blocks, and checks if it matches the original tower. If the story changed the meaning (e.g., turning a "must" into a "maybe"), the system throws it away and tries again. This ensures the AI is being tested on logic, not just confused by bad English.

3. The Result: QMFOLBench

Using this factory, they built a massive test bank called QMFOLBench containing 2,880 unique puzzles.

  • They tested 8 different AI models (both open-source and big commercial ones).
  • They varied the difficulty: some puzzles were short and simple; others were long, wide, and full of distractions.

4. What They Found (The Report Card)

The results were revealing, like watching a student take a test under different conditions:

  • Complexity Kills Performance: As the puzzles got deeper and wider (more steps, more facts), the AI models got worse. It's like asking a human to solve a math problem in their head; the more steps you add, the more likely they are to make a mistake.
  • The "True" Bias: The models were much better at proving something was True than proving it was False or Unknown. It's as if they are eager to say "Yes!" but are afraid to say "No" or "I don't know," often guessing "I don't know" when they should have found a contradiction.
  • Distractions Work: When the puzzles included "decoy" facts (distractors), the models' scores dropped. The more decoys, the more confused they got. Interestingly, adding decoys sometimes made the AI think harder, but often just made it give up.
  • Topic Matters: Even with the exact same logic, the models performed differently depending on the story topic. They were generally better at "University" stories than "Math" stories. This suggests they rely on what they've read before (memorized knowledge) rather than pure logic. If the topic felt familiar, they did better; if it felt abstract, they stumbled.

The Bottom Line

The paper argues that to truly know if an AI is getting smarter, we can't just give it more of the same old puzzles. We need a system that can precisely dial up the difficulty in specific ways and guarantee the puzzle is fair. QMFOL provides that dial, showing us that while AI is good at reasoning, it still struggles when the logic gets complex, the path is blocked by distractions, or the topic is unfamiliar.

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 →