Don't Let It Hallucinate: Premise Verification via Retrieval-Augmented Logical Reasoning

Yuehan Qin, Li Li, Yi Nian, Xinyan Velocity Yu, Yue Zhao, Xuezhe Ma · DOI

TL;DR

This paper introduces a novel framework to combat hallucinations in Large Language Models (LLMs) by proactively verifying the factual accuracy of premises within user queries before generating a response. By converting queries into logical forms and using Retrieval-Augmented Generation (RAG) to check these premises against knowledge graphs, the method significantly reduces factual errors without requiring model logits or extensive fine-tuning.

What Problem Does This Paper Address?

Large Language Models (LLMs) are incredibly adept at generating human-like text, but they have a notorious tendency to "hallucinate" – producing outputs that are factually incorrect or nonsensical. A particularly insidious cause of these hallucinations is when a user's query contains "false premises," which are statements that contradict established facts. LLMs, when presented with such queries, can be misled into generating fabricated details, even if they possess accurate underlying knowledge. Existing methods to combat this often involve expensive fine-tuning, rely on access to internal model states (logits), or address hallucinations after they occur, making them inefficient for real-time applications. This paper tackles the challenge of preventing these premise-driven hallucinations before they happen.

Methods

The core of this paper's contribution lies in a retrieval-based framework that integrates logical reasoning with RAG. The process involves three key steps:

  1. Logical Form Conversion: The user's natural language query is first transformed into a structured logical form. This representation breaks down the query into its core predicates and entities, making it easier to analyze for factual consistency.
  2. Structured Retrieval and Verification: This logical form is then used to query a knowledge graph. The system retrieves relevant factual evidence and assesses the validity of each premise in the original query. This step leverages RAG, but with a structured input (the logical form) rather than just raw text.
  3. Factual Consistency Enforcement: If a false premise is detected, this information is explicitly incorporated into the prompt given to the LLM. This "flagging" mechanism guides the LLM to avoid generating responses based on the identified falsehood.

This approach is designed to be model-agnostic and doesn't require access to model logits or extensive fine-tuning, making it more efficient and adaptable.

Datasets

The authors evaluate their approach on several datasets:

  • KG-FPQ (Knowledge Graph-False Premise Questions): This dataset, constructed from the KoPL knowledge graph, contains true and false premise questions, specifically in the art domain. It's used for evaluating both premise detection and hallucination mitigation.
  • CREAK (Commonsense Reasoning about Entity Knowledge): This dataset consists of human-authored English claims about entities, labeled as true or false, designed to test the combination of factual knowledge and commonsense reasoning. It's used for evaluating premise detection.
  • FEVER (Fact Extraction and VERification): This benchmark contains natural-language claims labeled as Supported, Refuted, or Not Enough Information, with evidence from Wikipedia. It's used for evaluating premise detection.

Key Insights and Ideas

  • Logical Forms are Key: Explicitly converting queries into logical forms significantly boosts the ability to detect false premises, especially in more complex, multi-hop questions. This structured representation allows for more precise and systematic reasoning.
  • Proactive Prevention is Better: Addressing false premises before generation is more effective than post-hoc correction methods. By informing the LLM about a detected falsehood, the model is guided away from hallucination from the outset.
  • RAG Gets Smarter with Logic: While RAG is a standard technique, using logical forms as the query input to RAG enhances its ability to retrieve truly relevant evidence for premise verification, leading to better factual grounding.
  • Model Agnosticism is Achievable: The proposed method's ability to work without access to model logits or requiring fine-tuning makes it a versatile tool for improving a wide range of LLMs.

Key Results

  • Improved False Premise Detection: The proposed method, especially when using logical forms in both retrieval and detection stages, significantly improves the accuracy of identifying false premises across various retrievers (e.g., G-retriever achieved 95.24% accuracy on KG-FPQ).
  • Reduced Hallucinations: The hallucination mitigation task showed the highest accuracy (up to 95.2% with Qwen2.5) compared to baseline methods like Direct Ask, Prompt, and Majority Vote.
  • Efficiency Gains: The method introduces only a modest computational overhead and uses fewer tokens due to the logical form representation, making it more efficient than some post-hoc methods.
  • Effectiveness on Complex Queries: The approach showed particular strength in improving performance on multi-hop questions, where logical forms proved crucial for detecting false premises.

Limitations and Future Work

  • Limitations:
    • The paper notes that while the "Prompt" method warns the LLM about potential false premises, it doesn't specify which premise is false, which can lead to over-cautiousness or reduced performance on valid premises.
  • The "Majority Vote" method, while improving reliability, was found to be less effective, possibly due to hallucination snowballing.
  • The performance of Perplexity AI was suboptimal, potentially due to query format misalignment with graph data.
  • Future Work:
    • The authors suggest that the premise verification mechanism can be extended to sensitive or controversial topics to prevent the amplification of misinformation.
  • They highlight a broader role for retrieval-augmented logical reasoning as a lightweight safeguard for responsible deployment, especially in domains where factual grounding is critical.
  • The paper also mentions that further analysis of error corrections and premise-specific changes across different LLMs is provided in the appendix, suggesting a direction for deeper understanding.

Summary updated

Abstract

Large language models (LLMs) have shown substantial capacity for generating fluent, contextually appropriate responses. However, they can produce hallucinated outputs, especially when a user query includes one or more false premises—claims that contradict established facts. Such premises can mislead LLMs into offering fabricated or misleading details. Existing approaches include pretraining, fine-tuning, and inference-time techniques that often rely on access to logits or address hallucinations after they occur. These methods tend to be computationally expensive, require extensive training data, or lack proactive mechanisms to prevent hallucination before generation, limiting their efficiency in real-time applications. We propose a retrieval-based framework that identifies and addresses false premises before generation. Our method first transforms a user’s query into a logical representation, then applies retrieval-augmented generation (RAG) to assess the validity of each premise using factual sources. Finally, we incorporate the verification results into the LLM’s prompt to maintain factual consistency in the final output. Experiments show that this approach effectively reduces hallucinations, improves factual accuracy, and does not require access to model logits or large-scale fine-tuning.
BibTeX
@article{qin2026don,
  author = {Yuehan Qin and Li Li and Yi Nian and Xinyan Velocity Yu and Yue Zhao and Xuezhe Ma},
  title = {{Don't Let It Hallucinate: Premise Verification via Retrieval-Augmented Logical Reasoning}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2026},
}
Figure