A Low-Latency Communication Design for Brain Simulations

Xin Du, Yuhao Liu, Zhihui Lu, Qiang Duan, Jianfeng Feng, Jie Wu, Boyu Chen, Qibao Zheng

Abstract

Brain simulation, as one of the latest advances in artificial intelligence, facilitates better understanding about how information is represented and processed in the brain. The extreme complexity of human brain makes brain simulations only feasible upon high-performance computing platforms. Supercomputers with a large number of interconnected graphical processing units (GPUs) are currently employed for supporting brain simulations. Therefore, high-throughput low-latency inter-GPU communications in supercomputers play a crucial role in meeting the performance requirements of brain simulation as a highly time-sensitive application. In this paper, we first provide an overview of the current parallelizing technologies for brain simulations using multi-GPU architectures. Then, we analyze the challenges to communications for brain simulation and summarize guidelines for communication design to address such challenges. Furthermore, we propose a partitioning algorithm and a two-level routing method to achieve efficient low-latency communications in multi-GPU architecture for brain simulation. We report experiment results obtained on a supercomputer with 2,000 GPUs for simulating a brain model with 10 billion neurons to show that our approach can significantly improve communication performance. We also discuss open issues and identify some research directions for low-latency communication design for brain simulations.

Introduction

Simulating the human brain is one of the "grand challenges" of modern computing. A human brain contains roughly 86 billion neurons and nearly 100 trillion synapses. To simulate even a fraction of this on a supercomputer, thousands of GPUs must work in parallel. However, the primary bottleneck is not raw computational power, but communication. In a brain simulation, neurons must constantly exchange "spikes" (data), generating petabytes of data per second at scale.

Existing simulators like Brian2Cuda, GeNN, and Neuron offer various levels of support for multi-GPU (mGPU) architectures and different programming paradigms. However, many current simulators rely on random neuron-to-GPU mapping and direct peer-to-peer (P2P) communication, which leads to massive network congestion when scaling to billions of neurons.

Overview of existing brain simulators and their multi-GPU capabilities.

Methodology

To overcome the communication bottleneck, this research proposes a two-pronged design to streamline data movement through supercomputing clusters:

  1. Greedy Partitioning Algorithm: Instead of random assignment, this algorithm uses a greedy strategy to group neurons that communicate frequently onto the same GPU. This maximizes "high cohesion" while ensuring the total workload remains balanced across the cluster, minimizing the volume of data that must leave a GPU's local memory.
  2. Two-Level Routing Method: Standard setups often attempt to open logical connections between every GPU pair, leading to unmanageable overhead. The proposed method clusters GPUs into groups. Intra-group GPUs communicate via direct P2P (Level-1), while inter-group communication is handled by designated "bridge GPUs" (Level-2). This reduces the average number of outgoing connections per GPU from 1,552 down to just 88.

Experimental Results

The framework was evaluated on the Kunlun supercomputer using up to 4,000 NVIDIA GPUs. The primary evaluation used a biological model of a real human brain with 10 billion neurons.

As shown in the performance data, traditional random mapping or Genetic Algorithms (GA) resulted in simulation latencies exceeding 4.5 hours per step for 10 billion neurons. In contrast, the proposed approach reduced this latency to sub-second levels, ranging from 0.179s to 0.367s depending on simulation noise.

Simulation latency comparison across different scales and partitioning methods.

Key Insights

  • Traffic Balancing: The authors found that balancing traffic to avoid network "hotspots" is more effective for reducing latency than simply lowering total volume. Peak traffic on heavily used links was reduced by up to 31.2% compared to random mapping.
  • Scalability: The design scaled effectively to 20 billion neurons across 4,000 GPUs, maintaining sub-second latency (approx. 0.32s to 0.49s).
  • Application-Layer Routing: This two-level routing is an application-layer logic that sits on top of standard protocols like MPI and InfiniBand, making it deployable on existing supercomputers without hardware changes.

Conclusion and Future Work

While this framework represents a significant leap toward real-time brain simulation, several hurdles remain. Current Message Passing Interface (MPI) libraries are not perfectly optimized for the complex topologies required, adding unnecessary static latency. Furthermore, managing the extreme sparsity of connection matrices as simulations scale toward the full 86-billion-neuron human brain remains a critical challenge. Future breakthroughs in parallel algorithm design will be essential to achieve full biological fidelity at scale.

Summary updated

BibTeX
@article{du2022low,
  author = {Xin Du and Yuhao Liu and Zhihui Lu and Qiang Duan and Jianfeng Feng and Jie Wu and Boyu Chen and Qibao Zheng},
  title = {{A Low-Latency Communication Design for Brain Simulations}},
  journal = {IEEE Network},
  year = {2022},
  doi = {10.48550/arxiv.2205.07125},
}
Figure