Lune

NeurIPS2020Top-tier venue

Bayesian Bits: Unifying Quantization and Pruning

Mart van Baalen, Christos Louizos, Markus Nagel, Rana Ali Amjad, Ying Wang, Tijmen Blankevoort, Max Welling

Abstract

We introduce Bayesian Bits, a practical method for joint mixed precision quantization and pruning through gradient based optimization. Bayesian Bits employs a novel decomposition of the quantization operation, which sequentially considers doubling the bit width. At each new bit width, the residual error between the full precision value and the previously rounded value is quantized. We then decide whether or not to add this quantized residual error for a higher effective bit width and lower quantization noise. By starting with a power-of-two bit width, this decomposition will always produce hardware-friendly configurations, and through an additional 0-bit option, serves as a unified view of pruning and quantization. Bayesian Bits then introduces learnable stochastic gates, which collectively control the bit width of the given tensor. As a result, we can obtain low bit solutions by performing approximate inference over the gates, with prior distributions that encourage most of them to be switched off. We experimentally validate our proposed method on several benchmark datasets and show that we can learn pruned, mixed precision networks that provide a better trade-off between accuracy and efficiency than their static bit width equivalents.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

24 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Understanding and Overcoming the Challenges of Efficient Transformer Quantization cites Learned Step Size quantization
  • Understanding and Overcoming the Challenges of Efficient Transformer Quantization cites Data-Free Quantization Through Weight Equalization and Bias Correction
  • Understanding and Overcoming the Challenges of Efficient Transformer Quantization cites HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision
  • Understanding and Overcoming the Challenges of Efficient Transformer Quantization cites Up or Down? Adaptive Rounding for Post-Training Quantization
  • HAWQ-V2: Hessian Aware trace-Weighted Quantization of Neural Networks cites HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision
  • Improving Low-Precision Network Quantization via Bin Regularization cites Learned Step Size quantization
  • Improving Low-Precision Network Quantization via Bin Regularization cites Data-Free Quantization Through Weight Equalization and Bias Correction
  • HAWQ-V3: Dyadic Neural Network Quantization cites HAWQ-V2: Hessian Aware trace-Weighted Quantization of Neural Networks
  • HAWQ-V3: Dyadic Neural Network Quantization cites HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision
  • Pruning vs Quantization: Which is Better? cites Learned Step Size quantization
  • Pruning vs Quantization: Which is Better? cites Data-Free Quantization Through Weight Equalization and Bias Correction
  • Pruning vs Quantization: Which is Better? cites HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision
  • Pruning vs Quantization: Which is Better? cites Up or Down? Adaptive Rounding for Post-Training Quantization
  • Up or Down? Adaptive Rounding for Post-Training Quantization cites Learned Step Size quantization
  • Up or Down? Adaptive Rounding for Post-Training Quantization cites Data-Free Quantization Through Weight Equalization and Bias Correction
  • Up or Down? Adaptive Rounding for Post-Training Quantization cites HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers24

  1. HAWQ-V3: Dyadic Neural Network QuantizationZhewei Yao, Zhen Dong, Zhangcheng Zheng, Amir Gholami et al.ICML 2021 · 240 citations
  2. Pruning vs Quantization: Which is Better?Andrey Kuzmin, Markus Nagel, Mart van Baalen, Arash Behboodi et al.NeurIPS 2023 · 152 citations
  3. Only Train Once: A One-Shot Neural Network Training And Pruning FrameworkTianyi Chen, Bo Ji, Tianyu Ding, Biyi Fang et al.NeurIPS 2021 · 135 citations
  4. Understanding and Overcoming the Challenges of Efficient Transformer QuantizationYelysei Bondarenko, Markus Nagel, Tijmen BlankevoortEMNLP 2021 · 74 citations
  5. Improving Low-Precision Network Quantization via Bin RegularizationTiantian Han, Dong Li, Ji Liu, Lu Tian et al.ICCV 2021 · 45 citations

Builds on7

  1. Learned Step Size quantizationSteven K. Esser, Jeffrey L. McKinstry, Deepika Bablani, Rathinakumar Appuswamy et al.ICLR 2020 · 1,037 citations
  2. Up or Down? Adaptive Rounding for Post-Training QuantizationMarkus Nagel, Rana Ali Amjad, Mart van Baalen, Christos Louizos et al.ICML 2020 · 816 citations
  3. HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-PrecisionZhen Dong, Zhewei Yao, Amir Gholami, Michael W. Mahoney et al.ICCV 2019 · 645 citations
  4. Data-Free Quantization Through Weight Equalization and Bias CorrectionMarkus Nagel, Mart van Baalen, Tijmen Blankevoort, Max WellingICCV 2019 · 622 citations
  5. HAWQ-V2: Hessian Aware trace-Weighted Quantization of Neural NetworksZhen Dong, Zhewei Yao, Daiyaan Arfeen, Amir Gholami et al.NeurIPS 2020 · 434 citations

Related papers

  1. Not All Bits have Equal Value: Heterogeneous Precisions via Trainable NoisePedro Savarese, Xin Yuan, Yanjing Li, Michael MaireNeurIPS 2022 · 9 citations
  2. BSQ: Exploring Bit-Level Sparsity for Mixed-Precision Neural Network QuantizationHuanrui Yang, Lin Duan, Yiran Chen, Hai LiICLR 2021 · 83 citations
  3. SDQ: Stochastic Differentiable Quantization with Mixed PrecisionXijie Huang, Zhiqiang Shen, Shichao Li, Zechun Liu et al.ICML 2022 · 49 citations
  4. Mixed Precision DNNs: All you need is a good parametrizationStefan Uhlich, Lukas Mauch, Fabien Cardinaux, Kazuki Yoshiyama et al.ICLR 2020 · 159 citations
  5. CSQ: Growing Mixed-Precision Quantization Scheme with Bi-level Continuous SparsificationLirui Xiao, Huanrui Yang, Zhen Dong, Kurt Keutzer et al.DAC 2023 · 9 citations
Dusk over the sea between two cliffs drawn in fine vertical lines