[Paper Review] FQ-Conv: Fully Quantized Convolution for Efficient and Accurate Inference
This paper proposes FQ-Conv, a fully quantized convolutional network that performs all computations in low precision—ternary weights and 5-bit activations—without relying on higher-precision Batch Normalization (BN) or nonlinearities. By using a learnable quantization function and gradual quantization training, the method achieves accuracy within 0.5% of full-precision models on ImageNet, KWS, and CIFAR-100, while being robust to hardware noise, making it ideal for edge and analog accelerators.
Deep neural networks (DNNs) can be made hardware-efficient by reducing the numerical precision of the weights and activations of the network and by improving the network's resilience to noise. However, this gain in efficiency often comes at the cost of significantly reduced accuracy. In this paper, we present a novel approach to quantizing convolutional neural network. The resulting networks perform all computations in low-precision, without requiring higher-precision BN and nonlinearities, while still being highly accurate. To achieve this result, we employ a novel quantization technique that learns to optimally quantize the weights and activations of the network during training. Additionally, to enhance training convergence we use a new training technique, called gradual quantization. We leverage the nonlinear and normalizing behavior of our quantization function to effectively remove the higher-precision nonlinearities and BN from the network. The resulting convolutional layers are fully quantized to low precision, from input to output, ideal for neural network accelerators on the edge. We demonstrate the potential of this approach on different datasets and networks, showing that ternary-weight CNNs with low-precision in- and outputs perform virtually on par with their full-precision equivalents. Finally, we analyze the influence of noise on the weights, activations and convolution outputs (multiply-accumulate, MAC) and propose a strategy to improve network performance under noisy conditions.
Motivation & Objective
- To eliminate high-precision BN and nonlinearities in quantized CNNs, reducing hardware complexity.
- To enable end-to-end low-precision inference by fully quantizing weights, activations, and outputs.
- To improve accuracy of low-precision networks through a learnable quantization function and gradual quantization training.
- To evaluate robustness of quantized networks under realistic noise conditions, especially for analog accelerators.
- To demonstrate that ternary-weight CNNs with low-precision in- and outputs can match full-precision accuracy when trained with the proposed method.
Proposed method
- Proposes a learnable quantization function that optimizes quantization levels for weights and activations during training, rather than relying on statistical distributions.
- Introduces gradual quantization, a training schedule that progressively applies quantization to stabilize convergence and improve accuracy.
- Leverages the nonlinear and normalizing properties of the quantization function to replace the need for BN and high-precision nonlinearities.
- Employs a differentiable quantization function that enables backpropagation through quantized operations, allowing joint optimization of quantization levels and network weights.
- Uses a noise injection strategy during training to improve robustness to hardware noise in analog accelerators.
- Applies the method to standard CNNs on ImageNet, KWS, and CIFAR-100, using ternary weights and 5-bit activations throughout.
Experimental results
Research questions
- RQ1Can a fully quantized CNN with ternary weights and low-precision activations achieve accuracy close to full-precision models?
- RQ2Can the need for high-precision BN and nonlinearities be eliminated in low-precision networks through learned quantization?
- RQ3Does gradual quantization training improve convergence and accuracy in fully quantized networks?
- RQ4How robust are fully quantized networks to noise in weights, activations, and MAC outputs, especially in analog accelerator settings?
- RQ5Can the proposed method be generalized across different datasets and network architectures?
Key findings
- Ternary-weight CNNs with 5-bit activations and no high-precision BN or nonlinearities achieved 94.32% top-1 accuracy on ImageNet, within 0.5% of the full-precision baseline.
- On the Google Speech Commands dataset, the fully quantized network achieved 94.3% accuracy, matching the full-precision model.
- On CIFAR-100, the fully quantized network reached 76.8% accuracy, nearly matching the 77.1% of the full-precision model.
- Training with noise improved robustness: under 20% noise (σ), test accuracy dropped from 73.8% to 75.4% when trained with noise, compared to 65.1% without.
- With 30% noise, the network trained with noise maintained 87.7% accuracy on KWS and 69.2% on CIFAR-100, showing strong resilience.
- The proposed method enables fully quantized inference with no precision loss, making it ideal for energy-efficient edge and analog accelerators.
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.