# US 2022/0277199 A1 · Method for data processing in neural network system and neural network system

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

- Number: US 2022/0277199 A1
- Document ID: US20220277199A1
- Status: Published application
- Kind: A1
- Application number: 17/750,052
- Filed: 2022-05-20
- Published: 2022-09-01
- Earliest claimed: 2019-11-20
- Applicants: Huawei Technologies Co., Ltd.; Tsinghua University
- Inventors: Bin GAO; Peng YAO; Kanwen WANG; Jianxing LIAO; Tieying WANG; Huaqiang WU
- Web page: https://patentgrep.com/patent/US20220277199A1

## CPC

- G06N 3/08: Learning methods
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/065: Analogue means
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/09: Supervised learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method for data processing in a neural network system and a neural network system are provided. The method includes: inputting training data into a neural network system to obtain first output data, and adjusting, based on a deviation between the first output data and target output data, a weight value stored in at least one in-memory computing unit in some neural network arrays in a plurality of neural network arrays in the neural network system using parallel acceleration. The some neural network arrays are configured to implement computing of some neural network layers in the neural network system. The method may improve performance and recognition accuracy of the neural network system.

## Claims

### Claim 1

A method for data processing in a neural network system, the method comprising:
inputting training data into the neural network system to obtain first output data, wherein the neural network system comprises a plurality of neural network arrays, each neural network array of the plurality of neural network arrays comprises a plurality of in-memory computing units, and each in-memory computing unit of the plurality of in-memory computing units is configured to store a weight value of a neuron in a corresponding neural network array;
calculating a deviation between the first output data and target output data; and
adjusting, based on the deviation, a weight value stored in at least one in-memory computing unit in at least one neural network array in the plurality of neural network arrays, wherein the at least one neural network array is configured to implement computing of at least a portion of one neural network layer in the neural network system.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the plurality of neural network arrays comprises a first neural network array and a second neural network array, and input data of the first neural network array comprises output data of the second neural network array.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the first neural network array comprises a neural network array configured to implement computing of a fully-connected layer in the neural network system.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the adjusting, based on the deviation, the weight value stored in the at least one in-memory computing unit in the at least one neural network array in the plurality of neural network arrays comprises:
adjusting, based on input data of the first neural network array and the deviation, a weight value stored in at least one in-memory computing unit in the first neural network array.

### Claim 5 (depends on 2)

The method according to claim 2, wherein the plurality of neural network arrays further comprises a third neural network array, and the third neural network array and the second neural network array are configured to implement computing of a convolutional layer in the neural network system in parallel.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the adjusting, based on the deviation, the weight value stored in the at least one in-memory computing unit in the at least one neural network array in the plurality of neural network arrays comprises:
adjusting, based on input data of the second neural network array and the deviation, a weight value stored in at least one in-memory computing unit in the second neural network array; and
adjusting, based on input data of the third neural network array and the deviation, a weight value stored in at least one in-memory computing unit in the third neural network array.

### Claim 7 (depends on 5)

The method according to claim 5, wherein the adjusting, based on the deviation, the weight value stored in the at least one in-memory computing unit in the at least one neural network array in the plurality of neural network arrays comprises:
dividing the deviation into at least two sub-deviations, wherein a first sub-deviation in the at least two sub-deviations corresponds to the output data of the second neural network array, and a second sub-deviation in the at least two sub-deviations corresponds to output data of the third neural network array;
adjusting, based on the first sub-deviation and input data of the second neural network array, a weight value stored in at least one in-memory computing unit in the second neural network array; and
adjusting, based on the second sub-deviation and input data of the third neural network array, a weight value stored in at least one in-memory computing unit in the third neural network array.

### Claim 8

A neural network system, comprising:
a memory storing computer program instructions; and
at least one processor configured to execute the computer program instructions to cause the neural network system to:
input training data into the neural network system to obtain first output data, wherein the neural network system comprises a plurality of neural network arrays, each neural network array of the plurality of neural network arrays comprises a plurality of in-memory computing units, and each in-memory computing unit of the plurality of in-memory computing units is configured to store a weight value of a neuron in a corresponding neural network array;
calculate a deviation between the first output data and target output data; and
adjust, based on the deviation, a weight value stored in at least one in-memory computing unit in at least one neural network array in the plurality of neural network arrays, wherein the at least one neural network array is configured to implement computing of at least a portion of one neural network layer in the neural network system.

