SNN4Agents: a framework for developing energy-efficient embodied spiking neural networks for autonomous agents

Rachmad Vidya Wicaksana Putra, Alberto Marchisio, Muhammad Shafique

Introduction

Autonomous agents, such as Unmanned Aerial Vehicles (UAVs) and Automated Guided Vehicles (AGVs), face a critical "power-performance" pincer. These systems require sophisticated artificial intelligence for real-time navigation and object recognition, yet they are strictly limited by the energy capacity of portable batteries. Neuromorphic computing, particularly Spiking Neural Networks (SNNs), offers a promising path forward by mimicking the sparse, event-driven processing of the biological brain. However, deploying SNNs on embodied hardware remains challenging due to the complex trade-offs between memory footprint, latency, and power consumption.

The SNN4Agents Framework

To address these challenges, the SNN4Agents framework provides a systematic methodology for optimizing SNNs specifically for event-based vision tasks. The framework employs a four-stage optimization pipeline designed to maximize efficiency without sacrificing performance:

  1. Weight Quantization: Utilizing Post-Training Quantization (PTQ) with a Truncation rounding scheme, the framework identifies the minimum bit-precision required to maintain accuracy, significantly reducing model size.
  2. Timestep Reduction: By minimizing the number of discrete "ticks" or timesteps used in SNN processing, the framework reduces inference latency.
  3. Attention Window Reduction: The input is cropped to a specific "attention window" where event activity is highest, reducing the computational load on the initial network layers.
  4. Joint Optimization: A Design Space Exploration (DSE) strategy analyzes the interactions between these variables, allowing for the selection of optimal configurations based on specific hardware constraints.

Experimental Setup and Datasets

The framework was validated using the Prophesee NCARS Dataset, a benchmark for event-based car recognition. The dataset consists of 24,000 samples recorded with an Asynchronous Time-based Image Sensor (ATIS). Unlike traditional frame-based video, this data is a continuous stream of $(x, y, t, p)$ events, representing coordinates, timestamps, and polarity changes.

Analysis of Quantization and Memory

A key finding of the research is the existence of a "quantization floor." While the network maintains high accuracy at 12-bit and 10-bit precision, a sharp degradation occurs when moving to 8-bit or 4-bit precision.

Impact of weight quantization on test accuracy over training epochs for the NCARS dataset.

As shown in the figure above, aggressive quantization (8-bit and 4-bit) results in the network failing to learn effectively, with accuracy dropping to near-random levels (~50% for binary classification). This indicates a minimum information threshold required for SNNs to represent the temporal features inherent in automotive event data.

Performance Gains and Efficiency

The optimization strategies within SNN4Agents lead to substantial improvements in resource utilization. By balancing bit-precision and memory footprint, the framework achieves significant savings.

Trade-off between test accuracy and normalized memory footprint across different bit precisions.

The framework achieved a peak accuracy of 84.12%, staying within a 2% tolerance of the unoptimized 32-bit baseline. More importantly, it delivered a 68.75% memory saving for 100x100 windows and up to 97.32% for 50x50 windows. These optimizations translated to a 3.58x improvement in processing latency and a 4.03x improvement in energy efficiency.

Conclusion and Future Directions

SNN4Agents demonstrates that co-optimizing quantization, temporal resolution, and spatial attention is essential for deploying SNNs on resource-constrained autonomous agents. While the current results are promising, future work will focus on moving beyond offline training to allow agents to adapt to dynamic environments in real-time, and applying the framework to complex multi-object detection tasks using datasets like EventKITTI.

Summary updated

BibTeX
@article{putra2024snn,
  author = {Rachmad Vidya Wicaksana Putra and Alberto Marchisio and Muhammad Shafique},
  title = {{SNN4Agents: a framework for developing energy-efficient embodied spiking neural networks for autonomous agents}},
  journal = {Frontiers Robotics AI},
  year = {2024},
  doi = {10.3389/frobt.2024.1401677},
}
Figure