# US 2021/0081708 A1 · Automatically Determining Whether an Activation Cluster Contains Poisonous Data

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

- Number: US 2021/0081708 A1
- Document ID: US20210081708A1
- Status: Published application
- Kind: A1
- Application number: 16/571,321
- 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/US20210081708A1

## CPC

- G06N 3/08: Learning methods
- G06F 18/214: Generating training patterns; Bootstrap methods, e.g. bagging or boosting
- G06F 18/23211: with adaptive number of clusters
- G06F 18/2411: based on the proximity to a decision surface, e.g. support vector machines
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/0499: Feedforward networks
- G06N 3/09: Supervised learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## 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 network 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 analyzing, for each cluster, a distance of a median of the activations therein to medians of the activations in the labels.

## Claims

### Claim 1

A computer system comprising:
a processor operatively coupled to memory;
an artificial intelligence (AI) platform, in communication with the processing, 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:
determine a first distance between a first median and a second median, the first median representing intra-cluster first activations for a first cluster, the first cluster representing a first label, and the second median representing first activations for the first label, the first activations defining a first data set associated with the first label; and
determine a second distance between the first median and a third median representing second activations for a second label, the second activations defining a second data set associated with the second label, the second label being different from the first label;
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; and
a repair manager, operatively coupled to the classification manager, the repair manager to selectively remediate one or more clusters classified as poisoned.

### Claim 2 (depends on 1)

The system of claim 1, wherein integrity assessment of the classified data further comprises the classification manager to assign a poisoned classification to the first cluster when the second distance is less than or equal to the first distance.

### Claim 3 (depends on 2)

The system of claim 2, further comprising the repair manager to perform a remediation action on each cluster classified as poisoned through an action selected from the group consisting of: repair the cluster and remove the cluster.

### Claim 4 (depends on 2)

The system of claim 2, wherein integrity assessment of the classified data further comprises the classification manager to:
determine the first label has a first characteristic;
determine the second label has a second characteristic different from the first characteristic; and
wherein the poisoned cluster has a cluster characteristic similar to the second characteristic and dissimilar from the first characteristic.

### Claim 5 (depends on 1)

The system of claim 1, wherein integrity assessment of the classified data further comprises the classification manager to assign a legitimate classification to the first cluster when the second distance is greater than the first distance.

### Claim 6 (depends on 5)

The system of claim 5, wherein integrity assessment of the classified data further comprises the classification manager to:
determine the first label, associated with the legitimate cluster, has a first characteristic;
determine the second label has a second characteristic different from the first characteristic; and
wherein the legitimate cluster has a cluster characteristic similar to the first characteristic and dissimilar from the second characteristic.

### Claim 7

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:
determine a first distance between a first median and a second median, the first median represents intra-cluster first activations for a first cluster, the first cluster represents a first label, and the second median represents first activations for the first label, the first activations define a first data set associated with the first label; and
determine a second distance between the first median and a third median, the third median represents second activations for a second label, the second activations define a second data set associated with the second label, the second label being different from the first label;
compare the first and second distances, and classify the first cluster responsive to the comparison, wherein the cluster classification is selected from the group consisting of: poisoned and legitimate; and
selectively remediate one or more clusters classified as poisoned.

### Claim 8 (depends on 7)

The computer program product of claim 7, wherein integrity assessment of the classified data further comprises program code to assign a poisoned classification to the first cluster when the second distance is less than or equal to the first distance.

### Claim 9 (depends on 8)

The computer program product of claim 8, further comprising program code to perform a remediation action selected from the group consisting of: repair the cluster and remove the cluster.

### Claim 10 (depends on 8)

The computer program product of claim 8, further comprising program code to:
determine the first label has a first characteristic;
determine the second label has a second characteristic different from the first characteristic; and
wherein the poisoned cluster has a cluster characteristic similar to the second characteristic and dissimilar from the first characteristic.

### Claim 11 (depends on 7)

The computer program product of claim 7 further comprising program code to assign a legitimate classification to the first cluster when the second distance is greater than the first distance.

### Claim 12 (depends on 7)

The computer program product of claim 7 further comprising program code to:
determine the first label, associated with the legitimate cluster, has a first characteristic;
determine the second label has a second characteristic different from the first characteristic; and
wherein the legitimate cluster has a cluster characteristic similar to the first characteristic and dissimilar from the second characteristic.

### Claim 13

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;
for each cluster, assessing integrity of data associated with the cluster including:
determining a first distance between a first median and a second median, the first median representing intra-cluster first activations for a first cluster, the first cluster representing a first label, and the second median representing first activations for the first label, the first activations defining a first data set associated with the first label; and
determining a second distance between the first median and a third median representing second activations for a second label, the second activations defining a second data set associated with the second label, the second label being different from the first label;
comparing the first and second distances, and classifying the first cluster responsive to the comparison, wherein the cluster classification is selected from the group consisting of: poisoned and legitimate; and
selectively remediating one or more clusters classified as poisoned.

### Claim 14 (depends on 13)

The method of claim 13, further comprising assigning a poisoned classification to the first cluster when the second distance is less than or equal to the first distance.

### Claim 15 (depends on 14)

The method of claim 14, wherein the poisoned cluster is subject to a remediation action selected from the group consisting of: repair and removal.

### Claim 16 (depends on 14)

The method of claim 14, wherein:
the first label has a first characteristic;
the second label has a second characteristic different from the first characteristic; and
wherein the poisoned cluster has a cluster characteristic similar to the second characteristic and dissimilar from the first characteristic.

### Claim 17 (depends on 13)

The method of claim 13, further comprising assigning a legitimate classification to the first cluster when the second distance is greater than the first distance.

### Claim 18 (depends on 17)

The method of claim 17, wherein the first cluster is classified legitimate, and
the first label, associated with the legitimate cluster, has a first characteristic;
the second label has a second characteristic different from the first characteristic; and
wherein the legitimate cluster has a cluster characteristic similar to the first characteristic and dissimilar from the second characteristic.
