arXiv:2610.19064cs.LGOct 2026

Manuscript Offprint

arXiv:2610.19064

How Inner Optimizers Shape Replica Scaling

Eugene Belilovsky, Stefan Horoi, Edouard Oyallon, Benjamin Thérien

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Training large language models (LLMs) across geographically distributed and poorly interconnected compute pools or data centers has become a topic of significant interest. This has led to increased study of local optimization methods such as DiLoco for LLMs, especially those that use local (or inner) adaptive or preconditioned optimizers, which are critical for high-performance LLM training. However, a central challenge remains: it is well known that increasing the number of model replicas (replica scaling) while fixing the total training budget leads to monotonically decreasing performance. Existing work has empirically demonstrated that the choice of inner optimizer (Muon v.s. AdamW) can significantly improve this trend, but offers only limited explanation of the performance difference. In this work, we consider a range of inner-optimizers and identify two important factors that impact replica scaling: (1) the covariance structure of the pseudo-gradients and (2) the impact of batch size on the pseudogradient's noise scale. Based on these insights, we theoretically and empirically demonstrate that whitening-based preconditioning is a powerful inner-optimizer desideratum. Our empirical evaluation extends the results to reveal that whitening-based inner-optimizers achieve strong replica scaling (for 8 – 96 replicas), with performance relative to DP improving as parameters and data are scaled.

1 INTRODUCTION

The computational scale of language-model training increasingly exceeds the capacity of a single site. Training across geographically separated clusters can pool otherwise fragmented resources, but the connectivity between these clusters is poor, leading to significant communication bottlenecks. Local optimization methods address this constraint by allowing replicas to optimize independently for several steps between parameter or pseudo-gradient averages (Douillard et al., 2023; 2025; Liu et al., 2024) often drastically reducing the frequency of communication.

A central difficulty in practical local optimization is replica scaling: at a fixed token budget, increasing the number of replicas often degrades the final model performance (Charles et al., 2025) relative to its non-local data-parallel (DP) counterpart. This can limit the broad applicability of these methods. It has been shown that the replica scaling can improve with increasing model size (Charles et al., 2025). Recent empirical results show that modifying either the inner optimizer (Thérien et al., 2025) or the outer aggregation rule (Horoi et al., 2026) can further improve the scalability and efficiency of distributed training. However, the impact of inner optimizers on scaling is not well understood. More broadly, the primary sources of divergence from standard non-local training are not well understood.

Figure

Figure 1: Local optimization performance as replicas are scaled. Each local optimizer is compared to its own DP baseline, to eliminate confounding replica scaling with absolute loss. Optimizers that whiten the pseudogradient covariance achieve the strongest worker scaling. SPlus is the best proxy for whitening. We note that SOAP's stronger absolute performance sometimes leads to the best results despite its poorer worker scaling. Notably, we also observe a strong scaling trend relative to DP for all inner-optimizers.

Classical analyses of local SGD and federated averaging study the discrepancy accumulated over multiple local steps, often with heterogeneous client data. The primary source of performance degradation is often attributed to client drift or other notions of divergence of model replicas along their trajectory (Karimireddy et al., 2020). Much of this work and theory (Stich, 2019; Karimireddy et al., 2020; Yu et al., 2019) focuses on SGD and momentum SGD as the inner optimizer, a single local step from common parameters and optimizer states that commute with averaging: averaging the updates gives the same result as updating with the averaged gradient. Nonlinear adaptive inner optimizers need not satisfy this property and are much less well understood in the context of this literature. Notably, a discrepancy can arise on the first step, even with identical starting states and identically distributed data, because transforming each local gradient before averaging differs from transforming the averaged gradient. Understanding replica scaling therefore requires examining how the inner optimizer transforms gradient noise, in addition to how parameters drift over successive local steps.

In this work, we focus on a broad range of popular adaptive or preconditioner based optimizers and identify two critical properties that can greatly impact scaling: (a) the covariance structure of the pseudo-gradient induced by the local optimization (b) how the optimizers deal with statistical estimation of second moments in the low batch size setting.

Our contributions can be summarized as follows:

• We demonstrate, both empirically and theoretically, the importance of the pseudogradient covariance structure induced by the choice of inner optimizer. Specifically, we link the choice of inner optimizer to the maximum discrepancy with respect to the DP update direction.

• We identify the importance of appropriately scaling β2\beta_{2} when using second-moment optimizer states, validating our findings through theoretical analysis and experiments. This reveals that the recently introduced IsoLoCo method (Horoi et al., 2026), using an Adam inner optimizer, can outperform the much more computationally expensive MuLoCo (Thérien et al., 2025).

• Our results demonstrate that using a SOAP (Vyas et al., 2025) or SPlus (Frans et al., 2025) inner optimizer can lead to very effective replica scaling, obtaining significantly improved performance relative to existing methods from the literature (as much as 6% less degradation relative to DP at 96 replicas).

References (70)