TMN: A Lightweight Neuron Model for Efficient Nonlinear Spike Representation

Yiwen Gu, Junquan Gu, Haibin Shen, Kejie Huang · DOI

Abstract

Spike trains serve as the primary medium for information transmission in Spiking Neural Networks, playing a crucial role in determining system efficiency. Existing encoding schemes based on spike counts or timing often face severe limitations under low-timestep constraints, while more expressive alternatives typically involve complex neuronal dynamics or system designs, which hinder scalability and practical deployment. To address these challenges, we propose the Ternary Momentum Neuron (TMN), a novel neuron model featuring two key innovations: (1) a lightweight momentum mechanism that realizes exponential input weighting by doubling the membrane potential before integration, and (2) a ternary predictive spiking scheme which employs symmetric sub-thresholds $\pm\frac{1}{2}v_{th}$ to enable early spiking and correct over-firing. Extensive experiments across diverse tasks and network architectures demonstrate that the proposed approach achieves high-precision encoding with significantly fewer timesteps, providing a scalable and hardware-aware solution for next-generation SNN computing.

Introduction: The Latency-Accuracy Trade-off in SNNs

Spiking Neural Networks (SNNs) are widely regarded as the energy-efficient "third generation" of neural networks due to their event-driven nature and discrete, binary communication. However, a persistent challenge in SNN deployment is the "latency-accuracy" trade-off. Most current SNNs rely on Rate Coding (counting spikes over a window) or Temporal Coding (e.g., Time-To-First-Spike, TTFS).

As shown in Figure 1, both Rate and TTFS coding are inherently linear. To represent a value with higher precision, the number of required timesteps must increase linearly. This makes SNNs slow and computationally expensive for high-precision tasks. While "weighted" spike encoding (where spikes at different times carry exponential weights) offers a logarithmic scaling of latency relative to capacity, it typically requires complex hardware such as dynamic multipliers and time-varying thresholds.

Comparison of traditional spike encoding schemes (Rate, TTFS) versus Weighted Rate coding and their respective encoding capacities.

The Ternary Momentum Neuron (TMN)

The Ternary Momentum Neuron (TMN) addresses these issues by achieving exponential weighting through a simple, hardware-friendly "momentum" mechanism and a self-correcting firing scheme.

1. Momentum-Based Weighting

Instead of multiplying incoming spikes by complex temporal weights (e.g., $2^{T-t}$), the TMN doubles its internal membrane potential ($2 \times u$) before integrating new input at each timestep. This recursive doubling is mathematically equivalent to applying exponential weights to inputs over time. In hardware, "doubling" is implemented as a trivial bit-shift operation, making this high-capacity encoding virtually cost-free in terms of silicon area and power.

2. Ternary Predictive Spiking (TPS)

To further reduce latency, TMN employs a "predictive" firing scheme. By setting thresholds at half the magnitude of the standard threshold ($\pm 0.5 v_{th}$), the neuron can emit a spike as soon as it has accumulated half the necessary information. To handle potential "over-firing" from these early estimates, the system uses ternary spikes (+1, 0, -1). If a neuron fires prematurely and subsequent inputs do not justify it, it emits a negative spike to correct the error in the following layer, creating a robust, self-correcting feedback loop.

3. Shortened Pre-Charge Phase

To mitigate uncertainty from initial inputs, the model incorporates a brief "pre-charge" phase (typically 1–2 steps). During this phase, the neuron integrates inputs without firing, ensuring that the first emitted spikes are based on a more stable internal state.

Key Results and Performance

The TMN was evaluated across a variety of demanding tasks, including image classification (ImageNet), object detection (VOC2007), and natural language processing (SST-2, IMDB-MR).

  • Extreme Speedup: On ImageNet, TMN achieved a conversion loss of only 0.3% with just 8 timesteps. Traditional high-performing SNN conversion methods often require up to 256 timesteps to reach comparable accuracy.
  • High Accuracy at Low Latency: On CIFAR-100, the model reached 76.23% accuracy in just 2 timesteps, effectively matching the performance of the source ANN.
  • Energy Efficiency: By drastically reducing the number of timesteps and utilizing simple bit-shift operations, TMN reduces total energy consumption by approximately 50% compared to state-of-the-art SNN conversion methods like Fast-SNN and COS.
  • Architectural Versatility: TMN successfully converted complex architectures like Vision Transformers (ViT) and RoBERTa with minimal accuracy loss, demonstrating its robustness across different data modalities.

Discussion and Conclusion

The Ternary Momentum Neuron represents a significant step toward practical, high-performance SNNs. By shifting the complexity of exponential weighting from the input weights to the internal state (the "doubling" trick), the authors have broken the linear latency barrier without requiring specialized multipliers.

While the reliance on ternary spikes (+1, 0, -1) may require updates to some legacy neuromorphic hardware, the efficiency gains are substantial. Future work may explore direct training of TMNs using surrogate gradients to further optimize performance beyond ANN-to-SNN conversion. Overall, TMN provides a scalable, hardware-aware solution for efficient nonlinear spike representation in next-generation computing.

Summary updated

BibTeX
@misc{gu2024tmn,
  author = {Yiwen Gu and Junquan Gu and Haibin Shen and Kejie Huang},
  title = {{TMN: A Lightweight Neuron Model for Efficient Nonlinear Spike Representation}},
  year = {2024},
  eprint = {2408.17245},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.17245},
}
Figure