Complex Dynamic Neurons Improved Spiking Transformer Network for Efficient Automatic Speech Recognition

Qingyu Wang, Tielin Zhang, Minglun Han, Yi Wang, Duzhen Zhang, Bo Xu

Abstract

Spiking Neural Networks (SNNs) offer a promising path toward energy-efficient machine intelligence by mimicking the discrete, pulse-based communication of biological brains. However, traditional SNNs often rely on overly simplified neuron models, such as the Leaky-Integrate-and-Fire (LIF) model, which struggle to capture the complex temporal dependencies inherent in speech. This paper introduces the Complex Dynamic Neuron Improved Spiking Transformer (DyTr-SNN), an architecture that replaces simple neurons with higher-order, biologically-inspired dynamics. Our results demonstrate that increasing individual neuron complexity allows for shallower, more efficient networks that achieve state-of-the-art performance and robustness in Automatic Speech Recognition (ASR).

Introduction

As the "third generation" of neural networks, SNNs are prized for their massive energy efficiency, particularly on neuromorphic hardware. Unlike traditional Artificial Neural Networks (ANNs) that process continuous values, SNNs communicate via asynchronous spikes. Despite their potential, SNNs have historically lagged behind ANNs in complex tasks like ASR. A primary bottleneck is the reliance on the LIF neuron—a basic mathematical abstraction that lacks the rich temporal processing power of biological neurons.

In ASR, capturing multi-scale temporal patterns is critical. To compensate for the simplicity of LIF neurons, researchers typically increase network depth, which inadvertently raises the computational and energy cost. This research explores an alternative: making individual neurons "smarter" rather than making the network deeper.

Methodology

The DyTr-SNN Architecture

The proposed DyTr-SNN architecture integrates a 1D-convolutional front-end for initial feature extraction, a Spiking Transformer encoder to capture global dependencies, and a specialized Neuronal Dynamics Layer positioned before the final decoder.

Advanced Neuronal Dynamics

The core innovation of this work is the evaluation of four distinct neuronal dynamic models within the Transformer framework:

  1. Vanilla 1st-order: A standard linear accumulation model used as a baseline.
  2. 1st-order with Adaptive Threshold: This model implements a "temporal masking" effect where the firing threshold increases immediately after a spike, preventing over-firing and improving temporal precision.
  3. 2nd-order Dynamics: Utilizing a quadratic membrane potential equation, this model introduces "attractors" and "repulsors." This allows the neuron to exhibit non-linear growth and maintain a more complex history of past inputs.
  4. Double-neuron Dynamics: This simulates a pair of excitatory and inhibitory neurons. The inhibitory feedback provides a self-regulating mechanism that sharpens spike timing and enhances signal-to-noise ratios.

Training Objectives

The model is optimized using a hybrid loss function: $$L = L_{CE} + \alpha L_{CTC} + \beta L_{Qua}$$ Where $L_{CE}$ is Cross-Entropy, $L_{CTC}$ is Connectionist Temporal Classification, and $L_{Qua}$ (Quantity Loss) ensures the number of generated spikes aligns with the target phoneme count.

Experimental Setup

Dataset

The model was evaluated on the LJSpeech dataset, a standard ASR benchmark consisting of 24 hours of single-speaker English audio (13,100 clips). Audio was pre-processed into 80-dimension log-Mel spectrograms. The target output consists of phoneme sequences (69 phonemes plus 4 special tokens).

Key Insights and Results

Performance and Efficiency

The DyTr-SNN using 2nd-order dynamics ($D_2$) achieved a Phoneme Error Rate (PER) of 9.316%, outperforming the vanilla SNN baseline of 9.544%.

A critical finding is the Complexity vs. Depth Trade-off. The researchers observed that a 5-layer transformer using 2nd-order neurons could match or exceed the performance of a 10-layer transformer using vanilla neurons. This suggests that neuron-level intelligence is a viable strategy for reducing overall network parameters and computational overhead.

Robustness to Noise

In noise-injection tests, the Double-neuron model ($D_{2,dou}$) proved exceptionally resilient. When subjected to uniform noise, it showed a relative PER change of only 2.0%, whereas the adaptive threshold model saw a performance degradation of 14.1%. This highlights the self-regulating benefits of inhibitory-excitatory dynamics in noisy environments.

Natural Boundary Detection

Analysis of the spiking patterns revealed that complex neurons naturally act as "boundary detectors." The inter-spike intervals (the time between pulses) align closely with actual linguistic transitions and phoneme boundaries in the speech signal, suggesting that the non-linear integration of features allows the network to "catch" complex acoustic features more effectively than standard LIF models.

Conclusion and Future Work

The DyTr-SNN demonstrates that incorporating biological complexity into individual neurons significantly enhances the efficiency and accuracy of Spiking Transformers for ASR. By shifting the computational burden from network depth to neuronal dynamics, we can create more robust and efficient speech processing systems.

Future research will focus on evaluating these dynamics in multi-speaker and "in-the-wild" environments. Additionally, exploring heterogeneous populations—where different layers utilize different dynamic models tailored to specific levels of abstraction—could further optimize the balance between temporal precision and feature integration.

Summary updated

BibTeX
@inproceedings{wang2023complex,
  author = {Qingyu Wang and Tielin Zhang and Minglun Han and Yi Wang and Duzhen Zhang and Bo Xu},
  title = {{Complex Dynamic Neurons Improved Spiking Transformer Network for Efficient Automatic Speech Recognition}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i1.25081},
}
Figure