[Paper Review] TCJA-SNN: Temporal-Channel Joint Attention for Spiking Neural Networks
TCJA-SNN introduces a Temporal-Channel Joint Attention module for LIF-based SNNs, using Temporal-wise Local Attention, Channel-wise Local Attention, and Cross Convolutional Fusion to jointly model time and channel dependencies, boosting classification and enabling high-quality spiking generation.
Spiking Neural Networks (SNNs) are attracting widespread interest due to their biological plausibility, energy efficiency, and powerful spatio-temporal information representation ability. Given the critical role of attention mechanisms in enhancing neural network performance, the integration of SNNs and attention mechanisms exhibits potential to deliver energy-efficient and high-performance computing paradigms. We present a novel Temporal-Channel Joint Attention mechanism for SNNs, referred to as TCJA-SNN. The proposed TCJA-SNN framework can effectively assess the significance of spike sequence from both spatial and temporal dimensions. More specifically, our essential technical contribution lies on: 1) We employ the squeeze operation to compress the spike stream into an average matrix. Then, we leverage two local attention mechanisms based on efficient 1D convolutions to facilitate comprehensive feature extraction at the temporal and channel levels independently. 2) We introduce the Cross Convolutional Fusion (CCF) layer as a novel approach to model the inter-dependencies between the temporal and channel scopes. This layer breaks the independence of these two dimensions and enables the interaction between features. Experimental results demonstrate that the proposed TCJA-SNN outperforms SOTA by up to 15.7% accuracy on standard static and neuromorphic datasets, including Fashion-MNIST, CIFAR10-DVS, N-Caltech 101, and DVS128 Gesture. Furthermore, we apply the TCJA-SNN framework to image generation tasks by leveraging a variation autoencoder. To the best of our knowledge, this study is the first instance where the SNN-attention mechanism has been employed for image classification and generation tasks. Notably, our approach has achieved SOTA performance in both domains, establishing a significant advancement in the field. Codes are available at https://github.com/ridgerchu/TCJA.
Motivation & Objective
- Motivate and exploit joint temporal and channel information in LIF-based SNNs to improve representation learning and accuracy.
- Develop a lightweight attention module that can be plugged into existing SNNs without heavy retraining.
- Propose mechanisms to fuse temporal and channel cues with low parameter overhead.
- Demonstrate effectiveness on both classification and generation tasks using neuromorphic datasets and Fashion-MNIST.
Proposed method
- Squeeze spike streams into an average matrix Z of size C x T to capture temporal-channel correlations.
- Introduce Temporal-wise Local Attention (TLA) using 1-D convolutions along the time axis on Z.
- Introduce Channel-wise Local Attention (CLA) using 1-D convolutions along the channel axis on Z.
- Fuse temporal and channel saliency via Cross Convolutional Fusion (CCF) by computing F = sigmoid(T ∘ C) where T and C are the TLA and CLA outputs.
- Use ATan and triangle-like surrogate functions for backpropagation in spike-based training.
- Train with Spike Mean-Square-Error (SMSE) and Temporal Efficient Training (TET) loss to optimize classification.
Experimental results
Research questions
- RQ1Can a joint temporal-channel attention mechanism improve feature discrimination in Spiking Neural Networks beyond temporal-only attention?
- RQ2Does the proposed TCJA module provide a parameter-efficient way to model spatio-temporal dependencies in SNNs?
- RQ3Can TCJA-SNN achieve state-of-the-art accuracy on both neuromorphic and static datasets using binary and non-binary spikes?
- RQ4Is TCJA effective for high-level classification and low-level generation tasks in SNNs?
Key findings
- TCJA-SNN outperforms prior methods on static and neuromorphic datasets by up to 15.7% in classification accuracy on Fashion-MNIST, CIFAR10-DVS, N-Caltech 101, and DVS128 Gesture with binary spikes.
- On DVS128 Gesture, TCJA-SNN reaches 99.0% accuracy with 20 time steps, surpassing TA-SNN with fewer steps.
- On N-Caltech 101, TCJA-SNN achieves 78.5% accuracy with 14 time steps, representing a substantial gain over prior best.
- TCJA also enables a fully spiking variation autoencoder (FSVAE) for image generation, achieving competitive Inception Scores and favorable FID/FAD metrics compared to baselines.
- Ablation shows CLA contributes significantly, and the Cross Convolutional Fusion (CCF) is key to achieving joint temporal-channel gains.
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.