# US 2023/0267310 A1 · Neural network processing apparatus, information processing apparatus, information processing system, electronic device, neural network processing method, and program

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

- Number: US 2023/0267310 A1
- Document ID: US20230267310A1
- Status: Published application
- Kind: A1
- Application number: 18/010,377
- Filed: 2021-07-09
- Published: 2023-08-24
- Earliest claimed: 2020-07-17
- Assignees: Sony Group Corporation
- Applicants: Sony Group Corporation
- Inventors: Satoshi Takagi
- Web page: https://patentgrep.com/patent/US20230267310A1

## CPC

- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06F 17/153: {Multidimensional correlation or convolution}
- G06F 17/16: Matrix or vector computation {, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization (matrix transposition G06F7/78)}
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 3/063: using electronic means
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A memory amount is reduced. A neural network processing apparatus includes: a decoding unit (41) that decodes a coefficient matrix encoded into a zero coefficient position table and a non-zero coefficient table, the zero coefficient position table indicating positions of first coefficients each having a zero value in the coefficient matrix by a first value and indicating positions of second coefficients each having a non-zero value in the coefficient matrix by a second value, the non-zero coefficient table holding the second coefficients in the coefficient matrix; and a product-sum circuit (116) that performs convolution processing on the coefficient matrix decoded by the decoding unit and a variable matrix. The decoding unit decodes the coefficient matrix by storing the second coefficients stored in the non-zero coefficient table at the positions on the zero coefficient position table indicated by the second value.

## Claims

### Claim 1

A neural network processing apparatus including:
a decoding unit that decodes a first coefficient matrix encoded into a first zero coefficient position table and a first non-zero coefficient table, the first zero coefficient position table indicating positions of first coefficients each having a zero value in the first coefficient matrix by a first value and indicating positions of second coefficients each having a non-zero value in the first coefficient matrix by a second value, the first non-zero coefficient table holding the second coefficients in the first coefficient matrix; and
a product-sum circuit that performs convolution processing on the first coefficient matrix decoded by the decoding unit and a first variable matrix,
wherein the decoding unit decodes the first coefficient matrix by storing the second coefficients stored in the first non-zero coefficient table at the positions on the first zero coefficient position table indicated by the second value.

### Claim 2 (depends on 1)

The neural network processing apparatus according to claim 1,
wherein the decoding unit includes:
a selector that outputs a zero when a value input to a control terminal is the first value, and outputs one of the second coefficients corresponding to one of the positions on the first zero coefficient position table indicated by the second value when a value input to the control terminal is the second value; and
a product-sum device that restores the first coefficient matrix by arranging the zeros and the second coefficients input from the selector, and
the decoding unit sequentially inputs values constituting the first zero coefficient position table to the selector.

### Claim 3 (depends on 2)

The neural network processing apparatus according to claim 2,
wherein when sequentially inputting values constituting the first zero coefficient position table to the selector, the decoding unit acquires variables stored at positions on the first variable matrix corresponding to the positions of the values to be input to the selector on the first zero coefficient position table.

### Claim 4 (depends on 1)

The neural network processing apparatus according to claim 1,
wherein the decoding unit acquires the second coefficients corresponding to the positions on the first zero coefficient position table indicated by the second value, acquires variables stored at positions on the first variable matrix corresponding to the positions on the first zero coefficient position table indicated by the second value, and inputs the acquired second coefficients and the acquired variables to the product-sum circuit, and
the product-sum circuit performs the convolution processing on the first coefficient matrix and the first variable matrix by sequentially multiplying the second coefficients and the variables input from the decoding unit and adding up multiplication results.

### Claim 5 (depends on 4)

The neural network processing apparatus according to claim 4,
wherein the decoding unit includes a priority encoder having a plurality of inputs for which priorities are set, respectively, and outputs a value set to an input having the highest priority among one or more inputs to which the second value is input, and
the decoding unit inputs values constituting the first zero coefficient position table to the plurality of inputs in parallel, and acquires one of the second coefficients from the first non-zero coefficient table based on the value output from the priority encoder with respect to the plurality of inputs.

### Claim 6 (depends on 1)

The neural network processing apparatus according to claim 1,
wherein the first variable matrix is encoded into a first zero variable position table and a non-zero variable table, the first zero variable position table indicating positions of first variables each having a zero value in the first variable matrix by the first value and indicating positions of second variables each having a non-zero value in the first variable matrix by the second value, the non-zero variable table holding the second variables in the first variable matrix, and
the decoding unit performs logical operations on values constituting the first zero coefficient position table and values constituting the first zero variable position table, acquires the second coefficients and the second variables, which do not produce zero when multiplied based on results of the logical operations, from the first non-zero coefficient table and the non-zero variable table, respectively, and inputs the acquired second coefficients and the acquired second variables to the product-sum circuit.

