- Rating
- 4
- Clarity
- 3
- Confidence
- 3
- Originality
- 3
- Quality
- 3
- Significance
- 2
Read review
Summary
This paper studies the theory of two-stage optimizers such as DiLoCo, a new type of optimizer that has recently become popular for training LLMs. These methods let individual workers perform several local steps (the inner optimization step), after which the local results are aggregated and a parameter update is performed (the outer optimization step). The authors start by analyzing DiLoCo with a single worker, known as the Look Ahead (LA) method, in high-dimensional linear regression and the NTK regime. Their analysis suggests that there is a tradeoff between making progress in minimizing the loss and accumulating noise, and that the two-phase structure, with separate inner and outer step sizes, gives more freedom to handle this tradeoff. They also find that at a fixed total batch size, splitting the work across more workers tends to add noise rather than help. Finally, the paper argues that using two momentum terms can be better than using a single one in the deterministic setting, especially when the outer momentum is Nesterov-style and the outer learning rate is chosen appropriately. In particular, the outer momentum can lead to faster convergence along the eigenvectors of the Hessian.
Strengths and weaknesses
Strengths
-
Using Lookahead (LA) to analyze DiLoCo is a good and reasonable choice, since it lets the authors first study the single-worker setting and then generalize from there. Writing down the loss dynamics and separating the deterministic and noise terms is interesting, and it shows the benefit of the outer step size and the extra freedom we gain compared to single-loop SGD with only one step size.
-
The observation that, with a fixed per-worker batch size, adding workers always reduces noise, while with a fixed total batch size, adding workers hurts is interesting and relevant to practice. The authors also propose a way to address this increase in noise from more workers: using a smaller step size for the inner optimization and a larger step size for the outer optimization to compensate for the small inner step size.
-
The paper shows a non-trivial effect of dual momentum that cannot be obtained with a single one. The insight is useful: the outer momentum can speed up the directions that the inner optimization was slow on so the two act as complementary. The authors also show that the type of momentum matters and some choices such as heavy ball can hurt convergence while Nesterov-style momentum is a good choice.
Weaknesses
-
Since the setting considered in the work is the NTK / lazy regime, the implicit regularization of DiLoCo is not clear, because no feature learning happens. As a result, the full picture of why DiLoCo-style methods are helpful in practice is not complete.
-
The claim in Section 3.1 that LA can be faster than SGD is mainly supported by numerical iteration of the derived high-dimensional dynamics for selected spectra, rather than by a general theorem. In the introduction, the authors mention that LA can provably be better than SGD, which seems too broad unless the precise setting for this guarantee is clarified.
-
The only formal theorem considers a very simple isotropic case of with identical eigenvalues, and it addresses the multi-worker noise behavior at fixed total batch size. The more interesting heterogeneous-spectrum claims, including the cases where LA can improve over SGD, are mostly supported by numerical evidence rather than theorem-level results. It is also not clear how interesting the case of identical eigenvalues is.
-
Section 4 uses full GD, which has no noise. This is a strong simplification given the earlier sections, where the signal/noise tradeoff was an important part of the results. It is therefore unclear how dual momentum affects the noise accumulation and its tradeoff with the progress in the deterministic term.
-
All the experiments in the current draft are limited to a simple synthetic case. It would be much better to include some real-world training and show some of the predictions of the theory, for instance in LLM training.
Questions
-
Could authors explain in which scenario LA is provable better than SGD?
-
Can you provide some experiments beyong NTK regime in which some parts of the theory still holds? even some experiment for 2 layer MLP with non-linear activation could strenghten the paper.
Limitations
yes
Paper formatting concerns
No
Final justification
The rebuttal resolves some important concerns. The claimed new theorem showing regimes where LA is provably faster than SGD directly addresses my main theoretical concern. The extension beyond the isotropic case also strengthens the theory. The added experiments provide useful evidence beyond the original synthetic setting. Some issues remain: the nonlinear experiments are still preliminary, the Nesterov vs heavy-ball gains are small, and the dual-momentum theory is still deterministic, so the effect of stochastic noise is not fully explained.
We thank the reviewer for their detailed comments; we found them quite helpful and will address a few here.
On the topic of whether or not the theory holds beyond the NTK regime: we conducted experiments training a two-layer MLP on MNIST using LA-Diloco (batch size 256, hidden dimension 128, cycle length S=20). We first trained with ν=0.4 and optimized the inner learning rate. We then varied R in two ways: first, by leaving both learning rates fixed, and second by using the proposed R−1/2 scaling rule for the inner optimizer (and counter-scaling the outer learning rate ν).
The results can be seen in this plot. We see that there is no collapse in learning curves when the inner and outer learning rates are kept fixed across R (left plot). When we do scale the inner learning rate, we have very good agreement with two exceptions: the early time dynamics at R=1 does not collapse (though the later time dynamics do), and for R=32 the training becomes unstable (since ν>2 using the scaling rule). We suspect that the early-time differences are due to non-linear effects due to the higher inner learning rate at R=1 (e.g. things like edge of stability).
This suggests that there may be validity to the scaling rule beyond the NTK regime; however firmly establishing this in practical settings will take additional work that is beyond the scope of this paper. We leave detailed characterization of the non-linear behavior to future work.
We are also trying to provide some support for the hypothesis that Nesterov momentum is better suited for outer optimizers as compared to heavy ball momentum in the non-linear setting; these experiments are not yet completed and we will update the rebuttal if we get results in time.
With regards to the theoretical results: we have extended Theorem 3.1 to the weakly isotropic setting (see response to Reviewer Y3rx). In addition, we were able to prove a new theorem which characterizes some regimes where LA optimizes provably faster than SGD (see response to Reviewer xtre). In short, we can prove that at both small noise and large noise, if the spectrum is non-degenerate (non-isotropic) and non-zero, LA has better infinite-time convergence rate than SGD. In particular, low noise or large cycle times favor a larger ν>1.
Let us know if we can answer any other questions; we will update with any additional experimental results as they come.