Prosperity: Accelerating Spiking Neural Networks via Product Sparsity

Chiyue Wei, Cong Guo, Feng Cheng, Shiyu Li, Hao (Frank) Yang, Hai Helen Li, Yiran Chen

Abstract

Spiking Neural Networks (SNNs) are celebrated for their efficiency because they use binary spikes (0s and 1s), allowing hardware to simply skip zero-values. However, current accelerators fail to exploit the redundant computations inherent in overlapping spike patterns across different neurons. This paper introduces Product Sparsity (ProSparsity), a novel paradigm that identifies and reuses these overlapping patterns. To manage the resulting scheduling complexity, we propose Prosperity, a hardware accelerator that achieves up to a 7.4× speedup and 8.0× energy efficiency improvement over state-of-the-art SNN accelerators by utilizing TCAM-based spatial detection and heuristic graph pruning.

Introduction and Problem Statement

In traditional Deep Neural Networks (DNNs), computational intensity is driven by dense matrix multiplications. SNNs simplify this by using binary activations, transforming matrix multiplication into sparse addition: if a spike is 1, the corresponding weight is added; if it is 0, the operation is skipped. This mechanism, known as Bit Sparsity, is the cornerstone of modern SNN accelerator design.

Despite these gains, significant redundancy remains. Because SNN activations are binary, different rows in a spike matrix often share identical sub-combinations of spikes. For instance, if one row's spike pattern is a subset of another's, the inner product result of the subset can be reused to compute the superset, requiring only the addition of the remaining unique spikes.

Comparison of GeMM execution paradigms: (a) Original DNN GeMM, (b) Dense Spiking GeMM, (c) Bit Sparsity, and (d) the proposed Product Sparsity.

Exploiting this "Product Sparsity" at runtime presents two major challenges:

  1. Spatial Complexity: Identifying overlapping patterns dynamically requires an $O(m^2)$ comparison of all rows.
  2. Temporal Dependencies: Reusing results creates strict execution orders (the subset must be computed before the superset), which can stall hardware pipelines.

Methodology: The Prosperity Architecture

To address these challenges, the authors introduce the Prosperity architecture, a hardware-software co-design that makes Product Sparsity practical for real-time inference.

Product Sparsity (ProSparsity)

ProSparsity identifies both Exact Matches (identical rows) and Partial Matches (where one row is a subset of another). By reusing inner product results, the system drastically reduces the total number of operations (OPs) required for a General Matrix Multiplication (GeMM) task.

Heuristic Space Pruning and the ProSparsity Forest

To avoid the $O(m^2)$ complexity of a full dependency graph, Prosperity employs a heuristic: each row is restricted to exactly one prefix (parent). This simplifies the complex dependency graph into a "ProSparsity Forest." This reduction to $O(m)$ complexity preserves the majority of sparsity gains while making hardware implementation feasible.

The ProSparsity data structure: (a) Spiking Matrix, (b) full dependency graph, (c) pruned ProSparsity Forest, and (d) resulting meta-information.

Hardware Implementation

  • TCAM-Based Spatial Detection: Prosperity uses Ternary Content Addressable Memory (TCAM) to search the spike matrix in a single clock cycle. TCAMs use "don't care" bits to instantly identify subset relationships.
  • Sorting for Temporal Dependencies: To ensure correct execution order without complex graph traversal, the hardware counts spikes in each row (Popcount) and sorts them. Since a subset always has fewer spikes than its superset, sorting naturally satisfies the dependency requirements.
  • Overhead-Free Pipelining: The architecture processes the matrix in tiles, overlapping the pattern-matching phase of the next tile with the computation phase of the current one to hide latency.

Evaluation and Results

Prosperity was evaluated across diverse SNN models, including VGG-16, ResNet-18, and emerging Spiking Transformers (e.g., SpikeBERT, Spikformer), using CV datasets (CIFAR, CIFAR-DVS) and NLP benchmarks (GLUE).

Key Performance Metrics

  • Density Reduction: ProSparsity significantly reduces computational density. For SpikeBERT, traditional bit sparsity results in 13.19% density, whereas ProSparsity reduces it to just 1.23% (an 11× reduction). Across all tested models, it averaged a 5.0× density reduction over bit sparsity.
  • Throughput and Efficiency: Prosperity achieves an average speedup of 7.4× and an energy efficiency improvement of 8.0× over the state-of-the-art PTB accelerator. Remarkably, it outperforms an NVIDIA A100 GPU by 1.8× in throughput and 193× in energy efficiency.

Conclusion

Prosperity demonstrates that bit sparsity is not the upper limit for SNN efficiency. By exploiting the combinatorial nature of binary activations through Product Sparsity, Prosperity offers a lossless, algorithm-agnostic method to accelerate SNNs. While the specialized hardware (TCAMs and sorters) introduces some area overhead, the resulting 13.35% average increase in sparsity far exceeds the 4.4% break-even point required for efficiency gains. Future work may explore inter-PPU parallelism and combining ProSparsity with weight-side pruning for even greater optimization.

Summary updated

BibTeX
@inproceedings{wei2025prosperity,
  author = {Chiyue Wei and Cong Guo and Feng Cheng and Shiyu Li and Hao (Frank) Yang and Hai Helen Li and Yiran Chen},
  title = {{Prosperity: Accelerating Spiking Neural Networks via Product Sparsity}},
  booktitle = {HPCA},
  year = {2025},
  doi = {10.1109/hpca61900.2025.00066},
}
Figure