IP Library Granted Patent US 12,705,368
Granted Patent B2
US 12,705,368 · App. 18/800,990 · Granted Aug 11, 2026

Variant inconsistency attack (VIA) as a simple and effective adversarial attack method

Inventors: Srinivasa Phani Kumar Gadde (Fremont, CA); Xu Zhao (San Mateo, CA)
Assignee: ORACLE INTERNATIONAL CORPORATION
G06F21/60G06F40/295H04L51/02
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,705,368
App. No.
18/800,990
Filed
Aug 12, 2024
Granted
Aug 11, 2026
Kind
B2
Art Unit
2493
USPC
726/26
Abstract

The present disclosure relates to techniques for using variant inconsistency attack (VIA) as a simple and effective adversarial attack method to create useful adversarial examples for adversarial training of machine-learning models. In one particular aspect, a method is provided that includes obtaining a set of input examples for attacking a machine-learning model (the set of examples do not have corresponding labels), modifying an example from the set of examples in a utility preserving manner to generate a pair of modified examples, attacking the machine-learning model with the pair of modified examples in order generate a pair of predictions for the pair of modified examples, comparing the pair of predictions to determine whether the pair of predictions are the same or different, and in response to the pair of predictions being different, adding the pair of modified examples to a set of adversarial examples.

Claims (60)

1 . A computer implemented method comprising:

receiving, at a digital assistant comprising a chatbot, one or more utterances from a user, wherein the one or more utterances comprise at least one utterance having noise;

inputting the one or more utterances into the chatbot;

processing, by the chatbot, the one or more utterances, wherein the processing comprises:

performing, by a machine learning model, one or more natural language tasks on the one or more utterances to obtain output, wherein the machine learning model is fine-tuned on adversarial examples in order to perform the one or more natural language tasks on utterances that have noise, wherein:

the adversarial examples comprise pairs of modified examples,

one of the examples in each pair of modified examples has been modified from the other of the examples in each respective pair of modified examples in a utility preserving manner,

the utility preserving manner includes modifying the example without changing an original meaning or expected label of the example, and

the pair of modified examples share a same expected label, and

generating, based on the output, a natural language response to the one or more utterances; and

communicating, by the digital assistant, the response to the user.

2 . The computer implemented method of claim 1 , wherein the noise comprises one or more spelling mistake, a randomly inserted word, a randomly deleted word, swapped word positions, word synonyms, different word forms, irrelevant words, slang, translations, or any combination thereof.

3 . The computer implemented method of claim 1 , wherein the one of the examples in each pair of modified examples are modified by selecting one or more letters or words from the other of the examples in each respective pair of modified examples, and performing an insert, delete, or replace operation on the one or more letters or words.

4 . The computer implemented method of claim 1 , wherein the pairs of modified examples are generated by attacking the machine-learning model with initial pairs of modified examples, wherein the attacking comprises:

inputting the initial pairs of modified examples into the machine-learning model, generating, by the machine-learning model, a pair of predictions for each of the initial pairs of modified examples,

comparing the pair of predictions for each of the initial pairs of modified examples to determine whether the pair of predictions are the same or different for each of the initial pairs of modified examples; and

when a pair of predictions are different for a given initial pair of modified examples, adding the given initial pair of modified examples to the adversarial examples, which are used for fine-tuning the machine-learning model.

5 . The computer implemented method of claim 4 , wherein the fine-tuning comprises feeding the adversarial examples to the machine-learning model and learning or updating plurality model parameters to account for characteristics of the adversarial examples based on maximizing or minimizing an objective function.

6 . The computer implemented method of claim 4 , wherein the attacking further comprises when the pair of predictions are different and prior to adding the given initial pair of modified examples to the adversarial examples, determining individually whether the modified example of the given initial pair of modified examples is a true adversarial example, and limiting the addition of the modified example to the adversarial examples as only being the addition of the modified example deemed to be a true adversarial example to the adversarial examples.

7 . A system comprising:

one or more processors; and

