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

Bayesian bits joint mixed-precision quantization and structured pruning using decomposed quantization and Bayesian gates

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

Abstract

Various embodiments include methods and devices for joint mixed-precision quantization and structured pruning. Embodiments may include determining whether a plurality of gates of quantization and pruning gates are selected for combination, and in response to determining that the plurality of gates are selected for combination, iteratively for each successive gate of the plurality of gates selected for combination quantizing a residual error of a quantized tensor to a scale of a next bit-width producing a residual error quantized tensor in which the next bit-width increases for each successive iteration, and adding the quantized tensor and the residual error quantized tensor producing a next quantized tensor in which the next quantized tensor has the next bit-width, and in which the next quantized tensor is the quantized tensor for a successive iteration.

Interactive Citation Constellation Global Citation Ranking

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

Claims (8)

  1. Claim 1Independent Claim

    A method for joint mixed-precision quantization and structured pruning, comprising: determining whether a plurality of gates of quantization and pruning gates are selected for combination; and in response to determining that the plurality of gates are selected for combination, iteratively for each successive gate of the plurality of gates selected for combination: quantizing a residual error of a quantized tensor to a scale of a next bit-width producing a residual error quantized tensor, wherein the next bit-width increases for each successive iteration; and adding the quantized tensor and the residual error quantized tensor producing a next quantized tensor, wherein the next quantized tensor has the next bit-width, and wherein the next quantized tensor is the quantized tensor for a successive iteration.

  2. Claim 2Depends on #1

    The method of claim 1, further comprising: determining whether a successive gate of the quantization and pruning gates to the plurality of gates is selected for combination; and outputting the quantized tensor of a last iteration in response to determining that the successive gate is not selected for combination.

  3. Claim 3Depends on #1

    The method of claim 1, further comprising: receiving a tensor by the quantization and pruning gates; clipping the tensor to a range of values producing a clipped tensor; and quantizing the clipped tensor to a lowest bit-width producing a clipped quantized tensor, wherein quantizing a residual error of a quantized tensor to a scale of a next bit-width for a first iteration comprises quantizing a residual error of the clipped quantized tensor to the scale of the next bit-width, wherein the next bit-width is greater than the lowest bit-width.

  4. Claim 4Depends on #3

    The method of claim 3, further comprising: determining whether a gate of the quantization and pruning gates preceding the plurality of gates is selected for combination; and outputting the clipped quantized tensor in response to determining that the gate preceding the plurality of gates is not selected for combination.

  5. Claim 5Depends on #4

    The method of claim 4, wherein quantizing a residual error of a quantized tensor to a scale of a next bit-width producing a residual error quantized tensor, and adding the quantized tensor and the residual error quantized tensor producing a next quantized tensor is further performed in response to determining that the gate preceding the plurality of gates is selected for combination.

  6. Claim 6Depends on #3

    The method of claim 3, further comprising, in response to determining that the plurality of gates are selected for combination, iteratively for each successive gate of the plurality of gates selected for combination computing a residual error of a quantized tensor by subtracting the quantized tensor from the clipped tensor.

  7. Claim 7Depends on #1

    The method of claim 1, further comprising: receiving a weight tensor by the quantization and pruning gates; determining whether a gate of the quantization and pruning gates preceding the plurality of gates is selected for combination; and outputting a tensor configured to prune the weight tensor in response to determining that that the gate preceding the plurality of gates is not selected for combination.

  8. Claim 8Depends on #1

    The method of claim 1, further comprising training the quantization and pruning gates using a regularizer configured to achieve a target balance of efficiency of a neural network and accuracy of the neural network by selecting fewer gates for combination producing a lower bit-width and more pruned quantized tensor favoring efficiency in comparison to selecting more gates for combination producing a higher bit-width and less pruned quantized tensor favoring accuracy.

Technical Overview & Description

RELATED APPLICATIONS This application claims the benefit of priority to Greek Application No. 20200100216 entitled “ Joint Mixed-Precision Quantization And Structured Pruning Using Decomposed Quantization And Bayesian Gates ” filed Apr. 29, 2020, the entire contents of which are incorporated herein by reference. BACKGROUND Neural network quantization is often applied to reduce the high compute requirements of neural networks. Quantization allows efficient integer operations instead of expensive floating-point operations. To quantize a neural network, a quantization bit-width must be chosen. Traditionally, the same quantization bit-width is used for each (weight or activation) tensor in a network. SUMMARY Various disclosed aspects may include apparatuses and methods for joint mixed-precision quantization and structured pruning. Various aspects may include determining whether a plurality of gates of quantization and pruning gates are selected for combination, and in response to determining that the plurality of gates are selected for combination, iteratively for each successive gate of the plurality of gates selected for combination, quantizing a residual error of a quantized tensor to a scale of a next bit-width producing a residual error quantized tensor in which the next bit-width increases for each successive iteration, and adding the quantized tensor and the residual error quantized tensor producing a next quantized tensor, in which the next quantized tensor has the next bit-width, and the next quantized tensor is the quantized tensor for a successive iteration. Some aspects may further include determining whether a successive gate of the quantization and pruning gates to the plurality of gates is selected for combination, and outputting the quantized tensor of a last iteration in response to determining that the successive gate is not selected for combination. Some aspects may further include receiving a tensor by the quantization and pruning gates, clipping the

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 (0)

No backward patent references recorded.

Non-Patent Literature (10)

  • Lin, Darryl, Sachin Talathi, and Sreekanth Annapureddy.
  • “
  • Fixed point quantization of deep convolutional networks.
  • ”
  • International conference on machine learning. PMLR, 2016. (Year: 2016).
  • Wang, Kuan, et al.
  • “
  • Haq: Hardware-aware automated quantization with mixed precision.
  • ”
  • Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. 2019. (Year: 2019).