# US 2021/0081831 A1 · Automatically Determining Poisonous Attacks on Neural Networks

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

- Number: US 2021/0081831 A1
- Document ID: US20210081831A1
- Status: Published application
- Kind: A1
- Application number: 16/571,323
- Filed: 2019-09-16
- Published: 2021-03-18
- Earliest claimed: 2019-09-16
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Nathalie Baracaldo Angel; Bryant Chen; Biplav Srivastava; Heiko H. Ludwig
- Web page: https://patentgrep.com/patent/US20210081831A1

## CPC

- G06N 3/08: Learning methods
- G06F 18/211: Selection of the most significant subset of features
- G06F 18/23: Clustering techniques
- G06F 18/24: Classification techniques
- G06N 3/0499: Feedforward networks
- G06N 3/09: Supervised learning
- G06N 7/01: Probabilistic graphical models, e.g. probabilistic networks
- G06N 20/00: Machine learning
- G06V 10/762: using clustering, e.g. of similar faces in social networks
- G06V 10/771: Feature selection, e.g. selecting representative features from a multi-dimensional feature space
- G06V 10/776: Validation; Performance evaluation
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Embodiments relate to a system, program product, and method for automatically determining which activation data points in a neural model have been poisoned to erroneously indicate association with a particular label or labels. A neural network is trained using potentially poisoned training data. Each of the training data points is classified using the network to retain the activations of the last hidden layer, and segment those activations by the label of corresponding training data. Clustering is applied to the retained activations of each segment, and a cluster assessment is conducted for each cluster associated with each label to distinguish clusters with potentially poisoned activations from clusters populated with legitimate activations. The assessment includes executing a set of analyses and integrating the results of the analyses into a determination as to whether a training data set is poisonous based on determining if resultant activation clusters are poisoned.

## Claims

### Claim 1

A computer system comprising:
a processor operatively coupled to memory;
an artificial intelligence (AI) platform, in communication with the processor, having machine learning (ML) tools to process an untrusted training data set, the tools comprising:
a training manager to train a neural model with the untrusted data set;
a ML manager, operatively coupled to the training manager, to classify each data point in the untrusted data set using the trained neural model, and to retain activations of one or more designated layers in the trained neural model;
a cluster manager, operatively coupled to the ML manager, to apply a clustering technique on the retained activations for each label, and for each cluster to assess integrity of data in the cluster, including the cluster manager to:
analyze extracted information from the untrusted training data set and the clustered activations, including leveraging one or more of:
content of the data in the untrusted training data set;
noise distribution of the data; and
a preliminary cluster classification; and
a classification manager, operatively coupled to the cluster manager, the classification manager to assign a classification to the assessed cluster, the cluster classification corresponding to the integrity assessment, wherein the cluster classification is selected from the group consisting of: poisoned and legitimate.

### Claim 2 (depends on 1)

The system of claim 1, wherein integrity assessment of the content text data further comprises the cluster manager to select a topic from the group consisting of: a preliminary topic assignment and a topic assignment based on the analysis of the extracted information.

### Claim 3 (depends on 2)

The system of claim 2, wherein the topic assignment based on the analysis further comprises the cluster manager to analyze topic text indicative of a classification selected from the group consisting of: poisonous and legitimate.

### Claim 4 (depends on 1)

The system of claim 1, wherein the preliminary cluster classification further comprises the cluster manager to analyze one or more of:
known classification data associated with the untrusted training data set; and
determined classification data associated with the clustered activations.

### Claim 5 (depends on 1)

The system of claim 1, wherein analysis of the noise distribution data further comprises the cluster manager to:
select the noise distribution data from the group consisting of: noise data extracted through analysis of the untrusted training data set and known noise distribution data provided with the untrusted training data set.

### Claim 6 (depends on 1)

The system of claim 1, further comprising the cluster manager to rank a plurality of integrity assessments as a function of historical performance.

### Claim 7 (depends on 1)

The system of claim 1, further comprising the training manager to retrain the neural model based on one or more assessments.

### Claim 8

A computer program product to utilize machine learning to process an untrusted training data set, the computer program product comprising a computer readable storage medium having program code embodied therewith, the program code executable by a processor to:
train a neural model with the untrusted training data set;
classify each data point in the untrusted training data set using the trained neural model, and retain activations of one or more designated layers in the trained neural model;
apply a clustering technique on the retained activations for each label, and for each cluster assess integrity of data in the cluster, including program code to:
analyze extracted information from the untrusted training data set and the clustered activations, including leveraging one or more of:
content of the data in the untrusted training data set;
noise distribution of the data; and
a preliminary cluster classification;
responsive to the analysis, selectively determine a classification of the untrusted training data set; and
assign the selectively determined classification to the untrusted training data set, wherein the classification is selected from the group consisting of: poisonous and legitimate.

### Claim 9 (depends on 8)

The computer program product of claim 8, wherein integrity assessment of the content text data further comprises program code to select a topic from the group consisting of: a preliminary topic assignment and a topic assignment based on the analysis of the extracted information.

### Claim 10 (depends on 9)

The computer program product of claim 9, wherein the topic assignment based on the analysis further comprises program code to analyze topic text indicative of a classification selected from the group consisting of: poisonous and legitimate.

### Claim 11 (depends on 8)

The computer program product of claim 8, wherein the preliminary cluster classification further comprises program code to analyze one or more of:
known classification data associated with the untrusted training data set; and
determined classification data associated with the clustered activations.

### Claim 12 (depends on 8)

The computer program product of claim 8, wherein analysis of the noise distribution data further comprises program code to:
select the noise distribution data from the group consisting of: noise data extracted through analysis of the untrusted training data set and known noise distribution data provided with the untrusted training data set.

### Claim 13 (depends on 8)

The computer program product of claim 8, further comprising program code to rank a plurality of integrity assessments as a function of historical performance.

### Claim 14

A method comprising:
receiving, by a neural network, an untrusted training data set, each data point of the untrusted data set having a label;
training a neural model using the untrusted data set;
classifying each data point in the untrusted data set using the trained neural model, and retaining activations of one or more designated layers in the trained neural model;
applying a clustering technique on the retained activations for each label;
assessing integrity of data in the untrusted training data set, including:
analyzing extracted information from the untrusted training data set and the clustered activations, including leveraging one or more of:
content of the data in the untrusted training data set;
noise distribution of the data; and
a preliminary cluster classification;
responsive to the analysis, selectively determining a classification of the untrusted training data set; and
assigning the selectively determined classification to the untrusted training data set, wherein the classification is selected from the group consisting of: poisonous and legitimate.

### Claim 15 (depends on 14)

The method of claim 14, wherein the content text data includes a topic selected from the group consisting of: a preliminary topic assignment and a topic assignment based on the analysis of the extracted information.

### Claim 16 (depends on 15)

The method of claim 15, wherein the topic assignment based on the analysis includes topic text indicative of a classification selected from the group consisting of: poisonous and legitimate.

### Claim 17 (depends on 14)

The method of claim 14, wherein the preliminary cluster classification includes one or more of:
known classification data associated with the untrusted training data set; and
determined classification data associated with the clustered activations.

### Claim 18 (depends on 14)

The method of claim 14, wherein:
the noise distribution data is selected from the group consisting of: noise data extracted through analysis of the untrusted training data set and known noise distribution data provided with the untrusted training data set.

### Claim 19 (depends on 14)

The method of claim 14, further comprising a plurality of integrity assessments, wherein the integrity assessments are ranked as a function of historical performance.

### Claim 20 (depends on 14)

The method of claim 14, further comprising retraining the neural model based on one or more assessments.
