Generative Model LID Screening for Memorization Detection

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Deep generative models (DGMs) are prone to memorizing training data, which poses legal and privacy risks, especially in public-facing or safety-critical applications, as they fail to generalize and may reproduce training data or generate substantially similar data without appropriate detection.

Innovation Solution

Evaluate the local intrinsic dimensionality of data samples using the generative model parameters to detect memorization, comparing it with a threshold to identify and prevent the reproduction of training data samples, and modify queries to generate alternative outputs.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If the generative model is trained to generate realistic and diverse images, then the model's generative capability is improved, but the model may memorize training data samples, leading to reproduction of training data

Engineering Contradiction:
Improvegenerative capabilityVSAvoidmemorization risk
Core Design Contradiction:
Adaptability or versatilityVSReliability

Solution Approach 1:

The patent replaces traditional memorization detection methods (such as nearest-neighbor search or exact matching) with a geometric approach based on local intrinsic dimensionality (LID) analysis. This substitution enables detection of memorization through mathematical properties of the model's probability distribution manifold, providing a more sophisticated and reliable detection mechanism that doesn't interfere with generative capability.

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

Solution Approach 2:

The patent changes the parameter being monitored from discrete similarity metrics to continuous geometric parameters (local intrinsic dimensionality). By evaluating LID at different points in the output space and comparing it to the ground truth distribution's LID, the system can detect memorization through parameter deviation rather than direct sample matching, maintaining generative flexibility while enabling detection.

Inventive Principle:
Principle #35Parameter changes

2Reliability

If the model reproduces training data samples, then the model fails to generalize from training data, but detecting and preventing memorization may reduce the model's output diversity

Engineering Contradiction:
Improvegeneralization capabilityVSAvoidoutput diversity
Core Design Contradiction:
ReliabilityVSAdaptability or versatility

Solution Approach 1:

The patent applies partial action by not completely suppressing all low-LID outputs, but rather detecting and flagging them for review. The system calculates LID values and compares them to thresholds, allowing some flexibility in the detection process. This partial application of the detection mechanism prevents over-suppression of legitimate diverse outputs while still catching memorized samples.

Inventive Principle:
Principle #16Partial or excessive action

Solution Approach 2:

The patent introduces local intrinsic dimensionality as an intermediary metric between the generated output and the memorization detection decision. Rather than directly comparing generated samples to training data, the system uses LID as a mediator that captures the geometric structure of the probability distribution, enabling indirect detection that preserves output diversity while identifying memorization.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Measurement precision

If traditional memorization detection methods are used, then detection capability is limited, but implementing advanced detection increases system complexity

Engineering Contradiction:
Improvememorization detection precisionVSAvoiddetection system complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent enables the generative model to detect its own memorization behavior through self-reflection on the geometric properties of its own output distribution. By evaluating the local intrinsic dimensionality of its generated samples against the ground truth distribution, the model performs self-diagnosis without requiring external detection systems, reducing overall system complexity while maintaining high detection precision.

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS20250378377A1Detecting model memorization with local intrinsic dimensionality
Publication Date: 2025.12.11 THE TORONTO DOMINION BANK
  • US20250378377A1 patent drawing
  • US20250378377A1 patent drawing
  • US20250378377A1 patent drawing

AI summary

Local intrinsic dimensionality (LID), when evaluated on a data sample for a generative model, can be used to detect model memorization by comparing the LID determined according to the model parameters with a threshold. This allows detection of memorization by the generative model that reproduces a training data sample as well as memorization that presents low degrees of freedom relative to a ground truth dimensionality of the data set. When data samples are generated by the generative model, the LID of the data samples is evaluated to detect memorization, and memorized data samples may be prevented from delivery as generated data samples. During training, training data samples are evaluated for memorization and may be used to modify the training process to reduce memorization.