Cooperative Minibatching in Graph Neural Networks

Muhammed Fatih Balin, Dominique LaSalle, Ümit V. Çatalyürek · DOI

Abstract

Training large-scale Graph Neural Networks (GNNs) is computationally intensive due to the "Neighborhood Explosion Phenomenon" (NEP), where the number of nodes required for a single update grows exponentially with the number of layers. Traditional multi-GPU training uses independent minibatches, leading to significant redundant computation and data movement. This paper introduces Cooperative Minibatching and Dependent Minibatching to address these inefficiencies. By allowing processing elements to collaborate on a single large batch and optimizing for temporal locality, these methods achieve up to a 64% speedup and 4x bandwidth savings on large-scale benchmarks.

Introduction: The Neighborhood Explosion Challenge

In standard deep learning, minibatches are processed independently across multiple GPUs. However, GNNs operate on graph-structured data where nodes are interconnected. To compute the representation of a target node, a GNN must aggregate information from its $k$-hop neighborhood. As the graph scales, these neighborhoods overlap significantly between different target nodes.

When multiple GPUs train independently, they often fetch and process the same "overlap" nodes and edges. This redundancy, termed the Neighborhood Explosion Phenomenon, creates a bottleneck in memory bandwidth and computation. This paper proposes a paradigm shift from independent to collaborative processing to mitigate these overheads.

Methodology

Cooperative Minibatching

Cooperative Minibatching replaces the standard approach of assigning each Processing Element (PE) an independent minibatch. Instead, all PEs work together on a single, larger "global" minibatch. The graph is partitioned across PEs, and high-speed interconnects (e.g., NVIDIA NVLink) are used for "all-to-all" communication to exchange vertex IDs and embeddings.

Overview of Cooperative Minibatching where multiple PEs collaborate on a single global batch.

The theoretical foundation for this approach is the concavity of work: the size of a sampled subgraph is a concave function of the batch size. As the batch size increases, the incremental work required for each additional node decreases because the probability of neighborhood overlap increases. By processing one large batch collectively, the total number of unique nodes processed is significantly lower than the sum of nodes in multiple independent small batches.

Dependent Minibatching

While Cooperative Minibatching addresses spatial redundancy, Dependent Minibatching targets temporal redundancy. Traditional sampling is random to ensure independent and identically distributed (IID) data. However, this ignores the potential for data reuse in the GPU cache.

Illustration of Dependent Minibatching showing overlapping node selections across consecutive steps to improve temporal locality.

Dependent Minibatching generates consecutive minibatches that are "smoothly" changing, ensuring that the next batch shares a large portion of its nodes with the previous one. This significantly increases temporal locality, allowing the system to reuse data already residing in the GPU's cache and reducing the need for expensive fetches from main memory.

Experimental Evaluation

The proposed methods were evaluated on five diverse datasets, ranging from small-scale (flickr, yelp, reddit) to massive-scale graphs like papers100M (111M vertices) and mag240M (244M vertices).

Key Results

  • System Throughput: Cooperative Minibatching achieved up to a 1.64x speedup over independent training on multi-GPU systems. The gains were most pronounced on larger graphs where redundancy is highest.
  • Bandwidth Efficiency: Dependent Minibatching reduced the bandwidth required for fetching vertex embeddings by up to 4x. For instance, on the reddit dataset, the cache miss rate was slashed from 64% to 16%.
  • Model Accuracy: Despite the reduction in sampling randomness introduced by Dependent Minibatching, the authors demonstrated that model convergence and final accuracy remained unaffected.

Discussion and Conclusion

The success of Cooperative Minibatching highlights a shift in hardware trade-offs: modern interconnects like NVLink are now sufficiently fast that inter-GPU communication is often cheaper than redundant local computation or slow main-memory access.

However, the approach is currently limited by its dependency on high-speed interconnects. In multi-node clusters where inter-node communication (e.g., Ethernet) is significantly slower than intra-node communication, the overhead of all-to-all exchanges might diminish the benefits. Future work will focus on extending these collaborative strategies to distributed multi-node environments and exploring their applicability to more complex GNN architectures like Graph Transformers.

Summary updated

BibTeX
@article{balin2025cooperative,
  author = {Muhammed Fatih Balin and Dominique LaSalle and Ümit V. Çatalyürek},
  title = {{Cooperative Minibatching in Graph Neural Networks}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2025},
}
Figure