ML Model Extraction Protection via Temporal Inconsistency Detection

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Machine learning models are vulnerable to model extraction attacks, where attackers can replicate the model by feeding valid and invalid inputs, leading to potential misuse and reduced model accuracy when conventional countermeasures are applied.

Innovation Solution

Implementing motion estimation and anomaly detection techniques to differentiate between legitimate and adversarial inputs, measuring temporal consistency, and adjusting response actions such as slowing down inference or returning random outputs to prevent model extraction without modifying the model architecture or retraining.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If conventional countermeasures are applied to protect ML model, then model extraction is prevented, but model accuracy is reduced

Engineering Contradiction:
Improvemodel protectionVSAvoidmodel accuracy
Core Design Contradiction:
ReliabilityVSManufacturing precision

Solution Approach 1:

The system segments the protection mechanism from the model itself by introducing a separate detection layer that analyzes temporal patterns of inputs and outputs without modifying the model's internal structure or decision-making process, thereby maintaining accuracy while providing protection

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces temporal consistency analysis as an intermediary mechanism that sits between the attacker and the model, detecting extraction attempts through pattern recognition in the input-output sequences without directly interfering with the model's accurate predictions

Inventive Principle:
Principle #24Intermediary (Mediator)

2Ease of operation

If ML model is provided as a service, then accessibility is improved, but vulnerability to extraction attacks increases

Engineering Contradiction:
Improvemodel accessibilityVSAvoidextraction attack vulnerability
Core Design Contradiction:
Ease of operationVSObject-affected harmful factors

Solution Approach 1:

The system implements feedback by continuously monitoring the sequence of inputs and outputs, using temporal consistency analysis to detect when an attacker is systematically querying the model for extraction purposes, and responding appropriately to thwart the attack while maintaining normal service accessibility

Inventive Principle:
Principle #23Feedback

3Reliability

If model extraction is detected, then security is improved, but inference speed is reduced

Engineering Contradiction:
ImprovesecurityVSAvoidinference speed
Core Design Contradiction:
ReliabilityVSSpeed

Solution Approach 1:

The system applies partial action by performing temporal consistency analysis at selective intervals rather than on every single inference request, detecting extraction attempts through periodic sampling of input-output pairs, thereby providing security while minimizing the impact on overall inference speed

Inventive Principle:
Principle #16Partial or excessive action

Data Source

PatentUS20240202323A1Method and system for protecting a machine learning model against extraction
Publication Date: 2024.06.20 NXP BV
  • US20240202323A1 patent drawing
  • US20240202323A1 patent drawing
  • US20240202323A1 patent drawing

AI summary

Systems and methods for protecting a Machine Learning (ML) model from extraction have been described. In an illustrative, non-limiting embodiment, a method may include: obtaining a plurality of input samples usable as part of an inference operation, wherein the inference operation is performed through execution of a machine learning (ML) model. The method may further include obtaining a plurality of outputs from the inference operation. The method may further include detecting a temporal inconsistency among at least one of: (a) the plurality of input samples, or (b) the plurality of outputs. Finally, the method may further include identifying an attempt to extract the ML model, based at least in part upon the determination.