Generative models on accelerated neuromorphic hardware

Ákos F. Kungl, Sebastian Schmitt, Johann Klähn, Paul Müller, Andreas Baumbach, Dominik Dold, Alexander Kugele, Nico Gürtler, Luziwei Leng, Eric Müller, Christoph Koke, Mitja Kleider, Christian Mauch, Oliver Breitwieser, Maurice Güttler, Dan Husmann de Oliveira, Kai Husmann, Joscha Ilmberger, Andreas Hartel, Vitali Karasenko, Andreas Grübl, Johannes Schemmel, Karlheinz Meier, Mihai A. PetroviciarXiv 2018 · DOI

Abstract

The massively parallel nature of biological information processing plays an important role for its superiority to human-engineered computing devices. In particular, it may hold the key to overcoming the von Neumann bottleneck that limits contemporary computer architectures. Physical-model neuromorphic devices seek to replicate not only this inherent parallelism, but also aspects of its microscopic dynamics in analog circuits emulating neurons and synapses. However, these machines require network models that are not only adept at solving particular tasks, but that can also cope with the inherent imperfections of analog substrates. We present a spiking network model that performs Bayesian inference through sampling on the BrainScaleS neuromorphic platform, where we use it for generative and discriminative computations on visual data. By illustrating its functionality on this platform, we implicitly demonstrate its robustness to various substrate-specific distortive effects, as well as its accelerated capability for computation. These results showcase the advantages of brain-inspired physical computation and provide important building blocks for large-scale neuromorphic applications.

Introduction

Traditional computer architectures are increasingly constrained by the "von Neumann bottleneck," where the physical separation of processing units and memory leads to significant energy and time costs during data transfer. Neuromorphic engineering offers a radical alternative by co-locating memory and computation within "silicon neurons," mimicking the brain's architecture. However, physical-model (analog) neuromorphic systems face a significant hurdle: manufacturing variability. Unlike digital systems, no two analog neurons are identical, creating "fixed-pattern noise." Furthermore, implementing Bayesian inference—a core component of probabilistic reasoning—requires efficient sources of stochasticity, which are difficult to realize on-chip.

This paper presents a significant step forward in this field: a generative spiking neural network implemented on the BrainScaleS platform that performs Bayesian inference 10,000 times faster than biological time. By embracing rather than fighting hardware variability through "in-the-loop" training, the researchers demonstrate robust performance on complex visual tasks.

The BrainScaleS Platform and Hardware Calibration

The BrainScaleS system is a mixed-signal platform that emulates the physics of neurons and synapses using CMOS technology. The hardware operates in an accelerated time domain, where the dynamics of Leaky Integrate-and-Fire (LIF) neurons are roughly four orders of magnitude faster than their biological counterparts.

The BrainScaleS hardware platform and the impact of calibration on neural dynamics.

As shown in Figure 2, the system utilizes entire 20cm silicon wafers (B) containing multiple reticles (C). A critical challenge is the inherent variability of the analog substrate. Panels D and E of Figure 2 illustrate the membrane potential of neurons before and after calibration. Without calibration, the response to identical stimuli varies wildly; however, through systematic adjustment of hardware parameters, the neural responses can be homogenized, providing a stable foundation for computation.

Neural Sampling and Stochasticity

To perform Bayesian inference, the authors mapped the dynamics of LIF neurons to a Markov Chain Monte Carlo (MCMC) sampling process. In this framework, the network's state at any given moment represents a sample from a target probability distribution.

Neural sampling framework: from graph representation to spiking dynamics and probability distributions.

Figure 4 outlines this approach. A graphical model (A) is mapped to a network of spiking neurons (D). The resulting spiking activity (B) allows the system to sample from the joint probability distribution of the network states. As shown in the histogram (C), the sampled distribution closely matches the target distribution. To provide the necessary stochasticity for this process without relying on external digital noise, the researchers implemented a Recurrent Random Network (RN) of inhibitory neurons directly on the wafer, creating a self-contained source of pseudo-stochasticity.

Hardware-in-the-Loop Training

To overcome the unique "personality" of individual silicon neurons, the researchers employed a "hardware-in-the-loop" training strategy. The network's activity was measured directly on the chip, and a host computer calculated weight updates using a modified wake-sleep algorithm. These updates were then written back to the chip. This iterative process allows the network to self-calibrate, effectively learning to ignore or utilize its own hardware flaws.

Results and Performance

The system was evaluated on reduced versions of the MNIST (rMNIST) and Fashion-MNIST (rFMNIST) datasets, downsampled to 12x12 pixels. The hardware-emulated networks achieved error rates of 4.45% on rMNIST and 3.32% on rFMNIST, performance levels that nearly match ideal software-based Restricted Boltzmann Machines (RBMs).

Beyond simple classification, the network demonstrated powerful generative capabilities. Through "guided dreaming," the system could generate new examples of a category (e.g., a "Sneaker") or complete corrupted images by clamping specific labels and allowing the visible layer to sample consistent patterns. The inference speed is remarkable: a classification or pattern completion task takes approximately 5 microseconds on the chip, equivalent to 50 milliseconds of biological time.

Discussion and Conclusion

While the analog circuits offer a 10,000x speedup over biology, the overall system speedup is currently limited to approximately 100x-210x due to the I/O bottleneck between the neuromorphic wafer and the host computer. This highlights the need for moving learning algorithms entirely onto the chip.

The successor system, BrainScaleS-2, addresses several limitations identified in this study. It features higher synaptic weight resolution (6-bit vs. 4-bit) and integrated microprocessors designed to handle plasticity and learning locally. These advancements will likely unlock the full acceleration potential of the platform and enable the scaling of these generative models to utilize the entire wafer, paving the way for large-scale, energy-efficient neuromorphic applications.

Summary updated

BibTeX
@misc{kungl2018generative,
  author = {Ákos F. Kungl and Sebastian Schmitt and Johann Klähn and Paul Müller and Andreas Baumbach and Dominik Dold and Alexander Kugele and Nico Gürtler and Luziwei Leng and Eric Müller and Christoph Koke and Mitja Kleider and Christian Mauch and Oliver Breitwieser and Maurice Güttler and Dan Husmann de Oliveira and Kai Husmann and Joscha Ilmberger and Andreas Hartel and Vitali Karasenko and Andreas Grübl and Johannes Schemmel and Karlheinz Meier and Mihai A. Petrovici},
  title = {{Generative models on accelerated neuromorphic hardware}},
  year = {2018},
  eprint = {1807.02389},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1807.02389},
}
Figure