[Paper Review] FracBits: Mixed Precision Quantization via Fractional Bit-Widths
FracBits proposes a differentiable, one-shot mixed precision quantization method that treats bit-widths as continuous, fractional values between integer bit-widths, enabling end-to-end optimization of layer-wise and kernel-wise precision. By interpolating quantized weights from neighboring bit-widths and using a differentiable regularization term, it achieves state-of-the-art accuracy under strict model size and computation constraints on ImageNet.
Model quantization helps to reduce model size and latency of deep neural networks. Mixed precision quantization is favorable with customized hardwares supporting arithmetic operations at multiple bit-widths to achieve maximum efficiency. We propose a novel learning-based algorithm to derive mixed precision models end-to-end under target computation constraints and model sizes. During the optimization, the bit-width of each layer / kernel in the model is at a fractional status of two consecutive bit-widths which can be adjusted gradually. With a differentiable regularization term, the resource constraints can be met during the quantization-aware training which results in an optimized mixed precision model. Further, our method can be naturally combined with channel pruning for better computation cost allocation. Our final models achieve comparable or better performance than previous quantization methods with mixed precision on MobilenetV1/V2, ResNet18 under different resource constraints on ImageNet dataset.
Motivation & Objective
- Address the inefficiency and high exploration cost of reinforcement learning-based mixed precision quantization methods.
- Enable end-to-end, differentiable optimization of bit-width allocation across layers or kernels for quantized neural networks.
- Improve model accuracy under strict resource constraints (model size and computation cost) by allowing fractional bit-widths.
- Support both layer-wise and kernel-wise mixed precision quantization in a unified, differentiable framework.
- Reduce the need for expensive search or training of multiple model variants by enabling one-shot training with continuous bit-width parameters.
Proposed method
- Formulate bit-width as a continuous, learnable parameter that interpolates between two adjacent integer bit-widths (e.g., 3.2-bit) for each layer or kernel.
- Use a differentiable interpolation function to compute quantized activations and weights as a weighted average of the quantized outputs at the two neighboring bit-widths.
- Introduce a differentiable regularization term that penalizes resource usage (model size or FLOPs) to enforce target constraints during training.
- Train the entire network end-to-end with the continuous bit-width parameters, enabling gradient-based optimization of precision allocation.
- Apply Straight-Through Estimation (STE) to backpropagate gradients through the quantization operation, maintaining differentiability.
- Support both channel-wise and kernel-wise precision allocation by assigning independent fractional bit-widths to each convolutional kernel or channel group.
Experimental results
Research questions
- RQ1Can mixed precision quantization be formulated as a differentiable optimization problem over continuous bit-widths?
- RQ2Can a one-shot training procedure outperform reinforcement learning-based or iterative search-based mixed precision methods in accuracy and efficiency?
- RQ3Does allowing fractional bit-widths improve model accuracy under strict model size and computation constraints compared to uniform or discrete mixed precision?
- RQ4Can kernel-wise precision allocation further improve performance over layer-wise allocation in low-bit quantization?
- RQ5How does the proposed method compare to strong baselines like SAT and AutoQ in terms of accuracy and resource efficiency?
Key findings
- FracBits-SAT achieves a 3.0% absolute top-1 accuracy gain over the uniform quantization baseline SAT on 2-bit MobileNet V1 and 2.8% gain on 2-bit MobileNet V2.
- On the challenging 3-bit setting, FracBits-SAT outperforms SAT by 0.6% on top-1 accuracy for MobileNet V1 and 0.8% for MobileNet V2.
- For kernel-wise quantization, FB-SAT-K achieves a 1.0% and 0.8% top-1 accuracy gain over SAT on 3-bit and 4-bit MobileNet V2, respectively.
- FB-SAT-K improves over layer-wise FracBits-SAT by 0.4% and 0.3% on 3-bit and 4-bit MobileNet V2, demonstrating the benefit of kernel-wise precision allocation.
- On ResNet18, FB-SAT-K achieves a 0.5% top-1 accuracy gain over SAT at 3-bit and 4-bit, with consistent improvements across both bit-widths.
- The method achieves state-of-the-art performance under model size and computation cost constraints, outperforming HAQ, AutoQ, and SAT across all evaluated settings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.