hottub.patents
US 12,613,697 B2#3258686 Most CitedActiveUnited States (USPTO)Utility

Tiled compressed sparse matrix format

0Forward Citations (#3258686 Global)
0.0/yrCitation Velocity (#3258686 Global)
0.00Citation PageRank (#3258686 Global)
6Prior Art Cited
20Claims (3 Indep. · 17 Dep.)
8Drawings / Sheets

Abstract

Approaches in accordance with various embodiments provide for the processing of sparse matrices for mathematical and programmatic operations. In particular, various embodiments utilize a tiling approach that divides a sparse matrix into submatrices, many of which will include only zero-value entities. These empty tiles can be ignored, and only the tiles with non-zero entries processed, which reduces resource and time requirements for the processing. An indexing approach can be used for each entity that is a combination of the tile identifier and an offset value, which enables the values to be multiplied correctly against, for example, values of a dense matrix. The tiles can be processed in parallel and the results accumulated to generate a matrix product. The matrix product can then be passed to the next step in a process or operation, such as to a next layer in a deep neural network.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 0.

Claims (20 — 3 Independent, 17 Dependent)

  1. Claim 1Independent Claim

    A computer-implemented method, comprising: causing one or more processors to: access, from at least one first L1 cache of one or more L1 caches of the one or more processors, one or more matrix operands of one or more matrix operations to be performed by the one or more processors, wherein the one or more matrix operands comprise one or more indices to indicate one or more locations, within at least one other L1 cache of the one or more L1, of one or more separately compressed multi-element portions of the one or more matrix operands comprising one or more non-zero values; and perform the one or more matrix operations on the one or more matrix operands indicated by the one or more indices.

  2. Claim 2Depends on #1

    The computer-implemented method of claim 1, wherein the one or more indices indicate one or more tiled format matrices generated from one or more sparse matrices of data, and further comprising: generating the one or more tiled format matrices in a compressed sparse row (CSR) format or a compressed sparse column (CSC) format.

  3. Claim 3Depends on #1

    The computer-implemented method of claim 1, wherein the one or more indices indicate one or more tiled format matrices generated from one or more sparse matrices of data, and further comprising: generating, using a respective tile identifier and a positional offset in a tile, tile-specific indices for non-zero value elements.

  4. Claim 4Depends on #1

    The computer-implemented method of claim 1, wherein the one or more indices indicate one or more tiled format matrices generated from one or more sparse matrices of data, and further comprising: multiplying the one or more tiled format matrices having removed zero value data by a dense matrix of data in parallel using a plurality of streaming multiprocessors (SMs) of a second processing unit, wherein the second processing unit is a graphics processing unit (GPU).

  5. Claim 5Depends on #4

    The computer-implemented method of claim 4, wherein the one or more indices indicate one or more tiled format matrices generated from one or more sparse matrices of data, and further comprising: storing data for the one or more tiled format matrices to a Level 1 (LI) cache for the plurality of streaming multiprocessors.

  6. Claim 6Independent Claim

    A system, comprising: one or more processors; and memory including instructions that, when executed by the one or more processors, cause the system to: access, from at least one first L1 cache of one or more L1 caches of the one or more processors, one or more matrix operands of one or more matrix operations to be performed by the one or more processors, wherein the one or more matrix operands comprise one or more indices to indicate one or more locations, within at least one other L1 cache of the one or more L1 caches, of one or more separately compressed multi-element portions of the one or more matrix operands comprising one or more non-zero values; and perform the one or more matrix operations on the one or more matrix operands indicated by the one or more indices.

  7. Claim 7Depends on #6

    The system of claim 6, wherein the one or more indices indicate one or more tiled format matrices from one or more sparse matrices of data, and wherein the instructions when executed further cause the system to: multiply the one or more sparse matrices of data by a dense matrix of data, the one or more sparse matrices of data having a higher ratio of zero-value elements to non-zero elements than the dense matrix of data.

  8. Claim 8Depends on #7

    The system of claim 7, wherein the instructions when executed further cause the system to: multiply the one or more tiled format matrices having removed zero value data by a dense matrix of data; and accumulate results from multiplying the one or more tiled format matrices to generate a product of the one or more sparse matrices of data and the dense matrix of data.

  9. Claim 9Depends on #8

    The system of claim 8, wherein the instructions when executed further cause the system to: multiply the one or more tiled format matrices having the removed zero value data by the dense matrix of data in parallel using a plurality of streaming multiprocessors (SMs) of a graphics processing unit GPU.

  10. Claim 10Depends on #7

    The system of claim 7, wherein the instructions when executed further cause the system to: format the one or more tiled format matrices, having removed zero value data, in a compressed sparse row (CSR) format or a compressed sparse column (CSC) format according to a nested matrix format.

  11. Claim 11Independent Claim

    One or more processors, comprising: one or more circuits to cause the one or more processors to: access, from at least one first L1 cache of one or more L1 caches of the one or more processors, one or more matrix operands of one or more matrix operations to be performed by the one or more processors, wherein the one or more matrix operands comprise one or more indices to indicate one or more locations, within at least one other L1 cache of the one or more L1 caches, of one or more separately compressed multi-element portions of the one or more matrix operands comprising one or more non-zero values; and perform the one or more matrix operations on the one or more matrix operands indicated by the one or more indices.

  12. Claim 12Depends on #11

    The one or more processors of claim 11, wherein the one or more indices indicate one or more tiled format matrices from one or more sparse matrices of data, and wherein the one or more circuits are configured to multiply the one or more sparse matrices of data by a dense matrix of data, the one or more sparse matrices of data having a higher ratio of zero-value elements to non-zero elements than the dense matrix of data.

  13. Claim 13Depends on #12

    The one or more processors of claim 12, wherein the one or more circuits are configured to: multiply the one or more tiled format matrices by a dense matrix of data; and accumulate results from multiplying the one or more tiled format matrices to generate a product of the one or more sparse matrices of data and the dense matrix of data.

  14. Claim 14Depends on #13

    The one or more processors of claim 13, wherein the multiplying of the one or more tiled format matrices by the dense matrix of data is performed in parallel using a plurality of streaming multiprocessors (SMs) of a graphics processing unit (GPU).

  15. Claim 15Depends on #12

    The one or more processors of claim 12, wherein the one or more circuits are configured to: obtain the one or more sparse matrices of data and a second matrix of data for a first layer of a deep neural network; and pass a product of the one or more sparse matrices of data and the second matrix of data to a second layer of the deep neural network.

  16. Claim 16Depends on #15

    The one or more processors of claim 15, wherein the deep neural network is a generative adversarial network (GAN), a convolutional neural network (CNN), or a recurrent neural network (RNN).

  17. Claim 17Depends on #12

    The one or more processors of claim 12, wherein the one or more circuits are configured to generate the one or more tiled format matrices in a compressed sparse row (CSR) format or a compressed sparse column (CSC) format.

  18. Claim 18Depends on #17

    The one or more processors of claim 17, wherein the one or more tiled format matrices, having removed zero value data, are matrices in the CSR or CSC format according to a nested matrix format.

  19. Claim 19Depends on #12

    The one or more processors of claim 12, wherein the one or more circuits are configured to generate, using a respective tile identifier and a positional offset in tile, tile-specific indices for non-zero elements in the one or more tiled format matrices.

  20. Claim 20Depends on #12

    The one or more processors of claim 12, wherein the one or more circuits are configured to determine a single aspect ratio to use for the one or more tiled format matrices using a density of the one or more sparse matrices of data and a size of a cache to store the one or more tiled format matrices.

Technical Overview & Description

CROSS-REFERENCE TO RELATED APPLICATIONS This application claims priority to U.S. Provisional Application Ser. No. 62/641,201, filed Mar. 9, 2018, entitled “ Tiled Compressed Sparse Row Format, ” which is hereby incorporated herein in its entirety for all purposes. BACKGROUND Sparse workloads are common in high-performance computing. For example, sparse matrices can be utilized to represent structures and relationships between objects. Machine learning also often involves sparse matrices in one or more network layers. As machine learning and other computing operations become more complex and utilize larger sets of data, the need to maintain large amounts of data for sparse matrices or data sets becomes problematic as zero-value elements may not impact the outcome but require significant overhead to store and process. BRIEF DESCRIPTION OF THE DRAWINGS Various embodiments in accordance with the present disclosure will be described with reference to the drawings, in which: FIG. 1 an example system that can be utilized to implement aspects in accordance with various embodiments. FIGS. 2 A and 2 B illustrate matrices of a sparse matrix multiplication task that can be performed in accordance with various embodiments. FIGS. 3 A, 3 B, and 3 C illustrate an example tiling approach that can be utilized in accordance with various embodiments. FIG. 4 illustrates an example estimation of a maximum number of operations that can be executed in accordance with various embodiments. FIG. 5 illustrates an example process for using tiling for sparse matrix multiplication that can be utilized in accordance with various embodiments. FIG. 6 illustrates an example system for training an image synthesis network that can be utilized in accordance with various embodiments. FIG. 7 illustrates layers of an example statistical model that can be utilized in accordance with various embodiments. FIG.

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.

References Cited — Backward Prior Art (6)

PatentTitleYearCitations

Non-Patent Literature (10)

  • Dongarra,
  • “
  • Survey of Sparse Matrix Storage Formats,
  • ”
  • retrieved from https://netlib.org/linalg/html_templates/node90.html, Nov. 20, 1995, 1 page.
  • Kjolstad et al.,
  • “
  • The Tensor Algebra Compiler,
  • ”
  • Computer Science and Artificial Intelligence Laboratory Technical Report, Feb. 17, 2017, 16 pages.