AI Output Anomaly Detection Through Token Source Comparison

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing AI models often generate inaccurate or anomalous outputs, including hallucinations, which can lead to significant consequences in decision-making processes due to the lack of reliable anomaly detection methods.

Innovation Solution

A system that generates two sets of tokens from AI model outputs and reliable sources for comparison, using text filtering and tokenization to detect anomalies and ensure match accuracy, thereby validating the outputs.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If AI models are used to generate outputs, then productivity and decision-making capability are improved, but reliability and accuracy deteriorate due to hallucinations and erroneous outputs

Engineering Contradiction:
Improvedecision-making capabilityVSAvoidoutput accuracy
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The patent introduces an intermediary verification system that acts as a mediator between the AI model output and the final decision-making process. This system includes components that retrieve original data, generate expected outputs through rule engines, and compare these with actual AI model outputs to detect anomalies. The intermediary layer validates AI outputs without replacing the AI model, thus maintaining productivity while improving reliability.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent implements a feedback mechanism where the anomaly detection system continuously monitors AI model outputs, compares them against expected values derived from rule engines, and provides feedback for correction. When anomalies are detected, the system generates anomaly indicators that can trigger re-evaluation or correction processes, creating a closed-loop system that improves output reliability over time while maintaining high productivity.

Inventive Principle:
Principle #23Feedback

2Reliability

If anomaly detection methods are implemented, then reliability and output accuracy are improved, but device complexity increases due to additional verification systems

Engineering Contradiction:
Improveoutput accuracyVSAvoidsystem structure
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent segments the anomaly detection system into distinct modular components: a rule engine that generates expected outputs, a comparison module that identifies anomalies, and an anomaly indicator generator. This segmentation allows each component to perform a specific function independently, making the overall system easier to manage and maintain despite its increased complexity. The modular structure enables selective deployment and optimization of different detection mechanisms.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent applies partial action by implementing anomaly detection selectively rather than uniformly across all AI model outputs. The system can adjust the stringency of detection based on the criticality of specific outputs or contexts, applying more rigorous verification only where necessary. This approach maintains reliability for critical decisions while reducing unnecessary complexity for less critical operations.

Inventive Principle:
Principle #16Partial or excessive action

3Measurement precision

If token comparison and validation processes are applied, then measurement precision and anomaly detection capability are improved, but loss of time increases due to additional processing steps

Engineering Contradiction:
Improveanomaly detection precisionVSAvoidvalidation processing time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent applies preliminary action by pre-computing and storing rule engine outputs and expected values before they are needed for comparison. The system prepares validation data in advance, so when AI model outputs require verification, the comparison can be performed quickly against pre-established benchmarks. This reduces the time penalty of validation while maintaining high detection precision.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent enables dynamic adjustment of validation parameters such as anomaly thresholds, confidence levels, and detection sensitivity. By changing these parameters based on contextual requirements, the system can optimize the balance between detection precision and processing time. For time-critical applications, less stringent parameters reduce validation time while maintaining adequate precision; for high-stakes decisions, more stringent parameters enhance precision with acceptable time investment.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS12602624B2Anomaly detection method for model outputs
Publication Date: 2026.04.14 CITIBANK N A
  • US12602624B2 patent drawing
  • US12602624B2 patent drawing
  • US12602624B2 patent drawing

AI summary

Systems and methods for detecting anomalies in generative outputs are disclosed herein. The system receives a user prompt indicating a request for data over a time period. The system inputs, into a model, the user prompt to cause the model to generate an output based on the user prompt. The system then generates the first tokens based on the output. To generate the second tokens, the system retrieves, based on the user prompt, sources relating to the data requested by the user prompt. The system then generates queries to request, from the sources, the data over the time period and generates the second tokens based on the retrieved data. The system then performs a comparison of the first tokens and the second tokens and accepts or rejects the output of the model based on the comparison.