System to mitigate against adversarial samples for ML and AI models

US11216699B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-11216699-B2
Application numberUS-201916440962-A
CountryUS
Kind codeB2
Filing dateJun 13, 2019
Priority dateJun 13, 2019
Publication dateJan 4, 2022
Grant dateJan 4, 2022

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

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.

First claim

Opening claim text (preview).

What is claimed is: 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.

Assignees

Inventors

Classifications

  • G06N3/08Primary

    Learning methods · CPC title

  • Validation; Performance evaluation; Active pattern learning techniques · CPC title

  • G06N3/045Primary

    Combinations of networks · CPC title

  • Matching criteria, e.g. proximity measures · CPC title

  • Convolutional networks [CNN, ConvNet] · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US11216699B2 cover?
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 s…
Who is the assignee on this patent?
Baidu Usa Llc
What technology area does this patent fall under?
Primary CPC classification G06N3/08. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Jan 04 2022 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 1 related publication on this page (citations in our corpus or others sharing the same primary CPC).