[Paper Review] F8Net: Fixed-Point 8-bit Only Multiplication for Network Quantization
F8Net quantizes neural networks using only 8-bit fixed-point multiplication, automatically selecting per-layer fixed-point formats and unifying fixed-point quantization with PACT, achieving competitive or superior accuracy to INT32/float-baseline models on ImageNet.
Neural network quantization is a promising compression technique to reduce memory footprint and save energy consumption, potentially leading to real-time inference. However, there is a performance gap between quantized and full-precision models. To reduce it, existing quantization approaches require high-precision INT32 or full-precision multiplication during inference for scaling or dequantization. This introduces a noticeable cost in terms of memory, speed, and required energy. To tackle these issues, we present F8Net, a novel quantization framework consisting of only fixed-point 8-bit multiplication. To derive our method, we first discuss the advantages of fixed-point multiplication with different formats of fixed-point numbers and study the statistical behavior of the associated fixed-point numbers. Second, based on the statistical and algorithmic analysis, we apply different fixed-point formats for weights and activations of different layers. We introduce a novel algorithm to automatically determine the right format for each layer during training. Third, we analyze a previous quantization algorithm -- parameterized clipping activation (PACT) -- and reformulate it using fixed-point arithmetic. Finally, we unify the recently proposed method for quantization fine-tuning and our fixed-point approach to show the potential of our method. We verify F8Net on ImageNet for MobileNet V1/V2 and ResNet18/50. Our approach achieves comparable and better performance, when compared not only to existing quantization techniques with INT32 multiplication or floating-point arithmetic, but also to the full-precision counterparts, achieving state-of-the-art performance.
Motivation & Objective
- Motivate 8-bit fixed-point multiplication as a viable alternative to INT32/float for quantized models.
- Analyze fixed-point representations and identify how per-layer fractional lengths impact quantization error.
- Develop training techniques to unify fixed-point quantization with PACT and BN statistics for efficient inference.
- Propose a method to determine and share fractional lengths and clipping levels across layers, especially in residual blocks.
- Empirically validate F8Net on ImageNet across MobileNet and ResNet architectures, comparing with existing quantization methods.
Proposed method
- Analyze fixed-point formats and statistically characterize quantization error for 8-bit fixed-point representations.
- Derive semi-empirical formulas to determine optimal fractional length from layer statistics (standard deviation of weights/activations).
- Unify parameterized clipping activation (PACT) with fixed-point quantization to enable trainable clipping within fixed-point arithmetic.
- Quantize weights/activations with per-layer fractional lengths determined during training; adapt BN running statistics via double forward passes to fuse Conv+BN.
- Relate and absorb inter-layer scaling factors to compute effective weights for quantization, including master/sibling clipping-level sharing in residual blocks.
- Integrate a recent quantization-fine-tuning approach to verify performance with fixed-point only multiplication.
Experimental results
Research questions
- RQ1Can 8-bit fixed-point arithmetic achieve comparable or better accuracy than INT32-based quantization and floating-point baselines on standard CNNs?
- RQ2How should fractional length (per-layer fixed-point format) be chosen to minimize quantization error across diverse layers and distributions?
- RQ3Can PACT activation clipping be effectively reformulated for fixed-point arithmetic to improve training stability and accuracy?
- RQ4What strategies (e.g., BN fusion, fractional-length sharing) best preserve accuracy in residual networks when using 8-bit fixed-point multiplication?
- RQ5Do per-layer, automatically determined formats enable competitive results on ImageNet with MobileNet and ResNet families?
Key findings
- F8Net demonstrates state-of-the-art performance for 8-bit fixed-point multiplication quantization on ImageNet for MobileNet V1/V2 and ResNet18/50. (as reported in the paper)
- 8-bit fixed-point quantization, with per-layer fractional lengths determined from layer statistics, can achieve comparable or better performance than full-precision baselines in several cases.
- A unified training approach that combines fixed-point quantization with PACT-like clipping yields effective training dynamics and high accuracy.
- Fractional length varies across layers, including within residual blocks, and sharing clipping-levels across siblings helps maintain consistency while preserving performance.
- Experiments show F8Net outperforms or matches methods relying on INT32 multiplication or dyadic scaling, indicating high-precision multiplication is not essential for strong quantized model performance.
- Tiny fine-tuning on well-trained full-precision models further corroborates the robustness and practicality of the fixed-point approach.
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.