WorksComputer Science
How Inner Optimizers Shape Replica Scaling
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 pre-conditioning 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.
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 [5, 6, 17] 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 [3] 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 [3]. Recent empirical results show that modifying either the inner optimizer [27] or the outer aggregation rule [9] 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.
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 [11]. Much of this work and theory [26, 11, 32] 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 when using second-moment optimizer states, validating our findings through theoretical analysis and experiments. This reveals that the recently introduced IsoLoCo method [9], using an Adam inner optimizer, can outperform the much more computationally expensive MuLoCo [27].
Our results demonstrate that using a SOAP [29] or SPlus [7] 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).
Related Work
Local-step methods and DiLoCo. Local SGD [26] and federated averaging [22] reduce communication by taking several local steps between averaging events. DiLoCo [5] adapts this to LLM pretraining by utilizing a large number of inner steps, AdamW [18] as the inner optimizer, and SGD with Nesterov momentum on the aggregated pseudo-gradients as the outer optimizer. Follow-ups relax synchrony [17] and overlap or shard the exchange of information between replicas [6]. Charles et al. (2025) establish scaling laws for DiLoCo and document the central difficulty we study: adding replicas at a fixed token budget degrades quality, with the optimal hyperparameters shifting as grows. Our analysis complements these scaling laws by tracing the degradation back to local state estimation and to the nonlinear optimizer transforms applied before aggregation. Local methods can also be complemented with local optimization by using Sparse parameter averaging [24] or Top- sparsification SparseLoCo [25]. IsoLoCo Horoi et al. [9] views DiLoCo’s outer step as task-arithmetic model merging and replaces plain pseudo-gradient averaging with Iso-C merging [20]. For each weight matrix, it takes the SVD of the averaged pseudo-gradient and replaces all singular values with their mean, giving . It then applies the usual Nesterov momentum outer step. This was shown to improve worker scaling over DiLoCo [9].
Small-batch training and adaptive-optimizer scaling rules. Scaling rules relate optimizer hyperparameters to batch size [19]; most directly, Marek et al. (2025) show that Adam trains stably at very small batches provided is set so that the second moment’s half-life is fixed in tokens rather than in steps. Replica scaling in DiLoCo induces exactly this small-batch regime. each individual replica. § 4.4 transfers the scaling rule to replica scaling; to our knowledge this hasn’t been studied has not been studied in the local-step setting previously.
Spectral and second-order optimizers. Shampoo [8] preconditions with Kronecker-factored curvature estimates; SOAP [29] runs Adam in Shampoo’s eigenbasis; Muon [10] orthogonalizes matrix updates with no accumulated second-moment statistics. SPlus [7] retains Shampoo’s historical eigenbasis but signs momentum in that basis, avoiding cached eigenvalue magnitudes and SOAP’s additional coordinate-wise second moment. SPlus uses this instant-sign transformation independently in local DiLoCo replica bases; our focus is its distributed covariance and replica-scaling behavior. Controlled single-stream comparisons find the ranking horizon-dependent [31], while a recent multi-billion-parameter study reports a slight edge for a stabilized SOAP over Muon at very large batch, at the price of memory and numerical-stability engineering [13]. In the DiLoCo setting, MuLoCo [27] uses Muon as the inner optimizer and reports more directionally consistent pseudo-gradients as grows, while IsoLoCo [9] treats outer aggregation as model merging and isotropizes the aggregated pseudo-gradient. § 4 develops a complementary criterion: whether the stochastic update geometry emitted by each replica remains well conditioned under averaging.
Background: the DiLoCo Framework
The methods in this paper can be seen as an instance of Algorithm 1 which is a generalization of local optimization from Reddi et al. [23]; Douillard et al. [5] that utilizes both inner (on the local gradients) and outer optimization (on the pseudo-gradients). replicas start each round from the shared parameters, each runs steps of an inner optimizer on its own data stream. The resulting displacements are uniformly averaged, and an outer optimizer applies the aggregate to the shared parameters from the start of the round. DiLoCo [5] instantiates the inner optimizer as AdamW and the outer as Nesterov momentum. For example MuLoCo [27] replaces the inner optimizer with Muon. IsoLoCo [9] isotropizes before the outer step. The inner optimizer states are never communicated: each is estimated locally from its replica’s data stream.
Algorithm 1 The DiLoCo framework. All methods studied here are instances of this algorithm.
Require: initial parameters ; replicas ; inner steps ; inner optimizer INNER with per-replica state ; outer optimizer OUTER with state ; global batch size ;
for outer round do
for all replicas in parallel do
for do
▹ local minibatch: tokens
▹ is never synchronized
end for
end for
▹ uniform average
▹ Nesterov momentum in DiLoCo
end for
Inner Optimizers Impact on Replica Scaling
The transformations applied to local updates by local optimizers can have a significant impact on the final aggregated pseudo-gradient. We investigate how the choice of inner optimizer shapes the distribution of the resulting pseudo-gradients and their deviation from the corresponding non-local updates. § 4.1 introduces the optimizers considered in this work. § 4.2 separates the update error (relative to non-local steps with the same base optimizer) into a mean mismatch term and a stochastic error term. It shows how whitening controls the largest directional variance, and how matching covariance structures across replicas makes uniform averaging optimal. § 4.4 specializes this framework to one step from common state: under the stated Gaussian model, SPlus admits a scalar calibration that matches the DP mean to first order in the global proposal’s signal-to-noise ratio. Finally, Section 4.4 bounds the Adam mean mismatch caused by fresh-gradient second moments and explains how appropriately adjusting limits that bound as local batches shrink. It then isolates a complementary advantage of SPlus: retaining the estimated basis without relying on coordinatewise scale estimates to control the covariance term.
Background on Popular Optimizers
In this section we present a number of popular optimizers using a unified notation to facilitate their common analysis and comparison. In particular, we include recent matrix-based optimizers such as Muon and those in the Shampoo family. The optimizers differ in how they retain or remove the magnitudes of a momentum proposal before averaging across replicas. We write these transformations explicitly so their mean and covariance can be studied in the same framework.
Consider a matrix parameter with stochastic gradient . An optimizer returns a direction and an updated state after observing ; its parameter displacement is . We use subscripts and for the incoming and updated optimizer states, respectively, and suppress the step index on the gradient and returned direction. The first-moment proposal is
We compare the following matrix-update cores, using standard EMA momentum to isolate their normalizations. For simplicity we omit standard deterministic bias corrections and weight decay from the presentation. The matrix-size scale of Muon is shown explicitly. All decay coefficients lie in ; numerical damping is denoted by .
Adam and Shampoo. Adam uses an entrywise second moment in parameter coordinates [14, 18]:
Where is the update. Here, and denote elementwise multiplication and division, respectively, with representing the elementwise square. Shampoo instead maintains left and right Gram factors [8]:
The above formulation is the canonical version of Shampoo. We note that some variants consider half-power instead of quarter [29]. We also note variants with grafting or additional normalizations are often used, which can impact the interpretation of the underlying preconditioner [16].
SOAP and SPlus. Let be orthogonal eigenvector matrices obtained from the historical Gram factors above. Their action is the matrix rotation
SOAP (ShampO O with Adam in the Preconditioner’s eigenbasis) performs Adam-style normalization in this product basis [29]:
In this work, we consider a signed update in a Shampoo basis, a variant of the recently introduced SPlus [7] optimizer, which does not utilize iterate averaging. This optimizer retains the momentum and historical basis but signs each projected entry:
This approach can be seen as a simplified version of SOAP that removes the dependence on the second moment. In the following sections, we will further illustrate how this optimizer naturally arises in the context of local optimization with replica scaling. SOAP’s rotated normalization and SPlus sign transform have a whitening interpretation [29, 7, 16]. Section 4.2 gives the corresponding covariance identities under explicit assumptions and explains their impact on pseudo-gradient aggregation.
Muon. For a singular value decomposition on the nonzero singular subspace, ideal Muon returns
It replaces nonzero singular values by a common value [10]. In matched singular-vector coordinates, , so at its core Muon also has the form “rotate, remove magnitudes, rotate back.” Unlike SPlus, its basis is determined by the current proposal, not by historical covariance statistics. In practice, Newton-Schulz is used to approximate the polar map.
Impact of Covariance Structure on Local Optimization
We consider the general local optimization setting (under any local optimizer) and separate the error relative to the expected DP update with the same optimizer into two terms: (1) mean mismatch and (2) stochastic error. The covariance analysis in this subsection addresses the stochastic term; § 4.4 then addresses the mean mismatch. Following the pseudo-gradient interpretation of client displacements in Reddi et al. [23] and Wang et al. [30], we treat each replica’s complete local update as a random vector. All expectations and covariances below are conditional on the start-of-round parameters and the incoming optimizer states. Let be the complete -step displacement returned by replica . We decompose each local displacement into its conditional mean and a zero-mean stochastic component:
Assume finite second moments, for all , and zero cross-replica noise covariances, for all . Independent local data streams, conditional on the start-of-round parameters and optimizer states, are sufficient to ensure zero cross-replica noise covariances. Set and . Note that for the typical setting studied in Douillard et al. [5]; Thérien et al. [27] with i.i.d. data and identical incoming optimizer states, is the same for all replicas.
We now consider : the displacement of the same inner optimizer run for synchronized steps and same global batch size, in expectation. We allow a deterministic scalar calibration factor , and define
For , can represent a step-size change, for example. We now consider the following decomposition of the error in any direction and the corresponding bound:
Proposition 1 (Directional error decomposition). The conditional bias–variance decomposition gives, for every unit vector ,
Consequently, the largest directional error is
Proof. Subtract and add . Using the Rayleigh quotient gives (11).
The second term allows us to analyze the effect of inner optimizers that induce whitened updates. As we show below, whitening helps control the stochastic error by bounding the largest directional variance of the aggregated pseudo-gradient, while also promoting covariance matching across replicas. The mean mismatch term is more challenging to analyze; however in § 4.4 we derive explicit expressions and bounds for several inner optimizers under a single-local-step setting. Moreover we will show in the empirical results that this term is generally dominated in the largest noise direction.
Whitening and directional variance. A linear map whitens a covariance if [12]; a prescribed scalar multiple gives a spherical covariance at another scale. For any covariance of dimension and trace (fixed total variance), the following inequality holds:
Thus, isotropy minimizes the largest directional variance at fixed total variance, precisely the covariance quantity appearing in (11). Moreover, a bound on the maximum directional variance of each replica carries over to the aggregate:
Consequently, whitening local pseudo-gradients toward a common isotropic covariance controls the stochastic error.
Whitening and optimality of uniform averaging. Local update whitening has an additional, pre-aggregation benefit when inner optimizer trajectories produce different update distributions. For the stochastic term alone, a weighted aggregate has directional variance
Uniform weights, which are used by default in standard DiLoCo settings, minimize this quantity when the replicas have equal directional variances [1]; they do so in every direction when . Whitening each replica toward the same spherical target promotes precisely this agreement, since .
Thus, local whitening both controls the worst-direction aggregate noise and makes the default uniform averaging well suited to the individual replica noise geometries. However, it does not control the mean mismatch , which is analyzed separately in § 4.4.
Impact of Optimizer Transformations on Update Covariance
In this subsection, we analyze how the transformations induced by different inner optimizers affect the covariance structure of their updates under idealized assumptions, with particular emphasis on their whitening properties. This comparison is motivated by the eigenbasis interpretation of SOAP [29], the whitening motivation of Frans et al. [7], and the covariance-estimation analysis of Lin et al. [16].
For this comparison, consider a random matrix proposal , with . Let denote the resulting update matrix, and define and . We treat optimizer bases and linear preconditioners as fixed independently of the sampled proposal, and define ideal normalization using the proposal’s centered covariance. Write
We now examine how each optimizer transforms the covariance of the stochastic proposal and under which conditions the resulting update covariance is isotropic.
Adam. Suppose each entry of is divided by its true standard deviation. Writing , this gives
Every diagonal entry of is one, but . Thus, even with access to the true coordinate variances, Adam’s normalization preserves the correlations present in .
Shampoo. Consider the idealized case where the factors equal the population Gram matrices of a zero-mean input. and . Assume the covariance is separable, , with positive-definite factors. The canonical Shampoo transformation then gives:
The condition number of the resulting covariance, i.e., the ratio of its largest to smallest eigenvalues, is the square root of that of the input covariance. Thus, canonical Shampoo does not generally whiten the updates, as also discussed in Lin et al. [16].
SOAP. Suppose the fixed rotation gives uncorrelated coordinates, and let denote their true variances: . Dividing each rotated entry by its true standard deviation and rotating back gives
The resulting variance is one in every unit direction, not only along the original coordinates. Thus, SOAP can whiten the update covariance when the input covariance has the assumed Kronecker structure, the rotation decorrelates the proposal coordinates, and their variances are known exactly.
SPlus. Suppose is zero-mean Gaussian and the fixed rotation above gives uncorrelated entries. These entries are then independent, and their signs are independent, equally likely and values. Therefore
Unlike SOAP, this transformation does not require estimating the coordinate standard deviations.
SPlus vs. SOAP Under Imperfect Decorrelation. The preceding analyses of SOAP and SPlus assume that the rotation decorrelates the entries of , with SOAP additionally having access to the true coordinate standard deviations. We can get further insight by considering an imperfect rotation: fix the estimated before sampling , and let be the correlation matrix of the entries of . To characterize how SPlus transforms these correlations, we apply the Gaussian arcsine law [4], which gives the covariance after taking signs. Rotating back yields
Here acts entrywise: the signs have unit variance in the rotated basis, and residual correlations contract, but need not vanish.
With the same rotation and exact coordinate standard deviations, SOAP instead gives : coordinate normalization leaves these correlations unchanged. For both methods, the covariance in the rotated basis has unit diagonal. Its squared Frobenius distance to identity is therefore just the sum of the squared off-diagonal entries. Rotating back preserves this distance, yielding
Under these assumptions, SPlus produces an update covariance at least as close to the identity in Frobenius norm as SOAP, even when the rotation does not perfectly decorrelate the proposal: its sign transformation contracts residual correlations without requiring coordinatewise variance estimates.
Muon. Suppose is full rank almost surely, and its distribution is unchanged by any orthogonal transformation when (or when ). For the exact polar transformation with a fixed scale ,
Thus, Muon produces an isotropic update covariance under strong distributional symmetry assumptions, but its polar transformation does not generally guarantee isotropy.
Relation to MuLoCo. MuLoCo studies how Muon’s normalized matrix updates affect pseudogradient aggregation [27]. It argues that large singular values in individual update matrices contribute to misalignment during aggregation, an issue mitigated by using Muon as the inner optimizer. In contrast, our work examines the covariance structure of Muon’s updates, a distribution-level property that provides a complementary perspective and highlights potential limitations of Muon’s normalization. Furthermore, our error decomposition directly connects this covariance structure to the stochastic component of the error relative to the expected DP update.
Beyond one local step. Equations (10) and (11) apply to the complete displacement after any number of inner optimization steps . However, if denotes the displacement at the -th local step, the covariance of replica ’s complete displacement is given by
Consequently, whitening individual (one-step) local updates does not by itself whiten the complete pseudo-gradient, as temporal covariances between successive updates can introduce anisotropy. Approximate isotropy of the complete pseudo-gradient can nevertheless be maintained when the aggregate contribution of these temporal covariances is sufficiently small.
Single-Step Mean Mismatch and Second-Moment Estimation
We now consider the single-step setting (), where all replicas share the same initial parameters and optimizer states, and analyze the mean mismatch term of the decomposition introduced in § 4.2. This eliminates multi-step local drift, allowing us to study the remaining mean mismatch more easily. At fixed global batch size , let denote the independent and identically distributed replica gradients, and define
Then . For IID examples, , where is the per-example covariance. Let denote the parameter-update map that takes a gradient and incoming optimizer state and returns the corresponding parameter displacement. Then
In this single-step setting, DP applies the optimizer transformation to the averaged gradient , whereas DiLoCo applies independently to each replica’s gradient before averaging the resulting updates. While an affine commutes with averaging sample-by-sample, sharing the incoming optimizer states does not generally make an adaptive optimizer’s update transformation affine.
We first analyze SPlus, whose sign-based transformation permits explicit expressions for the mean and covariance of its updates.
SPlus: a direct bound on the mean term. Fix the shared SOAP basis before the step; this covers a step between refreshes or a lagged-basis implementation. Momentum is still updated by (1). The average of the replica momenta is exactly the DP momentum from the same incoming state. Let denote entry of , for , and assume
Thus is the mean divided by the standard deviation of the DP momentum coordinate, not its replica-local SNR. We use unit step scale in the following proposition and rescale other deterministic scales multiplicatively.
Proposition 2 (SPlus mean and covariance relative to DP). Under (16), set , , and . With ,
Here acts entrywise. In particular, every directional error in (10) is at most .
The proof is given in Appendix § 8.§ 2. For a small vector , the mean mismatch is third order and its squared contribution is sixth order. At , the calibrated local aggregate and DP have the same mean and covariance, although their distributions differ. The calibration makes the stochastic term order one; it does not retain an additional variance gain at fixed global batch.
Mean mismatch for Adam. We now bound the mean mismatch for Adam. At fixed global batch size, the local gradient variance is times that of the DP average. Fresh-gradient second moments therefore change the normalization even from a common incoming state. Proposition 3 bounds the resulting mean-update error; Appendix § 8.§ 3 gives the second-moment identities and the Gaussian variance-differentiation argument ([28]).
Proposition 3 (Second-moment memory controls a one-step mean bound). In a fixed parameter coordinate , let the incoming Adam state be , with and . Omit , bias correction, and the learning rate, and define the complete same-step scalar map
Suppose independently, so . With , write for this coordinate of the bias from (15). It obeys
For SOAP with a basis fixed before the fresh gradients, the same bound applies to the corresponding coordinate of .
This is a finite-noise bound, proved in Appendix § 8.3.1. For fixed , the upper bound grows linearly with , motivating an increase in as the number of replicas grows. Adapting the scaling rule of Marek et al. [21] to our setting, we can preserve the second-moment EMA’s half-life in terms of local training examples by setting:
If are held fixed and follows (20), with bounded away from zero, the right-hand side remains bounded rather than growing linearly in . For each , both routes in this comparison use the same . Scaling second-moment memory therefore controls a bound on the Adam mean mismatch as grows. Summing the squared coordinate bounds controls , and hence the mean term for every unit in (10). The same conclusion holds after SOAP’s orthogonal rotation back to parameter coordinates. This conditional one-step result motivates the matched- experiments in Section 5.2.
Scale-estimation error at smaller local batches. Beyond the mean mismatch analyzed above, smaller local batches can also increase the variability of second-moment estimates. Indeed, at fixed , smaller local batches produce noisier gradients, which can increase fluctuations in the estimated second moment . For SOAP, these fluctuations in change the coordinatewise normalization and hence the update covariance. SPUs avoids this source of variability by taking signs in its estimated basis rather than dividing by estimated coordinate scales.
Empirical Evaluation
We first compare replica scaling across inner optimizers (Sec. 5.1), then isolate the effect of second-moment memory on performance (Sec. 5.2), and finally examine the update distributions behind these results (Sec. 5.3). The analysis connects the observed scaling to the two terms in (10): mean mismatch and stochastic aggregation error.
Experimental setup. Our main experiments train 178M- and 512M-parameter LLaMA models on DCLM ([15]) with sequence length 2048. We evaluate performance on a held-out 100M-token validation split. The 178M runs use a fixed global batch of 524K tokens and approximately 3.55B training tokens; the 512M runs use 2M tokens per global batch and 10.25B-token budget. Unless stated otherwise, replicas take local steps between aggregations and all local optimization methods use a Nesterov SGD outer optimizer. Appendix § 9 records the architecture, training budgets, and result-selection protocol.
Comparing Inner Optimizers in Replica Scaling
We compare SOAP, SPlus, Muon, AdamW, and Shampoo as inner optimizers for DiLoCo while scaling the number of replicas. Figure 2 and Figure 3 show both absolute validation loss and the percentage change from each optimizer’s own DP reference ([27]). The latter allows making a direct comparison between inner optimizers as it relates to their impact on worker scaling without being confounded by absolute performance differences of the optimizers (e.g., accounting for the fact that Muon has lower absolute loss than AdamW).
Figure 2. 178M replica scaling. reports DP performance, while reports the performance of local optimization with synchronization interval . Left: final validation loss. Right: change in loss from the same optimizer’s own DP (R=1) baseline. We observe that matrix-based optimizers have stronger worker scaling than AdamW and that SPlus achieves the strongest scaling of all relative to its DP baseline.
Figure 3. 512M replica scaling. reports DP performance, while reports the performance of local optimization with synchronization interval . Left: final validation loss. Right: change in loss from the same optimizer’s own DP (R=1) baseline. As in Figure 2, we observe that matrix-based optimizers have stronger worker scaling than AdamW and that SPlus achieves the strongest scaling of all relative to its DP baseline.
178M Experiment Scale At 178M scale (Figure 2), we observe, as in Thérien et al. [27], that Muon has better replica scaling than AdamW, not just DP performance. SOAP has both stronger DP performance and significantly improved replica scaling compared to Muon and Adam. SPlus has the strongest worker scaling, leading to the smallest increase over its own DP reference and the lowest observed loss at large . At , the loss change is +3.1% for SPlus and +4.8% for SOAP, compared with +8.5% for Muon and +11% for AdamW. Shampoo improves on AdamW but remains behind SOAP and SPlus. As discussed in our work, it does not assure an approximately whitened update unlike SOAP and SPlus. Thus, both the normalization and the coordinates in which it is applied matter empirically. § 5.3 examines how this ordering relates to the covariance of the returned updates. Interestingly, at 178M, SPlus actually improves performance over its DP baseline. This is likely because at it can mimic a majority vote-based technique ([2]).
512M Experiment Scale In Figure 3, we observe a similar pattern. SOAP is, once again, the strongest DP reference and has the lower loss through . SPlus overtakes it at and . At , SPlus’ loss change is +2.1% above its own DP loss, versus +4.4% for SOAP, +7.7% for Muon, and +12% for AdamW. The crossover is consistent across model scales: SOAP’s DP performance is stronger, whereas SPlus degrades less as replicas are scaled and the local batch size shrinks. Both SPlus and SOAP show drastically better scaling than Adam and Muon, making them practical alternatives when training with high worker counts.
| Optimizer | DP | 8 | 16 | 32 | 64 |
| SOAP | 2.816 | 2.851 | 2.869 | 2.898 | 2.951 |
| SPlus | 2.853 | 2.851 | 2.867 | 2.897 | 2.942 |
| Muon | 2.858 | 2.887 | 2.928 | 3.000 | 3.099 |
| AdamW | 2.880 | 2.952 | 3.012 | 3.080 | 3.208 |
| Shampoo | 2.842 | 2.881 | 2.918 | 2.976 | 3.069 |
Table 1. 178M final validation loss. DP uses ; other runs use . Best in each column is bold. Replicas
| Optimizer | DP | 8 | 16 | 32 | 64 | 96 |
| SOAP | 2.563 | 2.579 | 2.598 | 2.618 | 2.649 | 2.676 |
| SPlus | 2.610 | 2.610 | 2.618 | 2.625 | 2.646 | 2.663 |
| Muon | 2.586 | 2.615 | 2.637 | 2.677 | 2.738 | 2.787 |
| AdamW | 2.646 | 2.691 | 2.726 | 2.785 | 2.881 | 2.958 |
Table 2. 512M final validation loss. DP uses ; other runs use . Best in each column is bold. Replicas
Comparing results across 178M and 512M Prior work has demonstrated that the worker scaling performance of AdamW and Muon improves as data and model scale are increased [27, 3]. In Figure 1, we compare the performance of SPlus, SOAP, AdamW, and Muon when scaling replicas. We also observe that scale improves replica scaling across all optimizers can significantly benefit from this including SOAP, SPlus, and Muon.

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.
Isolating the Effect of Local Steps: _Replica-scaling effects are visible at , before multi-step parameter drift can occur!_ Unlike SGD, in adaptive optimizers, the divergence to standard DP training occurs even with a single step of local optimization (due to the non-linear map of gradients to update). Indeed, the arguments regarding covariance structure in § 4 apply directly to this case. To isolate the effects of local drift when taking multiple steps from the impact of the adaptive optimizer update, we perform scaling experiments using a single local update. We also remove the impacts of the outer optimizer by using a standard SGD outer optimizer with a learning rate of 1 (equivalent to parameter averaging). Table 3 reports the results of this experiment. We observe similar results to the multi-step setting: Adam, Muon, and Shampoo have poorer replica scaling, while SOAP and SPlus remain substantially more robust. This is the setting in which § 4.4 isolates the effect of applying the optimizer before gradient averaging. We also observe that performance (even in terms of scaling with respect to DP) is far more impacted by the choice of optimizer and the number of replicas than the number of local steps. This suggests the impact of the local optimizer on the update and subsequent aggregation can be more significant than the parameter drift often studied in local optimization [26, 11].
Table 3: 178M performance using (single-step) local updates. We report the final validation loss for each method. To isolate the effect of the adaptive optimizer’s update, we use pure parameter averaging at each step and persistent local optimizer states. All methods train for 6,775 steps. The DP, , and methods are directly tuned, while the configurations use interpolated hyperparameters rather than separate full sweeps. The best-performing method in each column is bolded.
| Inner optimizer | DP | ||||
| SOAP | 2.816 | 2.842 | 2.864 | 2.901 | 2.958 |
| SPlus | 2.853 | 2.837 | 2.853 | 2.873 | 2.912 |
| Muon | 2.858 | 2.979 | 3.073 | 3.230 | 3.417 |
| AdamW | 2.880 | 2.932 | 2.969 | 3.050 | 3.157 |
| Shampoo | 2.842 | 2.899 | 2.947 | 3.002 | 3.097 |
Table 3.
Interestingly, Muon is less robust here than at and is worse than AdamW at the larger replica counts. Its strong results therefore do not transfer unchanged to pure one-step averaging. We hypothesise that this may be due to differences in their outer optimizer, which could be more favourable for some methods and less for others.
Second-moment memory and replica scaling
Following § 4.4, we next study a practical consequence of smaller local batches for Adam-based methods. Equation (A.6) shows how local gradient variance enters the second-moment discrepancy. The token-half-life rule in Equation (20) increases as grows, preserving the number of tokens represented by the running average. In this section, we study the impact of applying this and, in particular, evaluate how it impacts conclusions in prior work [27, 9]. This rule is already incorporated in the main results in § 5.1. Here we evaluate both the Adam-based DiLoCo optimizer and IsoLoCo which is a modification of the outer optimizer. We incorporate it into our analysis as it is based on the Adam inner optimizer, which can benefit from appropriate tuning. We note that in the prior section’s experiments, to ensure the strongest baseline, this rule is already used by construction in all optimizers with a second moment. This section, on the other hand, emphasizes the improvement compared to existing literature, which does not scale when scaling [3, 9] (); Sarfati et al. 2025).
To empirically measure the importance of second moment estimation highlighted in § 4.4, we compared the performance of optimizers using a fixed and tuning it at every replica scale. Figure 4 reports the final validation loss of DiLoCo, IsoLoCo, and MuLoCo under these strategies. We note that while IsoLoCo and DiLoCo both apply AdamW to each tensor, MuLoCo only applies it to non-hidden tensors. We observe all optimizers improve from tuning as replicas increase, but IsoLoCo and DiLoCo benefit more. Under tuning, we find that IsoLoCo, despite using an AdamW inner optimizer, can even outperform MuLoCo at large worker counts.
Figure 4. The effect of tuning AdamW’s in DiLoCo, IsoLoCo, and MuLoCo. We report the performance of each method at 178M scale when fixing (dashed lines) and tuning (solid lines) at each worker count. While IsoLoCo and DiLoCo both apply AdamW to each tensor, MuLoCo only applies it to non-hidden layers. We observe all optimizers improve from this change, but IsoLoCo and DiLoCo benefit significantly more, revealing that IsoLoCo can outperform MuLoCo at larger worker counts when is well tuned.
We also confirm that this scaling rule works well at 512M in Figure 5. Both methods use the published hyperparameters without retuning. At 512M and , changing only reduces DiLoCo loss from 2.884 to 2.849 and IsoLoCo loss from 2.734 to 2.702, approximately 1.2% in each case. Second-moment memory is thus an effective control on replica scaling, including for IsoLoCo, whose outer optimizer does not remove this inner AdamW sensitivity. Notably, after the relevant control, IsoLoCo, which uses an AdamW inner optimizer, can outperform MuLoCo, while only doing the spectral decomposition during the outer step.
Figure 5. Tuning for larger model and replica. We ablate using fixed vs scaling at high replica count () and 512M model scale. We observe that performance consistently improves for DiLoCo and IsoLoCo. Notably IsoLoCo outperforms Muon inner optimizer (MuLoCo).
Discussion of Practical Implications Our results suggest that local optimization methods can be deployed across a large number of replicas (50+) while maintaining minimal performance degradation of < 3% when utilizing SOAP or SPlus. Notably, these methods consume more memory than Muon due to the need to maintain and , however, scalable recipes for SOAP have been studied [13], demonstrating that it can perform well at very large scale. A particularly relevant setting for our work is cross-data center training where each replica has a considerable number of chips that can be used to shard the additional optimizer states and perform the optimizer step in parallel. At 178M and 512M scales, our results suggest that at a smaller number of replicas SOAP is the preferred inner optimizer, while at a large number of replicas, SPlus performs best. Another observation of our work is that the recently proposed IsoLoCo outer optimizer, which has nearly the same overhead as AdamW inner optimizer-based IsoLoCo, can perform very effectively at a large number of replicas simply by adjusting its according to the local batch size. When doing so, we show that it outperforms MuLoCo. This can make it an excellent candidate for settings where each replica has limited memory or existing infrastructure and training recipe are already well designed for Adam.
Analysis: covariance structure and mean mismatch
We empirically analyze the covariance structure and mean mismatch discussed in § 4 for the different optimizer classes.
Empirically Measuring Whitening Using the 178M training setting and beginning with checkpoints at outer round 75, we empirically estimate how close to whitened the covariance of the pseudo-gradient is for different inner optimizers. We perform 64 instantiations of inner training loop starting with the same checkpoint and inner optimizer state, thus only varying the data used.
Subsequently we use pairs to construct an estimator for the following quantities:
Here is the probed dimension; means isotropy, and larger values indicate greater anisotropy, independently of overall noise magnitude. The constructed equals the covariance of the averaged update when cross-worker noise covariances vanish, conditional on the starting parameters and optimizer states. Appendix C.1 gives the estimators and exact replay protocol. We chose this particular quantity as a proxy for isotropy as the trace and square trace have efficient estimators available in the statistical literature. The results are shown in Table 4 below.
| Optimizer | ||
| AdamW | 35 | 11 |
| Muon | 3.8 | 3.3 |
| SOAP | 2.3 | 2.5 |
| SPlus | 0.43 | 2.4 |
Table 4. Update-noise anisotropy at , round 75, using all 64 replicas and local batch four. Lower is more isotropic.
We observe that covariance structure broadly follows the scaling results. with optimizers that have better replica scaling having better covariance structure. The anisotropy differences are already pronounced after one local step, before parameter drift across replicas can affect subsequent gradients. ranges from 35 for AdamW to 0.43 for SPlus, with Muon and SOAP between them. After 30 steps, SOAP and SPlus remain less anisotropic than Muon and AdamW, broadly following their replica-scaling performance. Interestingly, Muon is significantly more isotropic than Adam, helping to explain its improved scaling Therien et al. [27]. The next measurements examine the curvature of high-variance noise directions, connecting this shape comparison to optimization.
Noise dominates mean mismatch along high-noise directions. Finally, we compare the two terms of Equation (10) along directions selected for high update variance. For each optimizer, all replicas and its DP reference start from the same checkpoint weights and replica 0’s saved optimizer state. They run steps on paired data: DP uses the union of the local batches at each step. We analyze the 63 hidden attention and MLP weight matrices separately, excluding embeddings, the output head, and other auxiliary parameters.
For each matrix, 16 repetitions fit a scalar and a leading noise direction ; 24 additional repetitions estimate the directional mean mismatch and stochastic error . Both terms are divided by the squared norm of that matrix’s DP mean update. This per-matrix calibration applies the decomposition to each matrix separately; it is not a change to the training learning rates. Appendix C.2 defines the estimators, including the paired finite-sample correction.
We observe the mean-mismatch term is only 7.5–19% of the stochastic term on average along these directions. This supports controlling the stochastic term in Equation (10) which is the focus of our analysis in § 4, and allow to better confirm that the covariance structure of SPlus and SOAP lead to their improved replica scaling.
Extreme noise also lies in high-curvature directions. We have seen bounding the maximum noise direction of the covariance as in Equation (11) can reduce the maximum discrepancy to the DDP direction, in particular since the above empirical experiments suggest it dominates the bound on the error with respect to the DDP target. We next ask whether directions carrying extreme noise variance are directly responsible for poor performance of methods such as AdamW which do not bound them well. We do this by estimating these direction and then the underlying curvature. At each method’s own checkpoint for outer step 75, we fit a unit direction that maximizes sample variance over 64 paired one-step update differences. With the loss Hessian on 64 held-out sequences, Table 6 reports
| Optimizer | ||
| AdamW | 86–170 | 460–730 |
| Muon | 6.4–7.7 | 47–100 |
| SOAP | 3.1–3.2 | 4.2–5.2 |
| SPlus | 1.5–1.6 | 1.5 |
Table 6. Loss curvature along a fitted high-noise direction, relative to random directions. Ranges span replicas 0 and 1, not confidence intervals; local batch . Curvature ratio .
where the are independent random unit vectors in the same six-matrix subspace. A ratio of 100 means 100 times the average random-direction curvature, not noise variance.
Appendix C.3 details the estimator used. We observe that Adam and Muon have very high curvature in the directions with the most noise compared to average directions, in particular as we scale the replica size, while SOAP and SPlus are able to effectively redistribute noise in any particular direction due to their whitening. High noise along high curvature directions can be particularly problematic as small errors can be very damaging for the loss in high curvature regions. This gives an additional mechanism for understanding why whitening (which redistributes error more uniformly along all directions) can be particularly important in this setting.
Conclusion
We have shown that differences to the DP pseudogradient can be seen to result from two primary sources of error: mean mismatch and stochastic error. Building on these insights, we showed that covariance structure in optimizers like AdamW is very important. In our empirical study, we establish the performance of different inner optimizers (SOAP, SPlus, Muon, AdamW), which have more and less appealing properties for reducing stochastic error according to our theory. We find that SPlus reaches the strongest performance at higher worker counts, and the best overall scaling with respect to DP, while SOAP reaches the best DP performance and seems on trend to become the best inner optimizer at scale. We then directly test our theoretical claims by calculating the mean mismatch and stochastic error for each optimizer, showing that these quantities are directly correlated with the observed performance trends.
Acknowledgements
We acknowledge support from NSERC Discovery RGPIN-2021-04104 and compute resources from Digital Research Alliance Canada.
Appendix A collects the supporting theoretical results and proofs. Appendix B records the training setup, and Appendix C gives the analysis protocols and estimators.
Supporting theoretical results
Muon covariance under rotational proposals
Let and . If a full-rank proposal has SVD , the ideal Muon update with prescribed matrix-size scale is
The polar map discards the realized singular values and keeps the polar factor. In particular, for every , so a positive multiplicative change to the entire proposal leaves the update unchanged.
Proposition 4 (Muon covariance under rotational proposals). Suppose is full rank almost surely. If , suppose for every ; if , suppose for every . Either one-sided condition suffices when . Then
Consequently, independent replicas have a uniformly averaged update covariance , even when their proposal singular-value distributions differ.
Proof. Consider and write the columns of as . Equivariance of the polar map and left invariance of the proposal law imply for every . Taking gives . Moreover, commutes with every orthogonal matrix and must therefore equal . Since ,
The column blocks of are consequently , which proves Equation (A.2) because . The proof for applies the same argument to the rows, using right invariance and .
Proof of Proposition 2 (SPlus to DDP comparison)
Proof of Proposition 2. Write and . For one coordinate, set and . Then
In the shared-state model the last expression is exactly the mean of the signed DDP momentum coordinate, because momentum is affine before the sign. The expectation of the local average equals the single-replica expectation. For ,
The integrand is nonnegative and at most , by the unit Lipschitz bound for on . Integration and odd symmetry give
Squaring and summing over coordinates is valid because is orthogonal. Each sign has variance . Independence of projected coordinates and of replicas gives the covariance in (17). Finally use Proposition 1.
The DDP covariance is . For the calibrated local covariance minus this matrix is positive semidefinite, with operator norm at most . Thus mean agreement to first order should not be read as a variance improvement over signed DDP. At zero signal the covariances agree exactly.
Adam/SOAP second moments and the mean comparison
Condition on common incoming optimizer states and parameters, as in § 4.4. Let denote the fresh-gradient step. Averaging squared gradients is not the same as squaring their average: the difference is the scatter of the replica gradients. Define . For the second moments in (2) and (5),
The second identity assumes a common basis fixed before the fresh gradients; are the vectorized buffers. Thus locally updated second moments already differ from DDP before any parameter drift.
Under the main-text batch model, and the replica gradients are independent, so is the covariance of the DDP-averaged gradient. At fixed , taking expectations in (A.5) gives
SOAP has the same expected identity in its fixed basis.
Expanding squares around the sample mean gives
Multiplying by proves the Adam identity in (A.5); applying it to proves the SOAP identity when is fixed and common. Under (14), , which proves (A.6).
For a scalar smooth map and , Gaussian variance differentiation [28] gives the exact identity
Differentiation under the integral is justified, for example, by bounded first and second derivatives and Gaussian integrability; the Adam map below satisfies the required conditions when the incoming second moment is positive.
Finite-noise mean bound and second-moment memory
Proof of Proposition 3. For this proof only, abbreviate , , , and . Write
Direct differentiation gives
For , the suprema of and are both one. The first follows by differentiation on either side of , and the second on either side of ; their interior positive extrema have value less than one. Substituting gives
Since is odd and is symmetric, . The mean-value bound therefore implies
Thus, uniformly in ,
Integrating (A.7) over gives (19). This proof does not replace the random denominator by its expectation and does not require a small-noise limit.
Scaling rule A local example or token is downweighted by per local step. Keeping its decay per fixed number of local examples unchanged gives , proving (20). Write . Then , so . This controls the upper bound with fixed incoming state; it neither forces the bias to zero nor proves that its actual magnitude decreases monotonically with .
Basis and scale errors
SOAP whitening requires both a basis that reduces correlations and coordinate scales that normalize the remaining variances. We first separate these two sources of error in the covariance of the returned update, then show how they affect covariance matching and the stochastic term in (10).
Conditioning and scope. The covariance calculations below concern centered proposals with bases and denominators fixed before the proposal is drawn. They describe an idealized one-step optimizer core, omitting a common learning-rate factor and the numerical stabilizer. The ideal denominators estimate the centered variance of this proposal. In practical SOAP, the denominator instead uses gradient second moments, whereas the numerator contains momentum; refreshing either state from the same gradient also couples the map to its input. The identities below therefore describe the frozen-state model, not the full fresh-gradient Adam or SOAP step.
Scale errors and correlations left in the estimated basis
Let worker have a centered matrix proposal , and set and . Let and be the fixed estimated left and right bases. They are orthogonal matrices. Rotating into these bases gives the matrix proposal on which normalization or sign acts:
No Kronecker assumption is imposed on here: the Kronecker matrix represents the two-sided rotation, not a factorization of the full covariance.
To distinguish scale error from an imperfect basis, let be the true covariance in the estimated basis, its diagonal of coordinate variances, and the correlation matrix remaining after exact variance normalization:
Thus has unit diagonal; its off-diagonal entries measure correlations that the basis has not removed. The actual normalization uses frozen variance estimates . Write their relative errors as and collect the resulting inverse-scale gains in :
If is the reshape of , the SOAP core divides by these estimated scales, whereas SPlus takes signs. Both then rotate the result back to the parameter coordinates:
Division, square roots, and signs in these matrix expressions act entrywise.
Proposition 5 (Separate effects of the basis and coordinate scales). Under the preceding frozen-state assumptions, define . For every centered proposal with finite covariance,
and the whitening error decomposes exactly as
If additionally is centered Gaussian, then
Here arcsin acts entrywise. The same sign identities hold for the positive scale-mixture model , where , is independent of , and .
Proof. Vectorization gives Equations (A.12) and (A.13). Since the maps and denominators are frozen, the SOAP covariance is the linear covariance sandwich. Substitute and to obtain Equation (A.14). Orthogonal conjugation preserves Frobenius norm. In the rotated frame, the diagonal covariance entries are and the off-diagonal entries are . Summing their squared differences from the identity proves Equation (A.15).
For the sign map, each centered nondegenerate Gaussian coordinate has an equiprobable sign and hence mean zero and variance one. Two standardized Gaussian coordinates with correlation have sign disagreement probability : represent them as projections of an isotropic two-dimensional Gaussian onto two unit directions with angle and use its uniform angular distribution. Their sign product therefore has expectation . This is the Gaussian arcsine identity used in one-bit covariance estimation ([4]), and proves Equation (A.16). For , convexity of places it below the chord joining its endpoint values, so . Oddness extends the absolute-value inequality to . Squaring the off-diagonal entries proves Equation (A.17). Finally, multiplication by the positive scalar leaves every sign unchanged; independence and preserve the stated input covariance.
An accurate basis does not remove SOAP’s scale-estimation error. The first term remains when the basis decorrelates the proposal but the local scales are inaccurate; the second remains when exact scales are used in a basis that leaves correlations. SPlus removes the estimated-scale term in this centered model, while retaining dependence on those correlations. In particular, if , SPlus has identity covariance for every worker, including workers using different bases and different input variances.
For an explicit bound, if , then
This follows by bounding each denominator in Equation (A.15) from below. Underestimating a variance can therefore amplify the whitening error through its reciprocal. Rotation back, by contrast, preserves the error in either operator or Frobenius norm:
Orthogonal multiplication preserves singular values, proving Equation (A.19). Rotation back can change the directions of residual anisotropy, but cannot increase this norm of its error.
Training setup and hyperparameters
Models and data. The experiments use decoder-only LLaMA models trained on DCLM ([15]), with sequence length 2048 and evaluation on a held-out 100M-token validation split. The model configuration files give the architecture below. Global batch size is held fixed within each model scale, so the local batch is the global batch divided by .
| Setting | 178M | 512M |
| Transformer layers | 9 | 12 |
| Hidden width | 1024 | 1536 |
| Attention heads / key-value heads | 8/8 | 12/12 |
| Feed-forward width | 2688 | 5440 |
| Activation | SwiGLU | SwiGLU |
| Sequence length | 2048 | 2048 |
| Global tokens per inner step | 524,288 | 2,097,152 |
| Global sequences per inner step | 256 | 1024 |
| Training tokens (approximately) | 3.55B | 10.25B |
Table 7. Architecture and training scales. The global batch is measured per inner step, not per communication round.
Aggregation and comparisons. Unless stated otherwise, replicas take local steps and use a Nesterov SGD outer optimizer. The controls use uniform averaging without outer momentum. Percentage changes in validation loss use each optimizer’s own DP reference and are computed before rounding. The covariance, mean/noise, and curvature probes use the 178M outer-step-75 checkpoints; their replay settings and sample counts are specified in Appendix § 10.
Hyperparameter sweep. We tuned the learning rate for each optimizer in the DP setting and the inner and outer learning rates and outer momentum for local training. For each optimizer we tuned each with at least 10 grid points extrapolating the HP for and 32.
Analysis protocols and estimators
All three analyses use the 178M outer-step-75 checkpoints. The covariance and curvature probes use six matrices (attention query and MLP down-projection at layers 0, 4, and 8); the DP-referenced mean/noise comparison covers all 63 hidden attention and MLP matrices. Each optimizer uses its own trained checkpoint. The protocols below distinguish native saved states from the common-state replay used for comparison with DP.
Conditional covariance replay
This appendix spells out the covariance measurement used in Table 4. The probe estimates the minibatch-induced distribution of an optimizer’s local update conditional on one trained checkpoint. It does not treat successive updates from the training trajectory as independent covariance samples.
Conditional replay protocol
At a communication boundary, all replicas share the synchronized parameters , while replica has its own saved optimizer state . Table 4 uses all 64 saved replica states. For each replica, we run rollouts: . Before every rollout, we restore the same pair , then consume a new segment of the replica’s shuffled data stream. Within a rollout, the parameters and optimizer state evolve normally. We record the parameter displacement after local steps,
where contains attention q_proj and MLP down_proj at layers 0, 4, and 8. For the 178M model, this concatenates coordinates. The and endpoints come from the same rollout and therefore have coupled finite-sample errors.
The per-replica batch is four sequences for , giving a global batch of 256 sequences. Each replay uses the optimizer configuration saved by the corresponding training run, including its replica-local momentum and second moments and its saved replica-specific or shared basis.
For fixed and , write
Two consecutive rollouts form one paired difference,
If the two rollouts are independent draws from the same conditional distribution, then
The subtraction therefore removes the unknown mean, while restores the original covariance scale.
Trace estimators from full-coordinate inner products
Fix a horizon and suppress in the notation. Define the Gram entries
The code computes these inner products over every selected coordinate; it does not use a random projection. It nevertheless estimates population moments from paired differences per replica.
For each replica, define
Under the IID-rollout idealization, for independent paired differences,
The last identity follows from
for independent and . Using is important: including the diagonal would add fourth-moment self-products and bias the estimate upward.
For different replicas , the cross term
estimates under the same IID and conditional replica-independence idealization. The quantity is the scale-dependent Frobenius overlap between two replicas’ covariance matrices, not a cross-covariance between their stochastic updates.
Scaled sum of local covariances
The probe constructs the scaled sum
For the actual replica average , this equals if the cross-replica noise covariances vanish conditional on the starting parameters and optimizer states. The local-replay probe does not measure those cross-covariances. To estimate the trace moments of , it uses
The separate estimator avoids squaring the noisy estimate . The reported anisotropy is
Under the IID idealization, , , and are built from unbiased moment estimators, but their ratio and square root are not themselves unbiased. The clipping only handles a negative raw value caused by finite-sample error; it can therefore return zero even when the population covariance is anisotropic.
If are the eigenvalues of , the population quantity is
where is the participation-ratio effective rank. Thus measures covariance shape independently of scale; it is undefined when the covariance is identically zero. For example, has , whereas has . Multiplying either matrix by a positive scalar leaves unchanged.
Scope and interpretation
The estimator is conditional on one checkpoint and one set of replica-local states. Each method is evaluated on its own trained trajectory, so a cross-method difference can reflect both the update rule and the state reached by training; it is not a same-state causal ablation. Concatenating six matrices also mixes within-matrix anisotropy, scale imbalance between matrices, and cross-matrix covariance. The input streams are disjoint segments of one shuffled replica-local permutation, rather than independent samples drawn with replacement. The unbiasedness equalities above are therefore exact only under the stated IID idealization. Moreover, the and sums reuse the same vectors; their terms are not independent observations. Finally, interpreting Equation (C.12) as the covariance of the actual average requires vanishing conditional cross-replica noise covariances.
Lower indicates a more isotropic , independently of total noise magnitude. For SOAP, the saved position relative to a basis-refresh step can also affect the measured covariance: the fresh gradient may enter both the basis and the proposal. At this single checkpoint, the probe characterizes update geometry but does not identify its causal contribution to final loss.
DP-referenced directional mean and noise
Each optimizer is evaluated at its own round-75 checkpoint. At the start of every repetition, the checkpoint weights and replica 0’s saved optimizer state are copied to every replica and to the DP reference. “Common state” means identical states within that replay, not an averaged optimizer state or a state shared across optimizers. Each replica consumes a persistent, shuffled data stream without reusing sequences across repetitions. In each step DP sees the union of the same local batches, evaluated at its own iterate. This preserves the pairing between local and DP data without reusing examples between the direction-fitting and evaluation samples.
Let index one of the 63 hidden matrices, vectorized in parameter coordinates. Write for its averaged local displacement and for its DP displacement in repetition . On the 16 fitting repetitions at , define
and take to be the leading eigenvector of the sample covariance of on those same fitting repetitions. The reference mean is , and the mean discrepancy is , conditional on the fitting sample. The decomposition in Equation (10) therefore applies to each matrix with these fitted quantities held fixed.
We use the remaining independent repetitions for evaluation. Set , , and . With denoting the unbiased sample variance on these repetitions, the unnormalized estimates are
Conditional on the fit and independent evaluation repetitions, is unbiased for and estimates , where . Crucially, the correction uses the variance of the paired difference ; it retains the local–DP cross-covariance. The stochastic term is the variance of a single aggregated update, not that variance divided by the number of evaluation repetitions.
For each matrix, the first two numerical columns in Table 5 are and , with , expressed in units of . The third column is . Every column is averaged with equal weight over the 63 matrices. In particular, the reported average ratio is not the ratio of the two reported averages. Bias-corrected mismatch estimates can be negative and are not clipped before averaging. The estimated DP normalizer and the ratios introduce additional finite-sample uncertainty; the normalized entries are not claimed to be unbiased. The matrices share data and are not independent experimental repeats.
| Optimizer | Mean mismatch () | Stochastic error () | Mean / noise (%) |
| SPlus | .044 | .91 | 7.9 |
| SOAP | .12 | 1.4 | 7.5 |
| Muon | .11 | 1.1 | 14 |
| AdamW | 5.4 | 19 | 19 |
Table 5. Mean mismatch is smaller than stochastic error in the detected high-noise directions, and particularly small for SPlus and SOAP compared with AdamW.
Trace-based comparison. The corresponding whole-matrix estimates are
They estimate and , respectively. The same DP-mean normalizer and equal per-matrix averaging apply; the mean/noise ratio is computed per matrix before averaging. At , , these average ratios are 6.2% for SPlus, 2.8% for SOAP, 10% for Muon, and 6.7% for AdamW.
Curvature along fitted high-noise directions
At each method’s own checkpoint, restore the saved parameters and optimizer state before every one-step replay. Form 128 paired update differences , using fresh local batches of sequences. Under the independent-replay model these differences are centered and have the local-update covariance. For Table 6, use the first 64 of the 128 paired samples to select
Hessian–vector products on 64 held-out validation sequences evaluate curvature at the same checkpoint parameters. Draw 16 independent standard Gaussian vectors in the six-matrix subspace and normalize each to unit length, giving . Report
The numerator measures curvature along a direction selected for high noise variance, not maximum curvature. The denominator estimates in this subspace. Each method uses its own trained checkpoint, so the Hessian and reference curvature are method-specific. Ranges span the two estimates from replicas 0 and 1; a single displayed value means both endpoints round to it. These are one-step local-update measurements, not aggregate measurements. The ratio removes the noise magnitude and does not estimate .
References
- [1]A. C. Aitken. On least squares and linear combinations of observations. Proceedings of the Royal Society of Edinburgh, 55:42–48, 1935. doi:10.1017/S0370164600014346.
- [2]Jeremy Bernstein, Yu-Xiang Wang, Kamyar Azizadenesheli, and Anima Anandkumar. signSGD: Compressed optimisation for non-convex problems. In Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 560–569, 2018. URL https://proceedings.mlr.press/v80/bernstein18a.html.arxiv.org/abs/1802.04434
- [3]Zachary Charles, Gabriel Teston, Lucio Dery, Keith Rush, Nova Fallen, Zachary Garrett, Arthur Szlam, and Arthur Douillard. Communication-efficient language model training scales reliably and robustly: Scaling laws for DiLoCo. In Advances in Neural Information Processing Systems, 2025. URL https://arxiv.org/abs/2503.09799.
- [4]Sjoerd Dirksen, Johannes Maly, and Holger Rauhut. Covariance estimation under one-bit quantization. The Annals of Statistics, 50(6):3538–3562, 2022. doi:10.1214/22-AOS2239. URL https://arxiv.org/abs/2104.01280.
- [5]Arthur Douillard, Qixuan Feng, Andrei A. Rusu, Rachita Chhაპaria, Yani Donchev, Adhiguna Kuncoro, Marc’Aurelio Ranzato, Arthur Szlam, and Jiajun Shen. DiLoCo: Distributed low-communication training of language models. arXiv:2311.08105, 2023. URL https://arxiv.org/abs/2311.08105.
- [6]Arthur Douillard, Yanislav Donchev, Keith Rush, Satyen Kale, Zachary Charles, Zachary Garrett, Gabriel Teston, Dave Lacey, Ross McIlroy, Jiajun Shen, Alexandre Ramé, Arthur Szlam, Marc’Aurelio Ranzato, and Paul Barham. Streaming DiLoCo with overlapping communication: Towards a distributed free lunch. arXiv:2501.18512, 2025. URL https://arxiv.org/abs/2501.18512.
- [7]Kevin Frans, Sergey Levine, and Pieter Abbeel. A stable whitening optimizer for efficient neural network training, 2025. URL https://arxiv.org/abs/2506.07254.
- [8]Vineet Gupta, Tomer Koren, and Yoram Singer. Shampoo: Preconditioned stochastic tensor optimization. In Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pp. 1842–1850, 2018. URL https://proceedings.mlr.press/v80/gupta18a.html.arxiv.org/abs/1802.09568
- [9]Stefan Horoi, Benjamin Thérien, Guy Wolf, and Eugene Belilovsky. Can model merging improve aggregation in DiLoCo? arXiv:2607.03011, 2026. URL https://arxiv.org/abs/2607.03011.
- [10]Keller Jordan, Yuchen Jin, Vlado Boza, Jiacheng You, Franz Cesista, Laker Newhouse, and Jeremy Bernstein. Muon: An optimizer for hidden layers in neural networks. Technical article, 2024. URL https://kellerjordan.github.io/posts/muon/.
- [11]Sai Praneeth Karimireddy, Satyen Kale, Mehryar Mohri, Shashank Reddi, Sebastian Stich, and Ananda Theertha Suresh. SCAFFOLD: Stochastic controlled averaging for federated learning. In Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pp. 5132–5143, 2020. URL https://proceedings.mlr.press/v119/karimireddy20a.html.arxiv.org/abs/1910.06378
- [12]Agnan Kessy, Alex Lewin, and Korbinian Strimmer. Optimal whitening and decorrelation. The American Statistician, 72(4):309–314, 2018. doi:10.1080/00031305.2016.1277159. URL https://arxiv.org/abs/1512.00809.
- [13]Mikail Khona, Aditya Vavre, Boxiang Wang, Deyu Fu, Hao Wu, Mike Chrzanowski, Bryan Catanzaro, Dheevatsa Mudigere, Jeff Pool, Michael Lightstone, Mohammad Shoeybi, Mostofa Patwary, Nima Tajbakhsh, and Tijmen Blankevoort. SOAP, muon, and beyond: Pushing LLM pretraining scales. arXiv:2607.20548, 2026. URL https://arxiv.org/abs/2607.20548.
- [14]Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations, 2015. URL https://arxiv.org/abs/1412.6980.
- [15]Jeffrey Li et al. Data-Comp-LLM: In search of the next generation of training sets for language models. arXiv:2406.11794, 2024. URL https://arxiv.org/abs/2406.11794.
- [16]Wu Lin, Scott C. Lowe, Felix Dangel, Runa Eschenhagen, Zikun Xu, and Roger B. Grosse. Understanding and improving shampoo and SOAP via Kullback–Leibler minimization. In International Conference on Learning Representations, 2026. URL https://arxiv.org/abs/2509.03378.
- [17]Bo Liu et al. Asynchronous local-SGD training for language modeling. arXiv:2401.09135, 2024. URL https://arxiv.org/abs/2401.09135.
- [18]Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2019. URL https://arxiv.org/abs/1711.05101.
- [19]Sadhika Malladi, Kaifeng Lyu, Abhishek Panigrahi, and Sanjeev Arora. On the SDEs and scaling rules for adaptive gradient algorithms. In Advances in Neural Information Processing Systems, 2022. URL https://arxiv.org/abs/2205.10287.
- [20]Daniel Marczak, Simone Magistri, Sebastian Cygert, Bartłomiej Twardowski, Andrew D. Bagdanov, and Joost van de Weijer. No task left behind: Isotropic model merging with common and task-specific subspaces. In Proceedings of the 42nd International Conference on Machine Learning, 2025. URL https://arxiv.org/abs/2502.04959.
- [21]Martin Marek, Sanae Lotfi, Aditya Somasundaram, Andrew Gordon Wilson, and Micah Goldblum. Small batch size training for language models: When vanilla SGD works, and why gradient accumulation is wasteful, 2025. URL https://arxiv.org/abs/2507.07101.
- [22]H. Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Agüera y Arcas. Communication-efficient learning of deep networks from decentralized data. In Proceedings of the 20th International Conference on Artificial Intelligence and Statistics, volume 54 of Proceedings of Machine Learning Research, pp. 1273–1282, 2017. URL https://proceedings.mlr.press/v54/mcmahan17a.html.arxiv.org/abs/1602.05629
- [23]Sashank J. Reddi, Zachary Charles, Manzil Zaheer, Zachary Garrett, Keith Rush, Jakub Konečný, Sanjiv Kumar, and H. Brendan McMahan. Adaptive federated optimization. In International Conference on Learning Representations, 2021. URL https://arxiv.org/abs/2003.00295.
- [24]Matthew Reed and Mohamed Baioumy. SPARTA: Distributed training with sparse parameter averaging. EXO Labs, 2025. URL https://openreview.net/forum?id=stPF3gzq1. See also the OpenReview preprint “Improving the Efficiency of Distributed Training using Sparse Parameter Averaging”.
- [25]Amir Sarfi et al. Communication efficient LLM pre-training with SparseLoCo. arXiv:2508.15706, 2025. URL https://arxiv.org/abs/2508.15706.
- [26]Sebastian U. Stich. Local SGD converges fast and communicates little. In International Conference on Learning Representations, 2019. URL https://arxiv.org/abs/1805.09767.
- [27]Benjamin Thérien, Xiaolong Huang, Aaron Defazio, Irina Rish, and Eugene Belilovsky. MuLoCo: Muon is a practical inner optimizer for DiLoCo, 2025. URL https://arxiv.org/abs/2505.23725.
- [28]Felix Voigtlaender. A general version of Price’s theorem: A tool for bounding the expectation of nonlinear functions of Gaussian random vectors. Journal of Theoretical Probability, 34:1474–1485, 2021. doi:10.1007/s10995-020-01017-w.DOI
- [29]Nikhil Vyas, Depen Morwani, Rosie Zhao, Mujin Kwun, Itai Shapira, David Brandfonbrener, Lucas Janson, and Sham Kakade. SOAP: Improving and stabilizing shampoo using shampoo and Adam. In International Conference on Learning Representations, 2025. URL https://arxiv.org/abs/2409.11321.
- [30]Jianyu Wang, Rudrajit Das, Gauri Joshi, Satyen Kale, Zheng Xu, and Tong Zhang. On the unreasonable effectiveness of federated averaging with heterogeneous data. Transactions on Machine Learning Research, 2024. URL https://arxiv.org/abs/2206.04723.
- [31]Kaiyue Wen, David Hall, Tengyu Ma, and Percy Liang. Fantastic pretraining optimizers and where to find them. arXiv:2509.02046, 2025. URL https://arxiv.org/abs/2509.02046.
- [32]Hao Yu, Rong Jin, and Sen Yang. On the linear speedup analysis of communication efficient momentum SGD for distributed non-convex optimization. In Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 7184–7193, 2019. URL https://proceedings.mlr.press/v97/yu19d.html.arxiv.org/abs/1905.03817



