# US 11,106,976 B2 · Neural network output layer for machine learning

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

- Number: US 11,106,976 B2
- Document ID: US11106976B2
- Status: Granted
- Kind: B2
- Application number: 16/459,731
- Filed: 2019-07-02
- Published: 2019-10-24
- Granted: 2021-08-31
- Earliest claimed: 2017-08-19
- Assignees: Wave Computing, Inc.
- Applicants: Wave Computing, Inc.
- Inventors: Sylvain Flamant
- Web page: https://patentgrep.com/patent/US11106976B2

## CPC

- G06F 16/9024: {Graphs; Linked lists (G06F16/9027 takes precedence)}
- G06N 3/08: Learning methods
- G06F 16/902: {using more than one table in sequence, i.e. systems with three or more layers}
- G06F 16/906: Clustering; Classification
- G06F 17/16: Matrix or vector computation {, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization (matrix transposition G06F7/78)}
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/048: Activation functions
- G06N 3/063: using electronic means
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/09: Supervised learning
- G06N 3/088: Non-supervised learning, e.g. competitive learning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Techniques for a neural network output layer for machine learning are disclosed. A plurality of processing elements within a reconfigurable fabric is configured to implement a data flow graph, where the data flow graph implements a neural network. The data flow graph can include machine learning or deep learning. A layer is implemented, within the neural network, that maps a first vector of real values to a second vector of real values bounded by zero and one, where the second vector sums to a value of one using fixed-point calculations. The layer can include a final layer within the neural network. The layer that maps the first vector includes a Softmax function. Results of the neural network are classified based on a value of the second vector. The classifying can include part of a machine learning or a deep learning process.

## Claims

### Claim 1

A processor-implemented method for data manipulation comprising:
configuring a plurality of processing elements within a reconfigurable fabric to implement a data flow graph, wherein the data flow graph implements a neural network;
implementing a layer, based on a parabolic estimator function,
within the neural network, that maps a first vector of real values to a second vector of real values bounded by zero and one wherein the second vector sums to a value of one using fixed point calculations; and
classifying results of the neural network based on a value of the second vector.

### Claim 2 (depends on 1)

The method of claim 1 wherein the layer is a final layer within the neural network.

### Claim 3 (depends on 1)

The method of claim 1 wherein the layer that maps the first vector comprises a Softmax function.

### Claim 4 (depends on 3)

The method of claim 3 wherein the layer that maps the first vector is an output layer for the neural network.

### Claim 5

A processor-implemented method for data manipulation comprising:
configuring a plurality of processing elements within a reconfigurable fabric to implement a data flow graph, wherein the data flow graph implements a neural network;
implementing a layer, within the neural network, that maps a first vector of real values to a second vector of real values bounded by zero and one wherein the second vector sums to a value of one using fixed point calculations; and
classifying results of the neural network based on a value of the second vector;
wherein the layer that maps the first vector comprises a Softmax function,
the layer that maps the first vector is an output layer for the neural network; and
the layer is based on a parabolic estimator function.

### Claim 6

A processor-implemented method for data manipulation comprising:
configuring a plurality of processing elements within a reconfigurable fabric to implement a data flow graph, wherein the data flow graph implements a neural network;
implementing a layer, within the neural network, that maps a first vector of real values to a second vector of real values bounded by zero and one wherein the second vector sums to a value of one using fixed point calculations; and
classifying results of the neural network based on a value of the second vector;
wherein the layer that maps the first vector comprises a Softmax function,
the layer that maps the first vector is an output layer for the neural network,
the layer is based on a parabolic estimator function; and
the parabolic estimator function is implemented using lookup tables.

### Claim 7

A processor-implemented method for data manipulation comprising:
configuring a plurality of processing elements within a reconfigurable fabric to implement a data flow graph, wherein the data flow graph implements a neural network;
implementing a layer, within the neural network, that maps a first vector of real values to a second vector of real values bounded by zero and one wherein the second vector sums to a value of one using fixed point calculations; and
classifying results of the neural network based on a value of the second vector;
wherein the layer that maps the first vector comprises a Softmax function,
the layer that maps the first vector is an output layer for the neural network,
the layer is based on a parabolic estimator function;
the parabolic estimator function is implemented using lookup tables; and
the lookup tables comprise three lookup tables.

### Claim 8

