LIBRA: Enabling Workload-aware Multi-dimensional Network Topology Optimization for Distributed Training of Large AI Models
William Won, Saeed Rashidi, Sudarshan Srinivasan, Tushar Krishna
TL;DR
LIBRA tackles the gradient and activation communication bottleneck in distributed training of large AI models by introducing a workload-aware, multi-dimensional network optimization framework. It models end-to-end training time as a function of bandwidth per dimension and uses a Quadratic Programming solver to allocate BW across dimensions for maximum performance or perf-per-cost, under design constraints. The framework supports multiple workloads, provides a cost model, and demonstrates notable speedups and cost reductions across large language models and vision/MLP workloads, including co-design opportunities with runtime schedulers. The work enables practical design-time co-optimization of topology, parallelization, and runtime strategies, and is poised to influence next-generation AI cluster architectures.
Abstract
As model sizes in machine learning continue to scale, distributed training is necessary to accommodate model weights within each device and to reduce training time. However, this comes with the expense of increased communication overhead due to the exchange of gradients and activations, which become the critical bottleneck of the end-to-end training process. In this work, we motivate the design of multi-dimensional networks within machine learning systems as a cost-efficient mechanism to enhance overall network bandwidth. We also identify that optimal bandwidth allocation is pivotal for multi-dimensional networks to ensure efficient resource utilization. We introduce LIBRA, a framework specifically focused on optimizing multi-dimensional fabric architectures. Through case studies, we demonstrate the value of LIBRA, both in architecting optimized fabrics under diverse constraints and in enabling co-optimization opportunities.
