[Paper Review] Learning low-precision neural networks without Straight-Through Estimator(STE)
This paper proposes alpha-blending (AB), a novel method to train low-precision neural networks without relying on the Straight-Through Estimator (STE). AB replaces the quantized weight in the loss function with an affine combination of full-precision and quantized weights, gradually increasing the blending coefficient α from 0 to 1, enabling stable gradient flow through the full-precision path. The method achieves state-of-the-art accuracy, improving top-1 accuracy by 2.93% on 4-bit weight and 8-bit activation ImageNet models compared to prior STE-based quantization.
The Straight-Through Estimator (STE) is widely used for back-propagating gradients through the quantization function, but the STE technique lacks a complete theoretical understanding. We propose an alternative methodology called alpha-blending (AB), which quantizes neural networks to low-precision using stochastic gradient descent (SGD). Our method (AB) avoids STE approximation by replacing the quantized weight in the loss function by an affine combination of the quantized weight w_q and the corresponding full-precision weight w with non-trainable scalar coefficient $α$ and $1-α$. During training, $α$ is gradually increased from 0 to 1; the gradient updates to the weights are through the full-precision term, $(1-α)w$, of the affine combination; the model is converted from full-precision to low-precision progressively. To evaluate the method, a 1-bit BinaryNet on CIFAR10 dataset and 8-bits, 4-bits MobileNet v1, ResNet_50 v1/2 on ImageNet dataset are trained using the alpha-blending approach, and the evaluation indicates that AB improves top-1 accuracy by 0.9%, 0.82% and 2.93% respectively compared to the results of STE based quantization.
Motivation & Objective
- To address the lack of theoretical grounding in the Straight-Through Estimator (STE) for gradient backpropagation in quantized neural networks.
- To develop a training methodology that avoids STE’s empirical approximation by enabling stable gradient updates through full-precision weights during quantization.
- To evaluate the effectiveness of the proposed method on low-precision models, including 1-bit BinaryNet and 4-bit/8-bit MobileNet and ResNet architectures.
- To demonstrate that alpha-blending achieves higher inference accuracy than state-of-the-art STE-based quantization techniques.
Proposed method
- Replace the quantized weight wq in the loss function with an affine combination: w_ab = (1 - α)w + αwq, where w is the full-precision weight and α is a non-trainable scalar.
- Gradually increase α from 0.0 to 1.0 during training, progressively shifting the model from full-precision to low-precision behavior.
- Perform gradient updates on the full-precision component (1 - α)w, ensuring gradients flow through a differentiable path during backpropagation.
- Use per-layer or per-channel quantization strategies to apply AB to different network components, including weights and activations.
- Train models using stochastic gradient descent (SGD) with the modified loss function, maintaining full-precision weights as trainable parameters throughout training.
- Convert the final model to low-precision inference format after training, with weights and activations quantized based on the final α = 1.0.
Experimental results
Research questions
- RQ1Can a training method be designed that avoids the use of STE while maintaining or improving quantization accuracy?
- RQ2Does progressive blending of full-precision and quantized weights enable stable and effective backpropagation in low-precision networks?
- RQ3How does alpha-blending compare to STE-based quantization in terms of top-1 accuracy on standard benchmarks like CIFAR10 and ImageNet?
- RQ4Can AB achieve competitive performance with mixed-precision quantization (e.g., 4-bit weights and 8-bit activations) without relying on STE?
Key findings
- Alpha-blending improved top-1 accuracy by 0.9% on 1-bit BinaryNet for CIFAR10 compared to STE-based quantization.
- For 8-bit weight and 8-bit activation quantization, AB achieved 0.82% higher top-1 accuracy than the state-of-the-art STE-based method on ImageNet.
- On 4-bit weight and 8-bit activation models, AB outperformed prior work by 2.93% in top-1 accuracy on average across MobileNet and ResNet architectures.
- AB’s 4-bit weight and 4-bit activation quantization achieved similar accuracy to the best-known 4-bit weight and 8-bit activation method, demonstrating its effectiveness in mixed-precision settings.
- The per-channel quantization variant of AB achieved 0.9% accuracy drop on average for 4-bit weight and 8-bit activation, outperforming prior results by 2.93%.
- The method successfully enabled training of low-precision models without gradient vanishing issues, even in the presence of the non-differentiable quantization function.
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.