IP Library Granted Patent US 11,216,699
Granted Patent B2
US 11,216,699 · App. 16/440,962 · Granted Jan 4, 2022

System to mitigate against adversarial samples for ML and AI models

Inventors: Yunhan Jia (Sunnyvale, CA); Zhenyu Zhong (Sunnyvale, CA); Yulong Zhang (Sunnyvale, CA); Tao Wei (Sunnyvale, CA)
Assignee: BAIDU USA LLC
G06K9/6262G06F16/535G06F16/55G06K9/6215
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 11,216,699
App. No.
16/440,962
Granted
Jan 4, 2022
Kind
B2
Abstract

Embodiments of the disclosure disclose a system to mitigate against adversarial input samples for machine learning (ML)/artificial intelligence (AI) models. According to one embodiment, a system receives a query from a client for a ML service. The system calculates a similarity score for the query based on a number of prior queries received from the client, the similarity score representing a similarity between the received query and the prior queries. The system determines that the query is an adversarial query in response to determining that the similarity score is above a predetermined threshold.

Claims (37)

1. A computer-implemented method for processing data in a trusted environment, the method comprising:

receiving a query from a client for a machine learning (ML) service to be served by a target ML model;

calculating a similarity score for the query based on a plurality of queries previously received from the client, the similarity score representing a similarity between the received query and prior queries;

determining whether the similarity score is above a predetermine threshold;

determining that the query is an adversarial query in response to determining that the similarity score is above a predetermined threshold;

designating the client associated with the adversarial query as an adversarial client, in response to determining that the query is an adversarial query; and

servicing subsequent queries of the adversarial client with an alternate ML model from a collection of ML models that have been trained together with the target ML model, instead of the target ML model, to prevent exploration of a blind spot of the target ML model.

2. The method of claim 1 , further comprising blocking additional queries from the adversarial client.

3. The method of claim 1 , wherein the alternate ML model is randomly chosen from the collection of ML models for each of the subsequent queries to obfuscate a confidence score returned to the client by the randomly chosen ML model.

4. The method of claim 1 , wherein the collection of ML models were trained together with the target ML model but with a different parameter including a different epoch.

5. The method of claim 1 , wherein the similarity score is calculated based on a distance between any two inputs for any two queries.

6. The method of claim 5 , wherein, if the two inputs are images, the distance includes a count of different pixels between the two images.

7. The method of claim 5 , wherein, if the two inputs are images, the distance includes a sum of differences in pixels between the two images.

8. The method of claim 5 , wherein, if the two inputs comprise two images, the distance includes a root mean square of differences in pixels between the two images.

9. A non-transitory machine-readable medium having instructions stored therein, which when executed by a processor, cause the processor to perform operations, the operations comprising:

receiving a query from a client for a machine learning (ML) service to be served by a target ML model;

calculating a similarity score for the query based on a plurality of queries previously received from the client, the similarity score representing a similarity between the received query and prior queries;

determining whether the similarity score is above a predetermine threshold;

determining that the query is an adversarial query in response to determining that the similarity score is above a predetermined threshold;

designating the client associated with the adversarial query as an adversarial client, in response to determining that the query is an adversarial query; and

servicing subsequent queries of the adversarial client with an alternate ML model from a collection of ML models that are trained together with the target ML model, instead of the target ML model, to prevent exploration of a blind spot of the target ML model.

10. The non-transitory machine-readable medium of claim 9 , wherein the operations further comprising blocking additional queries from the adversarial client.

11. The non-transitory machine-readable medium of claim 9 , wherein the alternate ML model is randomly chosen from the collection of ML models for each of the subsequent queries to obfuscate a confidence score returned to the client by the randomly chosen ML model.

12. The non-transitory machine-readable medium of claim 9 , wherein the collection of ML models is trained together with the target ML model but with a different parameter including a different epoch.

13. The non-transitory machine-readable medium of claim 9 , wherein the similarity score is calculated based on a distance between any two inputs for any two queries.

14. A data processing system, comprising:

a processor; and

a memory coupled to the processor to store instructions, which when executed by the processor, cause the processor to perform operations, the operations including

receiving a query from a client for a machine learning (ML) service to be served by a target ML model,

calculating a similarity score for the query based on a plurality of queries previously received from the client, the similarity score representing a similarity between the received query and prior queries,

determining whether the similarity score is above a predetermine threshold,

determining that the query is an adversarial query in response to determining that the similarity score is above a predetermined threshold,

designating the client associated with the adversarial query as an adversarial client, in response to determining that the query is an adversarial query, and

servicing subsequent queries of the adversarial client with an alternate ML model from a collection of ML models that are trained together with the target ML model, instead of the target ML model, to prevent exploration of a blind spot of the target ML model.

15. The system of claim 14 , wherein the operations further comprising blocking additional queries from the adversarial client.

16. The system of claim 14 , wherein the alternate ML model is randomly chosen from the collection of ML models for each of the subsequent queries to obfuscate a confidence score returned to the client by the randomly chosen ML model.

17. The system of claim 14 , wherein the collection of ML models is trained together with the target ML model but with a different parameter including a different epoch.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 18, 2019
From: JIA, YUNHAN; ZHONG, ZHENYU; ZHANG, YULONG; WEI, TAO
To: BAIDU USA LLC
Reel/Frame 049508/0742 →
Continuity (1)
Related Publication 20200394466A1 · Dec 17, 2020