### Claim 9 (depends on 8)

The neural network system according to claim 8, wherein the plurality of neural network arrays comprises a first neural network array and a second neural network array, and input data of the first neural network array comprises output data of the second neural network array.

### Claim 10 (depends on 9)

The neural network system according to claim 9, wherein the first neural network array comprises a neural network array configured to implement computing of a fully-connected layer in the neural network system.

### Claim 11 (depends on 10)

The neural network system according to claim 10, wherein the adjusting comprises:
adjusting, based on input data of the first neural network array and the deviation, a weight value stored in at least one in-memory computing unit in the first neural network array.

### Claim 12 (depends on 9)

The neural network system according to claim 9, wherein the plurality of neural network arrays further comprises a third neural network array, and the third neural network array and the second neural network array are configured to implement computing of a convolutional layer in the neural network system in parallel.

### Claim 13 (depends on 12)

The neural network system according to claim 12, wherein the adjusting comprises:
adjusting, based on input data of the second neural network array and the deviation, a weight value stored in at least one in-memory computing unit in the second neural network array; and
adjusting, based on input data of the third neural network array and the deviation, a weight value stored in at least one in-memory computing unit in the third neural network array.

### Claim 14 (depends on 12)

The neural network system according to claim 12, wherein the adjusting comprises:
dividing the deviation into at least two sub-deviations, wherein a first sub-deviation in the at least two sub-deviations corresponds to the output data of the second neural network array, and a second sub-deviation in the at least two sub-deviations corresponds to output data of the third neural network array;
adjusting, based on the first sub-deviation and input data of the second neural network array, a weight value stored in at least one in-memory computing unit in the second neural network array; and
adjusting, based on the second sub-deviation and input data of the third neural network array, a weight value stored in at least one in-memory computing unit in the third neural network array.

### Claim 15

A chip, comprising:
a data interface; and
a processor that reads, by using the data interface, instructions stored in a memory, to perform a method comprising:
inputting training data into a neural network system to obtain first output data, wherein the neural network system comprises a plurality of neural network arrays, each neural network array of the plurality of neural network arrays comprises a plurality of in-memory computing units, and each in-memory computing unit of the plurality of in-memory computing units is configured to store a weight value of a neuron in a corresponding neural network array;
calculating a deviation between the first output data and target output data; and
adjusting, based on the deviation, a weight value stored in at least one in-memory computing unit in at least one neural network array in the plurality of neural network arrays, wherein the at least one neural network array is configured to implement computing of at least a portion of one neural network layer in the neural network system.

### Claim 16 (depends on 15)

The chip according to claim 15, wherein the plurality of neural network arrays comprises a first neural network array and a second neural network array, and input data of the first neural network array comprises output data of the second neural network array.

### Claim 17 (depends on 16)

The chip according to claim 16, wherein the first neural network array comprises a neural network array configured to implement computing of a fully-connected layer in the neural network system.

### Claim 18 (depends on 17)

The chip according to claim 17, wherein the adjusting, based on the deviation, the weight value stored in the at least one in-memory computing unit in some the at least one neural network array in the plurality of neural network arrays comprises:
adjusting, based on input data of the first neural network array and the deviation, a weight value stored in at least one in-memory computing unit in the first neural network array.

### Claim 19 (depends on 16)

The chip according to claim 16, wherein the plurality of neural network arrays further comprise a third neural network array, and the third neural network array and the second neural network array are configured to implement computing of a convolutional layer in the neural network system in parallel.

### Claim 20 (depends on 19)

The chip according to claim 19, wherein the adjusting, based on the deviation, the weight value stored in the at least one in-memory computing unit in the at least one neural network array in the plurality of neural network arrays comprises:
adjusting, based on input data of the second neural network array and the deviation, a weight value stored in at least one in-memory computing unit in the second neural network array; and
adjusting, based on input data of the third neural network array and the deviation, a weight value stored in at least one in-memory computing unit in the third neural network array.
