Scalable Construction of Spiking Neural Networks using up to thousands of GPUs

Bruno Golosio, Gianmarco Tiddia, Jose Villamar, Luca Pontisso, Luca Sergi, Francesco Simula, Pooja N. Babu, Elena Pastorelli, Abigail Morrison, Markus Diesmann, Alessandro Lonardo, Pier Stanislao Paolucci, Johanna SenkarXiv 2025 · DOI

Abstract

Simulating brain-scale spiking neural networks (SNNs) requires managing trillions of synaptic connections across massive supercomputing clusters. While GPU-based simulation has advanced significantly, the initial construction phase—setting up these connections—has remained a critical bottleneck. This paper introduces an "onboard" construction method within the NEST GPU 2.0 framework that builds connectivity directly in GPU memory. By eliminating CPU-to-GPU data transfers and utilizing parallel sorting and aligned pseudo-random number generators, the system achieves a 10x speedup in setup time and demonstrates weak scaling across 1,024 GPUs. These results pave the way for simulating 10% of the human cortex on upcoming exascale supercomputers.

Introduction

To understand the human brain, researchers must simulate networks containing approximately $10^{10}$ neurons and $10^{14}$ synapses. While modern GPUs are highly efficient at the "simulation" phase—the iterative calculation of neuronal firing—the "construction" phase often lags behind. Traditionally, connectivity maps are generated on the CPU and then transferred to the GPU. As network sizes approach brain-scale, this transfer becomes a primary bottleneck, often exceeding the time required for the actual simulation.

Existing solutions often attempt to save memory by generating connections "on the fly" during simulation, but this prevents researchers from storing and modifying individual synapse information, which is essential for studying plasticity and detailed biological structures. This work addresses the challenge of building massive, detailed networks quickly and efficiently across entire supercomputing clusters by moving the construction logic entirely onto the GPU.

Methods: Onboard Construction

The core innovation presented is the "onboard" construction algorithm implemented in NEST GPU 2.0. In this paradigm, each Message Passing Interface (MPI) process independently builds its local connectivity and prepares data structures for spike exchange directly within GPU memory.

Technical Components

  • Proxy Neurons: To manage communication across different GPUs, the system utilizes "proxies"—local images of neurons that reside on remote GPUs. This allows for efficient spike routing.
  • Communication Modes: The framework supports two primary modes: Point-to-Point (P2P) communication, which is optimized for heterogeneous, biologically realistic models, and Collective communication (using MPI_Allgather), which is ideal for high-density, balanced networks.
  • Optimization Levels (0–3): To balance memory constraints with performance, the authors implemented a tiered system. Level 0 keeps mapping structures on the CPU to save GPU RAM, while Level 3 moves all structures to the GPU for maximum simulation velocity.
  • RNG Alignment: A critical optimization involves the use of aligned pseudo-random number generators (RNGs). By using identical seeds for specific source-target pairs, different GPUs can independently "agree" on connection patterns without inter-GPU communication during the construction phase.

Experimental Evaluation

The researchers evaluated the system using two distinct models to test both biological realism and raw scalability:

  1. Multi-Area Model (MAM): A realistic representation of 32 areas of the macaque monkey visual cortex, comprising 4.13 million neurons and 24.2 billion synapses.
  2. Scalable Balanced Network: A synthetic benchmark designed to test weak scaling. This model was scaled up to 230.4 million neurons and 2.59 trillion synapses across 1,024 GPUs.

Key Results

Performance and Speedup

The "onboard" construction method achieved a 10x speedup compared to traditional "offboard" (CPU-based) methods. For the Macaque Multi-Area Model, setup time was reduced from approximately 686 seconds to just 55 seconds. This shift ensures that construction no longer dominates the total runtime of large-scale simulations.

Scalability and Exascale Readiness

The system demonstrated successful weak scaling up to 1,024 NVIDIA A100 GPUs on the Leonardo Booster supercomputer. Extrapolations suggest that on the full Leonardo cluster (3,456 nodes), the framework could simulate a model with $3.5 \times 10^{13}$ connections—roughly 10% of the human cortex—while maintaining the ability to track individual synapse data.

Statistical Validity

To ensure that the GPU-based construction did not introduce artifacts, the authors employed the Earth Mover’s Distance (EMD) metric. The spiking statistics (firing rates and correlations) produced by the new method were found to be statistically identical to those from established, CPU-based simulators.

Discussion and Future Work

While the current framework provides a massive leap in construction efficiency, some limitations remain. Load balancing currently requires manual intervention to decide neuron distribution across GPUs. Future iterations aim to implement "network-structure-aware" mapping strategies to automate this process. Additionally, the authors propose a hybrid communication scheme that uses P2P for local clusters and collective communication for long-range projections, more closely mimicking the hierarchical architecture of the biological brain.

By moving construction "onboard," this research removes a significant barrier to exascale neuroscience, enabling the simulation of increasingly complex and biologically faithful neural systems.

Summary updated

BibTeX
@misc{golosio2025scalable,
  author = {Bruno Golosio and Gianmarco Tiddia and Jose Villamar and Luca Pontisso and Luca Sergi and Francesco Simula and Pooja N. Babu and Elena Pastorelli and Abigail Morrison and Markus Diesmann and Alessandro Lonardo and Pier Stanislao Paolucci and Johanna Senk},
  title = {{Scalable Construction of Spiking Neural Networks using up to thousands of GPUs}},
  year = {2025},
  eprint = {2512.09502},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.09502},
}
Figure