Efficient Deep Spiking Multilayer Perceptrons With Multiplication-Free Inference

Boyan Li, Luziwei Leng, Shuaijie Shen, Kaixuan Zhang, Jianguo Zhang, Jianxing Liao, Ran Cheng

TL;DR

This paper introduces a novel Spiking Neural Network (SNN) architecture, the Spiking MLP-Mixer, that achieves state-of-the-art performance on ImageNet-1K without relying on computationally expensive matrix multiplications, a common bottleneck in SNNs. By adapting the MLP-Mixer architecture with multiplication-free inference techniques and a new spiking patch encoding module, the authors demonstrate significant improvements in accuracy, efficiency, and parameter reduction compared to existing SNN models.

What Problem Does This Paper Address?

The field of Spiking Neural Networks (SNNs) has seen significant progress, particularly in adapting architectures from successful Artificial Neural Networks (ANNs) like Convolutional Neural Networks (CNNs) and Transformers. However, a major challenge for SNNs is achieving Multiplication-Free Inference (MFI), a key characteristic that enables their potential for low-power neuromorphic hardware. While attention and transformer mechanisms have boosted ANN performance, their reliance on matrix multiplications and softmax functions makes them incompatible with MFI. Existing SNN adaptations of these architectures often struggle to align with MFI principles, leading to compromises in efficiency or performance. This paper addresses the gap of creating efficient, high-performing SNNs that fully embrace MFI, specifically by adapting the MLP-Mixer architecture, which itself offers a simpler alternative to transformers by relying solely on MLPs.

Methods

The core of this work is the Spiking MLP-Mixer architecture, designed to be fully compatible with Multiplication-Free Inference (MFI). Key innovations include:

  • MFI-Friendly Batch Normalization (BN): The authors replace the Layer Normalization (LN) used in the original MLP-Mixer with Batch Normalization (BN). This crucial change allows the normalization parameters to be integrated with linear projection weights during inference, enabling MFI.
  • Spiking Patch Encoding (SPE) Module: To improve local feature extraction, a novel SPE module is introduced. This module replaces the traditional patch partitioning approach and utilizes a directed acyclic graph structure, enhancing the network's ability to capture local details.
  • Spiking Token and Channel Blocks: The standard MLP-Mixer's token and channel mixing blocks are adapted to use spiking neurons and MFI-compatible operations. The token block employs lightweight axial sampling, while the channel block uses spiking fully-connected (FC) layers.
  • Optimal Skip Connection Configuration: The paper investigates various skip connection strategies, finding that a specific configuration (PT, PC, TC) is crucial for optimal performance and mitigating gradient vanishing issues in deep SNNs.
  • Leaky Integrate-and-Fire (LIF) Neuron Model: The study utilizes the standard LIF neuron model, a common choice in SNN research.

Datasets

The proposed Spiking MLP-Mixer was trained and evaluated on the following datasets:

  • ImageNet-1K: Used for primary benchmarking of the model's image classification capabilities.
  • CIFAR10: Used for evaluating the model's performance on smaller image datasets, particularly after pre-training on ImageNet.
  • CIFAR100: Similar to CIFAR10, used for evaluating performance on a dataset with more classes.
  • CIFAR10-DVS: A neuromorphic dataset used to assess the model's robustness to noise and its applicability to event-based vision tasks.

Key Insights and Ideas

  • BN is Key for MFI in MLP-Mixers: The paper highlights that replacing Layer Normalization with Batch Normalization is a critical step in making MLP-Mixer architectures compatible with Multiplication-Free Inference in SNNs.
  • SPE Enhances Local Feature Extraction: The novel Spiking Patch Encoding module significantly improves the network's ability to capture local image features, which is crucial for overall performance.
  • Skip Connections are Vital for Deep SNNs: The study demonstrates that well-designed skip connections are essential for training deep SNNs effectively, helping to alleviate gradient vanishing problems.
  • Cortical Receptive Fields Emerge Naturally: Interestingly, the trained receptive fields in the Spiking MLP-Mixer show a resemblance to the "off-center on-surround" receptive fields observed in cortical cells, suggesting that SNNs can learn biologically plausible feature representations without explicit inductive biases.
  • Efficiency Gains are Substantial: The MFI approach leads to significant reductions in computational cost and simulation steps compared to other SNNs, making the architecture more practical for neuromorphic hardware.

Key Results

  • ImageNet-1K Performance: The Spiking MLP-Mixer (MLP-SPE-T) achieved a 66.39% top-1 accuracy on ImageNet-1K, outperforming the directly trained spiking ResNet-34 by 2.67%.
  • Efficiency: The proposed model uses 2/3 of the simulation steps and significantly reduced computation cost compared to ResNet-34 with similar model capacity.
  • Larger Variant: A larger version of the network achieved 71.64% top-1 accuracy, rivaling the spiking VGG-16 network while being 2.1 times smaller in model capacity.
  • CIFAR Performance: Pre-trained Spiking MLP-SPE-T models set new benchmarks on CIFAR10 (96.08%) and CIFAR100 (80.57%), demonstrating broad applicability.
  • CIFAR10-DVS Performance: Achieved 81.12% accuracy on the CIFAR10-DVS dataset.
  • Computational Cost: The Spiking MLP-SPE-T model's computation cost is nearly half that of the spiking ResNet-34, with significantly fewer multiplication operations.

Limitations and Future Work

  • Suboptimal Compared to ANN MLPs: While the SNN-based MLPs show promising results, they are still suboptimal compared to their ANN counterparts in terms of raw accuracy on tasks like ImageNet-1K.
  • Future Directions: The authors suggest future research could explore more effective network structures and spike-based mechanisms, such as adaptive thresholds, to further enhance performance. They also note the potential for integrating this architecture with attention mechanisms for challenging language tasks and the possibility of using it as a lightweight module in encoder networks. The observed resemblance to cortical receptive fields also opens avenues for further neurobiological investigation.

Summary updated

BibTeX
@article{li2025efficient,
  author = {Boyan Li and Luziwei Leng and Shuaijie Shen and Kaixuan Zhang and Jianguo Zhang and Jianxing Liao and Ran Cheng},
  title = {{Efficient Deep Spiking Multilayer Perceptrons With Multiplication-Free Inference}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2025},
  doi = {10.1109/tnnls.2024.3394837},
}
Figure