Hardware architecture and routing-aware training for optimal memory usage: a case study
Jimmy Weber, Theo Ballet, Melika Payvand
TL;DR
The paper addresses memory bottlenecks in neuromorphic hardware by co-designing routing-aware training. It extends the DeepR framework with a hardware-aware sparsity constraint defined as $S(\theta)=\frac{|\theta|_0}{N^2}$ and introduces a proxy mapping function over hop-dependent sparsity $p_d(\theta)$ to approximate placement and routing. Evaluated on Mosaic with SHD, the routing-aware model achieves higher accuracy at the same parameter count and the same accuracy with markedly reduced memory, illustrating the value of algorithm–hardware co-design. This work demonstrates a practical pathway to scalable deployment of larger models in memory-constrained event-based hardware.
Abstract
Efficient deployment of neural networks on resource-constrained hardware demands optimal use of on-chip memory. In event-based processors, this is particularly critical for routing architectures, where substantial memory is dedicated to managing network connectivity. While prior work has focused on optimizing event routing during hardware design, optimizing memory utilization for routing during network training remains underexplored. Key challenges include: (i) integrating routing into the loss function, which often introduces non-differentiability, and (ii) computational expense in evaluating network mappability to hardware. We propose a hardware-algorithm co-design approach to train routing-aware neural networks. To address challenge (i), we extend the DeepR training algorithm, leveraging dynamic pruning and random re-assignment to optimize memory use. For challenge (ii), we introduce a proxy-based approximation of the mapping function to incorporate placement and routing constraints efficiently. We demonstrate our approach by optimizing a network for the Spiking Heidelberg Digits (SHD) dataset using a small-world connectivity-based hardware architecture as a case study. The resulting network, trained with our routing-aware methodology, is fully mappable to the hardware, achieving 5% more accuracy using the same number of parameters, and iso-accuracy with 10x less memory usage, compared to non-routing-aware training methods. This work highlights the critical role of co-optimizing algorithms and hardware to enable efficient and scalable solutions for constrained environments.
