TIM: An Efficient Temporal Interaction Module for Spiking Transformer

Sicheng Shen, Dongcheng Zhao, Guobin Shen, Yi Zeng
1/22/2024
cs.NEcs.CVcs.LG

Official code: BrainCog-X/Brain-Cog (658 stars, Apache-2.0, last commit 2025-11-06).

Abstract

Spiking Neural Networks (SNNs), as the third generation of neural networks, have gained prominence for their biological plausibility and computational efficiency, especially in processing diverse datasets. The integration of attention mechanisms, inspired by advancements in neural network architectures, has led to the development of Spiking Transformers. These have shown promise in enhancing SNNs' capabilities, particularly in the realms of both static and neuromorphic datasets. Despite their progress, a discernible gap exists in these systems, specifically in the Spiking Self Attention (SSA) mechanism's effectiveness in leveraging the temporal processing potential of SNNs. To address this, we introduce the Temporal Interaction Module (TIM), a novel, convolution-based enhancement designed to augment the temporal data processing abilities within SNN architectures. TIM's integration into existing SNN frameworks is seamless and efficient, requiring minimal additional parameters while significantly boosting their temporal information handling capabilities. Through rigorous experimentation, TIM has demonstrated its effectiveness in exploiting temporal information, leading to state-of-the-art performance across various neuromorphic datasets. The code is available at https://github.com/BrainCog-X/Brain-Cog/tree/main/examples/TIM.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Brain-inspired Cognitive Intelligence Engine (BrainCog) is a brain-inspired spiking neural network based platform for Brain-inspired Artificial Intelligence and simulating brains at multiple scales. The long term goal of BrainCog is to provide a comprehensive theory and system to decode the mechanisms and principles of human intelligence and its evolution, and develop artificial brains for brain-inspired conscious living AI in future Human-AI symbiotic Society.

658110PythonOct 29, 202111 months agoApache-2.0
brain-inspired-aibrain-inspired-computationbrain-simulationscomputational-neurosciencespiking-neural-networks

Similar Papers

Cite this paper

@article{shen2024tim,
  title  = {TIM: An Efficient Temporal Interaction Module for Spiking Transformer},
  author = {Sicheng Shen and Dongcheng Zhao and Guobin Shen and Yi Zeng},
  year   = {2024},
  eprint = {2401.11687},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.11687v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2401.11687.svg)](https://codeofpaper.com/paper/2401.11687)

Discussion