Introduction
Simulating the human brain requires modeling approximately 10 billion neurons and 100 trillion synapses. As computational neuroscience moves toward this "brain-scale," simulations must scale across thousands of compute nodes. However, traditional simulation kernels, such as the NEST "4g" kernel, encounter a "memory wall." In these systems, connection information is primarily stored on the postsynaptic side, requiring every node to maintain global sparse tables to identify incoming spikes. As the number of Message Passing Interface (MPI) processes grows, these tables and buffers consume disproportionate amounts of RAM, eventually precluding the simulation of the neurons and synapses themselves.
Methodology
To address these bottlenecks, this paper introduces the "5g" kernel for the NEST simulator, featuring three primary architectural innovations.
Two-Tier Connection Infrastructure
The 5g kernel transitions from a purely postsynaptic storage model to a two-tier infrastructure. While postsynaptic data remains on the target node, a new presynaptic component is introduced on the source node. This presynaptic structure functions as a routing table, identifying exactly which remote nodes require spikes from local neurons.
Directed Communication via MPI_Alltoall
Previous iterations relied on MPI_Allgather, where every node broadcasted its spikes to the entire network. The 5g kernel utilizes MPI_Alltoall, enabling directed communication. Nodes now only transmit data to the specific ranks hosting target neurons, exploiting the extreme sparsity of brain-scale connectivity.
Memory Locality and Sorting
The authors implemented a "5g-sort" strategy to enhance cache efficiency. By sorting connections by source ID, the system ensures linear memory access upon spike arrival. This optimization ensures that the high-scale performance does not come at the cost of efficiency on smaller systems, such as laptops.
Results
The 5g kernel was benchmarked using a Balanced Random Network Model on high-performance computing (HPC) systems including JUQUEEN, JURECA, and the K computer.
- Memory Efficiency: The kernel achieved perfect memory scaling for postsynaptic structures. On the JUQUEEN system, researchers simulated a network of 730 million neurons and 8 trillion synapses, a major milestone toward full brain-scale simulation.
- Execution Speed: Large-scale simulations on JUQUEEN demonstrated a speedup of up to 55% compared to the previous kernel.
- Communication Efficiency: While
MPI_Allgatheroverhead increases linearly with process count, theMPI_Alltoallapproach maintains nearly constant communication time across scales.
Discussion
Despite these advancements, challenges remain. The construction of presynaptic routing tables increases initialization time, which currently scales with the number of processes. Furthermore, the static nature of these structures makes the kernel less efficient for simulations involving structural plasticity, where connections are frequently added or removed. Future research will explore spatial mapping to reduce latency and the adaptation of these sparse structures for GPU accelerators.
Summary updated