On the Limits of Stochastic Push-Pull over Time-Varying Digraphs
Feiming Wang, Yutong He, Sulaiman Alghunaim, Kun Yuan
Abstract
Stochastic Push-Pull achieves linear speedup with respect to the network size n on static strongly connected digraphs, but whether this speedup persists on time-varying networks remains unclear. In this work, we construct a quadratic decentralized problem on period-two networks showing that stochastic Push-Pull may fail to attain linear speedup over time-varying digraphs. For p-periodic networks, we identify an effective node count neff≤n that governs the leading stochastic term. Specifically, for smooth nonconvex objectives, we establish convergence upper bounds and matching lower bounds for stochastic Push-Pull with constant stepsizes, both exhibiting the leading-order dependence Θ(1/neffT). When p=1, the identity neff=n recovers the usual linear speedup for static digraphs. However, periodic networks can have neff=o(n), demonstrating the loss of linear speedup under temporal variation. Numerical experiments illustrate effective-count scaling and the separation between static and periodic networks, consistent with our theoretical findings.
With n independent gradient samples, minibatch stochastic gradient descent reduces gradient variance by a factor of n and improves the leading nonconvex stationarity rate from O(T−1/2) to O((nT)−1/2) [6]. A decentralized optimization algorithm achieves linear speedup only when it attains the same leading rate, as established for decentralized SGD in [12].
The Push-Pull algorithm accommodates digraphs through row-stochastic model mixing and column-stochastic gradient tracking [21]. On arbitrary strongly connected static digraphs it achieves the usual convergence rate with linear speedup [27, 14]; time-varying variants converge under several deterministic and stochastic regimes [18, 22, 16, 19, 5]. These results raise the following question:
Does the Push-Pull algorithm retain the usual convergence rate with linear speedup on time-varying networks, e.g., periodic ones?
By constructing a decentralized problem on period-two networks, we find that stochastic Push-Pull can fail to attain linear speedup with respect to the number of workers n. Instead, for each
∗Feiming Wang and Yutong He contributed equally to this work.
†School of Statistics and Data Science, Nankai University, Tianjin, China. 2637275625@qq.com. This work was completed during Feiming Wang's research internship at Peking University.
‡Center for Machine Learning Research, Peking University. yutonghe@pku.edu.cn
¶Corresponding author. Center for Machine Learning Research, Peking University. kunyuan@pku.edu.cn fixed periodic network, we prove that its leading stochastic term is governed by an effective node count neff∈(0,n], determined by the periodic sequence of mixing matrices. Specifically, for phase r in a p-periodic sequence, let br∈Rn be the phase weights defined in Definition 4.2. The component (br)i is the cumulative weight of node i's stochastic gradient, accounting for the immediate model update and subsequent propagation through the tracker. Set
h:=p1r=0∑p−1br⊤1,q:=p1r=0∑p−1∥br∥2.(1)
We then define neff as
neff:=qh2.(2)
Intuitively, h measures average descent gain and q measures average noise energy; hence q/h=1/neff is the noise-to-signal ratio.
For the fixed periodic network N:={(Rr,Cr)}r=0p−1, we use the finite-horizon stationarity measure
AT:=T1t=0∑T−1E[∥∇f(xˉt)∥2],(3)
where f is the global objective and xˉt is the arithmetic average of the local model states xi,t.
Under mild assumptions, we prove that Push-Pull with suitably chosen constant stepsizes converges on periodic time-varying networks at the rate
AT=O(σneffTLΔ)+O(T−1).(4)
For every periodic network satisfying the assumptions of the convergence theory, we also establish the following lower bound for Push-Pull with constant stepsizes on the homogeneous one-dimensional quadratic fi(x)=Lx2/2:
α≥0infAT=σneffT2LΔ+o(T−1/2).(5)
The matching bounds identify neff as the factor governing the leading stochastic term. To relate this scaling to the number of workers, we establish
0<neff≤n,p=1⟹neff=n.
Thus neff never exceeds n and reduces to n for static networks. For periodic networks, however, neff/n can be arbitrarily small, so Push-Pull need not attain n-worker linear speedup in time-varying digraphs.
1.1 Stochastic Push-Pull
Consider the following decentralized optimization problem:
x∈Rdminf(x):=n1i=1∑nfi(x).(6)
At iteration t, agent i stores xi,t∈Rd and queries
gi,t=∇fi(xi,t)+εi,t.(7)
Here εi,t denotes the stochastic-gradient noise, whose conditional moments are specified in Assumption 2.1.
Let Rt∈Rn×n be a row-stochastic matrix satisfying Rt1=1 and Ct∈Rn×n be a column-stochastic matrix satisfying 1⊤Ct=1⊤. Then, stochastic Push-Pull iterates via
Xt+1=RtXt−αYt,(8a)Yt+1=CtYt+Gt+1−Gt,(8b)
with initialization
X0=1x0⊤,Y0=G0,(9)
where Xt,Yt,Gt∈Rn×d stack the local models, trackers, and stochastic gradients by rows, and Zt=[∇fi(xi,t)⊤]i=1n, so that
Gt=Zt+εt.(10)
We use xˉt:=n−1Xt⊤1∈Rd to denote the arithmetic average of the model states, and the convergence metric is AT as defined in (3). We write Et:=Yt−Gt for the tracker residual. For a matrix sequence, we use Ma:b=MaMa−1⋯Mb when a≥b, and Ma:b=I when a<b.
1.2 Related work
Directed architectures and static networks. The AB/Push-Pull framework combines row-stochastic model mixing with column-stochastic gradient tracking over directed graphs [25, 21]. For smooth nonconvex stochastic optimization on static strongly connected digraphs, the usual n-worker scaling is established in [27, 14]. The leading stochastic term has order O((nT)−1/2); in our periodic-network framework, static mixing corresponds to neff=n.
Time-varying networks. The analysis in [11] covers decentralized SGD with changing topology and local updates. Under a window-mixing condition, stochastic gradient tracking over time-varying doubly stochastic networks achieves linear speedup for smooth convex and strongly convex objectives [1]. For directed networks, stochastic gradient-push has been studied in [17, 4], while Push-DIGing, TV-AB, AB/Push-Pull, and SONATA provide gradient-tracking methods for time-varying digraphs [18, 22, 16, 23]. The stochastic AB/Push-Pull method SAB-TV addresses smooth strongly convex objectives over time-varying directed networks [19]. For nonconvex objectives, the method in [5] combines stochastic momentum with gradient tracking.
Network-dependent efficiency. The analysis in [26] identifies conditions under which stochastic gradient tracking matches centralized minibatch SGD for nonconvex objectives. Refined analyses improve the network dependence of gradient-tracking convergence bounds in convex and nonconvex settings [10, 2, 3]. Further work examines the influence of topology beyond the spectral gap [24] and finite-time consensus and its use in gradient tracking [20]. Complexity lower bounds for decentralized nonconvex stochastic optimization are established for static networks in [15] and for time-varying networks in [9]. The work [13] develops network metrics, lower bounds, and algorithms for directed networks.
Contributions. Our contributions are as follows.
Failure of linear speedup. We construct quadratic instances under the stated assumptions for which stochastic Push-Pull has a stepsize-optimized convergence rate of Θ(T−1/2), with constants independent of the network size n. Thus, linear speedup need not hold on time-varying networks.
• Matching upper and lower bounds. For each fixed periodic network satisfying our assumptions, we establish upper bounds for smooth nonconvex objectives and lower bounds for stochastic Push-Pull with constant stepsizes, with matching leading-order dependence Θ(1/neffT). The linear speedup factor neff characterizes the effective node count of the periodic network.
• Numerical validation. Experiments on nonconvex logistic regression and quadratic objectives illustrate effective-count scaling and the loss of linear speedup under time-varying mixing.
Organization. Section 2 states the assumptions, and Section 3 proves that Push-Pull does not necessarily have the linear speedup factor n. Sections 4 and 5 introduce preliminaries and present the upper and lower convergence bound theorems. Section 6 develops lemmas for the proofs in Sections 7 and 8. The remaining sections present numerical experiments, discussion, and appendices.
2 Assumptions
Assumption 2.1 (Objective and oracle). Every fi is globally L-smooth, f is bounded below, and
0<Δ:=f(x0)−xinff(x)<∞.
Let Ft− denote the filtration containing information available immediately before the iteration-t oracle samples are drawn. The noise satisfies
E[εt∣Ft−]=0,E[∥εi,t∥2∣Ft−]≤σ2,(11)
for σ≥0, and the noises across agents are conditionally independent given Ft−.
The conditional assumptions imply that, for every Ft−-measurable (or predictable) matrix A of compatible dimensions,
E[∥Aεt∥F2∣Ft−]≤σ2∥A∥F2.(12)
Assumption 2.2 (Periodic network). For a fixed integer p≥1,
Rt+p=Rt,Ct+p=Ct.
The complete matrix sequence is fixed before the run, independently of the stochastic-gradient oracle. At every iteration, Rt is row stochastic, Ct is column stochastic, both have positive diagonals, all nonzero entries are at least w0>0, and the associated digraphs are strongly connected.
All results below condition on this fixed network and take expectation only over the oracle noise. Unless stated otherwise, the stepsize is deterministic and held constant over the horizon.
3 Failure of linear speedup on time-varying networks
We construct a family of period-two networks for which the stochastic convergence rate remains of order T−1/2 as the number of nodes grows.
Theorem 3.1 (Failure of n-worker scaling). For every integer s≥2, set n=2s2. There is a deterministic period-two network Nn satisfying Assumption 2.2 with w0=1/128. Its column-stochastic matrices are equal to a symmetric doubly stochastic matrix C satisfying
C−n111⊤2≤1−γ0,γ0:=328−52>0.
Take d=1, fi(x)=x2/2, x0=1 in (9), and independent node-time Rademacher noises taking values ±1, so that L=σ=1 and Δ=1/2. Let An,T(α) denote the stationarity measure (3) on this instance with constant stepsize α≥0. For every integer T≥256,
128T1≤α≥0infAn,T(α)≤An,T(4T1)≤T5.(13)
Proof. Put m=s2, u=1/n, and J=1u⊤. For each vertex (a,b)∈Zs2, assign weight 1/8 to each of the eight neighbors
(a±2b,b),(a±(2b+1),b),(a,b±2a),(a,b±(2a+1)).
All coordinates are taken modulo s, and coincident neighbors are counted with multiplicity. Let P∈Rm×m be the resulting matrix. This is the normalized adjacency matrix of the Margulis–Gabber–Galil graph. It is symmetric and stochastic, and its eigenvalues satisfy
1=λ1(P)>λ2(P)≥⋯≥λm(P)≥−1,λ2(P)≤852;
see [8, Construction 8.1 and Theorem 8.2]. Define
S=43Im+41P,J2=211212⊤,H2=I2−J2.
Index the n nodes in m pairs, with nodes one and two corresponding to (0,0)∈Zs2, and set
and every entry in an off-diagonal pair block is Sij/2=Pij/8. Thus the diagonal entries of C are at least 1/4, the off-diagonal entries within each pair are at least 1/2, and every other positive entry is at least 1/64. In particular,
Since λ2(P)<1, the graph of P is connected, and every pair has positive internal edges. Hence the graph of C is connected. Its support is contained in that of each Rt, whose diagonal entries are at least 1/8. These matrices therefore satisfy Assumption 2.2 with p=2 and w0=1/128.
For v∈Rm and a2=(1,−1)⊤, the definition of C gives
C(v⊗12)=(Sv)⊗12,C(v⊗a2)=−41v⊗a2.
These two orthogonal subspaces span Rn. The eigenvalues on the first subspace are 3/4+λi(P)/4∈[1/2,1], while those on the second subspace equal −1/4. Since C is symmetric,
∥C−J∥2=max{41,43+41λ2(P)}≤43+3252=1−γ0.
For the quadratic objective, Gt=Xt+εt. The initialization and column stochasticity give E0=0 and 1⊤Et=0. Substituting Et=Yt−Gt into (8) yields
The variables εt− are independent across time, have mean zero, and satisfy E[(εt−)2]=∥ℓ−∥2=1/2.
Since ∥ℓ−∥2=1/2, the matrix P− := 2ℓ−ℓ− is the orthogonal projection onto span {ℓ−}. Let (Xt(−),Et(−)) solve (15) with noise P−εt and zero initial states, and write xˉt(−)=u⊤Xt(−). The identity ℓ−⊤P− = ℓ− and the recursion (16) imply
(−1)tℓ−⊤Xt(−)=xt−,(−1)tℓ−⊤Et(−)=et−.
Moreover,
Rt1=C1=1,Rtℓ−=−81ℓ−+4(−1)t1,Cℓ−=−41ℓ−.
Thus Xt(−)∈span{1,ℓ−} and Et(−)∈span{ℓ−} for every t, and
Writing k=1−α and using u⊤P− = 0, we obtain from the first equation in (15)
xˉt+1(−)=kxˉt(−)+21xt−,xˉ0(−)=0.(17)
Let xˉt(⊥) be the average response from zero initial states to the complementary noise (I−P−)εt. The noise-free solution is Xt=kt1, Et=0, so linearity gives
xˉt=kt+xˉt(−)+xˉt(⊥).
The node noises have covariance I and are independent across time. Consequently, for all r,s≥0,
E[(P−εr)((I−P−)εs)⊤]=0.
Both random responses are linear in the corresponding noises and have mean zero. Their covariance vanishes, and hence
The three cases prove the lower bound for every α≥0. The upper bound at α=1/(4T) is proved in Appendix A.
For comparison, take Rt=Ct=C from (14) on the same objective and oracle. Since C is doubly stochastic and 1⊤Yt=1⊤Gt, the average satisfies xˉt+1=(1−α)xˉt−αu⊤εt. Geometric summation gives An,Tstat(α)≤1/(αT)+α/n for 0<α≤1. Choosing α=n/T yields
In the periodic network, the alternating weights transmit the noise difference between nodes one and two into the average. Its variance does not decrease with n. The next section introduces phase weights to describe how these noise contributions accumulate on a general periodic network.
4 Preliminaries
We first establish network properties needed to characterize neff, starting with the left and right Perron vectors. Assumption 2.2 implies that Rp−1:0 is row-stochastic and primitive. By Perron-Frobenius' theorem, there exists a unique π0∈[0,1]n such that π0⊤1=1 and π0⊤Rp−1:0=π0⊤. With πr⊤=π0⊤Rp−1:r and πkp+r=πr for k∈N and 0≤r<p, the following relations hold for every t≥0:
πt+p=πt,πt>0,πt⊤1=1,andπt⊤=πt+1⊤Rt.(23)
Similarly, Cp−1:0 is column-stochastic and primitive, and there exists v0∈[0,1]n such that 1⊤v0=1 and Cp−1:0v0=v0. With vr=Cr−1:0v0 and vkp+r=vr for k∈N and 0≤r<p, the following relations hold for every t≥0:
vt+p=vt,vt>0,1⊤vt=1,andvt+1=Ctvt.(24)
The left and right Perron vectors are frequently used in the convergence theory, including the following mixing bounds for products of Rt and Ct.
Lemma 4.1 (Uniform mixing). Set
n~=max{1,n−1},δ=max{1/2,1−nw0n~},r⋆=δ1/n~<1,
and MC=n/δ, MR=2n/δ. Under Assumption 2.2, the following bounds hold for every t≥s, with Π:=I−n111⊤:
The same inequalities apply columnwise to matrix states.
Proof. For n=1 the claim is immediate. Assume n≥2 and put β:=w0n~. Positive diagonals and strong connectivity imply that every block Cs+n~−1:s and Rs+n~−1:s has all entries at least β: a temporal reachable set persists by the self-loops and gains at least one node at each step until it is full. For the column-stochastic block, write Cs+n~−1:s=β11⊤+(1−nβ)Cs with Cs column stochastic. Hence, for 1⊤z=0,
∥Cs+n~−1:sz∥1≤(1−nβ)∥z∥1≤δ∥z∥1.
For the row-stochastic block, the same decomposition into β11⊤ and a row-stochastic remainder gives
osc(Rs+n~−1:sx)≤(1−nβ)osc(x)≤δosc(x),
where osc(x):=maxixi−minixi. If t−s=kn~+r with 0≤r<n~, the remaining r factors are nonexpansive in the relevant norm. Thus
∥Ct−1:sz∥≤∥Ct−1:sz∥1≤δk∥z∥1≤nδk∥z∥
for zero-sum z, and
∥ΠRt−1:sx∥≤nosc(Rt−1:sx)≤nδkosc(x)≤2nδk∥Πx∥.
Since δk≤δ−1r⋆t−s, these are the first two claims. Finally, if πs⊤x=0, invariance of the left Perron vectors implies mini(Rt−1:sx)i≤0≤maxi(Rt−1:sx)i, hence
∥Rt−1:sx∥≤nosc(Rt−1:sx)≤nδkosc(x)≤2nδk∥x∥,
which proves the last claim. The matrix statements follow columnwise.
For W∈Rn×m with 1⊤W=0, Lemma 4.1 guarantees convergence of the series
Dt(W):=j=0∑∞W⊤Ct+j−1:t⊤πt+j+1∈Rm.(28)
This operator describes how a stochastic-gradient perturbation feeds back into the aggregate model state through future phases. By definition, Dt is also p-periodic, and satisfies the following Poisson identity:
Dt(W)=W⊤πt+1+Dt+1(CtW).(29)
Definition 4.2 (Phase weights). At phase r=tmodp, a perturbation to Gt changes Xt+1 directly and affects later model updates through the tracker. Define the phase weight for r∈{0,…,p−1} by
br:=πr+1+Dr+1(Cr−I).(30)
Equivalently,
br=πr+1+j=1∑∞(Cr−I)⊤Cr+j−1:r+1⊤πr+j+1.(31)
We extend the phase weights periodically by bt:=btmodp for every t≥0. The first term in (31) is the immediate aggregate response. The remaining terms collect subsequent tracker responses to the same perturbation. Substituting these phase weights into (1) and (2) defines the average descent gain h, the noise energy q, and the effective node count neff. Lemma 6.3 gives h=pn∑r=0p−1πr+1⊤vr>0. Consequently q>0, and Cauchy-Schwarz gives 0<neff≤n, with equality if and only if all pn entries {(br)i}r,i are identical. Equation (41) shows that equality holds when p=1.
Remark 4.3 (Effective node count of the period-two networks). For the network in Theorem 3.1, let u=1/n, J=1u⊤, and ℓ−=(e1−e2)/2. Set
a=4e1+e2,w=(I−C/2)−1a=j=0∑∞2−jCja.
Then w=Cw/2+a and 1⊤w=1. Using Cℓ−=−ℓ−/4, the vectors
Remark 4.4 (Calculation of neff). Given the periodic weights {(Rr,Cr)}r=0p−1, we can compute the normalized left Perron vector π0 of Rp−1:0, satisfying Rp−1:0⊤π0=π0 and 1⊤π0=1. The remaining πt follow by definition. For n≥2, let the columns of U∈Rn×(n−1) form an orthonormal basis of 1⊥, and set Cr=U⊤CrU. Solve the following cyclic linear system:
dr−Cr⊤dr+1=U⊤πr+1,r=0,…,p−1,dp=d0.(33)
This gives vectors dr∈Rn−1 satisfying dr+p=dr and Dr(Uz)=z⊤dr for every z∈Rn−1. The phase weights are then recovered as
br=πr+1+(Cr−I)⊤Udr+1.(34)
The quantities h,q,neff follow from (1)-(2).
To justify this procedure, column stochasticity implies that Cr preserves 1⊥, so CrU=UCr. Applying the Poisson identity (29) to Uz therefore gives
z⊤dr=z⊤U⊤πr+1+z⊤Cr⊤dr+1,z∈Rn−1,
which yields (33). To establish uniqueness, let {dr} and {dr} be two solutions of (33), and set δr=dr−dr. Then
δr=Cr⊤δr+1,r=0,…,p−1,δp=δ0.
With P:=Cp−1⋯C0, successive substitution gives
δ0=C0⊤⋯Cp−1⊤δ0=P⊤δ0.
By periodicity and Lemma 4.1,
∥Pk∥2=∥U⊤Ckp−1:0U∥2≤MCr⋆kp,k≥1.
Since ρ(P)≤r⋆p<1, the matrix I−P⊤ is invertible. Consequently,
δ0=0,δr=Cr⊤⋯Cp−1⊤δp=0,0≤r<p.
Thus (33) has a unique solution, equal to the coordinates of the response functionals defined in (28). Finally, each column of Cr−I lies in 1⊥, and hence
Dr+1(Cr−I)=(Cr−I)⊤Udr+1.
Substituting this identity into (30) yields (34). The procedure therefore computes the effective node count defined by the infinite series.
5 Sharp characterization of the leading stochastic term
We now state the upper bound and its matching quadratic lower bound. Their proofs are given in Sections 7 and 8, respectively.
Theorem 5.1 (Upper bound). Suppose Assumptions 2.1 and 2.2 hold. If we choose the stepsize α properly (specified in Corollary 7.6), it holds that
AT=O(σneffTLΔ+TK~0(N,LΔ,H0)),(35)
where H0:=∥(I−v01⊤)Z0∥F is an initial term, and K~0 depends only on N,LΔ,H0.
Theorem 5.2 (Matching lower bound). Fix any network satisfying Assumption 2.2. Let fi(x)=Lx2/2 for L>0, and let all node-time noises be independent, mean zero, and have variance exactly σ2>0. Under the common initialization with x0=0, Δ=Lx02/2. As T→∞, it holds that
α≥0infAT=σneffT2LΔ+o(T−1/2).(36)
Together, these theorems identify the sharp order of the leading stochastic term as Θ(σneffTLΔ). For periodic networks, the leading stochastic term has the usual n-worker scaling if and only if neff=Θ(n).
6 Auxiliary variables and lemmas
Definition 6.1. Recall the tracker residual Et=Yt−Gt. We use its recursion together with the following auxiliary quantities:
where sk:=kp is the first iteration of period k. The vectors τkZ,ηk,ρk,ωk belong to Rd. By construction,
EtZ+Etε=Et=Yt−Gt,∀t≥0(38)
Lemma 6.2. Under Assumption 2.2, the auxiliary points ωk satisfy:
ωk+1=ωk−α(Hgˉk+ek−ρk+ζk),∀k≥0;(39)
where H:=hp, gˉk:=∇f(xˉsk), ek:=∑r=0p−1Zsk+r⊤br−Hgˉk, and ζk=∑r=0p−1εsk+r⊤br.
Proof. Set νt=Xt⊤πt−αDt(Et). Using Yt=Gt+Et, the Perron relation (23), and the Poisson identity (29) in the primal and residual updates (8) gives
Proof. For this auxiliary calculation, fix any α>0 and an input Gt≡W. Then Yt=Ct−1:0W. By Lemma 4.1 and (24), we can write Yt=vt1⊤W+O(r⋆t∥(I−v01⊤)W∥F), implying
where the first equality uses (8a) and (23), the second equality uses the definition of ν as in the proof of Lemma 6.2, and the last equality uses (40). Since Et=Ct−1:0W−W is bounded and has zero column sums, Lemma 4.1 gives ∥Dt(Et)∥≤MC(1−r⋆)−1∥Et∥F uniformly in t, so the telescoping term vanishes after division by N. Thus
N→∞limN1t=0∑N−1Yt⊤πt+1=p1r=0∑p−1W⊤br.(43)
Comparing (42) and (43) and noticing the arbitrariness of W, we obtain
p1r=0∑p−1br=(p1r=0∑p−1πr+1⊤vr)1.(44)
Combining (44) and (1) yields (41).
7 Convergence upper bound
This section proves Theorem 5.1, beginning with a descent lemma for the auxiliary sequence {ωk}k≥0:
Lemma 7.1 (Descent lemma). Under Assumptions 2.1 and 2.2, for α≤40LH1 and every k≥0,
where gˉk, ek, ρk, and ηk are defined as in Lemma 6.2 and (37e) and (37f).
Proof. Write g^k=∇f(ωk), ak=ek−ρk, and dk=g^k−gˉk. Since g^k is Fsk−-measurable, conditioning on Fsk+r− and using Assumption 2.1 gives E[⟨g^k,ζk⟩]=0 and E[∥ζk∥2]≤pqσ2. Smoothness and (39) therefore imply
(48d) where H0:=∥Θ0Z∥F with ΘtZ:=EtZ+PtZt and Pt:=I−vt1⊤, constants κχ:=∥π0−n11∥, EQ:=n3h2p, EM:=n3h2p3+3∑r=0p−2∥ur∥2, Cρ,0:=1−r⋆212d⋆2MC2, Cρ,x:=(1−r⋆)212d⋆2s⋆2MC2+3p∥P0∥2d⋆2, and Vτ:=1−r⋆2d⋆2MC2κC2n, with ur:=∑j=0r(bj−nh1), MC defined as in Lemma 4.1, d⋆:=sup{∥D0(W)∥:1⊤W=0, ∥W∥F≤1}, s⋆:=max0≤r<p∥Pr∥2, and κC:=max0≤r<p∥Cr−I∥2.
Proof. We prove (48a)-(48d) in order. To prove (48a), note that (π0−n11)⊤1=0 and hence Xsk⊤π0−xˉsk=Qsk⊤(π0−n11). Therefore
E[∥Xsk⊤π0−xˉsk∥2]≤κχ2E[∥Qsk∥F2],(49)
and summation gives the first estimate. For (48b), use the decomposition
Here the last equality uses Abel's formula; the first inequality uses Cauchy-Schwarz and up−1=0 by Lemma 6.3; and the last inequality uses Assumption 2.1. For the node term, use Zt⊤1−n∇f(xˉt)=∑i[∇fi(xi,t)−∇fi(xˉt)]. Cauchy-Schwarz and smoothness give
∥eknode∥2≤nph2L2r=0∑p−1∥Qsk+r∥F2.(52)
For the movement term, telescope the averages and use ∥xˉt+1−xˉt∥2≤n−1∥Xt+1−Xt∥F2 to obtain
Summing (51), (52), and (54) from k=0 to K−1, taking expectations and using ∥ek∥2≤3(∥ekphase∥2+∥eknode∥2+∥ekmove∥2) yields (48b). To prove (48c), we start with the following transformation:
Applying (56) yields (48c). To prove (48d), expand the recursion for Etε. Since the Ct are deterministic and E[εj∣Fj−]=0, cross terms between different times vanish. Lemma 4.1 gives
where GR:=(1−r⋆)2MR2, q0:=1−r⋆26MC2, qG:=12v⋆2n2p, qM:=(1−r⋆)26MC2s⋆2+12v⋆2np2, qQ:=6v⋆2n, qσ:=3+1−r⋆23MC2κC2, κR:=max0≤r<p∥Rr−I∥2, and m∙:=2q∙ for ∙∈{0,G,M,Q,σ}. Here v⋆:=max0≤r<p∥vr∥, r⋆, MC, and MR are from Lemma 4.1, while κC and H0 are from Lemma 7.2.
Proof. We first express both QN and MN in terms of Yt. Since Q0=0, Rt1=1, and ΠRtΠ=ΠRt,
To estimate the tracker energy, decompose Yt=ΘtZ+vt1⊤Zt+(εt+Etε). The first term is bounded in (56). For the second, smoothness and Cauchy-Schwarz yield
∥1⊤Zt∥2≤2n2∥∇f(xˉt)∥2+2nL2∥Qt∥F2.
Comparing each within-period gradient with gˉk and using (53) then gives
where Q^∙:=[2GR+16(2κR2+mQ)GR2qM]q∙+8qMGRm∙, and M^∙:=8(2κR2+mQ)GRq∙+4m∙, for ∙∈{0,G,σ}. Here H0 is from Lemma 7.2, and GR, κR, m∙, and q∙ are from Lemma 7.3.
Proof. Consider (58) in Lemma 7.3, (64)⇒α2GRqQL2≤1/2 implies
QN≤2α2GR(q0H02+qGGK+qML2MN+qσnNσ2).(67)
Similarly, consider (59) in Lemma 7.3, (64)⇒α2mML2≤1/2 implies
where the last inequality uses (64)⇒ α≤1/L. Applying (67) to (68) and using (64)⇒ 4(2κR2+mQ)α2GRqML2≤1/2 yields (66). Applying (66) to (67) and using α≤1/L yields (65).
We now establish the convergence upper bound.
Theorem 7.5 (Upper bound for an admissible fixed stepsize). Under Assumptions 2.1 and 2.2, set
The last three restrictions in (69) respectively bound the loss in descent by αH/8 and the two extra noise terms by α2pqLK/4 and α2pqLK/8. Since ω0=x0 and f(ωK)≥inff, we obtain
GK≤αH2Δ+2H221CB,0H02+h2LqαKσ2.(72)
To return to all iterations, smoothness and (53) give
Substituting (72) and collecting terms with H=ph gives (70).
Corollary 7.6 (Theorem 5.1). Under Assumptions 2.1 and 2.2, if we choose
α={min{αmax,Lqσ2TΔ},αmax,σ>0,σ=0,(73)
with αmax as defined in (69), the following convergence guarantee holds for time-varying stochastic Push-Pull when T≥p:
AT=OneffTLΔσ2+TK~0(N,LΔ,H0),
where K~0 depends only on N, LΔ, and H0.
8 Convergence lower bound
We prove Theorem 5.2 for time-varying stochastic Push-Pull. Specifically, we consider the objectives fi(x)=2L∥x∥2 for x∈R and i=1,2,⋯,n, an initialization x0=0, and independent noises εi,t satisfying E[εi,t]=0 and E[εi,t2]=σ2>0. Then Zt=LXt, and the updates take a linear form. By (8), (37a), and (38), we have
where A(α):=Mp−1:0(α)∣E and Br(α):=Mp−1:r+1(α)Nr(α).
Lemma 8.1 (Eigen properties of A(α)). For sufficiently small ∣α∣, there exist a real-analytic eigenvalue γ(α) and real-analytic right and left eigenvectors τ(α),ℓ(α)∈E such that
A=γ,ℓ⊤A=γℓ⊤,a⊤=ℓ⊤=1,(78)
with values at α=0
γ(0)=1,(0)=(1⊤,L(nv0−1)⊤)⊤,ℓ(0)=(π0⊤,0⊤)⊤,(79)
where a:=(n−11⊤,0⊤)⊤.
Proof. At α=0 the matrices are block lower triangular. The Perron relations Rr1=1, Crvr=vr+1, and πr+1⊤Rr=πr⊤ give, by one-period iteration,
A(0)τ(0)=τ(0),ℓ(0)⊤A(0)=ℓ(0)⊤,
for the vectors in (79). Moreover, a⊤τ(0)=ℓ(0)⊤τ(0)=1 and both vectors belong to E.
Let
H:={(X⊤,E⊤)⊤∈E:π0⊤X=0}.
Then E=span{τ(0)}⊕H. The restriction A(0)∣H is block lower triangular with diagonal blocks Rp−1:0∣π0⊥ and Cp−1:0∣1⊥. By Lemma 4.1, their k-th powers have norm at most MRr⋆kp and MCr⋆kp, respectively. Their spectra therefore lie in the disk of radius r⋆p, and the triangular structure gives
ρ(A(0)∣H)≤r⋆p<1.(80)
Thus 1 is an isolated simple eigenvalue of A(0).
The map α↦A(α) is a finite-dimensional matrix polynomial. The eigenvalue and eigenvector perturbation theorems [7, Theorems 1 and 2] therefore yield, for sufficiently small ∣α∣, a unique real analytic eigenvalue γ(α) near 1 and corresponding analytic right and left eigenvectors near τ(0) and ℓ(0). Since a⊤τ(0)=ℓ(0)⊤τ(0)=1, these eigenvectors can be uniquely normalized by
a⊤τ(α)=1,ℓ(α)⊤τ(α)=1.
The resulting objects satisfy (78) and (79).
For sufficiently small ∣α∣, Lemma 8.1 separates the leading eigenspace, whose eigenvalue is close to 1, from a complementary space whose spectral radius is uniformly below 1. We thus decompose the state St as
St=τ:=ztℓ⊤St+:=Vt(I−τℓ⊤)St,
where τ and ℓ are as defined in Lemma 8.1. To bound ∇f(xˉt)=Lxˉt, it suffices to bound xˉt with the following recursion:
where the first equality uses Aτ=γτ and the linearity of L0, the second equality uses the periodicity of Lt, and the last equality uses (86). Since L0τ=1+O(α) and Xr=1+O(α) for 0≤r≤p−1,
where the last equality uses (1), proving (83). To prove (84), we consider the following decomposition:
ℓ⊤Br=L0Br+(ℓ⊤−L0)Br.(88)
For the first term, we consider the case where S0=0 and εt=δrtη, with δrt=1 if r=t else 0, and η being an arbitrary Rn vector. In this case, (77) gives Sp=Brη, thus
where the second equality uses L0(0)=ℓ(0)⊤ and ℓ(0)⊤S0=0 under the considered case. Let η~=∑m=0∞Cmp−1:0η∈1⊥. Lemma 4.1 implies that (I−Cp−1:0)η~=η, and thus (I−A(0))(0⊤,η~⊤)⊤=(0⊤,η~⊤(I−Cp−1:0)⊤)⊤=S0. Consequently, (95) and the arbitrariness of η imply (ℓ′(0)⊤−L0′(0))(0⊤,η⊤)⊤=0 for all η∈1⊥. Hence, for all η∈Rn,
With Lemma 8.2, the first component reduces to a scalar auto-regression. Set cr(α):=a⊤Mr−1:0(α)z(α)=1+O(α) and z0=ℓ(α)⊤S0=(1+O(α))x0. Expanding (82) gives
(100) as α→0 and αN→∞, where we use 1−γ2=2Lphα+O(α2), ∑r<pcr2=p+O(α), and ∑t<p∥ℓ⊤Bt∥2=pqα2+O(α3), and γ2K≤e−LhαN for small positive α.
For the second component, define P=ℓ⊤ and F=A−γP on E. Since FP=PF=0, projection of (77) gives
Vkp=FkV0+j<k∑r<p∑Fk−1−j(I−P)Brεjp+r.(101)
The following lemma uniformly controls this component.
Lemma 8.3. There exist constants CF>0 and 0<θ<1 such that, for all sufficiently small ∣α∣ and all j≥0,
Fj≤CFθj,andF(α)j−F(0)j≤CFθj∣α∣.(102)
Proof. By (80), F(0) is exponentially stable on E. Choose θ0∈(r⋆p,1) and m so that ∥F(0)m∥≤θ0m/2. Since F(α) is analytic, continuity gives, for sufficiently small ∣α∣, ∥F(α)m∥≤θ0m. Writing j=km+r with 0≤r<m and bounding the finitely many remainders yields ∥F(α)j∥≤C1θ0j. The telescoping identity
F(α)j−F(0)j=i=0∑j−1F(α)j−1−i[F(α)−F(0)]F(0)i
and F(α)−F(0)=O(α) therefore give ∥F(α)j−F(0)j∥≤C2∣α∣jθ0j. Choosing any θ∈(θ0,1) and using jθ0j≤C3θj proves both estimates.
We now bound the second term in (81). Following (101), we have
The data are generated with xgen∼N(0,Id), aℓ∼N(0,Id), and yℓ∈{−1,+1} satisfying Pr(yℓ=1∣aℓ)=sigmoid(aℓ⊤xgen). We set d=10 and ρ=0.01. Each worker independently draws a with-replacement minibatch of size 32 per round.
Physical and effective worker counts We use three period-two network families with
neff=1+κnn,κ∈{1/4,1/16,1/64},
and a static family with neff=n. The effective counts of the periodic families approach 4, 16, and 64 as n grows. All four families have h=1; their matrices are given in Appendix B. We fix T=32000 and vary n∈{2,4,8,16,32,64,128}. A fixed data set of 3840 samples is partitioned equally among the workers for each n, so the global empirical objective remains the same. All runs start from x0=0.
For each network and worker count, we select a constant stepsize from a common search grid using the mean AT over six trajectories. We then evaluate the selected stepsize on 12 independent trajectories. The full gradient at xˉt is evaluated at every iteration to compute AT. The search grid and refinement rule are given in Appendix B.
(a) Physical budget
(b) Effective budget
neff→4neff→16neff→64 Static: neff=n
Figure 1: Mean stationarity error on (108) at T=32000, plotted against (a) nT and (b) neffT. The 28 settings comprise four network families and n∈{2,4,8,16,32,64,128}. Each point averages 12 evaluation trajectories after stepsize selection on six separate trajectories. The dashed line fits C/neffT with one common C.
In Figure 1(a), the static error continues to decrease as n grows, while the periodic curves flatten at different worker counts. Using neffT in panel (b) brings the four families close to a common curve. The fixed-slope models C/neffT and C/nT, each with one fitted coefficient, have log-RMSE 0.0492 and 0.4979, respectively. A log-log regression on neffT gives slope -0.4848.
9.2 Logistic regression with a fixed stepsize
We consider the logistic objective in (108), with d=10, ρ=0.01, 3840 samples, and minibatches of size 32. For each n∈{4,6,8,10,12,16}, we use three period-four networks with low, intermediate, and high effective counts, together with the ideal static network R=C=11⊤/n. The network selection procedure is given in Appendix B. We use the fixed stepsize α=1/(20h), with h defined in (1), so that αh=1/20 across networks. With this choice, the term 4Lqασ2/h in (70) equals Lσ2/(5neff). Fig. 2 shows squared-gradient-norm curves over the first 5000 steps for all 24 distributed configurations and a single-node baseline. Networks with the same physical worker count have different noise levels: larger neff gives lower noise, while some networks with neff<1 perform worse than the single-node baseline. A log-log regression of the final-quarter mean squared gradient norm on neff gives a slope of −0.977 and a log-RMSE of 0.0316, consistent with 1/neff scaling.
(a) physical workers n = 4
(b) physical workers n = 6
(d) physical workers n = 10
(c) physical workers n = 8
(e) physical workers n = 12
(f) physical workers n = 16
tail fit: G∝neff−0.98; neff model has 26.3× lower log-RMSE than physical n
Figure 2: Squared gradient norm curves for solving (108). Each panel fixes the physical count n and plots the mean squared full-gradient norm at the arithmetic-average iterate over 12 trajectories.
9.3 Quadratic objective from Theorem 3.1
We compare the period-two networks in (14) with the static networks Rt=Ct=C on the quadratic problem of Theorem 3.1. We use n∈{8,128,512}, corresponding to s∈{2,8,16}, and T∈{210,211,…,222}. For each network and each (n,T), we evaluate An,T(α) from exact second moments and optimize the constant stepsize numerically as described in Appendix B. Figure 3(a) shows that increasing n reduces the error on static networks, while the period-two curves remain close. At T=216, Figure 3(b) shows that the static minima move to larger stepsizes and lower errors as n increases, while the period-two minima remain nearly unchanged.
(a) Convergence
(b) Stepsize dependence ( T=216)
Figure 3: Quadratic comparison on the networks in (14) and their static counterparts Rt=Ct=C, with n∈{8,128,512}. (a) Error versus horizon, with the constant stepsize optimized numerically for each network and each (n,T). (b) Error versus stepsize at T=216; markers indicate the numerically selected minima.
10 Discussion
We showed that stochastic Push-Pull need not achieve the usual linear speedup on time-varying networks. Matching upper and lower convergence bounds instead identify neff as its speedup factor, a metric that characterizes periodic networks. The experiments agree with these theoretical findings.
Limitations of this work include that we focus on periodic networks, and the lower bound applies to Push-Pull with constant stepsizes. Extensions to non-periodic networks, adaptive stepsizes or broader algorithm classes are natural future directions. Whether neff characterizes the optimal complexity of time-varying decentralized optimization with row- and column-stochastic mixing matrices, or more advanced algorithms can achieve better convergence, is another open question.
A Upper bound for the counterexample
We prove the upper bound in Theorem 3.1, using the notation of its proof. Throughout this appendix, 0<α≤1/16. Put Π=I−J and δt=ΠXt. The identity ΠRt=(C/2)Π and (15) give
In both cases, Nμ is nonnegative, its diagonal entries are less than one, and det(I−Nμ)>0. The two-dimensional characteristic equation therefore gives ρ(Nμ)<1. Summing the matrix geometric series, we obtain
Empty sums are understood to be zero. The sequences εˉt, ηj,t for j≥2, and η1,t are pairwise uncorrelated at every pair of times. Their variances are 1/n, 1, and 1, respectively. Therefore,
For T≥256, the choice α=1/(4T) satisfies α≤1/16. Thus
An,T(4T1)≤(2−α)T8≤31T128<T5,
which proves the upper bound in Theorem 3.1.
B Additional numerical details
Network families for Figure 1 Let u=1/n, J=1u⊤, and B=(I+3S)/8, where S exchanges coordinates one and two. For κ∈{0,1/64,1/16,1/4}, set aκ=9κ/(162) and define, for r=0,1,
Rr=B+(1/2−aκ)J+aκ1er+1⊤,Cr=B+J/2.(114)
These matrices are positive, with Rr row stochastic and Cr doubly stochastic. Substitution into (30) gives
We also compute the phase weights from (33) and (34). When κ=0, the network is static with Rr=Cr=B+J/2.
Stepsize selection for Figure 1 The initial grid contains 25 logarithmically spaced stepsizes in [10−4,1]. For each network and worker count, we identify the grid point with the smallest mean AT over six trajectories. We add the geometric midpoints between each selected point and its two neighbors, and evaluate the union of these added stepsizes on every network. The final stepsize minimizes the mean over the 33-point refined grid. The 12 evaluation trajectories use separate oracle seeds. All tuning and evaluation runs compute the full gradient at every iteration.
Network selection for Figure 2 For each n∈{4,6,8,10,12,16}, we generate period-four candidate networks using the following pairs of Gamma concentration and positive floor:
Independent Gamma entries are normalized by rows for Rr and by columns for Cr. We retain candidates with one-period SLEM (second-largest eigenvalue modulus) at most 0.4 and h∈[0.8,1.2]. Among these candidates, we select the networks whose neff values are closest to the low, intermediate, and high targets.
Period-two comparison For Figure 3, we use the matrices in (14) with n∈{8,128,512}, with the first pair corresponding to (0,0)∈Zs2. Write m=n/2 and set S=3Im/4+P/4, with P as in the proof of Theorem 3.1. Let Svj=μjvj, j=1,…,m, be an orthonormal eigendecomposition of S, with μ1=1 and v1=1m/m. For j≥2, the eigenvector vj⊗12/2 of C enters the average update with coefficient (vj)1/(22). Set ωj=(vj)12/8 and k=1−α. Define
The first two coordinates are the model and tracker coordinates, and the third records their filtered contribution to the average. The signed coordinate xt− from (16) gives the matrix A−. Starting from zero covariance matrices, compute
The variance of the direct average-noise response satisfies νt+1=k2νt+α2/n, with ν0=0. Orthogonality of the noise coordinates gives, with e3=(0,0,1)⊤,
We augment each covariance recursion with a constant coordinate and its accumulated output, and evaluate the resulting matrix powers by repeated squaring. For the static comparison, the scalar recursion xˉt+1=kxˉt−αu⊤εt gives
An,Tstat(α)=T1t=0∑T−1[k2t+nα2j=0∑t−1k2j],
where the inner sum is zero for t = 0.
For each network and each (n,T), the search grid combines 401 logarithmically spaced stepsizes in [10−10,2] and 121 linearly spaced stepsizes in [0.2,2]. Each local minimum on the grid is refined by bounded scalar minimization in logα between its two neighboring grid points, with absolute tolerance 10−10. We select the smallest error among the refined candidates, the grid endpoints, and the value at α=0. For α≥2, the deterministic mean kt gives An,T(α)≥1.
References
[1] S. A. ALGHUNAIM, Stochastic gradient tracking over time-varying networks: One-step Lyapunov analysis, arXiv preprint arXiv:2608.16271, (2026).
[2] S. A. ALGHUNAIM AND K. YUAN, A unified and refined convergence analysis for non-convex decentralized learning, IEEE Transactions on Signal Processing, 70 (2022), pp. 3264–3279.
[3] S. A. ALGHUNAIM AND K. YUAN, An enhanced gradient-tracking bound for distributed online stochastic convex optimization, Signal Processing, 217 (2024), p. 109345.
[4] M. ASSRAN, N. LOIZOU, N. BALLAS, AND M. RABBAT, Stochastic gradient push for distributed deep learning, in International Conference on Machine Learning, PMLR, 2019, pp. 344–353.
[5] Y. CHEN, A. HASHEMI, AND H. VIKALO, Accelerated distributed stochastic nonconvex optimization over time-varying directed networks, IEEE Transactions on Automatic Control, 70 (2025), pp. 2196–2211.
[6] S. GHADIMI AND G. LAN, Stochastic first- and zeroth-order methods for nonconvex stochastic programming, SIAM Journal on Optimization, 23 (2013), pp. 2341–2368.
[7] A. GREENBAUM, R.-C. LI, AND M. L. OVERTON, First-order perturbation theory for eigenvalues and eigenvectors, SIAM Review, 62 (2020), pp. 463–482.
[8] S. HOORY, N. LINIAL, AND A. WIGDERSON, Expander graphs and their applications, Bulletin of the American Mathematical Society, 43 (2006), pp. 439–561.
[9] X. HUANG AND K. YUAN, Optimal complexity in non-convex decentralized learning over time-varying networks, arXiv preprint arXiv:2211.00533, (2022).
[10] A. KOLOSKOVA, T. LIN, AND S. U. STICH, An improved analysis of gradient tracking for decentralized machine learning, Advances in Neural Information Processing Systems, 34 (2021), pp. 11422–11435.
[11] A. KOLOSKOVA, N. LOIZOU, S. BOREIRI, M. JAGGI, AND S. STICH, A unified theory of decentralized SGD with changing topology and local updates, in International Conference on Machine Learning, PMLR, 2020, pp. 5381–5393.
[12] X. LIAN, C. ZHANG, H. ZHANG, C.-J. HSIEH, W. ZHANG, AND J. LIU, Can decentralized algorithms outperform centralized algorithms? A case study for decentralized parallel stochastic gradient descent, Advances in Neural Information Processing Systems, 30 (2017), pp. 5330–5340.
[13] L. LIANG, X. HUANG, R. XIN, AND K. YUAN, Understanding the influence of digraphs on decentralized optimization: Effective metrics, lower bound, and optimal algorithm, SIAM Journal on Optimization, 35 (2025), pp. 1570–1600.
[14] L. LIANG, G. LUO, AND K. YUAN, On the linear speedup of the push-pull method for decentralized optimization over digraphs, arXiv preprint arXiv:2506.18075, (2025).
[15] Y. LU AND C. DE SA, Optimal complexity in decentralized training, in International Conference on Machine Learning, PMLR, 2021, pp. 7111–7123.
[16] A. NEDIĆ, D. T. A. NGUYEN, AND D. T. NGUYEN, AB/Push-Pull method for distributed optimization in time-varying directed networks, Optimization Methods and Software, 40 (2025), pp. 1044–1071.
[17] A. NEDIĆ AND A. OLSHEVSKY, Stochastic gradient-push for strongly convex functions on time-varying directed graphs, IEEE Transactions on Automatic Control, 61 (2016), pp. 3936–3947.
[18] A. NEDIĆ, A. OLSHEVSKY, AND W. SHI, Achieving geometric convergence for distributed optimization over time-varying graphs, SIAM Journal on Optimization, 27 (2017), pp. 2597–2633.
[19] D. T. A. NGUYEN, D. T. NGUYEN, AND A. NEDIĆ, Distributed stochastic optimization with gradient tracking over time-varying directed networks, in 2023 57th Asilomar Conference on Signals, Systems, and Computers, IEEE, 2023, pp. 1605–1609.
[20] E. D. H. NGUYEN, X. JIANG, B. YING, AND C. A. URIBE, On graphs with finite-time consensus and their use in gradient tracking, SIAM Journal on Optimization, 35 (2025), pp. 872–898.
[21] S. PU, W. SHI, J. XU, AND A. NEDIĆ, Push-pull gradient methods for distributed optimization in networks, IEEE Transactions on Automatic Control, 66 (2021), pp. 1–16.
[22] F. SAADATNIAKI, R. XIN, AND U. A. KHAN, Decentralized optimization over time-varying directed graphs with row and column-stochastic matrices, IEEE Transactions on Automatic Control, 65 (2020), pp. 4769–4780.
[23] G. SCUTARI AND Y. SUN, Distributed nonconvex constrained optimization over time-varying digraphs, Mathematical Programming, 176 (2019), pp. 497–544.
[24] T. VOGELS, H. HENDRIKX, AND M. JAGGI, Beyond spectral gap: The role of the topology in decentralized learning, Journal of Machine Learning Research, 24 (2023), pp. 1–31.
[25] R. XIN AND U. A. KHAN, A linear algorithm for optimization over directed graphs with geometric convergence, IEEE Control Systems Letters, 2 (2018), pp. 315–320.
[26] R. XIN, U. A. KHAN, AND S. KAR, An improved convergence analysis for decentralized online stochastic non-convex optimization, IEEE Transactions on Signal Processing, 69 (2021), pp. 1842–1858.
[27] R. YOU AND S. PU, Stochastic push-pull for decentralized nonconvex optimization, IEEE Transactions on Signal Processing, 74 (2026), pp. 1383–1398.