LLM Hallucination Detection Using Entity Pair Semantic Comparison
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Generative language models often produce factually inaccurate or misleading responses, known as hallucinations, which are unacceptable in domains like aviation where accuracy is critical, and current methods to combat hallucinations require unsustainable human intervention.
Innovation Solution
A computing system that uses entity extraction, semantic pairing, and semantic similarity models to compare entities in generative AI output with source text, identifying hallucinations by forming semantic pairs and comparing them against a domain-specific knowledge base.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If generative language models are used to produce text output, then productivity is improved, but reliability deteriorates due to hallucinations
Solution Approach 1:
The patent introduces an intermediary verification system that includes an entity extraction model, semantic pairing model, and semantic similarity model. These components act as mediators between the generative LLM and the final output, extracting entities from both the generated text and source text, forming semantic pairs, and comparing them to detect hallucinations before the text is finalized.
2Reliability
If human intervention is increased to combat hallucinations, then reliability is improved, but device complexity and loss of time worsen
Solution Approach 1:
The system implements self-service by enabling automatic hallucination detection through machine learning models. The entity extraction model, semantic pairing model, and semantic similarity model work autonomously to identify potential hallucinations without requiring human reviewers, thus maintaining reliability while reducing human intervention complexity.
Solution Approach 2:
The patent incorporates feedback mechanisms where the semantic similarity comparison results are used to identify hallucinations, which can then be fed back to improve the generative model. The system provides feedback loops that allow continuous improvement of accuracy while reducing the need for manual intervention over time.
3Reliability
If human review is used to verify AI output, then reliability is improved, but loss of time worsens
Solution Approach 1:
The patent replaces the mechanical human review process with automated computational models. The entity extraction model, semantic pairing model, and semantic similarity model perform verification tasks that would otherwise require human time, dramatically reducing verification time while maintaining or improving reliability through systematic automated comparison.
4Productivity
If generative models are used to reduce drafting load, then productivity is improved, but object-generated harmful factors worsen due to hallucination risks
Solution Approach 1:
The patent applies preliminary anti-action by proactively detecting and flagging potential hallucinations before they become harmful output. The semantic similarity comparison is performed in advance on all generated entities, identifying discrepancies between source text entities and generated text entities, thereby preventing harmful hallucinated information from being disseminated.
Data Source
AI summary
A computing system for identifying hallucinations in generative artificial intelligence (AI) output includes processing circuitry configured to receive a text output generated by a generative large language model (LLM) in response to an input prompt including origin source text data, and using an entity extraction model, extract entities from the text output and from the origin source text data. The processing circuitry, using a semantic pairing model, forms first semantic pairs from the entities of the text output and second semantic pairs from the entities of the origin source text data, and using a semantic similarity model, semantically compares the first semantic pairs with the second semantic pairs. The processing circuitry, based on at least the comparison, classifies whether or not any of the first semantic pairs is a hallucination, and outputs an indication of the classification.