a memory coupled to the one or more processors, the memory storing a plurality of instructions executable by the one or more processors, the plurality of instructions comprising instructions that when executed by the one or more processors cause the one or more processors to perform processing comprising:

receiving, at a digital assistant comprising a chatbot, one or more utterances from a user, wherein the one or more utterances comprise at least one utterance having noise;

inputting the one or more utterances into the chatbot;

processing, by the chatbot, the one or more utterances, wherein the processing comprises:

performing, by a machine learning model, one or more natural language tasks on the one or more utterances to obtain output, wherein the machine learning model is fine-tuned on adversarial examples in order to perform the one or more natural language tasks on utterances that have noise, wherein:

the adversarial examples comprise pairs of modified examples,

one of the examples in each pair of modified examples has been modified from the other of the examples in each respective pair of modified examples in a utility preserving manner,

the utility preserving manner includes modifying the example without changing an original meaning or expected label of the example, and

the pair of modified examples share a same expected label, and

generating, based on the output, a natural language response to the one or more utterances; and

communicating, by the digital assistant, the response to the user.

8 . The system of claim 7 , wherein the noise comprises one or more spelling mistake, a randomly inserted word, a randomly deleted word, swapped word positions, word synonyms, different word forms, irrelevant words, slang, translations, or any combination thereof.

9 . The system of claim 7 , wherein the one of the examples in each pair of modified examples are modified by selecting one or more letters or words from the other of the examples in each respective pair of modified examples, and performing an insert, delete, or replace operation on the one or more letters or words.

10 . The system of claim 8 , wherein the pairs of modified examples are generated by attacking the machine-learning model with initial pairs of modified examples, wherein the attacking comprises:

inputting the initial pairs of modified examples into the machine-learning model, generating, by the machine-learning model, a pair of predictions for each of the initial pairs of modified examples,

comparing the pair of predictions for each of the initial pairs of modified examples to determine whether the pair of predictions are the same or different for each of the initial pairs of modified examples; and

when a pair of predictions are different for a given initial pair of modified examples, adding the given initial pair of modified examples to the adversarial examples, which are used for fine-tuning the machine-learning model.

11 . The system of claim 10 , wherein the fine-tuning comprises feeding the adversarial examples to the machine-learning model and learning or updating plurality model parameters to account for characteristics of the adversarial examples based on maximizing or minimizing an objective function.

12 . The system of claim 10 , wherein the attacking further comprises when the pair of predictions are different and prior to adding the given initial pair of modified examples to the adversarial examples, determining individually whether the modified example of the given initial pair of modified examples is a true adversarial example, and limiting the addition of the modified example to the adversarial examples as only being the addition of the modified example deemed to be a true adversarial example to the adversarial examples.

13 . A non-transitory computer-readable memory storing a plurality of instructions executable by one or more processors, the plurality of instructions comprising instructions that when executed by the one or more processors cause the one or more processors to perform processing comprising:

receiving, at a digital assistant comprising a chatbot, one or more utterances from a user, wherein the one or more utterances comprise at least one utterance having noise;

inputting the one or more utterances into the chatbot;

processing, by the chatbot, the one or more utterances, wherein the processing comprises:

performing, by a machine learning model, one or more natural language tasks on the one or more utterances to obtain output, wherein the machine learning model is fine-tuned on adversarial examples in order to perform the one or more natural language tasks on utterances that have noise, wherein:

the adversarial examples comprise pairs of modified examples,

one of the examples in each pair of modified examples has been modified from the other of the examples in each respective pair of modified examples in a utility preserving manner,

the utility preserving manner includes modifying the example without changing an original meaning or expected label of the example, and

the pair of modified examples share a same expected label, and

generating, based on the output, a natural language response to the one or more utterances; and

communicating, by the digital assistant, the response to the user.

14 . The non-transitory computer-readable memory of claim 13 , wherein the noise comprises one or more spelling mistake, a randomly inserted word, a randomly deleted word, swapped word positions, word synonyms, different word forms, irrelevant words, slang, translations, or any combination thereof.

15 . The non-transitory computer-readable memory of claim 13 , wherein:

