hottub.patents
US 12,288,142 B2#3558944 Most CitedActiveUnited States (USPTO)Utility

Sparsity-aware compute-in-memory

0Forward Citations (#3558944 Global)
0.0/yrCitation Velocity (#3558944 Global)
0.00Citation PageRank (#3558944 Global)
24Prior Art Cited
8Structured Claims
0Drawings / Sheets

Abstract

Certain aspects of the present disclosure provide techniques for performing machine learning computations in a compute in memory (CIM) array comprising a plurality of bit cells, including: determining that a sparsity of input data to a machine learning model exceeds an input data sparsity threshold; disabling one or more bit cells in the CIM array based on the sparsity of the input data prior to processing the input data; processing the input data with bit cells not disabled in the CIM array to generate an output value; applying a compensation to the output value based on the sparsity to generate a compensated output value; and outputting the compensated output value.

Interactive Citation Constellation Global Citation Ranking

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

Claims (8)

  1. Claim 1Independent Claim

    A method, comprising: disabling one or more bit cells in a compute-in-memory (CIM) array based on a sparsity of input data for a machine learning model prior to processing the input data; determining that a sparsity of weight data for the machine learning model exceeds a weight data sparsity threshold; resequencing the weight data according to the sparsity of the weight data; disabling one or more bit cells in the CIM array based on the resequenced weight data; resequencing the input data based on the resequenced weight data; processing the input data with bit cells not disabled in the CIM array to generate an output value; applying a compensation to the output value based on the sparsity of the input data to generate a compensated output value; and outputting the compensated output value.

  2. Claim 2Depends on #1

    The method of claim 1, wherein disabling one or more bit cells in the CIM array based on the sparsity of the input data prior to processing the input data comprises disabling each row of the CIM array for which an associated activation input value is 0.

  3. Claim 3Depends on #1

    The method of claim 1, wherein the compensation is applied in a digital domain.

  4. Claim 4Depends on #1

    The method of claim 1, further comprising: determining whether the input data comprises binary input data or multibit input data; setting bit cells of the CIM array to an AND operation mode if the input data comprises multibit input data; and setting bit cells of the CIM array to an XNOR operation mode if the input data comprises binary input data.

  5. Claim 5Depends on #1

    The method of claim 1, wherein resequencing the weight data according to the sparsity of the weight data comprises: resequencing rows of a CIM array weight matrix according to a sparsity of each row in the CIM array weight matrix; and resequencing columns of the CIM array weight matrix according to a sparsity of each column in the CIM array weight matrix.

  6. Claim 6Depends on #5

    The method of claim 5, wherein disabling one or more bit cells in the CIM array based on the resequenced weight data comprises disabling one or more tiles of bit cells, wherein each tile of the one or more tiles comprises a plurality of bit cells with weight values of 0.

  7. Claim 7Depends on #1

    The method of claim 1, further comprising: compressing the resequenced weight data by removing any weight with a value of 0; and storing the compressed resequenced weight data in a memory.

  8. Claim 8Depends on #7

    The method of claim 7, further comprising: retrieving the compressed resequenced weight data from the memory; decompressing the compressed resequenced weight data; and writing the decompressed resequenced weight data to the CIM array prior to processing the input data with the bit cells not disabled in the CIM array to generate the output value.

Technical Overview & Description

Aspects of the present disclosure relate to computation in memory, and in particular to computation of machine learning data using compute-in-memory (CIM) systems. Machine learning techniques, such as deep learning, have proven a powerful tool in many domains. Given their computational complexity, though, machine learning tasks, such as training and inferencing, have conventionally been performed on powerful, purpose-built computing hardware. Presently, there is a desire to implement machine learning tasks on lower power devices, such as edge devices, in order to enhance the capabilities of such devices and the services they enable. For example, the wide availability and variety of mobile devices and Internet-of-Things (IoT) devices represents a compelling opportunity for deploying machine learning in myriad new contexts. However, implementing complex machine learning tasks on lower power devices creates new challenges with respect to the design constraints of such devices, such as with respect to power consumption, computational efficiency, and memory footprint, to name a few examples. Consequently, improving the efficiency of various machine learning model architectures has been an area of focused research and development. Unfortunately, efficient architectures, by themselves, may not be sufficient to enable complex machine learning tasks to be implemented on low power devices — especially where large models and/or time consuming computations are necessary to get good performance for some particular task. Accordingly, new techniques are needed for improving the efficiency of machine learning processing. BRIEF SUMMARY One aspect provides a method, comprising: disabling one or more bit cells in a compute-in-memory (CIM) array based on a sparsity of input data for a machine learning model prior to processing the input data; processing the input data with bit cells not disabled in the CIM array to generate an output value; applying a compensation to the output value b

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.

Non-Patent Literature (10)

  • Fangxin L., et al.,
  • “
  • SME: ReRAM-Based Sparse-Multiplication-Engine to Squeeze-Out Bit Sparsity of Neural Network
  • ”
  • , Mar. 2, 2021, pp. 417-424 (Year: 2021).
  • Yang T.H., et al.,
  • “
  • Sparse ReRAM Engine Joint Exploration of Activation and Weight Sparsity in Compressed Neural Networks
  • ”
  • , Proceedings of the 2020 Chi Conference on Human Factors in Computing Systems, ACMPUB27, New York, NY, USA, Jun. 22, 2019, pp. 236-249 (Year: 2019).