Spyx Hackathon: Speeding Up Neuromorphic Computing

Spyx is a JAX-based SNN framework that leverages JIT compilation to fuse training loops and execute entirely on the GPU, reducing training times to minutes.

In this workshop, Kade Heckel introduces Spyx, a high-performance spiking neural network (SNN) library built on JAX. The session provides a deep dive into how Spyx maximizes training throughput by caching data in VRAM and fusing entire training loops into single GPU kernels, eliminating the traditional bottlenecks of iterative CPU-to-GPU data transfers.

Key Takeaways

  • Spyx is a JAX-based SNN framework that uses Just-In-Time (JIT) compilation to run entire training loops on the GPU.
  • By avoiding CPU-GPU data transfers, Spyx enables training spiking networks for hundreds of epochs in a matter of minutes.
  • The library integrates smoothly with the broader JAX ecosystem, including Optax for deep learning optimization and Evosax for neuroevolution.
  • Spyx supports the Neuromorphic Intermediate Representation (NIR), allowing seamless deployment to low-power hardware.

Workshop Format & Takeaways

The session features a technical overview of Spyx’s architecture, highlighting its reliance on DeepMind’s Haiku library and JAX’s functional programming paradigm. As demonstrated in a live notebook walkthrough, defining a surrogate gradient and constructing a model in Spyx is highly compact.

A major focus of the demonstration is Spyx’s ability to compress and push entire datasets (like the Spiking Heidelberg Digits) into GPU memory. Using JAX’s scan and jit functions, the framework compiles the dataset shuffling, batch evaluation, loss computation, and weight updates into one continuous execution graph. As noted in the session, this technique can reduce the training time of a 600,000-parameter SNN from hours to under a minute.

What This Means for the Field

Spyx fundamentally accelerates the iterative research process in neuromorphic computing. By reducing training times to a fraction of traditional limits on standard consumer or high-end GPUs, it allows researchers to rapidly prototype architectures, test new surrogate gradients, and experiment with evolutionary algorithms at scale. Combined with hooks into standard interoperability layers like NIR, this tooling bridges the gap between high-throughput deep learning workflows and ultra-efficient, low-power edge deployment.

Resources

About the Speaker

Kade Heckel

Researcher focusing on high-performance computing for neural networks (JAX, Pallas). Creator of Spyx, a JAX-based spiking neural network library.
Social share preview for Spyx Hackathon: Speeding up Neuromorphic Computing

Upcoming Workshops

No workshops are currently scheduled. Check back soon for new events!

Are you an expert in a neuromorphic topic? We invite you to share your knowledge with our community.

Inspired? Share your work.

Share your expertise with the community by speaking at a workshop, student talk, or hacking hour. It’s a great way to get feedback and help others learn.

Related Workshops

The ELM Neuron: An Expressive and Efficient Cortical Neuron Model Can Solve Long-Horizon Tasks

The ELM Neuron: An Expressive and Efficient Cortical Neuron Model Can Solve Long-Horizon Tasks

The Expressive Leaky Memory (ELM) neuron leverages few memory states and nonlinear dendritic processing to solve long-horizon tasks efficiently.

Does the Brain do Gradient Descent?

Does the Brain do Gradient Descent?

Examining the biological plausibility of gradient descent reveals how node perturbation and feedback alignment successfully bypass the weight transport problem.

Hands-On with snnTorch

Hands-On with snnTorch

snnTorch applies surrogate gradients to overcome the non-differentiability of spikes, enabling SNN training and quantization using standard PyTorch pipelines.