# US 2023/0065725 A1 · Parallel depth-wise processing architectures for neural networks

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

- Number: US 2023/0065725 A1
- Document ID: US20230065725A1
- Status: Published application
- Kind: A1
- Application number: 17/465,550
- Filed: 2021-09-02
- Published: 2023-03-02
- Earliest claimed: 2021-09-02
- Assignees: QUALCOMM Incorporated
- Applicants: QUALCOMM Incorporated
- Inventors: Mustafa BADAROGLU; Zhongze WANG; Francois Ibrahim ATALLAH
- Web page: https://patentgrep.com/patent/US20230065725A1

## CPC

- G06N 3/08: Learning methods
- G06V 10/82: using neural networks
- G06F 7/5443: {Sum of products (for applications thereof, see the relevant places, e.g. G06F17/10, H03H17/00)}
- 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
- G06V 20/40: in video content (extracting overlay text G06V20/62; video retrieval G06F16/70; processing of video elementary streams in video servers H04N21/234; processing of video elementary streams in video clients H04N21/44)
- G06V 20/64: Three-dimensional [3D] objects
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods and apparatus for performing machine learning tasks, and in particular, to a neural-network-processing architecture and circuits for improved performance through depth parallelism. One example neural-network-processing circuit generally includes a plurality of groups of processing element (PE) circuits, wherein each group of PE circuits comprises a plurality of PE circuits configured to process in parallel an input at a plurality of depths.

## Claims

### Claim 1

A processing circuit comprising a plurality of groups of processing element (PE) circuits, wherein:
each group of PE circuits comprises a plurality of PE circuits configured to process in parallel an input at a plurality of depths, and
each PE circuit comprises:
one or more multiplication circuits, each multiplication circuit being configured to calculate a partial product, and
a local accumulator having an input coupled to an output of the one or more multiplication circuits, the local accumulator being configured to generate a sum from the partial product calculated by each of the one or more multiplication circuits.

### Claim 2 (depends on 1)

The processing circuit of claim 1, wherein each PE circuit further comprises:
a register having an input coupled to an output of the local accumulator.

### Claim 3 (depends on 2)

The processing circuit of claim 2, further comprising a plurality of global accumulators, wherein an output of the register in each PE circuit is coupled to the input of another register in another PE circuit in the group of PE circuits or to an input of one of the global accumulators.

### Claim 4 (depends on 3)

The processing circuit of claim 3, further comprising a bus, wherein another output of the register in each PE circuit is coupled to the bus.

### Claim 5 (depends on 4)

The processing circuit of claim 4, wherein an output of each of the global accumulators is further coupled to the bus.

### Claim 6 (depends on 2)

The processing circuit of claim 2, wherein each PE circuit further comprises a first selection circuit having a first input coupled to the output of the local accumulator and having an output coupled to the input of the register.

### Claim 7 (depends on 6)

The processing circuit of claim 6, wherein the first selection circuit in each PE circuit has a second input coupled to an output of the register.

### Claim 8 (depends on 7)

The processing circuit of claim 7, wherein the first selection circuit comprises a 2:1 multiplexer, a tri-state buffer, or a plurality of switches.

### Claim 9 (depends on 6)

The processing circuit of claim 6, wherein at least some of the PE circuits in each group of PE circuits further comprise a second selection circuit having an output coupled to the input of the register, having a first input coupled to an output of the register, and having a second input coupled to an output of another register in another PE circuit in the group of PE circuits.

### Claim 10 (depends on 9)

The processing circuit of claim 9, wherein the second selection circuit comprises a 2:1 multiplexer, a tri-state buffer, or a plurality of switches.

### Claim 11 (depends on 1)

The processing circuit of claim 1, further comprising a plurality of global accumulators, wherein each global accumulator has an input coupled to an output of one of the groups of PE circuits.

### Claim 12 (depends on 1)

The processing circuit of claim 1, wherein the plurality of PE circuits is further configured to process in parallel a plurality of inputs at a plurality of depths.

### Claim 13

A method of neural network processing, comprising:
receiving an input for processing; and
for each segment of a plurality of segments of the received input:
generating, substantially in parallel, a respective intermediate output for a respective depth of a plurality of depths in a neural network based on weights in the neural network associated with the respective depth in the neural network;
accumulating the intermediate output for each respective depth into a final output; and
outputting the final output to a memory bus.

