DiLoCo: Distributed Low-Communication Training of Language Models
Adel Nabli - Johan Obando
Introduction
Related Work
Methodology
Setup
Ablations
Experiments
Limitations and Conclusions
Questions
Agenda
Introduction
Related Work
Methodology
Experiments
Conclusion
Limitations
Questions
Agenda
Introduction
Large language models (LLM) have become a critical component in many applications of machine learning.
Distributed Low-Communication (DiLoCo), that enables training of language models on islands of devices that are poorly connected.
Introduction
Because performance has scaled with model size, practitioners train increasingly larger models on increasingly large data.
At modern scale, training via standard backpropagation poses unprecedented engineering and infrastructure challenges.
Introduction
This work take inspiration from literature on Federated Learning
The current paradigm poorly leverages heterogeneous devices, that might have different speed and topology.
Introduction
The authos propose a variant of the popular Federated Averaging (FedAvg) algorithm (McMahan et al., 2017)
Address the shortcomings mentioned before
Introduction
Common Crawl is a publicly-available web archive that provides โweb extracted textโ by removing markup and other non-text content from the scraped HTML files. โColossal Clean Crawled Corpusโ larger and comprises reasonably clean and natural english text
Introduction
In a large-batch training setting with overtraining, our empirical validation on the C4 dataset (Raffel et al., 2020)
Introduction
Related Work
Methodology
Experiments
Conclusion
Limitations
Questions
Agenda
Related Work
Local SGD and Federated Learning Several communities have proposed and studied local SGD.
Related Work
Related Work
โฆ how to linearly interpolate between several models in parameters space (Frankle et al., 2020; Wortsman et al., 2021).
A surprising result from this field is the relative easiness to find a linear interpolation between several models where all intermediary points have a low loss, avoiding any loss barrier.
Originally proposed in the vision domain, this method has then been used also in NLP (Li et al., 2022), RLHF (Ramรฉ et al., 2023a), noisy data (Rebuffi et al., 2022), and OOD (Ramรฉ et al., 2023b).
Introduction
Related Work
Methodology
Experiments
Conclusion
Limitations
Questions
Agenda
Methodology
In language modeling (Vaswani et al., 2017), the input is a sequence of tokens and the target is the input sequence shifted by one.
*At each outer step ๐ก, gradients from each worker are gathered, averaged and sent to an outer optimizer (OuterOpt) to update the shared copy of the parameters. Afterwards, this shared copy of the parameters is re-dispatched to each local worker (line 3).
Methodology
Methodology
They use as inner optimizer (InnerOpt) AdamW (Kingma and Ba, 2014; Loshchilov and Hutter, 2019), which is the most widely used optimizer for transformer language models.
As for the outer optimizer (OuterOpt) we use Nesterov momentum (Sutskever et al., 2013) because it gave the best convergence em- pirically.
Methodology
Methodology
Introduction
Related Work
Methodology
Experiments
Conclusion
Limitations
Questions
Agenda
Experiments
Setup:
chinchilla-style (Hoffmann et al., 2022)
Experiments
Setup:
Experiments
Setup:
Experiments
Experiments
Ablations:
Experiments
Experiments
Experiments
Experiments
Experiments
Experiments
Experiments
Limitations
In the paper:
Additional limitations:
Limitations
Copy-pasted from [Reddi et al., 2020].
Limitations
โ DiLoCo presented here assumes that all workers are homogeneousโ p.10
DiLoCo is synchronous:
-> if heterogeneous device used, wait for slowest at each outer step.
Limitations
โin an overtrained setting with large amount of stepsโ p.7
-> for 60M model, k=8:
-> Theoretical result from [Reddi et al., 2020]:
โthe number of local iterations can be large when T is largeโ
What is the impact on DiLoCo? Is overtraining necessary to effectively use large H?
Limitations
Conclusion
Questions