[Paper Review] Whetstone: A Method for Training Deep Artificial Neural Networks for Binary Communication
Whetstone is a novel training method that enables deep neural networks to use binary, spike-like communication without sacrificing accuracy. By iteratively sharpening network activations via a custom backpropagation modification, it produces models compatible with low-power neuromorphic hardware while maintaining performance comparable to full-precision networks.
This paper presents a new technique for training networks for low-precision communication. Targeting minimal communication between nodes not only enables the use of emerging spiking neuromorphic platforms, but may additionally streamline processing conventionally. Low-power and embedded neuromorphic processors potentially offer dramatic performance-per-Watt improvements over traditional von Neumann processors, however programming these brain-inspired platforms generally requires platform-specific expertise which limits their applicability. To date, the majority of artificial neural networks have not operated using discrete spike-like communication. We present a method for training deep spiking neural networks using an iterative modification of the backpropagation optimization algorithm. This method, which we call Whetstone, effectively and reliably configures a network for a spiking hardware target with little, if any, loss in performance. Whetstone networks use single time step binary communication and do not require a rate code or other spike-based coding scheme, thus producing networks comparable in timing and size to conventional ANNs, albeit with binarized communication. We demonstrate Whetstone on a number of image classification networks, describing how the sharpening process interacts with different training optimizers and changes the distribution of activity within the network. We further note that Whetstone is compatible with several non-classification neural network applications, such as autoencoders and semantic segmentation. Whetstone is widely extendable and currently implemented using custom activation functions within the Keras wrapper to the popular TensorFlow machine learning framework.
Motivation & Objective
- To develop a method for training deep neural networks with binary, spike-like communication to enable efficient deployment on neuromorphic hardware.
- To reduce communication and computational costs in deep learning systems without significant performance degradation.
- To bridge the gap between conventional deep learning frameworks and spiking neural network hardware by maintaining compatibility with Keras and TensorFlow.
- To enable low-precision, low-power inference on embedded and resource-constrained platforms using standard deep learning workflows.
- To provide a plug-and-play solution for converting trained ANNs into networks suitable for neuromorphic accelerators with minimal user intervention.
Proposed method
- Whetstone uses a modified backpropagation algorithm that iteratively sharpens the activation functions of each layer toward binary thresholds.
- It employs a state-based training loop with 'sharpening' and 'wait' states to control the rate of activation sharpening per epoch.
- The sharpening process is applied per batch, enabling gradual and stable convergence, with a user-defined sharpening rate (≤1.0) per layer per epoch.
- Custom Keras-compatible layers replace standard ReLU or sigmoid activations with parameterized spiking versions to enable binary communication.
- A sharpening callback is integrated into the training pipeline, allowing dynamic or manual control over the sharpening schedule.
- The final network output is encoded via a non-learning softmax layer or winner-take-all decoding, suitable for neuromorphic hardware or host-side inference.
Experimental results
Research questions
- RQ1Can deep neural networks be trained to use binary, spike-like communication while maintaining classification accuracy?
- RQ2How does iterative activation sharpening affect the training dynamics and convergence of deep networks?
- RQ3To what extent can Whetstone preserve performance when applied to different network architectures and optimizers?
- RQ4Can Whetstone be seamlessly integrated into existing deep learning workflows without requiring platform-specific expertise?
- RQ5What is the impact of sharpening rate and training mode (uniform vs. bottom-up) on network performance and convergence?
Key findings
- Whetstone enables deep neural networks to use single-time-step binary communication with minimal to no performance loss compared to full-precision models.
- The method maintains compatibility with standard Keras and TensorFlow workflows, allowing users to train models using familiar tools and hyperparameters.
- Different training optimizers interact with the sharpening process in distinct ways, affecting the distribution of activity within the network.
- The sharpening process is robust across multiple datasets, including MNIST, Fashion-MNIST, CIFAR, and COCO, demonstrating generalization across image classification tasks.
- Whetstone is compatible with non-classification tasks such as autoencoders and semantic segmentation, indicating broad applicability beyond classification.
- The method supports deployment on spiking neuromorphic hardware via direct conversion to leaky-integrate-and-fire models, enabling low-power inference.
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.