All-Reduce
All-reduce is a communication operation in which every node in a group contributes a value, the values are combined, and every node receives the combined result.
In more detail
All-reduce is one of a family of collective operations, in which a whole group of processes communicates in one coordinated step. They originate in high-performance computing.
In AI, all-reduce is central to distributed training. Each accelerator processes a different batch of data and calculates gradients, which indicate how the model should change. The gradients from all accelerators must be summed or averaged, and every accelerator needs the result so that all copies of the model stay identical. That happens at every training step.
There are several ways to carry it out. In a ring, each node passes data to its neighbor over a series of rounds. In a tree, values are combined upward and distributed back down. Hierarchical methods combine first among accelerators in the same server and then more widely. Communication libraries choose according to data size and how the cluster is connected.
Why it matters
All-reduce shapes the traffic that AI networks must carry. Every accelerator sends and receives large amounts of data at the same instant, in a few very large flows, and the operation is complete only when the slowest transfer finishes.
Those properties explain many features of AI networking: non-blocking topologies, RDMA, per-packet load balancing through packet spraying and the emphasis on consistent latency.
All-reduce performance is a standard benchmark for an AI fabric. Among closely coupled accelerators, it runs over the scale-up network.