Skip to content
CaMLSysUniversity of Cambridge
Home People Publications Projects Contact

← All publications

Photon: Federated LLM Pre-Training

  • Lorenzo SaniUniversity of CambridgeFlower Labs
  • Alex IacobUniversity of CambridgeFlower Labs
  • Zeyu CaoUniversity of Cambridge
  • Royson LeeUniversity of Cambridge
  • Bill MarinoUniversity of Cambridge
  • Yan GaoUniversity of CambridgeFlower Labs
  • Wanru ZhaoUniversity of Cambridge
  • Dongqi CaiUniversity of CambridgeBeijing University of Posts and Telecommunications
  • Zexi LiUniversity of CambridgeZhejiang University
  • Xinchi QiuUniversity of Cambridge
  • Nicholas D. LaneUniversity of CambridgeFlower Labs

Conference on Machine Learning and Systems (MLSys), 2025

Abstract

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 or weakly connected clusters of GPUs if they can effectively be used for pre-training. Building robust low-bandwidth training systems can: (a) significantly reduce communication infrastructure costs, (b) minimize the impact of hardware failures, (c) widen the pool of usable GPUs, (d) enable collaborative training over the internet, and (e) allow dynamic compute sourcing based on factors like electricity prices. Such advancements would lessen the dependence on specialized data centers, making large-scale AI training more accessible, cost-effective, and adaptable to real-time demands. 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 64×–512× less. 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.

Videos

Photon: Federated LLM Pre-Training — EfficientML Reading Group

Materials

  • PDF
  • Talk
BibTeX
@inproceedings{sani2025photon,
  title = {{Photon: Federated LLM Pre-Training}},
  author = {Sani, Lorenzo and Iacob, Alex and Cao, Zeyu and Lee, Royson and Marino, Bill and Gao, Yan and Zhao, Wanru and Cai, Dongqi and Li, Zexi and Qiu, Xinchi and Lane, Nicholas D.},
  year = {2025},
  booktitle = {Conference on Machine Learning and Systems (MLSys)},
  volume = {7},
  publisher = {MLSys},
  url = {https://proceedings.mlsys.org/paper_files/paper/2025/hash/185087ea328b4f03ea8fd0c8aa96f747-Abstract-Conference.html}
}
Cambridge Machine Learning Systems Group
Department of Computer Science and Technology
University of Cambridge
ContactGitHub