Skip to main content
QUICK REVIEW

[논문 리뷰] BSQ: Exploring Bit-Level Sparsity for Mixed-Precision Neural Network Quantization

Huanrui Yang, Lin Duan|arXiv (Cornell University)|2021. 02. 20.
Advanced Neural Network ApplicationsComputer Science참고 문헌 29인용 수 34
한 줄 요약

BSQ는 가중치의 비트 수준 표현을 공동으로 학습하도록 비트-수준 희소성 규화를 도입하고, differentiable 비트-희소성 규제를 통해 단일 그래디언트 기반 최적화로 층별 동적 혼합 정밀도 양자화를 가능하게 한다.

ABSTRACT

Mixed-precision quantization can potentially achieve the optimal tradeoff between performance and compression rate of deep neural networks, and thus, have been widely investigated. However, it lacks a systematic method to determine the exact quantization scheme. Previous methods either examine only a small manually-designed search space or utilize a cumbersome neural architecture search to explore the vast search space. These approaches cannot lead to an optimal quantization scheme efficiently. This work proposes bit-level sparsity quantization (BSQ) to tackle the mixed-precision quantization from a new angle of inducing bit-level sparsity. We consider each bit of quantized weights as an independent trainable variable and introduce a differentiable bit-sparsity regularizer. BSQ can induce all-zero bits across a group of weight elements and realize the dynamic precision reduction, leading to a mixed-precision quantization scheme of the original model. Our method enables the exploration of the full mixed-precision space with a single gradient-based optimization process, with only one hyperparameter to tradeoff the performance and compression. BSQ achieves both higher accuracy and higher bit reduction on various model architectures on the CIFAR-10 and ImageNet datasets comparing to previous methods.

연구 동기 및 목표

  • Motivate mixed-precision quantization for optimal accuracy-compression tradeoffs.
  • Propose a differentiable framework to explore the full mixed-precision space without exhaustive NAS.
  • Introduce bit-level sparsity regularization to dynamically adjust layer precision.
  • Enable efficient, single-pass gradient-based optimization to yield mixed-precision schemes.
  • Provide a memory-aware objective to balance accuracy and model size during training.

제안 방법

  • Represent each bit of a fixed-point weight as an independent trainable variable.
  • Use a straight-through estimator to enable gradient-based training of bit-level representations.
  • Introduce a bit-level group Lasso regularizer to induce sparsity at the bit level across layers.
  • Apply a memory consumption-aware reweighting of the regularizer to favor pruning more for larger layers.
  • Perform periodic re-quantization and precision adjustment to dynamically finalize a mixed-precision scheme.
  • Finetune the final quantized model to recover accuracy after precision adjustments.]
  • research_questions:[
  • How can bit-level sparsity be leveraged to discover optimal mixed-precision quantization schemes in a single training pass?
  • Can a differentiable, bit-level regularizer effectively reduce precision across layers while maintaining or improving accuracy?
  • What is the impact of layer-wise memory-aware regularization on the achieved compression-accuracy tradeoff?
  • How does BSQ compare to existing fixed-point and mixed-precision quantization methods in CIFAR-10 and ImageNet?
  • Is dynamic precision reduction feasible without incurring prohibitive training costs?

실험 결과

연구 질문

  • RQ1How can bit-level sparsity be leveraged to discover optimal mixed-precision quantization schemes in a single training pass?
  • RQ2Can a differentiable, bit-level regularizer effectively reduce precision across layers while maintaining or improving accuracy?
  • RQ3What is the impact of layer-wise memory-aware regularization on the achieved compression-accuracy tradeoff?
  • RQ4How does BSQ compare to existing fixed-point and mixed-precision quantization methods in CIFAR-10 and ImageNet?
  • RQ5Is dynamic precision reduction feasible without incurring prohibitive training costs?

주요 결과

  • BSQ achieves higher accuracy and greater bit reduction than prior methods on CIFAR-10 and ImageNet under mixed-precision setups.
  • Layer-wise memory-aware reweighting improves compression-accuracy tradeoffs by preventing over-penalization of smaller layers and under-penalization of larger layers.
  • BSQ produces quantization schemes with most important layers receiving higher precision, consistent with layer importance assessments.
  • Quantization schemes found by BSQ from scratch can outperform DoReFa-Net baselines when fine-tuned under the final scheme.
  • The approach enables dynamic precision reduction via re-quantization and precision adjustment without altering the forward STE weight reconstruction.
  • BsQ can achieve 0-bit pruning in some layers without breaking residual pathways in networks like ResNet.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.