Embedding Drift Detection for ML Clustering

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Machine learning models based on computer vision, NLP, and self-driving cars face challenges in effectively labeling high-dimensional data, leading to inefficient training due to the curse of dimensionality, where clustering algorithms produce sporadic results in high-dimensional spaces.

Innovation Solution

The implementation of embedding drift techniques that map high-dimensional data to a lower-dimensional space using UMAP for dimension reduction, followed by clustering with HDBScan and purity metric analysis to identify and optimize clusters, allowing for the export of high-value labeling examples.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If clustering algorithms are applied directly to high-dimensional embedding vectors, then the model can process production data, but the clustering results become sporadic and unreliable due to the curse of dimensionality

Engineering Contradiction:
Improveclustering result reliabilityVSAvoiddimensionality
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent applies UMAP (Uniform Manifold Approximation and Projection) to transform high-dimensional embedding vectors into a lower-dimensional space (typically 2D or 3D). This dimensionality reduction resolves the curse of dimensionality by preserving local distances and cluster structures while eliminating the equidistant point problem inherent in high-dimensional spaces, thereby enabling reliable clustering algorithms to function effectively.

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

2Productivity

If more production data is labeled to improve model performance, then the model can learn from more examples, but the cost and difficulty of labeling increases significantly

Engineering Contradiction:
Improvemodel performance improvementVSAvoidlabeling time and cost
Core Design Contradiction:
ProductivityVSLoss of time

Solution Approach 1:

The system automatically performs drift detection and cluster identification on production data without requiring manual labeling of all data points. By using unsupervised clustering algorithms on embedded vectors, the system self-identifies which data points represent novel concepts or distributions, thereby eliminating the need for costly and time-consuming manual labeling of entire datasets while still enabling model improvement through targeted labeling of only the most valuable samples.

Inventive Principle:
Principle #25Self-service

3Loss of energy

If only a small fraction of production data is labeled to reduce costs, then labeling expenses decrease, but the model misses opportunities to learn from valuable new data patterns

Engineering Contradiction:
Improvelabeling resource consumptionVSAvoidnew data pattern information
Core Design Contradiction:
Loss of energyVSLoss of information

Solution Approach 1:

The system implements a feedback loop where clustering results from production data are analyzed to identify clusters with low purity scores (indicating novel concepts). These identified clusters are then prioritized for labeling, and the labeled data is used to retrain and improve the model. This feedback mechanism ensures that labeling resources are concentrated on the most informative data patterns, maximizing the information gained per labeling investment.

Inventive Principle:
Principle #23Feedback

4Productivity

If clustering is performed with a single set of parameters, then the process is simple and fast, but the clustering may not capture all relevant data structures and patterns

Engineering Contradiction:
Improveclustering processing speedVSAvoidclustering parameter adaptability
Core Design Contradiction:
ProductivityVSAdaptability or versatility

Solution Approach 1:

The patent employs dynamic parameter adjustment by running clustering algorithms multiple times with different parameter configurations. The system evaluates clustering results using purity metrics and selects the parameter set that produces the most meaningful clusters for drift detection. This dynamic approach allows the system to adapt to different data distributions and characteristics while maintaining computational efficiency through automated parameter selection rather than exhaustive searching.

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS11775871B1Optimizing machine learning based on embedding smart data drift
Publication Date: 2023.10.03 ARIZE AI INC
  • US11775871B1 patent drawing
  • US11775871B1 patent drawing
  • US11775871B1 patent drawing

AI summary

Techniques for optimizing a machine learning model. The techniques can include: obtaining one or more embedding vectors based on a prediction of a machine learning model; mapping the embedding vectors from a higher dimensional space to a 2D/3D space to generate one or more high density points in the 2D/3D space; clustering the high-density points by running a clustering algorithm multiple times, each time with a different set of parameters to generate one or more clusters; applying a purity metric to each cluster to generate a normalized purity score of each cluster; identifying one or more clusters with a normalized purity score lower than a threshold; and optimizing the identifying one or more clusters.