AI Validation Server for Real-Time Fact Hallucination Detection

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing AI systems generate fact hallucinations due to insufficient training data and lack of real-time verification, leading to inaccurate query results.

Innovation Solution

Implement a system with an AI validation server that tokenizes and indexes data, allowing real-time verification by comparing AI query responses to compressed blocks in a token database, using similarity scores to identify and correct fact hallucinations.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If AI systems use transformer models with attention mechanisms to generate content, then the system can process large amounts of training data and create coherent responses, but the system generates fact hallucinations due to insufficient training data and loss of original information during training

Engineering Contradiction:
Improvecontent generation capabilityVSAvoidfact accuracy
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The system performs preliminary actions by tokenizing and compressing the original training data into a token database before the AI model generates responses. This pre-processed token database serves as a reference repository that the verification system can query to check factual accuracy of generated content, preventing hallucinations before they reach the user.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent introduces an intermediary verification system that acts as a mediator between the AI model and the user. This verification system compares the AI-generated responses against the pre-processed token database using similarity scoring, serving as a factual check that identifies hallucinations without interfering with the model's creative generation process.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Adaptability or versatility

If the AI model is trained on very large databases of plain text, then the model can learn diverse patterns and relationships, but information is abstracted and lost in translation during the training process

Engineering Contradiction:
Improvepattern recognition capabilityVSAvoidoriginal data fidelity
Core Design Contradiction:
Adaptability or versatilityVSLoss of information

Solution Approach 1:

The system creates a copy of the original training data in the form of a token database that preserves the raw textual information. Instead of relying solely on the abstracted knowledge embedded in the trained model weights, the verification system queries this preserved copy to fact-check responses, ensuring that original information is not lost despite the abstraction necessary for training.

Inventive Principle:
Principle #26Copying

3Reliability

If real-time verification is implemented by comparing AI responses to the original training data, then fact hallucinations can be identified, but it is not practical to contain all training data in the memory of a single computer

Engineering Contradiction:
Improvefact verification capabilityVSAvoidsystem architecture
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The system segments the verification process into two parts: (1) a pre-processing stage that tokenizes and compresses the training data into a compact token database, and (2) a real-time verification stage that queries this database. This segmentation allows the system to verify facts without needing to store all original training data in memory, as the token database provides a space-efficient representation.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent applies parameter changes by transforming the training data from its original form into a tokenized and compressed representation. This parameter transformation reduces the memory footprint while preserving the essential information needed for verification, enabling practical implementation of fact-checking systems.

Inventive Principle:
Principle #35Parameter changes

4Reliability

If the system queries the token database to verify AI responses in real-time, then fact hallucinations can be detected, but the verification process requires additional time and computational resources

Engineering Contradiction:
Improveresponse verification accuracyVSAvoidverification processing time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

By performing the tokenization and compression of training data in advance (preliminary action), the system prepares the verification database so that real-time queries can be executed efficiently. This pre-processing eliminates the need for time-consuming data preparation during verification, reducing the time penalty associated with fact-checking.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS12608379B2Real-time identification of fact hallucinations in artificial intelligence (AI)
Publication Date: 2026.04.21 ANACODE LABS INC
  • US12608379B2 patent drawing
  • US12608379B2 patent drawing
  • US12608379B2 patent drawing

AI summary

An AI query response processed by an artificial intelligence (AI) module using a neural model is received as an input. The query response is compared to one or more tokenized facts of the compressed blocks at a data level. Comparing includes computing a similarity score of a vector derived from the tokenized query response to one or more vectors derived from the one or more tokenized facts. Responsive to a verification result failing to meet a similarity score threshold, it can be determined that a hallucination exists in the AI query response and a policy-based action, such as blocking the AI query response, can be taken. Responsive to the verification result meeting the similarity threshold, the AI query response can be allowed to proceed.