Abstract
The memory requirement of deep learning algorithms is often incompatible with the memory restrictions of energy-efficient hardware. While techniques like pruning and quantization can reduce the footprint of pre-trained models, training directly on-chip remains a significant challenge due to strict memory constraints. This paper presents a implementation of Deep Rewiring (DEEP R) on a SpiNNaker 2 prototype chip. By continuously rewiring the network to maintain a connectivity level of just 1.3%, the system trains a LeNet-300-100 network entirely within the 64 KB local memory of a single core. The resulting model achieves 96.6% accuracy on the MNIST dataset while improving energy efficiency by two orders of magnitude compared to standard CPU implementations.
Introduction: The Memory Bottleneck
Deep learning's success is largely driven by massive models with millions of parameters. However, the training phase is notoriously memory-intensive, requiring the storage of dense weight matrices and gradients. This "memory bottleneck" prevents the deployment of on-chip learning in low-power edge devices and neuromorphic systems, which typically feature small, local SRAM instead of large external DRAM. The authors address this by asking: Can we train a network that is sparse from the very first iteration, staying within the strict memory limits of a single neuromorphic core throughout the entire process?
Methodology: On-Chip Training with DEEP R
To overcome these limitations, the researchers utilized the SpiNNaker 2 prototype system. Each processing element (PE) on the chip contains an ARM M4F core with only 64 KB of local SRAM. The core of their approach is the Deep Rewiring (DEEP R) algorithm.
Unlike traditional pruning, which happens after training, DEEP R enforces sparsity from the start. If a connection's weight falls below a certain threshold, it is "deleted" (becomes dormant), and a new connection is randomly initialized elsewhere. This dynamic process allows the network to explore the weight space while keeping the number of active parameters constant and extremely low.
Hardware and Data Optimization
The SpiNNaker 2 prototype includes dedicated hardware accelerators for exponential functions (EXP) and random number generation (PRNG), which are critical for the softmax layers and the stochastic nature of DEEP R. Furthermore, the researchers implemented a custom Compressed Coordinate (COO) matrix format to store weights. By only storing the row, column, weight, and sign of active connections, they drastically reduced the memory footprint compared to standard dense matrices.
Key Results
On the MNIST handwritten digit benchmark, the system achieved a classification accuracy of 96.6% at convergence. This is particularly impressive given that only 1.3% of the potential connections were active at any time. In comparison, a fixed sparse network without rewiring only reached 81.3% accuracy.
- Extreme Memory Efficiency: The entire training process for a LeNet-300-100 style architecture fit into less than 40 KB of SRAM on a single core.
- Energy Gains: Training on the SpiNNaker 2 prototype was approximately 100 times more energy-efficient than a standard x86 CPU implementation.
- Scaling: To scale beyond one core, the authors used a 2D "checkerboard" partitioning scheme. By splitting weight matrices into a grid across four cores, they achieved a 7.7x speedup compared to a single-core software-only approach while maintaining per-core memory constraints.
Conclusion and Future Work
This work demonstrates that extreme sparsity is not just a post-processing step but a powerful tool for enabling training on resource-constrained hardware. By combining dynamic rewiring with hardware-optimized data structures, the SpiNNaker 2 prototype proves that high-performance deep learning can be achieved within a tiny memory footprint. Future research will focus on scaling these techniques to larger datasets like CIFAR-10 and integrating quantization to further enhance performance on the full-scale SpiNNaker 2 system.
Summary updated