You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Local Plasticity, Phase-Coding, and Dendritic Routing for Low-Power Sequence Control**
12
+
</div>
13
+
14
+
---
15
+
16
+
## 🌟 Overview
17
+
18
+
This repository contains the official PyTorch implementation of the **Spiking Decision Transformer (SNN-DT)**, as presented in our flagship research paper:
19
+
> *"Spiking Decision Transformers: Local Plasticity, Phase-Coding, and Dendritic Routing for Low-Power Sequence Control"* (Pandey & Biswas, 2025).
The SNN-DT architecture bridges the gap between the sequential modeling capabilities of dense Transformers and the extreme energy efficiency of Spiking Neural Networks (SNNs). By embedding **Leaky Integrate-and-Fire (LIF)** neurons within the block components, we secure state-of-the-art performance on continuous control tasks while reducing energy consumption by over four orders of magnitude ($\approx 40$ nJ).
This repository contains the official PyTorch implementation of the **Spiking Decision Transformer (SNN-DT)**, as presented in the paper *"Spiking Decision Transformers: Local Plasticity, Phase-Coding, and Dendritic Routing for Low-Power Sequence Control"* (Pandey & Biswas, 2025).
29
+
## ✨ Core Neuromorphic Innovations
20
30
21
-
The SNN-DT architecture bridges the gap between the sequential modeling capabilities of Transformers and the energy efficiency of Spiking Neural Networks (SNNs). By embedding **Leaky Integrate-and-Fire (LIF)** neurons within the self-attention mechanism and utilizing accurate **STDP-inspired local plasticity**, this model achieves state-of-the-art performance on continuous control tasks while reducing energy consumption by orders of magnitude compared to traditional ANN-based Decision Transformers.
*(Note: Visualizations available in the `visualizations/` directory)*
27
-
28
-
## Key Features
29
39
30
-
-**Neuromorphic Efficiency**: Replaces standard activation functions with temporal spike-based logic, significantly reducing computational overhead suitable for edge deployment.
31
-
-**Phase-Coded Positional Encoding**: A biologically plausible method for encoding sequence order using spike timing phases.
32
-
-**Dendritic Routing**: Efficient information routing mechanism mimicking biological dendritic trees.
33
-
-**Three-Factor Local Plasticity**: Implements STDP-like learning rules for robust weight updates without heavy backpropagation costs during inference-time adaptation.
34
-
-**Standard Gym Benchmarks**: Evaluated on classic control tasks: `CartPole-v1`, `Pendulum-v1`, `MountainCar-v0`, and `Acrobot-v1`.
40
+
---
35
41
36
-
## Installation
42
+
## 🚀 Quickstart & Installation
37
43
38
-
System requirements: Linux/Windows, Python 3.8+, CUDA-enabled GPU (recommended).
# Create a virtual environment (optional but recommended)
46
-
python -m venv venv
47
-
source venv/bin/activate # On Windows: venv\Scripts\activate
48
-
49
-
# Install dependencies
51
+
# Install core dependencies natively
50
52
pip install -r requirements.txt
51
53
```
52
54
53
-
## Usage
55
+
> [!TIP]
56
+
> For deploying the documentation locally via Sphinx, execute `make html` inside the `/docs` directory!
57
+
58
+
---
59
+
60
+
## 💻 Experimental Workflows
54
61
55
-
### Training
56
-
To train the SNN-DT model on a specific environment (e.g., `Pendulum-v1`), use the provided training script. The training pipeline handles data generation, preprocessing, and model optimization.
62
+
### 1. Training the Architecture
63
+
Run the SNN-DT training pipeline, handling automated data orchestration and surrogate gradient optimization.
0 commit comments