IP Library Granted Patent US 12,353,549
Granted Patent B2
US 12,353,549 · App. 18/055,849 · Granted Jul 8, 2025

Method and system for thwarting attacks on machine-learning as a service

Inventors: Giorgia Marson (Heidelberg, DE); Sebastien Andreina (Heidelberg, DE); Pascal Zimmer (Bochum, DE); Ghassan Karame (Bochum, DE)
Assignee: NEC CORPORATION
G06F21/566G06F2221/033
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,353,549
App. No.
18/055,849
Granted
Jul 8, 2025
Kind
B2
Abstract

A method for thwarting attacks on a machine-learning (ML) model is provided. The method includes determining, by the ML model, a classification vector based on an input. The method further includes evaluation the classification vector based on a threshold parameter to determine a threshold result. The method also includes outputting a classification prediction based on the threshold result.

Claims (43)

1. A method for thwarting evasion attacks on a machine-learning (ML) based classifier, the method comprising:

obtaining a predetermined threshold parameter;

determining, by the ML based classifier, a classification vector based on an input;

evaluating the classification vector based on the predetermined threshold parameter to determine a threshold result;

determining a classification prediction based on the threshold result by:

selecting a highest ranked classification from the classification vector as the classification prediction if the threshold result is greater than or equal to the predetermined threshold parameter; or

pseudo-randomly determining a classification from a classification set as the classification prediction if the threshold result is below the predetermined threshold parameter; and

outputting the classification prediction.

2. The method of claim 1 , wherein pseudo-randomly determining the classification from the classification set is constrained such that a same classification is selected upon each execution of the method for a same sample provided as the input.

3. The method of claim 1 , further comprising generating a secret cryptographic key associated with the ML based classifier,

wherein pseudo-randomly determining the classification comprises a key-based random selection using the secret cryptographic key.

4. The method of claim 3 , wherein pseudo-randomly determining the classification further comprises:

executing a password-based function (PBF) to compute an index using the input and the secret cryptographic key; and

determining the classification based on the index.

5. The method of claim 4 , wherein the PBF comprises a pseudo-random function (PRF), wherein executing the PBF comprises:

using the input, the secret cryptographic key, and the PRF to generate a plurality of bits associated with the index.

6. The method of claim 5 , wherein executing the PBF to compute the index further comprises:

determining the index based on a modulus operation and the plurality of bits.

7. The method of claim 6 , wherein the plurality of bits indicates two classifications from the classification set, and wherein determining the index comprises:

using one or more bits from the plurality of bits to determine the index from the two classifications indicated by the plurality of bits.

8. The method of claim 1 , wherein selecting of the highest ranked classification from the classification vector uses a maximum operation executed on the classification vector.

9. The method of claim 1 , wherein the predetermined threshold parameter is set to indicate whether the classification vector represents a low confidence region for outputs from the ML based classifier.

10. The method of claim 1 , wherein the ML based classifier is a neural network model trained to provide image classification, facial recognition, or autonomous driving.

11. The method of claim 1 , further comprising deploying, by a cloud computing platform, the ML based classifier as a ML as a service (MLaaS).

12. A cloud computing system for thwarting evasion attacks on a machine-learning (ML) based classifier, the cloud computing system comprising:

one or more processors; and

a non-transitory computer-readable medium having processor-executable instructions stored thereon, wherein the processor-executable instructions, when executed by the one or more processors, facilitate:

obtaining a predetermined threshold parameter;

determining, using the ML based classifier, a classification vector based on an input;

evaluating the classification vector based on the predetermined threshold parameter to determine a threshold result;

determining a classification prediction based on the threshold result by:

selecting a highest ranked classification from the classification vector as the classification prediction if the threshold result is greater than or equal to the predetermined threshold parameter; or

pseudo-randomly determining a classification from a classification set as the classification prediction if the threshold result is below the predetermined threshold parameter; and

outputting the classification prediction based on the threshold result.

13. A tangible, non-transitory computer-readable medium having processor-executable instructions stored thereon which, upon being executed by one or more processors, alone or in combination, provide for execution of a method for thwarting evasion attacks on a machine-learning (ML) based classifier comprising the following steps:

obtaining a predetermined threshold parameter;

determining, using the ML based classifier, a classification vector based on an input;

evaluating the classification vector based on the predetermined threshold parameter to determine a threshold result;

determining a classification prediction based on the threshold result by:

selecting a highest ranked classification from the classification vector as the classification prediction if the threshold result is greater than or equal to the predetermined threshold parameter; or

pseudo-randomly determining a classification from a classification set as the classification prediction if the threshold result is below the predetermined threshold parameter; and

outputting the classification prediction based on the threshold result.

14. The method of claim 1 , wherein the threshold result indicates a confidence of the ML based classifier.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 2, 2025
From: NEC LABORATORIES EUROPE GMBH
To: NEC CORPORATION
Reel/Frame 071280/0592 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 28, 2025
From: MARSON, GIORGIA; KARAME, GHASSAN; ANDREINA, SEBASTIEN; ZIMMER, PASCAL
To: NEC LABORATORIES EUROPE GMBH
Reel/Frame 070671/0019 →
Continuity (2)
Provisional Application 63395366 · Aug 5, 2022
Related Publication 20240045959A1 · Feb 8, 2024
References Cited (17)
US 20150379072A1 · Dirac · 2015 [cited by examiner]
US 20180082058A1 · Ferragut · 2018 [cited by examiner]
US 20200234068A1 · Zhang · 2020 [cited by examiner]
US 20200293941A1 · Bos · 2020 [cited by examiner]
US 20210303695A1 · Grosse · 2021 [cited by examiner]
US 20210374279A1 · Zheng · 2021 [cited by examiner]
US 20220292685A1 · Heisler · 2022 [cited by examiner]
Chen, Jianbo et al.; “HopSkipJumpAttack: A Query-Efficient Decision-Based Attack”; [cited by applicant]
Jia, Jinyuan et al.; “MemGuard: Defending against Black-Box Membership Inference Attacks via Adversarial Examples”; [cited by applicant]
Aithal, Manjushree B. et al.; “Boundary Defense Against Black-box Adversarial Attacks”; [cited by applicant]
Taran, Olga et al.; “Machine learning through cryptographic glasses: combating adversarial attacks by key-based diversified aggregation”; [cited by applicant]
Sharad, Kumar et al.; “On the Security of Randomized Defenses Against Adversarial Samples”; [cited by applicant]
Wang, Derui et al.; “Defending against Adversarial Attack towards Deep Neural Networks via Collaborative Multi-Task Training”; [cited by applicant]
Ilyas, Andrew et al.; “Black-box Adversarial Attacks with Limited Queries and Information”; [cited by applicant]
Tayyab, Muhammad et al.; “Cryptographic Based Secure Model on Dataset for Deep Learning Algorithms”; [cited by applicant]
Li, Deqiang et al.; “HashTran-DNN: A Framework for Enhancing Robustness of Deep Neural Networks against Adversarial Malware Samples”; [cited by applicant]
Goodfellow, Ian et al.; “Evaluation Methodology for Attacks Against Confidence Thresholding Models”; [cited by applicant]