A processor-implemented method for data manipulation comprising:
configuring a plurality of processing elements within a reconfigurable fabric to implement a data flow graph, wherein the data flow graph implements a neural network;
implementing a layer, within the neural network, that maps a first vector of real values to a second vector of real values bounded by zero and one wherein the second vector sums to a value of one using fixed point calculations; and
classifying results of the neural network based on a value of the second vector;
wherein the layer that maps the first vector comprises a Softmax function,
the layer that maps the first vector is an output layer for the neural network,
the layer is based on a parabolic estimator function;
the parabolic estimator function is implemented using lookup tables;
the lookup tables comprise three lookup tables; and
further comprising two multiplex per element of an output vector.

### Claim 9

A processor-implemented method for data manipulation comprising:
configuring a plurality of processing elements within a reconfigurable fabric to implement a data flow graph, wherein the data flow graph implements a neural network;
implementing a layer, within the neural network, that maps a first vector of real values to a second vector of real values bounded by zero and one wherein the second vector sums to a value of one using fixed point calculations; and
classifying results of the neural network based on a value of the second vector;
wherein the layer that maps the first vector comprises a Softmax function,
the layer that maps the first vector is an output layer for the neural network,
the layer is based on a parabolic estimator function;
the parabolic estimator function is implemented using lookup tables;
the lookup tables comprise three lookup tables;
further comprising two multiplex per element of an output vector; and
no more than three multipliers per element of an output vector are used.

### Claim 10

A processor-implemented method for data manipulation comprising:
configuring a plurality of processing elements within a reconfigurable fabric to implement a data flow graph, wherein the data flow graph implements a neural network;
implementing a layer, within the neural network, that maps a first vector of real values to a second vector of real values bounded by zero and one wherein the second vector sums to a value of one using fixed point calculations; and
classifying results of the neural network based on a value of the second vector;
wherein the layer that maps the first vector comprises a Softmax function,
the layer that maps the first vector is an output layer for the neural network,
the layer is based on a parabolic estimator function;
the parabolic estimator function is implemented using lookup tables;
the lookup tables comprise three lookup tables; and
the three lookup tables are each 256 elements or fewer in length.

### Claim 11

A processor-implemented method for data manipulation comprising:
configuring a plurality of processing elements within a reconfigurable fabric to implement a data flow graph, wherein the data flow graph implements a neural network;
implementing a layer, within the neural network, that maps a first vector of real values to a second vector of real values bounded by zero and one wherein the second vector sums to a value of one using fixed point calculations; and
classifying results of the neural network based on a value of the second vector;
wherein the layer that maps the first vector comprises a Softmax function,
the layer that maps the first vector is an output layer for the neural network,
the layer is based on a parabolic estimator function;
the parabolic estimator function is implemented using lookup tables; and
the lookup tables comprise equidistant points.

### Claim 12

A processor-implemented method for data manipulation comprising:
configuring a plurality of processing elements within a reconfigurable fabric to implement a data flow graph, wherein the data flow graph implements a neural network;
implementing a layer, within the neural network, that maps a first vector of real values to a second vector of real values bounded by zero and one wherein the second vector sums to a value of one using fixed point calculations; and
classifying results of the neural network based on a value of the second vector;
wherein the layer that maps the first vector comprises a Softmax function,
the layer that maps the first vector is an output layer for the neural network,
the layer is based on a parabolic estimator function;
the parabolic estimator function is implemented using lookup tables;
the lookup tables comprise equidistant points; and
values between two equidistant points with a lookup table correspond to an integer number of intervals between the two points.

### Claim 13

A processor-implemented method for data manipulation comprising:
configuring a plurality of processing elements within a reconfigurable fabric to implement a data flow graph, wherein the data flow graph implements a neural network;
implementing a layer, within the neural network, that maps a first vector of real values to a second vector of real values bounded by zero and one wherein the second vector sums to a value of one using fixed point calculations; and
classifying results of the neural network based on a value of the second vector;
wherein the layer that maps the first vector comprises a Softmax function,
the layer that maps the first vector is an output layer for the neural network,
the layer is based on a parabolic estimator function;
the parabolic estimator function is implemented using lookup tables;
the lookup tables comprise equidistant points;
values between two equidistant points with a lookup table correspond to an integer number of intervals between the two points; and
the integer number of intervals is based on a power of two.

### Claim 14

