[Paper Review] GXNOR-Net: Training deep neural networks with ternary weights and activations without full-precision memory under a unified discretization framework
GXNOR-Net proposes a unified discretization framework for training deep neural networks with ternary weights and activations without storing full-precision weights during training. By introducing a multi-step activation discretization with derivative approximation and a discrete state transition (DST) method that avoids full-precision weight storage, the framework enables end-to-end backpropagation on discrete networks, achieving state-of-the-art performance on MNIST, CIFAR-10, and SVHN with hardware-friendly sparsity and event-driven computation potential.
There is a pressing need to build an architecture that could subsume these networks under a unified framework that achieves both higher performance and less overhead. To this end, two fundamental issues are yet to be addressed. The first one is how to implement the back propagation when neuronal activations are discrete. The second one is how to remove the full-precision hidden weights in the training phase to break the bottlenecks of memory/computation consumption. To address the first issue, we present a multi-step neuronal activation discretization method and a derivative approximation technique that enable the implementing the back propagation algorithm on discrete DNNs. While for the second issue, we propose a discrete state transition (DST) methodology to constrain the weights in a discrete space without saving the hidden weights. Through this way, we build a unified framework that subsumes the binary or ternary networks as its special cases, and under which a heuristic algorithm is provided at the website https://github.com/AcrossV/Gated-XNOR. More particularly, we find that when both the weights and activations become ternary values, the DNNs can be reduced to sparse binary networks, termed as gated XNOR networks (GXNOR-Nets) since only the event of non-zero weight and non-zero activation enables the control gate to start the XNOR logic operations in the original binary networks. This promises the event-driven hardware design for efficient mobile intelligence. We achieve advanced performance compared with state-of-the-art algorithms. Furthermore, the computational sparsity and the number of states in the discrete space can be flexibly modified to make it suitable for various hardware platforms.
Motivation & Objective
- To unify binary and ternary neural networks under a single framework that supports flexible discretization of weights and activations.
- To enable backpropagation in deep networks where both weights and activations are constrained to discrete values, overcoming the non-differentiability of discrete functions.
- To eliminate the need to store full-precision hidden weights during training, reducing memory and computation bottlenecks.
- To enable event-driven, sparse computation by treating non-zero weight-activation pairs as control signals for computation units.
- To provide a reconfigurable framework suitable for diverse hardware platforms by adjusting the number of discrete states and sparsity.
Proposed method
- A multi-step neuronal activation discretization function maps continuous activations into a discrete set of values, enabling discrete optimization.
- An approximated derivative technique is introduced to handle the non-differentiable nature of the discrete activation function during backpropagation.
- A discrete state transition (DST) methodology uses a probabilistic projection operator to constrain synaptic weights to discrete values without storing full-precision weights.
- The DST method ensures that weight updates occur directly in the discrete space, eliminating the need for full-precision intermediate representations.
- The framework supports reconfigurable state counts for weights and activations, allowing flexible trade-offs between accuracy and hardware efficiency.
- The resulting network, GXNOR-Net, operates as a sparse binary network where only non-zero weight-activation pairs trigger computation, enabling event-driven hardware design.
Experimental results
Research questions
- RQ1Can backpropagation be effectively implemented in deep neural networks when both weights and activations are constrained to discrete values?
- RQ2Is it possible to train deep networks with discrete weights without storing full-precision intermediate weights?
- RQ3How does the number of discrete states in weights and activations affect network performance and hardware efficiency?
- RQ4Can the discrete nature of weights and activations be leveraged to enable event-driven, sparse computation for energy-efficient inference?
- RQ5What is the optimal configuration of discrete state counts for achieving high accuracy with minimal hardware overhead?
Key findings
- GXNOR-Net achieves state-of-the-art performance on MNIST, CIFAR-10, and SVHN with ternary weights and activations, outperforming existing binary and ternary networks.
- The optimal configuration occurs at 6 discrete states for weights and 4 for activations, indicating a trade-off between sparsity and representational capacity.
- The derivative approximation using a rectangular pulse shape yields comparable accuracy to triangular pulses but with lower hardware complexity.
- The framework enables a sparse binary network behavior where computation units are activated only when both weight and activation are non-zero, enabling event-driven hardware design.
- The probabilistic projection operator in DST successfully maintains weight discretization without full-precision storage, reducing memory overhead during training.
- The method supports flexible reconfiguration of discrete state counts, making it adaptable to various hardware platforms with different memory and computational constraints.
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.