Frontiers in Neuroinformatics (Jun 2023)

A scalable implementation of the recursive least-squares algorithm for training spiking neural networks

  • Benjamin J. Arthur,
  • Christopher M. Kim,
  • Christopher M. Kim,
  • Susu Chen,
  • Stephan Preibisch,
  • Ran Darshan

DOI
https://doi.org/10.3389/fninf.2023.1099510
Journal volume & issue
Vol. 17

Abstract

Read online

Training spiking recurrent neural networks on neuronal recordings or behavioral tasks has become a popular way to study computations performed by the nervous system. As the size and complexity of neural recordings increase, there is a need for efficient algorithms that can train models in a short period of time using minimal resources. We present optimized CPU and GPU implementations of the recursive least-squares algorithm in spiking neural networks. The GPU implementation can train networks of one million neurons, with 100 million plastic synapses and a billion static synapses, about 1,000 times faster than an unoptimized reference CPU implementation. We demonstrate the code's utility by training a network, in less than an hour, to reproduce the activity of > 66, 000 recorded neurons of a mouse performing a decision-making task. The fast implementation enables a more interactive in-silico study of the dynamics and connectivity underlying multi-area computations. It also admits the possibility to train models as in-vivo experiments are being conducted, thus closing the loop between modeling and experiments.

Keywords