### Claim 14 (depends on 13)

The method of claim 13, wherein:
the input comprises data from a three-dimensional space,
a first dimension in the three-dimensional space corresponds to a horizontal dimension,
a second dimension in the three-dimensional space corresponds to a vertical dimension, and
a third dimension in the three-dimensional space corresponds to a depth dimension.

### Claim 15 (depends on 14)

The method of claim 14, wherein:
the data from the three-dimensional space comprises video data, and
the depth dimension corresponds to a temporal channel in the video data.

### Claim 16 (depends on 13)

The method of claim 13, wherein generating the intermediate output for the respective depth in the neural network comprises:
generating the intermediate output through a multiply-and-accumulate (MAC) circuit; and
storing a value of the MAC circuit in a tap register.

### Claim 17 (depends on 16)

The method of claim 16, wherein generating the intermediate output for the respective depth in the neural network further comprises shifting the value in the tap register during each of a plurality of processing cycles.

### Claim 18 (depends on 13)

The method of claim 13, wherein accumulating the intermediate output for each respective depth into the final output comprises accumulating shifted values associated with each of the respective depths over a plurality of processing cycles stored in one or more tap registers.

### Claim 19 (depends on 13)

The method of claim 13, wherein outputting the final output to the memory bus comprises outputting each intermediate output to the memory bus.

### Claim 20 (depends on 13)

The method of claim 13, wherein outputting the final output to the memory bus is based on a signal indicating that processing has been completed for a threshold number of depth cycles.

### Claim 21

An apparatus, comprising:
a memory bus;
a processor configured to:
receive an input for processing; and
for each segment of a plurality of segments of the received input:
generate, substantially in parallel, a respective intermediate output for a respective depth of a plurality of depths in a neural network based on weights in the neural network associated with the respective depth in the neural network;
accumulate the intermediate output for each respective depth into a final output; and
output the final output to the memory bus; and
a digital post-processing block configured to retrieve the final output from the memory bus and perform one or more operations based on the final output.

### Claim 22 (depends on 21)

The apparatus of claim 21, wherein:
the input comprises data from a three-dimensional space,
a first dimension in the three-dimensional space corresponds to a horizontal dimension,
a second dimension in the three-dimensional space corresponds to a vertical dimension, and
a third dimension in the three-dimensional space corresponds to a depth dimension.

### Claim 23 (depends on 22)

The apparatus of claim 22, wherein:
the data from the three-dimensional space comprises video data, and
the depth dimension corresponds to a temporal channel in the video data.

### Claim 24 (depends on 21)

The apparatus of claim 21, wherein in order to generate the intermediate output for the respective depth in the neural network, the processor is configured to:
generate the intermediate output through a multiply-and-accumulate (MAC) circuit; and
store a value of the MAC circuit in a tap register.

### Claim 25 (depends on 24)

The apparatus of claim 24, wherein in order to generate the intermediate output for the respective depth in the neural network, the processor is further configured to shift the value in the tap register during each of a plurality of processing cycles.

### Claim 26 (depends on 21)

The apparatus of claim 21, wherein in order to accumulate the intermediate output for each respective depth into the final output, the processor is configured to accumulate shifted values associated with each of the respective depths over a plurality of processing cycles stored in one or more tap registers.

### Claim 27 (depends on 21)

The apparatus of claim 21, wherein in order to output the final output to the memory bus, the processor is configured to output, for each intermediate output value to the memory bus.

### Claim 28 (depends on 21)

The apparatus of claim 21, wherein in order to output the final output to the memory bus, the processor is configured to output the final output based on a signal indicating that processing has been completed for a threshold number of depth cycles.

### Claim 29

An apparatus comprising:
means for receiving an input for processing;
means for generating, for each segment of a plurality of segments of the received input and substantially in parallel, an intermediate output for a respective depth of a plurality of depths in a neural network based on weights in a neural network associated with the respective depth in the neural network;
means for accumulating, for each segment of a plurality of segments of the received input, the intermediate output for each respective depth into a final output; and
means for outputting, for each segment of a plurality of segments of the received input, the final output to a memory bus.
