A differentiable brain simulator bridging brain simulation and brain-inspired computing

Chaoming Wang, Tianqiu Zhang, Sichao He, Yifeng Gong, Hongyaoxing Gu +2 more
11/1/2023

No official code found. Best implementation: brainpy/BrainPy (714 stars, GPL-3.0, last commit 2026-04-28).

Abstract

Brain simulation builds dynamical models to mimic the structure and functions of the brain, while brain-inspired computing (BIC) develops intelligent systems by learning from the structure and functions of the brain. The two fields are intertwined and should share a common programming framework to facilitate each other's development. However, none of the existing software in the fields can achieve this goal, because traditional brain simulators lack differentiability for training, while existing deep learning (DL) frameworks fail to capture the biophysical realism and complexity of brain dynamics. In this paper, we introduce BrainPy, a differentiable brain simulator developed using JAX and XLA, with the aim of bridging the gap between brain simulation and BIC. BrainPy expands upon the functionalities of JAX, a powerful AI framework, by introducing complete capabilities for flexible, efficient, and scalable brain simulation. It offers a range of sparse and event-driven operators for efficient and scalable brain simulation, an abstraction for managing the intricacies of synaptic computations, a modular and flexible interface for constructing multi-scale brain models, and an object-oriented just-in-time compilation approach to handle the memory-intensive nature of brain dynamics. We showcase the efficiency and scalability of BrainPy on benchmark tasks, highlight its differentiable simulation for biologically plausible spiking models, and discuss its potential to support research at the intersection of brain simulation and BIC.

View on arXivView PDF

Code Implementations(1)

brainpy/BrainPyCommunity100%
GPL-3.0

Brain Dynamics Programming in Python

714110PythonJul 16, 20205 months agoGPL-3.0
brain-dynamics-modelingbrain-inspired-computingbrain-simulationsbrainpyspiking-neural-networks

Similar Papers

Cite this paper

@article{wang2023differentiable,
  title  = {A differentiable brain simulator bridging brain simulation and brain-inspired computing},
  author = {Chaoming Wang and Tianqiu Zhang and Sichao He and Yifeng Gong and Hongyaoxing Gu and Shangyang Li and Si Wu},
  year   = {2023},
  eprint = {2311.05106},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2311.05106},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.05106.svg)](https://codeofpaper.com/paper/2311.05106)

Discussion