[Paper Review] Rounding Methods for Neural Networks with Low Resolution Synaptic Weights
This paper proposes two novel methods—randomized rounding and k-means-based rounding—to map high-resolution neural network weights to low-resolution fixed-point representations, significantly outperforming standard rounding. The methods enable effective training and inference with as low as 2-bit weights, demonstrating that even binary synapses can support meaningful network performance, especially when using online randomized rounding or offline k-means compression.
Neural network algorithms simulated on standard computing platforms typically make use of high resolution weights, with floating-point notation. However, for dedicated hardware implementations of such algorithms, fixed-point synaptic weights with low resolution are preferable. The basic approach of reducing the resolution of the weights in these algorithms by standard rounding methods incurs drastic losses in performance. To reduce the resolution further, in the extreme case even to binary weights, more advanced techniques are necessary. To this end, we propose two methods for mapping neural network algorithms with high resolution weights to corresponding algorithms that work with low resolution weights and demonstrate that their performance is substantially better than standard rounding. We further use these methods to investigate the performance of three common neural network algorithms under fixed memory size of the weight matrix with different weight resolutions. We show that dedicated hardware systems, whose technology dictates very low weight resolutions (be they electronic or biological) could in principle implement the algorithms we study.
Motivation & Objective
- To address the performance degradation caused by naive rounding of high-resolution neural network weights to low-resolution fixed-point representations in hardware implementations.
- To investigate whether neural network algorithms can function effectively with very low synaptic weight resolution, as found in neuromorphic hardware and biological systems.
- To develop algorithmic mapping techniques that preserve network performance when reducing weight precision, especially down to 2-bit or binary weights.
- To compare the effectiveness of online (gradient-descent compatible) and offline (post-training compression) resolution reduction methods under fixed memory constraints.
Proposed method
- Uses randomized rounding (RR) as an online method: at each training step, weights are probabilistically rounded to the nearest discrete values on an ε-grid, with probability proportional to distance from the nearest grid points.
- Applies a k-means-based offline method: after full training, the learned weight matrix is compressed into a low-resolution codebook using k-means clustering, minimizing reconstruction error.
- Compares both methods against a baseline online rounding method that simply rounds weight updates to the nearest resolvable value at each step.
- Employs a probabilistic rounding function: for a weight value $ a $, the probability of rounding to the higher or lower grid point is determined by the fractional part of $ |a|/ϵ $.
- Uses the same memory budget (400 bits) to compare performance across different bit resolutions (2 to 8 bits), evaluating model accuracy on MNIST, DNA, and RBM datasets.
- Validates results using standard benchmarks: MLP on MNIST, NADE on DNA, and RBM on MNIST with PCD-15 training.
Experimental results
Research questions
- RQ1Can neural network algorithms maintain acceptable performance when synaptic weights are reduced to 2-bit resolution using advanced rounding techniques rather than standard rounding?
- RQ2How does the performance of common neural network architectures (MLP, NADE, RBM) degrade as weight precision is reduced under a fixed memory budget?
- RQ3Is there a performance advantage in using online randomized rounding during training versus offline k-means compression after training?
- RQ4At what weight resolution does performance plateau, and is further precision gain worth the memory cost?
- RQ5Can neuromorphic hardware with inherently low-resolution or probabilistic synapses effectively implement standard neural network algorithms?
Key findings
- Randomized rounding significantly outperforms standard online rounding, especially at low resolutions (2–4 bits), maintaining meaningful performance even at 2-bit precision.
- The k-means-based offline compression method consistently outperforms both online rounding and randomized rounding in terms of final model accuracy across all tested datasets and resolutions.
- For the MLP on MNIST, performance plateaus at around 10-bit resolution; increasing beyond this offers no substantial improvement, suggesting memory is better spent on larger hidden layers.
- On the DNA dataset, the optimal resolution for the MLP was found to be 6 bits per weight under fixed memory, indicating a trade-off between precision and model capacity.
- Even 2-bit weights produced recognizable digit samples in RBMs trained with randomized rounding, demonstrating that low-resolution weights can still capture meaningful features.
- The study shows that 2-bit weights are sufficient for functional neural network operation, supporting the feasibility of binary synapses in both neuromorphic hardware and biological neural network models.
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.