# US 2021/0287141 A1 · Training Diverse and Robust Ensembles of Artificial Intelligence Computer Models

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

- Number: US 2021/0287141 A1
- Document ID: US20210287141A1
- Status: Published application
- Kind: A1
- Application number: 16/816,625
- Filed: 2020-03-12
- Published: 2021-09-16
- Earliest claimed: 2020-03-12
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Ian Michael Molloy; Taesung Lee; Benjamin James Edwards
- Web page: https://patentgrep.com/patent/US20210287141A1

## CPC

- G06F 21/52: during program execution, e.g. stack integrity {; Preventing unwanted data erasure; Buffer overflow}
- G06F 18/22: Matching criteria, e.g. proximity measures
- G06F 18/251: {of input or preprocessed data}
- G06F 18/254: {of classification results, e.g. of results related to same input data}
- G06F 21/60: Protecting data
- G06N 3/045: Combinations of networks
- G06N 3/08: Learning methods
- G06N 3/09: Supervised learning
- G06N 20/20: Ensemble learning
- G06V 10/761: {Proximity, similarity or dissimilarity measures}
- G06V 10/776: Validation; Performance evaluation
- G06V 10/809: {of classification results, e.g. where the classifiers operate on the same input data}
- G06V 10/82: using neural networks
- G06V 10/98: Detection or correction of errors, e.g. by rescanning the pattern or by human intervention; Evaluation of the quality of the acquired patterns
- G06F 18/259: {Fusion by voting}
- 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

Mechanisms are provided to implement a hardened ensemble artificial intelligence (AI) model generator. The hardened ensemble AI model generator co-trains at least two AI models. The hardened ensemble AI model generator modifies, based on a comparison of the at least two AI models, a loss surface of one or more of the at least two AI models to prevent an adversarial attack on one AI model, in the at least two AI models, transferring to another AI model in the at least two AI models, to thereby generate one or more modified AI models. At least one of the one or more modified AI models then processes an input to generate an output result.

## Claims

### Claim 1

A method, in a data processing system comprising a processor and a memory, the memory comprising instructions which are executed by the processor to specifically configure the processor to implement a hardened ensemble artificial intelligence (AI) model generator, the method comprising:
co-training, by the hardened ensemble AI model generator, at least two AI models;
modifying, by the hardened ensemble AI model generator, based on a comparison of the at least two AI models, a loss surface of one or more of the at least two AI models to prevent an adversarial attack on one AI model, in the at least two AI models, transferring to another AI model in the at least two AI models, to thereby generate one or more modified AI models; and
processing, by at least one of the one or more modified AI models, an input to generate an output result.

### Claim 2 (depends on 1)

The method of claim 1, wherein modifying, based on the comparison of the at least two AI models, the loss surface of one or more of the at least two AI models, further comprises:
determining, during co-training of the at least two AI models, a similarity measure between gradients of the loss surfaces of the at least two AI models;
based on the similarity measure between the gradients of the loss surfaces of the at least two AI models, determining whether to modify at least one loss surface of the at least two AI models; and
in response to the determination indicating that at least one loss surface of the at least two AI models is to be modified, modifying the at least one loss surface of the at least two AI models.

### Claim 3 (depends on 2)

The method of claim 2, wherein the similarity measure between the gradients of the loss surfaces is determined based on at least one of a cosine similarity or a Lp norm similarity.

### Claim 4 (depends on 1)

The method of claim 1, wherein modifying the loss surface of one or more of the at least two AI models comprises adding a regularizer term, having a regularizer strength value, to a loss function, or increasing the regularizer strength value of the regularizer term in the loss function.

### Claim 5 (depends on 4)

The method of claim 4, wherein the regularizer strength value of the regularizer term is set to a value that maximizes a distance between the loss surfaces of the at least two AI models while minimizing accuracy loss of the at least two AI models in outputs generated by the at least two AI models.

### Claim 6 (depends on 1)

The method of claim 1, wherein the at least two AI models comprises more than two AI models, and wherein the modifying based on a comparison of the at least two AI models comprises performing multiple pairwise comparisons of pairs of AI models in the at least two AI models and modifying loss surfaces of one or more of the AI models in each pair based on results of the comparisons.

### Claim 7 (depends on 1)

The method of claim 1, wherein the pairwise comparisons of pairs of AI models are performed based on at least one of a clique architecture, a star architecture, or a ring architecture.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
generating, by the hardened ensemble AI model generator, an ensemble of AI models comprising the at least two AI models, wherein processing the input to generate the output result comprises processing the input by each of the AI models in the ensemble of AI models and combining the outputs of the AI models in the ensemble of AI models to generate a single output result for the ensemble.

