Can Model Merging Improve Aggregation in DiLoCo?
Stefan Horoi, Benjamin Thérien, Guy Wolf, Eugene Belilovsky
NeurIPS page · Open on the map
Category: Optimization & Federated Learning › Federated Learning · Type: new method · Keywords: model merging, distributed optimization, local SGD, DiLoCo, Iso-C, Nesterov momentum
Summary
IsoLoCo introduces a merging-inspired aggregation with Nesterov momentum that significantly improves DiLoCo's performance in distributed training.
Explained to a 5-year-old
Many computers work together to train a big AI model, but they only talk to each other a little to save time. Sometimes the model gets worse when many computers help, like when too many people try to solve a puzzle at once. The researchers looked at how people combine small models and found a clever way to share information. They added a special trick called momentum that helps the computers agree faster and stay more accurate. This makes the big AI model learn better while using less talking between them.
Explained to a 5-year-old, longer
In a big classroom, many students want to solve a huge puzzle together, but they only exchange a few pieces at a time to avoid wasting time. When too many students work on the puzzle separately, the final picture can become blurry and less clear. The researchers noticed that when people combine small pictures they have drawn, they can often make a better overall picture. They studied how these picture-combining tricks work in computer training and found a way to use them for the classroom puzzle. They added a special rule that helps the students update their pieces more smoothly, like a gentle push that keeps everyone moving in the right direction. This smoother updating makes the final puzzle much sharper and more accurate. As more students join the classroom, the improvement becomes even bigger, leading to a much better final picture. The new method works well no matter how many students are in the room, and it keeps the communication between them low. This helps teachers and researchers train big AI models more efficiently, saving both time and computer power.
For a technical reader
The paper connects model merging techniques with distributed optimization, showing that merging strategies can improve aggregation in local SGD-style training. By evaluating several merging methods, the authors identified a promising approach (Iso-C) and enhanced it with Nesterov momentum to create a new distributed training algorithm. Empirical tests on language model pre-training demonstrate that this algorithm consistently outperforms traditional DiLoCo across various worker counts and model sizes, widening the performance gap as scaling increases. The results suggest that leveraging merging insights can yield more effective low-communication training.
Problem
Communication-efficient distributed training methods degrade in performance as the number of local workers and local training steps increase, compared to the FLOP-matched data-parallel baseline.
Method
The approach draws an analogy between pseudo-gradient aggregation in distributed optimization and task-arithmetic model merging, then evaluates merging methods and adapts the best one with Nesterov momentum for distributed training.
Results
The proposed approach significantly outperforms the baseline distributed training method across varying worker counts, model sizes, and inner step counts, with the performance gap widening as the number of workers increases.
Contributions
The paper establishes a connection between model merging and distributed optimization aggregation, evaluates merging methods, and introduces a momentum-augmented version of the best merging method that yields superior performance in low-communication distributed training.
Practical relevance
The findings provide an effective strategy for low-communication distributed training, enabling better scalability for large-scale model training.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction