Photon: Federated LLM Pre-Training

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Sani, Lorenzo, Iacob, Alex, Cao, Zeyu, Lee, Royson, Marino, Bill, Gao, Yan, Cai, Dongqi, Li, Zexi, Zhao, Wanru, Qiu, Xinchi, Lane, Nicholas D.
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866912106240016384
author Sani, Lorenzo
Iacob, Alex
Cao, Zeyu
Lee, Royson
Marino, Bill
Gao, Yan
Cai, Dongqi
Li, Zexi
Zhao, Wanru
Qiu, Xinchi
Lane, Nicholas D.
author_facet Sani, Lorenzo
Iacob, Alex
Cao, Zeyu
Lee, Royson
Marino, Bill
Gao, Yan
Cai, Dongqi
Li, Zexi
Zhao, Wanru
Qiu, Xinchi
Lane, Nicholas D.
contents Scaling large language models (LLMs) demands extensive data and computing resources, which are traditionally constrained to data centers by the high-bandwidth requirements of distributed training. Low-bandwidth methods like federated learning (FL) could enable collaborative training of larger models across weakly-connected GPUs if they can effectively be used for pre-training. To achieve this, we introduce Photon, the first complete system for federated end-to-end LLM training, leveraging cross-silo FL for global-scale training with minimal communication overheads. Using Photon, we train the first federated family of decoder-only LLMs from scratch. We show that: (1) Photon can train model sizes up to 7B in a federated fashion while reaching an even better perplexity than centralized pre-training; (2) Photon model training time decreases with available compute, achieving a similar compute-time trade-off to centralized; and (3) Photon outperforms the wall-time of baseline distributed training methods by 35% via communicating 64x-512xless. Our proposal is robust to data heterogeneity and converges twice as fast as previous methods like DiLoCo. This surprising data efficiency stems from a unique approach combining small client batch sizes with extremely high learning rates, enabled by federated averaging's robustness to hyperparameters. Photon thus represents the first economical system for global internet-wide LLM pre-training.
format Preprint
id arxiv_https___arxiv_org_abs_2411_02908
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Photon: Federated LLM Pre-Training
Sani, Lorenzo
Iacob, Alex
Cao, Zeyu
Lee, Royson
Marino, Bill
Gao, Yan
Cai, Dongqi
Li, Zexi
Zhao, Wanru
Qiu, Xinchi
Lane, Nicholas D.
Machine Learning
Distributed, Parallel, and Cluster Computing
Scaling large language models (LLMs) demands extensive data and computing resources, which are traditionally constrained to data centers by the high-bandwidth requirements of distributed training. Low-bandwidth methods like federated learning (FL) could enable collaborative training of larger models across weakly-connected GPUs if they can effectively be used for pre-training. To achieve this, we introduce Photon, the first complete system for federated end-to-end LLM training, leveraging cross-silo FL for global-scale training with minimal communication overheads. Using Photon, we train the first federated family of decoder-only LLMs from scratch. We show that: (1) Photon can train model sizes up to 7B in a federated fashion while reaching an even better perplexity than centralized pre-training; (2) Photon model training time decreases with available compute, achieving a similar compute-time trade-off to centralized; and (3) Photon outperforms the wall-time of baseline distributed training methods by 35% via communicating 64x-512xless. Our proposal is robust to data heterogeneity and converges twice as fast as previous methods like DiLoCo. This surprising data efficiency stems from a unique approach combining small client batch sizes with extremely high learning rates, enabled by federated averaging's robustness to hyperparameters. Photon thus represents the first economical system for global internet-wide LLM pre-training.
title Photon: Federated LLM Pre-Training
topic Machine Learning
Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2411.02908