Ofan: Optimal Load Balancing for AI Training
Sarah McClure, Evyatar Cohen, Jakob Krebs, Alexander Shpiner, Mark Silberstein, Scott Shenker, Sylvia Ratnasamy, Isaac Keslassy
Key points
From the paper's conclusion- We also present its pOfan variant that fits the pipe-based architecture of current switches.
Abstract
The extreme collective completion time (CCT) demands of AI workloads challenge existing packet spraying algorithms, which can have trouble efficiently load-balancing workloads that are sent at full line rates. We trace this to a structural cause: on a fat tree, once a packet picks its upward path, the downward path to its destination is unique, so destination-oblivious schemes cannot undo the imbalance it creates. We prove that such schemes can suffer from $\Theta(\sqrt{m})$ queueing for messages of size $m$, thus eventually triggering rate reductions by the congestion control. Instead, we suggest Ofan, a switch-based destination-aware LB scheme that can reach $O(1)$ queueing. We also present its pOfan variant that fits the pipe-based architecture of current switches. Our P4 implementation shows that it consumes modest resources. An end-to-end FSDP2 evaluation with Llama-3 405B-parameter models shows that Ofan cuts CCT inflation by $16$--$39\times$ when compared to existing algorithms.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Coordination-Free Workload Regularization for Variable-Cost Distributed TrainingarXiv · 2026
- Inference-Aware Congestion Control for Distributed MoE InferencearXiv · 2026
- RailS: Load Balancing for All-to-All Communication in Distributed Mixture-of-Experts TrainingIEEE Transactions on Networking · 2026
- DataHelix: A CPU-GPU Co-Scheduling Data Plane for Multimodal Model TrainingarXiv · 2026
- HyCoInfer: Cloud-Edge Collaborative Inference for Large Language Models on Heterogeneous GPU-FPGA ArchitecturesarXiv · 2026
- ETH: Data-Balanced Heterogeneous Pipeline Parallelism for Training Large ModelsarXiv · 2026