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

Advances in Neuromorphic Visual Place Recognition

Advances in Neuromorphic Visual Place Recognition

Sampling a tiny subset of high-variance event pixels allows robotic visual place recognition systems to successfully operate with low latency and minimal storage.

From C/C++ to Dynamically Scheduled Circuits

From C/C++ to Dynamically Scheduled Circuits

Dynamically scheduled dataflow circuits overcome static high-level synthesis limits to enable out-of-order memory and speculative execution from C/C++ code.

IBM NorthPole - Neural inference at the frontier of energy, space, and time

IBM NorthPole - Neural inference at the frontier of energy, space, and time

IBM's NorthPole chip intertwines memory and compute, achieving 25x higher energy and 5x higher space efficiency than conventional architectures.