### Claim 9 (depends on 8)

The method of claim 8, wherein combining the outputs of the AI models in the ensemble of AI models to generate a single output result for the ensemble comprises at least one of averaging the outputs of the AI models in the ensemble of AI models or performing a majority vote operation on the outputs of the AI models in the ensemble of AI models.

### Claim 10 (depends on 1)

The method of claim 1, wherein the co-training and modifying operations are performed for each mini-batch of training data used to train the at least two AI models.

### Claim 11

A computer program product comprising a computer readable storage medium having a computer readable program stored therein, wherein the computer readable program, when executed on a data processing system, causes the data processing system to implement a hardened ensemble artificial intelligence (AI) model generator that operates to:
co-train at least two AI models;
modify, based on a comparison of the at least two AI models, a loss surface of one or more of the at least two AI models to prevent an adversarial attack on one AI model, in the at least two AI models, transferring to another AI model in the at least two AI models, to thereby generate one or more modified AI models; and
process, by at least one of the one or more modified AI models, an input to generate an output result.

### Claim 12 (depends on 11)

The computer program product of claim 11, wherein the computer readable program further causes the hardened ensemble AI model generator to modify, based on the comparison of the at least two AI models, the loss surface of one or more of the at least two AI models, at least by:
determining, during co-training of the at least two AI models, a similarity measure between gradients of the loss surfaces of the at least two AI models;
based on the similarity measure between the gradients of the loss surfaces of the at least two AI models, determining whether to modify at least one loss surface of the at least two AI models; and
in response to the determination indicating that at least one loss surface of the at least two AI models is to be modified, modifying the at least one loss surface of the at least two AI models.

### Claim 13 (depends on 12)

The computer program product of claim 12, wherein the similarity measure between the gradients of the loss surfaces is determined based on at least one of a cosine similarity or a Lp norm similarity.

### Claim 14 (depends on 11)

The computer program product of claim 11, wherein the computer readable program further causes the hardened ensemble AI model generator to modify the loss surface of one or more of the at least two AI models at least by adding a regularizer term, having a regularizer strength value, to a loss function, or increasing the regularizer strength value of the regularizer term in the loss function.

### Claim 15 (depends on 14)

The computer program product of claim 14, wherein the regularizer strength value of the regularizer term is set to a value that maximizes a distance between the loss surfaces of the at least two AI models while minimizing accuracy loss of the at least two AI models in outputs generated by the at least two AI models.

### Claim 16 (depends on 11)

The computer program product of claim 11, wherein the at least two AI models comprises more than two AI models, and wherein the modifying based on a comparison of the at least two AI models comprises performing multiple pairwise comparisons of pairs of AI models in the at least two AI models and modifying loss surfaces of one or more of the AI models in each pair based on results of the comparisons.

### Claim 17 (depends on 11)

The computer program product of claim 11, wherein the pairwise comparisons of pairs of AI models are performed based on at least one of a clique architecture, a star architecture, or a ring architecture.

### Claim 18 (depends on 11)

The computer program product of claim 11, wherein the computer readable program further causes the hardened ensemble AI model generator to:
generate an ensemble of AI models comprising the at least two AI models, wherein processing the input to generate the output result comprises processing the input by each of the AI models in the ensemble of AI models and combining the outputs of the AI models in the ensemble of AI models to generate a single output result for the ensemble.

### Claim 19 (depends on 18)

The computer program product of claim 18, wherein combining the outputs of the AI models in the ensemble of AI models to generate a single output result for the ensemble comprises at least one of averaging the outputs of the AI models in the ensemble of AI models or performing a majority vote operation on the outputs of the AI models in the ensemble of AI models.

### Claim 20

An apparatus comprising:
at least one processor; and
at least one memory coupled to the at least one processor, wherein the at least one memory comprises instructions which, when executed by the at least one processor, cause the at least one processor to implement a hardened ensemble artificial intelligence (AI) model generator that operates to:
co-train at least two AI models;
modify, based on a comparison of the at least two AI models, a loss surface of one or more of the at least two AI models to prevent an adversarial attack on one AI model, in the at least two AI models, transferring to another AI model in the at least two AI models, to thereby generate one or more modified AI models; and
process, by at least one of the one or more modified AI models, an input to generate an output result.
