# US 2021/0334636 A1 · Systolic-cnn: an opencl-defined scalable runtime-flexible programmable accelerator architecture for accelerating convolutional neural network inference in cloud/edge computing

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

- Number: US 2021/0334636 A1
- Document ID: US20210334636A1
- Status: Published application
- Kind: A1
- Application number: 17/243,136
- Filed: 2021-04-28
- Published: 2021-10-28
- Earliest claimed: 2020-04-28
- Assignees: Arizona Board of Regents on behalf of Arizona State University
- Inventors: Akshay Dua; Fengbo Ren
- Web page: https://patentgrep.com/patent/US20210334636A1

## CPC

- G06N 3/063: using electronic means
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/048: Activation functions
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

An OpenCL-defined scalable runtime-flexible programmable accelerator architecture for accelerating convolutional neural network (CNN) inference in cloud/edge computing is provided, referred to herein as Systolic-CNN. Existing OpenCL-defined programmable accelerators (e.g., field-programmable gate array (FPGA)-based accelerators) for CNN inference are insufficient due to limited flexibility for supporting multiple CNN models at runtime and poor scalability resulting in underutilized accelerator resources and limited computational parallelism. Systolic-CNN adopts a highly pipelined and paralleled one-dimensional (1-D) systolic array architecture, which efficiently explores both spatial and temporal parallelism for accelerating CNN inference on programmable accelerators (e.g., FPGAs). Systolic-CNN is highly scalable and parameterized, and can be easily adapted by users to efficiently utilize the coarse-grained computation resources for a given programmable accelerator. In addition, Systolic-CNN is runtime-flexible and can be time-shared to accelerate a variety of CNN models at runtime without the need to recompile the programmable accelerator kernel hardware or reprogram the programmable accelerator.

## Claims

### Claim 1

A method for accelerating a convolutional neural network (CNN) process on a programmable accelerator, the method comprising:
establishing on the programmable accelerator a convolution layer and additional layers which are runtime-flexible for a plurality of CNN models without recompiling the programmable accelerator;
receiving a first request to perform a first CNN inference process; and
at runtime, accelerating the first CNN inference process using the convolution layer and the additional layers with spatial and temporal parallel execution.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
receiving a second request to perform a second CNN inference process; and
accelerating the second CNN inference process using the convolution layer and the additional layers without recompiling the programmable accelerator.

### Claim 3 (depends on 2)

The method of claim 2, wherein the first CNN inference process uses at least one of the additional layers which the second CNN inference process does not use.

### Claim 4 (depends on 2)

The method of claim 2, wherein the second CNN inference process performs a type of inference which is distinct from the first CNN inference process.

### Claim 5 (depends on 1)

The method of claim 1, wherein accelerating the first CNN inference process comprises executing data-independent loops on the convolution layer in parallel spatially.

### Claim 6 (depends on 5)

The method of claim 5, wherein executing the data-independent loops of the convolutional layer in parallel spatially comprises executing the data-independent loops over different processing elements (PEs) of the programmable accelerator.

### Claim 7 (depends on 5)

The method of claim 5, wherein accelerating the first CNN inference process comprises executing data-dependent loops of the convolutional layer in parallel temporally.

### Claim 8 (depends on 5)

The method of claim 5, wherein the additional layers comprise two or more of a batch normalization (BNORM) layer, a local response normalization (LRN) layer, a max pooling layer, an average pooling layer, an element-wise sum (ELTWISE) layer, and a rectified linear unit (ReLU) layer.

### Claim 9 (depends on 1)

The method of claim 1, wherein the programmable accelerator comprises a field-programmable gate array (FPGA).

### Claim 10

A deep learning system, comprising:
a programmable accelerator; and
a memory storing instructions which, when executed, cause the programmable accelerator to:
establish processing resources on the programmable accelerator which are runtime-flexible for a plurality of convolutional neural network (CNN) models;
receive a request to perform a CNN inference process using one of the plurality of CNN models; and
perform the CNN inference process with the processing resources without recompiling the programmable accelerator.

### Claim 11 (depends on 10)

The deep learning system of claim 10, wherein the processing resources comprise a convolution layer and additional layers.

### Claim 12 (depends on 10)

The deep learning system of claim 10, wherein the programmable accelerator comprises a field-programmable gate array (FPGA).

### Claim 13 (depends on 10)

The deep learning system of claim 10, wherein the deep learning system further comprises:
an off-chip memory coupled to the programmable accelerator; and
a host processor configured to provide the request to perform the CNN inference process to the programmable accelerator.

### Claim 14 (depends on 13)

The deep learning system of claim 13, wherein the processing resources comprise a shift register-based input feature map (IFM) buffer for storing IFM data received from the off-chip memory.

### Claim 15

A convolutional neural network (CNN) accelerator architecture, comprising:
a one-dimensional (1-D) systolic array of processing elements (PEs) configured to execute a convolution layer of a CNN; and
an additional layer module configured to provide optional computations for the CNN;
wherein the CNN accelerator architecture is configured to accelerate a plurality of types of CNNs on a programmable accelerator at runtime without reconfiguring the programmable accelerator.

### Claim 16 (depends on 15)

The CNN accelerator architecture of claim 15, wherein the additional layer module comprises one or more of a batch normalization (BNORM) layer, a local response normalization (LRN) layer, a max pooling layer, an average pooling layer, an element-wise sum (ELTWISE) layer, and a rectified linear unit (ReLU) layer.

### Claim 17 (depends on 15)

The CNN accelerator architecture of claim 15, wherein the additional layer module comprises multiple computation layers which are selected at runtime according to a type of CNN selected.

### Claim 18 (depends on 17)

The CNN accelerator architecture of claim 17, wherein the multiple computation layers are cascaded such that a computation layer not selected provides data passthrough.

### Claim 19 (depends on 15)

The CNN accelerator architecture of claim 15, further comprising a buffer configured to store an input feature map (IFM) for the CNN received from an external memory.

### Claim 20 (depends on 19)

The CNN accelerator architecture of claim 19, wherein the buffer is a shift register-based buffer.
