# US 2021/0174168 A1 · Xai and xnn conversion

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

- Number: US 2021/0174168 A1
- Document ID: US20210174168A1
- Status: Published application
- Kind: A1
- Application number: 17/114,995
- Filed: 2020-12-08
- Published: 2021-06-10
- Earliest claimed: 2019-12-09
- Assignees: UMNAI Limited
- Applicants: UMNAI Limited
- Inventors: Angelo DALLI; Mauro PIRRONE
- Web page: https://patentgrep.com/patent/US20210174168A1

## CPC

- G06N 3/045: Combinations of networks
- G06N 5/045: Explanation of inference; Explainable artificial intelligence [XAI]; Interpretable artificial intelligence
- G06N 3/042: Knowledge-based neural networks; Logical representations of neural networks
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/0475: Generative networks
- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 3/08: Learning methods
- G06N 3/082: modifying the architecture, e.g. adding, deleting or silencing nodes or connections
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/0895: Weakly supervised learning, e.g. semi-supervised or self-supervised learning
- G06N 3/09: Supervised learning
- G06N 3/092: Reinforcement learning
- G06N 3/094: Adversarial learning
- G06N 3/096: Transfer learning
- G06N 3/098: Distributed learning, e.g. federated learning
- G06N 3/10: Interfaces, programming languages or software development kits, e.g. for simulating neural networks
- G06N 5/022: Knowledge engineering; Knowledge acquisition
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

In an exemplary embodiment, a method for extracting a model from an existing machine learning model may be shown and described. In black-box models, transfer learning consists of transferring knowledge with the objective of learning new patterns. However, in an exemplary embodiment, transfer learning presents the concept of converting an explainable neural network into logically equivalent variants, which may not be possible with black-box neural networks, which typically consist of multiple fully-connected layers. The white-box nature of an exemplary XNN or XAI enables new ways of transferring knowledge with intelligent conversions of neural networks in ways that are impossible to do with a black-box model.

## Claims

### Claim 1

A computer implemented method for converting from a first system to an explainable neural network, comprising executing on a processor the steps of:
extracting one or more conditions from one or more partitions within the system;
forming rules from the extracted conditions;
aggregating the rules into one or more partitions;
transforming one or more of the conditions;
combining one or more of the extracted and transformed conditions and identifying one or more coefficients related to the conditions and partitions;
generating linear or non-linear equations from the coefficients, wherein the linear or non-linear equations are local models; and
converting, based on a predefined conversion algorithm, an architecture formed from the generated linear or non-linear equations into a logically equivalent architecture having a different one or more of density, sparsity, and structure, said converting step further comprising preserving, in a conversion from the first system to the logically equivalent architecture, all information and all functionality from the first system.

### Claim 2 (depends on 1)

The method of claim 1, wherein converting comprises the steps of:
adding one or more additional features to the system;
multiplying the additional features by one or more coefficient weights of zero; and
repeating the step of adding one or more additional features until a prediction network of the explainable neural network is fully connected.

### Claim 3 (depends on 1)

The method of claim 1, further comprising implementing the neural network on a GPU.

### Claim 4 (depends on 1)

The method of claim 1, further comprising refining a set of rules produced by the coefficient weights via a gradient descent technique.

### Claim 5 (depends on 1)

The method of claim 1, further comprising deleting one or more rules.

### Claim 6 (depends on 2)

The method of claim 2, wherein the explainable neural network is a dense neural network.

### Claim 7 (depends on 1)

The method of claim 1, further comprising obtaining knowledge via a model induction method, and identifying the one or more additional features based on the obtained knowledge.

### Claim 8 (depends on 2)

The method of claim 2, further comprising: receiving human knowledge and identifying the one or more additional features based on the human knowledge.

### Claim 9 (depends on 8)

The method of claim 8, wherein the human knowledge is represented as a rule in a logic-based format, and wherein converting further comprises directly combining the rule with a plurality of rules formed from the extracted conditions.

### Claim 10 (depends on 1)

The method of claim 1, wherein converting comprises the steps of:
identifying one or more zero-valued coefficients; and
eliminating the one or more zero-valued coefficients.

### Claim 11 (depends on 10)

The method of claim 10, further comprising implementing the explainable neural network on at least one of a CPU and low-powered hardware.

