Apparatus with in-memory processing using systolic arrays and computing apparatus including the same
Abstract
An apparatus includes a global memory and a systolic array. The global memory is configured to store and provide an input feature map (IFM) vector stream from an IFM tensor and a kernel vector stream from a kernel tensor. The systolic array is configured to receive the IFM vector stream and the kernel vector stream from the global memory. The systolic array is on-chip together with the global memory. The systolic array includes a plurality of processing elements (PEs) each having a plurality of vector units, each of the plurality of vector units being configured to perform a dot-product operation on at least one IFM vector of the IFM vector stream and at least one kernel vector of the kernel vector stream per unit clock cycle to generate a plurality of output feature maps (OFMs).
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 10 · Forward citations: 0.
Claims (20 — 2 Independent, 18 Dependent)
- Claim 1Independent Claim
An apparatus, the apparatus comprising: a systolic array configured to receive an input feature map (IFM) vector stream from an IFM tensor and a kernel vector stream from a kernel tensor from a global memory, the systolic array being on-chip together with the global memory and comprising a plurality of processing elements (PEs), wherein each of the plurality of PEs comprises a plurality of vector circuitries, wherein each of the plurality of vector circuitries comprises a collection of multiplier hardware and an adder tree and each of the plurality of vector circuitries is configured to, per unit clock cycle, generate one output feature map (OFM) pixel by performing a complete dot-product operation on an IFM vector of the IFM vector stream and a kernel vector of the kernel vector stream, each PE generates at least two OFM pixels per unit clock cycle by simultaneously performing a plurality of complete dot-product operations so that throughput in parallel processing capability of the systolic array is enabled, wherein a first PE of the plurality of PEs, per unit clock cycle, generates a plurality of OFM pixels by performing at least two complete dot-product operations using the plurality of vector circuitries of the first PE, wherein the plurality of PEs in a same row share a same IFM vector stream and the plurality of PEs in a same column share a same kernel vector stream.
- Claim 2Depends on #1
The apparatus of claim 1, wherein the global memory is connected to an IFM fetcher circuitry, and the IFM fetcher circuitry is configured to fetch IFM vectors from the global memory and form the IFM vector stream fed to the systolic array.
- Claim 3Depends on #2
The apparatus of claim 2, wherein the IFM fetcher circuitry comprises buffers respectively dedicated to IFM vector streams, and the buffers are configured to store the IFM vector streams fed to the systolic array.
- Claim 4Depends on #1
The apparatus of claim 1, wherein the global memory is connected to a kernel fetcher circuitry, and the kernel fetcher circuitry is configured to fetch kernel vectors from the global memory and form the kernel vector stream fed to the systolic array.
- Claim 5Depends on #4
The apparatus of claim 4, wherein a number of kernel vectors fetched by the kernel fetcher circuitry is equal to a number of vector circuitries available in each of the PEs.
- Claim 6Depends on #4
The apparatus of claim 4, wherein the kernel fetcher unit comprises buffers respectively dedicated to kernel vector streams, and the buffers are configured to store the kernel vector streams fed to the systolic array.
- Claim 7Depends on #1
The apparatus of claim 1, wherein the IFM vector stream and the kernel vector stream are input to the systolic array, based on identification of an IFM window and the kernel tensor; and streaming pixels of the IFM window and the kernel tensor into the systolic array, such that relative positions of IFM vectors and kernel vectors input to at least one of the plurality of PEs match.
- Claim 8Depends on #1
The apparatus of claim 1, further comprising an OFM write-back circuitry configured to collect OFM pixels generated from the systolic array and writing the OFM pixels to the global memory.
- Claim 9Depends on #1
The apparatus of claim 1, wherein the plurality of PEs is arranged in an m × n matrix form, wherein m denotes a number of rows, n denotes a number of columns, and m and n are equal.
- Claim 10Depends on #9
The apparatus of claim 9, wherein at least one PE from the plurality of PEs in each row receives IFM vectors and transfers the IFM vectors to PEs next to the at least one PE in the same row as the at least one PE.
- Claim 11Depends on #9
The apparatus of claim 9, wherein at least one PE from the plurality of PEs in each column receives kernel vectors and transfers the kernel vectors to PEs below the at least one PE in a direction in which kernel vectors are transferred in the same column as the at least one PE.
- Claim 12Depends on #1
The apparatus of claim 1, wherein the plurality of vector circuitries within each PE is configured to perform the dot-product operations in parallel based on lengths of respective dot-products.
- Claim 13Depends on #1
The apparatus of claim 1, wherein the global memory comprises a plurality of memory banks, and each of the plurality of memory banks is assigned to a tensor of a predetermined type at a beginning of a systolic operation.
- Claim 14Depends on #1
The apparatus of claim 1, wherein the apparatus is configured to accelerate machine learning operations.
- Claim 15Depends on #1
The apparatus of claim 1, wherein the apparatus is a smartphone, a laptop, a desktop, a smart watch, or a smart TV.
- Claim 16Depends on #1
The apparatus of claim 1, wherein the IFM vector stream comprises at least two IFM vectors and the kernel vector stream comprises at least two kernel vectors, wherein the first PE receives at least two IFM vectors and at least two kernel vectors per unit clock cycle, and wherein the plurality of vector circuitries within each PE enables the increased throughput in parallel processing capabilities of the systolic array.
- Claim 17Independent Claim
An apparatus, the apparatus comprising: a convolution operation data path circuitry, connected to a global memory storing input feature map (IFM) data, weights, kernel data, and output feature map (OFM) data, comprising: an IFM fetcher circuitry, connected to the global memory, configured to form an IFM vector stream comprising at least two IFM vectors from the IFM data; a kernel fetcher circuitry, connected to the global memory, configured to form a kernel vector stream comprising at least two kernel vectors from the kernel data; a systolic array comprising a plurality of processing elements (PEs) and is configured to receive the IFM vector stream and the kernel vector stream; and an OFM write-back circuitry configured to write a plurality of OFMs to the global memory, wherein each of the plurality of PEs comprises a plurality of vector circuitries, wherein each of the plurality of vector circuitries comprises a collection of multiplier hardware and an adder tree and each of the plurality of the vector circuitries is configured to, per unit clock cycle, perform a complete dot-product operation on an IFM vector of the IFM vector stream and a kernel vector of the kernel vector stream, each PE generates at least two OFM pixels per unit clock cycle by simultaneously performing a plurality of complete dot-product operations is that throughput in parallel processing capability of the systolic array is enabled, and wherein a number of the OPM pixels generated per unit clock cycle of each PE is dependent on a number of vector circuitries available in each PE.
- Claim 18Depends on #17
The apparatus of claim 17, wherein the kernel fetcher circuitry is further configured to fetch kernel vectors from the global memory and form the kernel vector stream.
- Claim 19Depends on #18
The apparatus of claim 18, wherein a number of the kernel vectors is equal to a number of vector circuitries available in each of the PEs.
- Claim 20Depends on #18
The apparatus of claim 18, wherein the kernel fetcher circuitry comprises buffers respectively dedicated to kernel vector streams, and the buffers are configured to store the kernel vector streams fed to the systolic array.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS This application claims the benefit under 35 USC 119(a) of Indian Patent Application No. 201941031403, filed on Jul. 29, 2020, in the Indian Patent Office and Korean Patent Application No. 10-2020-0128899, filed on Oct. 6, 2020, in the Korean Intellectual Property Office, the entire disclosures of which are incorporated herein by reference for all purposes. BACKGROUND 1. Field The present description relates to an apparatus with accelerated machine learning processing. 2. Description of Related Art In the domain of deep learning, computer vision and speech processing are two very desirable areas. Convolution neural networks (CNNs) and long short term memory (LSTM) are desirable components of computer vision and speech processing, respectively. Power-efficient execution of a CNN and LSTM models is desirable especially in mobile phones and other handheld devices. Many mobile phones are equipped with accelerators for the CNN models and in the CNN models, for example, the most compute-intensive parts are convolution (CONV) operations. CNN's applications constitute a multitude of CONV operations. CONV operations are computationally dominant and so should be carried out power-efficiently to ensure that the overall power efficiency of the CNN applications is high. Further, GEMM and GEMV operations of LSTM are computationally dominant. Thus, they should be executed in a power efficient manner to ensure overall high power efficiency of LSTM applications. SUMMARY This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter. In one general aspect, an apparatus includes a global memory and a systolic array. The global memory is configured to store and provid
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (10)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Jeff (Jun) Zhang et al.,
- “
- CompAct: On-chip Compression of Activations for Low Power Systolic Array Based CNN Acceleration,
- ”
- ACM Trans. Embed. Comput. Syst. 18, 5s, Article 47 (Oct. 2019), 24 page (Year: 2019).
- Umuroglu, Y., et al.,
- “
- FINN: A Framework for Fast, Scalable Binarized Neural Network Inference,
- ”
- in Proceedings of the 2017 ACM/SIGDA International Symposium on Field-Programmable Gate Arrays, 2017, pp. 65-74, https://arxiv.org/abs/1612.07119, (Year: 2016).