On Harnessing Idle Compute at the Edge for Foundation Model Training
Leyang Xue, Meghana Madhyastha, Myungjin Lee, Amos Storkey, Randal Burns, Mahesh K. Marina
TL;DR
Cleave tackles the centralization of foundation-model training by enabling edge devices to participate in large-scale training via a PS-centric framework and fine-grained GEMM partitioning. The selective hybrid tensor parallelism and a cost-model-driven scheduling mechanism enable memory- and communication-efficient training, while explicitly accounting for device heterogeneity and churn. Empirical evaluation shows Cleave can match cloud GPU training times and scale to thousands of edge devices, with significantly faster recovery from failures and up to 8x device scalability compared to baselines. This work offers a practical path to democratize foundation-model development by leveraging idle edge compute without sacrificing accuracy or training speed.
Abstract
The ecosystem behind foundation model development today is highly centralized and limited to large-scale cloud data center operators: training foundation models is costly, needing immense compute resources. Decentralized foundation model training across edge devices, leveraging their spare compute, promises a democratized alternative. However, existing edge-training approaches fall short: they struggle to match cloud-based training performance, exhibit limited scalability with model size, exceed device memory capacity, and have prohibitive communication overhead. They also fail to satisfactorily handle device heterogeneity and dynamism. We introduce a new paradigm, Cleave, which finely partitions training operations through a novel selective hybrid tensor parallelism method. Together with a parameter server centric training framework, Cleave copes with device memory limits and avoids communication bottlenecks, thereby enabling efficient training of large models on par with the cloud. Further, with a cost optimization model to guide device selection and training workload distribution, Cleave effectively accounts for device heterogeneity and churn. Our evaluations show that Cleave matches cloud-based GPU training by scaling efficiently to larger models and thousands of devices, supporting up to 8x more devices than baseline edge-training approaches. It outperforms state-of-the-art edge training methods by up to a factor of 10 in per-batch training time and efficiently handles device failures, achieving at least 100x faster recovery than prior methods.