### Claim 7 (depends on 6)

The neural network processing apparatus according to claim 6,
wherein the decoding unit includes a priority encoder having a plurality of inputs for which priorities are set, respectively, and outputs a value set to an input having the highest priority among one or more inputs to which the second value is input,
the decoding unit inputs values constituting the first zero coefficient position table to the plurality of inputs in parallel, and acquires one of the second coefficients from the first non-zero coefficient table based on the value output from the priority encoder with respect to the plurality of inputs, and
the decoding unit inputs values constituting the first zero variable position table to the plurality of inputs in parallel, and acquires one of the second variables from the non-zero variable table based on the value output from the priority encoder with respect to the plurality of inputs.

### Claim 8 (depends on 1)

The neural network processing apparatus according to claim 1, further including:
an encoding unit that encodes a second variable matrix output from the product-sum circuit into a second zero variable position table and a second non-zero coefficient table, the second zero variable position table indicating positions of first variables each having a zero value in the second variable matrix by the first value and indicating positions of second variables each having a non-zero value in the second variable matrix by the second value, the second non-zero coefficient table holding the second coefficients in the second variable matrix.

### Claim 9 (depends on 8)

The neural network processing apparatus according to claim 8,
wherein the encoding unit includes:
a determination circuit that determines whether or not a value input thereto is zero;
a first buffer that stores the first value when the determination circuit determines that the value is zero, and stores the second value when the determination circuit determines that the value is not zero; and
a second buffer that stores the second variable when the determination circuit determines that the value is not zero, and
the encoding unit sequentially inputs variables constituting the second variable matrix to the determination circuit.

### Claim 10 (depends on 9)

The neural network processing apparatus according to claim 9,
wherein the encoding unit further includes a register that stores a second zero coefficient position table to be used for convolution processing in a next layer,
when a value stored at a position on the second zero coefficient position table corresponding to a position on the second variable matrix of a variable determined to be non-zero by the determination circuit is the first value, the first buffer stores the first value instead of the second value, and
when a value stored at a position on the second zero coefficient position table corresponding to a position on the second variable matrix of a variable determined to be non-zero by the determination circuit is the first value, the second buffer does not store the variable.

### Claim 11 (depends on 10)

The neural network processing apparatus according to claim 10,
wherein the register stores a third zero coefficient position table obtained by calculating a logical sum of a plurality of second zero coefficient position tables to be used for the convolution processing in the next layer.

### Claim 12 (depends on 10)

The neural network processing apparatus according to claim 10,
wherein the register stores the plurality of second zero coefficient position tables to be used for the convolution processing in the next layer.

### Claim 13 (depends on 10)

The neural network processing apparatus according to claim 10,
wherein the plurality of second zero coefficient position tables to be used for the convolution processing in the next layer are grouped into one or more groups, and
the register stores a third zero coefficient position table obtained by calculating a logical sum of the second zero coefficient position tables for each of the groups.

### Claim 14 (depends on 1)

An information processing apparatus including:
the neural network processing apparatus according to claim 1; and
a processor core connected to the neural network processing apparatus via a bus.

### Claim 15 (depends on 14)

An information processing system including:
the information processing apparatus according to claim 14; and
one or more sensors connected to the information processing apparatus.

### Claim 16 (depends on 14)

An electronic device including the information processing apparatus according to claim 14.

### Claim 17

A neural network processing method including:
decoding a coefficient matrix encoded into a zero coefficient position table and a non-zero coefficient table, the zero coefficient position table indicating positions of first coefficients each having a zero value in the coefficient matrix by a first value and indicating positions of second coefficients each having a non-zero value in the coefficient matrix by a second value, the non-zero coefficient table holding the second coefficients in the coefficient matrix; and
performing convolution processing on the decoded coefficient matrix and a variable matrix,
wherein the coefficient matrix is decoded by storing the second coefficients stored in the non-zero coefficient table at the positions on the zero coefficient position table indicated by the second value.

### Claim 18

A program for causing a computer to execute:
decoding processing for decoding a coefficient matrix encoded into a zero coefficient position table and a non-zero coefficient table, the zero coefficient position table indicating positions of first coefficients each having a zero value in the coefficient matrix by a first value and indicating positions of second coefficients each having a non-zero value in the coefficient matrix by a second value, the non-zero coefficient table holding the second coefficients in the coefficient matrix; and
product-sum processing for performing convolution processing on the coefficient matrix decoded by the decoding processing and a variable matrix,
wherein, in the decoding processing, the coefficient matrix is decoded by storing the second coefficients stored in the non-zero coefficient table at the positions on the zero coefficient position table indicated by the second value.
