# US 2022/0284297 A1 · Compiler-based neuron-aware deep neural network ensemble training

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

- Number: US 2022/0284297 A1
- Document ID: US20220284297A1
- Status: Published application
- Kind: A1
- Application number: 17/688,654
- Filed: 2022-03-07
- Published: 2022-09-08
- Earliest claimed: 2021-03-08
- Assignees: Northwestern University
- Applicants: Northwestern University
- Inventors: Ettore Maria Giuseppe Trainiti; Simone Campanoni; Douglas C. Downey
- Web page: https://patentgrep.com/patent/US20220284297A1

## CPC

- G06N 3/082: modifying the architecture, e.g. adding, deleting or silencing nodes or connections
- G06N 20/20: Ensemble learning
- G06N 3/045: Combinations of networks
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/088: Non-supervised learning, e.g. competitive learning
- G06N 3/09: Supervised learning
- G06N 3/096: Transfer learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Extensive training of DNNs may take a significant amount of time due to redundancy in data processing within network nodes. Improvement may be made by a method for training a Deep Neural Network (DNN) ensemble, include the steps of: executing by at least a processor in a computer, program code of a compiler which is stored in a non-transitory computer-readable medium, wherein the compiler configures a Deep Neural Network (DNN) into N networks to perform training steps: (a) receiving, a plurality of inputs i . . . I, by a plurality of neurons ni . . . nx, wherein each neuron ni being a computation node comprised in the N networks of the DNN; (b) utilizing by the compiler, the plurality of inputs i . . . I to train to the N networks to ensemble the DNN through analyzing, identifying and removing inter-network neuron redundancy to obtain savings in training time constraints and a reduction in original memory footprint.

## Claims

### Claim 1

A method for training a Deep Neural Network (DNN) ensemble, comprising:
executing by at least a processor in a computer, program code comprising a compiler which is stored in a non-transitory computer-readable medium, wherein the compiler configures a Deep Neural Network (DNN) into N networks to perform training steps comprising:
receiving, a plurality of inputs i . . . I, by a plurality of neurons ni . . . nx, wherein each neuron ni being a computation node comprised in the N networks of the DNN; and
utilizing by the compiler, the plurality of inputs i . . . I to train the N networks to ensemble the DNN through analyzing, identifying and removing inter-network neuron redundancy in the N networks to obtain both savings in training time constraints and a reduction in original memory footprint.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the plurality of inputs comprising one or a combination of: a tensor flow graph describing a DNN, a training dataset, a validation dataset, an ensemble cardinality and an ensemble combining function.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the analyzing, identifying and removing of the inter-network neuron redundancy comprises: using a portion of the plurality of inputs to train at least a main DNN and a peer DNN, wherein the compiler carrying out a first step of eliminating redundancy from the main DNN and a peer DNN through a dead neuron analysis (DNA) and a dead neuron elimination (DNE).

### Claim 4 (depends on 3)

The method according to claim 3, wherein the portion of the plurality of inputs comprises: the tensor flow graph, the training dataset and the validation dataset as inputs by the compiler to carry out the first step of eliminating redundancy to train the DNN through the dead neuron analysis (DNA) and the dead neuron elimination (DNE) to logically partition the N networks into at least the main DNN and the peer DNN, wherein dead neurons do not contribute to any of unique outputs Ui . . . UI have been eliminated in both the peer DNN and in the main DNN through the DNA and DNE.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the main DNN that is free from the dead neurons is subjected to neuron dependence analysis (NDA) to identify connected neurons that are caused to fire together according to different neuron activation functions provided to a fraction of the plurality of inputs, wherein the connected neurons that fire together are linked together by an edge in a neuron dependence graph (NDG).

### Claim 6 (depends on 5)

The method according to claim 5, wherein the first step of eliminating redundancy further comprising performing a step of common sub-networks extraction (CSNE), such that sets of semantically equivalent neurons that are extracted and removed from the main DNN are to be placed in the common sub-networks, such that the main DNN is free from the dead neurons and the common sub-networks, wherein the common sub-networks comprises connected neurons that behave in a semantically equivalent way across different networks.

### Claim 7 (depends on 6)

The method according to claim 6, wherein the first step of the eliminating redundancy is followed by carrying out a second step of DNN generation, comprising utilizing by the compiler: the main DNN, the common sub-networks and the ensemble cardinality as inputs to generate a trained DNN having (N−2) networks which are free of the dead neurons and the common sub-networks.

### Claim 8 (depends on 7)

