English

PAT: a new algorithm for all-gather and reduce-scatter operations at scale

Distributed, Parallel, and Cluster Computing 2025-06-26 v1

Abstract

This paper describes a new algorithm called PAT, for Parallel Aggregated Trees, and which can be used to implement all-gather and reduce-scatter operations. This algorithm works on any number of ranks, has a logarithmic number of network transfers for small size operations, minimizes long-distance communication, and requires a logarithmic amount of internal buffers, independently from the total operation size. It is aimed at improving the performance of the NCCL library in cases where the ring algorithm would be inefficient, as its linear latency would show poor performance for small sizes and/or at scale.

Keywords

Cite

@article{arxiv.2506.20252,
  title  = {PAT: a new algorithm for all-gather and reduce-scatter operations at scale},
  author = {Sylvain Jeaugey},
  journal= {arXiv preprint arXiv:2506.20252},
  year   = {2025}
}
R2 v1 2026-07-01T03:32:43.725Z