Accelerated neural network training system and neural network training method thereof
By using GPU clusters and compute storage systems in neural network training, combined with high-speed cache coherence system interconnection, the problems of storage requirements and excessive processing time for embedding operations in neural network training are solved, achieving faster training speeds.
Patent Information
- Application Number
- CN202211397031.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2022-02-11
- Filing Date
- 2022-11-09
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2042-11-09
AI Technical Summary
Neural network training operations are computationally intensive, especially the embedding operations, which require a lot of storage and result in excessively long processing times.
By employing a graphics processing unit (GPU) cluster and computing storage system, combined with a cache-consistent system interconnect, the computation and update process of the embedded table is realized, reducing waiting time.
By reducing the waiting time for embedding table updates, the processing speed and efficiency of neural network training are significantly improved.
Smart Images

Figure CN116108916B_ABST
Abstract
Description
Technical Field
[0001] One or more aspects of embodiments of this disclosure relate to neural networks, and more specifically, to systems and methods for training neural networks. Background Technology
[0002] Neural network training operations can be computationally intensive, and different aspects of these operations can impose different requirements on the system used for training. For example, in a neural network that receives a first set of continuous inputs and a second set of categorical inputs, the processing of the latter can be performed using embedding operations, which may require a large amount of storage.
[0003] Therefore, a system and method for training neural networks are needed. Summary of the Invention
[0004] In some embodiments, a system for performing neural network training includes a graphics processing unit (GPU) cluster and a computational storage system. The neural network may include a bottom multilayer perceptron, a top multilayer perceptron, and one or more embedding tables. The bottom multilayer perceptron can process continuous inputs, and the embedding table can process categorical inputs. The outputs of the bottom multilayer perceptron and the embedding table may be combined and further processed in the top multilayer perceptron to produce outputs such as click-through rate prediction.
[0005] The bottom and top multilayer perceptrons can be implemented in a GPU system, and the embedding table can be implemented in a compute storage system. The compute storage system may include multiple compute storage devices, each of which may expose a portion of a corresponding random access memory for communication between the compute storage devices and (i) the GPU system and (ii) a host that can manage training operations.
[0006] The computational storage system can compute the embedded vectors during a process known as "inference recovery" without waiting for the embedding table to be updated (based on gradients computed during the previous pass). The computational storage system can then update the computed embedded vectors based on the gradients. This approach can reduce processing time.
[0007] According to embodiments of this disclosure, a system is provided, comprising: a graphics processing unit cluster; and a compute storage cluster interconnected to the graphics processing unit cluster via a cache coherence system interconnect, wherein: the graphics processing unit cluster includes one or more graphics processing units, the compute storage cluster includes one or more compute storage devices, and a first compute storage device among the one or more compute storage devices is configured to: store an embedding table; receive an index vector including a first index and a second index; and compute an embedding vector based on a first row of the embedding table corresponding to the first index and a second row of the embedding table corresponding to the second index.
[0008] In some embodiments, the compute storage cluster includes a first compute storage device, a second compute storage device, and a memory switch connected to an interface controller of the cache coherence system interconnect.
[0009] In some embodiments, the first computing storage device includes a memory, and the first computing storage device is further configured to expose a portion of the memory via a memory switch and an interface controller.
[0010] In some embodiments, the first computing storage device is further configured to store the embedded vector in that portion of the memory.
[0011] In some embodiments, a graphics processing unit in one or more graphics processing units is configured to read an embedded vector from that portion of memory.
[0012] In some embodiments, the graphics processing unit is also configured to store the embedded vectors in the cache of the graphics processing unit.
[0013] In some embodiments, the graphics processing unit is further configured to: calculate the gradient of the cost function relative to the first row of the embedded table, and store the gradient in that portion of the memory.
[0014] In some embodiments, the first computational storage device is further configured to update elements of the first row of the embedded table based on gradients.
[0015] In some embodiments, the graphics processing unit cluster is configured to operate as a first multilayer perceptron and a second multilayer perceptron.
[0016] In some embodiments, the cache-coherent system interconnect is a fast compute link system interconnect.
[0017] In some embodiments, the graphics processing unit cluster includes a consistency broker to maintain cache consistency between the cache of a first graphics processing unit in one or more graphics processing units and the cache of a second graphics processing unit in one or more graphics processing units.
[0018] According to embodiments of this disclosure, a method is provided, comprising: storing an embedded table by a first computing storage device in one or more computing storage devices of a computing storage cluster; receiving an index vector including a first index and a second index by the first computing storage device; and calculating an embedded vector by the first computing storage device based on a first row of the embedded table corresponding to the first index and a second row of the embedded table corresponding to the second index, wherein: the computing storage cluster is connected to a graphics processing unit cluster via a cache coherence system interconnect, and the graphics processing unit cluster includes one or more graphics processing units.
[0019] In some embodiments, the compute storage cluster includes a first compute storage device, a second compute storage device, and a memory switch connected to an interface controller of the cache coherence system interconnect.
[0020] In some embodiments, the first computing storage device includes a memory, and the method further includes the first computing storage device exposing a portion of the memory via a memory switch and an interface controller.
[0021] In some embodiments, the method further includes storing the embedded vector in that portion of the memory by a first computational storage device.
[0022] In some embodiments, a graphics processing unit in one or more graphics processing units is configured to read an embedded vector from that portion of memory.
[0023] In some embodiments, the graphics processing unit is configured to store the embedded vectors in the graphics processing unit's cache.
[0024] In some embodiments, the graphics processing unit is configured to calculate the gradient of the cost function relative to the first row of the embedded table and store the gradient in that portion of the memory.
[0025] In some embodiments, the first computational storage device is configured to update elements of the first row of the embedded table based on the gradient.
[0026] According to embodiments of this disclosure, a system is provided, comprising: a graphics processing unit cluster; and a compute storage cluster interconnected to the graphics processing unit cluster via a cache coherence system interconnect, wherein: the graphics processing unit cluster includes one or more graphics processing units, the compute storage cluster includes one or more compute storage devices, a first compute storage device among the one or more compute storage devices includes permanent storage and means for processing, and the means for processing is configured to: store an embedding table; receive an index vector including a first index and a second index; and compute an embedding vector based on a first row of the embedding table corresponding to the first index and a second row of the embedding table corresponding to the second index. Attached Figure Description
[0027] These and other features and advantages of this disclosure will be recognized and understood by referring to the specification, claims and drawings, wherein:
[0028] Figure 1A This is a functional block diagram of a neural network according to an embodiment of the present disclosure;
[0029] Figure 1B This is a structural block diagram of a neural network according to an embodiment of the present disclosure;
[0030] Figure 1C This is a block diagram of a GPU system according to an embodiment of the present disclosure;
[0031] Figure 1D This is a block diagram of a computing storage system according to an embodiment of the present disclosure;
[0032] Figure 1E This is a memory organization diagram according to an embodiment of the present disclosure;
[0033] Figure 1F This is a data layout diagram according to an embodiment of the present disclosure;
[0034] Figure 1G This is a process flowchart according to an embodiment of the present disclosure;
[0035] Figure 2A This is a structural block diagram of a computing storage device according to an embodiment of the present disclosure;
[0036] Figure 2B This is a block diagram of an embedded kernel according to an embodiment of the present disclosure;
[0037] Figure 2C This is a block diagram of a gradient update circuit according to an embodiment of the present disclosure;
[0038] Figure 2D This is a digital example of deductive recovery based on embodiments of the present disclosure;
[0039] Figure 2EThis is a block diagram of a deduced recovery circuit according to an embodiment of the present disclosure;
[0040] Figure 3 This is a process flowchart illustrating two processing flows according to embodiments of the present disclosure;
[0041] Figure 4 This is a flowchart of a first method according to an embodiment of the present disclosure; and
[0042] Figure 5 This is a flowchart of a second method according to an embodiment of the present disclosure. Detailed Implementation
[0043] The detailed description set forth below with reference to the accompanying drawings is intended as a description of exemplary embodiments of systems and methods for training neural networks provided in this disclosure, and is not intended to represent the only form in which this disclosure can be constructed or utilized. This description illustrates features of this disclosure in conjunction with the illustrated embodiments. However, it should be understood that the same or equivalent functionality and structure may be implemented through different embodiments, which are also intended to be included within the scope of this disclosure. As shown elsewhere herein, similar element designations are intended to indicate similar elements or features.
[0044] In some embodiments, a system for performing neural network training includes a graphics processing unit (GPU) system and a compute storage system. The GPU system (also referred to as a "GPU cluster") may include a single GPU or multiple GPUs. The compute storage system (also referred to as a "compute storage cluster") may include a single compute storage device or multiple compute storage devices. The neural network may include a bottom multilayer perceptron, a top multilayer perceptron, and one or more embedding tables. The bottom multilayer perceptron can process continuous inputs, and the embedding table can process categorical inputs. The outputs of the bottom multilayer perceptron and the embedding table may be combined and further processed in the top multilayer perceptron to produce an output.
[0045] The bottom and top multilayer perceptrons can be implemented in a GPU system, and the embedding table can be implemented in a computational storage system. The computational storage system may include multiple computational storage devices, each of which may expose a portion of a corresponding memory (e.g., dynamic random access memory) for communication between the computational storage devices and (i) the GPU system and (ii) a host that can manage training operations. The computational storage system can compute the embedding vectors without waiting for the embedding table to be updated (based on gradients computed during the previous pass). The computational storage system can then update the computed embedding vectors based on the gradients. This approach can reduce processing time.
[0046] Figure 1 illustrates a neural network. In some embodiments, such a neural network, which may be a deep learning recommendation model (DLRM), may include a bottom multilayer perceptron (MLP) 105, one or more embedding tables 110, and a top multilayer perceptron (MLP) 115. Each multilayer perceptron may include multiple fully connected (FC) layers. Such a neural network may be well-suited for learning user preferences and making recommendations to users based on these preferences and those of other users. Training such a neural network may include performing multiple training iterations, each training iteration including performing forward pass to compute the value of the cost function with respect to a given set of weights, compute one or more gradients (of the cost function relative to the weights), and update the weights based on the gradients and the learning rate.
[0047] In operation (for forward propagation during inference and training), the neural network can receive both dense (continuous) and sparse (categorical) inputs. Dense inputs can be processed using the bottom multilayer perceptron 105, and sparse features can be processed using embedding operations, such as embedding table 110. Sparse inputs can be index vectors (i.e., vectors whose elements include, for example, indices), each index identifying a row in the embedding matrix. For a sparse input vector, the embedding operation can include (for example, composed of) retrieving the rows identified by the indices of the sparse input vector and calculating the sum of these rows to form a vector that can be referred to as the "embedded vector". The outputs of the bottom multilayer perceptron 105 and the embedding table 110 can be combined in a feature interaction function and fed to the top multilayer perceptron 115, which generates the output of the neural network (e.g., predicting click-through rate (CTR)).
[0048] Figure 1B This is a structural block diagram of a neural network according to embodiments of the present disclosure. (See reference...) Figure 1B The neural network can be implemented on a system including a host 120 (which includes a central processing unit (CPU) and main memory), which is connected to a graphics processing unit (GPU) cluster 125 and a compute-memory system 130 via a system interconnect 135 (which may be a cache-coherent system interconnect, such as a fast compute link (CXL) interconnect). The compute-memory system 130 can store embedding matrices and perform embedding operations, and the GPU system 125 can implement a bottom multilayer perceptron 105 and a top multilayer perceptron 115. The host 120 can manage the operation of the compute-memory system 130 and the GPU system 125.
[0049] Figure 1CExamples of GPU system 125 in some embodiments are shown. For ease of illustration, GPU system 125 is shown as including four GPUs 140; in some embodiments, the GPU system may include more or fewer GPUs, for example, it may include 2 to 8 GPUs. Each GPU 140 may include an associated secondary (L2) cache 145 and an associated video random access memory (VRAM) 150. Each GPU may be circuitry designed to create images in a frame buffer, or it may be any other suitable circuitry for performing neural network computations, and as used herein, the term “GPU” is synonymous with “processing circuitry” and is primarily used to facilitate the distinction between the processing circuitry in GPU system 125 and the processing circuitry in compute storage system 130. All L2 caches 145 may be connected to a coherence broker 155, which may be connected to system interconnect 135 via system interconnect interface controller 160 (which may be a CXL interface). The coherence broker may be any suitable combination of hardware and software configured to ensure cache consistency of L2 caches 145. GPU system 125 may have a high-bandwidth internal bus. Each VRAM 150 in the VRAM 150 can be connected to the system interconnect 135 via a memory switch 165 and a system interconnect interface controller 160. The system interconnect interface controller 160 of the GPU system 125 can support cache protocols and memory protocols.
[0050] Figure 1D Examples of computing storage systems 130 in some embodiments are shown. (Reference) Figure 1D The computing storage system 130 of Figure 1b includes multiple computing storage devices 170, two of which are in Figure 1DAs explicitly shown in the figure, each compute storage device in compute storage device 170 may include cache 175 (e.g., dynamic random access memory (DRAM) cache), controller 180 (e.g., field-programmable gate array (FPGA) or application-specific integrated circuit (ASIC)), and backup storage 185 (which may be persistent storage, e.g., solid-state drive (SSD)). As shown, each compute storage device in compute storage device 170 can be connected to system interconnect 135 via memory switch 165 and system interconnect interface controller 160. In embodiments where system interconnect 135 is a CXL interconnect, each compute storage device in compute storage device 170 can be configured as a CXL type-3 device and directly connected via a CXL.io port (if system interconnect 135 is a CXL interconnect). System interconnect interface controller 160 of compute storage system 130 may support memory protocols. Embedded tables may be relatively large, and they may not easily fit into the storage of GPU 140. For example, each embedded table may be 100GB, and they may not easily fit into the VRAM 150 of GPU 140. The embedded table 110 can be stored in the backup storage 185 of the computing storage device 170 as shown in the figure.
[0051] Communication with the computing storage system 130 (from the GPU and the host) can be made via the cache 175 of the computing storage device 170. For example... Figure 1E As shown, each compute storage device in compute storage device 170 may expose a portion 190 of the cache 175 of compute storage device 170 (e.g., between 1% and 50%). The fact that each compute storage device in compute storage device 170 may expose between 1% and 50% of the cache 175 of compute storage device 170 allows each GPU in host 120 and GPU 140 to directly read from and write directly to the exposed portion of the cache 175 of compute storage device 170.
[0052] The size of each display portion 190 in the cache 175 of compute storage device 170 can be chosen to be equal to the product of: (i) the number of incomplete embeddings (i.e., the number of embedding vectors computed before the GPU 140 reads the embedding vectors), (ii) the length of the embedding vectors, (iii) the number of embedding tables, and (iv) the batch size (in the case of batch training). From a system perspective, compute storage system 130 can be represented as a single contiguous region of memory, where each of the plurality of contiguous portions is a display portion 190 of the cache 175 of one of the compute storage devices 170. Figure 1FThe data layout is shown, for example, the embedded vector 195 of the first table (Table 1) is stored in a first set of contiguous areas of the display memory, and the embedded vector 195 of the second table (Table 2) is stored in a second set of contiguous areas of the display memory that are contiguous with the first set.
[0053] In operation, the embedded vectors computed by compute-memory system 130 can be stored in the presentation portion 190 of cache 175 of compute-memory device 170 (e.g., in iterative entry order) and read by GPU 140 from the presentation portion 190 of cache 175 of compute-memory device 170. The use of cache-coherent interconnect 135 allows the GPU to directly copy the embedded vectors to the L2 cache 145 of GPU system 125 without first copying them to VRAM 150. This can significantly improve system efficiency. For example, it can significantly increase system speed and reduce energy consumption per neural network operation. GPU system 125 can operate in a data-parallel mode, and each GPU 140 can retrieve and process a corresponding subset of the embedded vectors generated by compute-memory system 130 from the presentation portion 190 of cache 175 of one of the compute-memory devices 170. The gradient (of the cost function relative to the weights of the embedding table 110) can be computed by the top multilayer perceptron 115 (which is implemented in the GPU system 125) and written by the GPU system 125 to the display portion 190 of the cache 175 of the compute storage device 170 via the GPU 140. The controller 180 of the compute storage device 170 can then update the embedding table 110 based on the gradient.
[0054] As described above, the L2 cache 145 of GPU system 125 can be connected to the coherence broker 155 of GPU system 125 and can directly cache data from the main memory of host 120, or, as described above, directly cache data from the presentation portion 190 of cache 175 of compute storage device 170. The VRAM 150 of each GPU 140 can be connected to the memory switch 165 of GPU system 125; this memory switch can communicate with system interconnect 135 via the CXL mem protocol, effectively exposing all VRAM 150 of each GPU 140 to the rest of the system via system interconnect 135. Thus, host 120 can directly write intensive input features to the VRAM 150 of GPU 140 and read results from the VRAM 150 of GPU 140.
[0055] In some embodiments, the training pipeline begins at the CPU of host 120. Input data processing can be performed by host 120 because this approach provides flexibility in implementing different shuffling and partitioning schemes. Host 120 can (i) control GPU 140 to instruct GPU 140 to fetch intensive features directly from the host's main memory, and (ii) send sparse features to compute storage device 170 via an input / output (I / O) protocol. For example, host 120 can send sparse features to compute storage device 170 via CXL.io. Compute storage device 170 can fetch the corresponding rows from backing storage 185 to cache 175 of compute storage device 170 (if it is not already there), and load the rows used in the current iteration into the on-chip cache in controller 180 (e.g., into memory or a buffer in controller 180).
[0056] Figure 1G The processing flow in some embodiments is illustrated. At 102, the bottom multilayer perceptron 105 runs in the GPU system 125, while the embedding operation runs in the computational storage system 130. At 104, feature interactions combine (e.g., using vector dot products) the output of the embedding operation of the bottom multilayer perceptron 105 to form the input of the top multilayer perceptron 115. At 106, the top multilayer perceptron 115 runs in the GPU system 125; at 108, backpropagation is performed, and the gradients are written back to the computational storage system 130 for updating the embedding table at 112.
[0057] Figure 2A The diagram illustrates memory tiers that may be employed in compute storage device 170 in some embodiments. The controller 180 of compute storage device 170 (e.g., an FPGA) may include a Level 1 cache, such as an on-chip buffer of several megabytes (MB). Additionally, compute storage device 170 may include several gigabytes (GB) of dynamic random access memory (DRAM), which may operate as a Level 2 cache 175 (also referred to as a DRAM cache). Level 2 cache 175 may be managed by host 120, and the on-chip buffer may be managed by controller 180. Both levels of cache may be implemented as write-back caches, for example, where data can be written back (from Level 2 cache to backing memory, or from Level 1 cache to Level 2 cache) when evicted from the cache.
[0058] Figure 2BThe structure and process that can be implemented in the controller 180 of each computing storage device 170 are illustrated. This structure and process may also be referred to as an "embedded kernel". The embedded kernel may include a cross-connect switch 205 controlled by a switch controller 210. In operation, a sparse input feature vector is received from the host 120 and fed into an input first-in-first-out (FIFO) structure 215. In the connection circuit 225, the current input feature vector is compared with a previous input feature vector (stored in the input feature vector register 220), which produces (i) at a first output, a set of indices common to the current input feature vector and the previous input feature vector, and (ii) at a second output, a set of indices present in the current input feature vector but not in the previous input feature vector.
[0059] Each embedding table in embedding table 110 can be processed by a corresponding channel 230 of multiple channels 230 connected to cross-connect switch 205 (each channel can be one path in a set of parallel, independent processing paths). The rows of the embedding table corresponding to the previously input feature vectors can be stored in an on-chip buffer, which can be configured as multiple channel vector buffers (one of which, the channel buffer (channel VBuf) 235 for the first channel (channel 1), in... Figure 2B (This is explicitly shown in the diagram). Thus, rows (of the embedding table) corresponding to the set of indices common to the current input feature vector and previous input feature vectors do not need to be retrieved from the L2 cache 175 (or from the backup storage 185); the remaining rows (i.e., rows corresponding to the set of indices present in the current input feature vector but not in the previous input feature vectors) are retrieved by the weight read circuit 240 (from the L2 cache 175 or from the backup storage 185) and fed to the cross switch 205. In each channel, the vector accumulator 245 forms the sum of the selected rows. The embedded vectors computed in this way are stored in the incomplete buffer 250 to await possible further processing to address gradient variations, as discussed in more detail below.
[0060] Gradient-based weight updates can be performed as follows. The gradient can be read by gradient read circuit 255 from the display portion 190 of the L2 cache 175 of compute storage device 170 (which may have already been stored by GPU system 125). This gradient can then be used in gradient update circuit 260 to update the weights of any row (feeded to gradient update circuit 260 by cross switch 205). Reference Figure 2CThis can be achieved by adding the product of the gradient and the learning rate (formed in multiplier 270) to each row (in adder 265). The gradient (of the cost function relative to the weights in the embedding table 110) can be computed by the top multilayer perceptron 115, and the learning rate can be chosen at design time so that the values of the weights converge to a steady state in a reasonably small number of iterations without instability during the convergence process.
[0061] In some embodiments, the embedding vector is computed based on the old rows, and then a process is used to correct the vector for the differences between the old and updated rows. This process can be called "inferential recovery". For example, the embedding vector formed by summing the set of rows of the old embedding table may have been multiplied by N times the product of the gradient and the learning rate (where N is the number of indices shared by the current input feature vector and the previous batch of input feature vectors) to form the embedding vector that would be obtained by summing the same set of rows of the updated embedding table. This process makes it possible to compute the embedding vector iteratively without waiting for the embedding table to be updated, resulting in shorter processing time, as discussed in further detail below. Figure 2D An example of this process is shown, where the first two rows of the embedding table are among the rows added in both the previous and current iterations to form the embedding vectors in those iterations. The product of the gradient and the learning rate is multiplied by the number of indices common to the current input feature vector and the previous batch of input feature vectors (because only the rows of the embedding table corresponding to the previous batch of input feature vectors are updated, and only the rows of the embedding table corresponding to the current input feature vector are used to compute the current embedding vector), and this product is added to the "incomplete" embedding vector 275 (the embedding vector computed based on the old (or "original") embedding table) to compute the embedding vector 280 that would be obtained if the embedding table were updated before the computation of the embedding vectors.
[0062] Figure 2E The inferential recovery circuit that can be used to perform this update is shown. The gradient, learning rate, and the binCount (index number shared by the current input feature vector and the previous batch of input feature vectors) are multiplied in multiplier 270 and added to the incomplete vector in adder 265 to form the updated embedding vector.
[0063] Refer again Figure 2BWithin the embedded kernel, this process is performed by the inference recovery circuit 285, and the updated embedded vectors are written by the vector write circuit 290 to the presentation portion 190 of the L2 cache 175 of the computational storage device 170 (where they can be read by the GPU system 125). The vector write circuit 290 also writes updated rows to the L2 cache 175 or the backup storage 185. Cross-selection logic can prioritize rows from the gradient updater. The cross-selection logic is implemented in the switch controller 210. If there are overlapping indices between the current and previous input feature vectors, rows from the embedded table can be forwarded back to the input of the cross switch 205. The cross-selection logic can also prefetch rows for future inputs when there is available space in the vector buffer 235.
[0064] Figure 3 The first processing flow 300 is illustrated, which involves waiting until the embedding table has been updated before starting the next iteration to compute the embedding vectors. After the GPU system completes the backpropagation at 305, the computational storage system 130 updates the rows at 310, and then computes the embedding vectors at 315. At 317, the parameters are also updated, and at 318, the current batch of training data is preprocessed and sent to the GPU. 318 can be referred to as the "data loading" step. Then, inference of the model (forward propagation) is performed at 319. Figure 3 A second processing flow 320 is also shown, in which inference embeddings are performed at 325 to compute vectors of incomplete embeddings, which are updated at 330. These rows are then updated at 335. Figure 3 As can be seen, the second processing flow 320 can be completed faster than the first processing flow 300. For example, the second processing flow 320 can be completed approximately 5ms faster than the first processing flow 300.
[0065] Figure 4 This is a flowchart of a first method in some embodiments. The first method may include steps 405, 410, and 415. The method includes: at 405, storing an embedding table by a first computing storage device in one or more computing storage devices of a computing storage system; at 410, receiving an index vector including a first index and a second index by the first computing storage device; and at 415, computing an embedding vector by the first computing storage device based on a first row of the embedding table corresponding to the first index and a second row of the embedding table corresponding to the second index. The computing storage system may be connected to a graphics processing unit cluster via a cache-coherent system interconnect, and the graphics processing unit cluster may include one or more graphics processing units.
[0066] Figure 5This is a flowchart of a second method in some embodiments. The second method may include steps 505, 510, 515, and 520. The method includes: at 505, storing an embedding table for neural network embedding operations in a backup storage of the computing storage device; at 510, receiving a first index vector including a first index and a second index by the computing storage device; at 515, retrieving from the backup storage to a first cache of the computing storage device: a first row of the embedding table corresponding to the first index, and a second row of the embedding table corresponding to the second index; and at 520, computing the vector of the first embedding based on the first row and the second row.
[0067] As used herein, “part” means “at least some” of the thing, and can also mean less than or all of the thing. Similarly, “part” of the thing includes, as a special case, the whole thing, i.e., an example where the whole thing is a part of the thing. As used herein, when a second quantity is “within Y” of a first quantity X, it means that the second quantity is at least XY and at most X+Y. As used herein, when a second quantity is “within Y%” of a first quantity, it means that the second quantity is at least (1-Y / 100) times the first quantity and at most (1+Y / 100) times the first quantity. As used herein, the term “or” should be interpreted as “and / or”, such that, for example, “A or B” means any one of “A” or “B” or “A and B”.
[0068] The background information provided in the Background section of this disclosure is included only to set the context, and the content of that section is not considered prior art. Any component or combination of components described (e.g., in any system diagram included herein) may be used to perform one or more operations of any flowchart included herein. Furthermore, (i) these operations are example operations and may involve various additional steps not explicitly covered, and (ii) the temporal order of these operations may vary.
[0069] One or more processing circuits may perform the methods described herein, and, for example, the controller 180 of any computing storage device 170 may be (or include) processing circuits. The terms “processing circuit” and “means for processing” are used herein to mean any combination of hardware, firmware, and software for processing data or digital signals. Processing circuit hardware may include, for example, application-specific integrated circuits (ASICs), general-purpose or special-purpose central processing units (CPUs), digital signal processors (DSPs), graphics processing units (GPUs), and programmable logic devices such as field-programmable gate arrays (FPGAs). As used herein, in processing circuitry, each function is either performed by hardware configured (i.e., hardwired) to perform that function, or by more general-purpose hardware (such as a CPU) configured to execute instructions stored in a non-transitory storage medium. Processing circuitry may be fabricated on a single printed circuit board (PCB) or distributed across several interconnected PCBs. Processing circuitry may include other processing circuitry; for example, processing circuitry may include two processing circuits, an FPGA and a CPU, interconnected on a PCB.
[0070] As used herein, when a method (e.g., adjustment) or a first quantity (e.g., a first variable) is referred to as “based on” a second quantity (e.g., a second variable), this means that the second quantity is an input to the method or affects the first quantity. For example, the second quantity may be an input to a function that computes the first quantity (e.g., a unique input, or one of several inputs), or the first quantity may be equal to the second quantity, or the first quantity may be the same as the second quantity (e.g., stored in one or more locations in memory that are the same as the second quantity).
[0071] It should be understood that although the terms "first," "second," "third," etc., may be used herein to describe various elements, components, regions, layers, and / or portions, these elements, components, regions, layers, and / or portions should not be limited by these terms. These terms are used only to distinguish one element, component, region, layer, or portion from another element, component, region, layer, or portion. Therefore, without departing from the spirit and scope of the concept of the invention, the first element, component, region, layer, or portion discussed herein may be referred to as the second element, component, region, layer, or portion.
[0072] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the scope of the invention. As used herein, the terms “substantially,” “approximately,” and similar terms are used as approximate terms rather than terms of degree and are intended to account for the inherent biases of measurements or calculations that will be recognized by one of ordinary skill in the art.
[0073] As used herein, the term "major component" refers to a component present in a composition, polymer, or product in an amount greater than that of any other single component in the composition or product. Conversely, the term "primary component" refers to a component comprising at least 50% or more by weight of a composition, polymer, or product. As used herein, the term "major component," when applied to multiple items, means at least half of those items. As used herein, any structure or layer described as "made of" or "composed of" a substance should be understood to (i) in some embodiments, contain that substance as a major component, or (ii) in some embodiments, contain that substance as a principal component.
[0074] As used herein, the singular forms “a” and “an” are also intended to include the plural forms unless the context clearly indicates otherwise. It will also be understood that the terms “comprising” and / or “including”, when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or combinations thereof. As used herein, the term “and / or” includes any and all combinations of one or more of the associated listed items. When preceding a list of elements, expressions such as “at least one” modify the entire list of elements, not individual elements of the list. Furthermore, when describing embodiments of the inventive concepts, the use of “may” means “one or more embodiments of this disclosure.” Additionally, the term “exemplary” is intended to refer to an example or illustration. As used herein, the terms “use,” “with,” and “being used” may be considered synonymous with the terms “utilize,” “adopt,” and “be exploited,” respectively.
[0075] It should be understood that when a component or layer is referred to as "on another component or layer," "connected to," "coupled to," or "adjacent to" another component or layer, it can be directly on, directly connected to, coupled to, or adjacent to the other component or layer, or one or more intermediate components or layers may exist. Conversely, when a component or layer is referred to as "directly on another component or layer," "directly connected to," "directly coupled to," or "immediately adjacent to" another component or layer, no intermediate components or layers exist.
[0076] Any numerical range described herein is intended to include all subranges containing the same numerical precision. For example, a range “1.0 to 10.0” or “between 1.0 and 10.0” is intended to include all subranges between the minimum value of 1.0 and the maximum value of 10.0, i.e., a minimum value equal to or greater than 1.0 and a maximum value equal to or less than 10.0, such as, for example, 2.4 to 7.6. Similarly, a range described as “within 35% of 10” is intended to include all subranges between the minimum value of 6.5 (i.e., (1-35 / 100) multiplied by 10) and the maximum value of 13.5 (i.e., (1+35 / 100) multiplied by 10), i.e., a minimum value equal to or greater than 6.5 and a maximum value equal to or less than 13.5, such as, for example, 7.4 to 10.6. Any maximum numerical limit listed herein is intended to include all lower numerical limits contained therein, and any minimum numerical limit listed in this specification is intended to include all higher numerical limits contained therein.
[0077] Although exemplary embodiments of systems and methods for training neural networks have been specifically described and illustrated herein, many modifications and variations will be apparent to those skilled in the art. Therefore, it should be understood that systems and methods for training neural networks constructed according to the principles of this disclosure may be implemented in ways different from those specifically described herein. The invention is also defined in the following claims and their equivalents.
Claims
1. A neural network training system, comprising: A graphics processing unit cluster, comprising multiple graphics processing units; and The computing storage cluster includes multiple computing storage devices and is interconnected with the graphics processing unit cluster via a cache coherence system. in: The plurality of computing storage devices includes a first computing storage device, which is configured to: Store embedded tables; Receives an index vector including a first index and a second index; and The embedded vector is calculated based on the following: The first row of the embedded table corresponds to the first index, and The second row of the embedded table corresponds to the second index. The first computing storage device further includes a memory. The first graphics processing unit among the plurality of graphics processing units is further configured as follows: Calculate the gradient of the cost function relative to the first row of the embedding table; and The gradient is stored in a portion of the memory; and The first computing storage device is further configured to update the elements of the first row of the embedded table based on the gradient.
2. The neural network training system according to claim 1, wherein the plurality of computing storage devices further includes a second computing storage device, and The computing storage cluster also includes a memory switch, which is connected to: The first computing storage device, The second computing storage device, and An interface controller is connected to the cache coherence system interconnect.
3. The neural network training system of claim 2, wherein the first computing storage device is further configured to expose the portion of the memory via the memory switch and the interface controller.
4. The neural network training system of claim 3, wherein the first computational storage device is further configured to store the embedded vector in the portion of the memory.
5. The neural network training system of claim 4, wherein the plurality of graphics processing units includes the first graphics processing unit, the first graphics processing unit being configured to read the embedded vector from the portion of the memory.
6. The neural network training system of claim 5, wherein the first graphics processing unit is further configured to store the embedded vector in a cache of the first graphics processing unit.
7. The neural network training system of claim 1, wherein the graphics processing unit cluster is configured to operate as a first multilayer perceptron and a second multilayer perceptron.
8. The neural network training system according to claim 1, wherein the cache coherent system interconnect is a fast computation link (CXL) system interconnect.
9. The neural network training system of claim 1, wherein the graphics processing unit cluster includes a consistency agent for maintaining cache consistency among the following: The cache of the first graphics processing unit among the plurality of graphics processing units, and The cache of the second graphics processing unit among the plurality of graphics processing units.
10. A neural network training method, comprising: The embedded table is stored in the first compute storage device of the compute storage cluster; The first computing storage device receives an index vector including a first index and a second index; as well as The vector embedded by the first computing storage device is calculated based on the following: The first row of the embedded table corresponds to the first index, and The second row of the embedded table corresponds to the second index. in: The computing and storage cluster is interconnected with the graphics processing unit cluster via a cache coherence system, and The graphics processing unit cluster includes at least one graphics processing unit. The neural network training method further includes: The first graphics processing unit of the graphics processing unit cluster calculates the gradient of the cost function relative to the first row of the embedding table; The gradient is stored in a portion of the memory of the first computing storage device by the first graphics processing unit; and The first computing storage device updates the elements of the first row of the embedded table based on the gradient.
11. The neural network training method according to claim 10, wherein the computing storage cluster includes a second computing storage device and a memory switch. The memory switch is connected to: The first computing storage device, The second computing storage device, and An interface controller is connected to the cache coherence system interconnect.
12. The neural network training method according to claim 11, further comprising the first computing storage device displaying the portion of the memory through the memory switch and the interface controller.
13. The neural network training method of claim 12, further comprising storing the embedded vector in the portion of the memory by the first computing storage device.
14. The neural network training method of claim 13, wherein the at least one graphics processing unit includes the first graphics processing unit, the first graphics processing unit being configured to read the embedded vector from the portion of the memory.
15. The neural network training method of claim 14, wherein the first graphics processing unit is configured to store the embedded vector in a cache of the first graphics processing unit.
16. A neural network training system, comprising: A graphics processing unit cluster, including at least one graphics processing unit; as well as The computing storage cluster includes at least one computing storage device and is interconnected to the graphics processing unit cluster via a cache coherence system. The at least one computing storage device includes The first computing storage device includes permanent storage and means for processing. The means for processing is configured as follows: Store embedded tables; Receives an index vector including a first index and a second index; and The embedded vector is calculated based on the following: The first row of the embedded table corresponds to the first index, and The second row of the embedded table corresponds to the second index. The first computing storage device further includes a memory. The first graphics processing unit in the at least one graphics processing unit is further configured to: Calculate the gradient of the cost function relative to the first row of the embedding table; and The gradient is stored in a portion of the memory; and The processing device is further configured to update the elements of the first row of the embedding table based on the gradient.
Citation Information
Patent Citations
Neural network training with acceleration
CN116108881A
Sparse Neural Network Modeling Infrastructure
US20190073580A1
Disaggregated memory server
US20210311646A1