The method according to claim 7, wherein the second step of DNN generation is followed by carrying out a third step of ensembling the trained DNN, comprising: aggregating by the compiler, at least the trained DNN, the main DNN, the common sub-networks, the peer DNN, and the output combining function as inputs, to generate an ensembled DNN which is free from the inter-network neuron redundancy.

### Claim 9 (depends on 8)

The method according to claim 8, comprising the compiler implementing a combination of Python code written to interact with a tensor flow stack and C++ code written to implement the identifying and removing of the inter-network neuron redundancy.

### Claim 10 (depends on 1)

The method according to claim 1, wherein the plurality of neurons ni nx comprised in the DNN are implemented by one of or a combination of: a plurality of Graphical Processing Units (GPUs) and a plurality of Tensor Processing Units (TPUs).

### Claim 11

A system for training a Deep Neural Network ensemble, comprising:
comprising a plurality of neurons ni . . . nx, wherein each neuron ni being a computation node in the DNN; and
at least a processor in a computer that executes program code comprising a compiler which is stored in a non-transitory computer-readable medium, wherein the compiler is enabled to configure a Deep Neural Network (DNN) into N networks to perform training steps, comprising:
receive a plurality of inputs i . . . I by a plurality of neurons ni . . . nx, wherein each neuron ni being a computation node comprised in the N networks of the DNN; and
utilize the plurality of inputs i . . . I to train the N networks to ensemble the DNN through analyzing, identifying and removing inter-network neuron redundancy in the N networks to obtain both savings in training time constraints and a reduction in original memory footprint.

### Claim 12 (depends on 11)

The system according to claim 11, wherein the plurality of inputs comprising one or a combination of: a tensor flow graph describing a DNN, a training dataset, a validation dataset, an ensemble cardinality and an ensemble combining function.

### Claim 13 (depends on 12)

The system according to claim 12, wherein the analyzing, identifying and removing of the inter-network neuron redundancy comprises: using a portion of the plurality of inputs to train at least a main DNN and a peer DNN, wherein the compiler carrying out a first step of eliminating redundancy from the main DNN and a peer DNN through a dead neuron analysis (DNA) and a dead neuron elimination (DNE).

### Claim 14 (depends on 13)

The system according to claim 13, wherein the portion of the plurality of inputs comprises: the tensor flow graph, the training dataset and the validation dataset as inputs by the compiler to carry out the first step of eliminating redundancy to train the DNN through the dead neuron analysis (DNA) and the dead neuron elimination (DNE) to logically partition the N networks into at least the main DNN and the peer DNN, wherein dead neurons that do not contribute to any of unique outputs Ui . . . UI have been eliminated in both the peer DNN and in the main DNN through the DNA and DNE.

### Claim 15 (depends on 14)

The system according to claim 14, wherein the main DNN that is free from the dead neurons is subjected to neuron dependence analysis (NDA) to identify connected neurons that are caused to fire together according to different neuron activation functions provided to a fraction of the plurality of inputs, wherein the connected neurons that fire together are linked together by an edge in a neuron dependence graph (NDG).

### Claim 16 (depends on 15)

The system according to claim 15, wherein the first step of eliminating redundancy further comprising performing a step of common sub-networks extraction (CSNE), such that sets of semantically equivalent neurons that are extracted and removed from the main DNN are to be placed in the common sub-networks, such that the main DNN is free from the dead neurons and the common sub-networks, wherein the common sub-networks comprises connected neurons that behave in a semantically equivalent way across different networks.

### Claim 17 (depends on 16)

The system according to claim 16, wherein the first step of the eliminating redundancy is followed by carrying out a second step of DNN generation, comprising utilizing by the compiler: the main DNN, the common sub-networks and the ensemble cardinality as inputs to generate a trained DNN having (N−2) networks which are free of the dead neurons and the common sub-networks.

### Claim 18 (depends on 17)

The system according to claim 17, wherein the second step of DNN generation is followed by carrying out a third step of ensembling the trained DNN, comprising: aggregating by the compiler, at least the trained DNN, the main DNN, the common sub-networks, the peer DNN, and the output combining function as inputs, to generate an ensembled DNN which is free from the inter-network neuron redundancy.

### Claim 19 (depends on 18)

The system according to claim 18, comprising the compiler implementing a combination of Python code written to interact with a tensor flow stack and C++ code written to implement the identifying and removing of the inter-network neuron redundancy.

### Claim 20 (depends on 11)

The system according to claim 11, wherein the plurality of neurons ni . . . nx comprised in the DNN are implemented by one of or a combination of: a plurality of Graphical Processing Units (GPUs) and a plurality of Tensor Processing Units (TPUs).
