# US 2022/0044090 A1 · Computing device using sparsity data and operating method thereof

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

- Number: US 2022/0044090 A1
- Document ID: US20220044090A1
- Status: Published application
- Kind: A1
- Application number: 17/073,839
- Filed: 2020-10-19
- Published: 2022-02-10
- Earliest claimed: 2020-08-06
- Assignees: Korea Advanced Institute of Science and Technology
- Applicants: Korea Advanced Institute of Science and Technology
- Inventors: Hoi Jun YOO; Sanghoon KANG
- Web page: https://patentgrep.com/patent/US20220044090A1

## CPC

- G06N 3/02: Neural networks
- G06F 7/483: Computations with numbers represented by a non-linear combination of denominational numbers, e.g. rational numbers, logarithmic number system or floating-point numbers {(G06F7/4806, G06F7/4824, G06F7/49, G06F7/491, G06F7/544 take precedence)}
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06F 2207/4824: Neural networks
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A computing device includes a first computing core that generates sparsity data based on a first sign bit and first exponent bits of first data and a second sign bit and second exponent bits based on second data, and a second computing core that outputs a result value of a floating point calculation of the first data and the second data as output data or skips the floating point calculation and outputs the output data having a given value, based on the sparsity data.

## Claims

### Claim 1

A computing device comprising:
a first computing core configured to generate sparsity data based on a first sign bit and first exponent bits of first data and a second sign bit and second exponent bits based on second data; and
a second computing core configured to output a result value of a floating point calculation of the first data and the second data as output data or configured to skip the floating point calculation and to output the output data having a given value, based on the sparsity data.

### Claim 2 (depends on 1)

The computing device of claim 1, wherein the first data are included in an input layer of a deep neural network or are included in at least one hidden layer of the deep neural network.

### Claim 3 (depends on 1)

The computing device of claim 1, wherein the floating point calculation is performed based on the first sign bit, the first exponent bits, and first fraction bits of the first data and the second sign bit, the second exponent bits, and second fraction bits of the second data.

### Claim 4 (depends on 1)

The computing device of claim 1, further comprising:
a first memory device configured to store the first data;
a second memory device configured to store the second data; and
a third memory device configured to store the output data.

### Claim 5 (depends on 1)

The computing device of claim 1, wherein the first computing core is further configured to:
calculate at least one sign value based on the first sign bit and the second sign bit;
calculate at least one exponent value based on the first exponent bits and the second exponent bits;
calculate at least one partial sum based on the at least one sign value and the at least one exponent value;
generate the sparsity data having a first value when a value of accumulating the at least one partial sum exceeds a threshold value; and
generate the sparsity data having a second value when the value of accumulating the at least one partial sum is equal to or less than the threshold value.

### Claim 6 (depends on 1)

The computing device of claim 1, wherein the first computing core includes:
a logic gate configured to generate a sign operation signal based on an exclusive OR logic operation of the first sign bit and the second sign bit;
a first fixed point adder configured to generate an exponent operation signal based on an addition of the first exponent bits and the second exponent bits;
a data linear encoder configured to generate a partial operation signal based on the sign operation signal and the exponent operation signal;
a second fixed point adder configured to generate an integrated operation signal or an accumulation operation signal, based on a previous accumulation operation signal corresponding to at least one previous partial operation signal and the partial operation signal;
a register configured to provide the previous accumulation operation signal to the second fixed point adder and to store the accumulation operation signal; and
a sparsity data generator configured to generate the sparsity data having a first value when a value corresponding to the integrated operation signal exceeds a threshold value and to generate the sparsity data having a second value when the value corresponding to the integrated operation signal is equal to or less than the threshold value.

### Claim 7 (depends on 1)

The computing device of claim 1, wherein the second computing core includes:
an out-zero skipping module configured to determine whether the sparsity data have a first value or a second value, to control whether to perform the floating point calculation, and to generate the output data having the given value when it is determined that the sparsity data have the second value; and
a floating point multiply-accumulate (FPMAC) unit configured to perform the floating point calculation under control of the out-zero skipping module and to generate the result value of the floating point calculation as the output data.

