# US 2020/0133989 A1 · Neural network processor and convolution operation method thereof

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

- Number: US 2020/0133989 A1
- Document ID: US20200133989A1
- Status: Published application
- Kind: A1
- Application number: 16/524,717
- Filed: 2019-07-29
- Published: 2020-04-30
- Earliest claimed: 2018-10-31
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Jin-ook SONG; Jihyuck JO
- Web page: https://patentgrep.com/patent/US20200133989A1

## CPC

- G06F 17/15: Correlation function computation {including computation of convolution operations (arithmetic circuits for sum of products per se, e.g. multiply-accumulators G06F7/5443; digital filters, e.g. FIR, IIR, adaptive filters H03H17/00)}
- G06F 5/01: for shifting, e.g. justifying, scaling, normalising {(digital stores in which the information is moved stepwise, e.g. shift-registers G11C19/00; digital stores in which the information circulates G11C21/00)}
- G06F 7/461: {Adding; subtracting}
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/063: using electronic means
- G06F 2207/4824: Neural networks
- G06N 3/08: Learning methods
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A neural network processor for performing a neural network operation may include a memory storing computer-readable instructions, and kernel intermediate data, the kernel intermediate data including a plurality of kernel intermediate values calculated based on a plurality of weight values included in kernel data; and at least one processor to execute the computer-readable instructions to perform a convolution operation by selecting at least one kernel intermediate value among the plurality of kernel intermediate values based on an input feature map.

## Claims

### Claim 1

A neural network processor for performing a neural network operation, the neural network processor comprising:
a memory storing computer-readable instructions, and kernel intermediate data, the kernel intermediate data comprising a plurality of kernel intermediate values calculated based on a plurality of weight values included in kernel data; and
at least one processor configured to execute the computer-readable instructions to perform a convolution operation by selecting at least one kernel intermediate value among the plurality of kernel intermediate values based on an input feature map.

### Claim 2 (depends on 1)

The neural network processor of claim 1, wherein each of the plurality of kernel intermediate values is a value obtained through a linear combination of the plurality of weight values, and each of a plurality of coefficients used in the linear combination has a value of ‘0’ or ‘1’.

### Claim 3 (depends on 1)

The neural network processor of claim 1, wherein each of the plurality of kernel intermediate values is a value obtained through a linear combination of the plurality of weight values, and each of a plurality of coefficients used in the linear combination has a value of ‘−1’ or ‘1’.

### Claim 4 (depends on 3)

The neural network processor of claim 3, wherein the plurality of kernel intermediate values comprises 2̂ (N−1) kernel intermediate values, N being a natural number.

### Claim 5 (depends on 1)

The neural network processor of claim 1, wherein the at least one processor configured to execute the computer-readable instructions to select the at least one kernel intermediate value based on one or more input features values included in the input feature map.

### Claim 6 (depends on 5)

The neural network processor of claim 5, wherein the at least one processor configured to execute the computer-readable instructions to
store an output intermediate value,
shift the output intermediate value by 1-bit to generate a shifted output intermediate value, and
generate an updated output intermediate value by summing the at least one kernel intermediate value and the shifted output intermediate value in response to determining that a summation operation should be performed.

### Claim 7 (depends on 6)

The neural network processor of claim 6, wherein the at least one processor configured to execute the computer-readable instructions to determine that the summation operation should not be performed based on at least one most significant bit value of the one or more input feature values.

### Claim 8 (depends on 6)

The neural network processor of claim 6, wherein the at least one processor configured to execute the computer-readable instructions to output the updated output intermediate value, based on the at least one kernel intermediate value corresponding to at least one least significant bit value of the one or more input feature values.

### Claim 9 (depends on 5)

The neural network processor of claim 5, wherein
the at least one processor configured to execute the computer-readable instructions to
store an output intermediate value,
shift the output intermediate value by 1-bit to generate a shifted output intermediate value, and
generate an updated output intermediate value by performing a determined type of operation on the at least one kernel intermediate value and the shifted output intermediate value.

### Claim 10 (depends on 9)

The neural network processor of claim 9, wherein at least one processor configured to execute the computer-readable instructions to compensate for an output value generated by summing an offset value and a final output intermediate value based on the updated output intermediate value.

### Claim 11 (depends on 10)

The neural network processor of claim 10, wherein the offset value is equal to a value obtained by dividing a sum of the plurality of weight values by ‘2’.

### Claim 12 (depends on 1)

The neural network processor of claim 1, wherein the at least one processor configured to execute the computer-readable instructions to
select a group of kernel intermediate values from among the plurality of kernel intermediate values based on a plurality of input feature values included in the input feature map, the group of kernel intermediate values including the at least one kernel intermediate value, and
perform an arithmetic operation using the group of kernel intermediate values.

### Claim 13

A convolution operation method of a neural network processor for performing a neural network operation, the convolution operation method comprising:
generating a plurality of kernel intermediate values by performing an operation using a plurality of weight values included in kernel data;
selecting at least one kernel intermediate value among the plurality of kernel intermediate values based on one or more input feature values included in an input feature map; and
generating an updated output intermediate value by performing at least one operation using the at least one kernel intermediate value and an output intermediate value.

### Claim 14 (depends on 13)

The convolution operation method of claim 13, further comprising:
outputting the updated output intermediate value based on the at least one kernel intermediate value corresponding to at least one least significant bit value of the one or more input feature values.

### Claim 15 (depends on 13)

The convolution operation method of claim 13, wherein the generating the updated output intermediate value comprises:
shifting a previous output intermediate value by one or more bits to generate a shifted output intermediate value, and
summing the shifted output intermediate value and the at least one kernel intermediate value.

### Claim 16 (depends on 13)

The convolution operation method of claim 13, further comprising:
outputting an output value generated by summing the updated output intermediate value and an offset value determined based on the plurality of weight values and at least one least significant bit value of the one or more input feature values.

### Claim 17 (depends on 13)

The convolution operation method of claim 13, wherein the selecting the at least one kernel intermediate value comprises:
selecting a group of kernel intermediate values among the plurality of kernel intermediate values based on one or more upper bit values of the one or more input feature values when each of the one or more input features values comprises two or more bits, and
selecting a final kernel intermediate value based on one or more a least-significant bit value of the one or more input feature values.

### Claim 18

A neural network processor for performing a neural network operation, the neural network processor comprising:
a memory storing computer-readable instructions and a plurality of kernel intermediate values calculated based on a plurality of weight values included in kernel data; and
at least one processor configured to execute the computer-readable instructions to
perform a convolution operation based on an input feature map and the plurality of kernel intermediate values, and
select a first kernel intermediate value from among the plurality of kernel intermediate values based on one or more input feature values included in the input feature map.

### Claim 19 (depends on 18)

The neural network processor of claim 18, wherein at least one processor configured to execute the computer-readable instructions to
store an output intermediate value,
shift the output intermediate value one or more bits to generate a shifted output intermediate value, and
generate an updated output intermediate value by summing the first kernel intermediate value and the shifted output intermediate value.

### Claim 20 (depends on 18)

The neural network processor of claim 18, wherein
the kernel data comprises N weight values, N being a natural number, and
each of the plurality of kernel intermediate values generated by an inner product of a first vector formed by the plurality of weight values and a second vector of one or more elements having N columns in which
each element among the one or more elements is ‘0’ or ‘1’, or
each element among the one or more elements is ‘−1’ or ‘1’.
