Abstract
Compute-in-memory (CIM) accelerators for spiking neural networks (SNNs) are promising solutions to enable $\mu$s-level inference latency and ultra-low energy in edge vision applications. Yet, their current lack of flexibility at both the circuit and system levels prevents their deployment in a wide range of real-life scenarios. In this work, we propose a novel digital CIM macro that supports arbitrary operand resolution and shape, with a unified CIM storage for weights and membrane potentials. These circuit-level techniques enable a hybrid weight- and output-stationary dataflow at the system level to maximize operand reuse, thereby minimizing costly on- and off-chip data movements during the SNN execution. Measurement results of a fabricated FlexSpIM prototype in 40-nm CMOS demonstrate a 2$\times$ increase in bit-normalized energy efficiency compared to prior fixed-precision digital CIM-SNNs, while providing resolution reconfiguration with bitwise granularity. Our approach can save up to 90% energy in large-scale systems, while reaching a state-of-the-art classification accuracy of 95.8% on the IBM DVS gesture dataset.
Introduction: The Rigidity of Current CIM
Edge vision applications, such as those in autonomous drones or wearable devices, demand ultra-low latency and minimal power consumption. Spiking Neural Networks (SNNs) are ideally suited for these tasks because they process information using sparse, binary "spikes," mimicking biological neural efficiency. To execute these networks efficiently, researchers employ Compute-In-Memory (CIM), a hardware paradigm that performs calculations directly within memory arrays to bypass the energy-intensive "von Neumann bottleneck."
However, existing CIM accelerators are often rigid, typically supporting only fixed bit-widths (e.g., 4-bit or 8-bit) and a single dataflow pattern. Real-world neural networks are heterogeneous; early layers may require different precision than deeper layers. Forcing a one-size-fits-all hardware configuration leads to significant memory waste, unnecessary data movement, and energy penalties (as illustrated in Figure 1).
Methods: The FlexSpIM Architecture
The proposed FlexSpIM accelerator, fabricated in 40-nm CMOS, introduces three core innovations to break this rigidity:
- Arbitrary Operand Resolution: FlexSpIM supports bitwise granularity (from 1 to 512 bits), allowing developers to "right-size" the precision for weights and membrane potentials for every individual layer. This can reduce the memory footprint by up to 30% compared to standard fixed-precision designs.
- Flexible Operand Shaping: By utilizing a specialized carry-select circuit, the hardware can chain 1-bit adders across memory columns. This allows operands to be mapped into various shapes ($N_R \times N_C$) within the memory array, optimizing data access and reuse patterns.
- Unified Storage & Hybrid Dataflow: FlexSpIM stores both weights and membrane potentials in a unified 6T SRAM array. This enables a hybrid dataflow where the system can switch between Weight-Stationary (WS) and Output-Stationary (OS) strategies on a per-layer basis. By keeping the most "expensive" data stationary, the system minimizes costly off-chip DRAM accesses.
Key Results and Insights
The researchers evaluated the FlexSpIM prototype using the IBM DVS Gesture Dataset, a standard benchmark for event-based vision. The system achieved a state-of-the-art classification accuracy of 95.8%.
- Energy Efficiency: FlexSpIM demonstrated a 2$\times$ increase in 1-bit-normalized energy efficiency compared to previous state-of-the-art digital CIM-SNNs. Furthermore, the specialized operand shaping allows the hardware to put unused memory columns into standby, saving up to 4.3$\times$ energy per operation.
- System-Level Impact: In large-scale system simulations, the combination of hybrid dataflow and flexible resolution resulted in up to 90% energy savings by significantly reducing data movement overhead.
- Hardware Specifications: The prototype features a 16kB macro capacity and a core area of 1.37 $mm^2$.
Conclusion
FlexSpIM demonstrates that bit-level reconfigurability is a powerful lever for efficiency in edge AI. By moving away from fixed-precision hardware, FlexSpIM achieves significant energy savings and memory optimization without sacrificing accuracy. Future work will focus on scaling the architecture to multi-macro systems and exploring on-chip training capabilities to further enhance its utility in dynamic edge environments.
Summary updated