Ofan: Optimal Load Balancing for AI Training
Sarah McClure, Evyatar Cohen, Jakob Krebs, Alexander Shpiner, Mark Silberstein, Scott Shenker, Sylvia Ratnasamy, Isaac Keslassy
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 queueing for messages of size , thus eventually triggering rate reductions by the congestion control. Instead, we suggest Ofan, a switch-based destination-aware LB scheme that can reach 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 -- when compared to existing algorithms.
Create a lesson
Metadata
- Categories
- cs.NI, cs.DC, cs.PF
- Comments
- Extends the second part (Ofan) of arXiv:2507.21372
Related papers
Load Balancing with Partial Queue Information - Threshold Optimality and Indexability
Shared title terminologycs.NISathwik Chadaga, Eytan Modiano
An Autonomous Power-of-Two-Choices Layer-4 Load Balancer for Programmable Switching ASICs
Shared title terminologycs.NITing-Ching Hung, Chien Chen, Jyh-Cheng Chen
Flux: Optimal Scheduling of Optical Circuit Switches for LLM Training
Shared title terminologycs.NIArno Troch, Seyyidahmed Lahmer, Abubakr Nada et al.
Optimal GPU Placement for Collective Communication over Reconfigurable Optical Networks
Shared title terminologycs.NIJiaheng Xiong, Qiaolun Zhang
Cross-Layer Resource Optimization with Adaptive Network Slicing and Beam Management
Shared title terminologycs.NIAmber Hina, Alessandro Nordio
Movement-Cost-Aware Energy Minimization in Pinching Antenna-Assisted WPCN: A Joint Energy-Time Optimization
Shared title terminologycs.NIXiang Zhang, Ke Xiong, Wei Chen et al.