论文精选

联邦学习结合分片数据并行加速大模型训练

Accelerating Sharded Data Parallelism at Scale with Federated Learning

精选理由

这是篇挺有意思的技术论文,作者把联邦学习的思想用在了大模型训练上,在 512 块 A100 上跑 Llama3.1 8B 时,数据吞吐量提升了 8.04 倍,挺厉害的。

这项研究提出 FL+FSDP 和 FL+HSDP 两种混合算法,将分片数据并行与联邦学习结合,在 512 块 A100 显卡上对 Llama3.1 8B 模型预训练时,数据吞吐量提升 8.04 倍,评估困惑度降低 4.48,显著减少通信开销。

原文 · arXiv cs.AI

Accelerating Sharded Data Parallelism at Scale with Federated Learning

The symbiotic scaling of artificial intelligence models and high-performance computing systems continually creates algorithmic challenges in their convergence. Foundation models (FMs) are a crucial example, requiring months-long training on thousands of cutting-edge GPUs. Sharded data parallelism (DP) is the dominant strategy to accelerate such computations by splitting data and models across multiple GPUs. However, it incurs prohibitive communication overhead when deployed at scale, particularly on multi-tier interconnects with heterogeneous performance. Inspired by the efficient communication principles of federated learning (FL), this work introduces two hybrid algorithms - FL+FSDP and FL+HSDP - interleaving sharded DP with FedAvg-style aggregations. Such approaches decouple large DP deployments into smaller, loosely-coupled federation groups, requiring minimal inter-group traffic while keeping the global batch size bounded by the groups' size. Formal analysis of communication costs and experimental validation prove their scalability and flexibility. A Llama3.1 8B pre-training on 512 A100 GPUs shows that, under identical hyperparameters, FL+FSDP and FL+HSDP achieve up to 8.04 faster data processing and 4.48 lower evaluation perplexity than their counterparts, demonstrating superior computational efficiency and improved model quality. These properties stem from reduced communication overhead and the bounded growth of the global batch size relative to the federation group size.