Matrix processing device
By introducing request recognition, data extraction and concatenation units into the system, and using multi-processors to process sparse elements in parallel, the problem of insufficient computing bandwidth and high processing costs when converting sparse matrices to dense matrices is solved, and the efficiency of matrix processing is improved.
Patent Information
- Application Number
- CN202110566425.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2016-02-05
- Filing Date
- 2017-01-13
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2037-01-13
AI Technical Summary
When the existing technology processes large-scale matrices, there are problems of insufficient computing bandwidth and high processing costs in the process of converting sparse matrices into dense matrices, especially when the central processing unit (CPU) needs to access sparse elements distributed in different data stores. Resulting in reduced performance.
A system is designed, including a request recognition unit, a data extraction unit and a concatenation unit. It coordinates multiple processors to access and extract sparse elements in parallel through a node network, generates and concatenates dense matrices, and uses the sparse-dense transformation unit to be independent of the CPU. operations, increasing computing bandwidth and reducing processing costs.
By transferring the sparse to dense data loading task to a dedicated matrix processor, the computing bandwidth of the central processing unit is increased, the system processing cost is reduced, and the data loading delay is reduced, achieving efficient parallel processing of sparse elements. .
Smart Images

Figure CN113254871B_ABST
Abstract
Description
[0001] Description of the case
[0002] This application is a divisional application of Chinese invention patent application No. 201710025656.2, filed on January 13, 2017. Technical Field
[0003] The present disclosure relates to a matrix processing device. Background Art
[0004] This specification generally relates to using circuits to process matrices. Summary of the invention
[0005] According to an innovative aspect of the subject matter described in this specification, a matrix processor can be used to perform sparse to dense or dense to sparse matrix transformation. Generally, a high-performance computing system can use a linear algebra routine to process matrices. In some instances, the size of a matrix may be too large to be stored in a data storage, and different parts of the matrix can be sparsely stored in different locations of a distributed data storage system. In order to load the matrix, the central processing unit of the computing system can instruct multiple matrix processors to access different parts of the matrix. Each matrix processor can gather sparse data to perform parallel calculations on the sparse data and generate a dense matrix, which can be connected in series for further processing by the central processing unit.
[0006] In general, an innovative aspect of the subject matter described in this specification can be alternatively selected in a system for transforming sparse elements into a dense matrix. The system includes a request identification unit, the request identification unit being configured to: receive a request for a specific sparse element stored in one or more data shards through a node network; determine that the system is assigned to handle a subset of the specific sparse elements; and in response to determining that the system is assigned to handle the subset of the specific sparse elements, generate an indication to access the subset of the specific sparse elements. The system includes a data extraction unit, which includes a plurality of processors, and the data extraction unit is configured to: receive the indication of accessing the subset of specific sparse elements from the request identification unit; determine a processor designation for extracting the subset of the specific sparse elements based on the identification of the subset of the specific sparse elements; extract a first sparse element from the subset of the specific sparse elements by a first processor of the plurality of processors based on the designation; and extract a second sparse element from the subset of the specific sparse elements by a second processor of the plurality of processors based on the designation. The system includes a concatenation unit, and the concatenation unit is configured to: generate an output dense matrix based on the transformation applied to at least the first sparse element and the second sparse element.
[0007] These or other embodiments can optionally include one or more of the following features. For example, the system can include a sparse reduction unit configured to receive a first matrix including the first sparse elements from the first processor, the first matrix having a first dimension; and generate a second matrix including the first sparse elements, the second matrix having a second dimension less than the first dimension. The concatenation unit can be further configured to receive the second matrix. To generate the output dense matrix, the output dense matrix can be generated based on the second matrix.
[0008] The concatenation unit may be configured to receive the first sparse element at a first time point; receive the second sparse element at a different second time point; and determine an order of the first sparse element and the second sparse element for the output dense matrix. To generate the output dense matrix, the output dense matrix may be generated based on the order of the first sparse element and the second sparse element.
[0009] The system may include a compression / decompression unit configured to compress the output dense matrix to generate a compressed output dense matrix, and provide the compressed output dense matrix to the node network. The concatenation unit may be further configured to receive a first dense matrix representing a dense matrix sent through the node network. To generate the output dense matrix, the output dense matrix may be generated based on the first dense matrix, the first sparse element, and the second sparse element. The compression / decompression unit may be configured to decompress the compressed first dense matrix to generate the first dense matrix.
[0010] To determine that the system is assigned to handle the subset of the specific sparse elements, the data extraction unit may determine that the system is assigned to handle the subset of the specific sparse elements based on a lookup table. One or more of the specific sparse elements may be a multidimensional matrix, and the output dense matrix may be a vector.
[0011] The subject matter described in this specification can be implemented in specific embodiments to achieve one or more of the following advantages. Transferring the sparse to dense data loading task from the central processing unit to a dedicated matrix processor increases the computational bandwidth of the central processing unit and reduces the processing cost of the system. The matrix processor can be arranged near the memory storing the data and can reduce the latency of loading the data. By using a dedicated matrix processor, it is possible to avoid using a processor dedicated to dense linear algebra to extract sparse data. By having multiple units per controller channel, multiple concurrent transactions served at one time can be parallelized, and transactions can be processed immediately without waiting for previous transactions to complete.
[0012] Other embodiments of the above and other aspects include corresponding systems, devices, and computer programs, which are configured to perform the actions of the method and are encoded on a computer storage device. A system of one or more computers can be configured so as to enable the system to perform the actions in operation by software, firmware, hardware, or a combination thereof installed on the system. One or more computer programs can be configured so as to enable the device to perform the actions when the instructions are executed by a data processing device.
[0013] The details of one or more implementations of the subject matter described in this specification are set forth in the accompanying drawings and the description below. Other potential features, aspects, and advantages of the subject matter will become apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 is a block diagram of an example computing system.
[0015] FIG. 2A to FIG. 2D An example sparse-dense transform unit is illustrated.
[0016] FIG. 3A to FIG. 3B An example sparse element access unit is illustrated.
[0017] Figure 4 is a flow chart illustrating an example of a process for generating a dense matrix.
[0018] Figure 5 is a flow chart illustrating an example of a process for transforming sparse elements into a dense matrix.
[0019] Like reference numbers and designations in the various drawings indicate like elements. DETAILED DESCRIPTION
[0020] In general, data can be represented in the form of a matrix and a computing system can use linear algebra algorithms to manipulate the data. A matrix can be a one-dimensional vector or a multidimensional matrix. A matrix can be represented by a data structure, such as a database table or a variable. However, when the size of a matrix is too large, it may be impossible to store the entire matrix in a data storage. A dense matrix can be transformed into a plurality of sparse elements, wherein each sparse element can be stored in different data storages. The sparse elements of a dense matrix can be a matrix in which only a small submatrix (e.g., a single value element, row, column, or submatrix) of the matrix has a non-zero value. When a computing system needs to access the dense matrix, a central processing unit (CPU) can start a thread, and the thread reaches each of the sparse elements in the data storage to extract the storage and apply a sparse to dense transformation to restore the dense matrix. However, the amount of time used to extract all dense elements may be very long, and the computing bandwidth of the CPU may therefore not be fully utilized. In some cases, a computing system may need to access the sparse elements of several dense matrices to form a new dense matrix, wherein these dense matrices may not have equal dimensions. The CPU idle time associated with each thread that reaches the data store to extract the sparse elements of different dense matrices may encounter different waiting times, and may further affect the performance of the computing device in an undesirable manner. In some cases, a computing system may need to access the sparse elements of several dense matrices to form a new dense matrix, wherein these sparse elements may not have equal dimensions. The CPU idle time associated with each thread that reaches the data store to extract the sparse elements of different dense matrices may encounter different waiting times, and may further affect the performance of the computing device in an undesirable manner. A hardware sparse-dense transformation unit separated from the CPU can improve the computing bandwidth of the processor by collecting sparse elements independently of the CPU operation and transforming the sparse elements into dense matrices.
[0021] Figure 1A block diagram of an example computing system 100 for transforming sparse elements from one or more dense matrices to generate a dense matrix is shown. The computing system 100 includes a processing unit 102, a sparse-dense transform unit 104, and data slices 106a-106k, where k is an integer greater than 1. In general, the processing unit 102 processes instructions for accessing a target dense matrix and sends instructions 110 to the sparse-dense transform unit 104 to generate a target dense matrix. The sparse-dense transform unit 104 accesses corresponding sparse elements 108a-108n from one or more of the data slices 106a-106k, where n is an integer greater than 1. The sparse-dense transform unit 104 uses the corresponding sparse elements 108a-108n to generate a target dense matrix 112, and sends the target dense matrix 112 to the processing unit 102 for further processing. For example, the sparse elements 108a-108n may be two-dimensional matrices of different sizes, and the sparse-dense transformation unit 104 may generate the dense matrix 112 by transforming each of the sparse elements 108a-108n into a vector, and concatenating the n vectors into a single vector.
[0022] In some embodiments, the processing unit 102 may process the instruction for updating the target dense matrix and send the updated dense matrix to the sparse-dense transformation unit 104. The sparse-dense transformation unit 104 may transform the updated dense matrix into corresponding sparse elements and update one or more dense elements stored in the data slices 106a-106k accordingly.
[0023] The processing unit 102 is configured to process instructions for execution within the computing system 100. The processing unit 102 may include one or more processors. In some embodiments, the processing unit 102 is configured to process a target dense matrix 112 generated by the sparse-dense transformation unit 104. In some other embodiments, the processing unit 102 may be configured to request the sparse-dense transformation unit 104 to generate the target dense matrix 112, and another processing unit may be configured to process the target dense matrix 112. The data slices 106a-106k store data including sparse elements 108a-108n. In some embodiments, the data slices 106a-106k may be one or more volatile memory units. In some other embodiments, the data slices 106a-106k may be one or more non-volatile memory units. The data slices 106a-106k may also be another form of computer-readable medium, such as a device in a storage area network or other configuration. The data slices 106a-106k may be coupled to the sparse-dense transformation unit 104 using electrical connections, optical connections, or wireless connections. In some embodiments, the data slices 106a-106k may be part of the sparse-dense transformation unit 104.
[0024] The sparse-dense transformation unit 104 is configured to determine a dense matrix based on the sparse elements. In some embodiments, the sparse-dense transformation unit 104 may be configured to determine the location of the sparse elements based on the dense matrix. In some embodiments, the sparse-dense transformation unit 104 may include a plurality of interconnected sparse element access units, as described below. Figure 2A Let's describe it in more detail.
[0025] Figure 2A An example sparse-dense transform unit 200 is shown. The sparse-dense transform unit 200 may correspond to the sparse-dense transform unit 104. The sparse-dense transform unit 200 includes M by N sparse element access units X arranged physically or logically into M rows and N columns. 1,1 To X M,N , where M and N are integers equal to or greater than 1. In some embodiments, the sparse-dense transformation unit 200 may include additional circuits configured to process data. In general, the sparse-dense transformation unit 200 is configured to: receive a request for a dense matrix, and based on the dense element access unit X 1,1 To X M,N The corresponding sparse elements accessed determine the dense matrix. In general, each sparse element access unit is configured to access a specified set of sparse elements, and is referred to below. Figure 3A-3B In some implementations, the sparse element access unit may be a single instruction multiple data (SIMD) processing device.
[0026] In some embodiments, the sparse element access unit X 1,1 To X M,N It can be arranged physically or logically in a two-dimensional mesh configuration. For example, a sparse element access unit X 1,1 Directly coupled to the sparse element access unit X 1,2 and X 2,1 As another example, a sparse element access unit X 2,2 Directly coupled to the sparse element access unit X 2,1 , X 3,1 , X 2,3 , and X 1,2 The coupling between two sparse element access units may be an electrical connection, an optical connection, a wired connection, or any other suitable connection.
[0027] In some other embodiments, the sparse element access unit X 1,1 To X M,N It can be arranged physically or logically as a two-dimensional torus configuration. 1,1 Directly coupled to the sparse element access unit X 1,2 , X 2,1 , X 1,N and X M,1 As another example, a sparse element access unit X M,N Directly coupled to the sparse element access unit X M,N-1 , X M-1,N , X M,1 , and X 1,N .
[0028] In some embodiments, the sparse-dense conversion unit 200 may be configured to partition the sparse elements converted from the dense matrix according to a set of predetermined conditions. 1,1 To X M,NEach row in can be divided to access sparse elements transformed from a specific dense matrix. For example, the sparse-dense transformation unit 200 can be configured to access sparse elements transformed by dense matrices corresponding to 1000 different database tables of the computer model. One or more of the database tables can have different sizes. The first row 202 of the sparse element access unit can be configured to access sparse elements transformed from database table No.1 to database table No.100, the second row 204 of the sparse element access unit can be configured to access sparse elements transformed from database table No.101 to database table No.300, and the Mth row 206 of the sparse element access unit can be configured to access sparse elements transformed from database table No.751 to database table No.1000. In some embodiments, before the processor accesses the sparse elements, the sparse-dense transformation unit 200 can be used to configure the division through hardware instructions.
[0029] Sparse element access unit X 1,1 To X M,N Each column in can be divided to access a subset of sparse elements transformed from a particular dense matrix. For example, the dense matrix corresponding to database table No. 1 can be transformed into 1000 sparse elements, where the 1000 sparse elements can be accessed by the first row 202 as described above. Sparse element access unit X 1,1 can be configured to access sparse elements No. 1 to No. 200 of database table No. 1, and the sparse element access unit X 1,2 It can be configured to access sparse elements No. 201 to No. 500 of database table No. 1. As another example, the dense matrix corresponding to database table No. 2 can be transformed into 500 sparse elements, wherein the 500 sparse elements can be accessed by the first row 202 as described above. Sparse element access unit X 1,1 can be configured to access sparse elements No. 1 to No. 50 of database table No. 2, and the sparse element access unit X 1,2 It can be configured to access sparse elements No. 51 to No. 200 of database table No. 2. As another example, the dense matrix corresponding to database table No. 1000 can be transformed into 10,000 sparse elements, wherein the 10,000 sparse elements can be accessed by the Mth row 206 as described above. Sparse element access unit X M,1 It can be configured to access sparse elements No. 1 to No. 2000 of database table No. 1000, and the sparse element access unit X M,N It can be configured to access sparse elements No. 9000 to No. 10000 of database table No. 1000.
[0030] Figure 2B An example of how the sparse-dense transformation unit 200 can use a two-dimensional mesh network of sparse element access units to request sparse elements is shown. As an example, the processing unit can execute instructions to request a dense one-dimensional vector from the sparse-dense transformation unit 200, which is generated using sparse elements No. 1 to No. 50 of database table No. 1, sparse elements No. 100 to No. 200 of database table No. 2, and sparse elements No. 9050 to No. 9060 of database table No. 1000. After the sparse-dense transformation unit 200 receives the request from the processing unit, the sparse-dense transformation unit 200 can instruct the sparse element access unit X to request a dense one-dimensional vector. 1,1 Broadcasting a request for the sparse element to other sparse element access units in the mesh network. Sparse element access unit X 1,1 You can access the sparse element in unit X 1,2 Broadcast request 222 and send sparse element access unit X 2,1 Broadcast request 224. After receiving request 222, sparse element access unit X 1,2 You can access the sparse element in unit X 1,3 Broadcast request 226. In some embodiments, the sparse element access unit may be configured to broadcast a request to another sparse element access unit based on a routing scheme. 2,1 may not be configured to access sparse elements in unit X 2,2 Broadcast request, because sparse element access unit X 2,2 is configured to access sparse elements from unit X 2,1 Receive the broadcast. The routing scheme may be static or dynamically generated. For example, the routing scheme may be a lookup table. In some embodiments, the sparse element access unit may be configured to broadcast request 224 to another sparse element access unit based on request 224. For example, request 224 may include an identification of the requested sparse element (e.g., database table No. 1, sparse elements No. 1 to No. 50), and sparse element access unit X may broadcast request 224 to another sparse element access unit based on request 224. 1,2 Based on this identification, it can be determined whether to access unit X to the sparse element 2,2 and / or sparse element access unit X 1,3 Broadcast request 224. The broadcast process is propagated through the mesh network, where the sparse element access unit X M,N Accessing cell X from a sparse element M,N-1 Receive request 230.
[0031] Figure 2CAn example of how the sparse-dense transformation unit 200 can use a two-dimensional mesh network of sparse element access units to generate a requested dense matrix is shown. In some embodiments, after the sparse element access unit receives the broadcasted request, the sparse element access unit is configured to determine whether it is configured to access any of the requested sparse elements. For example, the sparse element access unit X 1,1 It may be determined that it is configured to access sparse elements No. 1 to No. 50 of database table No. 1, but it is not configured to access sparse elements No. 100 to No. 200 of database table No. 2 or sparse elements No. 9050 to No. 9060 of database table No. 1000. In response to determining that it is configured to access sparse elements No. 1 to No. 50 of database table No. 1, sparse element access unit X 1,1 Sparse elements No. 1 to No. 50 of database table No. 1 may be extracted from the data slice storing these sparse elements, and a dense matrix 242 may be generated based on these sparse elements.
[0032] As another example, a sparse element access unit X 2,1 It may be determined that it is not configured to access any of the sparse elements No. 1 to No. 50 of database table No. 1, the sparse elements No. 100 to No. 200 of database table No. 2, and the sparse elements No. 9050 to No. 9060 of database table No. 1000. In response to determining that it is not configured to access any of the requested sparse elements, the sparse element access unit X 2,1 No further action may be performed.
[0033] As another example, a sparse element access unit X 1,2 It may be determined that it is configured to access sparse elements No. 100 to No. 200 of database table No. 2, but it is not configured to access sparse elements No. 1 to No. 50 of database table No. 1 or sparse elements No. 9050 to No. 9060 of database table No. 1000. In response to determining that it is configured to access sparse elements No. 100 to No. 200 of database table No. 2, sparse element access unit X 1,2 The sparse elements may be extracted from the data slice storing the sparse elements, and a dense matrix 244 may be generated based on the sparse elements. In some embodiments, after the sparse element access unit generates the dense matrix, the sparse element access unit may be configured to forward the dense matrix to the sender of the broadcasted request. Here, the sparse element access unit X 1,2 Forward the dense matrix 244 to the sparse element access unit X 1,1 .
[0034] As another example, a sparse element access unit X M,N It may be determined that it is configured to access sparse elements No. 9050 to No. 9060 of database table No. 1000, but it is not configured to access sparse elements No. 1 to No. 50 of database table No. 1 or sparse elements No. 100 to No. 200 of database table No. 2. In response to determining that it is configured to access sparse elements No. 9050 to No. 9060 of database table No. 1000, sparse element access unit X M,N The sparse elements may be extracted from the data slice storing the sparse elements, and a dense matrix 246 may be generated based on the sparse elements. In some embodiments, after the sparse element access unit generates the dense matrix, the sparse element access unit may be configured to forward the dense matrix to the sender of the broadcasted request. Here, the sparse element access unit X M,N Forward the dense matrix 246 to the sparse element access unit X M,N-1 In the next cycle, the sparse element access unit X M,N-1 is configured to forward the dense matrix 246 to the sparse element access unit X M,N-1 The process continues until the sparse element access unit X 2,1 The dense matrix 246 has been forwarded to the sparse element access unit X 1,1 until.
[0035] In some embodiments, the sparse-dense transformation unit 200 is configured to transform the dense matrix generated by the sparse element access unit and generate a dense matrix for the processor unit. Here, the sparse-dense transformation unit 200 transforms the dense matrices 242, 244, and 246 into dense matrices for the processor unit. For example, the dense matrix 242 can have a dimension of 100 times 10, the dense matrix 244 can have a dimension of 20 times 100, and the dense matrix 246 can have a dimension of 3 times 3. The sparse-dense transformation unit 200 can transform the dense matrices 242, 244, and 246 into vectors with a dimension of 1 times 3009. Advantageously, the partitioning of rows according to the dense matrix (e.g., a database table) allows the sparse-dense transformation unit 200 to obtain all the requested sparse elements after the generated dense matrix has been propagated from column N to column 1. Partitioning the columns reduces bandwidth bottlenecks caused by accessing too many sparse elements using only one of the sparse element access units.
[0036] Figure 2DAn example of how the sparse-dense transformation unit 200 can use a two-dimensional mesh network of sparse element access units to update sparse elements based on a dense matrix is shown. As an example, the processing unit can execute a request to the sparse-dense transformation unit 200 to update the stored sparse elements with a dense one-dimensional vector, which is generated using sparse elements No. 1 to No. 50 of database table No. 1 and sparse elements No. 9050 to No. 9060 of database table No. 1000. After the sparse-dense transformation unit 200 receives the request from the processing unit, the sparse-dense transformation unit 200 can instruct the sparse element access unit X to update the stored sparse elements. 1,1 Broadcasting a sparse element update request to other sparse element access units in the mesh network, wherein the sparse element update request may include a dense one-dimensional vector provided by the processing unit. In some embodiments, the sparse element access unit X 1,1 In response to determining that it is assigned to access the sparse elements included in the dense one-dimensional vector, the sparse element access unit X 1,1 The sparse elements stored in the data slice can be updated. Here, the sparse element access unit X 1,1 Determine that it is assigned to access sparse elements No. 1 to No. 50 of database table No. 1, and sparse element access unit X 1,1 Instructions are executed to update the sparse elements in the data slice.
[0037] Sparse element access unit X 1,1 You can access the sparse element in unit X 1,2 Broadcast sparse element update request 252 and send it to sparse element access unit X 2,1 Broadcast sparse element update request 254. After receiving sparse element update request 252, sparse element access unit X 1,2 It can be determined that it is not assigned to access the sparse elements included in the dense one-dimensional vector. Sparse element access unit X 1,2 Access cell X to sparse element 1,3 Broadcast request 256. The broadcast process is propagated through the mesh network, where the sparse element access unit X M,N Accessing cell X from a sparse element M,N-1 Receive request 260. Here, the sparse element access unit X M,N It is determined that it is assigned to access sparse elements No. 9050 to No. 9060 of database table No. 1000, and the sparse element access unit X M,N Instructions are executed to update these sparse elements in the data slice.
[0038] Figure 3AAn example sparse element access unit 300 is shown. The sparse element access unit 300 may be a sparse element access unit X 1,1 To X M,N In general, the sparse element access unit 300 is configured to receive a request 342 from the node network 320 to extract sparse elements stored in one or more data slices and transform the extracted sparse elements into a dense matrix. In some embodiments, the processing unit 316 sends a request for a dense matrix generated using the sparse elements to the sparse element access unit in the node network 320. The sparse element access unit may broadcast the request 342 to the sparse element access unit 300. The routing of the broadcasted request 342 may be similar to Figure 2B . The sparse element access unit 300 includes a request identification unit 302, a data extraction unit 304, a sparse reduction unit 306, a concatenation unit 308, a compression / decompression unit 310, and a splitting unit 312. The node network 320 can be a two-dimensional mesh network. The processing unit 316 can be similar to the processing unit 102.
[0039] In general, the request identification unit 302 is configured to receive a request 342 to extract a sparse element stored in one or more data slices 330, and determine whether the sparse element access unit 300 is assigned to access the sparse element indicated by the request 342. In some embodiments, the request identification unit 302 can determine whether the sparse element access unit 300 is assigned to access the sparse element indicated by the request 342 by using a lookup table. For example, if the identification of a specific requested sparse element (e.g., No. 1 of database table No. 1) is included in the lookup table, the request identification unit 302 can send a signal 344 to the data extraction unit 304 to extract the specific requested sparse element. If the identification of the specific requested sparse element (e.g., No. 1 of database table No. 1) is not included in the lookup table, the request identification unit 302 can discard the received request. In some embodiments, the request identification unit 302 can be configured to broadcast the received request to another sparse element access unit on the node network 320.
[0040] The data extraction unit 304 is configured to extract one or more requested sparse elements from the data slice 330 in response to receiving the signal 344. In some embodiments, the data extraction unit 304 includes one or more processors 322a-322k, where k is an integer. The processors 322a-322k can be vector processing units (VPUs), array processing units, or any suitable processing units. In some embodiments, the processors 322a-322k are arranged near the data slice 330 to reduce the latency between the processors 322a-322k and the data slice 330. Based on the number of requested sparse elements that the sparse element access unit 300 is assigned to extract, the data extraction unit 304 can be configured to generate one or more requests to be distributed among the processors 322a-322k. In some embodiments, each of the processors 322a-322k can be assigned to a particular sparse element based on the identification of the sparse element, and the data extraction unit 304 can be configured to generate one or more requests for the processors 322a-322k based on the identification of the sparse element. In some embodiments, the data extraction unit 304 can determine the processor assignment by using a lookup table. In some embodiments, the data extraction unit 304 can generate multiple batches for the processors 322a-322k, where each batch is a request for a subset of the requested sparse elements. The processors 322a-322k are configured to independently extract the assigned sparse elements from the data slice 330 and forward the extracted sparse elements 346 to the sparse reduction unit 306.
[0041] The sparse reduction unit 306 is configured to reduce the dimensionality of the extracted sparse elements 346. For example, each of the processors 322a-322k can generate sparse elements having a dimension of 100 times 1. The sparse reduction unit 306 can receive the extracted sparse elements 346 having a dimension of 100 times k, and generate sparse reduced elements 348 by reducing the dimensionality of the extracted sparse elements 346 to 100 times 1 by using a logical operation, a mathematical operation, or a combination of both. The sparse reduction unit 306 is configured to output the sparse reduced elements 348 to the concatenation unit 308.
[0042] The concatenation unit 308 is configured to rearrange and concatenate the sparsely reduced elements 348 to generate concatenated elements 350. For example, the sparse element access unit X 1,1The processor 322a may be configured to access the sparse elements No. 1 to No. 200 of the database table No. 1. The processor 322a may return the extracted sparse element No. 10 to the sparse reduction unit 306 faster than the processor 322b configured to return the extracted sparse element No. 5. The concatenation unit 308 is configured to rearrange the sparse element No. 5 received later so that it is sorted before the sparse element No. 10 received earlier, and concatenate the sparse elements No. 1 to No. 200 into the concatenated element 350.
[0043] The compression / decompression unit 310 is configured to compress the concatenated elements 350 to generate a dense matrix 352 for the node network 320. For example, the compression / decompression unit 310 can be configured to compress the zero values in the concatenated elements 350 to improve the bandwidth of the node network 320. In some embodiments, the compression / decompression unit 310 can decompress the received dense matrix. For example, the sparse element access unit 300 can receive a dense matrix from a neighboring sparse element access unit via the node network 320. The sparse element access unit 300 can decompress the received dense matrix, and can concatenate the decompressed dense matrix with the concatenated elements 350 to form an updated concatenated element, which can be compressed and then output to the node network 320.
[0044] Figure 3B An example of how the sparse element access unit 300 can update the sparse elements based on the dense matrix received from the node network 320 is shown. As an example, the processing unit can execute an instruction requesting the sparse-dense transformation unit to update the stored sparse elements using a dense one-dimensional vector, which is generated using sparse elements No. 1 to No. 50 of database table No. 1 and sparse elements No. 9050 to No. 9060 of database table No. 1000. After the sparse-dense transformation unit receives the request from the processing unit, the sparse-dense transformation unit can send a request 362 to instruct the sparse element access unit 300 to determine whether it is assigned to access the sparse elements included in the dense one-dimensional vector. The request identification unit 302 is configured to determine whether the sparse element access unit 300 is assigned to access the sparse elements included in the dense one-dimensional vector. In response to determining that the sparse element access unit 300 is assigned to access the sparse elements included in the dense one-dimensional vector, the request identification unit 302 may send an indication 364 to the splitting unit 312 to update the sparse elements stored in the data slice.
[0045] The split unit 312 is configured to transform the received dense matrix into sparse elements, which can be updated in the data slice 330 by the data extraction unit 304. For example, the split unit 312 can be configured to transform the dense one-dimensional vector into a plurality of sparse elements, and instruct the data extraction unit 304 to update the sparse elements stored in the data slice 330 that the sparse element access unit 300 is assigned to extract.
[0046] Figure 4 4 is a flow chart illustrating an example of a process 400 for generating a dense matrix. The process 400 may be performed by a system such as the sparse-dense transform unit 104 or the sparse-dense transform unit 200. The system may include a first sparse element access unit group and a second sparse element access unit group. For example, referring to Figure 2A , the sparse-dense transformation unit 200 may include M times N sparse element access units X arranged physically or logically as M rows and N columns. 1,1 To X M,N . Sparse element access unit X 1,1 To X M,N Each row in can be divided to access the sparse elements transformed from a particular dense matrix. In some embodiments, the first sparse element access unit group may include a first sparse element access unit and a second sparse element access unit. For example, the first row of the sparse-dense transform unit 200 may include sparse element access units X 1,1 and X 1,2 In some embodiments, the first sparse element access unit group and the second sparse element access unit group may be arranged in a two-dimensional mesh configuration. In some embodiments, the first sparse element access unit group and the second sparse element access unit group may be arranged in a two-dimensional torus configuration.
[0047] The system receives a request for an output matrix based on sparse elements, the sparse elements including sparse elements associated with a first dense matrix and sparse elements associated with a second dense matrix. Figure 2B , the processing unit can execute an instruction to request a dense one-dimensional vector from the sparse-dense transformation unit 200, which is generated using sparse elements No. 1 to No. 50 of database table No. 1, sparse elements No. 100 to No. 200 of database table No. 2, and sparse elements No. 9050 to No. 9060 of database table No. 1000.
[0048] In some embodiments, a first sparse element access unit may receive a request for a plurality of sparse elements, the plurality of sparse elements including sparse elements associated with a first dense matrix and sparse elements associated with a second dense matrix. The first sparse element access unit may transmit the request to a second sparse element access unit. For example, referring to Figure 2B After the sparse-dense transform unit 200 receives the request from the processing unit, the sparse-dense transform unit 200 may instruct the sparse element access unit X 1,1 Broadcasting a request for the sparse element to other sparse element access units in the mesh network. Sparse element access unit X 1,1 You can access the sparse element in unit X 1,2 Broadcast request 222.
[0049] The system obtains sparse elements associated with a first dense matrix extracted by a first sparse element access unit group (402). In some embodiments, the first sparse element access unit can determine that the identity of a particular sparse element in the plurality of sparse elements matches the identity of a sparse element in a first subset of sparse elements associated with the first dense matrix. For example, referring to Figure 2C , sparse element access unit X 1,1 It can be configured to access sparse elements No. 1 to No. 200 of database table No. 1. Sparse element access unit X 1,1 It may be determined that it is configured to access sparse elements No. 1 to No. 50 of database table No. 1, but it is not configured to access sparse elements No. 100 to No. 200 of database table No. 2 or sparse elements No. 9050 to No. 9060 of database table No. 1000. In response to determining that the identity of a particular sparse element of the plurality of sparse elements matches the identity of one of the first subset of sparse elements associated with the first dense matrix, the first sparse element access unit may extract the first subset of sparse elements associated with the first dense matrix including the particular sparse element. For example, in response to determining that it is configured to access sparse elements No. 1 to No. 50 of database table No. 1, the sparse element access unit X 1,1 The sparse elements No. 1 to No. 50 of the database table No. 1 can be extracted from the data slice storing these sparse elements.
[0050] The second sparse element access unit can extract a different second subset of sparse elements associated with the first dense matrix. Figure 2C , sparse element access unit X 1,2In response to determining that it is configured to access sparse elements No. 100 to No. 200 of database table No. 2, sparse element access unit X 1,2 These sparse elements can be extracted from the data slices storing them.
[0051] The system obtains sparse elements associated with the second dense matrix extracted by the second sparse element access unit group (404). Figure 2C , the second sparse element access unit group may be the Mth row of M times N sparse element access units, where the sparse element access unit X M,N The sparse element access unit X may be configured to access the sparse elements No. 9000 to No. 10000 of the database table No. 1000. In response to determining that it is configured to access the sparse elements No. 9050 to No. 9060 of the database table No. 1000, the sparse element access unit X M,N The sparse elements may be extracted from the data slice storing the sparse elements, and a dense matrix 246 may be generated based on the sparse elements.
[0052] In some embodiments, a first sparse element access unit may extract a first subset of sparse elements associated with a first dense matrix from a first data slice, and a second sparse element access unit may extract a different second subset of sparse elements associated with the first dense matrix from a different second data slice. Figure 1 , a first sparse element access unit may extract a first subset of sparse elements associated with the first dense matrix from data slice 106a, and a second sparse element access unit may extract a different second subset of sparse elements associated with the first dense matrix from data slice 106b.
[0053] The system transforms the sparse elements associated with the first dense matrix and the sparse elements associated with the second dense matrix to generate an output dense matrix (406) including the sparse elements associated with the first dense matrix and the sparse elements associated with the second dense matrix. Figure 2C The sparse-dense transform unit 200 transforms the dense matrices 242, 244, and 246 into one dense matrix for the processor unit.
[0054] In some embodiments, the sparse elements associated with the first dense matrix and the sparse elements associated with the second dense matrix can be multi-dimensional matrices, and the output dense matrix can be a vector. For example, the dense matrix 242 can have a dimension of 100 times 10, the dense matrix 244 can have a dimension of 20 times 100, and the dense matrix 246 can have a dimension of 3 times 3. The sparse-dense transformation unit 200 can transform the dense matrices 242, 244, and 246 into vectors having a dimension of 1 times 3009.
[0055] Figure 5 is a flow chart illustrating an example of a process 500 for generating a dense matrix. The process 500 may be performed by a system such as the sparse-dense transform unit 104 or the sparse element access unit 300.
[0056] The system receives an indication to access a subset of a particular sparse element (502). Figure 3A , the data extraction unit 304 can be configured to receive a signal 344 for extracting one or more requested sparse elements from the data slice 330. In some embodiments, a request for a particular sparse element stored in one or more data slices can be received via the node network. For example, referring to Figure 3A , the request identification unit 302 may be configured to receive a request 342 through the node network 320 to extract the sparse elements stored in the data slice 330. The system may determine that the data extraction unit is assigned to handle a subset of the specific sparse elements. For example, the request identification unit 302 may be configured to determine whether the sparse element access unit 300 is assigned to access the sparse elements indicated by the request 342. In response to determining that the data extraction unit is assigned to handle a subset of the specific sparse elements, the indication may be generated for accessing the subset of the specific sparse elements. For example, if the identification of a specific requested sparse element (e.g., No. 1 of database table No. 1) is included in the lookup table, the request identification unit 302 may send a signal 344 to the data extraction unit 304 to extract the specific requested sparse element.
[0057] The system determines a processor designation for extracting the subset of the particular sparse elements based on the identification of the subset of the particular sparse elements (504). Figure 3A, the data extraction unit 304 includes one or more processors 322a-322k. Each of the processors 322a-322k can be assigned to a specific sparse element based on the identification of the sparse element, and the data extraction unit 304 can be configured to generate one or more requests for the processors 322a-322k based on the identification of the sparse element. In some embodiments, the system can determine that the system is assigned to handle a subset of specific sparse elements, including: determining that the system is assigned to handle the subset of the specific sparse elements based on a lookup table. For example, the data extraction unit 304 can determine the processor assignment by using a lookup table.
[0058] The system extracts a first sparse element from the subset of the specific sparse elements by a first processor among the plurality of processors based on the designation (506). Figure 3A , the data extraction unit 304 may instruct the processor 322a to extract the sparse elements included in the signal 344 .
[0059] The system extracts a second sparse element from the subset of the particular sparse elements by a second processor of the plurality of processors based on the designation (508). Figure 3A , the data extraction unit 304 can instruct the processor 322b to extract different sparse elements included in the signal 344.
[0060] In some embodiments, a first matrix including a first sparse element from a first processor may be received, wherein the first matrix may have a first dimension. The system may generate a second matrix including the first sparse element, and the second matrix may have a second dimension less than the first dimension. For example, a sparse reduction unit 306 may be configured to reduce the dimension of the extracted sparse element 346. Each of the processors 322a-322k may generate a sparse element with a dimension of 100 times 1. The sparse reduction unit 306 may receive the extracted sparse element 346 with a dimension of 100 times k, and by utilizing a logical operation, a mathematical operation, or a combination of the two, the dimension of the extracted sparse element 346 may be reduced to 100 times 1 to generate a sparsely reduced element 348. The system may generate an output dense matrix, which may be generated based on the second matrix. For example, a concatenation unit 308 may be configured to rearrange and concatenate the sparsely reduced element 348 to generate a concatenated element 350.
[0061] In some embodiments, a first sparse element may be received at a first time point, and a second sparse element may be received at a different second time point. The system may determine the order of the first sparse element and the second sparse element for the output dense matrix. For example, referring to Figure 3A, processor 322a can return the extracted sparse element No. 10 to the sparse reduction unit 306 faster than processor 322b configured to return the extracted sparse element No. 5. The concatenation unit 308 is configured to rearrange the sparse element No. 5 received later so that it is sorted before the sparse element No. 10 received earlier, and concatenate the sparse elements No. 1 to No. 200 into a concatenated element 350.
[0062] The system generates an output dense matrix based on the transformation applied to at least the first sparse element and the second sparse element (510). In some embodiments, the system can compress the output dense matrix to generate a compressed output dense matrix. The system can provide the compressed output dense matrix to the node network. For example, the compression / decompression unit 310 can be configured to compress the concatenated elements 350 to generate a dense matrix 352 for the node network 320.
[0063] In some embodiments, the system may receive a first dense matrix representing a dense matrix sent through a node network, and generate an output dense matrix based on the first dense matrix, the first sparse element, and the second sparse element. For example, the sparse element access unit 300 may receive a dense matrix from a neighboring sparse element access unit via the node network 320. The sparse element access unit 300 may decompress the received dense matrix, and may concatenate the decompressed dense matrix with the concatenated element 350 to form an updated concatenated element, which can be compressed and then output to the node network 320.
[0064] In some embodiments, one or more sparse elements in a particular sparse element are multidimensional matrices, and the output dense matrix is a vector. The subject matter described in this specification and the embodiment of the functional operation can be implemented with digital electronic circuits, with tangible computer software or firmware, with hardware-including the structure disclosed in this specification and its structural equivalents, or with a combination of one or more of them. The subject matter described in this specification can be implemented as one or more computer programs, i.e., one or more modules of computer program instructions, which are encoded on a tangible non-temporary program carrier, for being executed by a data processing device or controlling the operation of the data processing device. Alternatively or additionally, program instructions can be encoded on an artificially generated propagation signal, such as a machine-generated electrical, optical, or electromagnetic signal, which is generated to encode information for transmission to a suitable receiver device for execution by a data processing device. Computer storage media can be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of them.
[0065] The term "data processing apparatus" covers various apparatuses, devices, and machines for processing data, including, for example, a programmable processor, a computer, or a plurality of processors or computers. The apparatus can include special-purpose logic circuits, such as an FPGA (field programmable gate array) or an ASIC (application-specific integrated circuit). In addition to hardware, the apparatus can also include code that creates an execution environment for the computer program in question, such as code constituting processor firmware, a protocol stack, a database management system, an operating system, or a combination of one or more of them.
[0066] A computer program (also referred to as a program, software, software application, module, software module, script, or code) can be written in any form of programming language, including compiled or interpreted languages, declarative or procedural languages, and can be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment. A computer program may but need not correspond to a file in a file system. A program can be stored in a portion of a file that holds other programs or data, such as one or more scripts stored in a markup language document, in a single file dedicated to the program in question, or in a plurality of collaborative files, such as files storing one or more modules, subroutines, or code portions. A computer program can be deployed to execute on a computer or on multiple computers located in one location or distributed across multiple locations and interconnected by a communication network.
[0067] The processes and logic flows described in this specification can be performed by one or more programmable computers executing one or more computer programs to perform functions by operating on input data and generating output. The processes and logic flows can also be performed by and the apparatus can be implemented as a special purpose logic circuit, such as an FPGA (field programmable gate array), an ASIC (application specific integrated circuit), or a GPGPU (general purpose graphics processing unit).
[0068] The processor that is suitable for executing computer programs includes, for example, a general-purpose microprocessor or a special-purpose microprocessor or both, or a central processing unit of any other kind. Usually, the central processing unit will receive instructions and data from a read-only memory or a random access memory or both. The essential element of a computer is a central processing unit for implementing or executing instructions and one or more memory devices for storing instructions and data. Usually, a computer will also include one or more large-capacity storage devices for storing data, such as disks, magneto-optical disks, or optical disks, or be operably coupled to receive data from it or to transmit data to it, or both. However, a computer does not need to have such a device. In addition, a computer can be embedded in another device, such as a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a global positioning system (GPS) receiver, or a portable storage device, such as a universal serial bus (USB) flash drive, to name a few.
[0069] Computer-readable media suitable for storing computer program instructions and data include all forms of nonvolatile memory, media, and memory devices, including, for example, semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices; magnetic disks, such as internal hard disks or removable disks; magneto-optical disks; and CD ROM and DVD-ROM disks. The processor and memory can be supplemented by, or incorporated in, special purpose logic circuitry.
[0070] To provide interaction with a user, embodiments of the subject matter described in this specification can be implemented on a computer having: a display device for displaying information to the user, such as a CRT (cathode ray tube) or LCD (liquid crystal display) monitor; and a keyboard and pointing device, such as a mouse or trackball, through which the user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; the feedback provided to the user can be any form of sensory feedback, such as visual feedback, auditory feedback, or tactile feedback; and input from the user can be received in any form, including sound, voice, or tactile input. In addition, the computer can interact with the user by sending documents to and receiving documents from the device used by the user, such as by sending a web page to a web browser in response to a request received from the web browser on the user's client device.
[0071] Embodiments of the subject matter described in this specification can be implemented in a computing system that includes a back-end component such as a data server, or includes a middleware component such as an application server, or includes a front-end component such as a client computer with a graphical user interface or a web browser through which a user can interact with the implementation of the subject matter described in this specification, or includes any combination of one or more such back-end components, middleware components, or front-end components. The components of the system can be interconnected by digital data communication of any form or medium, such as a communication network. Examples of communication networks include local area networks ("LANs") and wide area networks ("WANs"), such as the Internet.
[0072] A computing system can include clients and servers. Clients and servers are usually remote from each other and generally interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
[0073] Although this specification contains many specific implementation details, these should not be interpreted as limitations on the scope of any invention or content that can be claimed, but should be interpreted as descriptions of features that are unique to specific embodiments of specific inventions. Certain features described in this specification in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, the individual features described in the context of a single embodiment can also be implemented individually or in any suitable sub-combination in multiple embodiments. In addition, although features may be described above as working in certain combinations and even initially claimed as such, in some cases one or more features from the claimed combination can be deleted from the combination, and the claimed combination can involve sub-combinations or variations of sub-combinations.
[0074] Similarly, although operations are depicted in a particular order in the accompanying drawings, this should not be understood as requiring such operations to be performed in the particular order shown or in a continuous order, or requiring all illustrated operations to be performed to achieve the desired result. In some cases, multitasking and parallel processing can be advantageous. In addition, the separation of various system components in the above-described embodiments should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.
[0075] Specific embodiments of the subject matter have been described. Other embodiments fall within the scope of the appended claims. For example, the actions recited in the claims can be performed in a different order and still achieve the desired results. As an example, the processes depicted in the accompanying drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing can be advantageous.
Claims
1. A system for transforming sparse elements into a dense matrix, the system comprising: A plurality of sparse element access units arranged along corresponding dimensions of a two-dimensional sparse-dense transform unit, wherein each sparse element access unit comprises: A corresponding data extraction unit, the corresponding data extraction unit comprising a corresponding plurality of processors, the data extraction unit being configured to: receiving one or more control signals from an external source, the one or more control signals providing an indication that a sparse element access unit in which the data fetch unit is located is assigned to access a subset of a plurality of specific sparse elements stored in one or more data slices; and Based on the indication, extracting one or more sparse elements from the subset of the plurality of specific sparse elements; A corresponding series connection unit, wherein the corresponding series connection unit is configured as: generating an output dense matrix based on at least the transformation applied to the one or more sparse elements; and A corresponding compression / decompression unit, wherein the corresponding compression / decompression unit is configured to: compressing the output dense matrix to generate a compressed output dense matrix; and The compressed output dense matrix is provided to a node network.
2. The system according to claim 1, each sparse element access unit further comprising: A corresponding request identification unit, wherein the corresponding request identification unit is configured to: Receiving, via the network of nodes, a request for the plurality of specific sparse elements; determining that the sparse element access unit at which the request identification unit is located is assigned to handle the subset of the plurality of specific sparse elements; as well as In response to determining that the sparse element access unit where the request identification unit is located is assigned to handle the subset of the plurality of specific sparse elements, the indication to the data fetch unit to access the subset of the plurality of specific sparse elements is generated.
3. The system according to claim 2, wherein: Determining that the sparse element access unit where the request identification unit is located is assigned to handle the subset of the multiple specific sparse elements includes: determining based on a lookup table that the sparse element access unit where the request identification unit is located is assigned to handle the subset of the multiple specific sparse elements.
4. The system according to claim 1, wherein: Each sparse element access unit further comprises: a corresponding sparsity reduction unit, wherein the corresponding sparsity reduction unit is configured to: receiving a first matrix including first sparse elements from a first processor, the first matrix having a first dimension; and generating a second matrix including the first sparse elements, the second matrix having a second dimension smaller than the first dimension, Wherein, the serial connection unit is further configured as: receiving the second matrix; The generating the output dense matrix further includes generating the output dense matrix based on the second matrix.
5. The system according to claim 1, wherein: The serial connection unit is configured as follows: Receiving a first sparse element at a first time point; receiving a second sparse element at a second different time point; as well as determining an order of the first sparse elements and the second sparse elements for the output dense matrix, Wherein, generating the output dense matrix further comprises: generating the output dense matrix based on the order of the first sparse elements and the second sparse elements.
6. The system according to claim 1, in, The concatenation unit is further configured to receive a first dense matrix representing a dense matrix transmitted through the node network, and The generating the output dense matrix further comprises: generating the output dense matrix based on the first dense matrix, the first sparse element, and the second sparse element.
7. The system according to claim 6, wherein: The compression / decompression unit is configured to decompress a compressed first dense matrix to generate a dense matrix, the dense matrix corresponding to the first dense matrix received by the concatenation unit.
8. The system according to claim 1, wherein: One or more sparse elements of the plurality of specific sparse elements are multi-dimensional matrices, and wherein the output dense matrix is a vector.
9. A method for transforming sparse elements into a dense matrix, comprising: A sparse element access unit receives one or more control signals from an external source for accessing one or more sparse elements, wherein a plurality of sparse element access units are arranged along corresponding dimensions of a two-dimensional sparse-dense transform unit, and each sparse element access unit includes a corresponding data extraction unit, a corresponding concatenation unit, and a corresponding compression / decompression unit: Receiving, by the corresponding data fetch unit having the corresponding plurality of processors, based on the one or more control signals, an indication that a sparse element access unit in which the data fetch unit is located is assigned to access a subset of a plurality of specific sparse elements stored in one or more data slices; Based on the indication, extracting one or more sparse elements from the subset of the plurality of specific sparse elements; generating, by the corresponding concatenation unit, an output dense matrix based on at least the transformation applied to the one or more sparse elements; and The output dense matrix is compressed by the corresponding compression / decompression unit to generate a compressed output dense matrix, and the compressed output dense matrix is provided to the node network.
10. The method according to claim 9, further comprising: receiving, by a sparse reduction unit, a first matrix including first sparse elements from a first processor, the first matrix having a first dimension; generating, by the sparsity reduction unit, a second matrix including the first sparse elements, the second matrix having a second dimension smaller than the first dimension; as well as The second matrix is received by the serial connection unit, The generating the output dense matrix further includes generating the output dense matrix based on the second matrix.
11. The method according to claim 9, wherein: Generating the output dense matrix further comprises: Receiving a first sparse element at a first time point; receiving a second sparse element at a second different time point; determining an order of the first sparse elements and the second sparse elements for the output dense matrix; and The output dense matrix is generated based on the order of the first sparse elements and the second sparse elements.
12. The method according to claim 9, wherein: Generating the output dense matrix further comprises: receiving a first dense matrix representing a dense matrix transmitted through the network of nodes; and The output dense matrix is generated based on the first dense matrix, the first sparse element, and the second sparse element.
13. The method according to claim 9, further comprising: Receiving, by a request identification unit through the node network, a request for a plurality of specific sparse elements stored in one or more data slices; determining that the data extraction unit is assigned to handle a subset of the plurality of specific sparse elements; as well as In response to determining that the data fetch unit is assigned to handle a subset of the plurality of particular sparse elements, the indication to access the subset of the plurality of particular sparse elements is generated.
14. The method according to claim 13, wherein: Determining that the data extraction unit is assigned to handle the subset of the plurality of specific sparse elements includes determining that the data extraction unit is assigned to handle the subset of the plurality of specific sparse elements based on a lookup table.
15. A system for transforming sparse elements into a dense matrix, the system comprising: one or more processors configured to send a request for an output matrix based on a plurality of specific sparse elements stored in one or more data slices; A plurality of sparse element access units connected by a node network and arranged along corresponding dimensions of a two-dimensional sparse-dense transform unit, wherein each sparse element access unit comprises: A corresponding data extraction unit, the corresponding data extraction unit comprising a corresponding plurality of processors, the data extraction unit being configured to: receiving one or more control signals from an external source, the one or more control signals providing an indication that a sparse element access unit in which the data fetch unit is located is assigned to access a subset of the plurality of specific sparse elements; and Based on the indication, extracting one or more sparse elements from the subset of the plurality of specific sparse elements; A corresponding series connection unit, wherein the corresponding series connection unit is configured as: generating an output dense matrix based on at least the transformation applied to the one or more sparse elements; and A corresponding compression / decompression unit, wherein the corresponding compression / decompression unit is configured to: compressing the output dense matrix to generate a compressed output dense matrix; and The compressed output dense matrix is provided to the node network.
16. The system of claim 15, wherein each sparse element access unit further comprises: A corresponding request identification unit, wherein the corresponding request identification unit is configured to: receiving, via the network of nodes, the request for the plurality of specific sparse elements; determining that the sparse element access unit at which the request identification unit is located is assigned to handle the subset of the plurality of specific sparse elements; as well as In response to determining that the sparse element access unit where the request identification unit is located is assigned to handle the subset of the plurality of specific sparse elements, the indication to the data fetch unit to access the subset of the plurality of specific sparse elements is generated.
17. The system of claim 15, wherein: Each sparse element access unit further comprises: a corresponding sparsity reduction unit, wherein the corresponding sparsity reduction unit is configured to: receiving a first matrix including first sparse elements from a first processor, the first matrix having a first dimension; and generating a second matrix including the first sparse elements, the second matrix having a second dimension smaller than the first dimension, Wherein, the serial connection unit is further configured as: receiving the second matrix; The generating the output dense matrix further includes generating the output dense matrix based on the second matrix.
