Concepts: Distributed Ring All-Reduce
Bandwidth-optimal peer-to-peer TCP communication for multi-node gradient synchronization.
In a ring of $N$ workers:
- Divide gradients into $N$ equal chunks.
- Scatter-Reduce phase: Each node sends chunk $k$ to its right neighbor while receiving chunk $k-1$ from its left neighbor for $N-1$ steps.
- All-Gather phase: Transmit fully accumulated chunks around the ring for another $N-1$ steps.