### Claim 12 (depends on 10)

The method of claim 10, further comprising: receiving human knowledge and identifying the one or more zero-valued coefficients based on the human knowledge.

### Claim 13 (depends on 10)

The method of claim 10, wherein the system is a dense neural network, and the explainable neural network is a sparse neural network.

### Claim 14 (depends on 1)

The method of claim 1, further comprising implementing the explainable neural network directly as a hardware circuit using at least one of:
a flexible programmable gate array,
an application specific integrated circuit,
a neuromorphic computing architecture, and
quantum computing hardware.

### Claim 15 (depends on 1)

The method of claim 1, wherein the converting comprises the steps of:
implementing each of the one or more local models in a micro neural network, wherein each micro neural network is self-contained; and
aggregating the plurality of micro neural networks to form a global model.

### Claim 16 (depends on 15)

The method of claim 15, further comprising training each of the plurality of micro neural networks independently.

### Claim 17 (depends on 15)

The method of claim 15, wherein the plurality of micro neural networks comprises at least one of a sparse neural network and a dense neural network.

### Claim 18

A system for providing an explainable neural network, comprising:
a plurality of micro neural networks, wherein each micro neural network is configured to interface with another micro neural network, wherein an output of each of the plurality of micro neural networks is interpretable by at least one of the plurality of micro neural networks, and wherein each of the plurality of micro neural networks comprises a local model.

### Claim 19 (depends on 18)

The system of claim 18, wherein each of the plurality of micro neural networks is independently implemented on a low-powered hardware resource.

### Claim 20 (depends on 18)

The system of claim 18, wherein the plurality of micro neural networks are deployed on quantum processing hardware.

### Claim 21 (depends on 18)

The system of claim 18, wherein each of the plurality of micro neural networks is configurable to a user defined level of precision.

### Claim 22 (depends on 18)

The system of claim 18, wherein each of the plurality of micro neural networks is trained independently.

### Claim 23 (depends on 18)

The system of claim 18, wherein the plurality of micro neural networks comprises at least one of a dense neural network and a sparse neural network.

### Claim 24 (depends on 18)

The system of claim 18, wherein at least one of the plurality of micro neural networks comprises one or more of:
a conditional layer configured to model the input features based on one or more partitions, wherein each of the one or more partitions comprises a rule;
an aggregation layer configured to aggregate one or more rules into one or more of the partitions; and
a switch output layer configured to selectively pool the aggregated partitions from the aggregation layer with the remaining partitions from the conditional layer;
a feature generation and transformation network comprising one or more transformation neurons configured to apply one or more transformations to the input features;
a fit layer configured to combine features which have been transformed by the feature generation and transformation network to identify one or more coefficients related to at least one of: one or more features and one or more partitions; and
a value output layer configured to output a value related to at least one of: one or more features, one or more partitions, as applied to the one or more coefficients; and
an output layer configured to present the output which is interpretable and explainable by at least one of a machine program or a human.

### Claim 25 (depends on 24)

The system of claim 24, wherein one micro neural network forms a conditional network, the conditional network comprising the conditional layer, aggregation layer, and switch output layer.

### Claim 26 (depends on 25)

The system of claim 25, wherein the prediction network is one of a sparse neural network and a dense neural network.

### Claim 27 (depends on 24)

The system of claim 24, wherein one micro neural network forms a prediction network, the prediction network comprising the feature generation and transformation network, the fit layer, and the value output layer.

### Claim 28 (depends on 27)

The system of claim 27, wherein the prediction network is one of a sparse neural network and a dense neural network.

### Claim 29 (depends on 18)

The system of claim 18, wherein an activation path comprising a combination of micro neural networks activated to produce the output is identified and presented with the output.

### Claim 30

A system for converting from a first system to an explainable neural network, comprising a processor configured to execute the steps of:
extracting one or more conditions from one or more partitions within the system;
forming rules from the extracted conditions;
aggregating the rules into one or more partitions;
transforming one or more of the conditions;
combining one or more of the extracted and transformed conditions and identifying one or more coefficients related to the conditions and partitions;
generating linear or non-linear equations from the coefficients, wherein the linear or non-linear equations are local models; and
converting, based on a predefined conversion algorithm, an architecture formed from the generated linear or non-linear equations into a logically equivalent architecture having a different density.
