Counterfactual Distance Analysis for AI Model Retraining

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing methods for identifying when to retrain an AI model are inadequate due to high false positives and the requirement for well-calibrated models that provide confidence scores, which are not always available.

Innovation Solution

A platform, language, cloud, and database agnostic AI model analyzing module that generates counterfactuals and computes an average counterfactual distance to determine when an AI model needs to be retrained, using both input samples and how the AI model reacts to them.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If proxy approaches are used to analyze distance between training and target set feature distributions, then model performance analysis can be performed without ground-truth labels, but the number of false positives increases significantly

Engineering Contradiction:
Improvemodel performance analysis reliabilityVSAvoidfalse positive rate
Core Design Contradiction:
ReliabilityVSMeasurement precision

Solution Approach 1:

The patent introduces counterfactual samples as an intermediary between the target samples and the model performance evaluation. Instead of directly comparing target samples to training data distribution (which causes false positives), the system generates counterfactual samples that represent boundary cases and uses the distance between target samples and their counterfactuals as a mediator to infer model performance. This indirect measurement approach reduces false positives while maintaining reliability.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent replaces the conventional statistical distance measurement approach (mechanical system) with an AI-based counterfactual generation and distance computation approach. Instead of using traditional statistical methods to measure distribution distance, the system uses neural networks to generate counterfactual samples and compute distances in the feature space, providing more accurate and reliable performance analysis with fewer false positives.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

2Loss of information

If confidence score-based approaches are used to analyze model performance, then insights into model behavior can be obtained, but the requirement for well-calibrated models with confidence scores limits applicability

Engineering Contradiction:
Improvemodel behavior insightsVSAvoidmodel type compatibility
Core Design Contradiction:
Loss of informationVSAdaptability or versatility

Solution Approach 1:

The patent creates a universal performance analysis framework that works with any AI model type regardless of whether it provides confidence scores. The counterfactual-based approach serves multiple functions: it can evaluate classification models, regression models, and any other model type without requiring model-specific calibration or confidence score outputs. This makes the system universally applicable while still providing deep insights into model behavior.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

The patent extracts the essential performance evaluation capability from confidence score-based methods without requiring the confidence scores themselves. By separating the performance analysis function from the model's output characteristics (confidence scores), the system can obtain model behavior insights from any model type, extracting only the necessary information (predictions and features) needed for counterfactual generation and distance computation.

Inventive Principle:
Principle #2Taking out (Extraction)

3Ease of operation

If standard performance metrics are used without ground-truth labels, then model performance can be analyzed in unsupervised settings, but accurate performance measurement becomes unavailable

Engineering Contradiction:
Improveunsupervised analysis capabilityVSAvoidperformance metric accuracy
Core Design Contradiction:
Ease of operationVSMeasurement precision

Solution Approach 1:

The patent performs preliminary action by generating counterfactual samples and computing distances before actual model deployment or during early monitoring phases. This allows the system to establish baseline performance characteristics and detect distribution shifts proactively, maintaining measurement precision even in unsupervised settings where ground-truth labels are unavailable. The counterfactual distances serve as preliminary indicators of model performance.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS20250165853A1System and method for identifying when to retrain an artificial intelligence model
Publication Date: 2025.05.22 JPMORGAN CHASE BANK NA
  • US20250165853A1 patent drawing
  • US20250165853A1 patent drawing
  • US20250165853A1 patent drawing

AI summary

Various methods and processes, apparatuses/systems, and media for identifying when to retrain an AI model are disclosed. A processor receives the AI model and a set of target data samples on a predefined time period; implements an artificial intelligence technique to generate a plurality of counterfactuals and corresponding target data samples among the set of target data samples for analyzing performance of the received AI model; computes an average counterfactual distance between closest counterfactuals and corresponding target data samples on the predefined time period; compares the average counterfactual distance to a predefined threshold value; identifies that the AI model needs to be retrained when output data from comparing indicates that the average counterfactual distance is less than the predefined threshold value; and automatically retrains the AI model when it is determined that the average counterfactual distance is less than the predefined threshold value.