[Paper Review] RPR: Random Partition Relaxation for Training; Binary and Ternary Weight Neural Networks
RPR (Random Partition Relaxation) is a novel training method for binary and ternary weight neural networks that alternately relaxes random partitions of quantized weights to continuous values during SGD-based optimization, achieving state-of-the-art accuracy on GoogLeNet and competitive results on ResNet-18 and ResNet-50 while maintaining compatibility with standard deep learning frameworks.
We present Random Partition Relaxation (RPR), a method for strong quantization of neural networks weight to binary (+1/-1) and ternary (+1/0/-1) values. Starting from a pre-trained model, we quantize the weights and then relax random partitions of them to their continuous values for retraining before re-quantizing them and switching to another weight partition for further adaptation. We demonstrate binary and ternary-weight networks with accuracies beyond the state-of-the-art for GoogLeNet and competitive performance for ResNet-18 and ResNet-50 using an SGD-based training method that can easily be integrated into existing frameworks.
Motivation & Objective
- To address the challenge of deploying deep neural networks on low-power IoT and mobile devices by reducing model size and computation cost through strong weight quantization.
- To overcome the accuracy degradation typically seen in binary and ternary weight networks (BWNs/TWNs) after quantization and retraining.
- To develop a training method that maintains compatibility with standard deep learning frameworks by using standard SGD optimization, unlike complex alternatives such as ADMM.
- To achieve state-of-the-art accuracy for binary and ternary weight networks without requiring architectural modifications or specialized hardware-aware quantization levels.
Proposed method
- RPR formulates the training of quantized networks as a mixed-integer non-linear program and uses alternating optimization to relax small, randomly selected partitions of weights from quantized values to continuous values during training.
- The method alternates between quantizing all weights and relaxing a random subset to continuous values, allowing gradient updates on the relaxed weights while keeping the rest quantized.
- After retraining on the relaxed partition, the weights are re-quantized, and the process repeats with a new random partition, enabling progressive refinement of the network.
- The approach is fully compatible with standard SGD-based training pipelines and can be easily integrated into existing deep learning frameworks such as PyTorch.
- The method supports both binary ({-1, 1}) and ternary ({-1, 0, 1}) weight quantization, with the option to exclude first and last layers from quantization.
Experimental results
Research questions
- RQ1Can a simple, SGD-compatible training method achieve state-of-the-art accuracy in binary and ternary weight neural networks without requiring complex optimization or architectural changes?
- RQ2Does alternating relaxation of random weight partitions improve generalization and accuracy in strongly quantized networks compared to standard quantization methods?
- RQ3Can RPR outperform existing state-of-the-art methods like ADMM and TTQ while maintaining hardware efficiency and framework compatibility?
- RQ4How does RPR perform on different network architectures such as GoogLeNet, ResNet-18, and ResNet-50 in terms of top-1 and top-5 accuracy under binary and ternary weight constraints?
Key findings
- RPR achieves a top-1 accuracy of 64.88% and top-5 accuracy of 86.05% on GoogLeNet with ternary weights, surpassing the previous state-of-the-art (ADMM) by 1.7% and 1.76% respectively.
- For binary weights on GoogLeNet, RPR achieves 62.01% top-1 and 84.83% top-5 accuracy, outperforming XNOR-Net BWN and ADMM methods.
- On ResNet-18, RPR achieves 66.31% top-1 and 87.84% top-5 accuracy with ternary weights, matching the performance of ADMM while using standard SGD.
- For binary weights on ResNet-18, RPR achieves 64.62% top-1 and 86.01% top-5 accuracy, outperforming XNOR-Net BWN and INQ.
- On ResNet-50, RPR achieves 71.83% top-1 and 90.28% top-5 accuracy with ternary weights, closely approaching ADMM's performance while avoiding complex optimization.
- The method maintains compatibility with standard deep learning frameworks and does not require code or model releases from prior methods like ADMM, enabling broader reproducibility and integration.
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.