{"pub_number":"US12373697B2","doc_number":"12373697","country":"US","kind_code":"B2","patent_type":"utility","status":"active","title":"Bayesian bits joint mixed-precision quantization and structured pruning using decomposed quantization and Bayesian gates","abstract_text":"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.","claims":[{"number":1,"text":"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.","independent":true},{"number":2,"text":"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.","independent":false,"depends_on":[1]},{"number":3,"text":"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.","independent":false,"depends_on":[1]},{"number":4,"text":"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.","independent":false,"depends_on":[3]},{"number":5,"text":"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.","independent":false,"depends_on":[4]},{"number":6,"text":"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.","independent":false,"depends_on":[3]},{"number":7,"text":"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.","independent":false,"depends_on":[1]},{"number":8,"text":"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.","independent":false,"depends_on":[1]}],"description":"RELATED APPLICATIONS\nThis application claims the benefit of priority to Greek Application No. 20200100216 entitled\n“\nJoint Mixed-Precision Quantization And Structured Pruning Using Decomposed Quantization And Bayesian Gates\n”\nfiled Apr. 29, 2020, the entire contents of which are incorporated herein by reference.\nBACKGROUND\nNeural 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.\nSUMMARY\nVarious 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.\nSome 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.\nSome aspects may further include receiving a tensor by the quantization and pruning gates, clipping the","inventors":[{"name":"Marinus Willem Van Baalen","slug":"marinus-willem-van-baalen","city":"Amsterdam","country":"NL"},{"name":"Christos Louizos","slug":"christos-louizos","city":"Amsterdam","country":"NL"},{"name":"Markus Nagel","slug":"markus-nagel","city":"Amsterdam","country":"NL"},{"name":"Tijmen Pieter Frederik Blankevoort","slug":"tijmen-pieter-frederik-blankevoort","city":"Amsterdam","country":"NL"},{"name":"Rana Ali Amjad","slug":"rana-ali-amjad","city":"Amsterdam","country":"NL"}],"assignees":[{"name":"QUALCOMM Incorporated","slug":"qualcomm-incorporated","country":"US"}],"examiners":[],"cpc_codes":["G06N 3/082"],"ipc_codes":["G06N 3/082"],"filing_date":"2021-04-29","pub_date":"2025-07-29","grant_date":"2025-07-29","expiration_date":"2041-04-29","family_members":[],"citations_made":[],"non_patent_literature":["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)."],"drawings_count":0,"source_id":"uspto_patent_grants","upstream_forward_citations":0,"metrics":{"forward_citations":0,"indexed_forward_citations":0,"backward_citations":0,"npl_citations":10,"citations_per_year":0.0,"pagerank":0.0,"citation_rank":3483696,"pagerank_rank":3483696,"velocity_rank":3483696,"family_citations":0}}