### Claim 8 (depends on 7)

The computing device of claim 7, wherein the second computing core further includes:
an in-zero skipping module configured to generate the output data having the given value when a value of the first exponent bits or a value of the second exponent bits is equal to or less than a threshold value.

### Claim 9 (depends on 1)

The computing device of claim 1, wherein the first data are input data expressed by a 16-bit floating point, a 32-bit floating point, or a 64-bit floating point complying with an IEEE (Institute of Electrical and Electronic Engineers) 754 standard, and
wherein the second data are weight data expressed by the 16-bit floating point, the 32-bit floating point, or the 64-bit floating point complying with the IEEE 754 standard.

### Claim 10

A computing device comprising:
a first computing core configured to generate sparsity data based on first data and second data; and
a second computing core configured to output one of a result value of a floating point calculation of the first data and the second data and a given value as output data, based on the sparsity data.

### Claim 11 (depends on 10)

The computing device of claim 10, wherein the sparsity data are generated based on a sign and an exponent of the first data and a sign and an exponent of the second data, and
wherein the floating point calculation is performed based on the sign, the exponent, and a fraction of the first data and the sign, the exponent bits, and a fraction of the second data.

### Claim 12 (depends on 10)

The computing device of claim 10, wherein the second computing core is further configured to:
determine whether the sparsity data have a first value or a second value;
when it is determined that the sparsity data have the first value, output the result value of the floating point calculation as output data; and
when it is determined that the sparsity data have the second value, skip the floating point calculation and output the given value as the output data.

### Claim 13 (depends on 10)

The computing device of claim 10, further comprising:
a first memory device configured to store the first data;
a second memory device configured to store the second data; and
a third memory device configured to store the output data.

### Claim 14

An operating method of a computing device, the method comprising:
receiving first data including a first sign bit, first exponent bits, and first fraction bits and second data including a second sign bit, second exponent bits, and second fraction bits;
generating sparsity data based on the first sign bit, the first exponent bits, the second sign bit, and the second exponent bits; and
based on the sparsity data, generating a result value of a floating point calculation of the first data and the second data as output data or skipping the floating point calculation and outputting the output data having a given value.

### Claim 15 (depends on 14)

The method of claim 14, wherein the generating of the sparsity data includes:
when the floating point calculation is determined as forward propagation, generating the sparsity data based on the first sign bit, the first exponent bits, the second sign bit, and the second exponent bits.

### Claim 16 (depends on 14)

The method of claim 14, wherein the generating of the sparsity data includes:
performing an exclusive OR logic operation of the first sign bit and the second sign bit and an addition of the first exponent bits and the second exponent bits;
performing linear encoding based on a value of the exclusive OR logic operation and a value of the addition to acquire a partial operation value;
performing an accumulation operation based on the partial operation value and at least one previous partial operation value to acquire an integrated operation value; and
generating the sparsity data based on a result of comparing the integrated operation value and a threshold value.

### Claim 17 (depends on 16)

The method of claim 16, wherein the generating of the sparsity data based on the result of comparing the integrated operation value and the threshold value includes:
generating the sparsity data having a first value when the integrated operation value exceeds the threshold value; and
generating the sparsity data having a second value when the integrated operation value is equal to or less than the threshold value.

### Claim 18 (depends on 17)

The method of claim 17, wherein the generating of the result value of the floating point calculation of the first data and the second data as the output data or the skipping of the floating point calculation and the outputting of the output data having the given value, based on the sparsity data, includes:
determining whether the sparsity data have the first value or the second value; and
when it is determined that the sparsity data have the first value, performing the floating point calculation of the first data and the second data and generating the result value of the floating point calculation as the output data.

### Claim 19 (depends on 17)

The method of claim 17, wherein the generating of the result value of the floating point calculation of the first data and the second data as the output data or the skipping of the floating point calculation and the outputting of the output data having the given value, based on the sparsity data, includes:
determining whether the sparsity data have the first value or the second value; and
when it is determined that the sparsity data have the second value, generating the output data having the given value.