the one of the examples in each pair of modified examples are modified by selecting one or more letters or words from the other of the examples in each respective pair of modified examples, and performing an insert, delete, or replace operation on the one or more letters or words.

16 . The non-transitory computer-readable memory of claim 13 , wherein the pairs of modified examples are generated by attacking the machine-learning model with initial pairs of modified examples, wherein the attacking comprises:

inputting the initial pairs of modified examples into the machine-learning model, generating, by the machine-learning model, a pair of predictions for each of the initial pairs of modified examples,

comparing the pair of predictions for each of the initial pairs of modified examples to determine whether the pair of predictions are the same or different for each of the initial pairs of modified examples; and

when a pair of predictions are different for a given initial pair of modified examples, adding the given initial pair of modified examples to the adversarial examples, which are used for fine-tuning the machine-learning model.

17 . The non-transitory computer-readable memory of claim 16 , wherein the fine-tuning comprises feeding the adversarial examples to the machine-learning model and learning or updating plurality model parameters to account for characteristics of the adversarial examples based on maximizing or minimizing an objective function.

18 . The non-transitory computer-readable memory of claim 16 , wherein the attacking further comprises when the pair of predictions are different and prior to adding the given initial pair of modified examples to the adversarial examples, determining individually whether the modified example of the given initial pair of modified examples is a true adversarial example, and limiting the addition of the modified example to the adversarial examples as only being the addition of the modified example deemed to be a true adversarial example to the adversarial examples.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 12, 2024
From: GADDE, SRINIVASA PHANI KUMAR; ZHAO, XU
To: ORACLE INTERNATIONAL CORPORATION
Reel/Frame 068253/0829 →
Continuity (3)
Continuation 17707392 · Mar 29, 2022
Provisional Application 63185531 · May 7, 2021
Related Publication 20240403447A1 · Dec 5, 2024
References Cited (45)
US 11036857B2 · Tran et al. · 2021 [cited by applicant]
US 11227215B2 · Liu et al. · 2022 [cited by applicant]
US 11256754B2 · Tan · 2022 [cited by examiner]
US 11544472B2 · Stabler · 2023 [cited by examiner]
US 11856276B2 · Banerjee · 2023 [cited by applicant]
US 12086274B2 · Gadde et al. · 2024 [cited by applicant]
US 12524630B2 · Clinchant · 2026 [cited by examiner]
US 20160055240A1 · Tur · 2016 [cited by examiner]
US 20190005386A1 · Chen et al. · 2019 [cited by applicant]
US 20190260775A1 · Bartos et al. · 2019 [cited by applicant]
US 20200125943A1 · Copty et al. · 2020 [cited by applicant]
US 20200167471A1 · Rouhani et al. · 2020 [cited by applicant]
US 20210012188A1 · Zhang et al. · 2021 [cited by applicant]
US 20210226990A1 · Devi et al. · 2021 [cited by applicant]
US 20210319093A1 · Molloy et al. · 2021 [cited by applicant]
US 20220094709A1 · Sharma · 2022 [cited by examiner]
US 20220114399A1 · Castiglione et al. · 2022 [cited by applicant]
US 20220126864A1 · Moustafa et al. · 2022 [cited by applicant]
JP 2021022317A · 2021 [cited by applicant]
WO 2019207770A1 · 2019 [cited by applicant]
WO 2020165935A1 · 2020 [cited by applicant]
MCTSBug: Generating Adversarial Text Sequences via Monte Carlo Tree Search and Homoglyph Attack; Ji Gao, Jack Lanchantin, Yanjun Qi; Sep. 27, 2018; ICLR 2019 Conference; pp. 1-20. [cited by examiner]
TFlip: White-Box Adversarial Examples for Text Classification; Javid Ebrahimi, Anyi Rao, Daniel Lowd, Dejing Dou; Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (vol. 2: Short Pa… [cited by examiner]
U.S. Appl. No. 17/707,392 , “Non-Final Office Action”, filed Feb. 1, 2024, 12 pages. [cited by applicant]
U.S. Appl. No. 17/707,392 , “Notice of Allowance”, filed May 10, 2024, 10 pages. [cited by applicant]
Biggio , et al., “Evasion Attacks Against Machine Learning at Test Time”, Machine Learning and Knowledge Discovery in Databases, Aug. 21, 2017, 16 pages. [cited by applicant]
Gao , et al., “Black-box Generation of Adversarial Text Sequences to Evade Deep Learning Classifiers”, Cornell University Library, Available Online at: https://arxiv.org/pdf/1801.04354.pdf, Jan. 13, 2018, 21 pages. [cited by applicant]
Gao , et al., “Black-Box Generation of Adversarial Text Sequences to Evade Deep Learning Classifiers”, Institute of Electrical and Electronics Engineers Security and Privacy Workshops, May 23, 2018, pp. 1-21. [cited by applicant]
Goodfellow, et al., “Explaining and Harnessing Adversarial Examples”, International Conference on Learning Representations, Mar. 20, 2015, pp. 1-11. [cited by applicant]
Jia, et al., “Adversarial Examples for Evaluating Reading Comprehension Systems”, Empirical Methods in Natural Language Processing, Jul. 23, 2017, 11 pages. [cited by applicant]
Jin , et al., “TextFool: Fool Your Model with Natural Adversarial Text”, Available Online at: http://groups.csail.mit.edu/medg/ftp/psz-papers/2019%20Di%20Jin.pdf, 2019, 10 pages. [cited by applicant]
Lecun , et al., “Gradient-Based Learning Applied to Document Recognition”, Proceedings of the Institute of Electrical and Electronics Engineers, vol. 86, No. 11, Nov. 1998, pp. 2278-2324. [cited by applicant]
Liang , et al., “Deep Text Classification can be Fooled”, Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence, Apr. 26, 2017, pp. 4208-4215. [cited by applicant]
Morris , et al., “Reevaluating Adversarial Examples in Natural Language”, Cornell University Library, Available Online at: https://arxiv.org/pdf/2004.14174.pdf, Apr. 25, 2020, 15 pages. [cited by applicant]
Mrksic , et al., “Counter-Fitting Word Vectors to Linguistic Constraints”, Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, … [cited by applicant]
International Application No. PCT/US2022/022291 , “International Preliminary Report on Patentability”, Nov. 16, 2023, 7 pages. [cited by applicant]
International Application No. PCT/US2022/022291 , “International Search Report and Written Opinion”, Aug. 4, 2022, 10 pages. [cited by applicant]
Peng , et al., “Structure-Preserving Transformation: Generating Diverse and Transferable Adversarial Examples”, Cornell University Library, Available Online at: https://arxiv.org/pdf/1809.02786.pdf, Sep. 8, 2018, 8 page… [cited by applicant]
Ribeiro , et al., ““Why Should I Trust You?” Explaining the Predictions of Any Classifier”, Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Aug. 2016, pp. 1135-1144. [cited by applicant]
Ribeiro , et al., “Anchors: High-Precision Model-Agnostic Explanations”, Association for the Advancement of Artificial Intelligence, vol. 32, No. 1, Apr. 25, 2018, pp. 1527-1535. [cited by applicant]
Szegedy , et al., “Going Deeper with Convolutions”, Institute of Electrical and Electronics Engineers Conference on Computer Vision and Pattern Recognition, Sep. 17, 2014, pp. 1-12. [cited by applicant]
Szegedy , et al., “Intriguing Properties of Neural Networks”, International Conference on Learning Representations, Feb. 19, 2014, pp. 1-10. [cited by applicant]
Zhang , et al., “Adversarial Attacks on Deep Learning Models in Natural Language Processing: A Survey”, Association for Computing Machinery Transactions on Intelligent Systems and Technology, vol. 1, No. 1, Apr. 11, 201… [cited by applicant]
Zhao , et al., “Variant Inconsistency Attack (VIA): A Simple and Effective Adversarial Attack Method Without Using Labeled Data”, Oracle, 15 pages. [cited by applicant]
Japanese Application No. 2023-568351, Notice of Decision to Grant mailed Oct. 28, 2025, 3 pages. [cited by applicant]