[Paper Review] A Latency Coding Framework for Deep Spiking Neural Networks with Ultra-Low Latency
The paper presents a latency-coded TTFS framework trained with backpropagation through time to achieve ultra-low inference latency and competitive accuracy in deep SNNs, enhanced by a latency encoding module, multi-spike relaxation, and a temporal adaptive decision loss.
Spiking neural networks (SNNs) offer a biologically inspired computing paradigm with significant potential for energy-efficient neural processing. Among neural coding schemes of SNNs, Time-To-First-Spike (TTFS) coding, which encodes information through the precise timing of a neuron's first spike, provides exceptional energy efficiency and biological plausibility. Despite its theoretical advantages, existing TTFS models lack efficient training methods, suffering from high inference latency and limited performance. In this work, we present a comprehensive framework, which enables the efficient training of deep TTFS-coded SNNs by employing backpropagation throuh time (BPTT) algorithm. We name the generalized TTFS coding method in our framework as latency coding. The framework includes: (1) a latency encoding (LE) module with feature extraction and straight-through estimators to address severe information loss in direct intensity-to-latency mapping and ensure smooth gradient flow; (2) relaxation of the strict single-spike constraint of traditional TTFS, allowing neurons of intermediate layers to fire multiple times to mitigating gradient vanishing in deep networks; (3) a temporal adaptive decision (TAD) loss function that dynamically weights supervision signals based on sample-dependent confidence, resolving the incompatibility between latency coding and standard cross-entropy loss. Experimental results demonstrate that our method achieves state-of-the-art accuracy in comparison to existing TTFS-coded SNNs with ultra-low inference latency and superior energy efficiency. The framework also demonstrates improved robustness against input corruptions. Our study investigates the characteristics and potential of latency coding in scenarios demanding rapid response, providing valuable insights for further exploiting the temporal learning capabilities of SNNs.
Motivation & Objective
- Motivate and achieve ultra-low-latency deep TTFS-coded SNNs with competitive accuracy and energy efficiency.
- Propose a Latency Encoding (LE) module to mitigate information loss in intensity-to-latency mapping and enable differentiable training.
- Relax the single-spike constraint to reduce gradient vanishing in deep TTFS networks while preserving first-spike decision signaling.
- Introduce a Temporal Adaptive Decision (TAD) loss to balance inference speed and accuracy across samples.
- Demonstrate state-of-the-art performance on CIFAR-10, CIFAR-100, Tiny-ImageNet, and neuromorphic datasets with robustness to input perturbations.
Proposed method
- Integrate backpropagation through time (BPTT) with latency-coded SNNs to enable end-to-end training.
- Use a Latency Encoding (LE) module with feature extraction and straight-through estimators (STE) to ensure smooth gradient flow.
- Relax the strict single-spike TTFS constraint to allow multi-spike firing in intermediate layers, while using the first spike in the output layer to decide.
- Employ a membrane-potential-based decoding policy at the output to break ties when multiple neurons spike simultaneously.
- Introduce a Temporal Adaptive Decision (TAD) loss that weights per-timestep supervision by a confidence-based distribution Lambda[t], derived from inverse entropy of output logits.
- Evaluate on CIFAR-10, CIFAR-100, Tiny-ImageNet, and CIFAR10-DVS, comparing against TTFS baselines and rate-coded SNNs.
Experimental results
Research questions
- RQ1Can backpropagation through time be effectively applied to latency-coded TTFS SNNs for deep architectures?
- RQ2How can latency-coded SNNs mitigate information loss and gradient vanishing in deep networks through architectural constraints and training strategies?
- RQ3What encoding and decoding mechanisms best preserve information while enabling ultra-low latency inference?
- RQ4Does a temporally adaptive loss improve the trade-off between inference speed and accuracy across varying data difficulty?
- RQ5Are latency-coded SNNs competitive with rate-coded SNNs and existing TTFS methods in accuracy and energy efficiency on standard benchmarks and neuromorphic data?
Key findings
- The method achieves state-of-the-art accuracy among TTFS-coded SNNs with ultra-low inference latency (as low as 1 timestep on CIFAR-10 with 93.60% using VGG-11).
- Latency encoding with STE mitigates information loss during intensity-to-latency mapping and enables gradient flow.
- Allowing multiple spikes in intermediate layers while using the first output spike for decision reduces gradient vanishing without sacrificing TTFS advantages.
- The Temporal Adaptive Decision (TAD) loss dynamically weights supervision over time, enabling early decisions for easy samples and longer inference for hard ones.
- On CIFAR-10/100 and Tiny-ImageNet, the framework achieves high accuracy with timesteps in the 1–4 range and substantially lower energy estimates compared to prior TTFS methods and rate-coded SNNs.
- On CIFAR-10-C and CIFAR-100-C, latency-coded SNNs show improved robustness to corruptions over rate-coded baselines.
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.