High bandwidth non-volatile memory device for AI inference system and AI inference method
By adopting high-bandwidth non-volatile memory technology and vertical stacking structure in the memory device, the problem of insufficient bandwidth of traditional memory devices is solved, enabling efficient storage and retrieval of AI inference data, improving performance and reducing costs.
Patent Information
- Application Number
- CN202310647336.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-02-22
- Filing Date
- 2023-06-02
- Publication Date
- 2024-08-23
AI Technical Summary
Traditional memory devices lack bandwidth when supporting AI inference applications, resulting in poor performance and high cost, making it difficult to effectively store and retrieve AI inference data.
Using high-bandwidth non-volatile memory (NVM) technology, the logic layer die is vertically stacked with multiple non-volatile memory die to form a layered structure, using silicon through-hole connections to achieve high-speed data transmission, combined with appropriate Memory technologies such as PCM, 3D Xpoint, RRAM, etc., provide high-bandwidth data storage and retrieval.
It realizes high-bandwidth storage and retrieval of AI inference data, improves the performance and efficiency of artificial intelligence accelerator processing, reduces costs, and supports 50GB/second throughput to the accelerator core.
Smart Images

Figure CN118536559A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an integrated circuit memory device, such as a non-volatile memory device, which supports information storage and retrieval used in artificial intelligence (AI) inference applications, and more particularly to a hierarchical die memory architecture and instruction decoder to provide high-bandwidth storage and retrieval of weights and other information to support AI inference applications. Background Art
[0002] Modern information technology applications, such as artificial intelligence (AI) inference, consume a large amount of data, such as weight information, when performing inference operations.
[0003] Many different types of memory architectures have been created, each providing storage for digital data and addressing different needs and requirements for a variety of applications. However, traditional memory device strategies often suffer from insufficient bandwidth, resulting in poor performance, or require refresh logic, which results in high costs.
[0004] There is an urgent need to provide mechanisms that can store AI inference data with greater bandwidth. Summary of the invention
[0005] A high-bandwidth non-volatile memory (NVM) is described, suitable for providing neural network weights to an AI accelerator processing core or multiple cores (e.g., an accelerator core). An artificial intelligence (AI) inference memory device using high-bandwidth NVM technology as described herein may include a logic layer die and multiple non-volatile memory (NVM) dies. The logic layer die includes channel logic that implements connections between multiple channels for data transmission via a bus to the accelerator core. Multiple NVMs are stacked vertically together to form a layered vertical stack of NVM dies, each NVM die including at least one memory chip and multiple direct vertical connections to the corresponding channel logic in the logic layer.
[0006] In a representative embodiment, an artificial intelligence (AI) inference memory device includes a logic layer die, which may include channel logic for connecting between multiple channels for data transmission between an accelerator core via at least one bus that can be mounted on a substrate. Multiple non-volatile memory (NVM) dies can be stacked vertically one by one to form a layered vertical stack of NVM dies. Each NVM die may include at least one memory chip and multiple direct vertical connections to corresponding channel logic in the logic layer. These direct vertical connections can be via-to-via connections of a through silicon via (TSV) integrated circuit. The AI inference device can use any suitable NVM technology to implement NVM, such as but not limited to phase change memory (PCM), three-dimensional cross point memory (3D Xpoint), NOR flash memory, resistive random access memory (RRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FeRAM), conductive bridge random access memory (CBRAM) and NAND flash memory.
[0007] In some embodiments, the stacked NVM dies may be organized into one or more storage areas. A controller in the logic layer may execute interface instructions with one or more NVM dies in corresponding storage areas. Thus, the interface instructions may be executed by two or more parallel channels. The interface instructions include read neural network weight data instructions and write neural network weight data instructions.
[0008] In one example implementation, the NVM die is configured as two stacks of four NVM dies on the logic layer die, and the NVM die provides data to eight parallel channels. Interface commands can be executed by the memory corresponding to the parallel channels; thereby achieving 50GB / sec throughput to the accelerator core.
[0009] On the other hand, the channel logic also includes an interface connected to a substrate on which a processor or a field programmable gate array (FPGA) and a static random access memory (SRAM) are mounted. The processor or the field programmable gate array performs neural network calculations, and the static random access memory stores activation data for neural network calculations. The activation data may include, for example, stored nonlinear functions for relating the relationship between inputs and outputs of the neural network, such as, for example, sigmoid functions, hyperbolic tangent (tanh) functions, linear rectification (ReLU) functions, leaky linear rectification activation (LReLU) functions, and maximum output (maxout) functions. In addition, this substrate may be mounted with a processor or a field programmable gate array (FPGA) that performs neural network calculations, and a static random access memory (SRAM) that stores activation data for neural network calculations.
[0010] In another aspect, the logic layer and the vertical stack including such NVM dies can be fixed to an interposer. The interposer provides connections between multiple direct vertical wires of the vertical stack and corresponding channel logic located in the logic layer. The AI inference memory device can be packaged as a 2.5D through silicon via (TSV) integrated circuit.
[0011] On the other hand, the logic layer can be fixed to the interposer. These NVM tube cores are vertically stacked on the logic layer and the interposer to form a vertical stack; thereby establishing a connection between multiple direct vertical lines of the vertical stack and corresponding channel logic located in the logic layer. The AI inference memory device can be packaged as a three-dimensional (3D) through silicon via (TSV) integrated circuit. In some embodiments, multiple solder bumps deposited on the logic layer and the chip pads of these NVM tube cores provide a connection with the device located directly below. In some embodiments, multiple backside interconnect structures have been deposited on the logic layer and the chip pads of these NVM tube cores, providing a wafer-to-wafer connection with the device located above. The AI inference memory device is packaged as a three-dimensional system-on-chip (3D SOC) integrated circuit.
[0012] In another representative embodiment, an artificial intelligence (AI) inference method is provided. The method may be performed by a processor coupled to a logic layer die and a plurality of non-volatile memory (NVM) dies. The logic layer die includes channel logic that implements connections between a plurality of channels to transfer data between an accelerator core via at least one bus. The NVM dies are stacked vertically one on top of the other to form a layered vertical stack of NVM dies, each die including at least one memory chip and a plurality of direct vertical connections to corresponding channel logic in the logic layer. The method may include retrieving a plurality of neural network weights stored therein from the NVM die stacked vertically above the logic layer die. Using the accelerator core, the neural network weights are applied to input data of each of a plurality of nodes of the neural network to obtain an intermediate output. The activation data defines an activation function or multiple activation functions that can be applied to the intermediate output to obtain a result of the neural network level. The result may be stored in the NVM dies, FPGA buffers, activation memories, or any storage device for calculation at another neural network level until a final result is completed. In an embodiment, suitable activation data may include stored data implementing an activation function, the activation function including one or more of a sigmoid function, a hyperbolic tangent (tanh) function, a linear rectification (ReLU) function, a leaky linear rectification activation (LReLU) function, and a maximum output (maxout) function. In an embodiment, such NVM dies are configured as two stacks of four NVM dies on a logic layer die, and wherein the method further includes providing data to eight parallel channels.
[0013] In another representative embodiment, the AI inference system may include a processor chip that can be coupled to each other, a first memory chip suitable for storing an excitation function, and a second (high bandwidth) memory chip suitable for storing an array of weights. The processor can apply weights retrieved from the NVM die to specific inputs, and can apply the excitation function retrieved from the first memory chip to provide an inference output. The inference system can be implemented as a multi-chip module in a single package. This package can be mounted on a circuit board or other type of substrate and connected to sensors and other components that can use the weight data stored in the high-bandwidth NVM to generate data consumed by performing inference processing, and consume data generated by performing inference processing.
[0014] Other aspects and advantages of the present invention may be appreciated by reviewing the following figures, detailed description, and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The patent or application file contains at least one drawing drawn in color. Copies of this patent or patent application publication with color drawing will be provided by the Office upon request and payment of the necessary fee.
[0016] Figure 1 is a schematic diagram of a multi-chip module including high-bandwidth memory for AI inference as described herein.
[0017] Figure 2 is a schematic diagram of another embodiment of a multi-chip module including high bandwidth memory for AI inference as described herein.
[0018] Figure 3 is a schematic diagram of yet another embodiment of a multi-chip module including high bandwidth memory for AI inference as described herein.
[0019] Figure 4 is a simplified functional block diagram of an inference system as described herein.
[0020] Figure 5 is a flow chart of a runtime program that is executed by the inference system described herein.
[0021] Figure 6 is a simplified functional block diagram of a representative neural network node (neuron) processed by the AI inference system described in this article.
[0022] Figure 7 is a representative activation function suitable for implementing artificial intelligence inference as described in this article.
[0023] Figure 8 is a simplified diagram illustrating storage and retrieval of weight data in a memory system including flash memory implemented on an integrated circuit as described herein.
[0024] Fig. 9 The weight data used by the neural network to process the image is stored in a high bandwidth non-volatile memory (NVM) according to various storage paradigms according to the techniques described in this article.
[0025] Fig.10 is a schematic diagram of a technique for distributing weight data among multiple NVM channels using a high-bandwidth NVM according to the techniques described herein.
[0026] Fig.11 Schematic diagram of various schemes for distributing weight data among multiple NVM channels using high-bandwidth NVM according to the techniques described herein.
[0027] Description of Reference Numerals
[0028] 1: Memory device
[0029] 101,201,301,401: processor chips
[0030] 102,202,302,402: Second memory chip
[0031] 103,203,303,403: First memory chip
[0032] 110,210,310: Intermediary layer
[0033] 111, 211, 311: Interconnection wiring
[0034] 112, 114, 212, 214, 231, 232, 241, 242, 312, 314, 331, 332, 341, 342: Interface
[0035] 113, 213, 313: Input / output interface
[0036] 120,220,320: Multi-chip modules
[0037] 121,221,351: External contact structure
[0038] 122,222,352: Another input / output interface
[0039] 204,304: I / O die
[0040] 202a, 202b, 202N, 302a, 302b, 302N: NVM die
[0041] 404: Logical layer
[0042] 405: On-chip memory
[0043] 410: CPU
[0044] 411: Accelerator Core
[0045] 412: First memory I / O interface
[0046] 413: I / O interface
[0047] 414: Memory I / O Interface
[0048] 415: Data Path
[0049] 420: Bus system
[0050] 422: Second I / O interface
[0051] 430a, 430b: Storage area
[0052] 431a, 431b, 432a, 432b: Interface
[0053] 434,444: Controller
[0054] 440: Volatile Memory
[0055] 450a, 450b: vertical connection
[0056] 501-506: Operation
[0057] 602: Neural Network Weights
[0058] 606: Input Data
[0059] 608: Intermediate output
[0060] 610: Output
[0061] 702: S-type function
[0062] 704: Hyperbolic tangent function
[0063] 706: Linear Rectification Function
[0064] 708: Leaky Linear Rectification Activation Function
[0065] 710: Maximum output function
[0066] 801: First Option
[0067] 802: Second Option
[0068] 901,902,903: Example
[0069] 911, 912, 913: weight
[0070] 921,922,923,1020B,1022B,1101~1108: Filter
[0071] 1010, 1011, 1012, 1110-1113: Channel
[0072] 1020A,1022A: Layer
[0073] 1100A,1100B: Solution
[0074] 1134,1144,1154,1164: Controller DETAILED DESCRIPTION
[0075] By reference Figures 1 to 11 Embodiments of the present invention will be described in detail.
[0076] Figure 1 It is a multichip module (MCM) 120, including a processor chip 101, a first memory chip 103 (e.g., an activation memory for storing activation data) and a second memory chip 102 (e.g., a weight memory for storing weight data of a neural network). The weight memory can be regarded as a high bandwidth (HB) memory. In this example, the processor chip 101, the second memory chip 102 and the first memory chip 103 are arranged on the interposer 110. The second memory chip 102 can be a HB non-volatile memory (NVM) for storing weights (e.g., weight data) used in neural network calculations. The first memory chip 103 can be a dynamic random access memory (DRAM), a static random access memory (SRAM) or NAND, but DRAM and SRAM are currently the first choice for storing activation data of activation functions used in neural network calculations. This component is a multichip module 120 configured as a single package.
[0077] The processor chip 101 may include a runtime processor core (eg, a CPU) and an accelerator core, such as an artificial intelligence accelerator (eg, AIAc) or a neural processing unit.
[0078] In this example, the processor chip 101 includes an input / output interface 113 disposed on a surface of the processor chip 101. The input / output interface 113 is connected to the interconnection wiring 111 on the interposer 110.
[0079] The first memory chip 103 includes an interface 112 for connecting to the interconnect wiring 111 on the interposer 110 .
[0080] The second memory chip 102 includes an interface 114 for connecting to the interconnect wiring 111 on the interposer 110. Figure 1 Although illustrated as a single entity for clarity, the second memory chip 102 may include a multi-layer stack with multiple memory dies arranged on different layers in the stack and connected to vertical connectors such as through silicon vias (TSVs) connected to the interconnect wiring 111 on the interposer 110.
[0081] Thus, the interconnect wiring 111 provides a portion of the data path between the first memory chip 103 , the second memory chip 102 , and the processor chip 101 .
[0082] exist Figure 1 In the example shown, the processor chip 101 includes another input / output interface 122 for connecting to an external contact structure 121 of the multi-chip module 120 .
[0083] Figure 2 is another configuration of the inference system as described herein. This configuration includes a processor chip 201, a first memory chip 203 (e.g., an activation memory storing activation data) and a second memory chip 202 (e.g., a weight memory storing weight data of a neural network), and the second memory chip 202 can be regarded as an HB memory. In this example, the second memory chip 202 includes a plurality of individually layered non-volatile memory (NVM) dies 202a to 202N, which are disposed on an I / O die 204, and the I / O die 204 implements connection logic in a logic layer. The processor chip 201, the I / O die 204 of the second memory chip 202, and the first memory chip 203 are disposed on an interposer 210. This component is configured as a multi-chip module 220 in a single package.
[0084] The processor chip 201 may include a runtime processor core (eg, a CPU) and an accelerator core, such as an artificial intelligence accelerator (eg, AIAc) or a neural processing unit.
[0085] The second memory chip 202 includes a plurality of non-volatile memory dies 202a-202N stacked one on top of the other and stacked above the I / O die 204. One such NVM die 202a shown includes a chip-to-chip interface with an interface 231 exposed thereon for connection to the I / O die 204. The I / O die 204 includes an interface 232 exposed on the surface of the I / O die 204 and complementary to the interface 231 on the NVM die 202a. In this example, a direct vertical connection to the surface is provided between the memory interface 232 and the interface 231. The direct vertical connection may include very short copper via-to-via conductors or other chip-to-chip contact technology suitable for high-speed, low-latency and low-power communication between chips.
[0086] Continuing to refer to the second memory chip 202, another NVM die 202b is shown including a chip-to-chip bonding surface, and an interface 241 (e.g., NVM-NVM interface) is exposed thereon to connect to the NVM die 202a of the second memory chip 202. The NVM die 202a includes an interface 242 (e.g., NVM-NVM interface) exposed on the surface of the NVM die 202a and complementary to the interface 241 on the NVM die 202b. In this example, a direct vertical connection on the surface is provided between the NVM-NVM interface 242 and the NVM-NVM interface 241.
[0087] In some embodiments, an interposer provides connections between multiple direct vertical connections of a vertical stack (e.g., NVM die 202a-202N) and corresponding channel logic in a logic layer (e.g., I / O die 204). In some embodiments, multiple solder bumps deposited on chip pads of a logic layer (e.g., I / O die 204) and multiple NVM dies (e.g., 202a-202N) provide connections to devices located directly below. In some embodiments, multiple backside interconnect structures have been deposited on chip pads of a logic layer and multiple NVM dies, providing wafer-to-wafer connections to devices above. The AI inference memory device can be packaged as any of a 2.5D through silicon via (TSV) integrated circuit, a three-dimensional (3D) through silicon via (TSV) integrated circuit, and a three-dimensional (3D) system-on-chip (3D SOC) integrated circuit.
[0088] In this example, the processor chip 201 includes an input / output interface 213 disposed on a surface of the processor chip 201. The input / output interface 213 is connected to the interconnection wiring 211 on the interposer 210.
[0089] The first memory chip 203 includes an interface 212 for connecting to the interconnect wiring 211 on the interposer 210 .
[0090] Furthermore, the I / O die 204 includes an interface 214 for connecting to the interconnect wiring 211 on the interposer 210 .
[0091] Thus, the interconnect wiring 211 provides a portion of the data path between the first memory chip 203 , the second memory chip 202 , and the processor chip 201 .
[0092] exist Figure 2 In the example shown, the processor chip 201 includes another input / output interface 222 for connecting to the external contact structure 221 of the multi-chip module 220 .
[0093] Figure 3 is another configuration of the inference system as described herein. This configuration includes a processor chip 301, a first memory chip 303 (e.g., an activation memory storing activation data) and a second memory chip 302 (e.g., a weight memory storing weight data of a neural network), and the second memory chip 302 can be regarded as an HB memory. In this example, the second memory chip 302 includes a plurality of individually layered non-volatile memory (NVM) dies 302a to 302N disposed on an I / O die 304. The processor chip 301, the I / O die 304 of the second memory chip 302, and the first memory chip 303 are disposed on an interposer 310. This component is configured as a single packaged multi-chip module 320.
[0094] The processor chip 301 may include a runtime processor core (eg, a CPU) and an accelerator core, such as an artificial intelligence accelerator (eg, AIAc) or a neural processing unit.
[0095] The second memory chip 302 includes a plurality of non-volatile memory dies 302a-302N stacked one on top of another and stacked above the I / O die 304. One such NVM die 302a shown includes a chip-to-chip bonding surface with an interface 331 exposed thereon for connection to the I / O die 304. The I / O die 304 includes an interface 332 exposed on the surface of the I / O die 304 and complementary to the interface 331 on the NVM die 302a. In this example, a direct vertical connection of the surface is provided between the interface 332 and the interface 331. The direct vertical connection may include very short copper hole-to-hole conductors or other chip-to-chip contact technology suitable for high-speed, low-latency and low-power communication between chips.
[0096] Continuing to refer to the second memory chip 302, another NVM die 302b is shown including a chip-to-chip bonding surface, and an interface 341 (e.g., NVM-NVM interface) is exposed thereon to connect to the NVM die 302a of the second memory chip 302. The NVM die 302a includes an interface 342 (e.g., NVM-NVM interface) exposed on the surface of the NVM die 302a and complementary to the interface 341 on the NVM die 302b. In this example, a direct vertical connection on the surface is provided between the NVM-NVM interface 342 and the NVM-NVM interface 341.
[0097] In some embodiments, the interposer 310 provides connections between multiple direct vertical connections of the vertical stack (e.g., NVM die 302a-302N) and corresponding channel logic in the logic layer (e.g., I / O die 304). In some embodiments, multiple solder bumps deposited on the chip pads of the logic layer (e.g., I / O die 304) and multiple NVM dies (e.g., 302a-302N) provide connections to the device located directly below. In some embodiments, multiple backside interconnect structures have been deposited on the chip pads of the logic layer and multiple NVM dies, providing wafer-to-wafer connections to the upper device. The AI inference memory device can be packaged as any of a 2.5D through silicon via (TSV) integrated circuit, a three-dimensional (3D) through silicon via (TSV) integrated circuit, and a three-dimensional (3D) system-on-chip (3DSOC) integrated circuit.
[0098] In this example, the processor chip 301 includes an input / output interface 313 disposed on a surface of the processor chip 301. The input / output interface 313 is connected to the interconnection wiring 311 on the interposer 310.
[0099] The first memory chip 303 includes an interface 312 for connecting to interconnect wiring 311 on the interposer 310 .
[0100] Also, the I / O die 304 includes an interface 314 for connecting to the interconnect wiring 311 on the interposer 310 .
[0101] Thus, the interconnect wiring 311 provides a partial data path between the first memory chip 303 , the second memory chip 302 , and the processor chip 301 .
[0102] exist Figure 3 In the example shown, the multi-chip module (MCM) 320 includes another input / output interface 352 for connecting to an external contact structure 351 of the multi-chip module 320 .
[0103] Figures 1 to 3Examples of arrangements of the inference system with high-bandwidth NVM described herein are presented, showing various configurations of the chip and connections between the chip, interposer, and external contacts of the package. Other arrangements may be implemented based on specific needs.
[0104] Figure 4 It is a reference Figures 1 to 3 A simplified functional block diagram of the inference system of the implementation. This platform includes a processor chip 401 (e.g., a CPU and AIAcc), a first memory chip 403 (an activation memory for storing activation data), and a second memory chip 402 (e.g., a weight memory for storing weight data of a neural network). The processor chip 401 in this example includes a CPU or processor core (CPU 410), an accelerator core 411, an on-chip memory 405, a first I / O interface 413, and a second I / O interface 422. The on-chip memory 405 is, for example, an SRAM (or other type of memory) that can be used as a working memory and a cache. The bus system 420 provides intra-chip communication between components of the processor chip 401.
[0105] The first memory chip 403 in this example includes, for example, a high-capacity volatile memory 440, such as DRAM or SRAM (or non-volatile memory, such as 3D NAND or other types of memory implemented using charge trapping storage technology). The first memory chip 403 includes a first memory I / O interface 412 for off-chip communication. The first memory I / O interface 412 may include a high-speed serial port, such as a serial peripheral interface (SPI) compatible port, or a parallel interface, depending on the specific implementation of the memory chip 403 used. In this example, a data path 415 is provided between the first memory I / O interface 412 and the first I / O interface 413 on the processor chip 401.
[0106] In this example, the second memory chip 402 includes a high bandwidth (HB) non-volatile memory (NVM) configured in one or more storage areas 430a, 430b, each of which may include one or more layers of NVM tube cores arranged in channels. The NVM may be one of a phase change memory (PCM), a 3D magnetic memory (3D Xpoint), and a NAND flash memory. In other examples, the second memory chip 402 may include a NOR flash memory using charge trapping storage technology, or other suitable random access technologies, such as resistive RAM (such as metal oxide memory), magnetoresistive RAM, ferroelectric RAM, conductive bridge random access memory CBRAM, etc.
[0107] The second memory chip 402 includes a memory I / O interface 414 for off-chip communication with an I / O interface 413 on the processor chip 401 via the logic layer 404. The logic layer 404 includes channel controllers 434, 444, which provide control of multiple channels forming one or more groups of high-speed data paths, and weight data can flow through interfaces 432a, 432b exposed on the surface of the logic layer 404 on the data path. The interfaces 432a, 432b are complementary to the interfaces 431a, 431b on the surface of the storage area 430a, 430b of the layered NVM tube core. These layers are directly connected by vertical connections 450a, 450b on the surface between the IO-memory interface 432a, 432b and the memory-IO interface 431a, 431b. The direct vertical connection 450a, 450b can include very short copper hole-to-hole conductors or other chip-to-chip contact technology suitable for high-speed, low-latency and low-power communication between chips. In one embodiment, for example, four NVM dies each with N / 8 through silicon via (TSV) I / Os are stacked onto a logic die to form two stacks; where N is the total number of TSV IOs, 8 is the number of dies, and N / 8 is the IO per die. One NVM die has one channel; one channel is N / 8 through silicon via (TSV) I / Os. Each channel is completely independent, so each channel can operate independently. One controller can control multiple channels. An external controller can be provided in a field programmable gate array (FPGA) or a system on chip (SoC) die (e.g., execution processor 401).
[0108] DRAM is an option for incorporating into a system-in-package (SiP) when on-chip SRAM is not large enough.
[0109] Thermal management can be used to ensure data retention.
[0110] The AI accelerator used herein (e.g., accelerator core 411) is a configurable logic circuit including elements designed or suitable for performing some or all arithmetic operations of AI inference operations. The configuration of the accelerator core may include loading a set of weights from memory 402 for performing inference operations, or a portion of this set of weights. In some embodiments, the configuration of the accelerator core may include loading part or all of the computational graph of the inference model, which defines the order of operations and architecture of the inference model. The inference model may include a computational graph of a deep learning neural network, in some examples having multiple fully connected and partially connected layers, activation functions, normalization functions, etc.
[0111] Accelerator cores can be implemented using configurable logic, for example, configurable cell arrays like those used in field programmable gate arrays, where compiled computation graphs are configured using bit files. Accelerator cores can be implemented using a mix of dataflow configurable logic and in-order processing configurable logic.
[0112] A runtime processor core (e.g., CPU 410) may execute a runtime program to coordinate operations of the accelerator cores to complete real-time inference operations, including data input / output operations, loading computational graphs, moving sets of weights to be applied in inference operations into and out of the accelerator cores, providing input data to the accelerator cores, and performing partial computations to obtain inference results.
[0113] Figure 5 is a flow chart, which is composed of, for example, reference Figures 1 to 4 An example of the logic operations performed by the inference system. Figure 6 is a simplified functional block diagram of a representative neural network node (neuron) processed by the AI inference system logic described herein. This logic can be implemented using machine executable instructions stored in a memory, such as an SRAM on-chip memory 405, or other memory accessible to the processor CPU 410, which is coupled to a logic layer die and multiple non-volatile memory (NVM) dies, the logic layer die includes channel logic, the channel logic implements the connection between multiple channels, these channels are connected to the accelerator core via at least one bus for data transmission, and the non-volatile memory (NVM) dies are stacked vertically one by one to form a layered vertical stack of NVM dies, each NVM die includes at least one memory chip and a plurality of direct vertical connections connected to the corresponding channel logic in the logic layer. In this example, the weight set of the artificial intelligence neural network calculation downloaded from an external source (such as the Internet) is loaded into the high-bandwidth NVM of the inference system.
[0114] Please refer to Figure 5 , 6 During operation, an operation retrieves a plurality of neural network weights 602 (e.g., Wb, W1, W2, W3, and Wn) stored in a high-bandwidth NVM (operation 501). The weight data is directly sent to the artificial intelligence accelerator core 611 for calculation. The activation function 604 is stored in the activation memory (e.g., Figure 4 403) (operation 502). Please refer to Figure 7 , suitable activation data may include stored data implementing an activation function, the activation function including one or more of a sigmoid function 702, a hyperbolic tangent (tanh) function 704, a linear rectification (ReLU) function 706, a leaky linear rectification activation (LReLU) function 708, and a maximum output (maxout) function 710.
[0115] After loading the weights and configuring the AI accelerator core 611, the operation includes using the AI accelerator core 611 to perform an inference procedure to apply the plurality of neural network weights to the input data 606 of each of the plurality of nodes of the neural network to obtain intermediate outputs of the nodes of one or more levels of the neural network (operation 503). The intermediate output 608 includes a set of calculation results from one level of the neural network.
[0116] Next, the data stored in the first memory chip 103 (eg Figure 4 The activation function 604 in the activation memory 403 of the neural network is applied to the intermediate output to obtain an output 610 (e.g., a result) of one or more levels of the neural network (operation 504). For example, in operation 504, the AIAcc can apply the activation data to the result of the nodes of one level of the neural network. This result is stored in the high-bandwidth NVM, FPGA buffer or any storage device, or activation memory 403 (operation 505). This procedure includes checking whether the nodes of a deeper neural network level are to be processed (operation 506), and if so, restarting operations 501 to 506 to process the next batch of neural network nodes to be processed. If there is no deeper level to be processed, this output is directly provided and / or stored (e.g., for storage back in the second memory 102, FPGA buffer or any storage device).
[0117] therefore, Figure 5 The operation includes selecting activation data and weights stored in the first and second memory chips, adding the accelerator core, and executing the steps of the neural network node using the weights and activation data. In addition, Figure 5 As shown, after executing or starting to execute the selected neural network node, the operation cycle is repeated to operation 501 to process the next level of the neural network. If more neural network nodes are to be processed, operations 501 to 506 are performed, and operations 501 to 506 may include changing the activation data to a different function, loading the weights of the nodes of the next level of the neural network, and executing different nodes.
[0118] Reference Figure 5It can be seen that many steps can be combined, performed in parallel, or performed in a different order without affecting the functions achieved. In some cases, as the reader will understand, the steps can be rearranged to achieve the same effect only if certain other changes are made. In other cases, as the reader will understand, the steps can be rearranged to achieve the same effect only if certain conditions are met. In addition, it is understood that the flowcharts herein only show the steps relevant to understanding the present invention, and it is understood that many additional steps can be performed before, after, and between the steps shown to achieve other functions.
[0119] During the training process, the weights stored in the NVM die (e.g., weight memory 402) are adjusted by the processor chip 401 (e.g., CPU and AIAcc) according to the training data set. As the training progresses, the processor chip 401 will continue to update the weight value, which will be stored in the NVM. In some embodiments, the weights are fixed during the inference process.
[0120] In a processing-constrained environment, the speed at which AI applications reach results becomes an important factor. Therefore, the traditional random storage of weight data in HBW NAND flash memory may increase the data required for operation and result in low data transfer efficiency due to the page-level granularity inherent in NAND flash page read operations. The weight data storage paradigm according to the embodiments described herein can reduce the number of flash access times and improve data processing efficiency.
[0121] Figure 8 is a simplified diagram illustrating the storage and retrieval of weight data used to compute node values during inference operations by a neural network in a memory system including a flash memory device 1 implemented on an integrated circuit as described herein. This memory device may be implemented on a single integrated circuit chip, on a multi-chip module, or on multiple chips to suit specific needs.
[0122] like Figure 8 As shown, the memory device 1 is a NAND flash memory, in which the read operation is performed in units of one page, which means that each time a data acquisition operation is performed, a whole page must be read from the flash memory. When data is stored in different pages, data acquisition becomes very slow. This may affect the processing speed of the entire artificial intelligence inference platform. In addition, the artificial intelligence accelerator may stagnate, waiting for the arrival of data. If the location of the data is not well preserved, it may lead to low bandwidth utilization.
[0123] Continue to refer to Figure 8, D0 to D5 represent data storage locations; W0 to W5 represent weight data. The weight data is stored in the NVM. In the first scenario 801, the weight data (i.e., neural network weights) are randomly stored in data locations from location D0 to location D5 in Page 0 and Page 1. Therefore, if the neural network processing calls Data 0, Data 4, and Data 1, such as weights W1 and W3, W5 and W2, and W2 and W4, to perform calculations, i.e., obtain a node value or a group of node values, then the NAND flash memory device 1 will first read Page 0 to obtain Data 0, such as weights W1 and W3, then read Page 1 to obtain Data 4, such as weights W5 and W2, and then return to re-read Page 0 to obtain Data 1, such as weights W2 and W4. However, if the data to be processed is stored in the data location according to the expected retrieval indicated by the neural network, or is reordered and located in such a storage location, as described in the second scenario 802, the expected data acquisition time can be reduced. In the second scheme 802, the weights belonging to Data 0, Data 4, and Data 1, such as (W1, W3), (W5, W2), and (W2, W4), are all stored in the location of Page 0. In this way, obtaining the weights belonging to Data 0, Data 4, and Data 1 requires the NAND flash device 1 to perform a single read of Page 0, so that the number of accesses is reduced, the efficiency is improved, and the performance is increased... In various embodiments, the structure of the neural network indicating which weights will be used and in what order can be received as input by the artificial intelligence inference system, read from the storage area, or accessed in other ways. Because the entire neural network structure can be obtained from the local storage area on the chip, received from the host or another chip in the artificial intelligence inference system, the artificial intelligence inference system can determine which weight data needs to be input during the artificial intelligence inference process, and thus store the weight data in what order to reduce the number of accesses in the subsequent inference process.
[0124] Fig. 9 is the weight data used by the neural network to process the image, which is stored by a high-bandwidth NVM in various storage paradigms according to the techniques described in this article. Fig. 9 In the illustrated embodiment, weight data is stored in the same page or pages of the NVM and is read in groups or sets of nine (9) weights in each of three (3) colored neural network channels: red (1 to 9), green (1 to 9), and blue (1 to 9). The groups (or sets) of weights may include a filter or a feature map such that the filter may include weights for network nodes corresponding to neural network layers defined in the neural network definition.
[0125] exist Fig. 9 In the example of storage examples 901, 902, 903 shown, there are 32 groups of 9 weights, each with a specific storage location, where a group of 9 weights 911, 912, 913 form respective 3×3 filters, e.g., 921, 922, 923. A group of 9 red weights 911 can be used to fill a red filter 921, a group of green weights 912 can be used to fill a green filter 922, and a group of blue weights 913 can fill a blue filter 923. Thus, there are 288 red weights (e.g., 32×9), 288 green weights, and 288 blue weights. In total, there are 864 weights (288×3).
[0126] like Fig. 9 As shown, the weights are stored from left to right in the figure, from red to green to blue in example 901. Therefore, in example 901, 3 fetch requests are required to retrieve the first filters of 3 different, i.e., red, green and blue channels, for example, because depending on the page size, this data may not be stored in the same page of the memory. Therefore, at least 96 read operations (32×3) are required, for example, to fill each filter. If the weights are all stored in the same page, this processing still requires 3 read operations to obtain the values of the filters of 3 different (e.g., R, G and B) channels. This is why the order of the data can be rearranged so that the AI inference engine can process all the red data at once, if a page is large enough to accommodate all the red data. If the page size is not enough to accommodate the weights of all filters of the same color, the remaining weights of the same color will continue to be stored in the next page of the memory.
[0127] When the weight data is stored according to the first storage example 901, it may result in a less efficient read process. If the data locations can be arranged (or rearranged) and stored in a different order, such as examples 902, 903, the weight data can be read once for the red, green and blue filters. This will reduce the number of data fetches, resulting in less processing time when data needs to be read during inference.
[0128] In example 902, 9 weights for red filter 911, 9 weights for green filter 912, and 9 weights for blue filter 913 have been stored together. In this configuration, a read operation can obtain the weights to populate filters 921, 922, and 923 in a single read operation.
[0129] In example 903, the weights are arranged to group all 1's together, then all 2's together, and so on. This is another way of rearranging the data to improve access when performing the convolution process. The input image is multiplied by a 3×3 filter for the convolution process.
[0130] Of course, although in Fig. 9 The examples shown use 3×3 filters, but in practice filters of any size can be constructed, for example 5×5, 8×8 filters can be implemented without restriction, in which case each filter will have a total of 25 or 64, etc. weight values.
[0131] Fig.10 FIG. 1 is a schematic diagram of a technique for distributing data among multiple NVM channels by a high-bandwidth NVM according to the techniques described herein. Fig.10 The illustrated high bandwidth memory architecture 1000 includes the use of channels 1010, 1011, 1012 to enable data to be read from or stored to different NVM dies having memory arrays simultaneously. Such memory channels are used to transfer data along the path to or from the die implementing the non-volatile storage array. In some embodiments, the controller can be shared by multiple channels, i.e., the controller can control multiple channels, such as Figure 4 As shown in 434 and 444, they control CHANNEL 0-3 and CHANNEL 4-7 respectively.
[0132] In one embodiment, for example, if a memory system has 4 channels or multi-channel NVM memory, the total weight data length can be evenly distributed or otherwise allocated to the memory channels (data length / channel). Of course, the above reference can be used Figures 8-9 The described technique maximizes the use of page size. For example: 288 weights per neural network channel, e.g., 288 red weights (e.g., 32 filters x 9 weights per filter), can be distributed among 4 memory channels, resulting in 72 red weights per memory channel, or 72 red weights / 9 weights per filter, resulting in 8 red filters per memory channel. Similarly, 8 green filters per memory channel; 8 blue filters per memory channel.
[0133] In addition, different layers of the neural network will use different groups of weights. Fig.10As shown, for example, in a convolutional neural network (CNN), there are different layers 1020A, 1022A. For each layer, there are different filters 1020B, 1022B. Here, Layer 0 is the first layer 1020A in the convolutional neural network, and the corresponding first layer filters (weights) 1020B are stored in Page 0. If Page 0 is not large enough, the weight data will be stored in the next page. In addition, the weights can be of different types and functions for different layers. For example, the weights associated with Layer 0 layer 1020A include weights grouped according to red, green, and blue filters. Layer 1 layer 1022A includes weights grouped according to some other examples defined by the neural network. In some embodiments, the weights corresponding to the first layer of the neural network can be based on a paradigm (e.g. Fig. 9 901, 902 or 903), and the weights corresponding to the second layer of the neural network can be stored according to different examples.
[0134] Fig.11 is a schematic diagram of various schemes for distributing weight data among multiple NVM channels with high bandwidth NVM according to the techniques described herein. An appropriate storage scheme according to the present techniques can provide retrieval of two or more groups of weights (e.g., filters) without requiring reading additional memory pages. For example, weights can be stored so that all groups of a layer can be retrieved without triggering additional memory pages. Fig.11 , the weight data belonging to multiple filters (Filter1-Filter7) 1101-1108 can be read out by multiple memory channels (Channel 0-Channel 3) 1110-1113. The memory channels are used for data transmission, which is transmitted to or from the die via the inter-die paths that implement the non-volatile memory array. In some embodiments, the controller 1134, 1144, 1154, 1164 can be shared by multiple channels, that is, the controller can control multiple channels, such as Figure 4 As shown in 434 and 444, they control CHANNEL 0-3 and CHANNEL 4-7 respectively.
[0135] In scheme 1100A, weights according to filter groupings can be assigned to individual memory channels. For example, the weights of Filter 1 1101 and Filter 2 1102 are stored for retrieval via Channel 0 1110. Thus, filter weights can be stored to or retrieved from multiple arrays simultaneously using multiple NVM channels. In this configuration, weights belonging to different filters can be read simultaneously using different channels. However, if it is necessary to read weights assigned to different groups of the same channel, such as in Fig.11 In scheme 1100A, the weights from Filter 1 and Filter 2, both of which belong to Channel 0 1110, may require multiple page reads.
[0136] In solution 1100B, storage space is allocated to different channels according to the weights of the filter groups. Fig.11 , the weights of Filter 1 1101 to Filter 6 1106 are distributed among each of the four available channels (Channel 0-Channel 3) 1110-1113. In this case, the weight data distributed among multiple channels can be read from the NVM array simultaneously by each of Channel 0 1110 to Channel 3 1113. In addition, the read operation of the NVM array of each channel has the ability to read the weight data of each filter without the need for page retrieval when switching from one filter to the next filter's read operation.
[0137] Other embodiments of the methods described in this section may include a non-transitory computer-readable storage medium storing instructions executable by a processor to perform any of the above methods. However, another embodiment of the methods described in this section may include a system including a memory and one or more processors operable to execute instructions stored in the memory to perform any of the above methods.
[0138] Any data structures and codes described or referenced above are stored on a computer-readable storage medium according to many embodiments, which can be any device or medium that can store code and / or data for use by a computer system, including but not limited to volatile memory, non-volatile memory, application specific circuit (ASIC), field programmable gate array (FPGA), magnetic and optical storage devices, such as disk drives, tapes, CDs (optical disks), DVDs (digital versatile disks or digital laser discs), or other media now known or later developed that can store computer-readable media.
[0139] As used herein, network nodes, including network nodes referred to as client nodes and server nodes, are applications of virtual devices (e.g., connected to a cloud-based platform for a network) hosted on or executed in an active electronic device, and can send, receive or forward information to support computer programs, such as servers and clients, through the physical medium of a channel on a network, and have, for example, a media access control address and a protocol stack supporting a higher network layer. The network can include a network using an Internet Protocol address, or other types of network layer addresses. In certain embodiments, the network includes the Internet. Examples of electronic devices that can carry network nodes include computers of all kinds, workstations, notebook computers and desktop computers, handheld computers and smart phones, and cloud-based platforms.
[0140] A byte is a basic unit of storage used in many body circuit logic and memory circuits and consists of 8 bits. Basic storage cells may have other sizes, including, for example, 1 bit, 2 bits, 4 bits, 16 bits, etc. Therefore, the description of high bandwidth NVM described above and in other examples described herein using the term byte is generally applicable to circuits using storage cells of different sizes, as if the term storage cell or storage cell group is used instead of a byte or a group of bytes. In addition, in some embodiments, storage cells of different sizes may be used in an instruction sequence, such as one or more four-bit storage cells combined with eight-bit storage cells.
[0141] Some flowcharts describing the logic executed by a memory controller or memory device are described herein. This logic can be implemented by dedicated logic hardware (including field programmable circuits) and by a combination of dedicated logic hardware and a computer program, using a processor programmed by a computer program, which is stored in a memory accessible by a computer system and executable by a processor. Through all the flowcharts herein, it can be understood that many steps can be combined, performed in parallel, or performed in a different order without affecting the functions achieved. In some cases, as the reader understands, the steps can only be rearranged to achieve the same effect if certain other changes are made. In other cases, as the reader understands, the steps can only be rearranged to achieve the same effect if certain conditions are met. In addition, it is understood that the flowcharts herein only show steps relevant to understanding the present invention, and it is understood that many additional steps can be performed before, after, and between the steps shown to achieve other functions.
[0142] Although the present invention is disclosed by referring to the preferred embodiments and examples described in detail above, it should be understood that these examples are intended to be illustrative rather than restrictive. It is contemplated that those of ordinary skill in the art can easily think of some modifications and combinations, which will be within the scope of the spirit of the present invention and the appended claims.
Claims
1. A high-bandwidth non-volatile memory (NVM) device for an AI inference system, comprising: a logic layer die, including channel logic for implementing connections between a plurality of channels, for data transmission between an accelerator core via at least one bus; as well as A plurality of non-volatile memory (NVM) dies are stacked vertically one by one to form a layered vertical stack of NVM dies, each of which includes at least one memory chip and a plurality of direct vertical connections to the logic of a corresponding channel in the logic layer die.
2. The high bandwidth non-volatile memory (NVM) device for an AI inference system of claim 1, wherein the stacked NVM dies are organized into one or more memory zones, and the AI inference memory device further comprises a controller for each memory zone to execute a plurality of interface instructions with one or more NVM dies of a corresponding one of the one or more memory zones.
3. The high bandwidth non-volatile memory (NVM) device for AI inference system according to claim 2, wherein the interface commands are executed by two or more parallel channels.
4. A high-bandwidth non-volatile memory (NVM) device for an AI inference system according to claim 2, wherein the interface instructions include a read neural network weight data instruction and a write neural network weight data instruction.
5. The high-bandwidth non-volatile memory (NVM) device for an AI inference system according to claim 1, wherein the corresponding channel further comprises an interface connected to a substrate on which a processor or a field programmable gate array (FPGA) and a static random access memory (SRAM) are mounted, wherein the processor or the field programmable gate array performs neural network calculations, and the static random access memory stores activation data for neural network calculations.
6. The high-bandwidth non-volatile memory (NVM) device for an AI inference system according to claim 1, wherein the corresponding channel further comprises an interface connected to a substrate on which a processor or a field programmable gate array (FPGA) and a dynamic random access memory (DRAM) are mounted, wherein the processor or the field programmable gate array performs neural network calculations, and the dynamic random access memory stores activation data for neural network calculations.
7. A high-bandwidth non-volatile memory (NVM) device for an AI inference system according to claim 1, wherein a plurality of back-side interconnect structures have been deposited on the chip pads of the logic layer die and these NVM dies to provide wafer-to-wafer connections with devices located above; thereby packaging the AI inference memory device into a three-dimensional system-on-chip (3D SOC) integrated circuit.
8. An artificial intelligence (AI) inference method performed by a processor coupled to a logic layer die and a plurality of non-volatile memory (NVM) dies, the logic layer die including channel logic for implementing connections between a plurality of channels for data transfer via at least one bus to an accelerator core, the NVM dies being stacked vertically one on top of another to form a layered vertical stack of NVM dies, each of the NVM dies including at least one memory chip and a plurality of direct vertical connections to a corresponding channel logic in the logic layer die, the method comprising: retrieving a plurality of neural network weights stored therein from the NVM dies stacked vertically above the logic layer die; Using the accelerator core, applying the neural network weights to input data of each of a plurality of nodes of a neural network to obtain an intermediate output; Applying activation data to the intermediate output to obtain a result of a neural network layer; as well as The result is stored in at least one of the NVM dies, an FPGA buffer, and an active memory for computation in additional neural network layers until a final result is achieved.
9. The AI inference method according to claim 8, wherein the application activation data comprises data stored by the application for implementing an activation function, wherein the activation function is selected from at least one of a sigmoid function, a hyperbolic tangent (tanh) function, and a rectified linear unit (ReLU) function.
10. The AI inference method of claim 8, wherein the NVM dies are configured as two stacks of four NVM dies located on the logic layer die, and wherein the AI inference method further comprises providing data to eight parallel channels.
