Every AI training step ends the same way. All the GPUs have to agree on one set of gradients. That agreement is an all-reduce, and it's pure network cost.
What all-reduce costs
Each GPU computes its own gradients on its slice of the batch. To get the final gradient, you average across every GPU, and averaging means moving data across the fabric, again and again, in a ring or a tree. During that phase your very expensive GPUs are mostly idle, waiting on the network. As models and clusters grow, this communication phase becomes a real share of every step.

Do the math in the switch
In-network aggregation flips the model. Instead of treating switches as dumb pipes that only move bytes, you let them do part of the reduction. NVIDIA's version is SHARP, the Scalable Hierarchical Aggregation and Reduction Protocol. It offloads collective operations, all-reduce, reduce, and broadcast, from the GPUs into the switches.
The flow is hierarchical. Each switch sums the gradients it receives from the GPUs below it, then passes that partial sum up to the next level. The top of the tree produces the single reduced result and broadcasts it back down to everyone. No GPU has to collect everything itself.

Why it helps, and the catch
Because the gradients are read once and summed inside the fabric, the traffic each GPU interface has to move roughly halves during the collective, and the latency drops because the reduction happens in the network rather than bouncing between endpoints. NVIDIA reports up to 8 times lower collective latency and meaningful end-to-end training speedups on communication-heavy workloads.
The catch is that this is fabric-specific. SHARP runs on NVIDIA's InfiniBand switches and on NVLink inside a node, it needs switch support, and it helps most when communication is actually your bottleneck, which means large models and many GPUs. Ethernet equivalents are emerging but aren't yet as mature.
The takeaway is the mindset shift. When you size an AI fabric, in-network compute is a lever on training time, not just a bandwidth number. Ask whether your switches can do collectives, not only move packets.
Written by Sabyasachi Kar

Comments (0)
Please sign in to comment.