A processor-implemented method for data manipulation comprising:
configuring a plurality of processing elements within a reconfigurable fabric to implement a data flow graph, wherein the data flow graph implements a neural network;
implementing a layer, within the neural network, that maps a first vector of real values to a second vector of real values bounded by zero and one wherein the second vector sums to a value of one using fixed point calculations; and
classifying results of the neural network based on a value of the second vector;
wherein the layer that maps the first vector comprises a Softmax function,
the layer that maps the first vector is an output layer for the neural network;
the layer is based on a parabolic estimator function; and
the parabolic estimator function is implemented using one lookup table.

### Claim 15

A processor-implemented method for data manipulation comprising:
configuring a plurality of processing elements within a reconfigurable fabric to implement a data flow graph, wherein the data flow graph implements a neural network;
implementing a layer, within the neural network, that maps a first vector of real values to a second vector of real values bounded by zero and one wherein the second vector sums to a value of one using fixed point calculations; and
classifying results of the neural network based on a value of the second vector;
wherein the layer that maps the first vector comprises a Softmax function,
the layer that maps the first vector is an output layer for the neural network;
the layer is based on a parabolic estimator function; and
the parabolic estimator function is based on a moving set of three points.

### Claim 16

A processor-implemented method for data manipulation comprising:
configuring a plurality of processing elements within a reconfigurable fabric to implement a data flow graph, wherein the data flow graph implements a neural network;
implementing a layer, within the neural network, that maps a first vector of real values to a second vector of real values bounded by zero and one wherein the second vector sums to a value of one using fixed point calculations; and
classifying results of the neural network based on a value of the second vector;
wherein the layer that maps the first vector comprises a Softmax function,
the layer that maps the first vector is an output layer for the neural network;
the layer is based on a parabolic estimator function; and
the parabolic estimator function implements eXi or kXi for the layer, where Xi are arguments of the Softmax function, k is a real number greater than 1, and e is the natural logarithm base.

### Claim 17

A processor-implemented method for data manipulation comprising:
configuring a plurality of processing elements within a reconfigurable fabric to implement a data flow graph, wherein the data flow graph implements a neural network;
implementing a layer, within the neural network, that maps a first vector of real values to a second vector of real values bounded by zero and one wherein the second vector sums to a value of one using fixed point calculations; and
classifying results of the neural network based on a value of the second vector;
wherein the layer that maps the first vector comprises a Softmax function,
the layer that maps the first vector is an output layer for the neural network;
the layer is based on a parabolic estimator function;
the parabolic estimator function implements eXi or kXi for the layer, where Xi are arguments of the Softmax function, k is a real number greater than 1, and e is the natural logarithm base; and
kXi is calculated using 16-bit fixed-point arithmetic.

### Claim 18

A processor-implemented method for data manipulation comprising:
configuring a plurality of processing elements within a reconfigurable fabric to implement a data flow graph, wherein the data flow graph implements a neural network;
implementing a layer, within the neural network, that maps a first vector of real values to a second vector of real values bounded by zero and one wherein the second vector sums to a value of one using fixed point calculations; and
classifying results of the neural network based on a value of the second vector;
wherein the layer that maps the first vector comprises a Softmax function,
the layer that maps the first vector is an output layer for the neural network;
the layer is based on a parabolic estimator function;
the parabolic estimator function implements eXi or kXi for the layer, where Xi are arguments of the Softmax function, k is a real number greater than 1, and e is the natural logarithm base; and
k is equal to 2.

### Claim 19 (depends on 1)

The method of claim 1 further comprising using 16-bit fixed-point arithmetic for training passes.

### Claim 20 (depends on 6)

The method of claim 6 wherein lookup table entries are calculated offline.

### Claim 21

A computer program product embodied in a non-transitory computer readable medium for data manipulation, the computer program product comprising code which causes one or more processors to perform operations of:
configuring a plurality of processing elements within a reconfigurable fabric to implement a data flow graph, wherein the data flow graph implements a neural network;
implementing a layer, based on a parabolic estimator function,
within the neural network, that maps a first vector of real values to a second vector of real values bounded by zero and one wherein the second vector sums of one using fixed point calculations; and
classifying results of the neural network based on a value of the second vector.

### Claim 22

A computer system for data manipulation comprising:
a memory which stores instructions;
one or more processors coupled to the memory wherein the one or more processors, when executing the instructions which are stored, are configured to
configure a plurality of processing elements within a reconfigurable fabric to implement a data flow graph, wherein the data flow graph implements a neural network;
implement a layer, based on a parabolic estimator function,
within the neural network, that maps a first vector of real values to a second vector of real values bounded by zero and one wherein the second vector sums to a value of one using fixed point calculations; and
classify results of the neural network based on a value of the second vector.
