# US 2022/0292356 A1 · Systems and methods of training neural networks against adversarial attacks

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0292356 A1
- Document ID: US20220292356A1
- Status: Published application
- Kind: A1
- Application number: 17/805,405
- Filed: 2022-06-03
- Published: 2022-09-15
- Earliest claimed: 2018-09-12
- Assignees: Adobe Inc.
- Applicants: Adobe Inc.
- Inventors: Mayank SINGH; Abhishek SINHA; Balaji KRISHNAMURTHY
- Web page: https://patentgrep.com/patent/US20220292356A1

## CPC

- G06F 21/57: Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
- G06N 3/08: Learning methods
- G06F 18/214: Generating training patterns; Bootstrap methods, e.g. bagging or boosting
- G06F 18/24: Classification techniques
- G06F 21/577: {Assessing vulnerabilities and evaluating computer system security}
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/048: Activation functions
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/09: Supervised learning
- G06N 3/094: Adversarial learning
- G06N 5/046: Forward inferencing; Production systems
- G06V 10/82: using neural networks
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Embodiments disclosed herein describe systems, methods, and products that generate trained neural networks that are robust against adversarial attacks. During a training phase, an illustrative computer may iteratively optimize a loss function that may include a penalty for ill-conditioned weight matrices in addition to a penalty for classification errors. Therefore, after the training phase, the trained neural network may include one or more well-conditioned weight matrices. The one or more well-conditioned weight matrices may minimize the effect of perturbations within an adversarial input thereby increasing the accuracy of classification of the adversarial input. By contrast, conventional training approaches may merely reduce the classification errors using backpropagation, and, as a result, any perturbation in an input is prone to generate a large effect on the output.

## Claims

### Claim 1

A system comprising:
a memory component; and
one or more processing devices coupled to the memory component, the one or more processing devices to perform operations comprising:
training a neural network to optimize a loss function to generate one or more well-conditioned weight matrices, the loss function comprising a first penalty for classification errors and a second penalty based on a condition number of weight matrices of the neural network; and
while training, classifying input of an adversarial input file by propagating portions of the adversarial input file through the neural network while constraining an effect of calculated perturbations added to the adversarial input file by utilizing the weight matrices of the neural network.

### Claim 2 (depends on 1)

The system of claim 1, the operations further comprising:
constraining the condition number based on evaluating the loss function.

### Claim 3 (depends on 1)

The system of claim 1, wherein the adversarial input file comprises at least one of: a video file, an image file, a text file, and an audio file.

### Claim 4 (depends on 1)

The system of claim 1, wherein the input to be classified comprises at least one of one of a handwritten text, a likeness of an object, and a voice.

### Claim 5 (depends on 1)

The system of claim 1, the operations further comprising:
optimizing the loss function by minimizing the condition number of the weight matrices for connections between one or more pairs of layers in the neural network.

### Claim 6 (depends on 1)

The system of claim 1, the operations further comprising:
while training, calculating the second penalty using the condition number of the weight matrices.

### Claim 7 (depends on 1)

The system of claim 1, the operations further comprising:
outputting the neural network as a trained neural network based on a determination that a value of the loss function is within a desired threshold.

### Claim 8 (depends on 1)

The system of claim 1, the operations further comprising:
iteratively optimizing the loss function by modifying a weight matrix of at least one ill conditioned weight matrix of the neural network.

### Claim 9

A system comprising:
a memory component; and
one or more processing devices coupled to the memory component, the one or more processing devices to perform operations comprising:
receiving, by the one or more processing devices, an input file that comprises an input to be classified;
processing the input in the input file by propagating portions of the input file through a neural network, wherein the neural network is trained based on a loss function that comprises a first penalty for classification errors and a second penalty based on a condition number of weight matrices of the neural network; and
generating an output comprising a classification of the input.

### Claim 10 (depends on 9)

The system of claim 9, the operations further comprising:
while processing the input to generate the output, constraining at least one perturbation in the input file with the neural network.

### Claim 11 (depends on 9)

The system of claim 9, the operations further comprising:
classifying at least one item in the input file by constraining an effect of a perturbation in the input file utilizing the weight matrices of the neural network.

### Claim 12 (depends on 9)

The system of claim 9, wherein the input file comprises one or more of image data, video data, text data, and audio data.

### Claim 13

A method comprising:
with one or more processing devices:
feeding training data to a neural network; and
using the training data, training the neural network to optimize a loss function to generate one or more well-conditioned weight matrices, the loss function comprising a first penalty for classification errors and a second penalty based on a condition number of weight matrices of the neural network.

### Claim 14 (depends on 13)

The method of claim 13, further comprising:
calculating at least one classification error based on training the neural network with the training data;
back-propagating the at least one classification error to adjust elements in the weight matrices;
while back-propagating the at least one classification error, constraining the condition number of weight matrices; and
calculating the second penalty based on the condition number of weight matrices.

### Claim 15 (depends on 13)

The method of claim 13, wherein the training data comprises at least one of a video file, an image file, a text file, and an audio file.

### Claim 16 (depends on 13)

The method of claim 13, further comprising:
while training, classifying input of training data while constraining an effect of at least one calculated perturbation added to the training data by utilizing the weight matrices of the neural network.

### Claim 17 (depends on 13)

The method of claim 13, further comprising:
while training, calculating the second penalty using the condition number of the weight matrices.

### Claim 18 (depends on 13)

The method of claim 13, further comprising:
optimizing the loss function by minimizing the condition number of the weight matrices for connections between one or more pairs of layers in the neural network.

### Claim 19 (depends on 13)

The method of claim 13, further comprising:
outputting the neural network as a trained neural network based on a determination that a value of the loss function is within a desired threshold.

### Claim 20 (depends on 13)

The method of claim 13, further comprising:
initializing the neural network training the neural network with the training data.
