Introduction
The modern generative AI landscape is largely dominated by transformer architecture ([1 ] ), with the majority of the state-of-the-art large language models (LLMs) employing them ([2 , 3 , 4 , 5 ] ). Despite this widespread success, transformers face critical limitations in certain scenarios, often driven by the core efficiency bottleneck of their self-attention mechanism, scaling quadratically as O ( L 2 ) O(L^2) O ( L 2 ) with sequence length L L L in both time and memory complexity ([6 ] ). To address this inefficiency, a variety of alternative mechanisms and architectures have been proposed, including sparse attention ([7 , 8 ] ), linear attention approximations ([9 , 10 ] ), and modernized recurrent frameworks ([11 ] ). Among these innovations, state space models (SSMs) ([12 ] ) have emerged as one of the most promising new paradigms. These modern SSMs, such as Mamba ([13 ] ), overcome the quadratic bottleneck by operating with a strictly linear-time complexity, O ( L ) O(L) O ( L ) , during training, and a constant-sized latent state, O ( 1 ) O(1) O ( 1 ) .
Driven by these computational advantages, the SSM architecture has undergone rapid development, achieving competitive performance at a reduced computational cost compared to transformers. Architectural innovations, such as the Structured State Space (S4) sequence model, HiPPO initialization ([12 ] ), and selective mechanisms ([13 ] ) have enabled SSMs to dynamically filter information and capture and retain long-range dependencies. Most recently, SSMs have demonstrated capacity for achieving state-of-the-art language modeling performance at scale ([14 , 15 , 16 , 17 ] ).
Research Gap. Despite these advancements, the deployment of SSMs in distributed learning environments, where training is conducted across a set of agents, remains largely unexplored. While some studies have considered the intersection of SSMs with federated learning (FL) [18 ] , most of these frameworks are architecture-agnostic . Conversely, existing SSM-specific distributed learning studies either focus on classical, non-selective SSM settings [19 ] , or use SSMs for specialized personalized-FL applications [20 ] , leaving the convergence behavior of modern selective SSMs largely uncharacterized. Developing a foundational understanding of selective SSM convergence behavior in distributed settings can enable architecture-aware parameter tuning, protocol selection, and other control tasks for training performance optimization, uncovering another advantage of SSMs over transformer LLM approaches that rely on architecture-agnostic optimization tools [21 , 22 ] . We thus pose the following question:
How can we leverage the structural properties of modern selective SSMs to derive architecture-aware convergence bounds that rigorously characterize training behavior in terms of core state space parameters for distributed and federated learning techniques?
Contributions. In answering this question, our main contributions are summarized as follows:
Convergence analysis for distributed selective SSMs: We provide an architecture-aware gradient norm bound for selective SSMs, revealing the impact of SSM parameters like core state-space parameter blocks. Then, we use this bound to establish the convergence rate of popular FL algorithms training selective SSMs, showing dependence on standard distributed learning factors like smoothness as well as architecture-specific parameters like block-wise spectral-norm envelopes. To the best of our knowledge, our work is the first to provide an architecture-aware convergence rate of FL algorithms for selective SSMs.
SSM theory validation and theory-motivated algorithm comparison: We validate our theoretical results using teacher-model derived sequences and single-layer selective SSMs, observing no gradient-bound violations, increased client disagreement as ρ \rho ρ approaches one, and increased drift with more local steps. We use the theoretical takeaways to rank federated algorithms on heterogeneous-domain datasets. Our results show that these rankings highly correlate with validation performance, supporting the practical relevance of the SSM-specific quantities identified by our analysis.
Related Work
State Space Models (SSMs). SSMs originate from classical control theory concepts, where they model dynamic systems through the evolution of latent states over time [23 ] . The modern SSMs were introduced with the pivotal Structured State Space (S4) [12 ] and its variants [24 , 25 , 26 ] , and leverage structured parameterizations to efficiently capture long-range dependencies. Selective SSMs introduced input-dependent state-space parameters to dynamically filter information [13 ] while the Structured State Space Duality (SSD) established connections with linear attention and enabled efficient implementations [27 ] , enabling better expressivity, training stability, and hardware-aware optimizations [28 , 29 , 14 ] . These advances have driven growing adoption across language modeling [30 , 16 , 31 , 32 , 33 ] , computer vision [34 , 35 , 36 ] , and other sequence modeling applications [37 ] .
Distributed Learning with SSMs. Distributed learning enables model training across computational nodes, with federated learning (FL) addressing settings where data remain distributed among clients. Since the introduction of a foundational federated learning algorithm - FedAvg [18 ] - numerous methods have been proposed to address statistical heterogeneity, communication costs, and client drift [38 ] (Karimireddy et al. 2020; Wang et al. 2020; Reddi et al. 2021; Acar et al. 2021; Li et al. 2021). However, despite the growing adoption of SSMs, theoretical understanding of their behavior in these settings remains limited. The existing SSM-related approaches address specific challenges: FedAlign [19 ] tackles the problem of models converging to different parameter basins in federated system identification, while FedSSM [20 ] uses SSMs as a meta-learning tool within personalized FL. Related works also explore merging operations on hidden states, contexts, or representations (Liu et al., 2025; Pioro et al., 2024), rather than weight-space aggregation of independently trained selective SSMs. As a result, there remains an open question of how selective SSM dynamics affect optimization and aggregation guarantees in distributed learning settings. This motivates our study of connecting the architectural properties of selective SSMs to their behavior in distributed training.
System Model
State Space Model. We consider a decentralized learning environment operating over a global selective state space model (SSM) parameterized by W = ( W B , W C , W Δ , A ) W = (W_B, W_C, W_{\Delta}, A) W = ( W B , W C , W Δ , A ) where W Δ ∈ R D × D W_{\Delta} \in\mathbb{R}^{D \times D} W Δ ∈ R D × D , W B ∈ R N × D W_B \in\mathbb{R}^{N \times D} W B ∈ R N × D , W C ∈ R N × D W_C \in\mathbb{R}^{N \times D} W C ∈ R N × D , and A ∈ R N × 1 A \in\mathbb{R}^{N \times1} A ∈ R N × 1 , with A A A representing diagonal entries of a structured matrix A = diag ( A ) \mathcal{A} = \operatorname{diag}(A) A = diag ( A ) . The SSM architecture is inspired by classical control theory concepts, in particular modeling dynamic systems through the evolution of latent states over time. These systems map a continuous input signal x ( t ) ∈ R x(t) \in\mathbb{R} x ( t ) ∈ R to an output sequence y ( t ) ∈ R y(t) \in\mathbb{R} y ( t ) ∈ R through an evolving, compressed latent state h ( t ) ∈ R N h(t) \in\mathbb{R}^{N} h ( t ) ∈ R N using linear time-invariant (LTI) differential equations:
h ′ ( t ) = A h ( t ) + B x ( t ) y ( t ) = C h ( t ) (1) \begin{aligned}
h'(t) &= Ah(t) + Bx(t) \\
y(t) &= Ch(t) \tag*{(1)}
\end{aligned} h ′ ( t ) y ( t ) = A h ( t ) + B x ( t ) = C h ( t ) (1)
However, since neural networks process discrete sequences, these continuous-time SSM dynamics are mapped to a discrete recurrence using a discretization rule. Under this discrete formulation, the model maps an input sequence x = ( x 1 , … , x S ) x = (x_1, \ldots, x_S) x = ( x 1 , … , x S ) where x t ∈ R D × 1 x_t \in\mathbb{R}^{D \times1} x t ∈ R D × 1 to a sequence of outputs y t ∈ R D × 1 y_t \in\mathbb{R}^{D \times1} y t ∈ R D × 1 through a sequence of compressed latent states h t ∈ R N × D h_t \in\mathbb{R}^{N \times D} h t ∈ R N × D . While earlier foundational models utilized various discretization rules [12 ] , we adopt the first-order exponential-Euler discretization used in the more recent architectures [14 ] . This discretization scheme retains the exponential state transition while applying a first-order approximation to the input contribution. We analyze the discrete model defined by this recurrence.
In addition to this discrete foundation, modern SSMs introduce a selective mechanism that enables dynamic filtering of relevant information across the input sequence context. The selective SSMs achieve this by making the state-space and time-scale parameters depend on the current input. Specifically, given the model weights W W W , the input-dependent SSM quantities corresponding to an input token x t x_t x t at the sequence position t t t are defined as:
Time-scale parameter: Δ t = Softplus ( W Δ x t ) \Delta_t = \operatorname{Softplus}(W_{\Delta}x_t) Δ t = Softplus ( W Δ x t ) , where Δ t ∈ R D × 1 \Delta_t \in\mathbb{R}^{D \times1} Δ t ∈ R D × 1 , acts as a gating mechanism, controlling the discretization step size to determine importance of the current token.
State transition matrix: A ˉ t = exp ( A Δ t ⊤ ) \bar{A}_t = \exp(A\Delta_t^{\top}) A ˉ t = exp ( A Δ t ⊤ ) , where A ˉ t ∈ R N × D \bar{A}_t \in\mathbb{R}^{N \times D} A ˉ t ∈ R N × D , determines the retention and decay of the historical context, managing the system’s memory across the sequence.
Input matrix: B ˉ t : = B t Δ t ⊤ = ( W B x t ) ( Softplus ( W Δ x t ) ) ⊤ \bar{B}_t := B_t\Delta_t^{\top} = (W_Bx_t)(\operatorname{Softplus}(W_{\Delta}x_t))^{\top} B ˉ t := B t Δ t ⊤ = ( W B x t ) ( Softplus ( W Δ x t ) ) ⊤ , where B ˉ t ∈ R N × D \bar{B}_t \in\mathbb{R}^{N \times D} B ˉ t ∈ R N × D , and B t : = W B x t B_t := W_Bx_t B t := W B x t . Under the adopted exponential-Euler discretization, this matrix modulates how strongly the current input vector influences the newly updated latent state.
Output matrix: C t = W C x t C_t = W_Cx_t C t = W C x t , where C t ∈ R N × 1 C_t \in\mathbb{R}^{N \times1} C t ∈ R N × 1 , linearly projects the compressed latent state back into the target output space.
Given these dynamically generated matrices, the discrete hidden state sequence h t h_t h t and the corresponding output y t y_t y t at each sequence step are computed according to the following recurrence:
h t = A ˉ t ⊙ h t − 1 + B ˉ t diag ( x t ) (2) h_t = \bar{A}_t \odot h_{t-1} + \bar{B}_t\operatorname{diag}(x_t) \tag*{(2)} h t = A ˉ t ⊙ h t − 1 + B ˉ t diag ( x t ) (2)
y t = h t T C t (3) y_t = h_t^{\mathsf{T}}C_t \tag*{(3)} y t = h t T C t (3)
where h 0 = 0 N × D h_0 = \mathbf{0}_{N \times D} h 0 = 0 N × D , the exponential and Softplus functions are applied element-wise, and ⊙ \odot ⊙ denotes the Hadamard product.
With the architecture specified above, we next define the local optimization objective. Let ξ = ( x , y ∗ ) \xi= (x, y^*) ξ = ( x , y ∗ ) denote an input-target sequence pair, where x = ( x 1 , … , x S ) x = (x_1,\ldots,x_S) x = ( x 1 , … , x S ) is the input sequence and y ∗ = ( y 1 ∗ , … , y S ∗ ) y^* = (y_1^*,\ldots,y_S^*) y ∗ = ( y 1 ∗ , … , y S ∗ ) is the corresponding target sequence. The sequence loss is then the average token loss, defined as:
L S ( W ; ξ ) : = 1 S ∑ t = 1 S ℓ t ( y t ( W ; x ) , y t ∗ ) (4) \mathcal{L}^{S}(W;\xi) := \frac{1}{S}\sum_{t=1}^{S}\ell_t(y_t(W;x),y_t^*) \tag*{(4)} L S ( W ; ξ ) := S 1 t = 1 ∑ S ℓ t ( y t ( W ; x ) , y t ∗ ) (4)
where y t ( W ; x ) y_t(W;x) y t ( W ; x ) is the model prediction at position t t t parameterized by W W W , and ℓ t \ell_t ℓ t is some differentiable loss function. When the sample ξ \xi ξ is fixed, we write L S ( W ) \mathcal{L}^{S}(W) L S ( W ) and ℓ t ( y t ) \ell_t(y_t) ℓ t ( y t ) for notational simplicity. Figure 1 a illustrates the resulting architecture, the parameter transformations, and state recurrence.
Figure 1. (a) A selective SSM layer generates input-dependent discretization parameters from x t x_t x t and uses them to update the hidden state h t h_t h t and output y t y_t y t . (b) Federated SSM training proceeds over communication rounds: the server broadcasts W r W^r W r , clients perform E E E local updates on local datasets D k \mathcal{D}_k D k , and the resulting models are aggregated into W r + 1 W^{r+1} W r + 1 .
Distributed Optimization Environment. Given the selective SSM setup established above, we consider the deployment of this architecture in a decentralized learning setting. In this framework, a central server initializes a global selective SSM model parameterized by weights W 0 W^0 W 0 , which is collaboratively trained across a network of K K K clients. Each client k ∈ { 1 , … , K } k \in\{1,\ldots,K\} k ∈ { 1 , … , K } possesses a local dataset D k = { ξ k , i ∼ P k } i = 1 ∣ D k ∣ \mathcal{D}_k = \{\xi_{k,i} \sim\mathcal{P}_k\}_{i=1}^{|\mathcal{D}_k|} D k = { ξ k , i ∼ P k } i = 1 ∣ D k ∣ , where P k \mathcal{P}_k P k denotes the local data distribution of client k k k and each sample ξ k , i = ( x k , i , y k , i ∗ ) \xi_{k,i} = (x_{k,i},y_{k,i}^*) ξ k , i = ( x k , i , y k , i ∗ ) represents a discrete input sequence and its corresponding target sequence. For autoregressive next-token prediction, the target at each sequence position satisfies y t ∗ = x t + 1 y_t^* = x_{t+1} y t ∗ = x t + 1 .
Given this setup, the framework aims to construct a global model that incorporates the combined knowledge of these diverse local distributions. Formally, the global objective is to find the optimal global model parameters W ∗ W^* W ∗ that minimize the aggregated expected sequence modeling loss:
W ∗ = arg min W f ( W ) , where f ( W ) = ∑ k = 1 K p k L k ( W ) (5) W^* = \arg\min_W f(W), \quad\text{where} \quad f(W) = \sum_{k=1}^{K} p_k\mathcal{L}_k(W) \tag*{(5)} W ∗ = arg W min f ( W ) , where f ( W ) = k = 1 ∑ K p k L k ( W ) (5)
where p k p_k p k are positive weights satisfying ∑ k = 1 K p k = 1 \sum_{k=1}^{K}p_k = 1 ∑ k = 1 K p k = 1 , and L k ( W ) = E ξ ∼ P k [ L S ( W ; ξ ) ] \mathcal{L}_k(W) = \mathbb{E}_{\xi\sim\mathcal{P}_k}[\mathcal{L}^{S}(W;\xi)] L k ( W ) = E ξ ∼ P k [ L S ( W ; ξ )] is the expected sequence loss for client k k k over its local distribution.
To solve this optimization problem, the framework employs a decentralized training procedure initialized with the global model W 0 W^0 W 0 . The optimization then proceeds over discrete communication rounds r ∈ T : = { 0 , 1 , … , T − 1 } r \in\mathcal{T} := \{0,1,\ldots,T-1\} r ∈ T := { 0 , 1 , … , T − 1 } . At each round r r r , the server shares the current global parameters W r W^r W r with the participating clients. Each client k k k initializes its local model as W k r , 0 = W r W_k^{r,0} = W^r W k r , 0 = W r and performs E E E local steps of stochastic gradient descent (SGD) with step size η \eta η to minimize a local objective F k ( W ) F_k(W) F k ( W ) . The specific formulation of F k ( W ) F_k(W) F k ( W ) depends on the distributed learning algorithm employed. For instance, in the classical FedAvg algorithm [18 ] , the local objective of client k k k is the expected sequence loss, i.e., F k ( W ) : = L k ( W ) F_k(W) := \mathcal{L}_k(W) F k ( W ) := L k ( W ) . In contrast, FedProx [38 ] modifies the local objective as F k r ( W ) : = L k ( W ) + μ 2 ∥ W − W r ∥ F 2 F_k^r(W) := \mathcal{L}_k(W) + \frac{\mu}{2}\lVert W-W^r\rVert_F^2 F k r ( W ) := L k ( W ) + 2 μ ∥ W − W r ∥ F 2 , with μ > 0 \mu> 0 μ > 0 , to mitigate local divergence caused by data heterogeneity.
Through this local optimization step, the features of different distributions P k \mathcal{P}_k P k are implicitly embedded into the updated local weights, resulting in a set of specialized models W k r , E W_k^{r,E} W k r , E . Following the completion of the E E E local training steps, the server combines these localized models into a unified global representation using a generalized aggregation function: W r + 1 = Aggregate ( { W k r , E } k = 1 K ; W r ) W^{r+1} = \operatorname{Aggregate}\left(\{W_k^{r,E}\}_{k=1}^{K};W^r\right) W r + 1 = Aggregate ( { W k r , E } k = 1 K ; W r ) . In standard distributed baselines such as FedAvg and FedProx, this aggregation is implemented as a simple data-weighted linear average: W r + 1 = ∑ k = 1 K ∣ D k ∣ ∑ j = 1 K ∣ D j ∣ W k r , E W^{r+1} = \sum_{k=1}^{K}\frac{|\mathcal{D}_k|}{\sum_{j=1}^{K}|\mathcal{D}_j|}W_k^{r,E} W r + 1 = ∑ k = 1 K ∑ j = 1 K ∣ D j ∣ ∣ D k ∣ W k r , E . By repeating this process over T T T communication rounds, the framework iteratively refines the global model toward an optimal parameter set W ∗ W^* W ∗ by aggregating information learned across the participating clients. Figure 1 b illustrates this iterative training process.
Theoretical Analysis
Given this decentralized SSM setup, we consider distributed training procedures that update a global model through repeated local adaptation and server-side aggregation. These procedures induce a global optimization trajectory { W r } r = 0 T \{W^r\}_{r=0}^{T} { W r } r = 0 T over the objective defined in (5) . Since f f f is generally nonconvex, we characterize convergence through the standard expected gradient stationarity criterion
1 T ∑ r = 0 T − 1 E ∥ ∇ f ( W r ) ∥ F 2 \frac{1}{T}\sum_{r=0}^{T-1}\mathbb{E}\left\|\nabla f(W^r)\right\|_{F}^{2} T 1 r = 0 ∑ T − 1 E ∥ ∇ f ( W r ) ∥ F 2
The central problem is to derive convergence bounds that explicitly capture the structure of selective SSMs, rather than relying solely on architecture-agnostic smoothness, variance, and heterogeneity constants. In particular, the recurrent state update induce dependencies between the local optimization trajectory and SSM-specific quantities including the stability of the discretized transition matrices, the input-dependent time scale parameter Δ t = Softplus ( W Δ x t ) \Delta_t = \operatorname{Softplus}(W_{\Delta}x_t) Δ t = Softplus ( W Δ x t ) , and the norms of the state-space projection parameters. Our convergence analysis characterizes how these SSM-specific quantities control gradient growth, client drift, and aggregation error.
As such, in the remainder of this section, we establish theoretical guarantees for federated training of selective SSMs. We first derive an explicit gradient norm bound for a single-layer selective SSM and use it to characterize federated optimization in terms of SSM-specific parameters. We provide convergence guarantees for FedAvg and FedProx, and relate additional federated baselines to the resulting stability, parameter-sensitivity, and distribution-shift quantities. The main text highlights the key results and their implications, while full proofs, supplementary corollaries, and additional baseline analyses are provided in Appendices A, B, C, D, E.
Gradient Norm Bound for Selective SSMs
The main technical challenge lies in controlling the parameter sensitivity induced by the input-dependent SSM recurrence. The loss gradient depends on the model parameters both directly through the output projection and indirectly through their influence on the recurrent hidden states. By bounding these two contributions separately and subsequently combining them, we derive a sequence-wise gradient bound that is independent of the sequence length.
We first introduce the notation used in our analysis. An input-target pair ξ \xi ξ is admissible if ξ ∈ Z \xi\in\mathcal{Z} ξ ∈ Z , where Z \mathcal{Z} Z is a fixed, parameter-independent measurable set of input-target sequences satisfying Pr ξ ∼ P k ( ξ ∈ Z ) = 1 \operatorname{Pr}_{\xi\sim\mathcal{P}_k}(\xi\in\mathcal{Z}) = 1 Pr ξ ∼ P k ( ξ ∈ Z ) = 1 for all clients k k k . All conditions below hold uniformly for admissible sequences, finite lengths S ≥ 1 S \ge1 S ≥ 1 , and tokens d ≤ S d \le S d ≤ S , with finite constants independent of S S S , ξ \xi ξ , and t t t . Next, we state the necessary definitions and assumptions on the loss and the input sequence.
Definition 4.1 (SSM Stability). For γ , δ > 0 \gamma,\delta> 0 γ , δ > 0 , define S γ , δ \mathcal{S}_{\gamma,\delta} S γ , δ as the set of parameter tuples W W W satisfying A n ≤ − γ A_n \le-\gamma A n ≤ − γ for every n ∈ { 1 , … , N } n \in\{1,\ldots,N\} n ∈ { 1 , … , N } , where A n A_n A n is the n n n -th element of the transition parameter A A A , and [ Softplus ( W Δ x t ) ] d ≥ δ [\operatorname{Softplus}(W_{\Delta}x_t)]_d \ge\delta [ Softplus ( W Δ x t ) ] d ≥ δ for every feature coordinate d ∈ { 1 , … , D } d \in\{1,\ldots,D\} d ∈ { 1 , … , D } and admissible input token. Consequently, every entry of A ˉ t \bar{A}_t A ˉ t satisfies: ( A ˉ t ) n , d ≤ ρ : = exp ( − γ δ ) < 1 (\bar{A}_t)_{n,d} \le\rho:= \exp(-\gamma\delta) < 1 ( A ˉ t ) n , d ≤ ρ := exp ( − γ δ ) < 1 .
Assumption 4.2 (Output loss regularity). The token loss ℓ t ( y , y t ∗ ) \ell_t(y,y_t^*) ℓ t ( y , y t ∗ ) is twice continuously differentiable with respect to its prediction argument. For the parameter tuple W W W under consideration, there exist finite constants L ℓ , H ℓ > 0 L_{\ell}, H_{\ell} > 0 L ℓ , H ℓ > 0 such that, for every admissible ξ \xi ξ , the prediction y = y t ( W ; x ) y = y_t(W;x) y = y t ( W ; x ) satisfies
∥ ∇ y ℓ t ( y , y t ∗ ) ∥ 2 ≤ L ℓ , ∥ ∇ y 2 ℓ t ( y , y t ∗ ) ∥ o p ≤ H ℓ . (6) \left\|\nabla_y \ell_t(y,y_t^*)\right\|_2 \le L_{\ell}, \qquad\left\|\nabla_y^2\ell_t(y,y_t^*)\right\|_{\mathrm{op}} \le H_{\ell}. \tag*{(6)} ∥ ∇ y ℓ t ( y , y t ∗ ) ∥ 2 ≤ L ℓ , ∇ y 2 ℓ t ( y , y t ∗ ) op ≤ H ℓ . (6) Note that for softmax cross-entropy over logits, the Hessian bound holds globally.
Assumption 4.3 (Bounded Inputs). There exists L x > 0 L_x > 0 L x > 0 such that ∀ t , ∥ x t ∥ 2 ≤ L x ∀ \forall t,\|x_t\|_2 \le L_x\ \forall ∀ t , ∥ x t ∥ 2 ≤ L x ∀ admissible ξ \xi ξ .
Theorem 4.4 (SSM Gradient Bound). Suppose Assumptions 4.2 and 4.3 hold for a parameter tuple W ∈ S γ , δ W \in\mathcal{S}_{\gamma,\delta} W ∈ S γ , δ . For a single-layer SSM defined in Section 3, the following bound holds for every finite integer S ≥ 1 S \ge1 S ≥ 1 and every admissible length-S S S sequence pair ξ ∈ Z \xi\in\mathcal{Z} ξ ∈ Z .
∥ ∇ W L S ( W ; ξ ) ∥ F ≤ g S S M ( W ) : = L ℓ L x ( K B K Δ N D 1 − ρ + ∥ W C ∥ 2 K W 1 − ρ ) (7) \left\|\nabla_W\mathcal{L}^{S}(W;\xi)\right\|_{F} \le g_{\mathrm{SSM}}(W) := L_{\ell}L_x\left(K_BK_{\Delta}\frac{\sqrt{ND}}{1-\rho}+\left\|W_C\right\|_2\frac{K_W}{1-\rho}\right) \tag*{(7)} ∇ W L S ( W ; ξ ) F ≤ g SSM ( W ) := L ℓ L x ( K B K Δ 1 − ρ N D + ∥ W C ∥ 2 1 − ρ K W ) (7)
with
K Δ : = ∥ W Δ ∥ 2 L x + D log ( 2 ) , K B : = ∥ W B ∥ 2 L x 2 , (8) K_{\Delta} := \lVert W_{\Delta}\rVert_{2} L_x + \sqrt{D}\log(2), \qquad K_B := \lVert W_B\rVert_2 L_x^2, \tag*{(8)} K Δ := ∥ W Δ ∥ 2 L x + D log ( 2 ) , K B := ∥ W B ∥ 2 L x 2 , (8)
K W : = N D K B K Δ ( K Δ + D ∥ A ∥ 2 L x ) ( ρ 1 − ρ ) + L x 2 N K Δ + L x D K B (9) K_W := N D K_B K_{\Delta}\left(K_{\Delta}+\sqrt{D}\lVert A\rVert_2 L_x\right)\left(\frac{\rho}{1-\rho}\right)+L_x^2\sqrt{N}K_{\Delta}+L_x\sqrt{D}K_B \tag*{(9)} K W := N D K B K Δ ( K Δ + D ∥ A ∥ 2 L x ) ( 1 − ρ ρ ) + L x 2 N K Δ + L x D K B (9)
where ∥ ⋅ ∥ F \lVert\cdot\rVert_F ∥ ⋅ ∥ F is the Euclidean norm of the block Frobenius norms.
Discussion. The key technical step is to bound both the hidden states and their parameter Jacobians under input-dependent transitions. The stability condition ρ = exp ( − γ δ ) < 1 \rho=\exp(-\gamma\delta)<1 ρ = exp ( − γ δ ) < 1 allows us to reduce the recurrent contributions to geometric sums, yielding an explicit parameter-gradient bound rather than requiring such a bound as an assumption. The resulting architecture-aware bound is independent of the sequence length while retaining explicit dependence on ρ \rho ρ and the core selective SSM parameter blocks W Δ W_{\Delta} W Δ , W B W_B W B , W C W_C W C , and A A A . The complete proof is provided in Appendix A. Appendix C extends the analysis to the multi-layer setting by combining stability with layerwise input-output sensitivities, resulting in the bound G S S M ( Q ) ( W ) \mathcal{G}_{\mathrm{SSM}}^{(Q)}(W) G SSM ( Q ) ( W ) stated in Theorem C.3. Together, these results provide architecture-specific control of the gradient norm required for the subsequent federated convergence analysis.
Convergence Analysis
To characterize federated optimization with selective SSMs, we introduce a local parameter neighborhood and impose the stochastic-gradient conditions required for the convergence analysis.
Definition 4.5 (R R R -Local Neighborhood). For a reference model W ~ \widetilde{W} W and radius R > 0 R>0 R > 0 , define N R ( W ~ ) : = { W : ∥ W − W ~ ∥ F ≤ R } \mathcal{N}_R(\widetilde{W}):=\{W:\lVert W-\widetilde{W}\rVert_F\le R\} N R ( W ) := { W : ∥ W − W ∥ F ≤ R } , where the ∥ ⋅ ∥ F \lVert\cdot\rVert_F ∥ ⋅ ∥ F is defined for a parameter tuple W W W as
∥ W ∥ F : = ( ∥ W Δ ∥ F 2 + ∥ W B ∥ F 2 + ∥ W C ∥ F 2 + ∥ A ∥ F 2 ) 1 / 2 . \lVert W\rVert_F := \left(\lVert W_{\Delta}\rVert_F^2+\lVert W_B\rVert_F^2+\lVert W_C\rVert_F^2+\lVert A\rVert_F^2\right)^{1/2}. ∥ W ∥ F := ( ∥ W Δ ∥ F 2 + ∥ W B ∥ F 2 + ∥ W C ∥ F 2 + ∥ A ∥ F 2 ) 1/2 .
In the following convergence analysis, the regularity conditions of Assumption 4.2 are assumed to hold uniformly over each neighborhood N R ( W r ) \mathcal{N}_R(W^r) N R ( W r ) . In particular, the same finite constants L ℓ L_{\ell} L ℓ and H ℓ H_{\ell} H ℓ apply to every W ∈ N R ( W r ) W\in\mathcal{N}_R(W^r) W ∈ N R ( W r ) , every admissible input-target pair, and every token position. The stability margins γ \gamma γ , δ \delta δ and input bound L x L_x L x are likewise fixed throughout the neighborhood.
Assumption 4.6 (Unbiased stochastic gradients). For every client k k k and every stable local model neighborhood N R ( W r ) ⊆ S γ , δ \mathcal{N}_R(W^r)\subseteq\mathcal{S}_{\gamma,\delta} N R ( W r ) ⊆ S γ , δ , define
g k ( W ; ξ ) : = ∇ W L ( W ; ξ ) (10) g_k(W;\xi):=\nabla_W\mathcal{L}(W;\xi) \tag*{(10)} g k ( W ; ξ ) := ∇ W L ( W ; ξ ) (10) as the stochastic sequence-level gradient for a sampled sequence ξ ∼ P k \xi\sim\mathcal{P}_k ξ ∼ P k . Then, ∀ W ∈ N R ( W r ) \forall W\in\mathcal{N}_R(W^r) ∀ W ∈ N R ( W r )
E ξ ∼ P k [ g k ( W ; ξ ) ] = ∇ W L k ( W ) (11) \mathbb{E}_{\xi\sim\mathcal{P}_k}[g_k(W;\xi)]=\nabla_W\mathcal{L}_k(W) \tag*{(11)} E ξ ∼ P k [ g k ( W ; ξ )] = ∇ W L k ( W ) (11) holds. At each local update, conditional on all preceding training randomness, the mini-batch consists of Ξ \Xi Ξ independent sequences drawn from P k \mathcal{P}_k P k . The mini-batch gradient is their average. Batches drawn by different clients at the same local step are conditionally independent.
Lemma 4.7 (Local SSM smoothness). Let W r W^r W r be a fixed reference parameter tuple and let 0 < R < ∞ 0<R<\infty 0 < R < ∞ satisfy N R ( W r ) ⊆ S γ , δ \mathcal{N}_R(W^r)\subseteq\mathcal{S}_{\gamma,\delta} N R ( W r ) ⊆ S γ , δ . Suppose Assumptions 4.2, 4.3, and 4.6 hold with finite and differentiable expected local objectives L k \mathcal{L}_k L k on this neighborhood. Furthermore, let the bounds in Assumption 4.2 hold with the same finite constants L ℓ L_{\ell} L ℓ and H ℓ H_{\ell} H ℓ ∀ W ∈ N R ( W r ) \forall W\in\mathcal{N}_R(W^r) ∀ W ∈ N R ( W r ) , every admissible input-target sequence pair ξ ∈ Z \xi\in\mathcal{Z} ξ ∈ Z , and every token position, independently of sequence length. Then, for every client k k k , L k \mathcal{L}_k L k is L S S M , R L_{\mathrm{SSM},R} L SSM , R -smooth on N R ( W r ) \mathcal{N}_R(W^r) N R ( W r ) . Specifically, for all W , V ∈ N R ( W r ) W,V\in\mathcal{N}_R(W^r) W , V ∈ N R ( W r ) ,
∥ ∇ W L k ( W ) − ∇ W L k ( V ) ∥ F ≤ L S S M , R ∥ W − V ∥ F , (12) \lVert\nabla_W\mathcal{L}_k(W)-\nabla_W\mathcal{L}_k(V)\rVert_F\le L_{\mathrm{SSM},R}\lVert W-V\rVert_F, \tag*{(12)} ∥ ∇ W L k ( W ) − ∇ W L k ( V ) ∥ F ≤ L SSM , R ∥ W − V ∥ F , (12) where L S S M , R L_{\mathrm{SSM},R} L SSM , R is defined in (129).
With these conditions in place, we characterize the convergence of FedAvg for selective SSMs. The corresponding analysis for FedProx and supplementary corollaries are available in Appendix B, D.
Corollary 4.8 (Single-layer FedAvg convergence rate). Under Assumptions 4.2–4.6, the conditions specified in Definitions 4.1–4.5, and the conditions of Theorem B.5, let M B M_B M B , M C M_C M C , M Δ M_{\Delta} M Δ , and M A M_A M A denote uniform upper bounds on ∥ W B ∥ 2 \lVert W_B\rVert_2 ∥ W B ∥ 2 , ∥ W C ∥ 2 \lVert W_C\rVert_2 ∥ W C ∥ 2 , ∥ W Δ ∥ 2 \lVert W_{\Delta}\rVert_2 ∥ W Δ ∥ 2 , and ∥ A ∥ 2 \lVert A\rVert_2 ∥ A ∥ 2 , respectively, over the R R R -local neighborhoods N R ( W r ) \mathcal{N}_R(W^r) N R ( W r ) , and define
M R : = ( 1 + M B ) ( 1 + M C ) ( 1 + M Δ ) ( 1 + M Δ + M A ) . M_R:=(1+M_B)(1+M_C)(1+M_{\Delta})(1+M_{\Delta}+M_A). M R := ( 1 + M B ) ( 1 + M C ) ( 1 + M Δ ) ( 1 + M Δ + M A ) . We further define P ‾ : = ∑ k = 1 K p k P k \overline{\mathcal{P}}:=\sum_{k=1}^{K}p_k\mathcal{P}_k P := ∑ k = 1 K p k P k , H T V : = ∑ k = 1 K p k TV ( P k , P ‾ ) 2 \mathcal{H}_{\mathrm{TV}}:=\sum_{k=1}^{K}p_k\operatorname{TV}(\mathcal{P}_k,\overline{\mathcal{P}})^2 H TV := ∑ k = 1 K p k TV ( P k , P ) 2 , where TV \operatorname{TV} TV denotes the total variation distance. Under these conditions, for FedAvg applied to the single-layer selective SSM
defined in § 3 , the global optimization trajectory { W r } r = 0 T \{W^r\}_{r=0}^{T} { W r } r = 0 T satisfies
1 T ∑ r = 0 T − 1 E ∥ ∇ f ( W r ) ∥ F 2 = O ( f ( W 0 ) − f ( W ∗ ) η E T + η M R 4 E ( 1 − ρ ) 8 + η 2 M R 6 ( E − 1 ) ( 1 − ρ ) 12 ( 1 Ξ + E H T V ) ) . \frac{1}{T}\sum_{r=0}^{T-1}\mathbb{E}\left\|\nabla f(W^r)\right\|_{F}^{2}=\mathcal{O}\left(\frac{f(W^0)-f(W^*)}{\eta ET}+\frac{\eta M_R^4}{E(1-\rho)^8}+\frac{\eta^2M_R^6(E-1)}{(1-\rho)^{12}}\left(\frac{1}{\Xi}+E\mathcal{H}_{\mathrm{TV}}\right)\right). T 1 r = 0 ∑ T − 1 E ∥ ∇ f ( W r ) ∥ F 2 = O ( η E T f ( W 0 ) − f ( W ∗ ) + E ( 1 − ρ ) 8 η M R 4 + ( 1 − ρ ) 12 η 2 M R 6 ( E − 1 ) ( Ξ 1 + E H TV ) ) .
The quantities N N N , D D D , L x L_x L x , L ℓ L_\ell L ℓ , and H ℓ H_\ell H ℓ affect only the implicit constant and do not alter the displayed scaling with the optimization parameters, parameter envelopes, stability, or sequence length.
Proof sketch and discussion. Standard FedAvg convergence bounds assume smoothness and bounds on stochastic gradient variance and client-gradient disagreement. In contrast, our analysis derives these quantities from the selective SSM recurrence. We first bound the hidden states and their parameter derivatives to obtain the gradient bound. The second-order analysis then establishes local smoothness, while the remaining lemmas translate the gradient bound into bounds on stochastic variance and client disagreement. Together, these results yield a convergence rate whose model dependence is explicit in the parameter envelopes M B M_B M B , M C M_C M C , M Δ M_\Delta M Δ , M A M_A M A and the stability factor ρ \rho ρ , with dimensions and input and loss regularity constants fixed. As a result, the corollary identifies which SSM parameters enter the convergence guarantee without requiring a separately assumed smoothness or gradient-dissimilarity constant for the model.
The derived bound distinguishes sequence length from recurrent memory: the gradient and smoothness estimates contain no explicit sequence-length factor, but increase as the recurrent stability factor ρ \rho ρ approaches one, allowing past state information to persist for longer. This dependence is stronger in the additional local-drift terms, which contain M R 6 / ( 1 − ρ ) 12 M_R^6/(1-\rho)^{12} M R 6 / ( 1 − ρ ) 12 , as opposed to the baseline stochastic term, which contains M R 4 / ( 1 − ρ ) 8 M_R^4/(1-\rho)^8 M R 4 / ( 1 − ρ ) 8 . Consequently, the bound assigns a larger penalty to performing multiple local updates when ρ \rho ρ is close to one. However, ρ \rho ρ alone does not determine this penalty: even for the same ρ \rho ρ and client distributions, larger parameter envelopes increase the coefficient multiplying H T V \mathcal{H}_{\mathrm{TV}} H TV . The analysis therefore separates the amount of distribution mismatch from the influence of the SSM parameters on its contribution to the convergence bound. This heterogeneity contribution vanishes at E = 1 E=1 E = 1 , but does not decrease with batch size when E > 1 E>1 E > 1 . Our synthetic experiments observe increasing client disagreement as ρ \rho ρ approaches one, supporting this qualitative connection without establishing the worst-case exponents.
Furthermore, the radius R R R determines how the broadcast model’s weight norms are enlarged to obtain bounds valid throughout local training: each block satisfies ∥ W X ∥ 2 ≤ ∥ W X ∥ 2 + R \|W_X\|_2\leq\|W_X\|_2+R ∥ W X ∥ 2 ≤ ∥ W X ∥ 2 + R . As such, allowing greater client displacement increases the parameter envelopes entering the convergence bound, even when ρ \rho ρ remains unchanged. Additional local steps can therefore affect the guarantee through both the explicit dependence on E E E and the larger envelopes needed to cover the resulting trajectories. These trajectories must also remain within a neighborhood satisfying N R ( W r ) ⊆ S γ , δ \mathcal{N}_R(W^r)\subseteq\mathcal{S}_{\gamma,\delta} N R ( W r ) ⊆ S γ , δ . The FedProx extension in Appendix § 8 demonstrates how restricting client displacement changes the guarantee: its effective radius R μ ≤ R R_\mu\leq R R μ ≤ R permits smaller envelopes M X μ = M X − R + R μ M_X^\mu=M_X-R+R_\mu M X μ = M X − R + R μ , reducing the SSM-dependent factors multiplying noise and heterogeneity. However, the proximal term also increases local smoothness by μ \mu μ . The resulting bound therefore exposes a trade-off between tighter control of the SSM parameters and the additional smoothness cost of proximal regularization.
Experiments
In this section, we empirically evaluate the derived bounds and their implications for distributed SSM training in two parts: (i) direct evaluation of gradient and smoothness bounds using sequences generated by frozen SSM teachers, and (ii) Mamba2 language modeling experiments with nine federated learning algorithms. In the latter, we compare theory-motivated expectations with observed performance illustrating the practical utility of the derived bounds. Details on our experimental setup are included in Appendix § 13 , with supplementary experimental results available in Appendix § 14 .
Validation of Derived Bounds. We consider autoregressive token sequences generated by a frozen one-layer selective SSM parameterized by W = ( W Δ , W B , W C , A ) W=(W_\Delta,W_B,W_C,A) W = ( W Δ , W B , W C , A ) analyzed in Theorem 4.4 . This setup follows the formulation of § 3 exactly, with the teacher SSM generating one-hot token ( L x = 1 ) (L_x=1) ( L x = 1 ) sequences of length S = 64 S=64 S = 64 for different combinations of D D D , N N N , and stability limits ρ \rho ρ , yielding 72 distinct datasets. For each such dataset, we train a learner SSM on 4096 sequences using projected SGD with softmax cross-entropy loss ( L ℓ = 2 ) (L_\ell=\sqrt{2}) ( L ℓ = 2 ) , with the model updates inside S γ , δ \mathcal{S}_{\gamma,\delta} S γ , δ . We check test-sequence gradients at five learner and one teacher checkpoints against the theorem’s G S S M \mathfrak{G}_{\mathrm{SSM}} G SSM .
We also use G S S M t i g h t \mathcal{G}^{\mathrm{tight}}_{\mathrm{SSM}} G SSM tight , tightened via realized stability, one-hot input bounds, and finite-history sums. We also evaluate the smoothness bound and examine the drift and disagreement quantities entering the FedAvg and FedProx analysis. Appendix § 14 .§ 1 provides additional validation results.
Results and Discussion. No violations were detected in 1,411,776 gradient, smoothness and bound-variation checks (Figure 2 a, Table 1 ), or in 103,200 federated checks across 1,200 FedAvg/FedProx runs on 72 teacher datasets. The federated runs explore step sizes beyond the theorems’ range. The results also reveal informative patterns.
Figure 2. Single-layer bounds on the SSM teacher-generated datasets. (a) Across 1,296 learner and teacher parameter points, every measured per-sequence gradient norm lies below the configured G S S M \mathcal{G}_{\mathrm{SSM}} G SSM . (b) At training end, G S S M \mathcal{G}_{\mathrm{SSM}} G SSM and L S S M , R \mathcal{L}_{\mathrm{SSM},R} L SSM , R scale as ( 1 − ρ ) − 1.8 (1-\rho)^{-1.8} ( 1 − ρ ) − 1.8 and ( 1 − ρ ) − 3.6 (1-\rho)^{-3.6} ( 1 − ρ ) − 3.6 , versus ( 1 − ρ ) − 0.5 (1-\rho)^{-0.5} ( 1 − ρ ) − 0.5 and ( 1 − ρ ) − 1.0 (1-\rho)^{-1.0} ( 1 − ρ ) − 1.0 for measured gradient and estimated Hessian norms. (c) As ρ → 1 \rho\to1 ρ → 1 , gradient energy shifts from W B , W C W_B,W_C W B , W C toward the transition block A A A . (d) One-factor fits estimate the power-law exponent α \alpha α for the derived (filled) and measured (open) gradient norms as vocabulary size D D D (blue) or state size N N N (orange) varies, with bootstrap 95% intervals.
Table 1. Gradient and smoothness bounds on the synthetic bank: 1,411,776 evaluations, no violations detected. Maximum utilization is the largest measured-to-derived ratio, with a / b a/b a / b denoting configured/tightened constants. Evaluations count test sequences at each checkpoint (first row), sequence-checkpoint pairs (curvature rows), or consecutive-checkpoint pairs (trajectory rows).
Memory amplifies gradient and curvature sensitivity. Across all generated datasets, the measured gradient and estimated Hessian norms grow approximately as ( 1 − ρ ) − 0.5 (1-\rho)^{-0.5} ( 1 − ρ ) − 0.5 and ( 1 − ρ ) − 1.0 (1-\rho)^{-1.0} ( 1 − ρ ) − 1.0 , respectively, while their bounds grow as ( 1 − ρ ) − 1.8 (1-\rho)^{-1.8} ( 1 − ρ ) − 1.8 and ( 1 − ρ ) − 3.6 (1-\rho)^{-3.6} ( 1 − ρ ) − 3.6 , as seen in Figure 2 b. Although the bounds grow more steeply, the curvature exponent is twice the gradient exponent for both the measured quantities and the certified constants. These trends are consistent with the recurrent-sensitivity structure of Theorem 4.4 and Lemma 4.7. The shared sensitivity factor L x ( H R + M C J R ) L_x(H_R+M_CJ_R) L x ( H R + M C J R ) enters the gradient bound linearly and the first term of the smoothness bound quadratically in (129). The approximately doubled fitted curvature exponent mirrors this linear-versus-quadratic dependence, although the observed growth is substantially milder than that of the bounds.
Recurrent sensitivity and block-wise gradients. The recurrent-Jacobian term, which propagates parameter perturbations through the transition A ˉ t \bar{A}_t A ˉ t , carries at least 99% of G S S M \mathcal{G}_{\mathrm{SSM}} G SSM at every ρ \rho ρ . The measured gradient energy (the share of ∥ ∇ W L ∥ F 2 \|\nabla_W\mathcal{L}\|_F^2 ∥ ∇ W L ∥ F 2 carried by each block) shifts from W B , W C W_B,W_C W B , W C (86% at ρ = 0.3 \rho=0.3 ρ = 0.3 ) to A A A (85% at ρ = 0.999 \rho=0.999 ρ = 0.999 ). Dimension fits (Figure 2 d) both vary with ρ \rho ρ and give bound exponents of 1.4-2.9 in D D D and 1.1-2.0 in N N N , reflecting the N D 2 ND^2 N D 2 -type factors in K W K_W K W .
Appendix H.1 examines the quantities entering the convergence analysis. The observed E 0.87 E^{0.87} E 0.87 growth of the ∥ W r , E − W r ∥ F \|W^{r,E}-W^r\|_F ∥ W r , E − W r ∥ F drift is consistent with the linear accumulation bound η E G S S M , R \eta E\mathcal{G}_{\mathrm{SSM},R} η E G SSM , R used in the FedAvg analysis. Increasing client disagreement as ρ → 1 \rho\to1 ρ → 1 likewise agrees quantitatively with the SSM-sensitivity factor G S S M , R 2 \mathcal{G}_{\mathrm{SSM},R}^2 G SSM , R 2 in Lemma B.4, which bounds disagreement by 4 G S S M , R 2 H T V 4\mathcal{G}_{\mathrm{SSM},R}^2H_{\mathrm{TV}} 4 G SSM , R 2 H TV .
Across the bank, variation in log-utilization log 10 ( ∥ ∇ L ∥ F / G S S M ) \log_{10}(\lVert\nabla\mathcal{L}\rVert_F/G_{\mathrm{SSM}}) log 10 (∥ ∇ L ∥ F / G SSM ) is dominated by the memory factor ρ / ( 1 − ρ ) \rho/(1-\rho) ρ / ( 1 − ρ ) . Its signed covariance shares are 93% for log-bound variance and 102% for log-utilization variance, the latter partly offset by measured gradient growth. Dimension and norm factors contribute less (Figure 9 ). This identifies the main source of variation in tightness, not absolute looseness.
Figure 9. Additive attribution of the variance of (a) log 10 G S S M \log_{10}\mathcal{G}_{\mathrm{SSM}} log 10 G SSM and (b) log 10 \log_{10} log 10 utilization over all 1,296 parameter points to the factors of the bound (and, for the utilization, to the measured gradient). Bars sum to 100%, a negative bar moves against the total.
Limitations and outlook. The experiments did demonstrate some limitations of our derived bounds, mostly how conservative their values are in absolute terms, and how parameter-envelope growth with radius R R R over T T T rounds and saturation of the sequence-level total-variation metric affect the looseness. Nevertheless, the observations agree qualitatively with the analysis’s stability, sensitivity, and drift dependencies: no violations were detected, gradients and curvature grow with memory, blockwise gradients shift toward A A A , and drift grows with local steps. The recurrent factor ρ / ( 1 − ρ ) \rho/(1-\rho) ρ / ( 1 − ρ ) dominates variation in tightness across the bank, with smaller contributions from projection and input factors. As such, they point to concrete future improvements: data-dependent constants that use the realized stability margin and the finite sequence length, envelopes that track the actual local trajectories rather than the worst case over the whole radius R R R , and a token-level dissimilarity that would make the heterogeneity term sensitive to the data partition. The Mamba2 experiments that follow examine whether the same drift and heterogeneity mechanisms help interpret practical federated training.
Practical Federated Optimization. We train randomly initialized Mamba2 (Dao and Gu, [27 ] ) models of depth 4 and 16 across K = 4 K = 4 K = 4 clients for T = 50 T = 50 T = 50 rounds with E ∈ { 64 , 128 , 256 } E \in\{64, 128, 256\} E ∈ { 64 , 128 , 256 } local steps and heterogeneity β ∈ { 0 , 0.7 , 1 } \beta\in\{0, 0.7, 1\} β ∈ { 0 , 0.7 , 1 } on six RedPajama (Together Computer, 2023) domains under four domain assignments (β = 0 \beta= 0 β = 0 gives every client the same domain mix, β = 1 \beta= 1 β = 1 one domain each). Nine algorithms are compared over 72 configurations and three seeds using mean last-ten-round validation perplexity, which also selects their hyperparameters (see Appendix § 13 for details).
Theory-Guided Expectations. An update rule affects radius R R R (in G S S M , R , L S S M , R G_{\mathrm{SSM},R}, L_{\mathrm{SSM},R} G SSM , R , L SSM , R ), a heterogeneity term ∝ η 2 ∥ S S S M , R 2 ∥ R S S M , R 2 E ( E − 1 ) 2 T V \propto\eta^2 \lVert S_{\mathrm{SSM},R}^{2} \rVert R_{\mathrm{SSM},R}^{2} \mathbb{E}(E - 1)^2 T V ∝ η 2 ∥ S SSM , R 2 ∥ R SSM , R 2 E ( E − 1 ) 2 T V , and the server step to W r + 1 W^{r+1} W r + 1 . For SGD, FedProx bounds drift by R μ ≤ η G S S M , R R_{\mu} \le\eta G_{\mathrm{SSM},R} R μ ≤ η G SSM , R (Theorem B.6 in Appendix § 8 ), at the cost of μ \mu μ in L p r o x , R μ L_{\mathrm{prox},R_{\mu}} L prox , R μ , motivating benefits from tuned proximal regularization. SCAFFOLD and FedDyn can reduce corrected client disagreement when corrections track client-gradient differences, though benefits may be smaller when disagreement is small. FedExP, FedAdam and DiLoCo rescale server updates and may enlarge neighborhoods, while the norm-preserving FedAlign and small-perturbation FedSAM may behave like FedAvg, without a shared convergence guarantee (Appendix § 11 ). Table 2 summarizes these expectations for the AdamW-based Mamba2 experiments motivated by the insights provided by our analysis.
Table 2. Theorem-motivated expectations versus observed behavior on Mamba2. − / = / + -/=/+ − / = / + denote expected lower/similar/higher validation perplexity relative to FedAvg, motivated by the listed mechanisms. Δ P P L \Delta\mathrm{PPL} Δ PPL is the mean percentage change across the 24 configurations at each β \beta β .
Results and Discussion. Across all 72 configurations and all three random seeds, the Pearson correlation between the expected performance direction (encoded as −1, 0, and +1 for lower, similar, and higher perplexity, respectively) and the observed log-perplexity change relative to FedAvg is 0.71, increasing to 0.81 when restricted to β = 1.0 \beta= 1.0 β = 1.0 . For the two heterogeneity regimes β ∈ { 0 , 1 } \beta\in\{0, 1\} β ∈ { 0 , 1 } , the percentage changes in validation perplexity relative to FedAvg reported in Table 2 , averaged over the 24 configurations at each β \beta β and all three seeds, agree with 13 of the 16 expected lower/similar/higher outcomes. FedProx’s improvement over FedAvg is consistent with the potential benefit of tighter SSM envelopes identified in Theorem B.6 in Appendix § 8 . SCAFFOLD’s improvement in 23/24 configurations at β = 1 \beta= 1 β = 1 , compared with deterioration in 22/24 at β = 0 \beta= 0 β = 0 , aligns with the disagreementcorrection interpretation of the FedAvg bound developed in Appendix E. Together, these results support using the theorem’s displacement and disagreement terms to interpret the observed dependence of algorithm performance on client heterogeneity.
Conclusion
In this work, we studied distributed learning with selective SSMs through architecture-aware theory, deriving bounds that connect federated optimization to recurrent stability, input-dependent discretization, projection norms, client drift, and heterogeneity. We then validated the derived bounds and provided experiments that demonstrated their relevance and practical applications.
AI Use Statement
In this work, we used generative AI tools for: assisting in the writing of proofs, formulating mathematical claims (specifically, refining author-derived mathematical statements in response to feedback on proof correctness), proposing or refining hypotheses, designing or providing feedback on research methodology or experiments, implementing methods, supporting qualitative and thematic data analysis and interpreting results.
We have not used generative AI tools for: helping develop theoretical models or conceptual frameworks, generating synthetic data sets, providing critical ingredients for proving mathematical claims, assisting with translation, or cleaning and reformatting a dataset. Additionally, we used generative AI tools for: creating or modifying scientific figures or images (limited to suggestions for figure titles and labels), editing a research paper to improve readability, and suggesting a structure for a research paper.
Our use of generative AI was three-fold. First, generative AI tools were used to provide feedback on theoretical arguments, hypotheses, methodological choices, and interpretations of experimental results. For all proofs, theorems, corollaries, and other mathematical statements in this work, the underlying claims and arguments were first derived and formalized. The resulting statements and proofs were subsequently provided to an AI agent for feedback on their correctness, logical consistency, and the validity of the stated claims. The agent’s feedback was independently evaluated, and any resulting revisions were made manually. Similarly, generative AI tools were used to check the consistency of our experimental analyses and interpretations with the reported results. All final analyses, interpretations, and claims were determined by the authors.
Second, AI agents assisted with the implementation of the code used in our experiments. While some experiments use synthetic data generated by deterministic code, AI agents were only utilized to assist with writing the code, not generate the synthetic data. All AI-assisted code was manually inspected for correctness and subsequently evaluated using validation tests before being used in the reported experiments.
Third, we used large language models to improve the presentation of the manuscript, including wording, readability, organization, section flow, and textual elements such as figure titles. The scientific figures and images themselves were not generated or modified using generative AI (though their titles and labels were adjusted with suggestions from AI models). All suggested edits were reviewed by the authors and incorporated manually where appropriate.
We have reviewed all AI-assisted work and take responsibility for the final content of this work, including text, claims, code, and other artifacts produced with the aid of generative AI.
Reproducibility Statement
We provide complete proofs for the theoretical results presented in this work. For the empirical results, Appendix G provides detailed descriptions of the experimental setups, including the datasets and algorithms used, hyperparameter tuning procedures, and hardware used to conduct the experiments. We additionally provide our codebase containing implementations of the methods used to obtain the reported results, together with instructions for running the experiments as supplementary material.
Selective SSM Gradient Bound Proof
In this section, we derive an upper bound on the gradient norm of the loss function for some admissible input sequence processed by a single-layer selective state space model (SSM).
Fix a parameter tuple W ∈ S γ , δ W \in\mathcal{S}_{\gamma,\delta} W ∈ S γ , δ satisfying the assumptions of Theorem 4.4 . Let S ≥ 1 S \ge1 S ≥ 1 be an arbitrary integer and ξ = ( x , y ∗ ) ∈ Z \xi= (x, y^*) \in\mathcal{Z} ξ = ( x , y ∗ ) ∈ Z an arbitrary admissible sequence pair of length S S S . We use the SSM dynamics from § 3 and the notational conventions from section 4.1.
Given these definitions, we examine the sensitivity of the loss with respect to the learnable model parameter tuple
W : = ( W Δ , W B , W C , A ) . (13) W := (W_{\Delta}, W_B, W_C, A). \tag*{(13)} W := ( W Δ , W B , W C , A ) . (13)
Throughout the proof, gradients with respect to W W W are understood as block gradients, i.e.,
∥ ∇ W f ∥ F : = ( ∥ ∇ W Δ f ∥ F 2 + ∥ ∇ W B f ∥ F 2 + ∥ ∇ W C f ∥ F 2 + ∥ ∇ A f ∥ F 2 ) 1 / 2 . (14) \lVert\nabla_W f \rVert_F := \left(\lVert\nabla_{W_{\Delta}} f \rVert_F^2 + \lVert\nabla_{W_B} f \rVert_F^2 + \lVert\nabla_{W_C} f \rVert_F^2 + \lVert\nabla_A f \rVert_F^2\right)^{1/2}. \tag*{(14)} ∥ ∇ W f ∥ F := ( ∥ ∇ W Δ f ∥ F 2 + ∥ ∇ W B f ∥ F 2 + ∥ ∇ W C f ∥ F 2 + ∥ ∇ A f ∥ F 2 ) 1/2 . (14)
Next, let θ = vec ( W ) \theta= \operatorname{vec}(W) θ = vec ( W ) concatenate the vectorized parameter blocks. Scalar gradients are column vectors after vectorization:
∇ θ f = vec ( ∇ W f ) \nabla_{\theta} f = \operatorname{vec}(\nabla_W f) ∇ θ f = vec ( ∇ W f )
For a vector- or matrix-valued function F F F , ∂ F / ∂ W \partial F/\partial W ∂ F / ∂ W denotes its flattened block Jacobian, with output entries indexing rows and scalar parameters indexing columns:
∥ ∂ F ∂ W ∥ F 2 : = ∑ α ∥ ∂ F ∂ θ α ∥ F 2 \left\lVert\frac{\partial F}{\partial W}\right\rVert_F^2 := \sum_{\alpha}\left\lVert\frac{\partial F}{\partial\theta_{\alpha}}\right\rVert_F^2 ∂ W ∂ F F 2 := α ∑ ∂ θ α ∂ F F 2
In product-rule expressions, products and transposes involving matrix-valued derivatives are applied separately to each scalar-parameter slice before flattening. Since h t h_t h t does not depend on W C W_C W C , its W C W_C W C -Jacobian block is zero.
For clarity, in this section we omit the client index k k k and focus on bounding the gradient norm for a single client processing a sequence of length S S S .
For the fixed sample ξ \xi ξ , using the simplified notation introduced in § 3 , the sequence loss is:
L S ( W ) = 1 S ∑ t = 1 S ℓ t ( y t ) \mathcal{L}^{S}(W) = \frac{1}{S}\sum_{t=1}^{S}\ell_t(y_t) L S ( W ) = S 1 t = 1 ∑ S ℓ t ( y t )
where ℓ t ( y t ) : = ℓ t ( y t ( W ; x ) , y t ∗ ) \ell_t(y_t) := \ell_t(y_t(W;x), y_t^*) ℓ t ( y t ) := ℓ t ( y t ( W ; x ) , y t ∗ ) represents the instantaneous loss between the predicted and target tokens at the t t t -th place in the sequence S S S , and we omit the dependence on a fixed sample ξ \xi ξ .
The goal of this derivation is to bound the norm of the gradient ∇ W L S ( W ) \nabla_W \mathcal{L}^{S}(W) ∇ W L S ( W ) . By the linearity of the gradient operator, it then follows that:
∇ W L S ( W ) = 1 S ∑ t = 1 S ∇ W ℓ t ( y t ) (15) \nabla_W \mathcal{L}^{S}(W) = \frac{1}{S}\sum_{t=1}^{S}\nabla_W \ell_t(y_t) \tag*{(15)} ∇ W L S ( W ) = S 1 t = 1 ∑ S ∇ W ℓ t ( y t ) (15)
We then apply the chain rule to the token loss ℓ t ( y t ) \ell_t(y_t) ℓ t ( y t ) , where ∇ y ℓ t ( y t ) \nabla_y\ell_t(y_t) ∇ y ℓ t ( y t ) is a column vector. Noting that y t y_t y t depends on W W W both directly through the output projection vector C t C_t C t and indirectly through the hidden state h t h_t h t , we obtain:
∇ θ ℓ t ( y t ) = ( ∂ y t ∂ W ) T ∇ y ℓ t ( y t ) = ( ∂ ( h t T C t ) ∂ W ) T ∇ y ℓ t ( y t ) = ( ∂ h t ∂ W C t + h t T ∂ C t ∂ W ) T ∇ y ℓ t ( y t ) . (16) \begin{aligned}
\nabla_{\theta}\ell_t(y_t)
&= \left(\frac{\partial y_t}{\partial W}\right)^{\mathsf{T}}\nabla_y\ell_t(y_t) \\
&= \left(\frac{\partial(h_t^{\mathsf{T}}C_t)}{\partial W}\right)^{\mathsf{T}}\nabla_y\ell_t(y_t) \\
&= \left(\frac{\partial h_t}{\partial W}C_t + h_t^{\mathsf{T}}\frac{\partial C_t}{\partial W}\right)^{\mathsf{T}}\nabla_y\ell_t(y_t). \tag*{(16)}
\end{aligned} ∇ θ ℓ t ( y t ) = ( ∂ W ∂ y t ) T ∇ y ℓ t ( y t ) = ( ∂ W ∂ ( h t T C t ) ) T ∇ y ℓ t ( y t ) = ( ∂ W ∂ h t C t + h t T ∂ W ∂ C t ) T ∇ y ℓ t ( y t ) . (16)
Here, the product-rule terms inside the parentheses are formed separately for each scalar-parameter slice and constructed as the columns of the output Jacobian before taking the outer transpose. The first term contributes only to the W Δ W_{\Delta} W Δ , W B W_B W B , and A A A blocks, while the second term contributes only to the W C W_C W C block.
Under the described block-gradient convention, the schematic chain-rule decomposition gives:
∥ ∇ W ℓ t ( y t ) ∥ F = ∥ vec ( ∇ W ℓ t ( y t ) ) ∥ 2 = ∥ ∇ θ ℓ t ( y t ) ∥ 2 = ∥ ( ∂ h t ∂ W C t + h t T ∂ C t ∂ W ) T ∇ y ℓ t ( y t ) ∥ 2 . (17) \left\lVert\nabla_W \ell_t(y_t) \right\rVert_F = \left\lVert\operatorname{vec}(\nabla_W \ell_t(y_t)) \right\rVert_2 = \left\lVert\nabla_{\theta} \ell_t(y_t) \right\rVert_2 = \left\lVert\left( \frac{\partial h_t}{\partial W} C_t + h_t^{\mathsf{T}} \frac{\partial C_t}{\partial W} \right)^{\mathsf{T}} \nabla_y \ell_t(y_t) \right\rVert_2 . \tag*{(17)} ∥ ∇ W ℓ t ( y t ) ∥ F = ∥ vec ( ∇ W ℓ t ( y t )) ∥ 2 = ∥ ∇ θ ℓ t ( y t ) ∥ 2 = ( ∂ W ∂ h t C t + h t T ∂ W ∂ C t ) T ∇ y ℓ t ( y t ) 2 . (17)
Next, applying the matrix-vector norm inequality to each scalar-parameter slice and summing the squared bounds gives:
∥ ∂ h t ∂ W C t ∥ F ≤ ∥ ∂ h t ∂ W ∥ F ∥ C t ∥ 2 . (18) \left\lVert\frac{\partial h_t}{\partial W} C_t \right\rVert_F \leq\left\lVert\frac{\partial h_t}{\partial W} \right\rVert_F \left\lVert C_t \right\rVert_2 . \tag*{(18)} ∂ W ∂ h t C t F ≤ ∂ W ∂ h t F ∥ C t ∥ 2 . (18)
Using this bound, the triangle inequality, and the fact that ∥ M T v ∥ 2 ≤ ∥ M ∥ F ∥ v ∥ 2 \left\lVert M^{\mathsf{T}}v \right\rVert_2 \leq\left\lVert M \right\rVert_F \left\lVert v \right\rVert_2 M T v 2 ≤ ∥ M ∥ F ∥ v ∥ 2 , we get:
∥ ∇ W ℓ t ( y t ) ∥ F ≤ ∥ ( ∂ h t ∂ W C t ) T ∇ y ℓ t ( y t ) ∥ 2 + ∥ ( ∂ C t ∂ W ) T h t ∇ y ℓ t ( y t ) ∥ 2 ≤ ∥ ∇ y ℓ t ( y t ) ∥ 2 ∥ ∂ h t ∂ W ∥ F ∥ C t ∥ 2 + ∥ ( ∂ C t ∂ W ) T h t ∇ y ℓ t ( y t ) ∥ 2 . (19) \begin{aligned}
\left\lVert\nabla_W \ell_t(y_t) \right\rVert_F
&\leq\left\lVert\left( \frac{\partial h_t}{\partial W} C_t \right)^{\mathsf{T}} \nabla_y \ell_t(y_t) \right\rVert_2
+ \left\lVert\left( \frac{\partial C_t}{\partial W} \right)^{\mathsf{T}} h_t \nabla_y \ell_t(y_t) \right\rVert_2 \\
&\leq\left\lVert\nabla_y \ell_t(y_t) \right\rVert_2 \left\lVert\frac{\partial h_t}{\partial W} \right\rVert_F \left\lVert C_t \right\rVert_2
+ \left\lVert\left( \frac{\partial C_t}{\partial W} \right)^{\mathsf{T}} h_t \nabla_y \ell_t(y_t) \right\rVert_2 . \tag*{(19)}
\end{aligned} ∥ ∇ W ℓ t ( y t ) ∥ F ≤ ( ∂ W ∂ h t C t ) T ∇ y ℓ t ( y t ) 2 + ( ∂ W ∂ C t ) T h t ∇ y ℓ t ( y t ) 2 ≤ ∥ ∇ y ℓ t ( y t ) ∥ 2 ∂ W ∂ h t F ∥ C t ∥ 2 + ( ∂ W ∂ C t ) T h t ∇ y ℓ t ( y t ) 2 . (19)
Next, utilizing Assumptions 4.2 and 4.3, we bound the two terms of this expression separately.
First, since C t = W C x t C_t = W_C x_t C t = W C x t , we have:
∥ C t ∥ 2 ≤ ∥ W C ∥ 2 ∥ x t ∥ 2 ≤ ∥ W C ∥ 2 L x (20) \left\lVert C_t \right\rVert_2 \leq\left\lVert W_C \right\rVert_2 \left\lVert x_t \right\rVert_2 \leq\left\lVert W_C \right\rVert_2 L_x \tag*{(20)} ∥ C t ∥ 2 ≤ ∥ W C ∥ 2 ∥ x t ∥ 2 ≤ ∥ W C ∥ 2 L x (20)
Therefore,
∥ ∇ y ℓ t ( y t ) ∥ 2 ∥ ∂ h t ∂ W ∥ F ∥ C t ∥ 2 ≤ L ℓ L x ∥ W C ∥ 2 ∥ ∂ h t ∂ W ∥ F (21) \left\lVert\nabla_y \ell_t(y_t) \right\rVert_2 \left\lVert\frac{\partial h_t}{\partial W} \right\rVert_F \left\lVert C_t \right\rVert_2 \leq L_{\ell} L_x \left\lVert W_C \right\rVert_2 \left\lVert\frac{\partial h_t}{\partial W} \right\rVert_F \tag*{(21)} ∥ ∇ y ℓ t ( y t ) ∥ 2 ∂ W ∂ h t F ∥ C t ∥ 2 ≤ L ℓ L x ∥ W C ∥ 2 ∂ W ∂ h t F (21)
For the second term, since h t h_t h t does not depend on W C W_C W C and x t x_t x t is fixed, equation (2b) gives:
∇ W C ℓ t ( y t ) = h t ∇ y ℓ t ( y t ) x t T . (22) \nabla_{W_C} \ell_t(y_t) = h_t \nabla_y \ell_t(y_t) x_t^{\mathsf{T}} . \tag*{(22)} ∇ W C ℓ t ( y t ) = h t ∇ y ℓ t ( y t ) x t T . (22)
Furthermore, since C t = W C x t C_t = W_C x_t C t = W C x t , the Jacobian ∂ C t / ∂ W \partial C_t/\partial W ∂ C t / ∂ W is zero in the W Δ W_{\Delta} W Δ , W B W_B W B , and A A A parameter blocks, and nonzero only for the W C W_C W C block. As a result, ( ∂ C t / ∂ W ) T h t ∇ y ℓ t ( y t ) (\partial C_t/\partial W)^{\mathsf{T}} h_t \nabla_y \ell_t(y_t) ( ∂ C t / ∂ W ) T h t ∇ y ℓ t ( y t ) contains the vectorized W C W_C W C -block gradient and zeros in all other parameter blocks, yielding:
∥ ( ∂ C t ∂ W ) T h t ∇ y ℓ t ( y t ) ∥ 2 = ∥ ∇ W C ℓ t ( y t ) ∥ F = ∥ h t ∇ y ℓ t ( y t ) x t T ∥ F . (23) \left\lVert\left( \frac{\partial C_t}{\partial W} \right)^{\mathsf{T}} h_t \nabla_y \ell_t(y_t) \right\rVert_2 = \left\lVert\nabla_{W_C} \ell_t(y_t) \right\rVert_F = \left\lVert h_t \nabla_y \ell_t(y_t) x_t^{\mathsf{T}} \right\rVert_F . \tag*{(23)} ( ∂ W ∂ C t ) T h t ∇ y ℓ t ( y t ) 2 = ∥ ∇ W C ℓ t ( y t ) ∥ F = h t ∇ y ℓ t ( y t ) x t T F . (23)
This can be bounded as:
∥ h t ∇ y ℓ t ( y t ) x t T ∥ F = ∥ h t ∇ y ℓ t ( y t ) ∥ 2 ∥ x t ∥ 2 ≤ ∥ h t ∇ y ℓ t ( y t ) ∥ 2 L x (24) \left\lVert h_t \nabla_y \ell_t(y_t) x_t^{\mathsf{T}} \right\rVert_F = \left\lVert h_t \nabla_y \ell_t(y_t) \right\rVert_2 \left\lVert x_t \right\rVert_2 \leq\left\lVert h_t \nabla_y \ell_t(y_t) \right\rVert_2 L_x \tag*{(24)} h t ∇ y ℓ t ( y t ) x t T F = ∥ h t ∇ y ℓ t ( y t ) ∥ 2 ∥ x t ∥ 2 ≤ ∥ h t ∇ y ℓ t ( y t ) ∥ 2 L x (24)
≤ ∥ h t ∥ F ∥ ∇ y ℓ t ( y t ) ∥ 2 L x ≤ L x L ℓ ∥ h t ∥ F (25) \leq\left\lVert h_t \right\rVert_F \left\lVert\nabla_y \ell_t(y_t) \right\rVert_2 L_x \leq L_x L_{\ell} \left\lVert h_t \right\rVert_F \tag*{(25)} ≤ ∥ h t ∥ F ∥ ∇ y ℓ t ( y t ) ∥ 2 L x ≤ L x L ℓ ∥ h t ∥ F (25)
By combining this result with (20), we can rewrite inequality (18) as:
∥ ∇ W ℓ t ( y t ) ∥ F ≤ L ℓ L x ( ∥ h t ∥ F + ∥ W C ∥ 2 ∥ ∂ h t ∂ W ∥ F ) (26) \left\lVert\nabla_W \ell_t(y_t) \right\rVert_F \leq L_{\ell} L_x \left( \left\lVert h_t \right\rVert_F + \left\lVert W_C \right\rVert_2 \left\lVert\frac{\partial h_t}{\partial W} \right\rVert_F \right) \tag*{(26)} ∥ ∇ W ℓ t ( y t ) ∥ F ≤ L ℓ L x ( ∥ h t ∥ F + ∥ W C ∥ 2 ∂ W ∂ h t F ) (26)
Next, for the remaining two terms, we first evaluate the bound on the hidden state matrix h t ∈ R N × D h_t \in\mathbb{R}^{N \times D} h t ∈ R N × D . Given an initialization of h 0 = 0 h_0 = 0 h 0 = 0 (which is standard when processing independent training sequences), unrolling the recurrence from equation (2a) yields:
h t = ∑ j = 1 t ( ⨀ k = j + 1 t A ˉ k ) ⊙ ( B ˉ j diag ( x j ) ) (27) h_t = \sum_{j=1}^{t} \left( \bigodot_{k=j+1}^{t} \bar{A}_k \right) \odot\left( \bar{B}_j \operatorname{diag}(x_j) \right) \tag*{(27)} h t = j = 1 ∑ t k = j + 1 ⨀ t A ˉ k ⊙ ( B ˉ j diag ( x j ) ) (27)
where we define the empty cumulative Hadamard product as the all-ones matrix, ⨀ k = t + 1 t A ˉ k = 1 N × D \bigodot_{k=t+1}^{t}\bar{A}_k = 1_{N\times D} ⨀ k = t + 1 t A ˉ k = 1 N × D . Then, taking the Frobenius norm of both sides and applying the triangle inequality, we get:
∥ h t ∥ F ≤ ∑ j = 1 t ∥ ( ⨀ k = j + 1 t A ˉ k ) ⊙ ( B ˉ j diag ( x j ) ) ∥ F = ∑ j = 1 t ∥ exp ( A ∑ k = j + 1 t Δ k T ) ⊙ ( B ˉ j diag ( x j ) ) ∥ F (28) \lVert h_t\rVert_F \le\sum_{j=1}^{t}\left\lVert\left(\bigodot_{k=j+1}^{t}\bar{A}_k\right)\odot\left(\bar{B}_j\operatorname{diag}(x_j)\right)\right\rVert_F = \sum_{j=1}^{t}\left\lVert\exp\left(A\sum_{k=j+1}^{t}\Delta_k^{\mathsf T}\right)\odot\left(\bar{B}_j\operatorname{diag}(x_j)\right)\right\rVert_F \tag*{(28)} ∥ h t ∥ F ≤ j = 1 ∑ t k = j + 1 ⨀ t A ˉ k ⊙ ( B ˉ j diag ( x j ) ) F = j = 1 ∑ t exp A k = j + 1 ∑ t Δ k T ⊙ ( B ˉ j diag ( x j ) ) F (28)
Utilizing the property of Hadamard product with Frobenius norms, the fact that ∥ B ˉ j diag ( x j ) ∥ F ≤ ∥ B ˉ j ∥ 2 ∥ diag ( x j ) ∥ F ≤ ∥ B ˉ j ∥ 2 L x \lVert\bar{B}_j\operatorname{diag}(x_j)\rVert_F\le\lVert\bar{B}_j\rVert_2\lVert\operatorname{diag}(x_j)\rVert_F\le\lVert\bar{B}_j\rVert_2L_x ∥ B ˉ j diag ( x j ) ∥ F ≤ ∥ B ˉ j ∥ 2 ∥ diag ( x j ) ∥ F ≤ ∥ B ˉ j ∥ 2 L x , and the definition of B ˉ t \bar{B}_t B ˉ t , it follows that:
∥ exp ( A ∑ k = j + 1 t Δ k T ) ⊙ ( B ˉ j diag ( x j ) ) ∥ F ≤ ∥ exp ( A ∑ k = j + 1 t Δ k T ) ∥ F ∥ W B x j Δ j T ∥ 2 L x (29) \left\lVert\exp\left(A\sum_{k=j+1}^{t}\Delta_k^{\mathsf T}\right)\odot\left(\bar{B}_j\operatorname{diag}(x_j)\right)\right\rVert_F\le\left\lVert\exp\left(A\sum_{k=j+1}^{t}\Delta_k^{\mathsf T}\right)\right\rVert_F\lVert W_Bx_j\Delta_j^{\mathsf T}\rVert_2L_x \tag*{(29)} exp A k = j + 1 ∑ t Δ k T ⊙ ( B ˉ j diag ( x j ) ) F ≤ exp A k = j + 1 ∑ t Δ k T F ∥ W B x j Δ j T ∥ 2 L x (29)
Then:
∥ W B x j Δ j T ∥ 2 L x ≤ ∥ W B ∥ 2 ∥ x j ∥ 2 ∥ Δ j T ∥ 2 L x ≤ ∥ W B ∥ 2 ∥ Softplus ( W Δ x j ) ∥ 2 L x 2 (30) \lVert W_Bx_j\Delta_j^{\mathsf T}\rVert_2L_x\le\lVert W_B\rVert_2\lVert x_j\rVert_2\lVert\Delta_j^{\mathsf T}\rVert_2L_x\le\lVert W_B\rVert_2\lVert\operatorname{Softplus}(W_\Delta x_j)\rVert_2L_x^2 \tag*{(30)} ∥ W B x j Δ j T ∥ 2 L x ≤ ∥ W B ∥ 2 ∥ x j ∥ 2 ∥ Δ j T ∥ 2 L x ≤ ∥ W B ∥ 2 ∥ Softplus ( W Δ x j ) ∥ 2 L x 2 (30)
And since Softplus ( a ) ≤ ∣ a ∣ + log ( 2 ) \operatorname{Softplus}(a)\le|a|+\log(2) Softplus ( a ) ≤ ∣ a ∣ + log ( 2 ) so ∥ Softplus ( x ) ∥ 2 ≤ ∥ ∣ x ∣ + log ( 2 ) 1 ∥ 2 ≤ ∥ x ∥ 2 + D log ( 2 ) \lVert\operatorname{Softplus}(x)\rVert_2\le\lVert|x|+\log(2)1\rVert_2\le\lVert x\rVert_2+\sqrt{D}\log(2) ∥ Softplus ( x ) ∥ 2 ≤ ∥ ∣ x ∣ + log ( 2 ) 1 ∥ 2 ≤ ∥ x ∥ 2 + D log ( 2 ) , it follows that ∥ Softplus ( W Δ x j ) ∥ 2 ≤ ∥ ∣ W Δ x j ∣ + log ( 2 ) 1 ∥ 2 \lVert\operatorname{Softplus}(W_\Delta x_j)\rVert_2\le\lVert|W_\Delta x_j|+\log(2)1\rVert_2 ∥ Softplus ( W Δ x j ) ∥ 2 ≤ ∥ ∣ W Δ x j ∣ + log ( 2 ) 1 ∥ 2 , and from the triangle inequality, this results in ∥ ∣ W Δ x j ∣ + log ( 2 ) 1 ∥ 2 ≤ ∥ W Δ ∥ 2 L x + D log ( 2 ) \lVert|W_\Delta x_j|+\log(2)1\rVert_2\le\lVert W_\Delta\rVert_2L_x+\sqrt{D}\log(2) ∥ ∣ W Δ x j ∣ + log ( 2 ) 1 ∥ 2 ≤ ∥ W Δ ∥ 2 L x + D log ( 2 )
So the bound becomes:
∥ W B x j Δ j T ∥ 2 L x ≤ ∥ W B ∥ 2 L x 2 ( ∥ W Δ ∥ 2 L x + D log ( 2 ) ) (31) \lVert W_Bx_j\Delta_j^{\mathsf T}\rVert_2L_x\le\lVert W_B\rVert_2L_x^2\left(\lVert W_\Delta\rVert_2L_x+\sqrt{D}\log(2)\right) \tag*{(31)} ∥ W B x j Δ j T ∥ 2 L x ≤ ∥ W B ∥ 2 L x 2 ( ∥ W Δ ∥ 2 L x + D log ( 2 ) ) (31)
Since these terms are independent of j j j , it follows that:
∥ h t ∥ F ≤ ∥ W B ∥ 2 L x 2 ( ∥ W Δ ∥ 2 L x + D log ( 2 ) ) ∑ j = 1 t ∥ exp ( A ∑ k = j + 1 t Softplus ( W Δ x k T ) ) ∥ F (32) \lVert h_t\rVert_F\le\lVert W_B\rVert_2L_x^2\left(\lVert W_\Delta\rVert_2L_x+\sqrt{D}\log(2)\right)\sum_{j=1}^{t}\left\lVert\exp\left(A\sum_{k=j+1}^{t}\operatorname{Softplus}(W_\Delta x_k^{\mathsf T})\right)\right\rVert_F \tag*{(32)} ∥ h t ∥ F ≤ ∥ W B ∥ 2 L x 2 ( ∥ W Δ ∥ 2 L x + D log ( 2 ) ) j = 1 ∑ t exp A k = j + 1 ∑ t Softplus ( W Δ x k T ) F (32)
Next, the term ∂ h t ∂ W \frac{\partial h_t}{\partial W} ∂ W ∂ h t can be expanded from equation (2a) as:
∂ h t ∂ W = ∂ A ˉ t ∂ W ⊙ h t − 1 + A ˉ t ⊙ ∂ h t − 1 ∂ W + ∂ B ˉ t ∂ W diag ( x t ) (33) \frac{\partial h_t}{\partial W}=\frac{\partial\bar{A}_t}{\partial W}\odot h_{t-1}+\bar{A}_t\odot\frac{\partial h_{t-1}}{\partial W}+\frac{\partial\bar{B}_t}{\partial W}\operatorname{diag}(x_t) \tag*{(33)} ∂ W ∂ h t = ∂ W ∂ A ˉ t ⊙ h t − 1 + A ˉ t ⊙ ∂ W ∂ h t − 1 + ∂ W ∂ B ˉ t diag ( x t ) (33)
We bound each term individually, using the fact that:
∥ ∂ h t ∂ W ∥ F ≤ ∥ ∂ h t ∂ W Δ ∥ F + ∥ ∂ h t ∂ W B ∥ F + ∥ ∂ h t ∂ W C ∥ F + ∥ ∂ h t ∂ A ∥ F (34) \left\lVert\frac{\partial h_t}{\partial W}\right\rVert_F\le\left\lVert\frac{\partial h_t}{\partial W_\Delta}\right\rVert_F+\left\lVert\frac{\partial h_t}{\partial W_B}\right\rVert_F+\left\lVert\frac{\partial h_t}{\partial W_C}\right\rVert_F+\left\lVert\frac{\partial h_t}{\partial A}\right\rVert_F \tag*{(34)} ∂ W ∂ h t F ≤ ∂ W Δ ∂ h t F + ∂ W B ∂ h t F + ∂ W C ∂ h t F + ∂ A ∂ h t F (34)
where the W C W_C W C -dependent term is zero.
By the triangle inequality:
∥ ∂ h t ∂ W ∥ F ≤ ∥ ∂ A ˉ t ∂ W ⊙ h t − 1 ∥ F + ∥ A ˉ t ⊙ ∂ h t − 1 ∂ W ∥ F + ∥ ∂ B ˉ t ∂ W diag ( x t ) ∥ F (35) \left\lVert\frac{\partial h_t}{\partial W}\right\rVert_F\le\left\lVert\frac{\partial\bar{A}_t}{\partial W}\odot h_{t-1}\right\rVert_F+\left\lVert\bar{A}_t\odot\frac{\partial h_{t-1}}{\partial W}\right\rVert_F+\left\lVert\frac{\partial\bar{B}_t}{\partial W}\operatorname{diag}(x_t)\right\rVert_F \tag*{(35)} ∂ W ∂ h t F ≤ ∂ W ∂ A ˉ t ⊙ h t − 1 F + A ˉ t ⊙ ∂ W ∂ h t − 1 F + ∂ W ∂ B ˉ t diag ( x t ) F (35)
Then, we bound each term. First:
∥ ∂ B ˉ t ∂ W diag ( x t ) ∥ F ≤ ∥ ∂ B ˉ t ∂ W ∥ F ∥ diag ( x t ) ∥ F ≤ L x ( ∥ ∂ B ˉ t ∂ W B ∥ F + ∥ ∂ B ˉ t ∂ W Δ ∥ F ) ≤ L x ( N ∥ x t ∥ 2 ∥ Δ t ∥ 2 + ∥ W B x t ∥ 2 ∥ ∂ Δ t ∂ W Δ ∥ F ) ≤ L x ( N L x ( ∥ W Δ ∥ 2 L x + D log ( 2 ) ) + D ∥ W B ∥ 2 L x 2 ) (36) \begin{aligned}
\left\lVert\frac{\partial\bar{B}_t}{\partial W}\operatorname{diag}(x_t)\right\rVert_F\le\left\lVert\frac{\partial\bar{B}_t}{\partial W}\right\rVert_F\lVert\operatorname{diag}(x_t)\rVert_F\le L_x\left(\left\lVert\frac{\partial\bar{B}_t}{\partial W_B}\right\rVert_F+\left\lVert\frac{\partial\bar{B}_t}{\partial W_\Delta}\right\rVert_F\right) \\
&\le L_x\left(\sqrt{N}\lVert x_t\rVert_2\lVert\Delta_t\rVert_2+\lVert W_Bx_t\rVert_2\left\lVert\frac{\partial\Delta_t}{\partial W_\Delta}\right\rVert_F\right) \\
&\le L_x\left(\sqrt{N}L_x\left(\lVert W_\Delta\rVert_2L_x+\sqrt{D}\log(2)\right)+\sqrt{D}\lVert W_B\rVert_2L_x^2\right) \tag*{(36)}
\end{aligned} ∂ W ∂ B ˉ t diag ( x t ) F ≤ ∂ W ∂ B ˉ t F ∥ diag ( x t ) ∥ F ≤ L x ( ∂ W B ∂ B ˉ t F + ∂ W Δ ∂ B ˉ t F ) ≤ L x ( N ∥ x t ∥ 2 ∥ Δ t ∥ 2 + ∥ W B x t ∥ 2 ∂ W Δ ∂ Δ t F ) ≤ L x ( N L x ( ∥ W Δ ∥ 2 L x + D log ( 2 ) ) + D ∥ W B ∥ 2 L x 2 ) (36)
where we used the fact that Softplus ′ ( z ) = σ ( z ) ≤ 1 \operatorname{Softplus}'(z)=\sigma(z)\le1 Softplus ′ ( z ) = σ ( z ) ≤ 1 , so since Δ t = Softplus ( W Δ x t ) \Delta_t=\operatorname{Softplus}(W_\Delta x_t) Δ t = Softplus ( W Δ x t ) , it is true that ∥ ∂ Δ t ∂ W Δ ∥ F ≤ D ∥ x t ∥ 2 ≤ D L x \left\lVert\frac{\partial\Delta_t}{\partial W_\Delta}\right\rVert_F\le\sqrt{D}\lVert x_t\rVert_2\le\sqrt{D}L_x ∂ W Δ ∂ Δ t F ≤ D ∥ x t ∥ 2 ≤ D L x . Next:
∥ ∂ A ˉ t ∂ W ⊙ h t − 1 ∥ F ≤ ∥ ∂ A ˉ t ∂ W ∥ F ∥ h t − 1 ∥ F ≤ ( ∥ ∂ A ˉ t ∂ A ∥ F + ∥ ∂ A ˉ t ∂ W Δ ∥ F ) ∥ h t − 1 ∥ F ≤ ( ∥ A ˉ t ∥ F ∥ Δ t ∥ 2 + ∂ A ˉ t ∂ t ∥ ∂ Δ t ∂ W Δ ∥ F ) ∥ h t − 1 ∥ F ≤ ( ∥ A ˉ t ∥ F ∥ Δ t ∥ 2 + D ∥ A ∥ 2 ∥ A ˉ t ∥ F L x ) ∥ h t − 1 ∥ F ≤ ∥ h t − 1 ∥ F ∥ A ˉ t ∥ F ( ∥ W Δ ∥ 2 L x + D log ( 2 ) ) + D ∥ A ∥ 2 L x ) (37) \begin{aligned}
\| \frac{\partial\bar{A}_t}{\partial W} \odot h_{t-1} \|_F
&\le\| \frac{\partial\bar{A}_t}{\partial W} \|_F \|h_{t-1}\|_F
\le(\| \frac{\partial\bar{A}_t}{\partial A} \|_F + \| \frac{\partial\bar{A}_t}{\partial W_\Delta} \|_F)\|h_{t-1}\|_F \\
&\le(\|\bar{A}_t\|_F \|\Delta_t\|_2 + \frac{\partial\bar{A}_t}{\partial t}\| \frac{\partial\Delta_t}{\partial W_\Delta} \|_F)\|h_{t-1}\|_F \\
&\le(\|\bar{A}_t\|_F \|\Delta_t\|_2 + \sqrt{D}\|A\|_2 \|\bar{A}_t\|_F L_x)\|h_{t-1}\|_F \\
&\le\|h_{t-1}\|_F \|\bar{A}_t\|_F (\|W_\Delta\|_2 L_x + \sqrt{D}\log(2)) + \sqrt{D}\|A\|_2 L_x) \tag*{(37)}
\end{aligned} ∥ ∂ W ∂ A ˉ t ⊙ h t − 1 ∥ F ≤ ∥ ∂ W ∂ A ˉ t ∥ F ∥ h t − 1 ∥ F ≤ ( ∥ ∂ A ∂ A ˉ t ∥ F + ∥ ∂ W Δ ∂ A ˉ t ∥ F ) ∥ h t − 1 ∥ F ≤ ( ∥ A ˉ t ∥ F ∥ Δ t ∥ 2 + ∂ t ∂ A ˉ t ∥ ∂ W Δ ∂ Δ t ∥ F ) ∥ h t − 1 ∥ F ≤ ( ∥ A ˉ t ∥ F ∥ Δ t ∥ 2 + D ∥ A ∥ 2 ∥ A ˉ t ∥ F L x ) ∥ h t − 1 ∥ F ≤ ∥ h t − 1 ∥ F ∥ A ˉ t ∥ F ( ∥ W Δ ∥ 2 L x + D log ( 2 )) + D ∥ A ∥ 2 L x ) (37)
Finally, by definition of ∥ M ∥ max : = max i , j ∣ M i j ∣ \left\|M\right\|_{\max} := \max_{i,j} \left|M_{ij}\right| ∥ M ∥ m a x := max i , j ∣ M ij ∣ , it follows that:
∥ A ˉ t ⊙ ∂ h t − 1 ∂ W ∥ F ≤ ∥ A ˉ t ∥ max ∥ ∂ h t − 1 ∂ W ∥ F (38) \left\|\bar{A}_t \odot\frac{\partial h_{t-1}}{\partial W}\right\|_F
\le\left\|\bar{A}_t\right\|_{\max}\left\|\frac{\partial h_{t-1}}{\partial W}\right\|_F \tag*{(38)} A ˉ t ⊙ ∂ W ∂ h t − 1 F ≤ A ˉ t m a x ∂ W ∂ h t − 1 F (38)
Combining all the terms together, we get the following recurrence:
∥ ∂ h t ∂ W ∥ F ≤ ∥ W B ∥ 2 L x 2 ( ∥ W Δ ∥ 2 L x + D log ( 2 ) ) ∑ j = 1 t − 1 ∥ exp ( A ∑ k = j + 1 t − 1 Softplus ( W Δ x k ) T ) ∥ F × ∥ A ˉ t ∥ F ( ∥ W Δ ∥ 2 L x + D log ( 2 ) + D ∥ A ∥ 2 L x ) + L x ( N L x ( ∥ W Δ ∥ 2 L x + D log ( 2 ) ) + D ∥ W B ∥ 2 L x 2 ) + ∥ A ˉ t ∥ max ∥ ∂ h t − 1 ∂ W ∥ F (39) \begin{aligned}
\left\|\frac{\partial h_t}{\partial W}\right\|_F
&\le\left\|W_B\right\|_2 L_x^2 \left(\left\|W_\Delta\right\|_2 L_x + \sqrt{D}\log(2)\right)
\sum_{j=1}^{t-1}
\left\|\exp\left(A\sum_{k=j+1}^{t-1}\operatorname{Softplus}(W_\Delta x_k)^\mathsf{T}\right)\right\|_F \\
&\qquad\times\left\|\bar{A}_t\right\|_F
\left(\left\|W_\Delta\right\|_2 L_x + \sqrt{D}\log(2) + \sqrt{D}\left\|A\right\|_2 L_x\right) \\
&\qquad+ L_x\left(\sqrt{N}L_x\left(\left\|W_\Delta\right\|_2 L_x + \sqrt{D}\log(2)\right) + \sqrt{D}\left\|W_B\right\|_2 L_x^2\right)
+ \left\|\bar{A}_t\right\|_{\max}\left\|\frac{\partial h_{t-1}}{\partial W}\right\|_F \tag*{(39)}
\end{aligned} ∂ W ∂ h t F ≤ ∥ W B ∥ 2 L x 2 ( ∥ W Δ ∥ 2 L x + D log ( 2 ) ) j = 1 ∑ t − 1 exp A k = j + 1 ∑ t − 1 Softplus ( W Δ x k ) T F × A ˉ t F ( ∥ W Δ ∥ 2 L x + D log ( 2 ) + D ∥ A ∥ 2 L x ) + L x ( N L x ( ∥ W Δ ∥ 2 L x + D log ( 2 ) ) + D ∥ W B ∥ 2 L x 2 ) + A ˉ t m a x ∂ W ∂ h t − 1 F (39)
Next, define:
K Δ : = ∥ W Δ ∥ 2 L x + D log ( 2 ) (40) K_\Delta:= \left\|W_\Delta\right\|_2 L_x + \sqrt{D}\log(2) \tag*{(40)} K Δ := ∥ W Δ ∥ 2 L x + D log ( 2 ) (40)
K B : = ∥ W B ∥ 2 L x 2 (41) K_B := \left\|W_B\right\|_2 L_x^2 \tag*{(41)} K B := ∥ W B ∥ 2 L x 2 (41)
Φ j , t : = ∥ exp ( A ∑ k = j + 1 t Softplus ( W Δ x k ) T ) ∥ F (42) \Phi_{j,t} := \left\|\exp\left(A\sum_{k=j+1}^{t}\operatorname{Softplus}(W_\Delta x_k)^\mathsf{T}\right)\right\|_F \tag*{(42)} Φ j , t := exp A k = j + 1 ∑ t Softplus ( W Δ x k ) T F (42)
So the recurrence becomes:
∥ ∂ h t ∂ W ∥ F ≤ ∥ A ˉ t ∥ F K B K Δ ( K Δ + D ∥ A ∥ 2 L x ) ∑ j = 1 t − 1 Φ j , t − 1 + L x 2 N K Δ + L x D K B + ∥ A ˉ t ∥ max ∥ ∂ h t − 1 ∂ W ∥ F (43) \begin{aligned}
\left\|\frac{\partial h_t}{\partial W}\right\|_F
&\le\left\|\bar{A}_t\right\|_F K_B K_\Delta\left(K_\Delta+ \sqrt{D}\left\|A\right\|_2 L_x\right)
\sum_{j=1}^{t-1}\Phi_{j,t-1}
+ L_x^2\sqrt{N}K_\Delta+ L_x\sqrt{D}K_B \\
&\qquad+ \left\|\bar{A}_t\right\|_{\max}\left\|\frac{\partial h_{t-1}}{\partial W}\right\|_F \tag*{(43)}
\end{aligned} ∂ W ∂ h t F ≤ A ˉ t F K B K Δ ( K Δ + D ∥ A ∥ 2 L x ) j = 1 ∑ t − 1 Φ j , t − 1 + L x 2 N K Δ + L x D K B + A ˉ t m a x ∂ W ∂ h t − 1 F (43)
Since h 0 = 0 h_0 = 0 h 0 = 0 is parameter-independent, ∂ h 0 / ∂ W = 0 \partial h_0/\partial W = 0 ∂ h 0 / ∂ W = 0 , iterating the inequality gives:
∥ ∂ h t ∂ W ∥ F ≤ ∑ m = 1 t [ ∥ A ˉ m ∥ F K B K Δ ( K Δ + D ∥ A ∥ 2 L x ) ( ∑ j = 1 m − 1 Φ j , m − 1 ) + L x 2 N K Δ + L x D K B ] ∏ n = m + 1 t ∥ A ˉ n ∥ max , (44) \begin{aligned}
\left\|\frac{\partial h_t}{\partial W}\right\|_F
&\le\sum_{m=1}^{t}
\left[
\left\|\bar{A}_m\right\|_F K_B K_\Delta\left(K_\Delta+ \sqrt{D}\left\|A\right\|_2 L_x\right)
\left(\sum_{j=1}^{m-1}\Phi_{j,m-1}\right)\right. \\
&\qquad\left. + L_x^2\sqrt{N}K_\Delta+ L_x\sqrt{D}K_B
\right]\prod_{n=m+1}^{t}\left\|\bar{A}_n\right\|_{\max}, \tag*{(44)}
\end{aligned} ∂ W ∂ h t F ≤ m = 1 ∑ t [ A ˉ m F K B K Δ ( K Δ + D ∥ A ∥ 2 L x ) ( j = 1 ∑ m − 1 Φ j , m − 1 ) + L x 2 N K Δ + L x D K B ] n = m + 1 ∏ t A ˉ n m a x , (44)
where empty sums are calculated as zero and empty scalar products are calculated as one.
Next, by Definition 4.1, each entry of A Δ t T A\Delta_t^\mathsf{T} A Δ t T is at most − γ δ -\gamma\delta − γ δ . Since A ˉ t = exp ( A Δ t T ) \bar{A}_t = \exp(A\Delta_t^\mathsf{T}) A ˉ t = exp ( A Δ t T ) element-wise, it follows that:
∥ A ˉ t ∥ max ≤ exp ( − γ δ ) : = ρ < 1 (45) \left\|\bar{A}_t\right\|_{\max} \le\exp(-\gamma\delta) := \rho< 1 \tag*{(45)} A ˉ t m a x ≤ exp ( − γ δ ) := ρ < 1 (45)
as well as
∥ A ˉ t ∥ F ≤ N D ρ (46) \lVert\bar{A}_t \rVert_F \le\sqrt{N}D\rho \tag*{(46)} ∥ A ˉ t ∥ F ≤ N D ρ (46)
and in addition, by the definition of Φ j , t \Phi_{j,t} Φ j , t , the following inequality holds:
Φ j , m − 1 ≤ N D ρ m − 1 − j (47) \Phi_{j,m-1} \le\sqrt{N}D\rho^{m-1-j} \tag*{(47)} Φ j , m − 1 ≤ N D ρ m − 1 − j (47)
As a result, the inner summation becomes a simple geometric series:
∑ j = 1 m − 1 Φ j , m − 1 ≤ N D ∑ j = 1 m − 1 ρ m − 1 − j = N D ∑ r = 0 m − 2 ρ r ≤ N D 1 − ρ (48) \sum_{j=1}^{m-1} \Phi_{j,m-1} \le\sqrt{N}D\sum_{j=1}^{m-1}\rho^{m-1-j} = \sqrt{N}D\sum_{r=0}^{m-2}\rho^r \le\frac{\sqrt{N}D}{1-\rho} \tag*{(48)} j = 1 ∑ m − 1 Φ j , m − 1 ≤ N D j = 1 ∑ m − 1 ρ m − 1 − j = N D r = 0 ∑ m − 2 ρ r ≤ 1 − ρ N D (48)
As such, we can group all time-independent terms under a new constant:
K W : = N D K B K Δ ( K Δ + D ∥ A ∥ 2 L x ) ( ρ 1 − ρ ) + L x 2 N K Δ + L x D K B (49) K_W := NDK_BK_\Delta\left(K_\Delta+\sqrt{D}\lVert A\rVert_2L_x\right)\left(\frac{\rho}{1-\rho}\right)+L_x^2\sqrt{N}K_\Delta+L_x\sqrt{D}K_B \tag*{(49)} K W := N D K B K Δ ( K Δ + D ∥ A ∥ 2 L x ) ( 1 − ρ ρ ) + L x 2 N K Δ + L x D K B (49)
reducing the recurrence to:
∥ ∂ h t ∂ W ∥ F ≤ K W ∑ m = 1 t ρ t − m ≤ K W 1 − ρ (50) \left\lVert\frac{\partial h_t}{\partial W}\right\rVert_F \le K_W\sum_{m=1}^{t}\rho^{t-m}\le\frac{K_W}{1-\rho} \tag*{(50)} ∂ W ∂ h t F ≤ K W m = 1 ∑ t ρ t − m ≤ 1 − ρ K W (50)
Finally, combining everything, we get the final bound on the gradient of loss at time t t t :
∥ ∇ W ℓ t ( y t ) ∥ F ≤ L ℓ L x ( K B K Δ N D 1 − ρ + ∥ W C ∥ 2 K W 1 − ρ ) (51) \lVert\nabla_W\ell_t(y_t)\rVert_F \le L_\ell L_x\left(K_BK_\Delta\frac{\sqrt{N}D}{1-\rho}+\lVert W_C\rVert_2\frac{K_W}{1-\rho}\right) \tag*{(51)} ∥ ∇ W ℓ t ( y t ) ∥ F ≤ L ℓ L x ( K B K Δ 1 − ρ N D + ∥ W C ∥ 2 1 − ρ K W ) (51)
Since ∇ W L S ( W ) = 1 S ∑ t = 1 S ∇ W ℓ t ( y t ) \nabla_W\mathcal{L}^{S}(W)=\frac{1}{S}\sum_{t=1}^{S}\nabla_W\ell_t(y_t) ∇ W L S ( W ) = S 1 ∑ t = 1 S ∇ W ℓ t ( y t ) , by the triangle inequality the same bound holds for the averaged empirical loss:
∥ ∇ W L S ( W ) ∥ F ≤ L ℓ L x ( K B K Δ N D 1 − ρ + ∥ W C ∥ 2 K W 1 − ρ ) = G S S M ( W ) (52) \lVert\nabla_W\mathcal{L}^{S}(W)\rVert_F \le L_\ell L_x\left(K_BK_\Delta\frac{\sqrt{N}D}{1-\rho}+\lVert W_C\rVert_2\frac{K_W}{1-\rho}\right)=G_{\mathrm{SSM}}(W) \tag*{(52)} ∥ ∇ W L S ( W ) ∥ F ≤ L ℓ L x ( K B K Δ 1 − ρ N D + ∥ W C ∥ 2 1 − ρ K W ) = G SSM ( W ) (52)
Since S ≥ 1 S\ge1 S ≥ 1 and the admissible length-S S S sequence pairs ξ ∈ Z \xi\in\mathcal{Z} ξ ∈ Z were arbitrary, and the right-hand side of the inequality is independent of S S S and ξ \xi ξ , the bound holds uniformly over all such lengths and admissible sequence pairs for the fixed parameter tuple W W W , proving Theorem 4.4.
Convergence of Federated SSM Baselines
In this section, we first define and prove a set of lemmas required to instantiate standard federated optimization convergence results in terms of selective SSM parameters. We then provide the proof of Theorem B.5, and state the corresponding FedProx theorem.
Auxiliary Lemmas for SSM Federated Convergence
Rather than proving the FedAvg or FedProx convergence bounds directly, we first show how the generic smoothness, gradient second-moment, stochastic variance, and client heterogeneity quantities appearing in those bounds can be replaced by SSM-specific constants. In particular, we establish local control of the SSM gradient bound in Lemma B.1, prove the local smoothness constant L S S M , R L_{\mathrm{SSM},R} L SSM , R in Lemma 4.7, and derive the architecture-dependent quantities G S S M , R 2 G_{\mathrm{SSM},R}^{2} G SSM , R 2 , σ S S M , R , Ξ 2 \sigma_{\mathrm{SSM},R,\Xi}^{2} σ SSM , R , Ξ 2 , and Γ S S M , R 2 \Gamma_{\mathrm{SSM},R}^{2} Γ SSM , R 2 in Lemmas B.2, B.3, and B.4, respectively. These lemmas are then used in the remainder of this section to state the final convergence bounds for FedAvg and FedProx distributed learning baselines.
Local Lipschitz Continuity of the SSM Gradient Bound Lemma and Proof
Lemma B.1 (Local Lipschitz Continuity of the SSM Gradient Bound). Let W r W^r W r be some fixed reference parameter tuple and let 0 < R < ∞ 0<R<\infty 0 < R < ∞ be a finite radius such that N R ( W r ) ⊆ S γ , δ \mathcal{N}_R(W^r)\subseteq\mathcal{S}_{\gamma,\delta} N R ( W r ) ⊆ S γ , δ . Suppose Assumptions 4.2 and 4.3 hold with the neighborhood-uniform constants specified in Section 4.2.
Let G S S M ( W ) \mathcal{G}_{\mathrm{SSM}}(W) G SSM ( W ) be the bounding function defined in Theorem 4.4 . Then G S S M \mathcal{G}_{\mathrm{SSM}} G SSM is Lipschitz continuous on N R ( W r ) \mathcal{N}_{R}(W^{r}) N R ( W r ) .
Specifically, with N N N , D D D , L ℓ L_{\ell} L ℓ , L x L_{x} L x , γ \gamma γ , δ \delta δ fixed, there exists a finite constant L G S S M , R > 0 L_{\mathcal{G}_{\mathrm{SSM}},R} > 0 L G SSM , R > 0 , depending only on R R R and the block norms ∥ W Δ r ∥ 2 \lVert W^{r}_{\Delta}\rVert_{2} ∥ W Δ r ∥ 2 , ∥ W B r ∥ 2 \lVert W^{r}_{B}\rVert_{2} ∥ W B r ∥ 2 , ∥ W C r ∥ 2 \lVert W^{r}_{C}\rVert_{2} ∥ W C r ∥ 2 , and ∥ A r ∥ 2 \lVert A^{r}\rVert_{2} ∥ A r ∥ 2 , such that for all W , V ∈ N R ( W r ) W,V \in\mathcal{N}_{R}(W^{r}) W , V ∈ N R ( W r ) ,
∣ G S S M ( W ) − G S S M ( V ) ∣ ≤ L G S S M , R ∥ W − V ∥ F . (53) \left\lvert\mathcal{G}_{\mathrm{SSM}}(W)-\mathcal{G}_{\mathrm{SSM}}(V)\right\rvert\leq L_{\mathcal{G}_{\mathrm{SSM}},R}\lVert W-V\rVert_{F}. \tag*{(53)} ∣ G SSM ( W ) − G SSM ( V ) ∣ ≤ L G SSM , R ∥ W − V ∥ F . (53)
Proof of Lemma B.1: Fix the reference tuple W r W^{r} W r and the radius R R R . Throughout this proof, N N N , D D D , L ℓ L_{\ell} L ℓ , L x L_{x} L x , γ \gamma γ , δ \delta δ are constant as W W W and V V V vary over the neighborhood N R ( W r ) \mathcal{N}_{R}(W^{r}) N R ( W r ) . In particular, ρ = exp ( − γ δ ) \rho=\exp(-\gamma\delta) ρ = exp ( − γ δ ) is the same for both parameter tuples.
First, by Theorem 4.4 , G S S M ( W ) \mathcal{G}_{\mathrm{SSM}}(W) G SSM ( W ) has an explicit definition:
G S S M ( W ) = L ℓ L x ( K B K Δ N D 1 − ρ + ∥ W C ∥ 2 K W 1 − ρ ) , (54) \mathcal{G}_{\mathrm{SSM}}(W)=L_{\ell}L_{x}\left(K_{B}K_{\Delta}\frac{\sqrt{ND}}{1-\rho}+\lVert W_{C}\rVert_{2}\frac{K_{W}}{1-\rho}\right), \tag*{(54)} G SSM ( W ) = L ℓ L x ( K B K Δ 1 − ρ N D + ∥ W C ∥ 2 1 − ρ K W ) , (54)
where W W W is the tuple of selective SSM weights ( W Δ , W B , W C , A ) (W_{\Delta},W_{B},W_{C},A) ( W Δ , W B , W C , A ) .
Since W = ( W Δ , W B , W C , A ) W=(W_{\Delta},W_{B},W_{C},A) W = ( W Δ , W B , W C , A ) is a parameter tuple, given another parameter tuple V = ( V Δ , V B , V C , V A ) V=(V_{\Delta},V_{B},V_{C},V_{A}) V = ( V Δ , V B , V C , V A ) we use the block Frobenius norm:
∥ W − V ∥ F 2 : = ∥ W Δ − V Δ ∥ F 2 + ∥ W B − V B ∥ F 2 + ∥ W C − V C ∥ F 2 + ∥ A − V A ∥ F 2 . (55) \lVert W-V\rVert_{F}^{2}:=\lVert W_{\Delta}-V_{\Delta}\rVert_{F}^{2}+\lVert W_{B}-V_{B}\rVert_{F}^{2}+\lVert W_{C}-V_{C}\rVert_{F}^{2}+\lVert A-V_{A}\rVert_{F}^{2}. \tag*{(55)} ∥ W − V ∥ F 2 := ∥ W Δ − V Δ ∥ F 2 + ∥ W B − V B ∥ F 2 + ∥ W C − V C ∥ F 2 + ∥ A − V A ∥ F 2 . (55)
For each parameter block X ∈ { Δ , B , C , A } X\in\{\Delta,B,C,A\} X ∈ { Δ , B , C , A } , let W X W_{X} W X denote the corresponding block of W W W , and let W X r W^{r}_{X} W X r denote the corresponding block of the central model W r W^{r} W r (for notational uniformity, we write W A : = A W_{A}:=A W A := A and W A r : = A r W^{r}_{A}:=A^{r} W A r := A r ). Given the central model W r W^{r} W r , we evaluate the maximum possible value of a norm of each parameter matrix within the neighborhood N R ( W r ) \mathcal{N}_{R}(W^{r}) N R ( W r ) . Since W ∈ N R ( W r ) W\in\mathcal{N}_{R}(W^{r}) W ∈ N R ( W r ) , each block satisfies
∥ W X − W X r ∥ F ≤ ∥ W − W r ∥ F ≤ R . (56) \lVert W_{X}-W^{r}_{X}\rVert_{F}\leq\lVert W-W^{r}\rVert_{F}\leq R. \tag*{(56)} ∥ W X − W X r ∥ F ≤ ∥ W − W r ∥ F ≤ R . (56)
Therefore, by the triangle inequality and the fact that ∥ ⋅ ∥ 2 ≤ ∥ ⋅ ∥ F \lVert\cdot\rVert_{2}\leq\lVert\cdot\rVert_{F} ∥ ⋅ ∥ 2 ≤ ∥ ⋅ ∥ F ,
∥ W X ∥ 2 ≤ ∥ W X r ∥ 2 + ∥ W X − W X r ∥ 2 ≤ ∥ W X r ∥ 2 + ∥ W X − W X r ∥ F ≤ ∥ W X r ∥ 2 + R . (57) \lVert W_{X}\rVert_{2}\leq\lVert W^{r}_{X}\rVert_{2}+\lVert W_{X}-W^{r}_{X}\rVert_{2}\leq\lVert W^{r}_{X}\rVert_{2}+\lVert W_{X}-W^{r}_{X}\rVert_{F}\leq\lVert W^{r}_{X}\rVert_{2}+R. \tag*{(57)} ∥ W X ∥ 2 ≤ ∥ W X r ∥ 2 + ∥ W X − W X r ∥ 2 ≤ ∥ W X r ∥ 2 + ∥ W X − W X r ∥ F ≤ ∥ W X r ∥ 2 + R . (57)
Next, define:
M Δ : = ∥ W Δ r ∥ 2 + R (58) M_{\Delta}:=\lVert W^{r}_{\Delta}\rVert_{2}+R \tag*{(58)} M Δ := ∥ W Δ r ∥ 2 + R (58)
M B : = ∥ W B r ∥ 2 + R (59) M_{B}:=\lVert W^{r}_{B}\rVert_{2}+R \tag*{(59)} M B := ∥ W B r ∥ 2 + R (59)
M C : = ∥ W C r ∥ 2 + R (60) M_{C}:=\lVert W^{r}_{C}\rVert_{2}+R \tag*{(60)} M C := ∥ W C r ∥ 2 + R (60)
M A : = ∥ A r ∥ 2 + R (61) M_{A}:=\lVert A^{r}\rVert_{2}+R \tag*{(61)} M A := ∥ A r ∥ 2 + R (61)
Then, by (56), it is true that for all individual matrices W B W_{B} W B , W C W_{C} W C , W Δ W_{\Delta} W Δ , A A A , the following holds:
∥ W Δ ∥ 2 ≤ M Δ (62) \lVert W_{\Delta}\rVert_{2}\leq M_{\Delta} \tag*{(62)} ∥ W Δ ∥ 2 ≤ M Δ (62)
∥ W B ∥ 2 ≤ M B (63) \lVert W_{B}\rVert_{2}\leq M_{B} \tag*{(63)} ∥ W B ∥ 2 ≤ M B (63)
∥ W C ∥ 2 ≤ M C (64) \lVert W_{C}\rVert_{2}\leq M_{C} \tag*{(64)} ∥ W C ∥ 2 ≤ M C (64)
∥ A ∥ 2 ≤ M A (65) \lVert A\rVert_{2}\leq M_{A} \tag*{(65)} ∥ A ∥ 2 ≤ M A (65)
The same bounds also hold for the corresponding blocks of any V ∈ N R ( W r ) V\in\mathcal{N}_{R}(W^{r}) V ∈ N R ( W r ) .
We further define:
M K Δ : = M Δ L x + D log ( 2 ) (66) M_{K_{\Delta}}:=M_{\Delta}L_{x}+\sqrt{D}\log(2) \tag*{(66)} M K Δ := M Δ L x + D log ( 2 ) (66)
M K B : = M B L x 2 (67) M_{K_{B}}:=M_{B}L_{x}^{2} \tag*{(67)} M K B := M B L x 2 (67)
Next, we evaluate the Lipschitz constants for individual components of the expression for G S S M ( W ) \mathcal{G}_{\mathrm{SSM}}(W) G SSM ( W ) . We’ll utilize the property that: ∣ ∥ X ∥ 2 − ∥ Y ∥ 2 ∣ ≤ ∥ X − Y ∥ 2 ≤ ∥ X − Y ∥ F \left\lvert\lVert X\rVert_{2}-\lVert Y\rVert_{2}\right\rvert\leq\lVert X-Y\rVert_{2}\leq\lVert X-Y\rVert_{F} ∣ ∥ X ∥ 2 − ∥ Y ∥ 2 ∣ ≤ ∥ X − Y ∥ 2 ≤ ∥ X − Y ∥ F .
First:
∣ K Δ ( W ) − K Δ ( V ) ∣ ≤ L x ∣ ∥ W Δ ∥ 2 − ∥ V Δ ∥ 2 ∣ ≤ L x ∥ W Δ − V Δ ∥ F ≤ L x ∥ W − V ∥ F (68) \left\lvert K_{\Delta}(W)-K_{\Delta}(V)\right\rvert\leq L_{x}\left\lvert\lVert W_{\Delta}\rVert_{2}-\lVert V_{\Delta}\rVert_{2}\right\rvert\leq L_{x}\lVert W_{\Delta}-V_{\Delta}\rVert_{F}\leq L_{x}\lVert W-V\rVert_{F} \tag*{(68)} ∣ K Δ ( W ) − K Δ ( V ) ∣ ≤ L x ∣ ∥ W Δ ∥ 2 − ∥ V Δ ∥ 2 ∣ ≤ L x ∥ W Δ − V Δ ∥ F ≤ L x ∥ W − V ∥ F (68)
∣ K B ( W ) − K B ( V ) ∣ ≤ L x 2 ∣ ∥ W B ∥ 2 − ∥ V B ∥ 2 ∣ ≤ L x 2 ∥ W B − V B ∥ F ≤ L x 2 ∥ W − V ∥ F (69) \left\lvert K_{B}(W)-K_{B}(V)\right\rvert\leq L_{x}^{2}\left\lvert\lVert W_{B}\rVert_{2}-\lVert V_{B}\rVert_{2}\right\rvert\leq L_{x}^{2}\lVert W_{B}-V_{B}\rVert_{F}\leq L_{x}^{2}\lVert W-V\rVert_{F} \tag*{(69)} ∣ K B ( W ) − K B ( V ) ∣ ≤ L x 2 ∣ ∥ W B ∥ 2 − ∥ V B ∥ 2 ∣ ≤ L x 2 ∥ W B − V B ∥ F ≤ L x 2 ∥ W − V ∥ F (69)
So the Lipschitz constants for the base functions are:
L K Δ = L x (70) L_{K_{\Delta}} = L_x \tag*{(70)} L K Δ = L x (70)
L K B = L x 2 (71) L_{K_B} = L_x^2 \tag*{(71)} L K B = L x 2 (71)
L C = 1 (for the term ∥ W C ∥ 2 ) (72) L_C = 1 \text{ (for the term } \lVert W_C \rVert_2\text{)} \tag*{(72)} L C = 1 (for the term ∥ W C ∥ 2 ) (72)
L A = 1 (for the term ∥ A ∥ 2 ) (73) L_A = 1 \text{ (for the term } \lVert A \rVert_2\text{)} \tag*{(73)} L A = 1 (for the term ∥ A ∥ 2 ) (73)
Next, by the product rule for Lipschitz functions, if ∣ f ∣ ≤ M f \lvert f\rvert\le M_f ∣ f ∣ ≤ M f and ∣ g ∣ ≤ M g \lvert g\rvert\le M_g ∣ g ∣ ≤ M g and are Lipschitz with constants L f L_f L f and L g L_g L g on N R ( W r ) \mathcal{N}_R(W^r) N R ( W r ) , then f g fg f g is Lipschitz with constant
L f g = M f L g + M g L f . (74) L_{fg} = M_fL_g + M_gL_f. \tag*{(74)} L f g = M f L g + M g L f . (74)
Given that, let
P 1 ( W ) : = K B ( W ) K Δ ( W ) . (75) P_1(W) := K_B(W)K_{\Delta}(W). \tag*{(75)} P 1 ( W ) := K B ( W ) K Δ ( W ) . (75)
Then
L P 1 = M K B L K Δ + M K Δ L K B = M K B L x + M K Δ L x 2 , (76) L_{P_1} = M_{K_B}L_{K_{\Delta}} + M_{K_{\Delta}}L_{K_B} = M_{K_B}L_x + M_{K_{\Delta}}L_x^2, \tag*{(76)} L P 1 = M K B L K Δ + M K Δ L K B = M K B L x + M K Δ L x 2 , (76)
and
M P 1 = M K B M K Δ . (77) M_{P_1} = M_{K_B}M_{K_{\Delta}}. \tag*{(77)} M P 1 = M K B M K Δ . (77)
Next, define
P 2 ( W ) : = K Δ ( W ) + D ∥ A ∥ 2 L x . (78) P_2(W) := K_{\Delta}(W) + \sqrt{D}\lVert A\rVert_2L_x. \tag*{(78)} P 2 ( W ) := K Δ ( W ) + D ∥ A ∥ 2 L x . (78)
Then, by the sum rule of Lipschitz functions:
L P 2 = L K Δ + D L A L x = L x + D L x , (79) L_{P_2} = L_{K_{\Delta}} + \sqrt{D}L_AL_x = L_x + \sqrt{D}L_x, \tag*{(79)} L P 2 = L K Δ + D L A L x = L x + D L x , (79)
and
M P 2 = M K Δ + D M A L x . (80) M_{P_2} = M_{K_{\Delta}} + \sqrt{D}M_AL_x. \tag*{(80)} M P 2 = M K Δ + D M A L x . (80)
Continuing, define
P 3 ( W ) : = P 1 ( W ) P 2 ( W ) . (81) P_3(W) := P_1(W)P_2(W). \tag*{(81)} P 3 ( W ) := P 1 ( W ) P 2 ( W ) . (81)
Then
L P 3 = M P 1 L P 2 + M P 2 L P 1 , (82) L_{P_3} = M_{P_1}L_{P_2} + M_{P_2}L_{P_1}, \tag*{(82)} L P 3 = M P 1 L P 2 + M P 2 L P 1 , (82)
and
M P 3 = M P 1 M P 2 . (83) M_{P_3} = M_{P_1}M_{P_2}. \tag*{(83)} M P 3 = M P 1 M P 2 . (83)
Given these definitions, and using the definition of K W K_W K W from Theorem 4.4 , a valid Lipschitz constant for K W K_W K W is:
L K W = N D ρ 1 − ρ L P 3 + L x 3 N + L x 3 D , (84) L_{K_W} = ND\frac{\rho}{1-\rho}L_{P_3} + L_x^3\sqrt{N} + L_x^3\sqrt{D}, \tag*{(84)} L K W = N D 1 − ρ ρ L P 3 + L x 3 N + L x 3 D , (84)
and the upper bound for K W ( W ) K_W(W) K W ( W ) is:
M K W = N D ρ 1 − ρ M P 3 + L x 2 N M K Δ + L x D M K B . (85) M_{K_W} = ND\frac{\rho}{1-\rho}M_{P_3} + L_x^2\sqrt{N}M_{K_{\Delta}} + L_x\sqrt{D}M_{K_B}. \tag*{(85)} M K W = N D 1 − ρ ρ M P 3 + L x 2 N M K Δ + L x D M K B . (85)
Finally, define
P 4 ( W ) : = ∥ W C ∥ 2 K W ( W ) . (86) P_4(W) := \lVert W_C\rVert_2K_W(W). \tag*{(86)} P 4 ( W ) := ∥ W C ∥ 2 K W ( W ) . (86)
Since ∥ W C ∥ 2 \lVert W_C\rVert_2 ∥ W C ∥ 2 is bounded by M C M_C M C and has Lipschitz constant L C = 1 L_C = 1 L C = 1 , the product rule gives
L P 4 = M C L K W + M K W . (87) L_{P_4} = M_CL_{K_W} + M_{K_W}. \tag*{(87)} L P 4 = M C L K W + M K W . (87)
Combining everything together and using linearity, we get the final Lipschitz constant for G S S M ( W ) \mathcal{G}_{\mathrm{SSM}}(W) G SSM ( W ) :
L G S S M , R = L ℓ L x ( N D 1 − ρ L P 1 + 1 1 − ρ L P 4 ) . (88) L_{\mathcal{G}_{\mathrm{SSM},R}} = L_{\ell}L_x\left(\frac{\sqrt{ND}}{1-\rho}L_{P_1} + \frac{1}{1-\rho}L_{P_4}\right). \tag*{(88)} L G SSM , R = L ℓ L x ( 1 − ρ N D L P 1 + 1 − ρ 1 L P 4 ) . (88)
Because R < ∞ R < \infty R < ∞ , the block norms of W r W^r W r are finite, and ρ < 1 \rho< 1 ρ < 1 , all constants M K Δ M_{K_{\Delta}} M K Δ , M K B M_{K_B} M K B , M P 1 M_{P_1} M P 1 , M P 2 M_{P_2} M P 2 , M P 3 M_{P_3} M P 3 , M K W M_{K_W} M K W , L P 1 L_{P_1} L P 1 , L P 2 L_{P_2} L P 2 , L P 3 L_{P_3} L P 3 , L K W L_{K_W} L K W , and L P 4 L_{P_4} L P 4 are finite. As such, L G S S M , R < ∞ L_{\mathcal{G}_{\mathrm{SSM},R}} < \infty L G SSM , R < ∞ , and ∀ W , V ∈ N R ( W r ) \forall W,V \in\mathcal{N}_R(W^r) ∀ W , V ∈ N R ( W r ) ,
∣ G S S M ( W ) − G S S M ( V ) ∣ ≤ L G S S M , R ∥ W − V ∥ F . (89) \left\lvert\mathcal{G}_{\mathrm{SSM}}(W) - \mathcal{G}_{\mathrm{SSM}}(V)\right\rvert\le L_{\mathcal{G}_{\mathrm{SSM},R}}\lVert W - V\rVert_F. \tag*{(89)} ∣ G SSM ( W ) − G SSM ( V ) ∣ ≤ L G SSM , R ∥ W − V ∥ F . (89)
This proves that G S S M ( W ) \mathcal{G}_{\mathrm{SSM}}(W) G SSM ( W ) is locally Lipschitz continuous on N R ( W r ) \mathcal{N}_R(W^r) N R ( W r ) .
Local SSM Smoothness Lemma Proof
Proof of Lemma 4.7: Fix the reference tuple W r W^r W r and the radius R R R from the lemma. Let ξ = ( x , y ∗ ) ∈ Z \xi= (x,y^*) \in\mathcal{Z} ξ = ( x , y ∗ ) ∈ Z be an arbitrary admissible sequence pair of finite length S ≥ 1 S \ge1 S ≥ 1 . The inputs and targets are held fixed when differentiating with respect to the model parameters. For this fixed sequence pair, we use a simplified notation for h t ( W ; x ) h_t(W;x) h t ( W ; x ) , y t ( W ; x ) y_t(W;x) y t ( W ; x ) , and ℓ t ( y t ( W ; x ) , y t ∗ ) \ell_t(y_t(W;x),y_t^*) ℓ t ( y t ( W ; x ) , y t ∗ ) as h t ( W ) h_t(W) h t ( W ) , y t ( W ) y_t(W) y t ( W ) , and ℓ t ( y t ( W ) ) \ell_t(y_t(W)) ℓ t ( y t ( W )) , respectively.
Throughout the proof, L ℓ L_\ell L ℓ , H ℓ H_\ell H ℓ , L x L_x L x , γ \gamma γ , δ \delta δ are fixed uniformly over N R ( W r ) N_R(W^r) N R ( W r ) , with ρ = exp ( − γ δ ) < 1 \rho= \exp(-\gamma\delta) < 1 ρ = exp ( − γ δ ) < 1 . The estimates below hold for every W ∈ N R ( W r ) W \in N_R(W^r) W ∈ N R ( W r ) , every finite sequence length S ≥ 1 S \ge1 S ≥ 1 , every admissible length-S S S pair ξ ∈ Z \xi\in\mathcal{Z} ξ ∈ Z , and every token position t ≤ S t \le S t ≤ S , with constants independent of S S S , ξ \xi ξ , and t t t .
We use the parameter envelopes from (57)–(60) and the induced bounds from (66), (65), and (84).
For convenience, we define:
H R : = M K B M K Δ N D 1 − ρ (90) H_R := M_{K_B} M_{K_\Delta} \frac{\sqrt{ND}}{1-\rho} \tag*{(90)} H R := M K B M K Δ 1 − ρ N D (90)
J R : = M K W 1 − ρ (91) J_R := \frac{M_{K_W}}{1-\rho} \tag*{(91)} J R := 1 − ρ M K W (91)
By the definition of M X M_X M X as an upper-bound and from the Proof of Theorem 4.4 , we know the following hold:
∥ h t ( W ) ∥ F ≤ K B ( W ) K Δ ( W ) N D 1 − ρ ≤ H R (92) \lVert h_t(W) \rVert_F \le K_B(W) K_\Delta(W) \frac{\sqrt{ND}}{1-\rho} \le H_R \tag*{(92)} ∥ h t ( W ) ∥ F ≤ K B ( W ) K Δ ( W ) 1 − ρ N D ≤ H R (92)
∥ ∂ h t ( W ) ∂ W ∥ F ≤ K W ( W ) 1 − ρ ≤ J R (93) \left\lVert\frac{\partial h_t(W)}{\partial W} \right\rVert_F \le\frac{K_W(W)}{1-\rho} \le J_R \tag*{(93)} ∂ W ∂ h t ( W ) F ≤ 1 − ρ K W ( W ) ≤ J R (93)
Given this setup, we begin by bounding D 2 h t D^2 h_t D 2 h t where D D D is the Fréchet derivative defined:
D F ( W ) [ U ] : = d d ϵ F ( W + ϵ U ) ∣ ϵ = 0 DF(W)[U] := \left.\frac{d}{d\epsilon}F(W+\epsilon U)\right|_{\epsilon=0} D F ( W ) [ U ] := d ϵ d F ( W + ϵ U ) ϵ = 0
D 2 F ( W ) [ U , V ] : = ∂ 2 ∂ ϵ ∂ ζ F ( W + ϵ U + ζ V ) ∣ ϵ = ζ = 0 D^2F(W)[U,V] := \left.\frac{\partial^2}{\partial\epsilon\partial\zeta}F(W+\epsilon U+\zeta V)\right|_{\epsilon=\zeta=0} D 2 F ( W ) [ U , V ] := ∂ ϵ ∂ ζ ∂ 2 F ( W + ϵ U + ζ V ) ϵ = ζ = 0
with U , V U,V U , V being unit perturbations. We also utilize the operator norm defined ∥ D Ψ ( W ) ∥ o p : = sup ∥ U ∥ F = 1 ∥ D Ψ ( W ) [ U ] ∥ F \lVert D\Psi(W)\rVert_{\mathrm{op}} := \sup_{\lVert U\rVert_F=1}\lVert D\Psi(W)[U]\rVert_F ∥ D Ψ ( W ) ∥ op := sup ∥ U ∥ F = 1 ∥ D Ψ ( W ) [ U ] ∥ F . Note that after flattening the input and output tensors, this corresponds to the usual spectral norm of the corresponding Jacobian matrix. Parameter Hessians are represented as matrices using the vectorization of parameter blocks introduced in the single-layer proof. Their operator norms are taken with respect to the corresponding Euclidean norm, which equals the block Frobenius norm before vectorization.
Let U = ( U Δ , U B , U C , U A ) U=(U_\Delta,U_B,U_C,U_A) U = ( U Δ , U B , U C , U A ) and V = ( V Δ , V B , V C , V A ) V=(V_\Delta,V_B,V_C,V_A) V = ( V Δ , V B , V C , V A ) be arbitrary block perturbations satisfying
∥ U ∥ F = ∥ V ∥ F = 1. (94) \lVert U\rVert_F=\lVert V\rVert_F=1. \tag*{(94)} ∥ U ∥ F = ∥ V ∥ F = 1. (94)
Each perturbation block therefore has Frobenius norm at most one. Since Δ t \Delta_t Δ t depends only on W Δ W_\Delta W Δ , we write D Δ t ( W ) [ U Δ ] D\Delta_t(W)[U_\Delta] D Δ t ( W ) [ U Δ ] as shorthand for D Δ t ( W ) [ ( U Δ , 0 , 0 , 0 ) ] D\Delta_t(W)[(U_\Delta,0,0,0)] D Δ t ( W ) [( U Δ , 0 , 0 , 0 )] , and use the analogous convention for its second derivative.
By the property of the operator norm (with Ψ ( W ) = h t ( W ) \Psi(W)=h_t(W) Ψ ( W ) = h t ( W ) ),
∥ D h t ( W ) [ U ] ∥ F ≤ ∥ D h t ( W ) ∥ o p ∥ U ∥ F = ∥ D h t ( W ) ∥ o p ≤ ∥ ∂ h t ( W ) ∂ W ∥ F ≤ J R . (95) \lVert Dh_t(W)[U]\rVert_F \le\lVert Dh_t(W)\rVert_{\mathrm{op}}\lVert U\rVert_F = \lVert Dh_t(W)\rVert_{\mathrm{op}} \le\left\lVert\frac{\partial h_t(W)}{\partial W}\right\rVert_F \le J_R. \tag*{(95)} ∥ D h t ( W ) [ U ] ∥ F ≤ ∥ D h t ( W ) ∥ op ∥ U ∥ F = ∥ D h t ( W ) ∥ op ≤ ∂ W ∂ h t ( W ) F ≤ J R . (95)
The same argument gives
∥ D h t ( W ) [ V ] ∥ F ≤ J R . (96) \lVert Dh_t(W)[V]\rVert_F \le J_R. \tag*{(96)} ∥ D h t ( W ) [ V ] ∥ F ≤ J R . (96)
and therefore it follows that
∥ D h t ( W ) [ U ] ∥ F ≤ J R , ∥ D h t ( W ) [ V ] ∥ F ≤ J R . (97) \lVert Dh_t(W)[U]\rVert_F \le J_R,\qquad\lVert Dh_t(W)[V]\rVert_F \le J_R. \tag*{(97)} ∥ D h t ( W ) [ U ] ∥ F ≤ J R , ∥ D h t ( W ) [ V ] ∥ F ≤ J R . (97)
Next, let b t ( W ) : = B ˉ t ( W ) diag ( x t ) b_t(W) := \bar{B}_t(W)\operatorname{diag}(x_t) b t ( W ) := B ˉ t ( W ) diag ( x t ) , then the hidden state recurrence equation becomes:
h t ( W ) = A ˉ t ( W ) ⊙ h t − 1 ( W ) + b t ( W ) , (98) h_t(W) = \bar{A}_t(W) \odot h_{t-1}(W) + b_t(W), \tag*{(98)} h t ( W ) = A ˉ t ( W ) ⊙ h t − 1 ( W ) + b t ( W ) , (98)
and taking the first Fréchet derivative in direction U U U gives:
D h t ( W ) [ U ] = D A ˉ t ( W ) [ U ] ⊙ h t − 1 ( W ) + A ˉ t ( W ) ⊙ D h t − 1 ( W ) [ U ] + D b t ( W ) [ U ] . (99) D h_t(W)[U] = D\bar{A}_t(W)[U] \odot h_{t-1}(W) + \bar{A}_t(W) \odot D h_{t-1}(W)[U] + D b_t(W)[U]. \tag*{(99)} D h t ( W ) [ U ] = D A ˉ t ( W ) [ U ] ⊙ h t − 1 ( W ) + A ˉ t ( W ) ⊙ D h t − 1 ( W ) [ U ] + D b t ( W ) [ U ] . (99)
Taking a second Fréchet derivative in direction V V V gives
D 2 h t ( W ) [ U , V ] = D 2 A ˉ t ( W ) [ U , V ] ⊙ h t − 1 ( W ) + D A ˉ t ( W ) [ U ] ⊙ D h t − 1 ( W ) [ V ] + D A ˉ t ( W ) [ V ] ⊙ D h t − 1 ( W ) [ U ] + A ˉ t ( W ) ⊙ D 2 h t − 1 ( W ) [ U , V ] + D 2 b t ( W ) [ U , V ] . (100) \begin{aligned}
D^2 h_t(W)[U,V] ={}& D^2\bar{A}_t(W)[U,V] \odot h_{t-1}(W) \\
&+ D\bar{A}_t(W)[U] \odot D h_{t-1}(W)[V] \\
&+ D\bar{A}_t(W)[V] \odot D h_{t-1}(W)[U] \\
&+ \bar{A}_t(W) \odot D^2 h_{t-1}(W)[U,V] \\
&+ D^2 b_t(W)[U,V]. \tag*{(100)}
\end{aligned} D 2 h t ( W ) [ U , V ] = D 2 A ˉ t ( W ) [ U , V ] ⊙ h t − 1 ( W ) + D A ˉ t ( W ) [ U ] ⊙ D h t − 1 ( W ) [ V ] + D A ˉ t ( W ) [ V ] ⊙ D h t − 1 ( W ) [ U ] + A ˉ t ( W ) ⊙ D 2 h t − 1 ( W ) [ U , V ] + D 2 b t ( W ) [ U , V ] . (100)
Next, taking the Frobenius norms, and by the triangle inequality, it follows that
∥ D 2 h t ( W ) [ U , V ] ∥ F ≤ ∥ D 2 A ˉ t ( W ) [ U , V ] ⊙ h t − 1 ( W ) ∥ F + ∥ D A ˉ t ( W ) [ U ] ⊙ D h t − 1 ( W ) [ V ] ∥ F + ∥ D A ˉ t ( W ) [ V ] ⊙ D h t − 1 ( W ) [ U ] ∥ F + ∥ A ˉ t ( W ) ⊙ D 2 h t − 1 ( W ) [ U , V ] ∥ F + ∥ D 2 b t ( W ) [ U , V ] ∥ F . (101) \begin{aligned}
\lVert D^2 h_t(W)[U,V]\rVert_F \le{}& \lVert D^2\bar{A}_t(W)[U,V] \odot h_{t-1}(W)\rVert_F \\
&+ \lVert D\bar{A}_t(W)[U] \odot D h_{t-1}(W)[V]\rVert_F \\
&+ \lVert D\bar{A}_t(W)[V] \odot D h_{t-1}(W)[U]\rVert_F \\
&+ \lVert\bar{A}_t(W) \odot D^2 h_{t-1}(W)[U,V]\rVert_F \\
&+ \lVert D^2 b_t(W)[U,V]\rVert_F. \tag*{(101)}
\end{aligned} ∥ D 2 h t ( W ) [ U , V ] ∥ F ≤ ∥ D 2 A ˉ t ( W ) [ U , V ] ⊙ h t − 1 ( W ) ∥ F + ∥ D A ˉ t ( W ) [ U ] ⊙ D h t − 1 ( W ) [ V ] ∥ F + ∥ D A ˉ t ( W ) [ V ] ⊙ D h t − 1 ( W ) [ U ] ∥ F + ∥ A ˉ t ( W ) ⊙ D 2 h t − 1 ( W ) [ U , V ] ∥ F + ∥ D 2 b t ( W ) [ U , V ] ∥ F . (101)
Using ∥ X ⊙ Y ∥ F ≤ ∥ X ∥ F ∥ Y ∥ F \lVert X \odot Y\rVert_F \le\lVert X\rVert_F\lVert Y\rVert_F ∥ X ⊙ Y ∥ F ≤ ∥ X ∥ F ∥ Y ∥ F and ∥ X ⊙ Y ∥ F ≤ ∥ X ∥ max ∥ Y ∥ F \lVert X \odot Y\rVert_F \le\lVert X\rVert_{\max}\lVert Y\rVert_F ∥ X ⊙ Y ∥ F ≤ ∥ X ∥ m a x ∥ Y ∥ F , we obtain:
∥ D 2 h t ( W ) [ U , V ] ∥ F ≤ ∥ D 2 A ˉ t ( W ) [ U , V ] ∥ F ∥ h t − 1 ( W ) ∥ F + ∥ D A ˉ t ( W ) [ U ] ∥ F ∥ D h t − 1 ( W ) [ V ] ∥ F + ∥ D A ˉ t ( W ) [ V ] ∥ F ∥ D h t − 1 ( W ) [ U ] ∥ F + ∥ A ˉ t ( W ) ∥ max ∥ D 2 h t − 1 ( W ) [ U , V ] ∥ F + ∥ D 2 b t ( W ) [ U , V ] ∥ F . (102) \begin{aligned}
\lVert D^2 h_t(W)[U,V]\rVert_F \le{}& \lVert D^2\bar{A}_t(W)[U,V]\rVert_F \lVert h_{t-1}(W)\rVert_F \\
&+ \lVert D\bar{A}_t(W)[U]\rVert_F \lVert D h_{t-1}(W)[V]\rVert_F \\
&+ \lVert D\bar{A}_t(W)[V]\rVert_F \lVert D h_{t-1}(W)[U]\rVert_F \\
&+ \lVert\bar{A}_t(W)\rVert_{\max}\lVert D^2 h_{t-1}(W)[U,V]\rVert_F \\
&+ \lVert D^2 b_t(W)[U,V]\rVert_F. \tag*{(102)}
\end{aligned} ∥ D 2 h t ( W ) [ U , V ] ∥ F ≤ ∥ D 2 A ˉ t ( W ) [ U , V ] ∥ F ∥ h t − 1 ( W ) ∥ F + ∥ D A ˉ t ( W ) [ U ] ∥ F ∥ D h t − 1 ( W ) [ V ] ∥ F + ∥ D A ˉ t ( W ) [ V ] ∥ F ∥ D h t − 1 ( W ) [ U ] ∥ F + ∥ A ˉ t ( W ) ∥ m a x ∥ D 2 h t − 1 ( W ) [ U , V ] ∥ F + ∥ D 2 b t ( W ) [ U , V ] ∥ F . (102)
Then, we already derived the bounds:
∥ h t − 1 ( W ) ∥ F ≤ H R ∥ D h t − 1 ( W ) [ U ] ∥ F ≤ J R ∥ D h t − 1 ( W ) [ V ] ∥ F ≤ J R , \lVert h_{t-1}(W)\rVert_F \le H_R \qquad\lVert D h_{t-1}(W)[U]\rVert_F \le J_R \qquad\lVert D h_{t-1}(W)[V]\rVert_F \le J_R, ∥ h t − 1 ( W ) ∥ F ≤ H R ∥ D h t − 1 ( W ) [ U ] ∥ F ≤ J R ∥ D h t − 1 ( W ) [ V ] ∥ F ≤ J R ,
and by Definition 4.1:
∥ A ˉ t ( W ) ∥ max ≤ ρ , \lVert\bar{A}_t(W)\rVert_{\max} \le\rho, ∥ A ˉ t ( W ) ∥ m a x ≤ ρ ,
so the bound becomes:
∥ D 2 h t ( W ) [ U , V ] ∥ F ≤ H R ∥ D 2 A ˉ t ( W ) [ U , V ] ∥ F + J R ∥ D A ˉ t ( W ) [ U ] ∥ F + J R ∥ D A ˉ t ( W ) [ V ] ∥ F + ρ ∥ D 2 h t − 1 ( W ) [ U , V ] ∥ F + ∥ D 2 b t ( W ) [ U , V ] ∥ F . (103) \begin{aligned}
\lVert D^2 h_t(W)[U,V]\rVert_F \le{}& H_R\lVert D^2\bar{A}_t(W)[U,V]\rVert_F \\
&+ J_R\lVert D\bar{A}_t(W)[U]\rVert_F + J_R\lVert D\bar{A}_t(W)[V]\rVert_F \\
&+ \rho\lVert D^2 h_{t-1}(W)[U,V]\rVert_F + \lVert D^2 b_t(W)[U,V]\rVert_F. \tag*{(103)}
\end{aligned} ∥ D 2 h t ( W ) [ U , V ] ∥ F ≤ H R ∥ D 2 A ˉ t ( W ) [ U , V ] ∥ F + J R ∥ D A ˉ t ( W ) [ U ] ∥ F + J R ∥ D A ˉ t ( W ) [ V ] ∥ F + ρ ∥ D 2 h t − 1 ( W ) [ U , V ] ∥ F + ∥ D 2 b t ( W ) [ U , V ] ∥ F . (103)
Next, we derive the three missing bounds in (102):
∥ D A ˉ t ( W ) [ U ] ∥ F , ∥ D 2 A ˉ t ( W ) [ U , V ] ∥ F , ∥ D 2 b t ( W ) [ U , V ] ∥ F (104) \lVert D\bar{A}_t(W)[U]\rVert_F,\qquad\lVert D^2\bar{A}_t(W)[U,V]\rVert_F,\qquad\lVert D^2 b_t(W)[U,V]\rVert_F \tag*{(104)} ∥ D A ˉ t ( W ) [ U ] ∥ F , ∥ D 2 A ˉ t ( W ) [ U , V ] ∥ F , ∥ D 2 b t ( W ) [ U , V ] ∥ F (104)
noting that the same upper bound applies to ∥ D A ˉ t ( W ) [ U ] ∥ F \lVert D\bar{A}_t(W)[U]\rVert_F ∥ D A ˉ t ( W ) [ U ] ∥ F and ∥ D A ˉ t ( W ) [ V ] ∥ F \lVert D\bar{A}_t(W)[V]\rVert_F ∥ D A ˉ t ( W ) [ V ] ∥ F .
We first derive bounds on the intermediate terms that comprise A ˉ t \bar{A}_t A ˉ t , and B ˉ t \bar{B}_t B ˉ t , starting with Δ t ( W ) \Delta_t(W) Δ t ( W ) .
From the definition of Δ t ( W ) \Delta_t(W) Δ t ( W ) :
D Δ t ( W ) [ U Δ ] = diag ( Softplus ′ ( W Δ x t ) ) U Δ x t , (105) D\Delta_t(W)[U_\Delta] = \operatorname{diag}\left(\operatorname{Softplus}'(W_\Delta x_t)\right) U_\Delta x_t, \tag*{(105)} D Δ t ( W ) [ U Δ ] = diag ( Softplus ′ ( W Δ x t ) ) U Δ x t , (105)
and since 0 ≤ Softplus ′ ( z ) ≤ 1 0 \le\operatorname{Softplus}'(z) \le1 0 ≤ Softplus ′ ( z ) ≤ 1 , it follows that:
∥ D Δ t ( W ) [ U Δ ] ∥ 2 ≤ ∥ U Δ x t ∥ 2 ≤ ∥ U Δ ∥ F ∥ x t ∥ 2 ≤ L x . (106) \lVert D\Delta_t(W)[U_\Delta]\rVert_2 \le\lVert U_\Delta x_t\rVert_2 \le\lVert U_\Delta\rVert_F\lVert x_t\rVert_2 \le L_x. \tag*{(106)} ∥ D Δ t ( W ) [ U Δ ] ∥ 2 ≤ ∥ U Δ x t ∥ 2 ≤ ∥ U Δ ∥ F ∥ x t ∥ 2 ≤ L x . (106)
Similarly,
D 2 Δ t ( W ) [ U Δ , V Δ ] = Softplus ′ ′ ( W Δ x t ) ⊙ ( U Δ x t ) ⊙ ( V Δ x t ) . (107) D^2\Delta_t(W)[U_\Delta,V_\Delta]=\operatorname{Softplus}^{\prime\prime}(W_\Delta x_t)\odot(U_\Delta x_t)\odot(V_\Delta x_t). \tag*{(107)} D 2 Δ t ( W ) [ U Δ , V Δ ] = Softplus ′′ ( W Δ x t ) ⊙ ( U Δ x t ) ⊙ ( V Δ x t ) . (107)
Since 0 ≤ Softplus ′ ′ ( z ) ≤ 1 / 4 0\le\operatorname{Softplus}^{\prime\prime}(z)\le1/4 0 ≤ Softplus ′′ ( z ) ≤ 1/4 , the bound becomes:
∥ D 2 Δ t ( W ) [ U Δ , V Δ ] ∥ 2 ≤ 1 4 ∥ ( U Δ x t ) ⊙ ( V Δ x t ) ∥ 2 ≤ 1 4 ∥ U Δ x t ∥ 2 ∥ V Δ x t ∥ 2 ≤ 1 4 L x 2 . \left\|D^2\Delta_t(W)[U_\Delta,V_\Delta]\right\|_2\le\frac{1}{4}\left\|(U_\Delta x_t)\odot(V_\Delta x_t)\right\|_2\le\frac{1}{4}\left\|U_\Delta x_t\right\|_2\left\|V_\Delta x_t\right\|_2\le\frac{1}{4}L_x^2. D 2 Δ t ( W ) [ U Δ , V Δ ] 2 ≤ 4 1 ∥ ( U Δ x t ) ⊙ ( V Δ x t ) ∥ 2 ≤ 4 1 ∥ U Δ x t ∥ 2 ∥ V Δ x t ∥ 2 ≤ 4 1 L x 2 .
These bounds allow us to bound D A ˉ t ( W ) [ U ] D\bar{A}_t(W)[U] D A ˉ t ( W ) [ U ] . We define an intermediate matrix
Z t ( W ) : = A Δ t ( W ) ⊤ , (108) Z_t(W):=A\Delta_t(W)^\top, \tag*{(108)} Z t ( W ) := A Δ t ( W ) ⊤ , (108)
and calculate its derivative
D Z t ( W ) [ U ] = U A Δ t ( W ) ⊤ + A ( D Δ t ( W ) [ U Δ ] ) ⊤ . (109) DZ_t(W)[U]=UA\Delta_t(W)^\top+A\left(D\Delta_t(W)[U_\Delta]\right)^\top. \tag*{(109)} D Z t ( W ) [ U ] = U A Δ t ( W ) ⊤ + A ( D Δ t ( W ) [ U Δ ] ) ⊤ . (109)
Next, using the property of Frobenius norm for outer product ∥ x y ⊤ ∥ F = ∥ x ∥ 2 ∥ y ∥ 2 \left\|xy^\top\right\|_F=\left\|x\right\|_2\left\|y\right\|_2 x y ⊤ F = ∥ x ∥ 2 ∥ y ∥ 2 , it follows that:
∥ D Z t ( W ) [ U ] ∥ F ≤ ∥ U A ∥ 2 ∥ Δ t ( W ) ∥ 2 + ∥ A ∥ 2 ∥ D Δ t ( W ) [ U Δ ] ∥ 2 ≤ M K Δ + M A L x . (110) \left\|DZ_t(W)[U]\right\|_F\le\left\|U_A\right\|_2\left\|\Delta_t(W)\right\|_2+\left\|A\right\|_2\left\|D\Delta_t(W)[U_\Delta]\right\|_2\le M K_\Delta+M_A L_x. \tag*{(110)} ∥ D Z t ( W ) [ U ] ∥ F ≤ ∥ U A ∥ 2 ∥ Δ t ( W ) ∥ 2 + ∥ A ∥ 2 ∥ D Δ t ( W ) [ U Δ ] ∥ 2 ≤ M K Δ + M A L x . (110)
This allows us to calculate:
∥ D A ˉ t ( W ) [ U ] ∥ F = ∥ A ˉ t ( W ) ⊙ D Z t ( W ) [ U ] ∥ F ≤ ∥ A ˉ t ( W ) ∥ max ∥ D Z t ( W ) [ U ] ∥ F ≤ ρ ( M K Δ + M A L x ) : = K A 1 , R (111) \begin{aligned}
\left\|D\bar{A}_t(W)[U]\right\|_F
&=\left\|\bar{A}_t(W)\odot DZ_t(W)[U]\right\|_F\\
&\le\left\|\bar{A}_t(W)\right\|_{\max}\left\|DZ_t(W)[U]\right\|_F\le\rho\left(MK_\Delta+M_A L_x\right):=K_{A_1,R} \tag*{(111)}
\end{aligned} D A ˉ t ( W ) [ U ] F = A ˉ t ( W ) ⊙ D Z t ( W ) [ U ] F ≤ A ˉ t ( W ) m a x ∥ D Z t ( W ) [ U ] ∥ F ≤ ρ ( M K Δ + M A L x ) := K A 1 , R (111)
Next, we bound ∥ D 2 A ˉ t ( W ) [ U , V ] ∥ F \left\|D^2\bar{A}_t(W)[U,V]\right\|_F D 2 A ˉ t ( W ) [ U , V ] F by differentiating D A ˉ t ( W ) [ U ] D\bar{A}_t(W)[U] D A ˉ t ( W ) [ U ] in direction V V V :
D 2 A ˉ t ( W ) [ U , V ] = A ˉ t ( W ) ⊙ ( D Z t ( W ) [ V ] ⊙ D Z t ( W ) [ U ] + D 2 Z t ( W ) [ U , V ] ) . (112) D^2\bar{A}_t(W)[U,V]=\bar{A}_t(W)\odot\left(DZ_t(W)[V]\odot DZ_t(W)[U]+D^2Z_t(W)[U,V]\right). \tag*{(112)} D 2 A ˉ t ( W ) [ U , V ] = A ˉ t ( W ) ⊙ ( D Z t ( W ) [ V ] ⊙ D Z t ( W ) [ U ] + D 2 Z t ( W ) [ U , V ] ) . (112)
To do that we first bound:
D 2 Z t ( W ) [ U , V ] = U A ( D Δ t ( W ) [ V Δ ] ) ⊤ + V A ( D Δ t ( W ) [ U Δ ] ) ⊤ + A ( D 2 Δ t ( W ) [ U Δ , V Δ ] ) ⊤ . (113) D^2Z_t(W)[U,V]=U_A\left(D\Delta_t(W)[V_\Delta]\right)^\top+V_A\left(D\Delta_t(W)[U_\Delta]\right)^\top+A\left(D^2\Delta_t(W)[U_\Delta,V_\Delta]\right)^\top. \tag*{(113)} D 2 Z t ( W ) [ U , V ] = U A ( D Δ t ( W ) [ V Δ ] ) ⊤ + V A ( D Δ t ( W ) [ U Δ ] ) ⊤ + A ( D 2 Δ t ( W ) [ U Δ , V Δ ] ) ⊤ . (113)
We then apply previously derived bounds to the individual components:
∥ D 2 Z t ( W ) [ U , V ] ∥ F ≤ ∥ U A ∥ 2 ∥ D Δ t ( W ) [ V Δ ] ∥ 2 + ∥ V A ∥ 2 ∥ D Δ t ( W ) [ U Δ ] ∥ 2 + ∥ A ∥ 2 ∥ D 2 Δ t ( W ) [ U Δ , V Δ ] ∥ 2 ≤ 2 L x + 1 4 M A L x 2 . (114) \begin{aligned}
\left\|D^2Z_t(W)[U,V]\right\|_F
&\le\left\|U_A\right\|_2\left\|D\Delta_t(W)[V_\Delta]\right\|_2\\
&\quad+\left\|V_A\right\|_2\left\|D\Delta_t(W)[U_\Delta]\right\|_2+\left\|A\right\|_2\left\|D^2\Delta_t(W)[U_\Delta,V_\Delta]\right\|_2\\
&\le2L_x+\frac{1}{4}M_A L_x^2. \tag*{(114)}
\end{aligned} D 2 Z t ( W ) [ U , V ] F ≤ ∥ U A ∥ 2 ∥ D Δ t ( W ) [ V Δ ] ∥ 2 + ∥ V A ∥ 2 ∥ D Δ t ( W ) [ U Δ ] ∥ 2 + ∥ A ∥ 2 D 2 Δ t ( W ) [ U Δ , V Δ ] 2 ≤ 2 L x + 4 1 M A L x 2 . (114)
Plugging the result back in, we get the second component bound:
∥ D 2 A ˉ t ( W ) [ U , V ] ∥ F ≤ ∥ A ˉ t ( W ) ∥ max ( ∥ D Z t ( W ) [ V ] ∥ F ∥ D Z t ( W ) [ U ] ∥ F + ∥ D 2 Z t ( W ) [ U , V ] ∥ F ) ≤ ρ ( ( M K Δ + M A L x ) 2 + 2 L x + 1 4 M A L x 2 ) : = K A 2 , R . (115) \begin{aligned}
\left\|D^2\bar{A}_t(W)[U,V]\right\|_F
&\le\left\|\bar{A}_t(W)\right\|_{\max}\left(\left\|DZ_t(W)[V]\right\|_F\left\|DZ_t(W)[U]\right\|_F+\left\|D^2Z_t(W)[U,V]\right\|_F\right)\\
&\le\rho\left((MK_\Delta+M_A L_x)^2+2L_x+\frac{1}{4}M_A L_x^2\right):=K_{A_2,R}. \tag*{(115)}
\end{aligned} D 2 A ˉ t ( W ) [ U , V ] F ≤ A ˉ t ( W ) m a x ( ∥ D Z t ( W ) [ V ] ∥ F ∥ D Z t ( W ) [ U ] ∥ F + D 2 Z t ( W ) [ U , V ] F ) ≤ ρ ( ( M K Δ + M A L x ) 2 + 2 L x + 4 1 M A L x 2 ) := K A 2 , R . (115)
Finally, we bound the third term D 2 b t ( W ) D^2b_t(W) D 2 b t ( W ) . From definition, b t ( W ) = B ˉ t ( W ) diag ( x t ) b_t(W)=\bar{B}_t(W)\operatorname{diag}(x_t) b t ( W ) = B ˉ t ( W ) diag ( x t ) , where B ˉ t ( W ) = ( W B x t ) Δ t ( W ) ⊤ \bar{B}_t(W)=(W B x_t)\Delta_t(W)^\top B ˉ t ( W ) = ( W B x t ) Δ t ( W ) ⊤ . We first compute the second derivative of B ˉ t ( W ) \bar{B}_t(W) B ˉ t ( W ) :
D 2 B ˉ t ( W ) [ U , V ] = ( U B x t ) ( D Δ t ( W ) [ V Δ ] ) ⊤ + ( V B x t ) ( D Δ t ( W ) [ U Δ ] ) ⊤ + ( W B x t ) ( D 2 Δ t ( W ) [ U Δ , V Δ ] ) ⊤ , (116) \begin{aligned}
D^2\bar{B}_t(W)[U,V]
&=(U B x_t)\left(D\Delta_t(W)[V_\Delta]\right)^\top+(V B x_t)\left(D\Delta_t(W)[U_\Delta]\right)^\top\\
&\quad+(W B x_t)\left(D^2\Delta_t(W)[U_\Delta,V_\Delta]\right)^\top, \tag*{(116)}
\end{aligned} D 2 B ˉ t ( W ) [ U , V ] = ( U B x t ) ( D Δ t ( W ) [ V Δ ] ) ⊤ + ( V B x t ) ( D Δ t ( W ) [ U Δ ] ) ⊤ + ( W B x t ) ( D 2 Δ t ( W ) [ U Δ , V Δ ] ) ⊤ , (116)
and using the previously derived bounds, it follows that:
∥ D 2 B ˉ t ( W ) [ U , V ] ∥ F ≤ 2 L x 2 + 1 4 M B L x 3 . (117) \left\|D^2\bar{B}_t(W)[U,V]\right\|_F\le2L_x^2+\frac{1}{4}M_B L_x^3. \tag*{(117)} D 2 B ˉ t ( W ) [ U , V ] F ≤ 2 L x 2 + 4 1 M B L x 3 . (117)
With that, we get:
∥ D 2 b t ( W ) [ U , V ] ∥ F ≤ ∥ D 2 B ˉ t ( W ) [ U , V ] ∥ F ∥ diag ( x t ) ∥ F ≤ ( 2 L x 2 + 1 4 M B L x 3 ) L x = 2 L x 3 + 1 4 M B L x 4 : = K B 2 , R . (118) \begin{aligned}
\left\|D^2b_t(W)[U,V]\right\|_F
&\le\left\|D^2\bar{B}_t(W)[U,V]\right\|_F\left\|\operatorname{diag}(x_t)\right\|_F\\
&\le\left(2L_x^2+\frac{1}{4}M_B L_x^3\right)L_x=2L_x^3+\frac{1}{4}M_B L_x^4:=K_{B_2,R}. \tag*{(118)}
\end{aligned} D 2 b t ( W ) [ U , V ] F ≤ D 2 B ˉ t ( W ) [ U , V ] F ∥ diag ( x t ) ∥ F ≤ ( 2 L x 2 + 4 1 M B L x 3 ) L x = 2 L x 3 + 4 1 M B L x 4 := K B 2 , R . (118)
Given these derived bounds, the recurrence becomes:
∥ D 2 h t ( W ) [ U , V ] ∥ F ≤ ρ ∥ D 2 h t − 1 ( W ) [ U , V ] ∥ F + K A 2 , R H R + 2 K A 1 , R J R + K B 2 , R . (119) \left\|D^2h_t(W)[U,V]\right\|_F \le\rho\left\|D^2h_{t-1}(W)[U,V]\right\|_F + K_{A_2,R}H_R + 2K_{A_1,R}J_R + K_{B_2,R}. \tag*{(119)} D 2 h t ( W ) [ U , V ] F ≤ ρ D 2 h t − 1 ( W ) [ U , V ] F + K A 2 , R H R + 2 K A 1 , R J R + K B 2 , R . (119)
Since, as mentioned in the proof of 4.4, the initial state is initialized as h 0 = 0 h_0 = 0 h 0 = 0 , we have:
D 2 h 0 ( W ) [ U , V ] = 0. (120) D^2h_0(W)[U,V] = 0. \tag*{(120)} D 2 h 0 ( W ) [ U , V ] = 0. (120)
As such, unrolling the recurrence we get:
∥ D 2 h t ( W ) [ U , V ] ∥ F ≤ ( K A 2 , R H R + 2 K A 1 , R J R + K B 2 , R ) ∑ m = 0 t − 1 ρ m ≤ K A 2 , R H R + 2 K A 1 , R J R + K B 2 , R 1 − ρ : = K H 2 , R (121) \begin{aligned}
\left\|D^2h_t(W)[U,V]\right\|_F
&\le\left(K_{A_2,R}H_R + 2K_{A_1,R}J_R + K_{B_2,R}\right)\sum_{m=0}^{t-1}\rho^m\\
&\le\frac{K_{A_2,R}H_R + 2K_{A_1,R}J_R + K_{B_2,R}}{1-\rho} := K_{H_2,R} \tag*{(121)}
\end{aligned} D 2 h t ( W ) [ U , V ] F ≤ ( K A 2 , R H R + 2 K A 1 , R J R + K B 2 , R ) m = 0 ∑ t − 1 ρ m ≤ 1 − ρ K A 2 , R H R + 2 K A 1 , R J R + K B 2 , R := K H 2 , R (121)
Therefore, for all W ∈ N R ( W r ) W \in\mathcal{N}_R(W^r) W ∈ N R ( W r ) and all unit block perturbations U , V U,V U , V ,
∥ D 2 h t ( W ) [ U , V ] ∥ F ≤ K H 2 , R . (122) \left\|D^2h_t(W)[U,V]\right\|_F \le K_{H_2,R}. \tag*{(122)} D 2 h t ( W ) [ U , V ] F ≤ K H 2 , R . (122)
Next, we use this to derive the first and second Fréchet derivatives of the output:
y t ( W ) = h t ( W ) ⊤ ( W C x t ) . (123) y_t(W) = h_t(W)^\top(W_Cx_t). \tag*{(123)} y t ( W ) = h t ( W ) ⊤ ( W C x t ) . (123)
The first derivative is:
D y t ( W ) [ U ] = D h t ( W ) [ U ] ⊤ C t ( W ) + h t ( W ) ⊤ U C x t , (124) Dy_t(W)[U] = Dh_t(W)[U]^\top C_t(W) + h_t(W)^\top U_Cx_t, \tag*{(124)} D y t ( W ) [ U ] = D h t ( W ) [ U ] ⊤ C t ( W ) + h t ( W ) ⊤ U C x t , (124)
resulting in a bound
∥ D y t ( W ) [ U ] ∥ 2 ≤ ∥ D h t ( W ) [ U ] ∥ F ∥ W C ∥ 2 ∥ x t ∥ 2 + ∥ h t ( W ) ∥ F ∥ U C x t ∥ 2 ≤ J R M C L x + H R L x : = K Y 1 , R . (125) \begin{aligned}
\left\|Dy_t(W)[U]\right\|_2
&\le\left\|Dh_t(W)[U]\right\|_F\left\|W_C\right\|_2\left\|x_t\right\|_2 + \left\|h_t(W)\right\|_F\left\|U_Cx_t\right\|_2\\
&\le J_RM_CL_x + H_RL_x := K_{Y_1,R}. \tag*{(125)}
\end{aligned} ∥ D y t ( W ) [ U ] ∥ 2 ≤ ∥ D h t ( W ) [ U ] ∥ F ∥ W C ∥ 2 ∥ x t ∥ 2 + ∥ h t ( W ) ∥ F ∥ U C x t ∥ 2 ≤ J R M C L x + H R L x := K Y 1 , R . (125)
Taking the Fréchet derivative in direction V V V , we get:
D 2 y t ( W ) [ U , V ] = D 2 h t ( W ) [ U , V ] ⊤ C t ( W ) + D h t ( W ) [ U ] ⊤ V C x t + D h t ( W ) [ V ] ⊤ U C x t , (126) D^2y_t(W)[U,V] = D^2h_t(W)[U,V]^\top C_t(W) + Dh_t(W)[U]^\top V_Cx_t + Dh_t(W)[V]^\top U_Cx_t, \tag*{(126)} D 2 y t ( W ) [ U , V ] = D 2 h t ( W ) [ U , V ] ⊤ C t ( W ) + D h t ( W ) [ U ] ⊤ V C x t + D h t ( W ) [ V ] ⊤ U C x t , (126)
where we also use the fact that D 2 ( W C x t ) = 0 D^2(W_Cx_t) = 0 D 2 ( W C x t ) = 0 . Then:
∥ D 2 y t ( W ) [ U , V ] ∥ 2 ≤ ∥ D 2 h t ( W ) [ U , V ] ∥ F ∥ ( W C x t ) ∥ 2 + ∥ D h t ( W ) [ U ] ∥ F ∥ ( V C x t ) ∥ 2 + ∥ D h t ( W ) [ V ] ∥ F ∥ ( U C x t ) ∥ 2 ≤ K H 2 , R M C L x + 2 J R L x : = K Y 2 , R . (127) \begin{aligned}
\left\|D^2y_t(W)[U,V]\right\|_2
&\le\left\|D^2h_t(W)[U,V]\right\|_F\left\|(W_Cx_t)\right\|_2\\
&\quad+ \left\|Dh_t(W)[U]\right\|_F\left\|(V_Cx_t)\right\|_2 + \left\|Dh_t(W)[V]\right\|_F\left\|(U_Cx_t)\right\|_2\\
&\le K_{H_2,R}M_CL_x + 2J_RL_x := K_{Y_2,R}. \tag*{(127)}
\end{aligned} D 2 y t ( W ) [ U , V ] 2 ≤ D 2 h t ( W ) [ U , V ] F ∥ ( W C x t ) ∥ 2 + ∥ D h t ( W ) [ U ] ∥ F ∥ ( V C x t ) ∥ 2 + ∥ D h t ( W ) [ V ] ∥ F ∥ ( U C x t ) ∥ 2 ≤ K H 2 , R M C L x + 2 J R L x := K Y 2 , R . (127)
Finally, consider the token loss ℓ t ( y t ( W ) ) \ell_t(y_t(W)) ℓ t ( y t ( W )) . By the second-order chain rule:
D W 2 ℓ t ( y t ( W ) ) [ U , V ] = D y 2 ℓ t ( y t ) [ D y t ( W ) [ U ] , D y t ( W ) [ V ] ] + D y ℓ t ( y t ) [ D y 2 y t ( W ) [ U , V ] ] , (128) D_W^2\ell_t(y_t(W))[U,V] = D_y^2\ell_t(y_t)[Dy_t(W)[U],Dy_t(W)[V]] + D_y\ell_t(y_t)[D_y^2y_t(W)[U,V]], \tag*{(128)} D W 2 ℓ t ( y t ( W )) [ U , V ] = D y 2 ℓ t ( y t ) [ D y t ( W ) [ U ] , D y t ( W ) [ V ]] + D y ℓ t ( y t ) [ D y 2 y t ( W ) [ U , V ]] , (128)
where we use the notation D y 2 ℓ t ( y t ) [ a , b ] = a ⊤ ∇ y 2 ℓ t ( y t ) b D_y^2\ell_t(y_t)[a,b] = a^\top\nabla_y^2\ell_t(y_t)b D y 2 ℓ t ( y t ) [ a , b ] = a ⊤ ∇ y 2 ℓ t ( y t ) b .
By Assumption 4.2, and utilizing all derived bounds, we get:
∣ D W 2 ℓ t ( y t ( W ) ) [ U , V ] ∣ ≤ ∣ D y 2 ℓ t ( y t ) [ D y t ( W ) [ U ] , D y t ( W ) [ V ] ] + D y ℓ t ( y t ) [ D y 2 y t ( W ) [ U , V ] ] ∣ ≤ ∥ ∇ y 2 ℓ t ( y t ) ∥ o p ∥ D y t ( W ) [ U ] ∥ 2 ∥ D y t ( W ) [ V ] ∥ 2 + ∥ ∇ y ℓ t ( y t ) ∥ 2 ∥ D 2 y t ( W ) [ U , V ] ∥ 2 ≤ H ℓ K Y 1 , R 2 + L ℓ K Y 2 , R : = L S S M , R . (129) \begin{aligned}
\left|D_W^2\ell_t(y_t(W))[U,V]\right|
&\le\left|D_y^2\ell_t(y_t)[Dy_t(W)[U],Dy_t(W)[V]] + D_y\ell_t(y_t)[D_y^2y_t(W)[U,V]]\right|\\
&\le\left\|\nabla_y^2\ell_t(y_t)\right\|_{\mathrm{op}}\left\|Dy_t(W)[U]\right\|_2\left\|Dy_t(W)[V]\right\|_2 + \left\|\nabla_y\ell_t(y_t)\right\|_2\left\|D^2y_t(W)[U,V]\right\|_2\\
&\le H_\ell K_{Y_1,R}^2 + L_\ell K_{Y_2,R} := L_{\mathrm{SSM},R}. \tag*{(129)}
\end{aligned} D W 2 ℓ t ( y t ( W )) [ U , V ] ≤ D y 2 ℓ t ( y t ) [ D y t ( W ) [ U ] , D y t ( W ) [ V ]] + D y ℓ t ( y t ) [ D y 2 y t ( W ) [ U , V ]] ≤ ∇ y 2 ℓ t ( y t ) op ∥ D y t ( W ) [ U ] ∥ 2 ∥ D y t ( W ) [ V ] ∥ 2 + ∥ ∇ y ℓ t ( y t ) ∥ 2 D 2 y t ( W ) [ U , V ] 2 ≤ H ℓ K Y 1 , R 2 + L ℓ K Y 2 , R := L SSM , R . (129)
Substituting the definitions, we get:
L S S M , R = H ℓ L x 2 ( H R + M C J R ) 2 + L ℓ L x ( M C K H 2 , R + 2 J R ) = H ℓ L x 2 ( M K B M K Δ N D + M C M K W 1 − ρ ) 2 + L ℓ L x [ M C 1 − ρ ( ρ ( ( M K Δ + M A L x ) 2 + 2 L x + 1 4 M A L x 2 ) + M K B M K Δ N D 1 − ρ + 2 ρ ( M K Δ + M A L x ) M K W 1 − ρ + 2 L x 3 + 1 4 M B L x 4 ) + 2 M K W 1 − ρ (130) \begin{aligned}
L_{\mathrm{SSM},R}
&= H_\ell L_x^2(H_R + M_CJ_R)^2 + L_\ell L_x(M_CK_{H_2,R} + 2J_R)\\
&= H_\ell L_x^2\left(\frac{M_{K_B}M_{K_\Delta}\sqrt{ND} + M_CM_{K_W}}{1-\rho}\right)^2\\
&\quad+ L_\ell L_x\left[\frac{M_C}{1-\rho}\left(\rho\left((M_{K_\Delta}+M_{A}L_x)^2+2L_x+\frac{1}{4}M_AL_x^2\right)\right.\right.\\
&\qquad\left.\left.{}+\frac{M_{K_B}M_{K_\Delta}\sqrt{ND}}{1-\rho}\right.\right. \\
&+ 2\rho(M_{K_\Delta}+M_A L_x)\frac{M_{K_W}}{1-\rho}+2L_x^3+\frac{1}{4}M_B L_x^4)+\frac{2M_{K_W}}{1-\rho} \tag*{(130)}
\end{aligned} L SSM , R = H ℓ L x 2 ( H R + M C J R ) 2 + L ℓ L x ( M C K H 2 , R + 2 J R ) = H ℓ L x 2 ( 1 − ρ M K B M K Δ N D + M C M K W ) 2 + L ℓ L x [ 1 − ρ M C ( ρ ( ( M K Δ + M A L x ) 2 + 2 L x + 4 1 M A L x 2 ) + 1 − ρ M K B M K Δ N D + 2 ρ ( M K Δ + M A L x ) 1 − ρ M K W + 2 L x 3 + 4 1 M B L x 4 ) + 1 − ρ 2 M K W (130)
Since U , V U,V U , V were arbitrary unit block perturbations, the previous bound implies
∥ ∇ W 2 ℓ t ( y t ( W ) ) ∥ o p ≤ L S S M , R . (131) \left\|\nabla_W^2\ell_t(y_t(W))\right\|_{\mathrm{op}}\le L_{\mathrm{SSM},R}. \tag*{(131)} ∇ W 2 ℓ t ( y t ( W )) op ≤ L SSM , R . (131)
Finally, the sequence loss was defined in (4) as
L S ( W ) = 1 S ∑ t = 1 S ℓ t ( y t ( W ) ) , \mathcal{L}^S(W)=\frac{1}{S}\sum_{t=1}^{S}\ell_t(y_t(W)), L S ( W ) = S 1 t = 1 ∑ S ℓ t ( y t ( W )) ,
using the simplified notation, where L S ( W ) : = L S ( W ; ξ ) \mathcal{L}^S(W):=\mathcal{L}^S(W;\xi) L S ( W ) := L S ( W ; ξ ) and ℓ t ( y t ( W ) ) = ℓ t ( y t ( W ; x ) , y t ∗ ) \ell_t(y_t(W))=\ell_t(y_t(W;x),y_t^*) ℓ t ( y t ( W )) = ℓ t ( y t ( W ; x ) , y t ∗ ) , and we further incorporate W W W to emphasize y t y_t y t ’s dependence on the current weights.
As a result,
∥ ∇ W 2 L S ( W ) ∥ o p = ∥ 1 S ∑ t = 1 S ∇ W 2 ℓ t ( y t ( W ) ) ∥ o p ≤ 1 S ∑ t = 1 S ∥ ∇ W 2 ℓ t ( y t ( W ) ) ∥ o p ≤ L S S M , R . (132) \begin{aligned}
\left\|\nabla_W^2\mathcal{L}^S(W)\right\|_{\mathrm{op}}=
\left\|\frac{1}{S}\sum_{t=1}^{S}\nabla_W^2\ell_t(y_t(W))\right\|_{\mathrm{op}} \\
&\le\frac{1}{S}\sum_{t=1}^{S}\left\|\nabla_W^2\ell_t(y_t(W))\right\|_{\mathrm{op}} \\
&\le L_{\mathrm{SSM},R}. \tag*{(132)}
\end{aligned} ∇ W 2 L S ( W ) op = S 1 t = 1 ∑ S ∇ W 2 ℓ t ( y t ( W )) op ≤ S 1 t = 1 ∑ S ∇ W 2 ℓ t ( y t ( W )) op ≤ L SSM , R . (132)
Then, for an client k k k , the local expected objective is
L k ( W ) = E ξ ∼ P k [ L S ( W ; ξ ) ] . (133) \mathcal{L}_k(W)=\mathbb{E}_{\xi\sim P_k}\left[\mathcal{L}^S(W;\xi)\right]. \tag*{(133)} L k ( W ) = E ξ ∼ P k [ L S ( W ; ξ ) ] . (133)
For any W , V ∈ N R ( W r ) W,V\in\mathcal{N}_R(W^r) W , V ∈ N R ( W r ) , convexity of the neighborhood implies that
W α : = V + α ( W − V ) , α ∈ [ 0 , 1 ] , (134) W_\alpha:=V+\alpha(W-V),\qquad\alpha\in[0,1], \tag*{(134)} W α := V + α ( W − V ) , α ∈ [ 0 , 1 ] , (134)
lies in N R ( W r ) \mathcal{N}_R(W^r) N R ( W r ) . Applying the fundamental theorem of calculus to the fixed-sequence gradient and using the Hessian bound from (132) gives
∥ ∇ W L S ( W ; ξ ) − ∇ W L S ( V ; ξ ) ∥ F = ∥ vec ( ∇ W L S ( W ; ξ ) − ∇ W L S ( V ; ξ ) ) ∥ 2 = ∥ ∫ 0 1 ∇ W 2 L S ( W α ; ξ ) vec ( W − V ) d α ∥ 2 ≤ ∫ 0 1 ∥ ∇ W 2 L S ( W α ; ξ ) vec ( W − V ) ∥ 2 d α ≤ ∫ 0 1 ∥ ∇ W 2 L S ( W α ; ξ ) ∥ o p ∥ W − V ∥ F d α ≤ ∫ 0 1 L S S M , R ∥ W − V ∥ F d α = L S S M , R ∥ W − V ∥ F . (135) \begin{aligned}
\left\|\nabla_W\mathcal{L}^S(W;\xi)-\nabla_W\mathcal{L}^S(V;\xi)\right\|_F
&=\left\|\operatorname{vec}\left(\nabla_W\mathcal{L}^S(W;\xi)-\nabla_W\mathcal{L}^S(V;\xi)\right)\right\|_2\\
&=\left\|\int_0^1\nabla_W^2\mathcal{L}^S(W_\alpha;\xi)\operatorname{vec}(W-V)\,d\alpha\right\|_2\\
&\le\int_0^1\left\|\nabla_W^2\mathcal{L}^S(W_\alpha;\xi)\operatorname{vec}(W-V)\right\|_2\,d\alpha\\
&\le\int_0^1\left\|\nabla_W^2\mathcal{L}^S(W_\alpha;\xi)\right\|_{\mathrm{op}}\|W-V\|_F\,d\alpha\\
&\le\int_0^1L_{\mathrm{SSM},R}\|W-V\|_F\,d\alpha
=L_{\mathrm{SSM},R}\|W-V\|_F. \tag*{(135)}
\end{aligned} ∇ W L S ( W ; ξ ) − ∇ W L S ( V ; ξ ) F = vec ( ∇ W L S ( W ; ξ ) − ∇ W L S ( V ; ξ ) ) 2 = ∫ 0 1 ∇ W 2 L S ( W α ; ξ ) vec ( W − V ) d α 2 ≤ ∫ 0 1 ∇ W 2 L S ( W α ; ξ ) vec ( W − V ) 2 d α ≤ ∫ 0 1 ∇ W 2 L S ( W α ; ξ ) op ∥ W − V ∥ F d α ≤ ∫ 0 1 L SSM , R ∥ W − V ∥ F d α = L SSM , R ∥ W − V ∥ F . (135)
where:
( a ) (a) ( a ) follows from the triangle inequality for an integral ∥ ∫ v ∥ ≤ ∫ ∥ v ∥ \left\|\int v\right\|\le\int\|v\| ∫ v ≤ ∫ ∥ v ∥ .
( b ) (b) ( b ) follows from the operator-norm inequality: ∥ H d ∥ 2 ≤ ∥ H ∥ o p ∥ d ∥ 2 \|Hd\|_2\le\|H\|_{\mathrm{op}}\|d\|_2 ∥ H d ∥ 2 ≤ ∥ H ∥ op ∥ d ∥ 2 and the fact that ∥ vec ( W − V ) ∥ 2 = ∥ W − V ∥ F \|\operatorname{vec}(W-V)\|_2=\|W-V\|_F ∥ vec ( W − V ) ∥ 2 = ∥ W − V ∥ F .
( c ) (c) ( c ) follows from (132) .
This inequality holds uniformly over all admissible sequence pairs and finite sequence lengths.
Finally, by Assumption 4.6 and Jensen’s inequality,
∥ ∇ W L k ( W ) − ∇ W L k ( V ) ∥ F = ∥ E ξ ∼ P k [ ∇ W L S ( W ; ξ ) − ∇ W L S ( V ; ξ ) ] ∥ F ≤ E ξ ∼ P k [ ∥ ∇ W L S ( W ; ξ ) − ∇ W L S ( V ; ξ ) ∥ F ] ≤ L S S M , R ∥ W − V ∥ F . (136) \begin{aligned}
\left\|\nabla_W\mathcal{L}_k(W)-\nabla_W\mathcal{L}_k(V)\right\|_F
&=\left\|\mathbb{E}_{\xi\sim P_k}\left[\nabla_W\mathcal{L}^S(W;\xi)-\nabla_W\mathcal{L}^S(V;\xi)\right]\right\|_F\\
&\le\mathbb{E}_{\xi\sim P_k}\left[\left\|\nabla_W\mathcal{L}^S(W;\xi)-\nabla_W\mathcal{L}^S(V;\xi)\right\|_F\right]\\
&\le L_{\mathrm{SSM},R}\|W-V\|_F. \tag*{(136)}
\end{aligned} ∥ ∇ W L k ( W ) − ∇ W L k ( V ) ∥ F = E ξ ∼ P k [ ∇ W L S ( W ; ξ ) − ∇ W L S ( V ; ξ ) ] F ≤ E ξ ∼ P k [ ∇ W L S ( W ; ξ ) − ∇ W L S ( V ; ξ ) F ] ≤ L SSM , R ∥ W − V ∥ F . (136)
Therefore, L k \mathcal{L}_k L k is L S S M , R L_{\mathrm{SSM},R} L SSM , R -smooth on N R ( W r ) \mathcal{N}_R(W^r) N R ( W r ) .
SSM Loss Gradient Second-Moment Constant Lemma and Proof
In the following two lemmas, we consider some arbitrary client data distribution P \mathcal{P} P and write L ( W ) = E ξ ∼ P [ L S ( W ; ξ ) ] \mathcal{L}(W) = \mathbb{E}_{\xi\sim\mathcal{P}}[\mathcal{L}^{S}(W;\xi)] L ( W ) = E ξ ∼ P [ L S ( W ; ξ )] . Expectations written as E ξ \mathbb{E}_{\xi} E ξ are taken with respect to the distribution P \mathcal{P} P .
Lemma B.2 (SSM loss gradient second-moment constant). Suppose the Assumptions 4.2 and 4.3 hold. Let N R ( W r ) ⊆ S γ , δ \mathcal{N}_{R}(W^{r}) \subseteq\mathcal{S}_{\gamma,\delta} N R ( W r ) ⊆ S γ , δ be a stable local model neighborhood around the round-r r r broadcast model W r W^{r} W r . Let:
g ( W ; ξ ) : = ∇ W L S ( W ; ξ ) (137) g(W;\xi) := \nabla_{W}\mathcal{L}^{S}(W;\xi) \tag*{(137)} g ( W ; ξ ) := ∇ W L S ( W ; ξ ) (137) denote the stochastic sequence-level gradient for a sampled input-target sequence pair ξ = ( x 1 : S , y 1 : S ∗ ) \xi= (x_{1:S},y^{*}_{1:S}) ξ = ( x 1 : S , y 1 : S ∗ ) . Then, for every W ∈ N R ( W r ) W \in\mathcal{N}_{R}(W^{r}) W ∈ N R ( W r ) ,
E ξ ∥ g ( W ; ξ ) ∥ F 2 ≤ G S S M , R 2 , (138) \mathbb{E}_{\xi}\left\|g(W;\xi)\right\|_{F}^{2} \leq G_{\mathrm{SSM},R}^{2}, \tag*{(138)} E ξ ∥ g ( W ; ξ ) ∥ F 2 ≤ G SSM , R 2 , (138) where
G S S M , R : = L ℓ L x ( M K B M K Δ N D 1 − ρ + M C M K W 1 − ρ ) , (139) G_{\mathrm{SSM},R} := L_{\ell}L_{x}\left(M_{K_{B}}M_{K_{\Delta}}\frac{\sqrt{ND}}{1-\rho}+M_{C}\frac{M_{K_{W}}}{1-\rho}\right), \tag*{(139)} G SSM , R := L ℓ L x ( M K B M K Δ 1 − ρ N D + M C 1 − ρ M K W ) , (139) where M K B M_{K_{B}} M K B , M K Δ M_{K_{\Delta}} M K Δ , M C M_{C} M C , and M K W M_{K_{W}} M K W are defined in (66), (65), (59), and (84) respectively.
Proof of Lemma B.2: By Theorem 4.4, under the assumptions of the lemma, for every W ∈ N R ( W r ) W \in\mathcal{N}_{R}(W^{r}) W ∈ N R ( W r ) , every finite integer S ≥ 1 S \geq1 S ≥ 1 , and every admissible length-S S S sequence pair ξ ∈ Z \xi\in\mathcal{Z} ξ ∈ Z , we have:
∥ ∇ W L S ( W ; ξ ) ∥ F ≤ L ℓ L x ( K B K Δ N D 1 − ρ + ∥ W C ∥ 2 K W 1 − ρ ) . \left\|\nabla_{W}\mathcal{L}^{S}(W;\xi)\right\|_{F} \leq L_{\ell}L_{x}\left(K_{B}K_{\Delta}\frac{\sqrt{ND}}{1-\rho}+\left\|W_{C}\right\|_{2}\frac{K_{W}}{1-\rho}\right). ∇ W L S ( W ; ξ ) F ≤ L ℓ L x ( K B K Δ 1 − ρ N D + ∥ W C ∥ 2 1 − ρ K W ) . Since g ( W ; ξ ) = ∇ W L S ( W ; ξ ) g(W;\xi)=\nabla_{W}\mathcal{L}^{S}(W;\xi) g ( W ; ξ ) = ∇ W L S ( W ; ξ ) , it follows that:
∥ g ( W ; ξ ) ∥ F ≤ L ℓ L x ( K B K Δ N D 1 − ρ + ∥ W C ∥ 2 K W 1 − ρ ) . (140) \left\|g(W;\xi)\right\|_{F} \leq L_{\ell}L_{x}\left(K_{B}K_{\Delta}\frac{\sqrt{ND}}{1-\rho}+\left\|W_{C}\right\|_{2}\frac{K_{W}}{1-\rho}\right). \tag*{(140)} ∥ g ( W ; ξ ) ∥ F ≤ L ℓ L x ( K B K Δ 1 − ρ N D + ∥ W C ∥ 2 1 − ρ K W ) . (140) Restricting to W ∈ N R ( W r ) W \in\mathcal{N}_{R}(W^{r}) W ∈ N R ( W r ) , by the local neighborhood bounds defined previously ((66), (65), (59), and (84)),
K B ≤ M K B , K Δ ≤ M K Δ , K W ≤ M K W , ∥ W C ∥ 2 ≤ M C . (141) K_{B} \leq M_{K_{B}},\qquad K_{\Delta} \leq M_{K_{\Delta}},\qquad K_{W} \leq M_{K_{W}},\qquad\left\|W_{C}\right\|_{2} \leq M_{C}. \tag*{(141)} K B ≤ M K B , K Δ ≤ M K Δ , K W ≤ M K W , ∥ W C ∥ 2 ≤ M C . (141) Therefore,
∥ g ( W ; ξ ) ∥ F ≤ L ℓ L x ( M K B M K Δ N D 1 − ρ + M C M K W 1 − ρ ) = G S S M , R . (142) \left\|g(W;\xi)\right\|_{F} \leq L_{\ell}L_{x}\left(M_{K_{B}}M_{K_{\Delta}}\frac{\sqrt{ND}}{1-\rho}+M_{C}\frac{M_{K_{W}}}{1-\rho}\right)=G_{\mathrm{SSM},R}. \tag*{(142)} ∥ g ( W ; ξ ) ∥ F ≤ L ℓ L x ( M K B M K Δ 1 − ρ N D + M C 1 − ρ M K W ) = G SSM , R . (142) Since both values are non-negative, squaring both sides gives:
∥ g ( W ; ξ ) ∥ F 2 ≤ G S S M , R 2 = L ℓ 2 L x 2 ( M K B M K Δ N D 1 − ρ + M C M K W 1 − ρ ) 2 (143) \left\|g(W;\xi)\right\|_{F}^{2} \leq G_{\mathrm{SSM},R}^{2}=L_{\ell}^{2}L_{x}^{2}\left(M_{K_{B}}M_{K_{\Delta}}\frac{\sqrt{ND}}{1-\rho}+M_{C}\frac{M_{K_{W}}}{1-\rho}\right)^{2} \tag*{(143)} ∥ g ( W ; ξ ) ∥ F 2 ≤ G SSM , R 2 = L ℓ 2 L x 2 ( M K B M K Δ 1 − ρ N D + M C 1 − ρ M K W ) 2 (143) Finally, taking expectation over the sampled sequence ξ \xi ξ preserves the bound:
E ξ [ ∥ g ( W ; ξ ) ∥ F 2 ] ≤ G S S M , R 2 (144) \mathbb{E}_{\xi}\left[\left\|g(W;\xi)\right\|_{F}^{2}\right]\leq G_{\mathrm{SSM},R}^{2} \tag*{(144)} E ξ [ ∥ g ( W ; ξ ) ∥ F 2 ] ≤ G SSM , R 2 (144) proving the lemma.
SSM Stochastic Gradient Variance Bound Lemma and Proof
Lemma B.3 (SSM stochastic gradient variance bound). Suppose the assumptions of Lemma B.2 and Assumption 4.6 hold. Let
L ( W ) : = E ξ [ L S ( W ; ξ ) ] \mathcal{L}(W):=\mathbb{E}_{\xi}\left[\mathcal{L}^{S}(W;\xi)\right] L ( W ) := E ξ [ L S ( W ; ξ ) ] denote the expected sequence loss over the local data distribution, and let
g ( W ; ξ ) : = ∇ W L S ( W ; ξ ) g(W;\xi):=\nabla_{W}\mathcal{L}^{S}(W;\xi) g ( W ; ξ ) := ∇ W L S ( W ; ξ )
denote the single-sequence stochastic gradient. For a mini-batch Ξ ξ = { ξ 1 , … , ξ Ξ } \Xi_{\xi} = \{\xi_1, \ldots, \xi_{\Xi}\} Ξ ξ = { ξ 1 , … , ξ Ξ } of Ξ \Xi Ξ independent sampled sequences, define
g Ξ ( W ; Ξ ξ ) : = 1 Ξ ∑ j = 1 Ξ g ( W ; ξ j ) . (145) g_{\Xi}(W; \Xi_{\xi}) := \frac{1}{\Xi}\sum_{j=1}^{\Xi} g(W; \xi_j). \tag*{(145)} g Ξ ( W ; Ξ ξ ) := Ξ 1 j = 1 ∑ Ξ g ( W ; ξ j ) . (145)
Then, for every W ∈ N R ( W r ) W \in\mathcal{N}_{R}(W^{r}) W ∈ N R ( W r ) it follows that
E Ξ ξ ∥ g Ξ ( W ; Ξ ξ ) − ∇ W L ( W ) ∥ F 2 ≤ σ S S M , R , Ξ 2 , (146) \mathbb{E}_{\Xi_{\xi}}\left\|g_{\Xi}(W; \Xi_{\xi}) - \nabla_{W}\mathcal{L}(W)\right\|_{F}^{2} \le\sigma_{\mathrm{SSM},R,\Xi}^{2}, \tag*{(146)} E Ξ ξ ∥ g Ξ ( W ; Ξ ξ ) − ∇ W L ( W ) ∥ F 2 ≤ σ SSM , R , Ξ 2 , (146)
where
σ S S M , R , Ξ 2 : = 1 Ξ sup W ∈ N R ( W r ) ( E ξ ∥ g ( W ; ξ ) ∥ F 2 − ∥ ∇ W L ( W ) ∥ F 2 ) . (147) \sigma_{\mathrm{SSM},R,\Xi}^{2} := \frac{1}{\Xi}\sup_{W\in\mathcal{N}_{R}(W^{r})}\left(\mathbb{E}_{\xi}\left\|g(W;\xi)\right\|_{F}^{2} - \left\|\nabla_{W}\mathcal{L}(W)\right\|_{F}^{2}\right). \tag*{(147)} σ SSM , R , Ξ 2 := Ξ 1 W ∈ N R ( W r ) sup ( E ξ ∥ g ( W ; ξ ) ∥ F 2 − ∥ ∇ W L ( W ) ∥ F 2 ) . (147)
Moreover, by Lemma B.2,
σ S S M , R , Ξ 2 ≤ G S S M , R 2 Ξ . (148) \sigma_{\mathrm{SSM},R,\Xi}^{2} \le\frac{G_{\mathrm{SSM},R}^{2}}{\Xi}. \tag*{(148)} σ SSM , R , Ξ 2 ≤ Ξ G SSM , R 2 . (148)
Proof of Lemma B.3: By unbiasedness and independence of the sampled sequences, the standard mini-batch variance identity gives:
E Ξ ξ [ ∥ g Ξ ( W ; Ξ ξ ) − ∇ W L ( W ) ∥ F 2 ] = 1 Ξ E ξ [ ∥ g ( W ; ξ ) − ∇ W L ( W ) ∥ F 2 ] . \mathbb{E}_{\Xi_{\xi}}\left[\left\|g_{\Xi}(W;\Xi_{\xi})-\nabla_{W}\mathcal{L}(W)\right\|_{F}^{2}\right]
=
\frac{1}{\Xi}\mathbb{E}_{\xi}\left[\left\|g(W;\xi)-\nabla_{W}\mathcal{L}(W)\right\|_{F}^{2}\right]. E Ξ ξ [ ∥ g Ξ ( W ; Ξ ξ ) − ∇ W L ( W ) ∥ F 2 ] = Ξ 1 E ξ [ ∥ g ( W ; ξ ) − ∇ W L ( W ) ∥ F 2 ] .
Using the identity
E ξ [ ∥ g ( W ; ξ ) − ∇ W L ( W ) ∥ F 2 ] = E ξ [ ∥ g ( W ; ξ ) ∥ F 2 ] − ∥ ∇ W L ( W ) ∥ F 2 , (149) \mathbb{E}_{\xi}\left[\left\|g(W;\xi)-\nabla_{W}\mathcal{L}(W)\right\|_{F}^{2}\right]
=
\mathbb{E}_{\xi}\left[\left\|g(W;\xi)\right\|_{F}^{2}\right]
-
\left\|\nabla_{W}\mathcal{L}(W)\right\|_{F}^{2}, \tag*{(149)} E ξ [ ∥ g ( W ; ξ ) − ∇ W L ( W ) ∥ F 2 ] = E ξ [ ∥ g ( W ; ξ ) ∥ F 2 ] − ∥ ∇ W L ( W ) ∥ F 2 , (149)
and taking the supremum over W ∈ N R ( W r ) W \in\mathcal{N}_{R}(W^{r}) W ∈ N R ( W r ) , we obtain
E Ξ ξ [ ∥ g Ξ ( W ; Ξ ξ ) − ∇ W L ( W ) ∥ F 2 ] ≤ σ S S M , R , Ξ 2 . (150) \mathbb{E}_{\Xi_{\xi}}\left[\left\|g_{\Xi}(W;\Xi_{\xi})-\nabla_{W}\mathcal{L}(W)\right\|_{F}^{2}\right]
\le\sigma_{\mathrm{SSM},R,\Xi}^{2}. \tag*{(150)} E Ξ ξ [ ∥ g Ξ ( W ; Ξ ξ ) − ∇ W L ( W ) ∥ F 2 ] ≤ σ SSM , R , Ξ 2 . (150)
Finally, Lemma B.2 gives
E ξ ∥ g ( W ; ξ ) ∥ F 2 ≤ G S S M , R 2 , \mathbb{E}_{\xi}\left\|g(W;\xi)\right\|_{F}^{2} \le G_{\mathrm{SSM},R}^{2}, E ξ ∥ g ( W ; ξ ) ∥ F 2 ≤ G SSM , R 2 ,
and since ∥ ∇ W L ( W ) ∥ F 2 ≥ 0 \left\|\nabla_{W}\mathcal{L}(W)\right\|_{F}^{2} \ge0 ∥ ∇ W L ( W ) ∥ F 2 ≥ 0 ,
σ S S M , R , Ξ 2 ≤ G S S M , R 2 Ξ . (151) \sigma_{\mathrm{SSM},R,\Xi}^{2} \le\frac{G_{\mathrm{SSM},R}^{2}}{\Xi}. \tag*{(151)} σ SSM , R , Ξ 2 ≤ Ξ G SSM , R 2 . (151)
This proves the claim.
SSM CLIENT HETEROGENEITY BOUND UNDER TOTAL VARIATION LEMMA AND PROOF
Lemma B.4 (SSM client heterogeneity bound under total variation). Suppose the assumptions of Lemma B.2 and Assumption 4.6 hold. Let
f ( W ) : = ∑ k = 1 K p k L k ( W ) (152) f(W) := \sum_{k=1}^{K} p_k\mathcal{L}_k(W) \tag*{(152)} f ( W ) := k = 1 ∑ K p k L k ( W ) (152) be the global objective, where p k ≥ 0 p_k \ge0 p k ≥ 0 and ∑ k = 1 K p k = 1 \sum_{k=1}^{K}p_k = 1 ∑ k = 1 K p k = 1 . Let P k \mathcal{P}_k P k denote the local data distribution of client k k k , and define the global mixture distribution as:
P ‾ : = ∑ k = 1 K p k P k . (153) \overline{\mathcal{P}} := \sum_{k=1}^{K}p_k\mathcal{P}_k. \tag*{(153)} P := k = 1 ∑ K p k P k . (153) Define the local client heterogeneity constant
Γ S S M , R 2 : = sup W ∈ N R ( W r ) ∑ k = 1 K p k ∥ ∇ W L k ( W ) − ∇ W f ( W ) ∥ F 2 . (154) \Gamma_{\mathrm{SSM},R}^{2} := \sup_{W\in\mathcal{N}_{R}(W^{r})}\sum_{k=1}^{K}p_k\left\|\nabla_{W}\mathcal{L}_k(W)-\nabla_{W}f(W)\right\|_{F}^{2}. \tag*{(154)} Γ SSM , R 2 := W ∈ N R ( W r ) sup k = 1 ∑ K p k ∥ ∇ W L k ( W ) − ∇ W f ( W ) ∥ F 2 . (154) Then:
Γ S S M , R 2 ≤ 4 G S S M , R 2 ∑ k = 1 K p k TV ( P k , P ‾ ) 2 , (155) \Gamma_{\mathrm{SSM},R}^{2} \le4G_{\mathrm{SSM},R}^{2}\sum_{k=1}^{K}p_k\operatorname{TV}(\mathcal{P}_k,\overline{\mathcal{P}})^{2}, \tag*{(155)} Γ SSM , R 2 ≤ 4 G SSM , R 2 k = 1 ∑ K p k TV ( P k , P ) 2 , (155) where
TV ( P , Q ) : = sup A ∣ P ( A ) − Q ( A ) ∣ . (156) \operatorname{TV}(P,Q) := \sup_{A}\left|P(A)-Q(A)\right|. \tag*{(156)} TV ( P , Q ) := A sup ∣ P ( A ) − Q ( A ) ∣ . (156)
Proof of Lemma B.4: Recall that for each client k k k , the local objective is:
L k ( W ) = E ξ ∼ P k [ L S ( W ; ξ ) ] . \mathcal{L}_k(W)=\mathbb{E}_{\xi\sim\mathcal{P}_k}\left[\mathcal{L}^S(W;\xi)\right]. L k ( W ) = E ξ ∼ P k [ L S ( W ; ξ ) ] .
and, by Assumption 4.6,
∇ W L k ( W ) = E ξ ∼ P k [ g ( W ; ξ ) ] . (157) \nabla_W\mathcal{L}_k(W)=\mathbb{E}_{\xi\sim\mathcal{P}_k}\left[g(W;\xi)\right]. \tag*{(157)} ∇ W L k ( W ) = E ξ ∼ P k [ g ( W ; ξ ) ] . (157)
Similarly, since
f ( W ) : = ∑ k = 1 K p k L k ( W ) , f(W):=\sum_{k=1}^{K}p_k\mathcal{L}_k(W), f ( W ) := k = 1 ∑ K p k L k ( W ) ,
we have
∇ W f ( W ) = ∑ k = 1 K p k ∇ W L k ( W ) = ∑ k = 1 K p k E ξ ∼ P k [ g ( W ; ξ ) ] . (158) \nabla_W f(W)=\sum_{k=1}^{K}p_k\nabla_W\mathcal{L}_k(W)=\sum_{k=1}^{K}p_k\mathbb{E}_{\xi\sim\mathcal{P}_k}\left[g(W;\xi)\right]. \tag*{(158)} ∇ W f ( W ) = k = 1 ∑ K p k ∇ W L k ( W ) = k = 1 ∑ K p k E ξ ∼ P k [ g ( W ; ξ ) ] . (158)
Next, by the definition of the mixture distribution P ‾ \overline{\mathcal{P}} P , we can write this as:
∇ W f ( W ) = E ξ ∼ P ‾ [ g ( W ; ξ ) ] . (159) \nabla_W f(W)=\mathbb{E}_{\xi\sim\overline{\mathcal{P}}}\left[g(W;\xi)\right]. \tag*{(159)} ∇ W f ( W ) = E ξ ∼ P [ g ( W ; ξ ) ] . (159)
Therefore, it follows that
∇ W L k ( W ) − ∇ W f ( W ) = E ξ ∼ P k [ g ( W ; ξ ) ] − E ξ ∼ P ‾ [ g ( W ; ξ ) ] . (160) \nabla_W\mathcal{L}_k(W)-\nabla_W f(W)=\mathbb{E}_{\xi\sim\mathcal{P}_k}\left[g(W;\xi)\right]-\mathbb{E}_{\xi\sim\overline{\mathcal{P}}}\left[g(W;\xi)\right]. \tag*{(160)} ∇ W L k ( W ) − ∇ W f ( W ) = E ξ ∼ P k [ g ( W ; ξ ) ] − E ξ ∼ P [ g ( W ; ξ ) ] . (160)
By the pointwise bound (141) established in the proof of Lemma B.2, for every W ∈ N R ( W r ) W\in\mathcal{N}_R(W^r) W ∈ N R ( W r ) and every admissible sequence pair ξ ∈ Z \xi\in\mathcal{Z} ξ ∈ Z ,
∥ g ( W ; ξ ) ∥ F ≤ G S S M , R . \lVert g(W;\xi)\rVert_F\leq G_{\mathrm{SSM},R}. ∥ g ( W ; ξ ) ∥ F ≤ G SSM , R .
Since P k ( Z ) = P ‾ ( Z ) = 1 \mathcal{P}_k(\mathcal{Z})=\overline{\mathcal{P}}(\mathcal{Z})=1 P k ( Z ) = P ( Z ) = 1 , the total-variation inequality for bounded vector-valued functions gives:
∥ E ξ ∼ P k [ g ( W ; ξ ) ] − E ξ ∼ P ‾ [ g ( W ; ξ ) ] ∥ F ≤ 2 G S S M , R TV ( P k , P ‾ ) . (161) \left\lVert\mathbb{E}_{\xi\sim\mathcal{P}_k}\left[g(W;\xi)\right]-\mathbb{E}_{\xi\sim\overline{\mathcal{P}}}\left[g(W;\xi)\right]\right\rVert_F\leq2G_{\mathrm{SSM},R}\operatorname{TV}(\mathcal{P}_k,\overline{\mathcal{P}}). \tag*{(161)} E ξ ∼ P k [ g ( W ; ξ ) ] − E ξ ∼ P [ g ( W ; ξ ) ] F ≤ 2 G SSM , R TV ( P k , P ) . (161)
So:
∥ ∇ W L k ( W ) − ∇ W f ( W ) ∥ F 2 ≤ 4 G S S M , R 2 TV ( P k , P ‾ ) 2 . (162) \left\lVert\nabla_W\mathcal{L}_k(W)-\nabla_W f(W)\right\rVert_F^2\leq4G_{\mathrm{SSM},R}^2\operatorname{TV}(\mathcal{P}_k,\overline{\mathcal{P}})^2. \tag*{(162)} ∥ ∇ W L k ( W ) − ∇ W f ( W ) ∥ F 2 ≤ 4 G SSM , R 2 TV ( P k , P ) 2 . (162)
Multiplying both sides by p k p_k p k and summing over all clients gives:
∑ k = 1 K p k ∥ ∇ W L k ( W ) − ∇ W f ( W ) ∥ F 2 ≤ 4 G S S M , R 2 ∑ k = 1 K p k TV ( P k , P ‾ ) 2 . (163) \sum_{k=1}^{K}p_k\left\lVert\nabla_W\mathcal{L}_k(W)-\nabla_W f(W)\right\rVert_F^2\leq4G_{\mathrm{SSM},R}^2\sum_{k=1}^{K}p_k\operatorname{TV}(\mathcal{P}_k,\overline{\mathcal{P}})^2. \tag*{(163)} k = 1 ∑ K p k ∥ ∇ W L k ( W ) − ∇ W f ( W ) ∥ F 2 ≤ 4 G SSM , R 2 k = 1 ∑ K p k TV ( P k , P ) 2 . (163)
Since the right-hand side of this inequality is independent of W W W , taking the supremum over W ∈ N R ( W r ) W\in\mathcal{N}_R(W^r) W ∈ N R ( W r ) we get:
Γ S S M , R 2 : = sup W ∈ N R ( W r ) ∑ k = 1 K p k ∥ ∇ W L k ( W ) − ∇ W f ( W ) ∥ F 2 ≤ 4 G S S M , R 2 ∑ k = 1 K p k TV ( P k , P ‾ ) 2 . (164) \Gamma_{\mathrm{SSM},R}^2:=\sup_{W\in\mathcal{N}_R(W^r)}\sum_{k=1}^{K}p_k\left\lVert\nabla_W\mathcal{L}_k(W)-\nabla_W f(W)\right\rVert_F^2\leq4G_{\mathrm{SSM},R}^2\sum_{k=1}^{K}p_k\operatorname{TV}(\mathcal{P}_k,\overline{\mathcal{P}})^2. \tag*{(164)} Γ SSM , R 2 := W ∈ N R ( W r ) sup k = 1 ∑ K p k ∥ ∇ W L k ( W ) − ∇ W f ( W ) ∥ F 2 ≤ 4 G SSM , R 2 k = 1 ∑ K p k TV ( P k , P ) 2 . (164)
This proves the SSM client heterogeneity bound.
Theorem B.5: FedAvg SSM Convergence and Proof
Theorem B.5 (FedAvg SSM Convergence). Consider a distributed learning framework established in Section 3, with the objective
f ( W ) : = ∑ k = 1 K p k L k ( W ) , p k ≥ 0 , ∑ k = 1 K p k = 1 , f(W):=\sum_{k=1}^{K}p_k\mathcal{L}_k(W),\qquad p_k\geq0,\qquad\sum_{k=1}^{K}p_k=1, f ( W ) := k = 1 ∑ K p k L k ( W ) , p k ≥ 0 , k = 1 ∑ K p k = 1 , where W W W parameterizes a single-layer selective SSM defined in the same section and each L k \mathcal{L}_k L k is finite and differentiable on the considered neighborhoods.
Let W 0 W^0 W 0 be deterministic with f ( W 0 ) < ∞ f(W^0)<\infty f ( W 0 ) < ∞ and suppose f f f is bounded below by a finite constant f ∗ f^* f ∗ .
Consider full-participation FedAvg distributed training algorithm applied to f ( W ) f(W) f ( W ) for T ≥ 1 T \ge1 T ≥ 1 communication rounds, E ≥ 1 E \ge1 E ≥ 1 local steps per round, Ξ ≥ 1 \Xi\ge1 Ξ ≥ 1 mini-batch size, and constant deterministic local step size η > 0 \eta> 0 η > 0 , with the global model evolution described as:
W k r , 0 = W r , W_k^{r,0}=W^r, W k r , 0 = W r ,
W k r , e + 1 = W k r , e − η g k , Ξ r , e for e ∈ { 0 , … , E − 1 } , W_k^{r,e+1}=W_k^{r,e}-\eta g_{k,\Xi}^{r,e}\quad\text{for }e\in\{0,\ldots,E-1\}, W k r , e + 1 = W k r , e − η g k , Ξ r , e for e ∈ { 0 , … , E − 1 } ,
W r + 1 = ∑ k = 1 K p k W k r , E W^{r+1}=\sum_{k=1}^{K}p_kW_k^{r,E} W r + 1 = k = 1 ∑ K p k W k r , E
where g k , Ξ r , e g_{k,\Xi}^{r,e} g k , Ξ r , e is the average of Ξ \Xi Ξ sequence-level gradients evaluated at W k r , e W_k^{r,e} W k r , e with sampling and conditional unbiasedness, and E , Ξ , T ∈ Z > 0 E,\Xi,T\in\mathbb{Z}_{>0} E , Ξ , T ∈ Z > 0 .
Suppose this model evolution satisfies, almost surely:
W k r , e ∈ N R ( W r ) ⊆ S γ , δ , ∥ W X ∥ 2 + R ≤ M X ∀ X ∈ { Δ , B , C , A } , W_k^{r,e}\in\mathcal{N}_{R}(W^r)\subseteq\mathcal{S}_{\gamma,\delta},\quad\lVert W_X\rVert_2+R\le M_X\quad\forall X\in\{\Delta,B,C,A\}, W k r , e ∈ N R ( W r ) ⊆ S γ , δ , ∥ W X ∥ 2 + R ≤ M X ∀ X ∈ { Δ , B , C , A } ,
for every client k k k and local step 0 ≤ e ≤ E 0\le e\le E 0 ≤ e ≤ E , where W A : = A W_A:=A W A := A , and R , γ , δ > 0 R,\gamma,\delta>0 R , γ , δ > 0 and the finite deterministic envelopes M X M_X M X are common across rounds. Let Assumptions 4.2-4.6 hold uniformly on these neighborhoods.
Define ρ : = exp ( − γ δ ) \rho:=\exp(-\gamma\delta) ρ := exp ( − γ δ ) and auxiliary SSM-specific quantities as follows:
M K Δ : = M Δ L x + D log 2 , M_{K\Delta}:=M_\Delta L_x+\sqrt{D}\log2, M K Δ := M Δ L x + D log 2 ,
M K B : = M B L x 2 , M_{KB}:=M_B L_x^2, M K B := M B L x 2 ,
M K W : = N D M K B M K Δ ( M K Δ + D M A L x ) ρ 1 − ρ + L x 2 N M K Δ + L x D M K B , M_{KW}:=NDM_{KB}M_{K\Delta}\left(M_{K\Delta}+\sqrt{D}M_A L_x\right)\frac{\rho}{1-\rho}+L_x^2\sqrt{N}M_{K\Delta}+L_x\sqrt{D}M_{KB}, M K W := N D M K B M K Δ ( M K Δ + D M A L x ) 1 − ρ ρ + L x 2 N M K Δ + L x D M K B ,
H R : = M K B M K Δ N D 1 − ρ , J R : = M K W 1 − ρ , H_R:=\frac{M_{KB}M_{K\Delta}\sqrt{ND}}{1-\rho},\qquad J_R:=\frac{M_{KW}}{1-\rho}, H R := 1 − ρ M K B M K Δ N D , J R := 1 − ρ M K W ,
M A 1 , R : = ρ ( M K Δ + M A L x ) , M_{A_1,R}:=\rho(M_{K\Delta}+M_A L_x), M A 1 , R := ρ ( M K Δ + M A L x ) ,
M A 2 , R : = ρ [ ( M K Δ + M A L x ) 2 + 2 L x + 1 4 M A L x 2 ] , M_{A_2,R}:=\rho\left[(M_{K\Delta}+M_A L_x)^2+2L_x+\frac{1}{4}M_A L_x^2\right], M A 2 , R := ρ [ ( M K Δ + M A L x ) 2 + 2 L x + 4 1 M A L x 2 ] ,
M B 2 , R : = 2 L x 3 + 1 4 M B L x 4 , M_{B_2,R}:=2L_x^3+\frac{1}{4}M_B L_x^4, M B 2 , R := 2 L x 3 + 4 1 M B L x 4 ,
M H 2 , R : = M A 2 , R H R + 2 M A 1 , R J R + M B 2 , R 1 − ρ . M_{H_2,R}:=\frac{M_{A_2,R}H_R+2M_{A_1,R}J_R+M_{B_2,R}}{1-\rho}. M H 2 , R := 1 − ρ M A 2 , R H R + 2 M A 1 , R J R + M B 2 , R .
These quantities determine the common SSM-specific smoothness and gradient bounds:
L S S M , R : = H ℓ L x 2 ( H R + M C J R ) 2 + L ℓ L x ( M C M H 2 , R + 2 J R ) , L_{\mathrm{SSM},R}:=H_\ell L_x^2(H_R+M_CJ_R)^2+L_\ell L_x(M_CM_{H_2,R}+2J_R), L SSM , R := H ℓ L x 2 ( H R + M C J R ) 2 + L ℓ L x ( M C M H 2 , R + 2 J R ) ,
G S S M , R : = L ℓ L x ( H R + M C J R ) . G_{\mathrm{SSM},R}:=L_\ell L_x(H_R+M_CJ_R). G SSM , R := L ℓ L x ( H R + M C J R ) .
For the client distributions, further define
P ˉ : = ∑ k = 1 K p k P k , H T V : = ∑ k = 1 K p k T V ( P k , P ˉ ) 2 , \bar{P}:=\sum_{k=1}^{K}p_kP_k,\qquad\mathcal{H}_{\mathrm{TV}}:=\sum_{k=1}^{K}p_k\,\mathrm{TV}(P_k,\bar{P})^2, P ˉ := k = 1 ∑ K p k P k , H TV := k = 1 ∑ K p k TV ( P k , P ˉ ) 2 ,
where T V ( P , Q ) : = sup A ∣ P ( A ) − Q ( A ) ∣ \mathrm{TV}(P,Q):=\sup_A\lvert P(A)-Q(A)\rvert TV ( P , Q ) := sup A ∣ P ( A ) − Q ( A )∣ is the total variation distance, with the supremum taken over measurable sets A A A .
Then, for any constant deterministic step size η > 0 \eta>0 η > 0 satisfying
η E L S S M , R ≤ 1 2 , 12 η 2 L S S M , R 2 E ( E − 1 ) ≤ 1 , \eta E L_{\mathrm{SSM},R}\le\frac{1}{2},\qquad12\eta^2L_{\mathrm{SSM},R}^2E(E-1)\le1, η E L SSM , R ≤ 2 1 , 12 η 2 L SSM , R 2 E ( E − 1 ) ≤ 1 ,
the following holds:
1 T ∑ r = 0 T − 1 E ∥ ∇ f ( W r ) ∥ F 2 ≤ 4 ( f ( W 0 ) − f ∗ ) η E T + 4 η L S S M , R G S S M , R 2 Ξ ∑ k = 1 K p k 2 \frac{1}{T}\sum_{r=0}^{T-1}\mathbb{E}\lVert\nabla f(W^r)\rVert_F^2\le\frac{4(f(W^0)-f^*)}{\eta ET}+\frac{4\eta L_{\mathrm{SSM},R}G_{\mathrm{SSM},R}^2}{\Xi}\sum_{k=1}^{K}p_k^2 T 1 r = 0 ∑ T − 1 E ∥ ∇ f ( W r ) ∥ F 2 ≤ η E T 4 ( f ( W 0 ) − f ∗ ) + Ξ 4 η L SSM , R G SSM , R 2 k = 1 ∑ K p k 2
+ 6 η 2 L S S M , R 2 ( E − 1 ) G S S M , R 2 Ξ + 48 η 2 L S S M , R 2 E ( E − 1 ) G S S M , R 2 H T V . \qquad+\frac{6\eta^2L_{\mathrm{SSM},R}^2(E-1)G_{\mathrm{SSM},R}^2}{\Xi}+48\eta^2L_{\mathrm{SSM},R}^2E(E-1)G_{\mathrm{SSM},R}^2\mathcal{H}_{\mathrm{TV}}. + Ξ 6 η 2 L SSM , R 2 ( E − 1 ) G SSM , R 2 + 48 η 2 L SSM , R 2 E ( E − 1 ) G SSM , R 2 H TV .
Proof of Theorem B.5 : We start from a standard nonconvex FedAvg convergence bound applicable to the setting considered here. Previous works establish a general bound (see Supplemental Material C.6, Equation (96) of Wang et al. (2020)) for smooth local objectives, unbiased stochastic gradients with bounded variance, and bounded client gradient dissimilarity.
For a setting with full client participation, E E E local SGD steps per client, and objective and aggregation weights p k p_k p k , the bound in Wang et al. (2020) takes the following form:
1 T ∑ r = 0 T − 1 E [ ∥ ∇ f ( W r ) ∥ F 2 ] ≤ 4 ( f ( W 0 ) − f ∗ ) η E T + 4 η L σ 2 ∑ k = 1 K p k 2 + 6 η 2 L 2 ( E − 1 ) σ 2 + 12 η 2 L 2 E ( E − 1 ) Γ 2 , (165) \frac{1}{T}\sum_{r=0}^{T-1}\mathbb{E}\left[\left\lVert\nabla f(W^r)\right\rVert_F^2\right] \le\frac{4\left(f(W^0)-f^*\right)}{\eta E T}+4\eta L\sigma^2\sum_{k=1}^{K}p_k^2+6\eta^2L^2(E-1)\sigma^2+12\eta^2L^2E(E-1)\Gamma^2, \tag*{(165)} T 1 r = 0 ∑ T − 1 E [ ∥ ∇ f ( W r ) ∥ F 2 ] ≤ η E T 4 ( f ( W 0 ) − f ∗ ) + 4 η L σ 2 k = 1 ∑ K p k 2 + 6 η 2 L 2 ( E − 1 ) σ 2 + 12 η 2 L 2 E ( E − 1 ) Γ 2 , (165)
whenever η > 0 \eta> 0 η > 0 satisfies
η L E ≤ 1 2 , 12 η 2 L 2 E ( E − 1 ) ≤ 1. \eta L E \le\frac{1}{2}, \qquad12\eta^2L^2E(E-1)\le1. η L E ≤ 2 1 , 12 η 2 L 2 E ( E − 1 ) ≤ 1.
Here, L L L is a common smoothness constant, σ 2 \sigma^2 σ 2 bounds the conditional variance of each mini-batch gradient estimator, and Γ 2 \Gamma^2 Γ 2 bounds the weighted client gradient disagreement:
∑ k = 1 K p k ∥ ∇ L k ( W ) − ∇ f ( W ) ∥ F 2 ≤ Γ 2 . (166) \sum_{k=1}^{K}p_k\left\lVert\nabla\mathcal{L}_k(W)-\nabla f(W)\right\rVert_F^2\le\Gamma^2. \tag*{(166)} k = 1 ∑ K p k ∥ ∇ L k ( W ) − ∇ f ( W ) ∥ F 2 ≤ Γ 2 . (166)
Note that the inequality (164) specializes the result in Wang et al. (2020) applied to full client participation, E E E local SGD steps at every client, and aggregation weights equal to the objective weights p k p_k p k .
We apply this bound to the selective SSM setting by substituting the constants established in our lemmas. First, Lemma 4.7, evaluated with the common envelopes M X M_X M X , gives
L = L S S M , R , (167) L=L_{\mathrm{SSM},R}, \tag*{(167)} L = L SSM , R , (167)
with L S S M , R L_{\mathrm{SSM},R} L SSM , R defined in Theorem B.5 . Since each neighborhood N R ( W r ) N_R(W^r) N R ( W r ) is convex and contains all local iterates in round r r r , it also contains their weighted averages and the segment joining W r W^r W r to W r + 1 W^{r+1} W r + 1 . As such, all smoothness inequalities used in the convergence argument hold with the common constant L S S M , R L_{\mathrm{SSM},R} L SSM , R .
Next, Lemma B.2 derives the common stochastic gradient second-moment bound G S S M , R 2 G^2_{\mathrm{SSM},R} G SSM , R 2 . Together with the sampling conditions in Assumption 4.6, Lemma B.3 establishes the choice
σ 2 = G S S M , R 2 Ξ . (168) \sigma^2=\frac{G^2_{\mathrm{SSM},R}}{\Xi}. \tag*{(168)} σ 2 = Ξ G SSM , R 2 . (168)
Finally, Lemma B.4 establishes the common heterogeneity bound
Γ 2 = 4 G S S M , R 2 ∑ k = 1 K p k TV ( P k , P ˉ ) 2 = 4 G S S M , R 2 H T V . (169) \Gamma^2=4G^2_{\mathrm{SSM},R}\sum_{k=1}^{K}p_k\,\operatorname{TV}(P_k,\bar{P})^2=4G^2_{\mathrm{SSM},R}\mathcal{H}_{\mathrm{TV}}. \tag*{(169)} Γ 2 = 4 G SSM , R 2 k = 1 ∑ K p k TV ( P k , P ˉ ) 2 = 4 G SSM , R 2 H TV . (169)
Substituting these quantities into (164), we obtain the inequality stated in Theorem B.5 whenever η > 0 \eta>0 η > 0 satisfies the stated conditions with L = L S S M , R L=L_{\mathrm{SSM},R} L = L SSM , R .
Theorem B.6: FedProx SSM Convergence and Proof
The FedProx algorithm modifies the local client objective by adding a proximal penalty around the round-r r r broadcast model W r W^r W r :
F k r ( W ) : = L k ( W ) + μ 2 ∥ W − W r ∥ F 2 , μ > 0 , (170) F_k^r(W):=\mathcal{L}_k(W)+\frac{\mu}{2}\left\lVert W-W^r\right\rVert_F^2,\qquad\mu>0, \tag*{(170)} F k r ( W ) := L k ( W ) + 2 μ ∥ W − W r ∥ F 2 , μ > 0 , (170)
thus changing the local optimization dynamics.
In this section we introduce a theorem that quantifies the convergence behavior of a distributed learning framework that utilizes the FedProx with selective State Space Models, and provide a corresponding proof.
Theorem B.6 (FedProx convergence for selective SSMs). Consider a distributed learning framework established in Section 3, with the objective
f ( W ) : = ∑ k = 1 K p k L k ( W ) , p k ≥ 0 , ∑ k = 1 K p k = 1 , f(W) := \sum_{k=1}^{K} p_k\mathcal{L}_k(W), \qquad p_k \ge0, \qquad\sum_{k=1}^{K}p_k = 1, f ( W ) := k = 1 ∑ K p k L k ( W ) , p k ≥ 0 , k = 1 ∑ K p k = 1 , where W W W parameterizes a single-layer selective SSM defined in the same section and each L k \mathcal{L}_k L k is finite and differentiable on the considered neighborhoods.
Let W 0 W^0 W 0 be deterministic with f ( W 0 ) < ∞ f(W^0) < \infty f ( W 0 ) < ∞ and suppose f f f is bounded below by a finite constant f ∗ f^* f ∗ .
Consider full-participation FedProx distributed training algorithm applied to f ( W ) f(W) f ( W ) for T ≥ 1 T \ge1 T ≥ 1 communication rounds, E ≥ 1 E \ge1 E ≥ 1 local steps per round, Ξ ≥ 1 \Xi\ge1 Ξ ≥ 1 mini-batch size, constant deterministic local step size η > 0 \eta> 0 η > 0 , and constant deterministic proximal coefficient μ > 0 \mu> 0 μ > 0 , with the global model evolution described as:
W k r , 0 = W r , W_k^{r,0} = W^r, W k r , 0 = W r , W k r , e + 1 = W k r , e − η ( g k , Ξ r , e + μ ( W k r , e − W r ) ) for e ∈ { 0 , … , E − 1 } , W_k^{r,e+1} = W_k^{r,e} - \eta\left(g_{k,\Xi}^{r,e} + \mu\left(W_k^{r,e} - W^r\right)\right) \quad\text{for } e \in\{0,\ldots,E-1\}, W k r , e + 1 = W k r , e − η ( g k , Ξ r , e + μ ( W k r , e − W r ) ) for e ∈ { 0 , … , E − 1 } , W r + 1 = ∑ k = 1 K p k W k r , E . W^{r+1} = \sum_{k=1}^{K}p_kW_k^{r,E}. W r + 1 = k = 1 ∑ K p k W k r , E . where g k , Ξ r , e g_{k,\Xi}^{r,e} g k , Ξ r , e is the average of Ξ \Xi Ξ sequence-level gradients evaluated at W k r , e W_k^{r,e} W k r , e with sampling and conditional unbiasedness, and E , Ξ , T ∈ Z > 0 E,\Xi,T \in\mathbb{Z}_{>0} E , Ξ , T ∈ Z > 0 .
Suppose that, almost surely for every round r < T r < T r < T :
W k r , e ∈ N R ( W r ) ⊆ S γ , δ , ∥ W X r ∥ 2 + R ≤ M X ∀ X ∈ { Δ , B , C , A } , (171) W_k^{r,e} \in\mathcal{N}_{R}(W^r) \subseteq\mathcal{S}_{\gamma,\delta}, \qquad\lVert W_X^r\rVert_2 + R \le M_X \quad\forall X \in\{\Delta,B,C,A\}, \tag*{(171)} W k r , e ∈ N R ( W r ) ⊆ S γ , δ , ∥ W X r ∥ 2 + R ≤ M X ∀ X ∈ { Δ , B , C , A } , (171) for every client k k k and local step 0 ≤ e ≤ E 0 \le e \le E 0 ≤ e ≤ E , where W A : = A W_A := A W A := A , and R , γ , δ > 0 R,\gamma,\delta> 0 R , γ , δ > 0 and the finite deterministic envelopes M X M_X M X are common across rounds. Let Assumptions 4.2-4.6 hold uniformly on these neighborhoods.
Define ρ : = exp ( − γ δ ) \rho:= \exp(-\gamma\delta) ρ := exp ( − γ δ ) . Assume 0 < η μ ≤ 1 0 < \eta\mu\le1 0 < η μ ≤ 1 , and define the effective radius R μ R_\mu R μ by
R μ : = min { R , η G S S M , R ∑ j = 0 E − 1 ( 1 − η μ ) j } = min { R , G S S M , R μ [ 1 − ( 1 − η μ ) E ] } . R_\mu:= \min\left\{R,\eta G_{\mathrm{SSM},R}\sum_{j=0}^{E-1}(1-\eta\mu)^j\right\}
= \min\left\{R,\frac{G_{\mathrm{SSM},R}}{\mu}\left[1-(1-\eta\mu)^E\right]\right\}. R μ := min { R , η G SSM , R j = 0 ∑ E − 1 ( 1 − η μ ) j } = min { R , μ G SSM , R [ 1 − ( 1 − η μ ) E ] } . where G S S M , R G_{\mathrm{SSM},R} G SSM , R is defined in Theorem B.5, with the corresponding FedProx parameter envelopes defined as:
M X μ : = M X − R + R μ ∀ X ∈ { Δ , B , C , A } . M_X^\mu:= M_X - R + R_\mu\quad\forall X \in\{\Delta,B,C,A\}. M X μ := M X − R + R μ ∀ X ∈ { Δ , B , C , A } . The corresponding auxiliary SSM-specific quantities are then defined as:
M K Δ μ : = M Δ μ L x + D log 2 , M_{K_\Delta}^\mu:= M_\Delta^\mu L_x + \sqrt{D}\log2, M K Δ μ := M Δ μ L x + D log 2 , M K B μ : = M B μ L x 2 , M_{K_B}^\mu:= M_B^\mu L_x^2, M K B μ := M B μ L x 2 , M K W μ : = N D M K B μ M K Δ μ ( M K Δ μ + D M A μ L x ) ρ 1 − ρ + L x 2 N M K Δ μ + L x D M K B μ , M_{K_W}^\mu:= ND M_{K_B}^\mu M_{K_\Delta}^\mu\left(M_{K_\Delta}^\mu+\sqrt{D}M_A^\mu L_x\right)\frac{\rho}{1-\rho}+L_x^2\sqrt{N}M_{K_\Delta}^\mu+L_x\sqrt{D}M_{K_B}^\mu, M K W μ := N D M K B μ M K Δ μ ( M K Δ μ + D M A μ L x ) 1 − ρ ρ + L x 2 N M K Δ μ + L x D M K B μ , H R μ : = M K B μ M K Δ μ N D 1 − ρ , J R μ : = M K W μ 1 − ρ , H_{R_\mu}:=\frac{M_{K_B}^\mu M_{K_\Delta}^\mu\sqrt{ND}}{1-\rho}, \qquad J_{R_\mu}:=\frac{M_{K_W}^\mu}{1-\rho}, H R μ := 1 − ρ M K B μ M K Δ μ N D , J R μ := 1 − ρ M K W μ , M A 1 , R μ : = ρ ( M K Δ μ + M A μ L x ) , M_{A_1,R}^\mu:= \rho\left(M_{K_\Delta}^\mu+M_A^\mu L_x\right), M A 1 , R μ := ρ ( M K Δ μ + M A μ L x ) , M A 2 , R μ : = ρ [ ( M K Δ μ + M A μ L x ) 2 + 2 L x + 1 4 M A μ L x 2 ] , M_{A_2,R}^\mu:= \rho\left[\left(M_{K_\Delta}^\mu+M_A^\mu L_x\right)^2+2L_x+\frac{1}{4}M_A^\mu L_x^2\right], M A 2 , R μ := ρ [ ( M K Δ μ + M A μ L x ) 2 + 2 L x + 4 1 M A μ L x 2 ] , M B 2 , R μ : = 2 L x 3 + 1 4 M B μ L x 4 , M_{B_2,R}^\mu:= 2L_x^3+\frac{1}{4}M_B^\mu L_x^4, M B 2 , R μ := 2 L x 3 + 4 1 M B μ L x 4 , M H 2 , R μ : = M A 2 , R μ H R μ + 2 M A 1 , R μ J R μ + M B 2 , R μ 1 − ρ . M_{H_2,R}^\mu:= \frac{M_{A_2,R}^\mu H_{R_\mu}+2M_{A_1,R}^\mu J_{R_\mu}+M_{B_2,R}^\mu}{1-\rho}. M H 2 , R μ := 1 − ρ M A 2 , R μ H R μ + 2 M A 1 , R μ J R μ + M B 2 , R μ .
Let:
L S S M , R μ : = H ℓ L x 2 ( H R μ + M C μ J R μ ) 2 + L ℓ L x ( M C μ M H 2 , R μ + 2 J R μ ) , L p r o x , R μ : = L S S M , R μ + μ . G S S M , R μ : = L ℓ L x ( H R μ + M C μ J R μ ) , \begin{aligned}
L_{\mathrm{SSM},R_\mu} &:= H_\ell L_x^2\left(H_{R_\mu}+M_C^\mu J_{R_\mu}\right)^2+L_\ell L_x\left(M_C^\mu M_{H_2,R}^\mu+2J_{R_\mu}\right),\\
L_{\mathrm{prox},R_\mu} &:= L_{\mathrm{SSM},R_\mu}+\mu.\\
G_{\mathrm{SSM},R_\mu} &:= L_\ell L_x\left(H_{R_\mu}+M_C^\mu J_{R_\mu}\right),
\end{aligned} L SSM , R μ L prox , R μ G SSM , R μ := H ℓ L x 2 ( H R μ + M C μ J R μ ) 2 + L ℓ L x ( M C μ M H 2 , R μ + 2 J R μ ) , := L SSM , R μ + μ . := L ℓ L x ( H R μ + M C μ J R μ ) ,
denote common deterministic SSM-specific smoothness and gradient bounds constants evaluated on N R μ ( W r ) \mathcal{N}_{R_\mu}(W^r) N R μ ( W r ) .
For the client distributions, further define
P ‾ : = ∑ k = 1 K p k P k , H T V : = ∑ k = 1 K p k TV ( P k , P ‾ ) 2 , \overline{P}:=\sum_{k=1}^{K}p_kP_k,\qquad\mathcal{H}_{\mathrm{TV}}:=\sum_{k=1}^{K}p_k\operatorname{TV}(P_k,\overline{P})^2, P := k = 1 ∑ K p k P k , H TV := k = 1 ∑ K p k TV ( P k , P ) 2 ,
where TV ( P , Q ) : = sup A ∣ P ( A ) − Q ( A ) ∣ \operatorname{TV}(P,Q):=\sup_A\lvert P(A)-Q(A)\rvert TV ( P , Q ) := sup A ∣ P ( A ) − Q ( A )∣ is the total variation distance, with the supremum taken over measurable sets A A A .
Then, for any constant deterministic step size η > 0 \eta>0 η > 0 satisfying
η E L S S M , R μ ≤ 1 2 , 12 η 2 L p r o x , R μ 2 E ( E − 1 ) ≤ 1 , \eta E L_{\mathrm{SSM},R_\mu}\leq\frac{1}{2},\qquad12\eta^2L_{\mathrm{prox},R_\mu}^2E(E-1)\leq1, η E L SSM , R μ ≤ 2 1 , 12 η 2 L prox , R μ 2 E ( E − 1 ) ≤ 1 ,
the following bound holds:
1 T ∑ r = 0 T − 1 E ∥ ∇ f ( W r ) ∥ F 2 ≤ 3 ( f ( W 0 ) − f ⋆ ) η E T + 3 η L S S M , R μ G S S M , R μ 2 Ξ ∑ k = 1 K p k 2 + 3 η 2 L p r o x , R μ 2 ( E − 1 ) G S S M , R μ 2 Ξ + 24 η 2 L p r o x , R μ 2 E ( E − 1 ) G S S M , R μ 2 H T V . \frac{1}{T}\sum_{r=0}^{T-1}\mathbb{E}\left\|\nabla f(W^r)\right\|_F^2
\leq
\frac{3\left(f(W^0)-f^\star\right)}{\eta E T}
+\frac{3\eta L_{\mathrm{SSM},R_\mu}G_{\mathrm{SSM},R_\mu}^2}{\Xi}\sum_{k=1}^{K}p_k^2
+\frac{3\eta^2L_{\mathrm{prox},R_\mu}^2(E-1)G_{\mathrm{SSM},R_\mu}^2}{\Xi}
+24\eta^2L_{\mathrm{prox},R_\mu}^2E(E-1)G_{\mathrm{SSM},R_\mu}^2\mathcal{H}_{\mathrm{TV}}. T 1 r = 0 ∑ T − 1 E ∥ ∇ f ( W r ) ∥ F 2 ≤ η E T 3 ( f ( W 0 ) − f ⋆ ) + Ξ 3 η L SSM , R μ G SSM , R μ 2 k = 1 ∑ K p k 2 + Ξ 3 η 2 L prox , R μ 2 ( E − 1 ) G SSM , R μ 2 + 24 η 2 L prox , R μ 2 E ( E − 1 ) G SSM , R μ 2 H TV .
Moreover, almost surely, for every round r < T r<T r < T , client k k k , and local step 0 ≤ e ≤ E 0\leq e\leq E 0 ≤ e ≤ E ,
∥ W k r , e − W r ∥ F ≤ min { R , G S S M , R μ [ 1 − ( 1 − η μ ) e ] } ≤ R μ . \left\|W_k^{r,e}-W^r\right\|_F\leq\min\left\{R,\frac{G_{\mathrm{SSM},R}}{\mu}\left[1-(1-\eta\mu)^e\right]\right\}\leq R_\mu. ∥ W k r , e − W r ∥ F ≤ min { R , μ G SSM , R [ 1 − ( 1 − η μ ) e ] } ≤ R μ .
Consequently, all local iterates and the aggregated model W r + 1 W^{r+1} W r + 1 lie in N R μ ( W r ) ⊆ S γ , δ \mathcal{N}_{R_\mu}(W^r)\subseteq\mathcal{S}_{\gamma,\delta} N R μ ( W r ) ⊆ S γ , δ .
Proof of Theorem B.6: The FedProx framework modifies the local update as:
W k r , e + 1 = W k r , e − η ( g k , Ξ r , e + μ ( W k r , e − W r ) ) , W k r , 0 = W r . (172) W_k^{r,e+1}=W_k^{r,e}-\eta\left(g_{k,\Xi}^{r,e}+\mu\left(W_k^{r,e}-W^r\right)\right),\qquad W_k^{r,0}=W^r. \tag*{(172)} W k r , e + 1 = W k r , e − η ( g k , Ξ r , e + μ ( W k r , e − W r ) ) , W k r , 0 = W r . (172)
Subtracting the broadcast model W r W^r W r gives
W k r , e + 1 − W r = ( 1 − η μ ) ( W k r , e − W r ) − η g k , Ξ r , e (173) W_k^{r,e+1}-W^r=(1-\eta\mu)\left(W_k^{r,e}-W^r\right)-\eta g_{k,\Xi}^{r,e} \tag*{(173)} W k r , e + 1 − W r = ( 1 − η μ ) ( W k r , e − W r ) − η g k , Ξ r , e (173)
Taking Frobenius norms, using 0 < η μ ≤ 1 0<\eta\mu\leq1 0 < η μ ≤ 1 , and by the triangle inequality,
∥ W k r , e + 1 − W r ∥ F ≤ ( 1 − η μ ) ∥ W k r , e − W r ∥ F + η ∥ g k , Ξ r , e ∥ F . (174) \left\|W_k^{r,e+1}-W^r\right\|_F\leq(1-\eta\mu)\left\|W_k^{r,e}-W^r\right\|_F+\eta\left\|g_{k,\Xi}^{r,e}\right\|_F. \tag*{(174)} W k r , e + 1 − W r F ≤ ( 1 − η μ ) ∥ W k r , e − W r ∥ F + η g k , Ξ r , e F . (174)
By the bound (141) established in the proof of Lemma B.2, every admissible sequence gradient satisfies ∥ g k ( W ; ξ ) ∥ F ≤ G S S M , R \left\|g_k(W;\xi)\right\|_F\leq G_{\mathrm{SSM},R} ∥ g k ( W ; ξ ) ∥ F ≤ G SSM , R for all W ∈ N R ( W r ) W\in\mathcal{N}_R(W^r) W ∈ N R ( W r ) . As such, the mini-batch gradients satisfy:
∥ g k , Ξ r , e ∥ F = ∥ 1 Ξ ∑ i = 1 Ξ g k ( W k r , e ; ξ k , i r , e ) ∥ F ≤ 1 Ξ ∑ i = 1 Ξ ∥ g k ( W k r , e ; ξ k , i r , e ) ∥ F ≤ G S S M , R (175) \left\|g_{k,\Xi}^{r,e}\right\|_F
=
\left\|\frac{1}{\Xi}\sum_{i=1}^{\Xi}g_k\left(W_k^{r,e};\xi_{k,i}^{r,e}\right)\right\|_F
\leq\frac{1}{\Xi}\sum_{i=1}^{\Xi}\left\|g_k\left(W_k^{r,e};\xi_{k,i}^{r,e}\right)\right\|_F
\leq G_{\mathrm{SSM},R} \tag*{(175)} g k , Ξ r , e F = Ξ 1 i = 1 ∑ Ξ g k ( W k r , e ; ξ k , i r , e ) F ≤ Ξ 1 i = 1 ∑ Ξ g k ( W k r , e ; ξ k , i r , e ) F ≤ G SSM , R (175)
Therefore:
∥ W k r , e + 1 − W r ∥ F ≤ ( 1 − η μ ) ∥ W k r , e − W r ∥ F + η G S S M , R . (176) \left\|W_k^{r,e+1}-W^r\right\|_F\leq(1-\eta\mu)\left\|W_k^{r,e}-W^r\right\|_F+\eta G_{\mathrm{SSM},R}. \tag*{(176)} W k r , e + 1 − W r F ≤ ( 1 − η μ ) ∥ W k r , e − W r ∥ F + η G SSM , R . (176)
Unrolling the recursion from W k r , 0 = W r W_k^{r,0}=W^r W k r , 0 = W r for every 0 ≤ e ≤ E 0\leq e\leq E 0 ≤ e ≤ E , we get:
∥ W k r , e − W r ∥ F ≤ η G S S M , R ∑ e ′ = 0 e − 1 ( 1 − η μ ) e ′ = G S S M , R μ [ 1 − ( 1 − η μ ) e ] (177) \left\|W_k^{r,e}-W^r\right\|_F\leq\eta G_{\mathrm{SSM},R}\sum_{e'=0}^{e-1}(1-\eta\mu)^{e'}=\frac{G_{\mathrm{SSM},R}}{\mu}\left[1-(1-\eta\mu)^e\right] \tag*{(177)} ∥ W k r , e − W r ∥ F ≤ η G SSM , R e ′ = 0 ∑ e − 1 ( 1 − η μ ) e ′ = μ G SSM , R [ 1 − ( 1 − η μ ) e ] (177)
Combining this with the established neighborhood bounds ∥ W k r , e − W r ∥ F ≤ R \lVert W_k^{r,e}-W^r\rVert_F \le R ∥ W k r , e − W r ∥ F ≤ R , we get:
∥ W k r , e − W r ∥ F ≤ min ( R , G S S M , R μ [ 1 − ( 1 − η μ ) e ] ) ≤ R μ (178) \lVert W_k^{r,e}-W^r\rVert_F \le\min\left(R,\frac{G_{\mathrm{SSM},R}}{\mu}\left[1-\left(1-\eta\mu\right)^e\right]\right)\le R_\mu \tag*{(178)} ∥ W k r , e − W r ∥ F ≤ min ( R , μ G SSM , R [ 1 − ( 1 − η μ ) e ] ) ≤ R μ (178)
and since p k ≥ 0 p_k \ge0 p k ≥ 0 and ∑ k p k = 1 \sum_k p_k=1 ∑ k p k = 1 , it follows that:
∥ W r + 1 − W r ∥ F = ∥ ∑ k = 1 K p k ( W k r , E − W r ) ∥ F ≤ ∑ k = 1 K p k ∥ W k r , E − W r ∥ F ≤ R μ . (179) \begin{aligned}
\lVert W^{r+1}-W^r\rVert_F
&=\left\lVert\sum_{k=1}^{K}p_k\left(W_k^{r,E}-W^r\right)\right\rVert_F\\
&\le\sum_{k=1}^{K}p_k\lVert W_k^{r,E}-W^r\rVert_F\le R_\mu. \tag*{(179)}
\end{aligned} ∥ W r + 1 − W r ∥ F = k = 1 ∑ K p k ( W k r , E − W r ) F ≤ k = 1 ∑ K p k ∥ W k r , E − W r ∥ F ≤ R μ . (179)
This shows that all local iterates as well as W r + 1 W^{r+1} W r + 1 belong to N R μ ( W r ) ⊆ S γ , δ \mathcal{N}_{R_\mu}(W^r)\subseteq\mathcal{S}_{\gamma,\delta} N R μ ( W r ) ⊆ S γ , δ . Since this neighborhood is convex, the segments used below in the smoothness arguments also remain inside it.
Next, for every W ∈ N R μ ( W r ) W\in\mathcal{N}_{R_\mu}(W^r) W ∈ N R μ ( W r ) and parameter block X ∈ { Δ , B , C , A } X\in\{\Delta,B,C,A\} X ∈ { Δ , B , C , A } ,
∥ W X ∥ 2 ≤ ∥ W X r ∥ 2 + R μ ≤ M X − R + R μ = : M X μ . (180) \lVert W_X\rVert_2\le\lVert W_X^r\rVert_2+R_\mu\le M_X-R+R_\mu=:M_X^\mu. \tag*{(180)} ∥ W X ∥ 2 ≤ ∥ W X r ∥ 2 + R μ ≤ M X − R + R μ =: M X μ . (180)
These M X μ M_X^\mu M X μ are uniform across rounds and deterministic. Let L S S M , R μ L_{\mathrm{SSM},R_\mu} L SSM , R μ and G S S M , R μ G_{\mathrm{SSM},R_\mu} G SSM , R μ denote the SSM smoothness and stochastic-gradient constants constructed using M X μ M_X^\mu M X μ , with the stability, input, and loss-regularity constants remaining unchanged. In particular:
M K Δ μ : = M Δ μ L x + D log 2 , (181) M_{K_\Delta}^\mu:=M_\Delta^\mu L_x+\sqrt{D}\log2, \tag*{(181)} M K Δ μ := M Δ μ L x + D log 2 , (181)
M K B μ : = M B μ L x 2 , (182) M_{K_B}^\mu:=M_B^\mu L_x^2, \tag*{(182)} M K B μ := M B μ L x 2 , (182)
M K W μ : = N D M K B μ M K Δ μ ( M K Δ μ + D M A μ L x ) ρ 1 − ρ + L x 2 N M K Δ μ + L x D M K B μ , (183) M_{K_W}^\mu:=NDM_{K_B}^\mu M_{K_\Delta}^\mu\left(M_{K_\Delta}^\mu+\sqrt{D}M_A^\mu L_x\right)\frac{\rho}{1-\rho}+L_x^2\sqrt{N}M_{K_\Delta}^\mu+L_x\sqrt{D}M_{K_B}^\mu, \tag*{(183)} M K W μ := N D M K B μ M K Δ μ ( M K Δ μ + D M A μ L x ) 1 − ρ ρ + L x 2 N M K Δ μ + L x D M K B μ , (183)
H R μ : = M K B μ M K Δ μ N D 1 − ρ , J R μ : = M K W μ 1 − ρ , (184) H_{R_\mu}:=\frac{M_{K_B}^\mu M_{K_\Delta}^\mu\sqrt{ND}}{1-\rho},\qquad J_{R_\mu}:=\frac{M_{K_W}^\mu}{1-\rho}, \tag*{(184)} H R μ := 1 − ρ M K B μ M K Δ μ N D , J R μ := 1 − ρ M K W μ , (184)
M A 1 , R μ : = ρ ( M K Δ μ + M A μ L x ) , (185) M_{A_1,R}^\mu:=\rho\left(M_{K_\Delta}^\mu+M_A^\mu L_x\right), \tag*{(185)} M A 1 , R μ := ρ ( M K Δ μ + M A μ L x ) , (185)
M A 2 , R μ : = ρ [ ( M K Δ μ + M A μ L x ) 2 + 2 L x + 1 4 M A μ 2 L x 2 ] , (186) M_{A_2,R}^\mu:=\rho\left[\left(M_{K_\Delta}^\mu+M_A^\mu L_x\right)^2+2L_x+\frac{1}{4}M_A^{\mu\,2}L_x^2\right], \tag*{(186)} M A 2 , R μ := ρ [ ( M K Δ μ + M A μ L x ) 2 + 2 L x + 4 1 M A μ 2 L x 2 ] , (186)
M B 2 , R μ : = 2 L x 3 + 1 4 M B μ L x 4 , (187) M_{B_2,R}^\mu:=2L_x^3+\frac{1}{4}M_B^\mu L_x^4, \tag*{(187)} M B 2 , R μ := 2 L x 3 + 4 1 M B μ L x 4 , (187)
M H 2 , R μ : = M A 2 , R μ H R μ + 2 M A 1 , R μ J R μ + M B 2 , R μ 1 − ρ , (188) M_{H_2,R}^\mu:=\frac{M_{A_2,R}^\mu H_{R_\mu}+2M_{A_1,R}^\mu J_{R_\mu}+M_{B_2,R}^\mu}{1-\rho}, \tag*{(188)} M H 2 , R μ := 1 − ρ M A 2 , R μ H R μ + 2 M A 1 , R μ J R μ + M B 2 , R μ , (188)
L S S M , R μ : = H ℓ L x 2 ( H R μ + M C μ J R μ ) 2 + L ℓ L x ( M C μ M H 2 , R μ + 2 J R μ ) , (189) L_{\mathrm{SSM},R_\mu}:=H_\ell L_x^2\left(H_{R_\mu}+M_C^\mu J_{R_\mu}\right)^2+L_\ell L_x\left(M_C^\mu M_{H_2,R}^\mu+2J_{R_\mu}\right), \tag*{(189)} L SSM , R μ := H ℓ L x 2 ( H R μ + M C μ J R μ ) 2 + L ℓ L x ( M C μ M H 2 , R μ + 2 J R μ ) , (189)
G S S M , R μ : = L ℓ L x ( H R μ + M C μ J R μ ) , (190) G_{\mathrm{SSM},R_\mu}:=L_\ell L_x\left(H_{R_\mu}+M_C^\mu J_{R_\mu}\right), \tag*{(190)} G SSM , R μ := L ℓ L x ( H R μ + M C μ J R μ ) , (190)
and in addition define:
L p r o x , R μ = L S S M , R μ + μ (191) L_{\mathrm{prox},R_\mu}=L_{\mathrm{SSM},R_\mu}+\mu \tag*{(191)} L prox , R μ = L SSM , R μ + μ (191)
On this neighborhood, Lemma 4.7 implies that each L k \mathcal{L}_k L k is L S S M , R μ L_{\mathrm{SSM},R_\mu} L SSM , R μ -smooth.
Then, for any W , V ∈ N R μ ( W r ) W,V\in\mathcal{N}_{R_\mu}(W^r) W , V ∈ N R μ ( W r ) , the gradients of the local proximal objective satisfy:
∥ ( ∇ L k ( W ) + μ ( W − W r ) ) − ( ∇ L k ( V ) + μ ( V − W r ) ) ∥ F ≤ ∥ ∇ L k ( W ) − ∇ L k ( V ) ∥ F + μ ∥ W − V ∥ F ≤ ( L S S M , R μ + μ ) ∥ W − V ∥ F = L p r o x , R μ ∥ W − V ∥ F . (192) \begin{aligned}
\left\lVert\left(\nabla\mathcal{L}_k(W)+\mu(W-W^r)\right)-\left(\nabla\mathcal{L}_k(V)+\mu(V-W^r)\right)\right\rVert_F
&\le\lVert\nabla\mathcal{L}_k(W)-\nabla\mathcal{L}_k(V)\rVert_F+\mu\lVert W-V\rVert_F\\
&\le\left(L_{\mathrm{SSM},R_\mu}+\mu\right)\lVert W-V\rVert_F\\
&=L_{\mathrm{prox},R_\mu}\lVert W-V\rVert_F. \tag*{(192)}
\end{aligned} ∥ ( ∇ L k ( W ) + μ ( W − W r ) ) − ( ∇ L k ( V ) + μ ( V − W r ) ) ∥ F ≤ ∥ ∇ L k ( W ) − ∇ L k ( V ) ∥ F + μ ∥ W − V ∥ F ≤ ( L SSM , R μ + μ ) ∥ W − V ∥ F = L prox , R μ ∥ W − V ∥ F . (192)
Therefore, the local proximal objective L k ( W ) + μ 2 ∥ W − W r ∥ F 2 \mathcal{L}_k(W)+\frac{\mu}{2}\lVert W-W^r\rVert_F^2 L k ( W ) + 2 μ ∥ W − W r ∥ F 2 is L p r o x , R μ L_{\mathrm{prox},R_\mu} L prox , R μ -smooth on N R μ ( W r ) \mathcal{N}_{R_\mu}(W^r) N R μ ( W r ) . Moreover, since f = ∑ k p k L k f=\sum_k p_k\mathcal{L}_k f = ∑ k p k L k with p k ≥ 0 p_k\ge0 p k ≥ 0 and ∑ k p k = 1 \sum_k p_k=1 ∑ k p k = 1 , the global objective f f f remains L S S M , R μ L_{\mathrm{SSM},R_\mu} L SSM , R μ -smooth on the same neighborhood.
Next, define the following common deterministic variance constant:
σ S S M , R μ 2 : = G S S M , R μ 2 Ξ (193) \sigma_{\mathrm{SSM},R_\mu}^2:=\frac{G_{\mathrm{SSM},R_\mu}^2}{\Xi} \tag*{(193)} σ SSM , R μ 2 := Ξ G SSM , R μ 2 (193)
By Lemma B.4, for every round r < T r<T r < T ,
sup W ∈ N R , μ ( W r ) ∑ k p k ∥ ∇ L k ( W ) − ∇ f ( W ) ∥ F 2 ≤ 4 G S S M , R , μ 2 H T V . (194) \sup_{W\in\mathcal{N}_{R,\mu}(W^r)}\sum_{k}p_k\left\|\nabla\mathcal{L}_k(W)-\nabla f(W)\right\|_F^2\le4G_{\mathrm{SSM},R,\mu}^2\mathcal{H}_{\mathrm{TV}}. \tag*{(194)} W ∈ N R , μ ( W r ) sup k ∑ p k ∥ ∇ L k ( W ) − ∇ f ( W ) ∥ F 2 ≤ 4 G SSM , R , μ 2 H TV . (194)
The right-hand side provides a common deterministic heterogeneity bound across rounds.
Next, fix a round r < T r<T r < T and let E r [ ⋅ ] \mathbb{E}_r[\cdot] E r [ ⋅ ] denote an expectation conditional on the training history at the beginning of that round, with W r W^r W r being fixed under this conditioning.
We begin by unrolling the local update and subtracting the starting weights:
W k r , e − W r = − η ∑ j = 0 e − 1 [ g k , Ξ r , j + μ ( W k r , j − W r ) ] = − η ∑ j = 0 e − 1 [ g k , Ξ r , j + μ ( W k r , j − W r ) ] + η ∑ j = 0 e − 1 ( ∇ L k ( W r ) − ∇ L k ( W k r , j ) ) − η ∑ j = 0 e − 1 ( ∇ L k ( W r ) − ∇ L k ( W k r , j ) ) = − η e ∇ L k ( W r ) − η ∑ j = 0 e − 1 [ g k , Ξ r , j − ∇ L k ( W k r , j ) ] \begin{aligned}
W_k^{r,e}-W^r=-\eta\sum_{j=0}^{e-1}\left[g_{k,\Xi}^{r,j}+\mu\left(W_k^{r,j}-W^r\right)\right] \\
&=-\eta\sum_{j=0}^{e-1}\left[g_{k,\Xi}^{r,j}+\mu\left(W_k^{r,j}-W^r\right)\right]
+\eta\sum_{j=0}^{e-1}\left(\nabla\mathcal{L}_k(W^r)-\nabla\mathcal{L}_k\left(W_k^{r,j}\right)\right)-\eta\sum_{j=0}^{e-1}\left(\nabla\mathcal{L}_k(W^r)-\nabla\mathcal{L}_k\left(W_k^{r,j}\right)\right) \\
&=-\eta e\nabla\mathcal{L}_k(W^r)-\eta\sum_{j=0}^{e-1}\left[g_{k,\Xi}^{r,j}-\nabla\mathcal{L}_k\left(W_k^{r,j}\right)\right]
\end{aligned} W k r , e − W r = − η j = 0 ∑ e − 1 [ g k , Ξ r , j + μ ( W k r , j − W r ) ] = − η j = 0 ∑ e − 1 [ g k , Ξ r , j + μ ( W k r , j − W r ) ] + η j = 0 ∑ e − 1 ( ∇ L k ( W r ) − ∇ L k ( W k r , j ) ) − η j = 0 ∑ e − 1 ( ∇ L k ( W r ) − ∇ L k ( W k r , j ) ) = − η e ∇ L k ( W r ) − η j = 0 ∑ e − 1 [ g k , Ξ r , j − ∇ L k ( W k r , j ) ]
− η ∑ j = 0 e − 1 [ μ ( W k r , j − W r ) − ∇ L k ( W r ) + ∇ L k ( W k r , j ) ] . (195) -\eta\sum_{j=0}^{e-1}\left[\mu\left(W_k^{r,j}-W^r\right)-\nabla\mathcal{L}_k(W^r)+\nabla\mathcal{L}_k\left(W_k^{r,j}\right)\right]. \tag*{(195)} − η j = 0 ∑ e − 1 [ μ ( W k r , j − W r ) − ∇ L k ( W r ) + ∇ L k ( W k r , j ) ] . (195)
Next, when evaluating the norms of the individual quantities on the right of (194), by Lemma B.3, the following holds
E r [ ∥ ∑ j = 0 e − 1 ( g k , Ξ r , j − ∇ L k ( W k r , j ) ) ∥ F 2 ] ≤ e σ S S M , R , μ 2 (196) \mathbb{E}_r\left[\left\|\sum_{j=0}^{e-1}\left(g_{k,\Xi}^{r,j}-\nabla\mathcal{L}_k\left(W_k^{r,j}\right)\right)\right\|_F^2\right]\le e\sigma_{\mathrm{SSM},R,\mu}^2 \tag*{(196)} E r j = 0 ∑ e − 1 ( g k , Ξ r , j − ∇ L k ( W k r , j ) ) F 2 ≤ e σ SSM , R , μ 2 (196)
for all 0 ≤ e ≤ E 0\le e\le E 0 ≤ e ≤ E .
Then, by substituting W k r , j W_k^{r,j} W k r , j and W r W^r W r into (191), it follows that:
∥ μ ( W k r , j − W r ) − ∇ L k ( W r ) + ∇ L k ( W k r , j ) ∥ F ≤ L p r o x , R , μ ∥ W k r , j − W r ∥ F (197) \left\|\mu\left(W_k^{r,j}-W^r\right)-\nabla\mathcal{L}_k(W^r)+\nabla\mathcal{L}_k\left(W_k^{r,j}\right)\right\|_F\le L_{\mathrm{prox},R,\mu}\left\|W_k^{r,j}-W^r\right\|_F \tag*{(197)} μ ( W k r , j − W r ) − ∇ L k ( W r ) + ∇ L k ( W k r , j ) F ≤ L prox , R , μ W k r , j − W r F (197)
Taking the norm of (194), applying the squared-normed inequality for a sum of three terms as well as the Cauchy-Schwarz inequality, and substituting these results, we get:
E r [ ∥ W k r , e − W r ∥ F 2 ] ≤ 3 η 2 e 2 ∥ ∇ L k ( W r ) ∥ F 2 + 3 η 2 e σ S S M , R , μ 2 + 3 η 2 e L p r o x , R , μ 2 ∑ j = 0 e − 1 E r [ ∥ W k r , j − W r ∥ F 2 ] . (198) \begin{aligned}
\mathbb{E}_r\left[\left\|W_k^{r,e}-W^r\right\|_F^2\right]\le3\eta^2e^2\left\|\nabla\mathcal{L}_k(W^r)\right\|_F^2+3\eta^2e\sigma_{\mathrm{SSM},R,\mu}^2 \\
&+3\eta^2eL_{\mathrm{prox},R,\mu}^2\sum_{j=0}^{e-1}\mathbb{E}_r\left[\left\|W_k^{r,j}-W^r\right\|_F^2\right]. \tag*{(198)}
\end{aligned} E r [ ∥ W k r , e − W r ∥ F 2 ] ≤ 3 η 2 e 2 ∥ ∇ L k ( W r ) ∥ F 2 + 3 η 2 e σ SSM , R , μ 2 + 3 η 2 e L prox , R , μ 2 j = 0 ∑ e − 1 E r [ W k r , j − W r F 2 ] . (198)
By multiplying (197) by p k p_k p k and summing over all clients, we get:
∑ k = 1 K p k E r [ ∥ W k r , e − W r ∥ F 2 ] ≤ 3 η 2 e σ S S M , R , μ 2 + 3 η 2 e 2 ∑ k = 1 K p k ∥ ∇ L k ( W r ) ∥ F 2 + 3 η 2 e L p r o x , R , μ 2 ∑ j = 0 e − 1 ∑ k = 1 K p k E r [ ∥ W k r , j − W r ∥ F 2 ] . (199) \begin{aligned}
\sum_{k=1}^{K}p_k\mathbb{E}_r\left[\left\|W_k^{r,e}-W^r\right\|_F^2\right]\le3\eta^2e\sigma_{\mathrm{SSM},R,\mu}^2+3\eta^2e^2\sum_{k=1}^{K}p_k\left\|\nabla\mathcal{L}_k(W^r)\right\|_F^2 \\
&+3\eta^2eL_{\mathrm{prox},R,\mu}^2\sum_{j=0}^{e-1}\sum_{k=1}^{K}p_k\mathbb{E}_r\left[\left\|W_k^{r,j}-W^r\right\|_F^2\right]. \tag*{(199)}
\end{aligned} k = 1 ∑ K p k E r [ ∥ W k r , e − W r ∥ F 2 ] ≤ 3 η 2 e σ SSM , R , μ 2 + 3 η 2 e 2 k = 1 ∑ K p k ∥ ∇ L k ( W r ) ∥ F 2 + 3 η 2 e L prox , R , μ 2 j = 0 ∑ e − 1 k = 1 ∑ K p k E r [ W k r , j − W r F 2 ] . (199)
Next, note that:
∑ k = 1 K p k ∥ ∇ L k ( W r ) ∥ F 2 = ∑ k = 1 K p k ∥ ∇ L k ( W r ) + ∇ f ( W r ) − ∇ f ( W r ) ∥ F 2 \sum_{k=1}^{K}p_k\left\|\nabla\mathcal{L}_k(W^r)\right\|_F^2=\sum_{k=1}^{K}p_k\left\|\nabla\mathcal{L}_k(W^r)+\nabla f(W^r)-\nabla f(W^r)\right\|_F^2 k = 1 ∑ K p k ∥ ∇ L k ( W r ) ∥ F 2 = k = 1 ∑ K p k ∥ ∇ L k ( W r ) + ∇ f ( W r ) − ∇ f ( W r ) ∥ F 2
≤ ∥ ∇ f ( W r ) ∥ F 2 + ∑ k = 1 K p k ∥ ∇ L k ( W r ) − ∇ f ( W r ) ∥ F 2 ≤ ∥ ∇ f ( W r ) ∥ F 2 + 4 G S S M , R μ 2 H T V . (200) \begin{aligned}
&\le\lVert\nabla f(W^r) \rVert_F^2 + \sum_{k=1}^{K} p_k \lVert\nabla\mathcal{L}_k(W^r) - \nabla f(W^r) \rVert_F^2 \\
&\le\lVert\nabla f(W^r) \rVert_F^2 + 4G_{\mathrm{SSM},R_\mu}^2 \mathcal{H}_{\mathrm{TV}}. \tag*{(200)}
\end{aligned} ≤ ∥ ∇ f ( W r ) ∥ F 2 + k = 1 ∑ K p k ∥ ∇ L k ( W r ) − ∇ f ( W r ) ∥ F 2 ≤ ∥ ∇ f ( W r ) ∥ F 2 + 4 G SSM , R μ 2 H TV . (200)
where the last inequality follows from (193). Substituting this result into (198), we get:
∑ k = 1 K p k E r [ ∥ W k r , e − W r ∥ F 2 ] ≤ 3 η 2 e σ S S M , R μ 2 + 3 η 2 e 2 ( ∥ ∇ f ( W r ) ∥ F 2 + 4 G S S M , R μ 2 H T V ) + 3 η 2 e L p r o x , R μ 2 ∑ j = 0 e − 1 ∑ k = 1 K p k E r [ ∥ W k r , j − W r ∥ F 2 ] . (201) \begin{aligned}
\sum_{k=1}^{K} p_k \mathbb{E}_r\left[\lVert W_k^{r,e} - W^r \rVert_F^2\right]
&\le3\eta^2 e \sigma_{\mathrm{SSM},R_\mu}^2 + 3\eta^2 e^2\left(\lVert\nabla f(W^r) \rVert_F^2 + 4G_{\mathrm{SSM},R_\mu}^2 \mathcal{H}_{\mathrm{TV}}\right) \\
&\quad+ 3\eta^2 e L_{\mathrm{prox},R_\mu}^2 \sum_{j=0}^{e-1}\sum_{k=1}^{K}p_k\mathbb{E}_r\left[\lVert W_k^{r,j} - W^r \rVert_F^2\right]. \tag*{(201)}
\end{aligned} k = 1 ∑ K p k E r [ ∥ W k r , e − W r ∥ F 2 ] ≤ 3 η 2 e σ SSM , R μ 2 + 3 η 2 e 2 ( ∥ ∇ f ( W r ) ∥ F 2 + 4 G SSM , R μ 2 H TV ) + 3 η 2 e L prox , R μ 2 j = 0 ∑ e − 1 k = 1 ∑ K p k E r [ ∥ W k r , j − W r ∥ F 2 ] . (201)
Averaging (200) over e = 0 , … , E − 1 e = 0,\ldots,E-1 e = 0 , … , E − 1 , where we utilize 1 E ∑ e = 0 E − 1 e = E − 1 2 \frac{1}{E}\sum_{e=0}^{E-1}e = \frac{E-1}{2} E 1 ∑ e = 0 E − 1 e = 2 E − 1 and 1 E ∑ e = 0 E − 1 e 2 ≤ E ( E − 1 ) \frac{1}{E}\sum_{e=0}^{E-1}e^2 \le E(E-1) E 1 ∑ e = 0 E − 1 e 2 ≤ E ( E − 1 ) , yields:
1 E ∑ e = 1 E − 1 ∑ k = 1 K p k E r [ ∥ W k r , e − W r ∥ F 2 ] ≤ 3 2 η 2 ( E − 1 ) σ S S M , R μ 2 + 3 η 2 E ( E − 1 ) ( ∥ ∇ f ( W r ) ∥ F 2 + 4 G S S M , R μ 2 H T V ) + 3 η 2 E ( E − 1 ) L p r o x , R μ 2 [ 1 E ∑ e = 0 E − 1 ∑ k = 1 K p k E r [ ∥ W k r , e − W r ∥ F 2 ] ] . (202) \begin{aligned}
\frac{1}{E}\sum_{e=1}^{E-1}\sum_{k=1}^{K}p_k\mathbb{E}_r\left[\lVert W_k^{r,e} - W^r \rVert_F^2\right]
&\le\frac{3}{2}\eta^2(E-1)\sigma_{\mathrm{SSM},R_\mu}^2 \\
&\quad+ 3\eta^2 E(E-1)\left(\lVert\nabla f(W^r) \rVert_F^2 + 4G_{\mathrm{SSM},R_\mu}^2\mathcal{H}_{\mathrm{TV}}\right) \\
&\quad+ 3\eta^2 E(E-1)L_{\mathrm{prox},R_\mu}^2\left[\frac{1}{E}\sum_{e=0}^{E-1}\sum_{k=1}^{K}p_k\mathbb{E}_r\left[\lVert W_k^{r,e} - W^r \rVert_F^2\right]\right]. \tag*{(202)}
\end{aligned} E 1 e = 1 ∑ E − 1 k = 1 ∑ K p k E r [ ∥ W k r , e − W r ∥ F 2 ] ≤ 2 3 η 2 ( E − 1 ) σ SSM , R μ 2 + 3 η 2 E ( E − 1 ) ( ∥ ∇ f ( W r ) ∥ F 2 + 4 G SSM , R μ 2 H TV ) + 3 η 2 E ( E − 1 ) L prox , R μ 2 [ E 1 e = 0 ∑ E − 1 k = 1 ∑ K p k E r [ ∥ W k r , e − W r ∥ F 2 ] ] . (202)
where for the last term, we used:
1 E ∑ e = 0 E − 1 ∑ j = 0 e − 1 ∑ k = 1 K p k E r [ ∥ W k r , j − W r ∥ F 2 ] ≤ E ( E − 1 ) [ 1 E ∑ e = 0 E − 1 ∑ k = 1 K p k E r [ ∥ W k r , e − W r ∥ F 2 ] ] . (203) \frac{1}{E}\sum_{e=0}^{E-1}\sum_{j=0}^{e-1}\sum_{k=1}^{K}p_k\mathbb{E}_r\left[\lVert W_k^{r,j} - W^r \rVert_F^2\right]
\le E(E-1)\left[\frac{1}{E}\sum_{e=0}^{E-1}\sum_{k=1}^{K}p_k\mathbb{E}_r\left[\lVert W_k^{r,e} - W^r \rVert_F^2\right]\right]. \tag*{(203)} E 1 e = 0 ∑ E − 1 j = 0 ∑ e − 1 k = 1 ∑ K p k E r [ ∥ W k r , j − W r ∥ F 2 ] ≤ E ( E − 1 ) [ E 1 e = 0 ∑ E − 1 k = 1 ∑ K p k E r [ ∥ W k r , e − W r ∥ F 2 ] ] . (203)
Rearranging the terms in (201) and dividing out by 1 − 3 η 2 E ( E − 1 ) L p r o x , R μ 2 1 - 3\eta^2E(E-1)L_{\mathrm{prox},R_\mu}^2 1 − 3 η 2 E ( E − 1 ) L prox , R μ 2 , yields:
1 E ∑ e = 1 E − 1 ∑ k = 1 K p k E r [ ∥ W k r , e − W r ∥ F 2 ] ≤ 1 1 − 3 η 2 E ( E − 1 ) L p r o x , R μ 2 ( 3 2 η 2 ( E − 1 ) σ S S M , R μ 2 + 3 η 2 E ( E − 1 ) ( ∥ ∇ f ( W r ) ∥ F 2 + 4 G S S M , R μ 2 H T V ) ) . (204) \frac{1}{E}\sum_{e=1}^{E-1}\sum_{k=1}^{K}p_k\mathbb{E}_r\left[\lVert W_k^{r,e} - W^r \rVert_F^2\right]
\le\frac{1}{1-3\eta^2E(E-1)L_{\mathrm{prox},R_\mu}^2}\left(\frac{3}{2}\eta^2(E-1)\sigma_{\mathrm{SSM},R_\mu}^2 + 3\eta^2E(E-1)\left(\lVert\nabla f(W^r)\rVert_F^2 + 4G_{\mathrm{SSM},R_\mu}^2\mathcal{H}_{\mathrm{TV}}\right)\right). \tag*{(204)} E 1 e = 1 ∑ E − 1 k = 1 ∑ K p k E r [ ∥ W k r , e − W r ∥ F 2 ] ≤ 1 − 3 η 2 E ( E − 1 ) L prox , R μ 2 1 ( 2 3 η 2 ( E − 1 ) σ SSM , R μ 2 + 3 η 2 E ( E − 1 ) ( ∥ ∇ f ( W r ) ∥ F 2 + 4 G SSM , R μ 2 H TV ) ) . (204)
Next, note that by the step-size condition 12 η 2 E ( E − 1 ) L p r o x , R μ 2 ≤ 1 12\eta^2E(E-1)L_{\mathrm{prox},R_\mu}^2 \le1 12 η 2 E ( E − 1 ) L prox , R μ 2 ≤ 1 , it is true that 3 η 2 E ( E − 1 ) L p r o x , R μ 2 ≤ 1 4 3\eta^2E(E-1)L_{\mathrm{prox},R_\mu}^2 \le\frac{1}{4} 3 η 2 E ( E − 1 ) L prox , R μ 2 ≤ 4 1 , and therefore 1 1 − 3 η 2 E ( E − 1 ) L p r o x , R μ 2 ≤ 4 3 \frac{1}{1-3\eta^2E(E-1)L_{\mathrm{prox},R_\mu}^2} \le\frac{4}{3} 1 − 3 η 2 E ( E − 1 ) L prox , R μ 2 1 ≤ 3 4 . Substituting that result into (203) yields:
1 E ∑ e = 1 E − 1 ∑ k = 1 K p k E r [ ∥ W k r , e − W r ∥ F 2 ] ≤ 2 η 2 ( E − 1 ) σ S S M , R μ 2 + 4 η 2 E ( E − 1 ) ( ∥ ∇ f ( W r ) ∥ F 2 + 4 G S S M , R μ 2 H T V ) . (205) \begin{aligned}
\frac{1}{E}\sum_{e=1}^{E-1}\sum_{k=1}^{K}p_k\mathbb{E}_r\left[\lVert W_k^{r,e} - W^r \rVert_F^2\right]
&\le2\eta^2(E-1)\sigma_{\mathrm{SSM},R_\mu}^2 \\
&\quad+ 4\eta^2E(E-1)\left(\lVert\nabla f(W^r)\rVert_F^2 + 4G_{\mathrm{SSM},R_\mu}^2\mathcal{H}_{\mathrm{TV}}\right). \tag*{(205)}
\end{aligned} E 1 e = 1 ∑ E − 1 k = 1 ∑ K p k E r [ ∥ W k r , e − W r ∥ F 2 ] ≤ 2 η 2 ( E − 1 ) σ SSM , R μ 2 + 4 η 2 E ( E − 1 ) ( ∥ ∇ f ( W r ) ∥ F 2 + 4 G SSM , R μ 2 H TV ) . (205)
Next, we evaluate W r + 1 − W r W^{r+1} - W^r W r + 1 − W r . By the update rule:
W r + 1 − W r = − η ∑ e = 0 E − 1 ∑ k = 1 K p k [ g k , Ξ r , e + μ ( W k r , e − W r ) ] . (206) W^{r+1} - W^r = -\eta\sum_{e=0}^{E-1}\sum_{k=1}^{K}p_k\left[g_{k,\Xi}^{r,e} + \mu\left(W_k^{r,e} - W^r\right)\right]. \tag*{(206)} W r + 1 − W r = − η e = 0 ∑ E − 1 k = 1 ∑ K p k [ g k , Ξ r , e + μ ( W k r , e − W r ) ] . (206)
Since the segment joining W r W^r W r and W r + 1 W^{r+1} W r + 1 lies in N R μ ( W r ) \mathcal{N}_{R_\mu}(W^r) N R μ ( W r ) , by the smoothness of f f f established in Lemma 4.7, it is true that:
E r [ f ( W r + 1 ) ] ≤ f ( W r ) − η ⟨ ∇ f ( W r ) , E r [ ∑ e = 0 E − 1 ∑ k = 1 K p k ( ∇ L k ( W k r , e ) + μ ( W k r , e − W r ) ) ] ⟩ F + η 2 L S S M , R μ 2 E r [ ∥ ∑ e = 0 E − 1 ∑ k = 1 K p k ( g k , Ξ r , e + μ ( W k r , e − W r ) ) ∥ F 2 ] . (207) \begin{aligned}
\mathbb{E}_r\left[f(W^{r+1})\right] &\leq f(W^r) \\
&\quad-\eta\left\langle\nabla f(W^r),\mathbb{E}_r\left[\sum_{e=0}^{E-1}\sum_{k=1}^{K}p_k\left(\nabla L_k(W_k^{r,e})+\mu\left(W_k^{r,e}-W^r\right)\right)\right]\right\rangle_F \\
&\quad+\frac{\eta^2L_{\mathrm{SSM},R_\mu}}{2}\mathbb{E}_r\left[\left\|\sum_{e=0}^{E-1}\sum_{k=1}^{K}p_k\left(g_{k,\Xi}^{r,e}+\mu\left(W_k^{r,e}-W^r\right)\right)\right\|_F^2\right]. \tag*{(207)}
\end{aligned} E r [ f ( W r + 1 ) ] ≤ f ( W r ) − η ⟨ ∇ f ( W r ) , E r [ e = 0 ∑ E − 1 k = 1 ∑ K p k ( ∇ L k ( W k r , e ) + μ ( W k r , e − W r ) ) ] ⟩ F + 2 η 2 L SSM , R μ E r e = 0 ∑ E − 1 k = 1 ∑ K p k ( g k , Ξ r , e + μ ( W k r , e − W r ) ) F 2 . (207)
Here, the tower property and because of conditional unbiasedness, the stochastic gradients can be replaced by local gradients inside the expected inner product.
Next, note that:
∑ e = 0 E − 1 ∑ k = 1 K p k ( g k , Ξ r , e + μ ( W k r , e − W r ) ) = ∑ e = 0 E − 1 ∑ k = 1 K p k ( g k , Ξ r , e + μ ( W k r , e − W r ) + ∇ L k ( W k r , e ) − ∇ L k ( W k r , e ) ) = ∑ e = 0 E − 1 ∑ k = 1 K p k ( ∇ L k ( W k r , e ) + μ ( W k r , e − W r ) ) + ∑ e = 0 E − 1 ∑ k = 1 K p k ( g k , Ξ r , e − ∇ L k ( W k r , e ) ) . (208) \begin{aligned}
\sum_{e=0}^{E-1}\sum_{k=1}^{K}p_k\left(g_{k,\Xi}^{r,e}+\mu\left(W_k^{r,e}-W^r\right)\right)
&=\sum_{e=0}^{E-1}\sum_{k=1}^{K}p_k\left(g_{k,\Xi}^{r,e}+\mu\left(W_k^{r,e}-W^r\right)+\nabla L_k(W_k^{r,e})-\nabla L_k(W_k^{r,e})\right)\\
&=\sum_{e=0}^{E-1}\sum_{k=1}^{K}p_k\left(\nabla L_k(W_k^{r,e})+\mu\left(W_k^{r,e}-W^r\right)\right)\\
&\quad+\sum_{e=0}^{E-1}\sum_{k=1}^{K}p_k\left(g_{k,\Xi}^{r,e}-\nabla L_k(W_k^{r,e})\right). \tag*{(208)}
\end{aligned} e = 0 ∑ E − 1 k = 1 ∑ K p k ( g k , Ξ r , e + μ ( W k r , e − W r ) ) = e = 0 ∑ E − 1 k = 1 ∑ K p k ( g k , Ξ r , e + μ ( W k r , e − W r ) + ∇ L k ( W k r , e ) − ∇ L k ( W k r , e ) ) = e = 0 ∑ E − 1 k = 1 ∑ K p k ( ∇ L k ( W k r , e ) + μ ( W k r , e − W r ) ) + e = 0 ∑ E − 1 k = 1 ∑ K p k ( g k , Ξ r , e − ∇ L k ( W k r , e ) ) . (208)
When taking norms, for a sum of two matrices, the squared norm is at most twice the sum of their squared norms. As such, it follows that:
E r [ ∥ ∑ e = 0 E − 1 ∑ k = 1 K p k ( g k , Ξ r , e + μ ( W k r , e − W r ) ) ∥ F 2 ] ≤ 2 E r [ ∥ ∑ e = 0 E − 1 ∑ k = 1 K p k ( g k , Ξ r , e − ∇ L k ( W k r , e ) ) ∥ F 2 ] + 2 E r [ ∥ ∑ e = 0 E − 1 ∑ k = 1 K p k ( ∇ L k ( W k r , e ) + μ ( W k r , e − W r ) ) ∥ F 2 ] . (209) \begin{aligned}
\mathbb{E}_r\left[\left\|\sum_{e=0}^{E-1}\sum_{k=1}^{K}p_k\left(g_{k,\Xi}^{r,e}+\mu\left(W_k^{r,e}-W^r\right)\right)\right\|_F^2\right]
&\leq2\mathbb{E}_r\left[\left\|\sum_{e=0}^{E-1}\sum_{k=1}^{K}p_k\left(g_{k,\Xi}^{r,e}-\nabla L_k(W_k^{r,e})\right)\right\|_F^2\right]\\
&\quad+2\mathbb{E}_r\left[\left\|\sum_{e=0}^{E-1}\sum_{k=1}^{K}p_k\left(\nabla L_k(W_k^{r,e})+\mu\left(W_k^{r,e}-W^r\right)\right)\right\|_F^2\right]. \tag*{(209)}
\end{aligned} E r e = 0 ∑ E − 1 k = 1 ∑ K p k ( g k , Ξ r , e + μ ( W k r , e − W r ) ) F 2 ≤ 2 E r e = 0 ∑ E − 1 k = 1 ∑ K p k ( g k , Ξ r , e − ∇ L k ( W k r , e ) ) F 2 + 2 E r e = 0 ∑ E − 1 k = 1 ∑ K p k ( ∇ L k ( W k r , e ) + μ ( W k r , e − W r ) ) F 2 . (209)
Next, the centered gradient-noise differences have conditional mean zero given the complete history before each local step. Conditional independence across clients eliminates the same-step cross terms, while conditional unbiasedness and the tower property eliminate the cross terms between different local steps. Applying Lemma B.3 therefore gives
E r [ ∥ ∑ e = 0 E − 1 ∑ k = 1 K p k ( g k , Ξ r , e − ∇ L k ( W k r , e ) ) ∥ F 2 ] ≤ ∑ e = 0 E − 1 ∑ k = 1 K p k 2 σ S S M , R μ 2 = E σ S S M , R μ 2 ∑ k = 1 K p k 2 . (210) \mathbb{E}_r\left[\left\|\sum_{e=0}^{E-1}\sum_{k=1}^{K}p_k\left(g_{k,\Xi}^{r,e}-\nabla L_k(W_k^{r,e})\right)\right\|_F^2\right]
\leq\sum_{e=0}^{E-1}\sum_{k=1}^{K}p_k^2\sigma_{\mathrm{SSM},R_\mu}^2
=E\sigma_{\mathrm{SSM},R_\mu}^2\sum_{k=1}^{K}p_k^2. \tag*{(210)} E r e = 0 ∑ E − 1 k = 1 ∑ K p k ( g k , Ξ r , e − ∇ L k ( W k r , e ) ) F 2 ≤ e = 0 ∑ E − 1 k = 1 ∑ K p k 2 σ SSM , R μ 2 = E σ SSM , R μ 2 k = 1 ∑ K p k 2 . (210)
and as a result:
E r [ ∥ ∑ e = 0 E − 1 ∑ k = 1 K p k ( g k , Ξ r , e + μ ( W k r , e − W r ) ) ∥ F 2 ] ≤ 2 E σ S S M , R μ 2 ∑ k = 1 K p k 2 + 2 E r [ ∥ ∑ e = 0 E − 1 ∑ k = 1 K p k ( ∇ L k ( W k r , e ) + μ ( W k r , e − W r ) ) ∥ F 2 ] . (211) \begin{aligned}
\mathbb{E}_r\left[\left\|\sum_{e=0}^{E-1}\sum_{k=1}^{K}p_k\left(g_{k,\Xi}^{r,e}+\mu\left(W_k^{r,e}-W^r\right)\right)\right\|_F^2\right]
&\leq2E\sigma_{\mathrm{SSM},R_\mu}^2\sum_{k=1}^{K}p_k^2\\
&\quad+2\mathbb{E}_r\left[\left\|\sum_{e=0}^{E-1}\sum_{k=1}^{K}p_k\left(\nabla L_k(W_k^{r,e})+\mu\left(W_k^{r,e}-W^r\right)\right)\right\|_F^2\right]. \tag*{(211)}
\end{aligned} E r e = 0 ∑ E − 1 k = 1 ∑ K p k ( g k , Ξ r , e + μ ( W k r , e − W r ) ) F 2 ≤ 2 E σ SSM , R μ 2 k = 1 ∑ K p k 2 + 2 E r e = 0 ∑ E − 1 k = 1 ∑ K p k ( ∇ L k ( W k r , e ) + μ ( W k r , e − W r ) ) F 2 . (211)
When it comes to the inner-product term, we note that, since f ( W r ) = ∑ k = 1 K p k L k ( W r ) f(W^r)=\sum_{k=1}^{K}p_kL_k(W^r) f ( W r ) = ∑ k = 1 K p k L k ( W r ) , it is true that:
E ∇ f ( W r ) = ∑ e = 0 E − 1 ∑ k = 1 K p k ∇ L k ( W r ) . (212) \mathbb{E}\nabla f(W^r)=\sum_{e=0}^{E-1}\sum_{k=1}^{K}p_k\nabla L_k(W^r). \tag*{(212)} E ∇ f ( W r ) = e = 0 ∑ E − 1 k = 1 ∑ K p k ∇ L k ( W r ) . (212)
Using this result, and the − 2 ⟨ U , V ⟩ F = ∥ U − V ∥ F 2 − ∥ U ∥ F 2 − ∥ V ∥ F 2 -2\langle U,V\rangle_F=\lVert U-V\rVert_F^2-\lVert U\rVert_F^2-\lVert V\rVert_F^2 − 2 ⟨ U , V ⟩ F = ∥ U − V ∥ F 2 − ∥ U ∥ F 2 − ∥ V ∥ F 2 equality, the following holds:
− η ⟨ ∇ f ( W r ) , E r [ 1 E − 1 ∑ e = 0 E − 1 ∑ k = 1 K p k ( ∇ L k ( W k r , e ) + μ ( W k r , e − W r ) ) ] ⟩ F = − η E 2 ∥ ∇ f ( W r ) ∥ F 2 \begin{aligned}
-\eta\left\langle\nabla f(W^r),\mathbb{E}_r\left[\frac{1}{E-1}\sum_{e=0}^{E-1}\sum_{k=1}^{K}p_k\left(\nabla\mathcal{L}_k(W_k^{r,e})+\mu(W_k^{r,e}-W^r)\right)\right]\right\rangle_F \\
&=-\frac{\eta E}{2}\lVert\nabla f(W^r)\rVert_F^2
\end{aligned} − η ⟨ ∇ f ( W r ) , E r [ E − 1 1 e = 0 ∑ E − 1 k = 1 ∑ K p k ( ∇ L k ( W k r , e ) + μ ( W k r , e − W r ) ) ] ⟩ F = − 2 η E ∥ ∇ f ( W r ) ∥ F 2
− η 2 E E r [ ∥ ∑ e = 0 E − 1 ∑ k = 1 K p k ( ∇ L k ( W k r , e ) + μ ( W k r , e − W r ) ) ∥ F 2 ] + η 2 E E r [ ∥ ∑ e = 0 E − 1 ∑ k = 1 K p k ( ∇ L k ( W k r , e ) + μ ( W k r , e − W r ) − ∇ L k ( W r ) ) ∥ F 2 ] , (213) \begin{aligned}
-\frac{\eta}{2E}\mathbb{E}_r\left[\left\lVert\sum_{e=0}^{E-1}\sum_{k=1}^{K}p_k\left(\nabla\mathcal{L}_k(W_k^{r,e})+\mu(W_k^{r,e}-W^r)\right)\right\rVert_F^2\right] \\
&+\frac{\eta}{2E}\mathbb{E}_r\left[\left\lVert\sum_{e=0}^{E-1}\sum_{k=1}^{K}p_k\left(\nabla\mathcal{L}_k(W_k^{r,e})+\mu(W_k^{r,e}-W^r)-\nabla\mathcal{L}_k(W^r)\right)\right\rVert_F^2\right], \tag*{(213)}
\end{aligned} − 2 E η E r e = 0 ∑ E − 1 k = 1 ∑ K p k ( ∇ L k ( W k r , e ) + μ ( W k r , e − W r ) ) F 2 + 2 E η E r e = 0 ∑ E − 1 k = 1 ∑ K p k ( ∇ L k ( W k r , e ) + μ ( W k r , e − W r ) − ∇ L k ( W r ) ) F 2 , (213)
= − η E 2 ∥ ∇ f ( W r ) ∥ F 2 − η 2 E E r [ ∥ ∑ e = 0 E − 1 ∑ k = 1 K p k ( ∇ L k ( W k r , e ) + μ ( W k r , e − W r ) ) ∥ F 2 ] + η 2 E E r [ ∥ ∑ e = 0 E − 1 ∑ k = 1 K p k ( ∇ L k ( W k r , e ) + μ ( W k r , e − W r ) − ∇ L k ( W r ) ) ∥ F 2 ] , (214) \begin{aligned}
&=-\frac{\eta E}{2}\lVert\nabla f(W^r)\rVert_F^2\\
&\quad-\frac{\eta}{2E}\mathbb{E}_r\left[\left\lVert\sum_{e=0}^{E-1}\sum_{k=1}^{K}p_k\left(\nabla\mathcal{L}_k(W_k^{r,e})+\mu(W_k^{r,e}-W^r)\right)\right\rVert_F^2\right]\\
&\quad+\frac{\eta}{2E}\mathbb{E}_r\left[\left\lVert\sum_{e=0}^{E-1}\sum_{k=1}^{K}p_k\left(\nabla\mathcal{L}_k(W_k^{r,e})+\mu(W_k^{r,e}-W^r)-\nabla\mathcal{L}_k(W^r)\right)\right\rVert_F^2\right], \tag*{(214)}
\end{aligned} = − 2 η E ∥ ∇ f ( W r ) ∥ F 2 − 2 E η E r e = 0 ∑ E − 1 k = 1 ∑ K p k ( ∇ L k ( W k r , e ) + μ ( W k r , e − W r ) ) F 2 + 2 E η E r e = 0 ∑ E − 1 k = 1 ∑ K p k ( ∇ L k ( W k r , e ) + μ ( W k r , e − W r ) − ∇ L k ( W r ) ) F 2 , (214)
where the E E E -terms appeared from evaluating the inner-product with E ∇ f ( W r ) E\nabla f(W^r) E ∇ f ( W r ) and dividing out by E E E .
Then, the positive term is bounded as:
E r [ ∥ ∑ e = 0 E − 1 ∑ k = 1 K p k ( ∇ L k ( W k r , e ) + μ ( W k r , e − W r ) − ∇ L k ( W r ) ) ∥ F 2 ] ≤ E ∑ e = 0 E − 1 ∑ k = 1 K p k E r [ ∥ ∇ L k ( W k r , e ) + μ ( W k r , e − W r ) − ∇ L k ( W r ) ∥ F 2 ] ≤ E L p r o x , R μ 2 ∑ e = 0 E − 1 ∑ k = 1 K p k E r [ ∥ W k r , e − W r ∥ F 2 ] . (215) \begin{aligned}
&\mathbb{E}_r\left[\left\lVert\sum_{e=0}^{E-1}\sum_{k=1}^{K}p_k\left(\nabla\mathcal{L}_k(W_k^{r,e})+\mu(W_k^{r,e}-W^r)-\nabla\mathcal{L}_k(W^r)\right)\right\rVert_F^2\right]\\
&\leq E\sum_{e=0}^{E-1}\sum_{k=1}^{K}p_k\mathbb{E}_r\left[\left\lVert\nabla\mathcal{L}_k(W_k^{r,e})+\mu(W_k^{r,e}-W^r)-\nabla\mathcal{L}_k(W^r)\right\rVert_F^2\right]\\
&\leq EL_{\mathrm{prox},R_\mu}^2\sum_{e=0}^{E-1}\sum_{k=1}^{K}p_k\mathbb{E}_r\left[\left\lVert W_k^{r,e}-W^r\right\rVert_F^2\right]. \tag*{(215)}
\end{aligned} E r e = 0 ∑ E − 1 k = 1 ∑ K p k ( ∇ L k ( W k r , e ) + μ ( W k r , e − W r ) − ∇ L k ( W r ) ) F 2 ≤ E e = 0 ∑ E − 1 k = 1 ∑ K p k E r [ ∥ ∇ L k ( W k r , e ) + μ ( W k r , e − W r ) − ∇ L k ( W r ) ∥ F 2 ] ≤ E L prox , R μ 2 e = 0 ∑ E − 1 k = 1 ∑ K p k E r [ ∥ W k r , e − W r ∥ F 2 ] . (215)
where the first inequality is true by Jensen’s inequality with weights p k / E p_k/E p k / E , and the second inequality follows from (191).
Substituting these results back into (206), we obtain:
E r [ f ( W r + 1 ) ] ≤ f ( W r ) − η E 2 ∥ ∇ f ( W r ) ∥ F 2 + ( η 2 L S S M , R μ − η 2 E ) E r [ ∥ ∑ e = 0 E − 1 ∑ k = 1 K p k ( ∇ L k ( W k r , e ) + μ ( W k r , e − W r ) ) ∥ F 2 ] + η L p r o x , R μ 2 2 ∑ e = 0 E − 1 ∑ k = 1 K p k E r [ ∥ W k r , e − W r ∥ F 2 ] + η 2 E L S S M , R μ σ S S M , R μ 2 ∑ k = 1 K p k 2 . (216) \begin{aligned}
\mathbb{E}_r\left[f(W^{r+1})\right]
&\leq f(W^r)-\frac{\eta E}{2}\lVert\nabla f(W^r)\rVert_F^2\\
&\quad+\left(\eta^2L_{\mathrm{SSM},R_\mu}-\frac{\eta}{2E}\right)\mathbb{E}_r\left[\left\lVert\sum_{e=0}^{E-1}\sum_{k=1}^{K}p_k\left(\nabla\mathcal{L}_k(W_k^{r,e})+\mu(W_k^{r,e}-W^r)\right)\right\rVert_F^2\right]\\
&\quad+\frac{\eta L_{\mathrm{prox},R_\mu}^2}{2}\sum_{e=0}^{E-1}\sum_{k=1}^{K}p_k\mathbb{E}_r\left[\left\lVert W_k^{r,e}-W^r\right\rVert_F^2\right]\\
&\quad+\eta^2EL_{\mathrm{SSM},R_\mu}\sigma_{\mathrm{SSM},R_\mu}^2\sum_{k=1}^{K}p_k^2. \tag*{(216)}
\end{aligned} E r [ f ( W r + 1 ) ] ≤ f ( W r ) − 2 η E ∥ ∇ f ( W r ) ∥ F 2 + ( η 2 L SSM , R μ − 2 E η ) E r e = 0 ∑ E − 1 k = 1 ∑ K p k ( ∇ L k ( W k r , e ) + μ ( W k r , e − W r ) ) F 2 + 2 η L prox , R μ 2 e = 0 ∑ E − 1 k = 1 ∑ K p k E r [ ∥ W k r , e − W r ∥ F 2 ] + η 2 E L SSM , R μ σ SSM , R μ 2 k = 1 ∑ K p k 2 . (216)
The step-size condition η E L S S M , R μ ≤ 1 / 2 \eta EL_{\mathrm{SSM},R_\mu}\leq1/2 η E L SSM , R μ ≤ 1/2 implies that η 2 L S S M , R μ − η 2 E ≤ 0 \eta^2L_{\mathrm{SSM},R_\mu}-\frac{\eta}{2E}\leq0 η 2 L SSM , R μ − 2 E η ≤ 0 , and therefore the term multiplied by this factor is never positive. As such, the following holds:
E r [ f ( W r + 1 ) ] ≤ f ( W r ) − η E 2 ∥ ∇ f ( W r ) ∥ F 2 + η L p r o x , R μ 2 2 ∑ e = 0 E − 1 ∑ k = 1 K p k E r [ ∥ W k r , e − W r ∥ F 2 ] + η 2 E L S S M , R μ σ S S M , R μ 2 ∑ k = 1 K p k 2 . (217) \begin{aligned}
\mathbb{E}_r\left[f(W^{r+1})\right]
&\leq f(W^r)-\frac{\eta E}{2}\lVert\nabla f(W^r)\rVert_F^2\\
&\quad+\frac{\eta L_{\mathrm{prox},R_\mu}^2}{2}\sum_{e=0}^{E-1}\sum_{k=1}^{K}p_k\mathbb{E}_r\left[\left\lVert W_k^{r,e}-W^r\right\rVert_F^2\right]\\
&\quad+\eta^2EL_{\mathrm{SSM},R_\mu}\sigma_{\mathrm{SSM},R_\mu}^2\sum_{k=1}^{K}p_k^2. \tag*{(217)}
\end{aligned} E r [ f ( W r + 1 ) ] ≤ f ( W r ) − 2 η E ∥ ∇ f ( W r ) ∥ F 2 + 2 η L prox , R μ 2 e = 0 ∑ E − 1 k = 1 ∑ K p k E r [ ∥ W k r , e − W r ∥ F 2 ] + η 2 E L SSM , R μ σ SSM , R μ 2 k = 1 ∑ K p k 2 . (217)
Substituting the result from (204) into this inequality, we get:
E r [ f ( W r + 1 ) ] ≤ f ( W r ) + ( 2 η 3 E 2 ( E − 1 ) L p r o x , R μ 2 − η E 2 ) ∥ ∇ f ( W r ) ∥ F 2 + η 3 E ( E − 1 ) L p r o x , R μ 2 σ S S M , R μ 2 + 8 η 3 E 2 ( E − 1 ) L p r o x , R μ 2 G S S M , R μ 2 H T V + η 2 E L S S M , R μ σ S S M , R μ 2 ∑ k = 1 K p k 2 . (218) \begin{aligned}
\mathbb{E}_r\left[f(W^{r+1})\right]\leq f(W^r) \\
&+\left(2\eta^{3}E^{2}(E-1)L_{\mathrm{prox},R_\mu}^{2}-\frac{\eta E}{2}\right)\lVert\nabla f(W^{r})\rVert_{F}^{2}
+\eta^{3}E(E-1)L_{\mathrm{prox},R_\mu}^{2}\sigma_{\mathrm{SSM},R_\mu}^{2}
+8\eta^{3}E^{2}(E-1)L_{\mathrm{prox},R_\mu}^{2}G_{\mathrm{SSM},R_\mu}^{2}\mathcal{H}_{\mathrm{TV}}
+\eta^{2}EL_{\mathrm{SSM},R_\mu}\sigma_{\mathrm{SSM},R_\mu}^{2}\sum_{k=1}^{K}p_{k}^{2}. \tag*{(218)}
\end{aligned} E r [ f ( W r + 1 ) ] ≤ f ( W r ) + ( 2 η 3 E 2 ( E − 1 ) L prox , R μ 2 − 2 η E ) ∥ ∇ f ( W r ) ∥ F 2 + η 3 E ( E − 1 ) L prox , R μ 2 σ SSM , R μ 2 + 8 η 3 E 2 ( E − 1 ) L prox , R μ 2 G SSM , R μ 2 H TV + η 2 E L SSM , R μ σ SSM , R μ 2 k = 1 ∑ K p k 2 . (218)
Next, by the second step size condition 12 η 2 L p r o x , R μ 2 E ( E − 1 ) ≤ 1 12\eta^{2}L_{\mathrm{prox},R_\mu}^{2}E(E-1)\le1 12 η 2 L prox , R μ 2 E ( E − 1 ) ≤ 1 it follows that:
2 η 3 E 2 ( E − 1 ) L p r o x , R μ 2 − η E 2 = η E ( 2 η 2 E ( E − 1 ) L p r o x , R μ 2 − 1 2 ) ≤ η E ( 1 6 − 1 2 ) = − η E 3 . (219) 2\eta^{3}E^{2}(E-1)L_{\mathrm{prox},R_\mu}^{2}-\frac{\eta E}{2}
=\eta E\left(2\eta^{2}E(E-1)L_{\mathrm{prox},R_\mu}^{2}-\frac{1}{2}\right)
\le\eta E\left(\frac{1}{6}-\frac{1}{2}\right)
=-\frac{\eta E}{3}. \tag*{(219)} 2 η 3 E 2 ( E − 1 ) L prox , R μ 2 − 2 η E = η E ( 2 η 2 E ( E − 1 ) L prox , R μ 2 − 2 1 ) ≤ η E ( 6 1 − 2 1 ) = − 3 η E . (219)
Substituting in (217), we get:
E r [ f ( W r + 1 ) ] ≤ f ( W r ) − η E 3 ∥ ∇ f ( W r ) ∥ F 2 + η 3 E ( E − 1 ) L p r o x , R μ 2 σ S S M , R μ 2 + 8 η 3 E 2 ( E − 1 ) L p r o x , R μ 2 G S S M , R μ 2 H T V + η 2 E L S S M , R μ σ S S M , R μ 2 ∑ k = 1 K p k 2 . (220) \mathbb{E}_{r}\left[f\left(W^{r+1}\right)\right]\le f(W^{r})
-\frac{\eta E}{3}\lVert\nabla f(W^{r})\rVert_{F}^{2}
+\eta^{3}E(E-1)L_{\mathrm{prox},R_\mu}^{2}\sigma_{\mathrm{SSM},R_\mu}^{2}
+8\eta^{3}E^{2}(E-1)L_{\mathrm{prox},R_\mu}^{2}G_{\mathrm{SSM},R_\mu}^{2}\mathcal{H}_{\mathrm{TV}}
+\eta^{2}EL_{\mathrm{SSM},R_\mu}\sigma_{\mathrm{SSM},R_\mu}^{2}\sum_{k=1}^{K}p_{k}^{2}. \tag*{(220)} E r [ f ( W r + 1 ) ] ≤ f ( W r ) − 3 η E ∥ ∇ f ( W r ) ∥ F 2 + η 3 E ( E − 1 ) L prox , R μ 2 σ SSM , R μ 2 + 8 η 3 E 2 ( E − 1 ) L prox , R μ 2 G SSM , R μ 2 H TV + η 2 E L SSM , R μ σ SSM , R μ 2 k = 1 ∑ K p k 2 . (220)
Taking total expectations in (219), rearranging, and summing over r = 0 , … , T − 1 r=0,\ldots,T-1 r = 0 , … , T − 1 makes the objective differences telescope. Using E [ f ( W T ) ] ≥ f ∗ \mathbb{E}[f(W^{T})]\ge f^{*} E [ f ( W T )] ≥ f ∗ and dividing by η E T / 3 \eta ET/3 η E T /3 , we obtain:
1 T ∑ r = 0 T − 1 E ∥ ∇ f ( W r ) ∥ F 2 ≤ 3 ( f ( W 0 ) − f ∗ ) η E T + 3 η L S S M , R μ σ S S M , R μ 2 ∑ k = 1 K p k 2 + 3 η 2 ( E − 1 ) L p r o x , R μ 2 σ S S M , R μ 2 + 24 η 2 E ( E − 1 ) L p r o x , R μ 2 G S S M , R μ 2 H T V . (221) \frac{1}{T}\sum_{r=0}^{T-1}\mathbb{E}\left\lVert\nabla f(W^{r})\right\rVert_{F}^{2}
\le\frac{3\left(f(W^{0})-f^{*}\right)}{\eta ET}
+3\eta L_{\mathrm{SSM},R_\mu}\sigma_{\mathrm{SSM},R_\mu}^{2}\sum_{k=1}^{K}p_{k}^{2}
+3\eta^{2}(E-1)L_{\mathrm{prox},R_\mu}^{2}\sigma_{\mathrm{SSM},R_\mu}^{2}
+24\eta^{2}E(E-1)L_{\mathrm{prox},R_\mu}^{2}G_{\mathrm{SSM},R_\mu}^{2}\mathcal{H}_{\mathrm{TV}}. \tag*{(221)} T 1 r = 0 ∑ T − 1 E ∥ ∇ f ( W r ) ∥ F 2 ≤ η E T 3 ( f ( W 0 ) − f ∗ ) + 3 η L SSM , R μ σ SSM , R μ 2 k = 1 ∑ K p k 2 + 3 η 2 ( E − 1 ) L prox , R μ 2 σ SSM , R μ 2 + 24 η 2 E ( E − 1 ) L prox , R μ 2 G SSM , R μ 2 H TV . (221)
Finally, substituting σ S S M , R μ 2 = G S S M , R μ 2 / Ξ \sigma_{\mathrm{SSM},R_\mu}^{2}=G_{\mathrm{SSM},R_\mu}^{2}/\Xi σ SSM , R μ 2 = G SSM , R μ 2 /Ξ (which follows from Lemma B.3) into (220), gives the stated bound, completing the proof.
Multi-Layer Selective SSM proofs
In this section we derive the corresponding Gradient, FedAvg, and FedProx convergence bounds for a Selective SSM with of an arbitrary finite depth Q Q Q , extending our derivations in Sections A, and B to a multi-layer selective State Space Model (SSM) case.
Multi-Layer Selective SSM Gradient Bound Proof
Similar to the single-layer setting, we first derive an upper bound on the gradient norm of the loss function for an arbitrary sequence of length S S S processed by a selective state space model (SSM) composed of Q Q Q sequential selective SSM layers. The analysis once again utilizes definitions from Section 3 and an input sequence x = ( x 1 , … , x S ) x=(x_{1},\ldots,x_{S}) x = ( x 1 , … , x S ) where x t ∈ R D × 1 x_{t}\in\mathbb{R}^{D\times1} x t ∈ R D × 1 .
The multi-layer selective SSM consists of Q Q Q layers arranged sequentially. Each layer q ∈ { 1 , … , Q } q\in\{1,\ldots,Q\} q ∈ { 1 , … , Q } is parameterized by the learnable parameter tuple
W ( q ) = ( W Δ ( q ) , W B ( q ) , W C ( q ) , A ( q ) ) , (222) W^{(q)}=\left(W_{\Delta}^{(q)},W_{B}^{(q)},W_{C}^{(q)},A^{(q)}\right), \tag*{(222)} W ( q ) = ( W Δ ( q ) , W B ( q ) , W C ( q ) , A ( q ) ) , (222)
where W Δ ( q ) ∈ R D × D W_{\Delta}^{(q)} \in\mathbb{R}^{D \times D} W Δ ( q ) ∈ R D × D , W B ( q ) ∈ R N × D W_{B}^{(q)} \in\mathbb{R}^{N \times D} W B ( q ) ∈ R N × D , W C ( q ) ∈ R N × D W_{C}^{(q)} \in\mathbb{R}^{N \times D} W C ( q ) ∈ R N × D , A ( q ) ∈ R N × 1 A^{(q)} \in\mathbb{R}^{N \times1} A ( q ) ∈ R N × 1 . Note that we therefore consider a multi-layer SSM where all of its Q Q Q layers have the same input/output dimension D D D and state dimension N N N .
The full set of model parameters is then given by:
W = ( W ( 1 ) , … , W ( Q ) ) . (223) W = \left(W^{(1)}, \ldots, W^{(Q)}\right). \tag*{(223)} W = ( W ( 1 ) , … , W ( Q ) ) . (223)
In this multi-layer formulation, we denote the input to layer q q q at time step t t t by x t ( q ) x_t^{(q)} x t ( q ) , where x t ( 1 ) = x t x_t^{(1)} = x_t x t ( 1 ) = x t and
x t ( q + 1 ) = y t ( q ) (224) x_t^{(q+1)} = y_t^{(q)} \tag*{(224)} x t ( q + 1 ) = y t ( q ) (224)
with y t ( q ) y_t^{(q)} y t ( q ) denoting the output of layer q q q .
Given this formulation, each layer q q q of the multi-layer selective SSM operates according to the following dynamics:
Δ t ( q ) = Softplus ( W Δ ( q ) x t ( q ) ) , (225) \Delta_t^{(q)} = \operatorname{Softplus}\left(W_{\Delta}^{(q)}x_t^{(q)}\right), \tag*{(225)} Δ t ( q ) = Softplus ( W Δ ( q ) x t ( q ) ) , (225)
A ˉ t ( q ) = exp ( A ( q ) ( Δ t ( q ) ) T ) , (226) \bar{A}_t^{(q)} = \exp\left(A^{(q)}\left(\Delta_t^{(q)}\right)^{\mathsf{T}}\right), \tag*{(226)} A ˉ t ( q ) = exp ( A ( q ) ( Δ t ( q ) ) T ) , (226)
B ˉ t ( q ) = ( W B ( q ) x t ( q ) ) ( Softplus ( W Δ ( q ) x t ( q ) ) ) T , (227) \bar{B}_t^{(q)} = \left(W_B^{(q)}x_t^{(q)}\right)\left(\operatorname{Softplus}\left(W_{\Delta}^{(q)}x_t^{(q)}\right)\right)^{\mathsf{T}}, \tag*{(227)} B ˉ t ( q ) = ( W B ( q ) x t ( q ) ) ( Softplus ( W Δ ( q ) x t ( q ) ) ) T , (227)
h t ( q ) = A ˉ t ( q ) ⊙ h t − 1 ( q ) + B ˉ t ( q ) diag ( x t ( q ) ) , (228) h_t^{(q)} = \bar{A}_t^{(q)} \odot h_{t-1}^{(q)} + \bar{B}_t^{(q)}\operatorname{diag}\left(x_t^{(q)}\right), \tag*{(228)} h t ( q ) = A ˉ t ( q ) ⊙ h t − 1 ( q ) + B ˉ t ( q ) diag ( x t ( q ) ) , (228)
y t ( q ) = ( h t ( q ) ) T W C ( q ) x t ( q ) = ( h t ( q ) ) T C t ( q ) . (229) y_t^{(q)} = \left(h_t^{(q)}\right)^{\mathsf{T}}W_C^{(q)}x_t^{(q)} = \left(h_t^{(q)}\right)^{\mathsf{T}}C_t^{(q)}. \tag*{(229)} y t ( q ) = ( h t ( q ) ) T W C ( q ) x t ( q ) = ( h t ( q ) ) T C t ( q ) . (229)
where the hidden state of each layer q q q is initialized as h 0 ( q ) = 0 N × D h_0^{(q)} = 0_{N \times D} h 0 ( q ) = 0 N × D , just as in the single-layer setting.
Finally, the empirical loss for processing a sequence of length S S S for such defined multi-layer selective SSM is:
L S , ( Q ) ( W ; ξ ) = 1 S ∑ t = 1 S ℓ t ( y t ( Q ) ) = 1 S ∑ t = 1 S ℓ t ( x t ( Q + 1 ) ) . (230) \mathcal{L}^{S,(Q)}(W;\xi) = \frac{1}{S}\sum_{t=1}^{S}\ell_t\left(y_t^{(Q)}\right) = \frac{1}{S}\sum_{t=1}^{S}\ell_t\left(x_t^{(Q+1)}\right). \tag*{(230)} L S , ( Q ) ( W ; ξ ) = S 1 t = 1 ∑ S ℓ t ( y t ( Q ) ) = S 1 t = 1 ∑ S ℓ t ( x t ( Q + 1 ) ) . (230)
Here, ξ = ( x , y ∗ ) \xi= (x,y^*) ξ = ( x , y ∗ ) is an admissible input-target pair of length S ≥ 1 S \ge1 S ≥ 1 , and ℓ t ( y t ( Q ) ) \ell_t\left(y_t^{(Q)}\right) ℓ t ( y t ( Q ) ) abbreviates ℓ t ( y t ( Q ) ( W ; x ) , y t ∗ ) \ell_t\left(y_t^{(Q)}(W;x),y_t^*\right) ℓ t ( y t ( Q ) ( W ; x ) , y t ∗ ) . For fixed ξ \xi ξ , we write L S , ( Q ) ( W ) \mathcal{L}^{S,(Q)}(W) L S , ( Q ) ( W ) in place of L S , ( Q ) ( W ; ξ ) \mathcal{L}^{S,(Q)}(W;\xi) L S , ( Q ) ( W ; ξ ) .
In this multi-layer setting, the full gradient is the block tuple:
∇ W L S , ( Q ) ( W ) = ( ∇ W ( 1 ) L S , ( Q ) ( W ) , … , ∇ W ( Q ) L S , ( Q ) ( W ) ) . (231) \nabla_W \mathcal{L}^{S,(Q)}(W) = \left(\nabla_{W^{(1)}}\mathcal{L}^{S,(Q)}(W),\ldots,\nabla_{W^{(Q)}}\mathcal{L}^{S,(Q)}(W)\right). \tag*{(231)} ∇ W L S , ( Q ) ( W ) = ( ∇ W ( 1 ) L S , ( Q ) ( W ) , … , ∇ W ( Q ) L S , ( Q ) ( W ) ) . (231)
Similar to the single-layer proof, in the multi-layer formulation, gradients with respect to the full parameter tuple W = ( W ( 1 ) , … , W ( Q ) ) W = \left(W^{(1)},\ldots,W^{(Q)}\right) W = ( W ( 1 ) , … , W ( Q ) ) are understood as block gradients across layers. As such, for any function f f f ,
∥ ∇ W f ∥ F 2 : = ∑ q = 1 Q ∥ ∇ W ( q ) f ∥ F 2 , (232) \left\|\nabla_W f\right\|_F^2 := \sum_{q=1}^{Q}\left\|\nabla_{W^{(q)}}f\right\|_F^2, \tag*{(232)} ∥ ∇ W f ∥ F 2 := q = 1 ∑ Q ∥ ∇ W ( q ) f ∥ F 2 , (232)
where, for each layer q q q , the gradient is further decomposed into parameter blocks as:
∥ ∇ W ( q ) f ∥ F 2 : = ∥ ∇ W Δ ( q ) f ∥ F 2 + ∥ ∇ W B ( q ) f ∥ F 2 + ∥ ∇ W C ( q ) f ∥ F 2 + ∥ ∇ A ( q ) f ∥ F 2 . (233) \left\|\nabla_{W^{(q)}} f\right\|_F^2 := \left\|\nabla_{W_{\Delta}^{(q)}} f\right\|_F^2 + \left\|\nabla_{W_B^{(q)}} f\right\|_F^2 + \left\|\nabla_{W_C^{(q)}} f\right\|_F^2 + \left\|\nabla_{A^{(q)}} f\right\|_F^2. \tag*{(233)} ∥ ∇ W ( q ) f ∥ F 2 := ∇ W Δ ( q ) f F 2 + ∇ W B ( q ) f F 2 + ∇ W C ( q ) f F 2 + ∥ ∇ A ( q ) f ∥ F 2 . (233)
As in the single-layer proof, parameter derivatives with respect to W ( q ) W^{(q)} W ( q ) are understood as flattened block Jacobians, with rows representing the output coordinates and columns corresponding to the scalar parameters of layer q q q . We use the same vectorization and scalar-parameter-slice conventions for products and transposes.
For this multi-layer formulation, we introduce the following new assumption and definition, that extend the single-layer analysis assumptions to the multi-layer setting: Assumption C.1 (Bounded Layer Inputs). For every layer q ∈ { 1 , … , Q } q \in\{1,\ldots,Q\} q ∈ { 1 , … , Q } of a multi-layer selective SSM of depth Q Q Q parameterized by a fixed set of weights W = ( W ( 1 ) , … , W ( Q ) ) W = (W^{(1)},\ldots,W^{(Q)}) W = ( W ( 1 ) , … , W ( Q ) ) , there exists a constant L x , q > 0 L_{x,q} > 0 L x , q > 0 such that:
∥ x t ( q ) ( W ; ξ ) ∥ 2 ≤ L x , q ∀ t ∈ { 1 , … , S } . (234) \left\|x_t^{(q)}(W;\xi)\right\|_2 \le L_{x,q}\ \forall t \in\{1,\ldots,S\}. \tag*{(234)} x t ( q ) ( W ; ξ ) 2 ≤ L x , q ∀ t ∈ { 1 , … , S } . (234)
This holds for every finite integer length S ≥ 1 S \ge1 S ≥ 1 , every admissible input-target pair ξ ∈ Z \xi\in\mathcal{Z} ξ ∈ Z , and every token index t ∈ { 1 , … , S } t \in\{1,\ldots,S\} t ∈ { 1 , … , S } , with finite constants independent of S S S , ξ \xi ξ , and t t t .
Definition C.2 (Multi-layer SSM Stability). For each layer q ∈ { 1 , … , Q } q \in\{1,\ldots,Q\} q ∈ { 1 , … , Q } , let γ q > 0 \gamma_q > 0 γ q > 0 and δ q > 0 \delta_q > 0 δ q > 0 . We define S γ , δ ( Q ) \mathcal{S}^{(Q)}_{\gamma,\delta} S γ , δ ( Q ) as follows:
S γ , δ ( Q ) : = { W | A n ( q ) ≤ − γ q , [ Softplus ( W Δ ( q ) x t ( q ) ( W ; ξ ) ) ] d ≥ δ q \mathcal{S}^{(Q)}_{\gamma,\delta} := \left\{W \middle| A^{(q)}_n \le-\gamma_q,\ \left[\operatorname{Softplus}\left(W^{(q)}_{\Delta}x_t^{(q)}(W;\xi)\right)\right]_d \ge\delta_q
\right. S γ , δ ( Q ) := { W A n ( q ) ≤ − γ q , [ Softplus ( W Δ ( q ) x t ( q ) ( W ; ξ ) ) ] d ≥ δ q
∀ q ∈ { 1 , … , Q } , ∀ n ∈ { 1 , … , N } , ∀ d ∈ { 1 , … , D } , ∀ t ∈ { 1 , … , S } , \left.
\forall q \in\{1,\ldots,Q\},\ \forall n \in\{1,\ldots,N\},\ \forall d \in\{1,\ldots,D\},\ \forall t \in\{1,\ldots,S\},
\right. ∀ q ∈ { 1 , … , Q } , ∀ n ∈ { 1 , … , N } , ∀ d ∈ { 1 , … , D } , ∀ t ∈ { 1 , … , S } ,
finite integer S ≥ 1 , and every admissible length- S pair ξ ∈ Z } (235) \left.\text{finite integer }S\ge1\text{, and every admissible length-}S\text{ pair }\xi\in\mathcal{Z}\right\} \tag*{(235)} finite integer S ≥ 1 , and every admissible length- S pair ξ ∈ Z } (235)
where γ = ( γ 1 , … , γ Q ) \gamma= (\gamma_1,\ldots,\gamma_Q) γ = ( γ 1 , … , γ Q ) and δ = ( δ 1 , … , δ Q ) \delta= (\delta_1,\ldots,\delta_Q) δ = ( δ 1 , … , δ Q )
We then say that the full parameter tuple W W W is stable with these margins if W ∈ S γ , δ ( Q ) W \in\mathcal{S}^{(Q)}_{\gamma,\delta} W ∈ S γ , δ ( Q ) .
For each layer q q q , we further define:
ρ q : = exp ( − γ q δ q ) < 1. (236) \rho_q := \exp(-\gamma_q\delta_q) < 1. \tag*{(236)} ρ q := exp ( − γ q δ q ) < 1. (236)
As a result of Definition C.2, for a layer q q q , it follows that:
∥ A ˉ t ( q ) ∥ max ≤ ρ q . (237) \left\|\bar{A}^{(q)}_t\right\|_{\max} \le\rho_q. \tag*{(237)} A ˉ t ( q ) m a x ≤ ρ q . (237)
Given such setup, we state the following theorem:
Theorem C.3 (Multi-Layer SSM Gradient Bound). Let W = ( W ( 1 ) , … , W ( Q ) ) W = (W^{(1)},\ldots,W^{(Q)}) W = ( W ( 1 ) , … , W ( Q ) ) be a full parameter tuple satisfying Assumptions 4.2 and C.1, with W ∈ S γ , δ ( Q ) W \in\mathcal{S}^{(Q)}_{\gamma,\delta} W ∈ S γ , δ ( Q ) , that parametrizes a multi-layer selective SSM model of finite integer depth Q ≥ 1 Q \ge1 Q ≥ 1 . Then, for such W W W , for every finite integer S ≥ 1 S \ge1 S ≥ 1 and every admissible input-target pair ξ ∈ Z \xi\in\mathcal{Z} ξ ∈ Z of length S S S , the following bound holds:
∥ ∇ W L S , ( Q ) ( W ; ξ ) ∥ F ≤ L ℓ ( ∑ q = 1 Q L x , q 2 ( H q + ∥ W C ( q ) ∥ 2 J q ) 2 ∏ q ′ = q + 1 Q κ q ′ 2 ) 1 / 2 = : G S S M ( Q ) ( W ) (238) \left\|\nabla_W \mathcal{L}^{S,(Q)}(W;\xi)\right\|_F \le L_\ell\left(\sum_{q=1}^{Q} L_{x,q}^{2}\left(H_q+\left\|W_C^{(q)}\right\|_2J_q\right)^2\prod_{q'=q+1}^{Q}\kappa_{q'}^2\right)^{1/2} =: G_{\mathrm{SSM}}^{(Q)}(W) \tag*{(238)} ∇ W L S , ( Q ) ( W ; ξ ) F ≤ L ℓ q = 1 ∑ Q L x , q 2 ( H q + W C ( q ) 2 J q ) 2 q ′ = q + 1 ∏ Q κ q ′ 2 1/2 =: G SSM ( Q ) ( W ) (238) with
K Δ , q : = ∥ W Δ ( q ) ∥ 2 L x , q + D log ( 2 ) , K B , q : = ∥ W B ( q ) ∥ 2 L x , q 2 , (239) K_{\Delta,q} := \left\|W_{\Delta}^{(q)}\right\|_2 L_{x,q}+\sqrt{D}\log(2),\qquad K_{B,q} := \left\|W_B^{(q)}\right\|_2 L_{x,q}^{2}, \tag*{(239)} K Δ , q := W Δ ( q ) 2 L x , q + D log ( 2 ) , K B , q := W B ( q ) 2 L x , q 2 , (239) K W , q : = N D K B , q K Δ , q ( K Δ , q + D ∥ A ( q ) ∥ 2 L x , q ) ( ρ q 1 − ρ q ) + L x , q 2 N K Δ , q + L x , q D K B , q , (240) K_{W,q} := NDK_{B,q}K_{\Delta,q}\left(K_{\Delta,q}+\sqrt{D}\left\|A^{(q)}\right\|_2L_{x,q}\right)\left(\frac{\rho_q}{1-\rho_q}\right)+L_{x,q}^{2}\sqrt{N}K_{\Delta,q}+L_{x,q}\sqrt{D}K_{B,q}, \tag*{(240)} K W , q := N D K B , q K Δ , q ( K Δ , q + D A ( q ) 2 L x , q ) ( 1 − ρ q ρ q ) + L x , q 2 N K Δ , q + L x , q D K B , q , (240) H q : = K B , q K Δ , q N D 1 − ρ q , J q : = K W , q 1 − ρ q , κ q : = ∥ W C ( q ) ∥ 2 ( H q + L x , q Λ x , q 1 − ρ q ) , (241) H_q := \frac{K_{B,q}K_{\Delta,q}\sqrt{N D}}{1-\rho_q},\qquad J_q := \frac{K_{W,q}}{1-\rho_q},\qquad\kappa_q := \left\|W_C^{(q)}\right\|_2\left(H_q+\frac{L_{x,q}\Lambda_{x,q}}{1-\rho_q}\right), \tag*{(241)} H q := 1 − ρ q K B , q K Δ , q N D , J q := 1 − ρ q K W , q , κ q := W C ( q ) 2 ( H q + 1 − ρ q L x , q Λ x , q ) , (241) Λ x , q : = ρ q ∥ A ( q ) ∥ 2 ∥ W Δ ( q ) ∥ 2 H q + ∥ W B ( q ) ∥ 2 L x , q ( 2 K Δ , q + L x , q ∥ W Δ ( q ) ∥ 2 ) . (242) \Lambda_{x,q} := \rho_q\left\|A^{(q)}\right\|_2\left\|W_{\Delta}^{(q)}\right\|_2 H_q+\left\|W_B^{(q)}\right\|_2 L_{x,q}\left(2K_{\Delta,q}+L_{x,q}\left\|W_{\Delta}^{(q)}\right\|_2\right). \tag*{(242)} Λ x , q := ρ q A ( q ) 2 W Δ ( q ) 2 H q + W B ( q ) 2 L x , q ( 2 K Δ , q + L x , q W Δ ( q ) 2 ) . (242)
Proof of Theorem C.3: Fix an arbitrary full parameter tuple W W W satisfying Assumptions 4.2 and C.1 such that W ∈ S γ , δ ( Q ) W \in\mathcal{S}^{(Q)}_{\gamma,\delta} W ∈ S γ , δ ( Q ) . Let ξ ∈ Z \xi\in\mathcal{Z} ξ ∈ Z be some fixed admissible sequence pair of length S S S (S ≥ 1 S \ge1 S ≥ 1 is some fixed finite integer).
By the definition of a gradient with respect to a tuple in equation (231), it follows that:
∥ ∇ W L S , ( Q ) ( W ) ∥ F = ( ∑ q = 1 Q ∥ ∇ W ( q ) L S , ( Q ) ( W ) ∥ F 2 ) 1 / 2 (243) \left\|\nabla_W \mathcal{L}^{S,(Q)}(W)\right\|_F = \left(\sum_{q=1}^{Q}\left\|\nabla_{W^{(q)}}\mathcal{L}^{S,(Q)}(W)\right\|_F^2\right)^{1/2} \tag*{(243)} ∇ W L S , ( Q ) ( W ) F = ( q = 1 ∑ Q ∇ W ( q ) L S , ( Q ) ( W ) F 2 ) 1/2 (243)
As a result, to derive a bound on the gradient norm with respect to the full model parameter tuple W W W , it is sufficient to derive the bound on:
∥ ∇ W ( q ) L S , ( Q ) ( W ) ∥ F 2 (244) \left\lVert\nabla_{W^{(q)}}\mathcal{L}^{S,(Q)}(W) \right\rVert_{F}^{2} \tag*{(244)} ∇ W ( q ) L S , ( Q ) ( W ) F 2 (244)
for an arbitrary layer q ∈ { 1 , … , Q } q \in\{1,\ldots,Q\} q ∈ { 1 , … , Q } , and combine the resulting layer-wise bounds.
This gradient can be expanded as:
∇ W ( q ) L S , ( Q ) ( W ) = ∇ W ( q ) ( 1 S ∑ t = 1 S ℓ t ( y t ( Q ) ) ) = 1 S ∑ t = 1 S ∇ W ( q ) ℓ t ( y t ( Q ) ) (245) \nabla_{W^{(q)}}\mathcal{L}^{S,(Q)}(W) = \nabla_{W^{(q)}}\left(\frac{1}{S}\sum_{t=1}^{S}\ell_t\left(y_t^{(Q)}\right)\right) = \frac{1}{S}\sum_{t=1}^{S}\nabla_{W^{(q)}}\ell_t\left(y_t^{(Q)}\right) \tag*{(245)} ∇ W ( q ) L S , ( Q ) ( W ) = ∇ W ( q ) ( S 1 t = 1 ∑ S ℓ t ( y t ( Q ) ) ) = S 1 t = 1 ∑ S ∇ W ( q ) ℓ t ( y t ( Q ) ) (245)
Applying the chain rule again, we get:
vec ( ∇ W ( q ) L S , ( Q ) ( W ) ) = 1 S ∑ t = 1 S ( ∂ y t ( Q ) ∂ W ( q ) ) ⊤ ∇ y ℓ t ( y t ( Q ) ) . (246) \operatorname{vec}\left(\nabla_{W^{(q)}}\mathcal{L}^{S,(Q)}(W)\right) = \frac{1}{S}\sum_{t=1}^{S}\left(\frac{\partial y_t^{(Q)}}{\partial W^{(q)}}\right)^{\top}\nabla_y\ell_t\left(y_t^{(Q)}\right). \tag*{(246)} vec ( ∇ W ( q ) L S , ( Q ) ( W ) ) = S 1 t = 1 ∑ S ( ∂ W ( q ) ∂ y t ( Q ) ) ⊤ ∇ y ℓ t ( y t ( Q ) ) . (246)
For Q ≥ 2 Q \ge2 Q ≥ 2 , we first consider the case q = Q − 1 q=Q-1 q = Q − 1 and focus on ∂ y t ( Q ) ∂ W ( q ) \frac{\partial y_t^{(Q)}}{\partial W^{(q)}} ∂ W ( q ) ∂ y t ( Q ) , since ∇ y ℓ t ( y t ( Q ) ) \nabla_y\ell_t\left(y_t^{(Q)}\right) ∇ y ℓ t ( y t ( Q ) ) is independent of q q q . By the product rule and using the SSM dynamics, it follows that:
∂ y t ( Q ) ∂ W ( Q − 1 ) = ∂ ( h t ( Q ) ) ⊤ ∂ W ( Q − 1 ) C t ( Q ) + ( h t ( Q ) ) ⊤ ∂ C ( Q ) ∂ W ( Q − 1 ) (247) \frac{\partial y_t^{(Q)}}{\partial W^{(Q-1)}} = \frac{\partial\left(h_t^{(Q)}\right)^{\top}}{\partial W^{(Q-1)}}C_t^{(Q)}+\left(h_t^{(Q)}\right)^{\top}\frac{\partial C^{(Q)}}{\partial W^{(Q-1)}} \tag*{(247)} ∂ W ( Q − 1 ) ∂ y t ( Q ) = ∂ W ( Q − 1 ) ∂ ( h t ( Q ) ) ⊤ C t ( Q ) + ( h t ( Q ) ) ⊤ ∂ W ( Q − 1 ) ∂ C ( Q ) (247)
Next, we evaluate (246) coordinate-wise, as this avoids any ambiguity associated with calculating the matrix-valued derivatives with respect to the parameter tuples. Let w ( Q − 1 ) w^{(Q-1)} w ( Q − 1 ) denote an arbitrary scalar coordinate of W ( Q − 1 ) W^{(Q-1)} W ( Q − 1 ) , and let d ∈ { 1 , … , D } d \in\{1,\ldots,D\} d ∈ { 1 , … , D } denote an arbitrary coordinate of y t ( Q ) y_t^{(Q)} y t ( Q ) . Then:
y t , d ( Q ) = ∑ n = 1 N h t , n , d ( Q ) C t , n ( Q ) , (248) y_{t,d}^{(Q)}=\sum_{n=1}^{N}h_{t,n,d}^{(Q)}C_{t,n}^{(Q)}, \tag*{(248)} y t , d ( Q ) = n = 1 ∑ N h t , n , d ( Q ) C t , n ( Q ) , (248)
and by the product rule:
∂ y t , d ( Q ) ∂ w ( Q − 1 ) = ∑ n = 1 N [ C t , n ( Q ) ∂ h t , n , d ( Q ) ∂ w ( Q − 1 ) + h t , n , d ( Q ) ∂ C t , n ( Q ) ∂ w ( Q − 1 ) ] (249) \frac{\partial y_{t,d}^{(Q)}}{\partial w^{(Q-1)}}=\sum_{n=1}^{N}\left[C_{t,n}^{(Q)}\frac{\partial h_{t,n,d}^{(Q)}}{\partial w^{(Q-1)}}+h_{t,n,d}^{(Q)}\frac{\partial C_{t,n}^{(Q)}}{\partial w^{(Q-1)}}\right] \tag*{(249)} ∂ w ( Q − 1 ) ∂ y t , d ( Q ) = n = 1 ∑ N [ C t , n ( Q ) ∂ w ( Q − 1 ) ∂ h t , n , d ( Q ) + h t , n , d ( Q ) ∂ w ( Q − 1 ) ∂ C t , n ( Q ) ] (249)
Next, since the weight w ( Q − 1 ) w^{(Q-1)} w ( Q − 1 ) is not a parameter of layer Q Q Q , it influences h t ( Q ) h_t^{(Q)} h t ( Q ) at any coordinate only through the inputs to layer Q Q Q (i.e. h t ( Q ) h_t^{(Q)} h t ( Q ) is a function of all x 1 ( Q ) , … , x j ( Q ) , … , x t ( Q ) x_1^{(Q)},\ldots,x_j^{(Q)},\ldots,x_t^{(Q)} x 1 ( Q ) , … , x j ( Q ) , … , x t ( Q ) , which depend on the parameters of the previous layer through x j ( Q ) = y j ( Q − 1 ) x_j^{(Q)}=y_j^{(Q-1)} x j ( Q ) = y j ( Q − 1 ) ). As a result:
∂ h t , n , d ( Q ) ∂ w ( Q − 1 ) = ∑ j = 1 t ∑ d ′ = 1 D ∂ h t , n , d ( Q ) ∂ x j , d ′ ( Q ) ∂ x j , d ′ ( Q ) ∂ w ( Q − 1 ) . (250) \frac{\partial h_{t,n,d}^{(Q)}}{\partial w^{(Q-1)}}=\sum_{j=1}^{t}\sum_{d'=1}^{D}\frac{\partial h_{t,n,d}^{(Q)}}{\partial x_{j,d'}^{(Q)}}\frac{\partial x_{j,d'}^{(Q)}}{\partial w^{(Q-1)}}. \tag*{(250)} ∂ w ( Q − 1 ) ∂ h t , n , d ( Q ) = j = 1 ∑ t d ′ = 1 ∑ D ∂ x j , d ′ ( Q ) ∂ h t , n , d ( Q ) ∂ w ( Q − 1 ) ∂ x j , d ′ ( Q ) . (250)
Furthermore, since C t , n ( Q ) = ∑ d ′ = 1 D ( W C ( Q ) ) n , d ′ x t , d ′ ( Q ) C_{t,n}^{(Q)}=\sum_{d'=1}^{D}\left(W_C^{(Q)}\right)_{n,d'}x_{t,d'}^{(Q)} C t , n ( Q ) = ∑ d ′ = 1 D ( W C ( Q ) ) n , d ′ x t , d ′ ( Q ) , and W C ( Q ) W_C^{(Q)} W C ( Q ) is independent of any parameter of W ( Q − 1 ) W^{(Q-1)} W ( Q − 1 ) , it follows that:
∂ C t , n ( Q ) ∂ w ( Q − 1 ) = ∑ d ′ = 1 D ( W C ( Q ) ) n , d ′ ∂ x t , d ′ ( Q ) ∂ w ( Q − 1 ) (251) \frac{\partial C_{t,n}^{(Q)}}{\partial w^{(Q-1)}}=\sum_{d'=1}^{D}\left(W_C^{(Q)}\right)_{n,d'}\frac{\partial x_{t,d'}^{(Q)}}{\partial w^{(Q-1)}} \tag*{(251)} ∂ w ( Q − 1 ) ∂ C t , n ( Q ) = d ′ = 1 ∑ D ( W C ( Q ) ) n , d ′ ∂ w ( Q − 1 ) ∂ x t , d ′ ( Q ) (251)
Substituting these expressions into (248) results in:
∂ y t , d ( Q ) ∂ w ( Q − 1 ) = ∑ n = 1 N [ C t , n ( Q ) ∑ j = 1 t ∑ d ′ = 1 D ∂ h t , n , d ( Q ) ∂ x j , d ′ ( Q ) ∂ x j , d ′ ( Q ) ∂ w ( Q − 1 ) + h t , n , d ( Q ) ∑ d ′ = 1 D ( W C ( Q ) ) n , d ′ ∂ x t , d ′ ( Q ) ∂ w ( Q − 1 ) ] \frac{\partial y_{t,d}^{(Q)}}{\partial w^{(Q-1)}}=\sum_{n=1}^{N}\left[C_{t,n}^{(Q)}\sum_{j=1}^{t}\sum_{d'=1}^{D}\frac{\partial h_{t,n,d}^{(Q)}}{\partial x_{j,d'}^{(Q)}}\frac{\partial x_{j,d'}^{(Q)}}{\partial w^{(Q-1)}}+h_{t,n,d}^{(Q)}\sum_{d'=1}^{D}\left(W_C^{(Q)}\right)_{n,d'}\frac{\partial x_{t,d'}^{(Q)}}{\partial w^{(Q-1)}}\right] ∂ w ( Q − 1 ) ∂ y t , d ( Q ) = n = 1 ∑ N [ C t , n ( Q ) j = 1 ∑ t d ′ = 1 ∑ D ∂ x j , d ′ ( Q ) ∂ h t , n , d ( Q ) ∂ w ( Q − 1 ) ∂ x j , d ′ ( Q ) + h t , n , d ( Q ) d ′ = 1 ∑ D ( W C ( Q ) ) n , d ′ ∂ w ( Q − 1 ) ∂ x t , d ′ ( Q ) ]
∂ y t , d ( Q ) ∂ w ( Q − 1 ) = ∑ n = 1 N [ C t , n ( Q ) ∑ j = 1 t ∑ d ′ = 1 D ∂ h t , n , d ( Q ) ∂ x j , d ′ ( Q ) ∂ x j , d ′ ( Q ) ∂ w ( Q − 1 ) + h t , n , d ( Q ) ∑ j = 1 t ∑ d ′ = 1 D 1 j = t ( W C ( Q ) ) n , d ′ ∂ x j , d ′ ( Q ) ∂ w ( Q − 1 ) ] = ∑ j = 1 t ∑ d ′ = 1 D [ ∑ n = 1 N ( C t , n ( Q ) ∂ h t , n , d ( Q ) ∂ x j , d ′ ( Q ) + 1 j = t h t , n , d ( Q ) ( W C ( Q ) ) n , d ′ ) ] ∂ x j , d ′ ( Q ) ∂ w ( Q − 1 ) . (252) \begin{aligned}
\frac{\partial y_{t,d}^{(Q)}}{\partial w^{(Q-1)}}&=\sum_{n=1}^{N}\left[C_{t,n}^{(Q)}\sum_{j=1}^{t}\sum_{d'=1}^{D}\frac{\partial h_{t,n,d}^{(Q)}}{\partial x_{j,d'}^{(Q)}}\frac{\partial x_{j,d'}^{(Q)}}{\partial w^{(Q-1)}}+h_{t,n,d}^{(Q)}\sum_{j=1}^{t}\sum_{d'=1}^{D}\mathbb{1}_{j=t}\left(W_C^{(Q)}\right)_{n,d'}\frac{\partial x_{j,d'}^{(Q)}}{\partial w^{(Q-1)}}\right]\\
&=\sum_{j=1}^{t}\sum_{d'=1}^{D}\left[\sum_{n=1}^{N}\left(C_{t,n}^{(Q)}\frac{\partial h_{t,n,d}^{(Q)}}{\partial x_{j,d'}^{(Q)}}+\mathbb{1}_{j=t}h_{t,n,d}^{(Q)}\left(W_C^{(Q)}\right)_{n,d'}\right)\right]\frac{\partial x_{j,d'}^{(Q)}}{\partial w^{(Q-1)}}. \tag*{(252)}
\end{aligned} ∂ w ( Q − 1 ) ∂ y t , d ( Q ) = n = 1 ∑ N [ C t , n ( Q ) j = 1 ∑ t d ′ = 1 ∑ D ∂ x j , d ′ ( Q ) ∂ h t , n , d ( Q ) ∂ w ( Q − 1 ) ∂ x j , d ′ ( Q ) + h t , n , d ( Q ) j = 1 ∑ t d ′ = 1 ∑ D 1 j = t ( W C ( Q ) ) n , d ′ ∂ w ( Q − 1 ) ∂ x j , d ′ ( Q ) ] = j = 1 ∑ t d ′ = 1 ∑ D [ n = 1 ∑ N ( C t , n ( Q ) ∂ x j , d ′ ( Q ) ∂ h t , n , d ( Q ) + 1 j = t h t , n , d ( Q ) ( W C ( Q ) ) n , d ′ ) ] ∂ w ( Q − 1 ) ∂ x j , d ′ ( Q ) . (252)
where 1 j = t \mathbb{1}_{j=t} 1 j = t is 1 if j = t j=t j = t and 0 otherwise.
Next, we note that:
∂ y t , d ( Q ) ∂ x j , d ′ ( Q ) = ∂ ( ∑ n = 1 N h t , n , d ( Q ) C t , n ( Q ) ) ∂ x j , d ′ ( Q ) = ∑ n = 1 N ∂ ( h t , n , d ( Q ) C t , n ( Q ) ) ∂ x j , d ′ ( Q ) = ∑ n = 1 N [ C t , n ( Q ) ∂ h t , n , d ( Q ) ∂ x j , d ′ ( Q ) + h t , n , d ( Q ) ∂ ( ∑ d ′ ′ = 1 D ( W C ( Q ) ) n , d ′ ′ x t , d ′ ′ ( Q ) ) ∂ x j , d ′ ( Q ) ] = ∑ n = 1 N ( C t , n ( Q ) ∂ h t , n , d ( Q ) ∂ x j , d ′ ( Q ) + 1 j = t h t , n , d ( Q ) ( W C ( Q ) ) n , d ′ ) . (253) \begin{aligned}
\frac{\partial y_{t,d}^{(Q)}}{\partial x_{j,d'}^{(Q)}}&=\frac{\partial\left(\sum_{n=1}^{N}h_{t,n,d}^{(Q)}C_{t,n}^{(Q)}\right)}{\partial x_{j,d'}^{(Q)}}=\sum_{n=1}^{N}\frac{\partial\left(h_{t,n,d}^{(Q)}C_{t,n}^{(Q)}\right)}{\partial x_{j,d'}^{(Q)}}\\
&=\sum_{n=1}^{N}\left[C_{t,n}^{(Q)}\frac{\partial h_{t,n,d}^{(Q)}}{\partial x_{j,d'}^{(Q)}}+h_{t,n,d}^{(Q)}\frac{\partial\left(\sum_{d''=1}^{D}\left(W_C^{(Q)}\right)_{n,d''}x_{t,d''}^{(Q)}\right)}{\partial x_{j,d'}^{(Q)}}\right]\\
&=\sum_{n=1}^{N}\left(C_{t,n}^{(Q)}\frac{\partial h_{t,n,d}^{(Q)}}{\partial x_{j,d'}^{(Q)}}+\mathbb{1}_{j=t}h_{t,n,d}^{(Q)}\left(W_C^{(Q)}\right)_{n,d'}\right). \tag*{(253)}
\end{aligned} ∂ x j , d ′ ( Q ) ∂ y t , d ( Q ) = ∂ x j , d ′ ( Q ) ∂ ( ∑ n = 1 N h t , n , d ( Q ) C t , n ( Q ) ) = n = 1 ∑ N ∂ x j , d ′ ( Q ) ∂ ( h t , n , d ( Q ) C t , n ( Q ) ) = n = 1 ∑ N C t , n ( Q ) ∂ x j , d ′ ( Q ) ∂ h t , n , d ( Q ) + h t , n , d ( Q ) ∂ x j , d ′ ( Q ) ∂ ( ∑ d ′′ = 1 D ( W C ( Q ) ) n , d ′′ x t , d ′′ ( Q ) ) = n = 1 ∑ N ( C t , n ( Q ) ∂ x j , d ′ ( Q ) ∂ h t , n , d ( Q ) + 1 j = t h t , n , d ( Q ) ( W C ( Q ) ) n , d ′ ) . (253)
where we use the fact that if j ≠ t j\ne t j = t ,
∂ ( ∑ d ′ ′ = 1 D ( W C ( Q ) ) n , d ′ ′ x t , d ′ ′ ( Q ) ) ∂ x j , d ′ ( Q ) = 0 (254) \frac{\partial\left(\sum_{d''=1}^{D}\left(W_C^{(Q)}\right)_{n,d''}x_{t,d''}^{(Q)}\right)}{\partial x_{j,d'}^{(Q)}}=0 \tag*{(254)} ∂ x j , d ′ ( Q ) ∂ ( ∑ d ′′ = 1 D ( W C ( Q ) ) n , d ′′ x t , d ′′ ( Q ) ) = 0 (254)
and if j = t j=t j = t ,
∂ ( ∑ d ′ ′ = 1 D ( W C ( Q ) ) n , d ′ ′ x j , d ′ ′ ( Q ) ) ∂ x j , d ′ ( Q ) = ( W C ( Q ) ) n , d ′ . (255) \frac{\partial\left(\sum_{d''=1}^{D}\left(W_C^{(Q)}\right)_{n,d''}x_{j,d''}^{(Q)}\right)}{\partial x_{j,d'}^{(Q)}}=\left(W_C^{(Q)}\right)_{n,d'}. \tag*{(255)} ∂ x j , d ′ ( Q ) ∂ ( ∑ d ′′ = 1 D ( W C ( Q ) ) n , d ′′ x j , d ′′ ( Q ) ) = ( W C ( Q ) ) n , d ′ . (255)
As a result, it follows that:
∂ y t , d ( Q ) ∂ w ( Q − 1 ) = ∑ j = 1 t ∑ d ′ = 1 D ∂ y t , d ( Q ) ∂ x j , d ′ ( Q ) ∂ x j , d ′ ( Q ) ∂ w ( Q − 1 ) (256) \frac{\partial y_{t,d}^{(Q)}}{\partial w^{(Q-1)}}=\sum_{j=1}^{t}\sum_{d'=1}^{D}\frac{\partial y_{t,d}^{(Q)}}{\partial x_{j,d'}^{(Q)}}\frac{\partial x_{j,d'}^{(Q)}}{\partial w^{(Q-1)}} \tag*{(256)} ∂ w ( Q − 1 ) ∂ y t , d ( Q ) = j = 1 ∑ t d ′ = 1 ∑ D ∂ x j , d ′ ( Q ) ∂ y t , d ( Q ) ∂ w ( Q − 1 ) ∂ x j , d ′ ( Q ) (256)
and finally, since x j , d ′ ( Q ) = y j , d ′ ( Q − 1 ) x_{j,d'}^{(Q)}=y_{j,d'}^{(Q-1)} x j , d ′ ( Q ) = y j , d ′ ( Q − 1 ) ,
∂ y t , d ( Q ) ∂ w ( Q − 1 ) = ∑ j = 1 t ∑ d ′ = 1 D ∂ y t , d ( Q ) ∂ x j , d ′ ( Q ) ∂ y j , d ′ ( Q − 1 ) ∂ w ( Q − 1 ) . (257) \frac{\partial y_{t,d}^{(Q)}}{\partial w^{(Q-1)}}=\sum_{j=1}^{t}\sum_{d'=1}^{D}\frac{\partial y_{t,d}^{(Q)}}{\partial x_{j,d'}^{(Q)}}\frac{\partial y_{j,d'}^{(Q-1)}}{\partial w^{(Q-1)}}. \tag*{(257)} ∂ w ( Q − 1 ) ∂ y t , d ( Q ) = j = 1 ∑ t d ′ = 1 ∑ D ∂ x j , d ′ ( Q ) ∂ y t , d ( Q ) ∂ w ( Q − 1 ) ∂ y j , d ′ ( Q − 1 ) . (257)
For Q ≥ 3 Q\ge3 Q ≥ 3 , the same coordinate-wise chain rule argument applies to w ( Q − 2 ) w^{(Q-2)} w ( Q − 2 ) . That is, since w ( Q − 2 ) w^{(Q-2)} w ( Q − 2 ) is not a parameter of layer Q Q Q , it influences y t ( Q ) y_t^{(Q)} y t ( Q ) only through the inputs sequence x 1 ( Q ) , … , x t ( Q ) x_1^{(Q)},\ldots,x_t^{(Q)} x 1 ( Q ) , … , x t ( Q ) . As such, it follows that:
∂ y t , d ( Q ) ∂ w ( Q − 2 ) = ∑ j = 1 t ∑ d ′ = 1 D ∂ y t , d ( Q ) ∂ x j , d ′ ( Q ) ∂ y j , d ′ ( Q − 1 ) ∂ w ( Q − 2 ) . (258) \frac{\partial y_{t,d}^{(Q)}}{\partial w^{(Q-2)}}=\sum_{j=1}^{t}\sum_{d'=1}^{D}\frac{\partial y_{t,d}^{(Q)}}{\partial x_{j,d'}^{(Q)}}\frac{\partial y_{j,d'}^{(Q-1)}}{\partial w^{(Q-2)}}. \tag*{(258)} ∂ w ( Q − 2 ) ∂ y t , d ( Q ) = j = 1 ∑ t d ′ = 1 ∑ D ∂ x j , d ′ ( Q ) ∂ y t , d ( Q ) ∂ w ( Q − 2 ) ∂ y j , d ′ ( Q − 1 ) . (258)
Furthermore, using the same argument applied to layer Q − 1 Q-1 Q − 1 , we can say that:
∂ y j , d ′ ( Q − 1 ) ∂ w ( Q − 2 ) = ∑ j ′ = 1 j ∑ d ′ ′ = 1 D ∂ y j , d ′ ( Q − 1 ) ∂ x j ′ , d ′ ′ ( Q − 1 ) ∂ y j ′ , d ′ ′ ( Q − 2 ) ∂ w ( Q − 2 ) . (259) \frac{\partial y_{j,d'}^{(Q-1)}}{\partial w^{(Q-2)}}=\sum_{j'=1}^{j}\sum_{d''=1}^{D}\frac{\partial y_{j,d'}^{(Q-1)}}{\partial x_{j',d''}^{(Q-1)}}\frac{\partial y_{j',d''}^{(Q-2)}}{\partial w^{(Q-2)}}. \tag*{(259)} ∂ w ( Q − 2 ) ∂ y j , d ′ ( Q − 1 ) = j ′ = 1 ∑ j d ′′ = 1 ∑ D ∂ x j ′ , d ′′ ( Q − 1 ) ∂ y j , d ′ ( Q − 1 ) ∂ w ( Q − 2 ) ∂ y j ′ , d ′′ ( Q − 2 ) . (259)
Substituting this result into (257), we obtain:
∂ y t , d ( Q ) ∂ w ( Q − 2 ) = ∑ j = 1 t ∑ d ′ = 1 D ∂ y t , d ( Q ) ∂ x j , d ′ ( Q ) ∑ j ′ = 1 t ∑ d ′ ′ = 1 D ∂ y j ′ , d ′ ′ ( Q − 1 ) ∂ x j ′ , d ′ ( Q − 1 ) ∂ y j ′ , d ′ ′ ( Q − 2 ) ∂ w ( Q − 2 ) = ∑ j = 1 t ∑ j ′ = 1 t ∑ d ′ = 1 D ∑ d ′ ′ = 1 D ∂ y t , d ( Q ) ∂ x j , d ′ ( Q ) ∂ y j ′ , d ′ ′ ( Q − 1 ) ∂ x j ′ , d ′ ( Q − 1 ) ∂ y j ′ , d ′ ′ ( Q − 2 ) ∂ w ( Q − 2 ) . (260) \frac{\partial y_{t,d}^{(Q)}}{\partial w^{(Q-2)}} = \sum_{j=1}^{t}\sum_{d'=1}^{D}\frac{\partial y_{t,d}^{(Q)}}{\partial x_{j,d'}^{(Q)}}\sum_{j'=1}^{t}\sum_{d''=1}^{D}\frac{\partial y_{j',d''}^{(Q-1)}}{\partial x_{j',d'}^{(Q-1)}}\frac{\partial y_{j',d''}^{(Q-2)}}{\partial w^{(Q-2)}} = \sum_{j=1}^{t}\sum_{j'=1}^{t}\sum_{d'=1}^{D}\sum_{d''=1}^{D}\frac{\partial y_{t,d}^{(Q)}}{\partial x_{j,d'}^{(Q)}}\frac{\partial y_{j',d''}^{(Q-1)}}{\partial x_{j',d'}^{(Q-1)}}\frac{\partial y_{j',d''}^{(Q-2)}}{\partial w^{(Q-2)}} . \tag*{(260)} ∂ w ( Q − 2 ) ∂ y t , d ( Q ) = j = 1 ∑ t d ′ = 1 ∑ D ∂ x j , d ′ ( Q ) ∂ y t , d ( Q ) j ′ = 1 ∑ t d ′′ = 1 ∑ D ∂ x j ′ , d ′ ( Q − 1 ) ∂ y j ′ , d ′′ ( Q − 1 ) ∂ w ( Q − 2 ) ∂ y j ′ , d ′′ ( Q − 2 ) = j = 1 ∑ t j ′ = 1 ∑ t d ′ = 1 ∑ D d ′′ = 1 ∑ D ∂ x j , d ′ ( Q ) ∂ y t , d ( Q ) ∂ x j ′ , d ′ ( Q − 1 ) ∂ y j ′ , d ′′ ( Q − 1 ) ∂ w ( Q − 2 ) ∂ y j ′ , d ′′ ( Q − 2 ) . (260)
This result means that, compared to the case of w ( Q − 1 ) w^{(Q-1)} w ( Q − 1 ) , the derivative with respect to w ( Q − 2 ) w^{(Q-2)} w ( Q − 2 ) contains one additional input-output derivative, which corresponds to its propagation through layer Q − 1 Q-1 Q − 1 . Applying this argument recursively, we derive the final derivative of the d d d -th coordinate of the final output with respect to some parameter w ( q ) w^{(q)} w ( q ) of the layer q ∈ { 1 , … , Q − 1 } q \in\{1,\ldots,Q-1\} q ∈ { 1 , … , Q − 1 } as:
∂ y t , d ( Q ) ∂ w ( q ) = ∑ j Q − 1 = 1 j Q ⋯ ∑ j q = 1 j q + 1 ∑ d Q − 1 = 1 D ⋯ ∑ d q = 1 D [ ∏ q ′ = q + 1 Q ∂ y j q ′ , d q ′ ( q ′ ) ∂ x j q ′ − 1 , d q ′ − 1 ( q ′ ) ] ∂ y j q , d q ( q ) ∂ w ( q ) , (261) \frac{\partial y_{t,d}^{(Q)}}{\partial w^{(q)}} = \sum_{j_{Q-1}=1}^{j_Q}\cdots\sum_{j_q=1}^{j_{q+1}}\sum_{d_{Q-1}=1}^{D}\cdots\sum_{d_q=1}^{D}\left[\prod_{q'=q+1}^{Q}\frac{\partial y_{j_{q'},d_{q'}}^{(q')}}{\partial x_{j_{q'-1},d_{q'-1}}^{(q')}}\right]\frac{\partial y_{j_q,d_q}^{(q)}}{\partial w^{(q)}} , \tag*{(261)} ∂ w ( q ) ∂ y t , d ( Q ) = j Q − 1 = 1 ∑ j Q ⋯ j q = 1 ∑ j q + 1 d Q − 1 = 1 ∑ D ⋯ d q = 1 ∑ D q ′ = q + 1 ∏ Q ∂ x j q ′ − 1 , d q ′ − 1 ( q ′ ) ∂ y j q ′ , d q ′ ( q ′ ) ∂ w ( q ) ∂ y j q , d q ( q ) , (261)
where we also have j Q = t j_Q=t j Q = t , d Q = d d_Q=d d Q = d , and j q ≤ j q + 1 ≤ ⋯ ≤ j Q − 1 ≤ j Q = t j_q \le j_{q+1} \le\cdots\le j_{Q-1} \le j_Q=t j q ≤ j q + 1 ≤ ⋯ ≤ j Q − 1 ≤ j Q = t .
We next collect the coordinate derivatives in (260) into matrices, which transforms sums over feature coordinates into matrix products, while the sums over time indices remain explicit.
For each layer q q q , define the input-output Jacobian matrix as:
K t , j ( q ) : = ∂ y t ( q ) ∂ x j ( q ) = ( ∂ y t , 1 ( q ) ∂ x j , 1 ( q ) ⋯ ∂ y t , 1 ( q ) ∂ x j , D ( q ) ⋮ ⋱ ⋮ ∂ y t , D ( q ) ∂ x j , 1 ( q ) ⋯ ∂ y t , D ( q ) ∂ x j , D ( q ) ) ∈ R D × D . (262) \mathbf{K}_{t,j}^{(q)}:=\frac{\partial y_t^{(q)}}{\partial x_j^{(q)}}=\begin{pmatrix}
\frac{\partial y_{t,1}^{(q)}}{\partial x_{j,1}^{(q)}} & \cdots& \frac{\partial y_{t,1}^{(q)}}{\partial x_{j,D}^{(q)}}\\
\vdots& \ddots& \vdots\\
\frac{\partial y_{t,D}^{(q)}}{\partial x_{j,1}^{(q)}} & \cdots& \frac{\partial y_{t,D}^{(q)}}{\partial x_{j,D}^{(q)}}
\end{pmatrix}\in\mathbb{R}^{D\times D}. \tag*{(262)} K t , j ( q ) := ∂ x j ( q ) ∂ y t ( q ) = ∂ x j , 1 ( q ) ∂ y t , 1 ( q ) ⋮ ∂ x j , 1 ( q ) ∂ y t , D ( q ) ⋯ ⋱ ⋯ ∂ x j , D ( q ) ∂ y t , 1 ( q ) ⋮ ∂ x j , D ( q ) ∂ y t , D ( q ) ∈ R D × D . (262)
The Jacobian is computed with the parameters of layer q q q and all input tokens other than x j ( q ) x_j^{(q)} x j ( q ) held fixed, and evaluated at the input sequence received by that layer. Additionally, by causality, K t , j ( q ) = 0 D × D \mathbf{K}_{t,j}^{(q)}=\mathbf{0}_{D\times D} K t , j ( q ) = 0 D × D for j > t j>t j > t .
Then, for any layer q ∈ { 1 , … , Q − 1 } q \in\{1,\ldots,Q-1\} q ∈ { 1 , … , Q − 1 } , for any subsequent layer q ′ ∈ { q + 1 , … , Q } q' \in\{q+1,\ldots,Q\} q ′ ∈ { q + 1 , … , Q } , the parameters W ( q ) W^{(q)} W ( q ) affect y ( q ′ ) y^{(q')} y ( q ′ ) only through the input sequence to layer q ′ q' q ′ . Since x j ( q ′ ) = y j ( q ′ − 1 ) x_j^{(q')}=y_j^{(q'-1)} x j ( q ′ ) = y j ( q ′ − 1 ) , the chain rule can be written in the matrix form as:
∂ y t ( q ′ ) ∂ W ( q ) = ∑ j = 1 t ∂ y t ( q ′ ) ∂ x j ( q ′ ) ∂ x j ( q ′ ) ∂ W ( q ) = ∑ j = 1 t K t , j ( q ′ ) ∂ y j ( q ′ − 1 ) ∂ W ( q ) . (263) \frac{\partial y_t^{(q')}}{\partial W^{(q)}}=\sum_{j=1}^{t}\frac{\partial y_t^{(q')}}{\partial x_j^{(q')}}\frac{\partial x_j^{(q')}}{\partial W^{(q)}}=\sum_{j=1}^{t}\mathbf{K}_{t,j}^{(q')}\frac{\partial y_j^{(q'-1)}}{\partial W^{(q)}} . \tag*{(263)} ∂ W ( q ) ∂ y t ( q ′ ) = j = 1 ∑ t ∂ x j ( q ′ ) ∂ y t ( q ′ ) ∂ W ( q ) ∂ x j ( q ′ ) = j = 1 ∑ t K t , j ( q ′ ) ∂ W ( q ) ∂ y j ( q ′ − 1 ) . (263)
Applying this recursively, we get:
∂ y t ( Q ) ∂ W ( q ) = ∑ j Q − 1 = 1 j Q ⋯ ∑ j q = 1 j q + 1 [ K j Q , j Q − 1 ( Q ) × ⋯ × K j q + 1 , j q ( q + 1 ) ] ∂ y j q ( q ) ∂ W ( q ) . (264) \frac{\partial y_t^{(Q)}}{\partial W^{(q)}}=\sum_{j_{Q-1}=1}^{j_Q}\cdots\sum_{j_q=1}^{j_{q+1}}\left[\mathbf{K}_{j_Q,j_{Q-1}}^{(Q)}\times\cdots\times\mathbf{K}_{j_{q+1},j_q}^{(q+1)}\right]\frac{\partial y_{j_q}^{(q)}}{\partial W^{(q)}} . \tag*{(264)} ∂ W ( q ) ∂ y t ( Q ) = j Q − 1 = 1 ∑ j Q ⋯ j q = 1 ∑ j q + 1 [ K j Q , j Q − 1 ( Q ) × ⋯ × K j q + 1 , j q ( q + 1 ) ] ∂ W ( q ) ∂ y j q ( q ) . (264)
for any q ∈ { 1 , … , Q − 1 } q \in\{1,\ldots,Q-1\} q ∈ { 1 , … , Q − 1 } , the matrix product contains only K t , j Q − 1 ( Q ) \mathbf{K}_{t,j_{Q-1}}^{(Q)} K t , j Q − 1 ( Q ) for the case q = Q − 1 q=Q-1 q = Q − 1 , the × \times × operator denotes matrix multiplication, and j Q = t j_Q=t j Q = t .
Note that equation (263) provides an explicit expression for the parameter Jacobian ∂ y t ( Q ) ∂ W ( q ) \frac{\partial y_t^{(Q)}}{\partial W^{(q)}} ∂ W ( q ) ∂ y t ( Q ) appearing in (245), in terms of the own-layer parameter Jacobians ∂ y j q ( q ) ∂ W ( q ) \frac{\partial y_{j_q}^{(q)}}{\partial W^{(q)}} ∂ W ( q ) ∂ y j q ( q ) and the input-output Jacobians of the subsequent layers.
We next use this decomposition to bound the norm of the parameter Jacobian. We use the Frobenius norm ∥ ⋅ ∥ F \lVert\cdot\rVert_F ∥ ⋅ ∥ F for the flattened parameter Jacobians and the spectral norm ∥ ⋅ ∥ 2 \lVert\cdot\rVert_2 ∥ ⋅ ∥ 2 (where for M ∈ R D × D M\in\mathbb{R}^{D\times D} M ∈ R D × D , ∥ M ∥ 2 : = sup ∥ v ∥ 2 = 1 ∥ M v ∥ 2 \lVert M\rVert_2:=\sup_{\lVert v\rVert_2=1}\lVert Mv\rVert_2 ∥ M ∥ 2 := sup ∥ v ∥ 2 = 1 ∥ M v ∥ 2 ) for the input-output matrices. Applying the triangle inequality and the fact that ∥ A B ∥ F ≤ ∥ A ∥ 2 ∥ B ∥ F \lVert AB\rVert_F\le\lVert A\rVert_2\lVert B\rVert_F ∥ A B ∥ F ≤ ∥ A ∥ 2 ∥ B ∥ F , it follows that:
∥ ∂ y t ( Q ) ∂ W ( q ) ∥ F = ∥ ∑ j Q − 1 = 1 j Q ⋯ ∑ j q = 1 j q + 1 [ K j Q , j Q − 1 ( Q ) × ⋯ × K j q + 1 , j q ( q + 1 ) ] ∂ y j q ( q ) ∂ W ( q ) ∥ F \left\lVert\frac{\partial y_t^{(Q)}}{\partial W^{(q)}}\right\rVert_F=\left\lVert\sum_{j_{Q-1}=1}^{j_Q}\cdots\sum_{j_q=1}^{j_{q+1}}\left[\mathbf{K}_{j_Q,j_{Q-1}}^{(Q)}\times\cdots\times\mathbf{K}_{j_{q+1},j_q}^{(q+1)}\right]\frac{\partial y_{j_q}^{(q)}}{\partial W^{(q)}}\right\rVert_F ∂ W ( q ) ∂ y t ( Q ) F = j Q − 1 = 1 ∑ j Q ⋯ j q = 1 ∑ j q + 1 [ K j Q , j Q − 1 ( Q ) × ⋯ × K j q + 1 , j q ( q + 1 ) ] ∂ W ( q ) ∂ y j q ( q ) F
∥ ∂ y t ( Q ) ∂ W ( q ) ∥ F ≤ ∑ j Q − 1 = 1 j Q ⋯ ∑ j q = 1 j q + 1 ∥ [ K j Q , j Q − 1 ( Q ) × ⋯ × K j q + 1 , j q ( q + 1 ) ] ∂ y j q ( q ) ∂ W ( q ) ∥ F ≤ ∑ j Q − 1 = 1 j Q ⋯ ∑ j q = 1 j q + 1 [ ∏ q ′ = q + 1 Q ∥ K j q ′ , j q ′ − 1 ( q ′ ) ∥ 2 ] ∥ ∂ y j q ( q ) ∂ W ( q ) ∥ F , (265) \begin{aligned}
\left\|\frac{\partial y_t^{(Q)}}{\partial W^{(q)}}\right\|_F
&\le\sum_{j_{Q-1}=1}^{j_Q}\cdots\sum_{j_q=1}^{j_{q+1}}
\left\|\left[\mathbf{K}^{(Q)}_{j_Q,j_{Q-1}}\times\cdots\times\mathbf{K}^{(q+1)}_{j_{q+1},j_q}\right]\frac{\partial y_{j_q}^{(q)}}{\partial W^{(q)}}\right\|_F\\
&\le\sum_{j_{Q-1}=1}^{j_Q}\cdots\sum_{j_q=1}^{j_{q+1}}
\left[\prod_{q'=q+1}^{Q}\left\|\mathbf{K}^{(q')}_{j_{q'},j_{q'-1}}\right\|_2\right]\left\|\frac{\partial y_{j_q}^{(q)}}{\partial W^{(q)}}\right\|_F, \tag*{(265)}
\end{aligned} ∂ W ( q ) ∂ y t ( Q ) F ≤ j Q − 1 = 1 ∑ j Q ⋯ j q = 1 ∑ j q + 1 [ K j Q , j Q − 1 ( Q ) × ⋯ × K j q + 1 , j q ( q + 1 ) ] ∂ W ( q ) ∂ y j q ( q ) F ≤ j Q − 1 = 1 ∑ j Q ⋯ j q = 1 ∑ j q + 1 q ′ = q + 1 ∏ Q K j q ′ , j q ′ − 1 ( q ′ ) 2 ∂ W ( q ) ∂ y j q ( q ) F , (265)
where j Q = t j_Q=t j Q = t and q ∈ { 1 , … , Q − 1 } q\in\{1,\ldots,Q-1\} q ∈ { 1 , … , Q − 1 } .
Next, we bound the terms of this expression separately. Thanks to Assumption C.1 and Definition C.2, we can apply the single-layer gradient proof argument from Appendix A to each layer q q q , bounding the term ∥ ∂ y j q ( q ) ∂ W ( q ) ∥ F \left\|\frac{\partial y_{j_q}^{(q)}}{\partial W^{(q)}}\right\|_F ∂ W ( q ) ∂ y j q ( q ) F .
First, for each q ∈ { 1 , … , Q } q\in\{1,\ldots,Q\} q ∈ { 1 , … , Q } , let:
K Δ , q : = ∥ W Δ ( q ) ∥ 2 L x , q + D log ( 2 ) , K B , q : = ∥ W B ( q ) ∥ 2 L x , q 2 , (266) K_{\Delta,q}:=\left\|W_{\Delta}^{(q)}\right\|_2L_{x,q}+\sqrt{D}\log(2),\qquad
K_{B,q}:=\left\|W_B^{(q)}\right\|_2L_{x,q}^{2}, \tag*{(266)} K Δ , q := W Δ ( q ) 2 L x , q + D log ( 2 ) , K B , q := W B ( q ) 2 L x , q 2 , (266)
K W , q : = N D K B , q K Δ , q ( K Δ , q + D ∥ A ( q ) ∥ 2 L x , q ) ( ρ q 1 − ρ q ) + L x , q 2 N K Δ , q + L x , q D K B , q . (267) K_{W,q}:=NDK_{B,q}K_{\Delta,q}\left(K_{\Delta,q}+\sqrt{D}\left\|A^{(q)}\right\|_2L_{x,q}\right)\left(\frac{\rho_q}{1-\rho_q}\right)+L_{x,q}^{2}\sqrt{N}K_{\Delta,q}+L_{x,q}\sqrt{D}K_{B,q}. \tag*{(267)} K W , q := N D K B , q K Δ , q ( K Δ , q + D A ( q ) 2 L x , q ) ( 1 − ρ q ρ q ) + L x , q 2 N K Δ , q + L x , q D K B , q . (267)
Given these definitions, we apply the single-layer argument from Appendix A for every layer q ∈ { 1 , … , Q } q\in\{1,\ldots,Q\} q ∈ { 1 , … , Q } . Since the input to any layer q q q depends only on the parameters of the preceding layers, it remains fixed when differentiating with respect to W ( q ) W^{(q)} W ( q ) . It therefore follows that:
∥ h j ( q ) ∥ F ≤ K B , q K Δ , q N D 1 − ρ q : = H q , (268) \left\|h_j^{(q)}\right\|_F\le\frac{K_{B,q}K_{\Delta,q}\sqrt{ND}}{1-\rho_q}:=H_q, \tag*{(268)} h j ( q ) F ≤ 1 − ρ q K B , q K Δ , q N D := H q , (268)
∥ ∂ h j ( q ) ∂ W ( q ) ∥ F ≤ K W , q 1 − ρ q : = J q , (269) \left\|\frac{\partial h_j^{(q)}}{\partial W^{(q)}}\right\|_F\le\frac{K_{W,q}}{1-\rho_q}:=J_q, \tag*{(269)} ∂ W ( q ) ∂ h j ( q ) F ≤ 1 − ρ q K W , q := J q , (269)
for every q ∈ { 1 , … , Q } q\in\{1,\ldots,Q\} q ∈ { 1 , … , Q } and j ∈ { 1 , … , S } j\in\{1,\ldots,S\} j ∈ { 1 , … , S } . Here, the state Jacobian is flattened as in the single-layer analysis.
Then, by definition of C j ( q ) C_j^{(q)} C j ( q ) , Assumption C.1 gives:
∥ C j ( q ) ∥ 2 = ∥ W C ( q ) x j ( q ) ∥ 2 ≤ ∥ W C ( q ) ∥ 2 L x , q . (270) \left\|C_j^{(q)}\right\|_2=\left\|W_C^{(q)}x_j^{(q)}\right\|_2\le\left\|W_C^{(q)}\right\|_2L_{x,q}. \tag*{(270)} C j ( q ) 2 = W C ( q ) x j ( q ) 2 ≤ W C ( q ) 2 L x , q . (270)
Finally, by applying the same product-rule argument to y j ( q ) = ( h j ( q ) ) T C j ( q ) y_j^{(q)}=\left(h_j^{(q)}\right)^{\mathsf T}C_j^{(q)} y j ( q ) = ( h j ( q ) ) T C j ( q ) as in Appendix A, and using (267) and (268), we arrive at:
∥ ∂ y j ( q ) ∂ W ( q ) ∥ F ≤ ∥ C j ( q ) ∥ 2 ∥ ∂ h j ( q ) ∂ W ( q ) ∥ F + ∥ h j ( q ) ∥ F ∥ x j ( q ) ∥ 2 ≤ ∥ W C ( q ) ∥ 2 L x , q J q + H q L x , q = L x , q ( H q + ∥ W C ( q ) ∥ 2 J q ) . (271) \begin{aligned}
\left\|\frac{\partial y_j^{(q)}}{\partial W^{(q)}}\right\|_F
&\le\left\|C_j^{(q)}\right\|_2\left\|\frac{\partial h_j^{(q)}}{\partial W^{(q)}}\right\|_F+\left\|h_j^{(q)}\right\|_F\left\|x_j^{(q)}\right\|_2\\
&\le\left\|W_C^{(q)}\right\|_2L_{x,q}J_q+H_qL_{x,q}=L_{x,q}\left(H_q+\left\|W_C^{(q)}\right\|_2J_q\right). \tag*{(271)}
\end{aligned} ∂ W ( q ) ∂ y j ( q ) F ≤ C j ( q ) 2 ∂ W ( q ) ∂ h j ( q ) F + h j ( q ) F x j ( q ) 2 ≤ W C ( q ) 2 L x , q J q + H q L x , q = L x , q ( H q + W C ( q ) 2 J q ) . (271)
This bound holds for every q ∈ { 1 , … , Q } q\in\{1,\ldots,Q\} q ∈ { 1 , … , Q } and j ∈ { 1 , … , S } j\in\{1,\ldots,S\} j ∈ { 1 , … , S } uniformly over all admissible input sequences.
Substituting (270) into (264), we get:
∥ ∂ y t ( Q ) ∂ W ( q ) ∥ F ≤ L x , q ( H q + ∥ W C ( q ) ∥ 2 J q ) ( ∑ j Q − 1 = 1 j Q ⋯ ∑ j q = 1 j q + 1 [ ∏ q ′ = q + 1 Q ∥ K j q ′ , j q ′ − 1 ( q ′ ) ∥ 2 ] ) . (272) \left\|\frac{\partial y_t^{(Q)}}{\partial W^{(q)}}\right\|_F
\le L_{x,q}\left(H_q+\left\|W_C^{(q)}\right\|_2J_q\right)
\left(\sum_{j_{Q-1}=1}^{j_Q}\cdots\sum_{j_q=1}^{j_{q+1}}
\left[\prod_{q'=q+1}^{Q}\left\|\mathbf{K}^{(q')}_{j_{q'},j_{q'-1}}\right\|_2\right]\right). \tag*{(272)} ∂ W ( q ) ∂ y t ( Q ) F ≤ L x , q ( H q + W C ( q ) 2 J q ) j Q − 1 = 1 ∑ j Q ⋯ j q = 1 ∑ j q + 1 q ′ = q + 1 ∏ Q K j q ′ , j q ′ − 1 ( q ′ ) 2 . (272)
Next, we derive a bound on the term:
∑ j Q − 1 = 1 j Q ⋯ ∑ j q = 1 j q + 1 [ ∏ q ′ = q + 1 Q ∥ K j q ′ , j q ′ − 1 ( q ′ ) ∥ 2 ] (273) \sum_{j_{Q-1}=1}^{j_Q}\cdots\sum_{j_q=1}^{j_{q+1}}
\left[\prod_{q'=q+1}^{Q}\left\|\mathbf{K}^{(q')}_{j_{q'},j_{q'-1}}\right\|_2\right] \tag*{(273)} j Q − 1 = 1 ∑ j Q ⋯ j q = 1 ∑ j q + 1 q ′ = q + 1 ∏ Q K j q ′ , j q ′ − 1 ( q ′ ) 2 (273)
To derive the bound, for an arbitrary layer q ′ ∈ { q + 1 , … , Q } q' \in\{q+1,\ldots,Q\} q ′ ∈ { q + 1 , … , Q } , we begin by expressing K t , j ( q ′ ) K_{t,j}^{(q')} K t , j ( q ′ ) in terms of the layer’s hidden-state sensitivity. Then, by definition:
( K t , j ( q ′ ) ) d , d ′ = ∂ y t , d ( q ′ ) ∂ x j , d ′ ( q ′ ) = ∑ n = 1 N C t , n ( q ′ ) ∂ h t , n , d ( q ′ ) ∂ x j , d ′ ( q ′ ) + 1 j = t ∑ n = 1 N h t , n , d ( q ′ ) ( W C ( q ′ ) ) n , d ′ (274) \left(K_{t,j}^{(q')}\right)_{d,d'}=\frac{\partial y_{t,d}^{(q')}}{\partial x_{j,d'}^{(q')}}=\sum_{n=1}^{N}C_{t,n}^{(q')}\frac{\partial h_{t,n,d}^{(q')}}{\partial x_{j,d'}^{(q')}}+\mathbb{1}_{j=t}\sum_{n=1}^{N}h_{t,n,d}^{(q')}\left(W_{C}^{(q')}\right)_{n,d'} \tag*{(274)} ( K t , j ( q ′ ) ) d , d ′ = ∂ x j , d ′ ( q ′ ) ∂ y t , d ( q ′ ) = n = 1 ∑ N C t , n ( q ′ ) ∂ x j , d ′ ( q ′ ) ∂ h t , n , d ( q ′ ) + 1 j = t n = 1 ∑ N h t , n , d ( q ′ ) ( W C ( q ′ ) ) n , d ′ (274)
for $1 \leq j \leq t \leq S$ and d , d ′ ∈ { 1 , … , D } d,d' \in\{1,\ldots,D\} d , d ′ ∈ { 1 , … , D } .
Next, by definition of the spectral norm, we know that:
∥ K t , j ( q ′ ) ∥ 2 = sup u ∈ R D ∥ u ∥ 2 = 1 ∥ K t , j ( q ′ ) u ∥ 2 . (275) \left\|K_{t,j}^{(q')}\right\|_{2}=\sup_{\substack{u\in\mathbb{R}^{D}\\ \lVert u\rVert_{2}=1}}\left\|K_{t,j}^{(q')}u\right\|_{2}. \tag*{(275)} K t , j ( q ′ ) 2 = u ∈ R D ∥ u ∥ 2 = 1 sup K t , j ( q ′ ) u 2 . (275)
As such, we first evaluate the value of K t , j ( q ′ ) u K_{t,j}^{(q')}u K t , j ( q ′ ) u for some arbitrary unit vector u ∈ R D u \in\mathbb{R}^{D} u ∈ R D . Multiplying (273) by u d ′ u_{d'} u d ′ , summing over d ′ d' d ′ , and collecting the output coordinates, we get:
K t , j ( q ′ ) u = ( ∑ d ′ = 1 D u d ′ ∂ h t ( q ′ ) ∂ x j , d ′ ( q ′ ) ) T C t ( q ′ ) + 1 j = t ( h t ( q ′ ) ) T W C ( q ′ ) u . (276) K_{t,j}^{(q')}u=\left(\sum_{d'=1}^{D}u_{d'}\frac{\partial h_{t}^{(q')}}{\partial x_{j,d'}^{(q')}}\right)^{\mathsf{T}}C_{t}^{(q')}+\mathbb{1}_{j=t}\left(h_{t}^{(q')}\right)^{\mathsf{T}}W_{C}^{(q')}u. \tag*{(276)} K t , j ( q ′ ) u = ( d ′ = 1 ∑ D u d ′ ∂ x j , d ′ ( q ′ ) ∂ h t ( q ′ ) ) T C t ( q ′ ) + 1 j = t ( h t ( q ′ ) ) T W C ( q ′ ) u . (276)
Note that, since u u u is a unit vector, the sum in the first term is, by definition, the directional derivative of the hidden state with respect to x j ( q ′ ) x_{j}^{(q')} x j ( q ′ ) in direction u u u . We denote it as:
D x j ( q ′ ) h t ( q ′ ) [ u ] : = ∑ d ′ = 1 D u d ′ ∂ h t ( q ′ ) ∂ x j , d ′ ( q ′ ) ∈ R N × D . (277) D_{x_{j}^{(q')}}h_{t}^{(q')}[u]:=\sum_{d'=1}^{D}u_{d'}\frac{\partial h_{t}^{(q')}}{\partial x_{j,d'}^{(q')}}\in\mathbb{R}^{N\times D}. \tag*{(277)} D x j ( q ′ ) h t ( q ′ ) [ u ] := d ′ = 1 ∑ D u d ′ ∂ x j , d ′ ( q ′ ) ∂ h t ( q ′ ) ∈ R N × D . (277)
As such, it follows that:
K t , j ( q ′ ) u = ( D x j ( q ′ ) h t ( q ′ ) [ u ] ) T C t ( q ′ ) + 1 j = t ( h t ( q ′ ) ) T W C ( q ′ ) u (278) K_{t,j}^{(q')}u=\left(D_{x_{j}^{(q')}}h_{t}^{(q')}[u]\right)^{\mathsf{T}}C_{t}^{(q')}+\mathbb{1}_{j=t}\left(h_{t}^{(q')}\right)^{\mathsf{T}}W_{C}^{(q')}u \tag*{(278)} K t , j ( q ′ ) u = ( D x j ( q ′ ) h t ( q ′ ) [ u ] ) T C t ( q ′ ) + 1 j = t ( h t ( q ′ ) ) T W C ( q ′ ) u (278)
We then bound both terms of the sum in (277) separately.
We evaluate the term ( D x j ( q ′ ) h t ( q ′ ) [ u ] ) T C t ( q ′ ) \left(D_{x_{j}^{(q')}}h_{t}^{(q')}[u]\right)^{\mathsf{T}}C_{t}^{(q')} ( D x j ( q ′ ) h t ( q ′ ) [ u ] ) T C t ( q ′ ) first. Recall that by (227):
h t ( q ′ ) = A ‾ t ( q ′ ) ⊙ h t − 1 ( q ′ ) + B ‾ t ( q ′ ) diag ( x t ( q ′ ) ) . h_{t}^{(q')}=\overline{A}_{t}^{(q')}\odot h_{t-1}^{(q')}+\overline{B}_{t}^{(q')}\operatorname{diag}\left(x_{t}^{(q')}\right). h t ( q ′ ) = A t ( q ′ ) ⊙ h t − 1 ( q ′ ) + B t ( q ′ ) diag ( x t ( q ′ ) ) .
Since, for fixed layer q ′ q' q ′ weights, A ‾ t ( q ′ ) \overline{A}_{t}^{(q')} A t ( q ′ ) and B ‾ t ( q ′ ) \overline{B}_{t}^{(q')} B t ( q ′ ) depend only on the input x t ( q ′ ) x_{t}^{(q')} x t ( q ′ ) , their derivatives with respect to x j ( q ′ ) x_{j}^{(q')} x j ( q ′ ) vanish when t ≠ j t\ne j t = j . Furthermore, D x j ( q ′ ) x t ( q ′ ) [ u ] = 1 j = t u D_{x_{j}^{(q')}}x_{t}^{(q')}[u]=\mathbb{1}_{j=t}u D x j ( q ′ ) x t ( q ′ ) [ u ] = 1 j = t u . As such, applying these results and the product rule, we get:
D x j ( q ′ ) h t ( q ′ ) [ u ] = A ‾ t ( q ′ ) ⊙ D x j ( q ′ ) h t − 1 ( q ′ ) [ u ] + 1 j = t [ ( D x t ( q ′ ) A ‾ t ( q ′ ) [ u ] ) ⊙ h t − 1 ( q ′ ) + ( D x t ( q ′ ) B ‾ t ( q ′ ) [ u ] ) diag ( x t ( q ′ ) ) + B ‾ t ( q ′ ) diag ( u ) ] . (279) D_{x_{j}^{(q')}}h_{t}^{(q')}[u]=\overline{A}_{t}^{(q')}\odot D_{x_{j}^{(q')}}h_{t-1}^{(q')}[u]+\mathbb{1}_{j=t}\left[\left(D_{x_{t}^{(q')}}\overline{A}_{t}^{(q')}[u]\right)\odot h_{t-1}^{(q')}+\left(D_{x_{t}^{(q')}}\overline{B}_{t}^{(q')}[u]\right)\operatorname{diag}\left(x_{t}^{(q')}\right)+\overline{B}_{t}^{(q')}\operatorname{diag}(u)\right]. \tag*{(279)} D x j ( q ′ ) h t ( q ′ ) [ u ] = A t ( q ′ ) ⊙ D x j ( q ′ ) h t − 1 ( q ′ ) [ u ] + 1 j = t [ ( D x t ( q ′ ) A t ( q ′ ) [ u ] ) ⊙ h t − 1 ( q ′ ) + ( D x t ( q ′ ) B t ( q ′ ) [ u ] ) diag ( x t ( q ′ ) ) + B t ( q ′ ) diag ( u ) ] . (279)
where we also used the fact that D x j ( q ′ ) diag ( x t ( q ′ ) ) [ u ] = 1 j = t diag ( u ) D_{x_{j}^{(q')}}\operatorname{diag}\left(x_{t}^{(q')}\right)[u]=\mathbb{1}_{j=t}\operatorname{diag}(u) D x j ( q ′ ) diag ( x t ( q ′ ) ) [ u ] = 1 j = t diag ( u ) .
Next, we consider three cases. When 0 ≤ t < j 0\leq t<j 0 ≤ t < j , because the hidden state is initialized to 0 and its evolution is causal, then:
D x j ( q ′ ) h t ( q ′ ) [ u ] = 0 , ∀ t ∈ { 0 , … , j − 1 } . (280) D_{x_{j}^{(q')}}h_{t}^{(q')}[u]=0,\qquad\forall t\in\{0,\ldots,j-1\}. \tag*{(280)} D x j ( q ′ ) h t ( q ′ ) [ u ] = 0 , ∀ t ∈ { 0 , … , j − 1 } . (280)
When, t = j t=j t = j , D x j ( q ′ ) h t − 1 ( q ′ ) [ u ] = D x t ( q ′ ) h t − 1 ( q ′ ) [ u ] = 0 D_{x_{j}^{(q')}}h_{t-1}^{(q')}[u]=D_{x_{t}^{(q')}}h_{t-1}^{(q')}[u]=0 D x j ( q ′ ) h t − 1 ( q ′ ) [ u ] = D x t ( q ′ ) h t − 1 ( q ′ ) [ u ] = 0 , so:
D x t ( q ′ ) h t ( q ′ ) [ u ] = ( D x t ( q ′ ) A ‾ t ( q ′ ) [ u ] ) ⊙ h t − 1 ( q ′ ) + ( D x t ( q ′ ) B ‾ t ( q ′ ) [ u ] ) diag ( x t ( q ′ ) ) + B ‾ t ( q ′ ) diag ( u ) . (281) D_{x_{t}^{(q')}}h_{t}^{(q')}[u]=\left(D_{x_{t}^{(q')}}\overline{A}_{t}^{(q')}[u]\right)\odot h_{t-1}^{(q')}+\left(D_{x_{t}^{(q')}}\overline{B}_{t}^{(q')}[u]\right)\operatorname{diag}\left(x_{t}^{(q')}\right)+\overline{B}_{t}^{(q')}\operatorname{diag}(u). \tag*{(281)} D x t ( q ′ ) h t ( q ′ ) [ u ] = ( D x t ( q ′ ) A t ( q ′ ) [ u ] ) ⊙ h t − 1 ( q ′ ) + ( D x t ( q ′ ) B t ( q ′ ) [ u ] ) diag ( x t ( q ′ ) ) + B t ( q ′ ) diag ( u ) . (281)
Finally, for t > j t > j t > j , the recurrence becomes:
D x j ( q ′ ) h t ( q ′ ) [ u ] = A ˉ t ( q ′ ) ⊙ D x j ( q ′ ) h t − 1 ( q ′ ) [ u ] . (282) D_{x_j^{(q')}}h_t^{(q')}[u] = \bar{A}_t^{(q')} \odot D_{x_j^{(q')}}h_{t-1}^{(q')}[u]. \tag*{(282)} D x j ( q ′ ) h t ( q ′ ) [ u ] = A ˉ t ( q ′ ) ⊙ D x j ( q ′ ) h t − 1 ( q ′ ) [ u ] . (282)
Next, by equation (236), which follows from definition C.2, we obtain:
∥ D x j ( q ′ ) h t ( q ′ ) [ u ] ∥ F ≤ ρ q ′ ∥ D x j ( q ′ ) h t − 1 ( q ′ ) [ u ] ∥ F ≤ ρ q ′ t − j ∥ D x j ( q ′ ) h j ( q ′ ) [ u ] ∥ F , ∀ t > j . (283) \left\|D_{x_j^{(q')}}h_t^{(q')}[u]\right\|_F \leq\rho_{q'}\left\|D_{x_j^{(q')}}h_{t-1}^{(q')}[u]\right\|_F \leq\rho_{q'}^{t-j}\left\|D_{x_j^{(q')}}h_j^{(q')}[u]\right\|_F,\qquad\forall t>j. \tag*{(283)} D x j ( q ′ ) h t ( q ′ ) [ u ] F ≤ ρ q ′ D x j ( q ′ ) h t − 1 ( q ′ ) [ u ] F ≤ ρ q ′ t − j D x j ( q ′ ) h j ( q ′ ) [ u ] F , ∀ t > j . (283)
As a result, we just need to bound ∥ D x j ( q ′ ) h t ( q ′ ) [ u ] ∥ F \left\|D_{x_j^{(q')}}h_t^{(q')}[u]\right\|_F D x j ( q ′ ) h t ( q ′ ) [ u ] F for the case when t = j t=j t = j , and apply the recursive relationship. By the triangle inequality, when t = j t=j t = j , it follows that:
∥ D x j ( q ′ ) h j ( q ′ ) [ u ] ∥ F ≤ ∥ ( D x j ( q ′ ) A ˉ j ( q ′ ) [ u ] ) ⊙ h j − 1 ( q ′ ) ∥ F + ∥ ( D x j ( q ′ ) B ˉ j ( q ′ ) [ u ] ) diag ( x j ( q ′ ) ) ∥ F + ∥ B ˉ j ( q ′ ) diag ( u ) ∥ F . (284) \begin{aligned}
\left\|D_{x_j^{(q')}}h_j^{(q')}[u]\right\|_F
&\leq\left\|\left(D_{x_j^{(q')}}\bar{A}_j^{(q')}[u]\right)\odot h_{j-1}^{(q')}\right\|_F \\
&\quad+ \left\|\left(D_{x_j^{(q')}}\bar{B}_j^{(q')}[u]\right)\operatorname{diag}\left(x_j^{(q')}\right)\right\|_F
+\left\|\bar{B}_j^{(q')}\operatorname{diag}(u)\right\|_F. \tag*{(284)}
\end{aligned} D x j ( q ′ ) h j ( q ′ ) [ u ] F ≤ ( D x j ( q ′ ) A ˉ j ( q ′ ) [ u ] ) ⊙ h j − 1 ( q ′ ) F + ( D x j ( q ′ ) B ˉ j ( q ′ ) [ u ] ) diag ( x j ( q ′ ) ) F + B ˉ j ( q ′ ) diag ( u ) F . (284)
Then, evaluating it term by term
D x j ( q ′ ) A ˉ j ( q ′ ) [ u ] = D x j ( q ′ ) ( exp ( A ( q ′ ) ( Δ j ( q ′ ) ) T ) ) [ u ] = exp ( A ( q ′ ) ( Δ j ( q ′ ) ) T ) ⊙ [ A ( q ′ ) ( D x j ( q ′ ) Δ j ( q ′ ) [ u ] ) T ] = A ˉ j ( q ′ ) ⊙ [ A ( q ′ ) ( D x j ( q ′ ) Δ j ( q ′ ) [ u ] ) T ] . (285) \begin{aligned}
D_{x_j^{(q')}}\bar{A}_j^{(q')}[u]
&=D_{x_j^{(q')}}\left(\exp\left(A^{(q')}\left(\Delta_j^{(q')}\right)^{\mathsf{T}}\right)\right)[u]\\
&=\exp\left(A^{(q')}\left(\Delta_j^{(q')}\right)^{\mathsf{T}}\right)\odot\left[A^{(q')}\left(D_{x_j^{(q')}}\Delta_j^{(q')}[u]\right)^{\mathsf{T}}\right]\\
&=\bar{A}_j^{(q')}\odot\left[A^{(q')}\left(D_{x_j^{(q')}}\Delta_j^{(q')}[u]\right)^{\mathsf{T}}\right]. \tag*{(285)}
\end{aligned} D x j ( q ′ ) A ˉ j ( q ′ ) [ u ] = D x j ( q ′ ) ( exp ( A ( q ′ ) ( Δ j ( q ′ ) ) T ) ) [ u ] = exp ( A ( q ′ ) ( Δ j ( q ′ ) ) T ) ⊙ [ A ( q ′ ) ( D x j ( q ′ ) Δ j ( q ′ ) [ u ] ) T ] = A ˉ j ( q ′ ) ⊙ [ A ( q ′ ) ( D x j ( q ′ ) Δ j ( q ′ ) [ u ] ) T ] . (285)
Using the definition:
D x j ( q ′ ) Δ j ( q ′ ) [ u ] = D x j ( q ′ ) ( Softplus ( W Δ ( q ′ ) x j ( q ′ ) ) ) [ u ] = Softplus ′ ( W Δ ( q ′ ) x j ( q ′ ) ) ⊙ ( W Δ ( q ′ ) u ) . (286) D_{x_j^{(q')}}\Delta_j^{(q')}[u]
=D_{x_j^{(q')}}\left(\operatorname{Softplus}\left(W_{\Delta}^{(q')}x_j^{(q')}\right)\right)[u]
=\operatorname{Softplus}'\left(W_{\Delta}^{(q')}x_j^{(q')}\right)\odot\left(W_{\Delta}^{(q')}u\right). \tag*{(286)} D x j ( q ′ ) Δ j ( q ′ ) [ u ] = D x j ( q ′ ) ( Softplus ( W Δ ( q ′ ) x j ( q ′ ) ) ) [ u ] = Softplus ′ ( W Δ ( q ′ ) x j ( q ′ ) ) ⊙ ( W Δ ( q ′ ) u ) . (286)
Next, since Softplus ′ ( z ) = 1 1 + e − z ∈ ( 0 , 1 ) \operatorname{Softplus}'(z)=\frac{1}{1+e^{-z}}\in(0,1) Softplus ′ ( z ) = 1 + e − z 1 ∈ ( 0 , 1 ) , we get:
∥ D x j ( q ′ ) Δ j ( q ′ ) [ u ] ∥ 2 ≤ ∥ W Δ ( q ′ ) ∥ 2 ∥ u ∥ 2 = ∥ W Δ ( q ′ ) ∥ 2 . (287) \left\|D_{x_j^{(q')}}\Delta_j^{(q')}[u]\right\|_2
\leq\left\|W_{\Delta}^{(q')}\right\|_2\left\|u\right\|_2
=\left\|W_{\Delta}^{(q')}\right\|_2. \tag*{(287)} D x j ( q ′ ) Δ j ( q ′ ) [ u ] 2 ≤ W Δ ( q ′ ) 2 ∥ u ∥ 2 = W Δ ( q ′ ) 2 . (287)
Then, the fact that ∥ a b T ∥ F = ∥ a ∥ 2 ∥ b ∥ 2 \left\|ab^{\mathsf{T}}\right\|_F=\left\|a\right\|_2\left\|b\right\|_2 a b T F = ∥ a ∥ 2 ∥ b ∥ 2 (which follows from the definition of the Frobenius norm), the following holds:
∥ D x j ( q ′ ) A ˉ j ( q ′ ) [ u ] ∥ F ≤ ∥ A ˉ j ( q ′ ) ∥ max ∥ A ( q ′ ) ( D x j ( q ′ ) Δ j ( q ′ ) [ u ] ) T ∥ F = ∥ A ˉ j ( q ′ ) ∥ max ∥ A ( q ′ ) ∥ 2 ∥ D x j ( q ′ ) Δ j ( q ′ ) [ u ] ∥ 2 ≤ ρ q ′ ∥ A ( q ′ ) ∥ 2 ∥ W Δ ( q ′ ) ∥ 2 . (288) \begin{aligned}
\left\|D_{x_j^{(q')}}\bar{A}_j^{(q')}[u]\right\|_F
&\leq\left\|\bar{A}_j^{(q')}\right\|_{\max}\left\|A^{(q')}\left(D_{x_j^{(q')}}\Delta_j^{(q')}[u]\right)^{\mathsf{T}}\right\|_F\\
&=\left\|\bar{A}_j^{(q')}\right\|_{\max}\left\|A^{(q')}\right\|_2\left\|D_{x_j^{(q')}}\Delta_j^{(q')}[u]\right\|_2
\leq\rho_{q'}\left\|A^{(q')}\right\|_2\left\|W_{\Delta}^{(q')}\right\|_2. \tag*{(288)}
\end{aligned} D x j ( q ′ ) A ˉ j ( q ′ ) [ u ] F ≤ A ˉ j ( q ′ ) m a x A ( q ′ ) ( D x j ( q ′ ) Δ j ( q ′ ) [ u ] ) T F = A ˉ j ( q ′ ) m a x A ( q ′ ) 2 D x j ( q ′ ) Δ j ( q ′ ) [ u ] 2 ≤ ρ q ′ A ( q ′ ) 2 W Δ ( q ′ ) 2 . (288)
Finally, combining equations (287) and (267) yields:
∥ ( D x j ( q ′ ) A ˉ j ( q ′ ) [ u ] ) ⊙ h j − 1 ( q ′ ) ∥ F ≤ ∥ D x j ( q ′ ) A ˉ j ( q ′ ) [ u ] ∥ F ∥ h j − 1 ( q ′ ) ∥ F ≤ ρ q ′ ∥ A ( q ′ ) ∥ 2 ∥ W Δ ( q ′ ) ∥ 2 H q ′ . (289) \left\|\left(D_{x_j^{(q')}}\bar{A}_j^{(q')}[u]\right)\odot h_{j-1}^{(q')}\right\|_F
\leq\left\|D_{x_j^{(q')}}\bar{A}_j^{(q')}[u]\right\|_F\left\|h_{j-1}^{(q')}\right\|_F
\leq\rho_{q'}\left\|A^{(q')}\right\|_2\left\|W_{\Delta}^{(q')}\right\|_2 H_{q'}. \tag*{(289)} ( D x j ( q ′ ) A ˉ j ( q ′ ) [ u ] ) ⊙ h j − 1 ( q ′ ) F ≤ D x j ( q ′ ) A ˉ j ( q ′ ) [ u ] F h j − 1 ( q ′ ) F ≤ ρ q ′ A ( q ′ ) 2 W Δ ( q ′ ) 2 H q ′ . (289)
For the second term, from the definition of B ˉ j ( q ′ ) \bar{B}_j^{(q')} B ˉ j ( q ′ ) , and using the product rule, we have:
D x j ( q ′ ) B ˉ j ( q ′ ) [ u ] = ( W B ( q ′ ) u ) ( Δ j ( q ′ ) ) T + ( W B ( q ′ ) x j ( q ′ ) ) ( D x j ( q ′ ) Δ j ( q ′ ) [ u ] ) T (290) D_{x_j^{(q')}}\bar{B}_j^{(q')}[u]
=\left(W_B^{(q')}u\right)\left(\Delta_j^{(q')}\right)^{\mathsf{T}}
+\left(W_B^{(q')}x_j^{(q')}\right)\left(D_{x_j^{(q')}}\Delta_j^{(q')}[u]\right)^{\mathsf{T}} \tag*{(290)} D x j ( q ′ ) B ˉ j ( q ′ ) [ u ] = ( W B ( q ′ ) u ) ( Δ j ( q ′ ) ) T + ( W B ( q ′ ) x j ( q ′ ) ) ( D x j ( q ′ ) Δ j ( q ′ ) [ u ] ) T (290)
Then, combining the result of (286) with
∥ Δ j ( q ′ ) ∥ 2 ≤ ∥ W Δ ( q ′ ) x j ( q ′ ) ∥ 2 + D log ( 2 ) ≤ K Δ , q ′ , (291) \left\|\Delta_j^{(q')}\right\|_2 \le\left\|W_\Delta^{(q')}x_j^{(q')}\right\|_2+\sqrt{D}\log(2)\le K_{\Delta,q'}, \tag*{(291)} Δ j ( q ′ ) 2 ≤ W Δ ( q ′ ) x j ( q ′ ) 2 + D log ( 2 ) ≤ K Δ , q ′ , (291)
we get:
∥ D x j ( q ′ ) B ˉ j ( q ′ ) [ u ] ∥ F ≤ ∥ W B ( q ′ ) u ∥ 2 ∥ Δ j ( q ′ ) ∥ 2 + ∥ W B ( q ′ ) x j ( q ′ ) ∥ 2 ∥ D x j ( q ′ ) Δ j ( q ′ ) [ u ] ∥ 2 ≤ ∥ W B ( q ′ ) ∥ 2 K Δ , q ′ + ∥ W B ( q ′ ) ∥ 2 L x , q ′ ∥ W Δ ( q ′ ) ∥ 2 . (292) \begin{aligned}
\left\|D_{x_j^{(q')}}\bar{B}_j^{(q')}[u]\right\|_F
&\le\left\|W_B^{(q')}u\right\|_2\left\|\Delta_j^{(q')}\right\|_2
+\left\|W_B^{(q')}x_j^{(q')}\right\|_2\left\|D_{x_j^{(q')}}\Delta_j^{(q')}[u]\right\|_2 \\
&\le\left\|W_B^{(q')}\right\|_2 K_{\Delta,q'}
+\left\|W_B^{(q')}\right\|_2L_{x,q'}\left\|W_\Delta^{(q')}\right\|_2. \tag*{(292)}
\end{aligned} D x j ( q ′ ) B ˉ j ( q ′ ) [ u ] F ≤ W B ( q ′ ) u 2 Δ j ( q ′ ) 2 + W B ( q ′ ) x j ( q ′ ) 2 D x j ( q ′ ) Δ j ( q ′ ) [ u ] 2 ≤ W B ( q ′ ) 2 K Δ , q ′ + W B ( q ′ ) 2 L x , q ′ W Δ ( q ′ ) 2 . (292)
Finally, since ∥ diag ( v ) ∥ 2 = max d ∣ v d ∣ = ∥ v ∥ ∞ ≤ ∥ v ∥ 2 \|\operatorname{diag}(v)\|_2=\max_d|v_d|=\|v\|_\infty\le\|v\|_2 ∥ diag ( v ) ∥ 2 = max d ∣ v d ∣ = ∥ v ∥ ∞ ≤ ∥ v ∥ 2 (and therefore ∥ diag ( x j ( q ′ ) ) ∥ 2 ≤ L x , q ′ \|\operatorname{diag}(x_j^{(q')})\|_2\le L_{x,q'} ∥ diag ( x j ( q ′ ) ) ∥ 2 ≤ L x , q ′ ), the second term is bounded as:
∥ ( D x j ( q ′ ) B ˉ j ( q ′ ) [ u ] ) diag ( x j ( q ′ ) ) ∥ F ≤ ∥ D x j ( q ′ ) B ˉ j ( q ′ ) [ u ] ∥ F ∥ diag ( x j ( q ′ ) ) ∥ 2 ≤ ∥ W B ( q ′ ) ∥ 2 L x , q ′ ( K Δ , q ′ + L x , q ′ ∥ W Δ ( q ′ ) ∥ 2 ) . (293) \begin{aligned}
\left\|\left(D_{x_j^{(q')}}\bar{B}_j^{(q')}[u]\right)\operatorname{diag}\left(x_j^{(q')}\right)\right\|_F
&\le\left\|D_{x_j^{(q')}}\bar{B}_j^{(q')}[u]\right\|_F\left\|\operatorname{diag}\left(x_j^{(q')}\right)\right\|_2 \\
&\le\left\|W_B^{(q')}\right\|_2L_{x,q'}\left(K_{\Delta,q'}+L_{x,q'}\left\|W_\Delta^{(q')}\right\|_2\right). \tag*{(293)}
\end{aligned} ( D x j ( q ′ ) B ˉ j ( q ′ ) [ u ] ) diag ( x j ( q ′ ) ) F ≤ D x j ( q ′ ) B ˉ j ( q ′ ) [ u ] F diag ( x j ( q ′ ) ) 2 ≤ W B ( q ′ ) 2 L x , q ′ ( K Δ , q ′ + L x , q ′ W Δ ( q ′ ) 2 ) . (293)
For the remaining term, the bound is as follows:
∥ B ˉ j ( q ′ ) diag ( u ) ∥ F ≤ ∥ B ˉ j ( q ′ ) ∥ F ∥ diag ( u ) ∥ 2 ≤ ∥ W B ( q ′ ) x j ( q ′ ) ∥ 2 ∥ Δ j ( q ′ ) ∥ 2 ∥ u ∥ 2 ≤ ∥ W B ( q ′ ) ∥ 2 L x , q ′ K Δ , q ′ . (294) \begin{aligned}
\left\|\bar{B}_j^{(q')}\operatorname{diag}(u)\right\|_F
&\le\left\|\bar{B}_j^{(q')}\right\|_F\left\|\operatorname{diag}(u)\right\|_2 \\
&\le\left\|W_B^{(q')}x_j^{(q')}\right\|_2\left\|\Delta_j^{(q')}\right\|_2\|u\|_2 \\
&\le\left\|W_B^{(q')}\right\|_2L_{x,q'}K_{\Delta,q'}. \tag*{(294)}
\end{aligned} B ˉ j ( q ′ ) diag ( u ) F ≤ B ˉ j ( q ′ ) F ∥ diag ( u ) ∥ 2 ≤ W B ( q ′ ) x j ( q ′ ) 2 Δ j ( q ′ ) 2 ∥ u ∥ 2 ≤ W B ( q ′ ) 2 L x , q ′ K Δ , q ′ . (294)
Combining the three bounds, we get:
∥ D x j ( q ′ ) h j ( q ′ ) [ u ] ∥ F ≤ ρ q ′ ∥ A ( q ′ ) ∥ 2 ∥ W Δ ( q ′ ) ∥ 2 H q ′ + ∥ W B ( q ′ ) ∥ 2 L x , q ′ ( 2 K Δ , q ′ + L x , q ′ ∥ W Δ ( q ′ ) ∥ 2 ) . (295) \left\|D_{x_j^{(q')}}h_j^{(q')}[u]\right\|_F
\le\rho_{q'}\left\|A^{(q')}\right\|_2\left\|W_\Delta^{(q')}\right\|_2H_{q'}
+\left\|W_B^{(q')}\right\|_2L_{x,q'}\left(2K_{\Delta,q'}+L_{x,q'}\left\|W_\Delta^{(q')}\right\|_2\right). \tag*{(295)} D x j ( q ′ ) h j ( q ′ ) [ u ] F ≤ ρ q ′ A ( q ′ ) 2 W Δ ( q ′ ) 2 H q ′ + W B ( q ′ ) 2 L x , q ′ ( 2 K Δ , q ′ + L x , q ′ W Δ ( q ′ ) 2 ) . (295)
For ease of notation, for each layer q ′ q' q ′ , we define:
Λ x , q ′ : = ρ q ′ ∥ A ( q ′ ) ∥ 2 ∥ W Δ ( q ′ ) ∥ 2 H q ′ + ∥ W B ( q ′ ) ∥ 2 L x , q ′ ( 2 K Δ , q ′ + L x , q ′ ∥ W Δ ( q ′ ) ∥ 2 ) . (296) \Lambda_{x,q'}:=\rho_{q'}\left\|A^{(q')}\right\|_2\left\|W_\Delta^{(q')}\right\|_2H_{q'}
+\left\|W_B^{(q')}\right\|_2L_{x,q'}\left(2K_{\Delta,q'}+L_{x,q'}\left\|W_\Delta^{(q')}\right\|_2\right). \tag*{(296)} Λ x , q ′ := ρ q ′ A ( q ′ ) 2 W Δ ( q ′ ) 2 H q ′ + W B ( q ′ ) 2 L x , q ′ ( 2 K Δ , q ′ + L x , q ′ W Δ ( q ′ ) 2 ) . (296)
Using this notation, we have the following bound:
∥ D x j ( q ′ ) h j ( q ′ ) [ u ] ∥ F ≤ Λ x , q ′ , ∥ u ∥ 2 = 1. (297) \left\|D_{x_j^{(q')}}h_j^{(q')}[u]\right\|_F\le\Lambda_{x,q'},\qquad\|u\|_2=1. \tag*{(297)} D x j ( q ′ ) h j ( q ′ ) [ u ] F ≤ Λ x , q ′ , ∥ u ∥ 2 = 1. (297)
Substituting this bound into the recurrence established in (282), we get:
∥ D x j ( q ′ ) h t ( q ′ ) [ u ] ∥ F ≤ ρ q ′ t − j ∥ D x j ( q ′ ) h j ( q ′ ) [ u ] ∥ F ≤ Λ x , q ′ ρ q ′ t − j , 1 ≤ j ≤ t ≤ S . (298) \left\|D_{x_j^{(q')}}h_t^{(q')}[u]\right\|_F
\le\rho_{q'}^{t-j}\left\|D_{x_j^{(q')}}h_j^{(q')}[u]\right\|_F
\le\Lambda_{x,q'}\rho_{q'}^{t-j},\qquad1\le j\le t\le S. \tag*{(298)} D x j ( q ′ ) h t ( q ′ ) [ u ] F ≤ ρ q ′ t − j D x j ( q ′ ) h j ( q ′ ) [ u ] F ≤ Λ x , q ′ ρ q ′ t − j , 1 ≤ j ≤ t ≤ S . (298)
given ∥ u ∥ 2 = 1 \|u\|_2=1 ∥ u ∥ 2 = 1 , and
∥ D x j ( q ′ ) h t ( q ′ ) [ u ] ∥ F = 0 \left\|D_{x_j^{(q')}}h_t^{(q')}[u]\right\|_F=0 D x j ( q ′ ) h t ( q ′ ) [ u ] F = 0
for t < j t<j t < j .
Returning to the expression for K t , j ( q ′ ) u K_{t,j}^{(q')}u K t , j ( q ′ ) u in (277), we can bound the first term of the sum using the bound derived in (297) (and the fact that ∥ Z T ∥ 2 ≤ ∥ Z ∥ F ∥ c ∥ 2 \|Z^{\mathsf T}\|_2\le\|Z\|_F\|c\|_2 ∥ Z T ∥ 2 ≤ ∥ Z ∥ F ∥ c ∥ 2 ) as follows:
∥ ( D x j ( q ′ ) h t ( q ′ ) [ u ] ) C t ( q ′ ) ∥ 2 ≤ ∥ D x j ( q ′ ) h t ( q ′ ) [ u ] ∥ F ∥ C t ( q ′ ) ∥ 2 ≤ ∥ W C ( q ′ ) ∥ 2 L x , q ′ Λ x , q ′ ρ q ′ t − j . (299) \left\|\left(D_{x_j^{(q')}}h_t^{(q')}[u]\right)C_t^{(q')}\right\|_2
\le\left\|D_{x_j^{(q')}}h_t^{(q')}[u]\right\|_F\left\|C_t^{(q')}\right\|_2
\le\left\|W_C^{(q')}\right\|_2L_{x,q'}\Lambda_{x,q'}\rho_{q'}^{t-j}. \tag*{(299)} ( D x j ( q ′ ) h t ( q ′ ) [ u ] ) C t ( q ′ ) 2 ≤ D x j ( q ′ ) h t ( q ′ ) [ u ] F C t ( q ′ ) 2 ≤ W C ( q ′ ) 2 L x , q ′ Λ x , q ′ ρ q ′ t − j . (299)
For the second term, we can bound this as:
∥ 1 j = t ( h t ( q ′ ) ) T W C ( q ′ ) u ∥ 2 ≤ 1 j = t ∥ h t ( q ′ ) ∥ F ∥ W C ( q ′ ) ∥ 2 ∥ u ∥ 2 = 1 j = t ∥ h t ( q ′ ) ∥ F ∥ W C ( q ′ ) ∥ 2 . (300) \left\|\mathbb{1}_{j=t}\left(h_t^{(q')}\right)^{\mathsf T}W_C^{(q')}u\right\|_2
\le\mathbb{1}_{j=t}\left\|h_t^{(q')}\right\|_F\left\|W_C^{(q')}\right\|_2\|u\|_2
=\mathbb{1}_{j=t}\left\|h_t^{(q')}\right\|_F\left\|W_C^{(q')}\right\|_2. \tag*{(300)} 1 j = t ( h t ( q ′ ) ) T W C ( q ′ ) u 2 ≤ 1 j = t h t ( q ′ ) F W C ( q ′ ) 2 ∥ u ∥ 2 = 1 j = t h t ( q ′ ) F W C ( q ′ ) 2 . (300)
Using the triangle inequality, and combining the derived bounds on the terms of the sum in (278) , we get:
∥ K t , j ( q ′ ) u ∥ 2 ≤ ∥ W C ( q ′ ) ∥ 2 ∥ L x , q ′ Λ x , q ′ ρ q ′ t − j + 1 j = t ∥ ∥ W C ( q ′ ) ∥ 2 H q ′ . (301) \left\lVert\mathbf{K}^{(q')}_{t,j}u \right\rVert_2 \le\left\lVert W_C^{(q')} \right\rVert_2 \left\lVert L_{x,q'}\Lambda_{x,q'}\rho_{q'}^{t-j}+\mathbb{1}_{j=t} \right\rVert\left\lVert W_C^{(q')} \right\rVert_2 H_{q'}. \tag*{(301)} K t , j ( q ′ ) u 2 ≤ W C ( q ′ ) 2 L x , q ′ Λ x , q ′ ρ q ′ t − j + 1 j = t W C ( q ′ ) 2 H q ′ . (301)
Since the right hand side of (301) is independent of u u u , and therefore holds uniformly for all unit vectors u u u , taking the supremum over all u u u , we get:
∥ K t , j ( q ′ ) ∥ 2 ≤ ∥ W C ( q ′ ) ∥ 2 ∥ L x , q ′ Λ x , q ′ ρ q ′ t − j + 1 j = t ∥ ∥ W C ( q ′ ) ∥ 2 H q ′ , 1 ≤ j ≤ t ≤ S . (302) \left\lVert\mathbf{K}^{(q')}_{t,j} \right\rVert_2 \le\left\lVert W_C^{(q')} \right\rVert_2 \left\lVert L_{x,q'}\Lambda_{x,q'}\rho_{q'}^{t-j}+\mathbb{1}_{j=t} \right\rVert\left\lVert W_C^{(q')} \right\rVert_2 H_{q'}, \qquad1 \le j \le t \le S. \tag*{(302)} K t , j ( q ′ ) 2 ≤ W C ( q ′ ) 2 L x , q ′ Λ x , q ′ ρ q ′ t − j + 1 j = t W C ( q ′ ) 2 H q ′ , 1 ≤ j ≤ t ≤ S . (302)
Next, for every fixed position t t t , summing ∥ K t , j ( q ′ ) ∥ 2 \left\lVert\mathbf{K}^{(q')}_{t,j} \right\rVert_2 K t , j ( q ′ ) 2 over j j j yields:
∑ j = 1 t ∥ K t , j ( q ′ ) ∥ 2 ≤ ∑ j = 1 t ( ∥ W C ( q ′ ) ∥ 2 L x , q ′ Λ x , q ′ ρ q ′ t − j + 1 j = t ∥ W C ( q ′ ) ∥ 2 H q ′ ) = ∥ W C ( q ′ ) ∥ 2 L x , q ′ Λ x , q ′ ∑ j = 1 t ρ q ′ t − j + ∥ W C ( q ′ ) ∥ 2 H q ′ = ∥ W C ( q ′ ) ∥ 2 L x , q ′ Λ x , q ′ 1 − ρ q ′ t 1 − ρ q ′ + ∥ W C ( q ′ ) ∥ 2 H q ′ ≤ ∥ W C ( q ′ ) ∥ 2 ( H q ′ + L x , q ′ Λ x , q ′ 1 − ρ q ′ ) = κ q ′ . (303) \begin{aligned}
\sum_{j=1}^{t}\left\lVert\mathbf{K}^{(q')}_{t,j} \right\rVert_2
&\le\sum_{j=1}^{t}\left(\left\lVert W_C^{(q')} \right\rVert_2 L_{x,q'}\Lambda_{x,q'}\rho_{q'}^{t-j}+\mathbb{1}_{j=t}\left\lVert W_C^{(q')} \right\rVert_2 H_{q'}\right) \\
&= \left\lVert W_C^{(q')} \right\rVert_2 L_{x,q'}\Lambda_{x,q'}\sum_{j=1}^{t}\rho_{q'}^{t-j}+\left\lVert W_C^{(q')} \right\rVert_2 H_{q'} \\
&= \left\lVert W_C^{(q')} \right\rVert_2 L_{x,q'}\Lambda_{x,q'}\frac{1-\rho_{q'}^{t}}{1-\rho_{q'}}+\left\lVert W_C^{(q')} \right\rVert_2 H_{q'} \\
&\le\left\lVert W_C^{(q')} \right\rVert_2\left(H_{q'}+\frac{L_{x,q'}\Lambda_{x,q'}}{1-\rho_{q'}}\right)=\kappa_{q'}. \tag*{(303)}
\end{aligned} j = 1 ∑ t K t , j ( q ′ ) 2 ≤ j = 1 ∑ t ( W C ( q ′ ) 2 L x , q ′ Λ x , q ′ ρ q ′ t − j + 1 j = t W C ( q ′ ) 2 H q ′ ) = W C ( q ′ ) 2 L x , q ′ Λ x , q ′ j = 1 ∑ t ρ q ′ t − j + W C ( q ′ ) 2 H q ′ = W C ( q ′ ) 2 L x , q ′ Λ x , q ′ 1 − ρ q ′ 1 − ρ q ′ t + W C ( q ′ ) 2 H q ′ ≤ W C ( q ′ ) 2 ( H q ′ + 1 − ρ q ′ L x , q ′ Λ x , q ′ ) = κ q ′ . (303)
where, for each layer q ′ q' q ′ , we define the uniform layerwise input-output sensitivity bound
κ q ′ : = ∥ W C ( q ′ ) ∥ 2 ( H q ′ + L x , q ′ Λ x , q ′ 1 − ρ q ′ ) . (304) \kappa_{q'}:=\left\lVert W_C^{(q')} \right\rVert_2\left(H_{q'}+\frac{L_{x,q'}\Lambda_{x,q'}}{1-\rho_{q'}}\right). \tag*{(304)} κ q ′ := W C ( q ′ ) 2 ( H q ′ + 1 − ρ q ′ L x , q ′ Λ x , q ′ ) . (304)
Next, since κ q ′ \kappa_{q'} κ q ′ is independent of t t t , it follows that:
max 1 ≤ t ≤ S ∑ j = 1 t ∥ K t , j ( q ′ ) ∥ 2 ≤ κ q ′ . (305) \max_{1\le t\le S}\sum_{j=1}^{t}\left\lVert\mathbf{K}^{(q')}_{t,j} \right\rVert_2\le\kappa_{q'}. \tag*{(305)} 1 ≤ t ≤ S max j = 1 ∑ t K t , j ( q ′ ) 2 ≤ κ q ′ . (305)
Since W W W satisfies the stated stability and bounded-input conditions, the bound holds uniformly over all admissible input-target sequences and token indices.
Now, returning to (273) , consider the two inner-most sums (for q ≤ Q − 2 q\le Q-2 q ≤ Q − 2 ):
∑ j q + 1 = 1 j q + 2 ∑ j q = 1 j q + 1 [ ∏ q ′ = q + 1 Q ∥ K j q ′ , j q ′ − 1 ( q ′ ) ∥ 2 ] = ∑ j q + 1 = 1 j q + 2 ∑ j q = 1 j q + 1 ∥ K j q + 1 , j q ( q + 1 ) ∥ 2 ∥ K j q + 2 , j q + 1 ( q + 2 ) ∥ 2 ⋯ ∥ K j Q , j Q − 1 ( Q ) ∥ 2 = ∑ j q + 1 = 1 j q + 2 [ ∑ j q = 1 j q + 1 ∥ K j q + 1 , j q ( q + 1 ) ∥ 2 ∥ K j q + 2 , j q + 1 ( q + 2 ) ∥ 2 ⋯ ∥ K j Q , j Q − 1 ( Q ) ∥ 2 ] = ∑ j q + 1 = 1 j q + 2 ∥ K j q + 2 , j q + 1 ( q + 2 ) ∥ 2 ⋯ ∥ K j Q , j Q − 1 ( Q ) ∥ 2 [ ∑ j q = 1 j q + 1 ∥ K j q + 1 , j q ( q + 1 ) ∥ 2 ] ≤ ∑ j q + 1 = 1 j q + 2 ∥ K j q + 2 , j q + 1 ( q + 2 ) ∥ 2 ⋯ ∥ K j Q , j Q − 1 ( Q ) ∥ 2 κ q + 1 = κ q + 1 ∑ j q + 1 = 1 j q + 2 ∥ K j q + 2 , j q + 1 ( q + 2 ) ∥ 2 ⋯ ∥ K j Q , j Q − 1 ( Q ) ∥ 2 , (306) \begin{aligned}
&\sum_{j_{q+1}=1}^{j_{q+2}}\sum_{j_q=1}^{j_{q+1}}\left[\prod_{q'=q+1}^{Q}\left\lVert\mathbf{K}^{(q')}_{j_{q'},j_{q'-1}}\right\rVert_2\right] \\
&=\sum_{j_{q+1}=1}^{j_{q+2}}\sum_{j_q=1}^{j_{q+1}}\left\lVert\mathbf{K}^{(q+1)}_{j_{q+1},j_q}\right\rVert_2\left\lVert\mathbf{K}^{(q+2)}_{j_{q+2},j_{q+1}}\right\rVert_2\cdots\left\lVert\mathbf{K}^{(Q)}_{j_Q,j_{Q-1}}\right\rVert_2 \\
&=\sum_{j_{q+1}=1}^{j_{q+2}}\left[\sum_{j_q=1}^{j_{q+1}}\left\lVert\mathbf{K}^{(q+1)}_{j_{q+1},j_q}\right\rVert_2\left\lVert\mathbf{K}^{(q+2)}_{j_{q+2},j_{q+1}}\right\rVert_2\cdots\left\lVert\mathbf{K}^{(Q)}_{j_Q,j_{Q-1}}\right\rVert_2\right] \\
&=\sum_{j_{q+1}=1}^{j_{q+2}}\left\lVert\mathbf{K}^{(q+2)}_{j_{q+2},j_{q+1}}\right\rVert_2\cdots\left\lVert\mathbf{K}^{(Q)}_{j_Q,j_{Q-1}}\right\rVert_2\left[\sum_{j_q=1}^{j_{q+1}}\left\lVert\mathbf{K}^{(q+1)}_{j_{q+1},j_q}\right\rVert_2\right] \\
&\le\sum_{j_{q+1}=1}^{j_{q+2}}\left\lVert\mathbf{K}^{(q+2)}_{j_{q+2},j_{q+1}}\right\rVert_2\cdots\left\lVert\mathbf{K}^{(Q)}_{j_Q,j_{Q-1}}\right\rVert_2\kappa_{q+1} \\
&=\kappa_{q+1}\sum_{j_{q+1}=1}^{j_{q+2}}\left\lVert\mathbf{K}^{(q+2)}_{j_{q+2},j_{q+1}}\right\rVert_2\cdots\left\lVert\mathbf{K}^{(Q)}_{j_Q,j_{Q-1}}\right\rVert_2, \tag*{(306)}
\end{aligned} j q + 1 = 1 ∑ j q + 2 j q = 1 ∑ j q + 1 q ′ = q + 1 ∏ Q K j q ′ , j q ′ − 1 ( q ′ ) 2 = j q + 1 = 1 ∑ j q + 2 j q = 1 ∑ j q + 1 K j q + 1 , j q ( q + 1 ) 2 K j q + 2 , j q + 1 ( q + 2 ) 2 ⋯ K j Q , j Q − 1 ( Q ) 2 = j q + 1 = 1 ∑ j q + 2 j q = 1 ∑ j q + 1 K j q + 1 , j q ( q + 1 ) 2 K j q + 2 , j q + 1 ( q + 2 ) 2 ⋯ K j Q , j Q − 1 ( Q ) 2 = j q + 1 = 1 ∑ j q + 2 K j q + 2 , j q + 1 ( q + 2 ) 2 ⋯ K j Q , j Q − 1 ( Q ) 2 j q = 1 ∑ j q + 1 K j q + 1 , j q ( q + 1 ) 2 ≤ j q + 1 = 1 ∑ j q + 2 K j q + 2 , j q + 1 ( q + 2 ) 2 ⋯ K j Q , j Q − 1 ( Q ) 2 κ q + 1 = κ q + 1 j q + 1 = 1 ∑ j q + 2 K j q + 2 , j q + 1 ( q + 2 ) 2 ⋯ K j Q , j Q − 1 ( Q ) 2 , (306)
where the inequality follows from (305) . Since κ q + 1 \kappa_{q+1} κ q + 1 is independent of all remaining sums, and we can apply the same argument successively to each remaining innermost sum, it follows that:
∑ j Q − 1 = 1 j Q ⋯ ∑ j q = 1 j q + 1 [ ∏ q ′ = q + 1 Q ∥ K j q ′ , j q ′ − 1 ( q ′ ) ∥ 2 ] ≤ κ q + 1 κ q + 2 ⋯ κ Q = ∏ q ′ = q + 1 Q κ q ′ . (307) \sum_{j_{Q-1}=1}^{j_Q}\cdots\sum_{j_q=1}^{j_{q+1}}\left[\prod_{q'=q+1}^{Q}\left\lVert\mathbf{K}^{(q')}_{j_{q'},j_{q'-1}}\right\rVert_2\right]\le\kappa_{q+1}\kappa_{q+2}\cdots\kappa_Q=\prod_{q'=q+1}^{Q}\kappa_{q'}. \tag*{(307)} j Q − 1 = 1 ∑ j Q ⋯ j q = 1 ∑ j q + 1 q ′ = q + 1 ∏ Q K j q ′ , j q ′ − 1 ( q ′ ) 2 ≤ κ q + 1 κ q + 2 ⋯ κ Q = q ′ = q + 1 ∏ Q κ q ′ . (307)
for the fixed W W W and every admissible input-target sequence pair. For q = Q − 1 q=Q-1 q = Q − 1 , there is only one sum, and holds directly from definition: ∑ j Q − 1 = 1 t ∥ K t , j Q − 1 ( Q ) ∥ 2 ≤ κ Q \sum_{j_{Q-1}=1}^{t}\left\lVert K_{t,j_{Q-1}}^{(Q)}\right\rVert_{2}\le\kappa_Q ∑ j Q − 1 = 1 t K t , j Q − 1 ( Q ) 2 ≤ κ Q .
Finally, combining the nested-sum bound in (306) with (264) and (270), we obtain:
∥ ∂ y t ( Q ) ∂ W ( q ) ∥ F ≤ L x , q ( H q + ∥ W C ( q ) ∥ 2 J q ) ∏ q ′ = q + 1 Q κ q ′ . (308) \left\lVert\frac{\partial y_t^{(Q)}}{\partial W^{(q)}}\right\rVert_F
\le L_{x,q}\left(H_q+\left\lVert W_C^{(q)}\right\rVert_2J_q\right)\prod_{q'=q+1}^{Q}\kappa_{q'}. \tag*{(308)} ∂ W ( q ) ∂ y t ( Q ) F ≤ L x , q ( H q + W C ( q ) 2 J q ) q ′ = q + 1 ∏ Q κ q ′ . (308)
This bound holds for every q ∈ { 1 , … , Q } q\in\{1,\ldots,Q\} q ∈ { 1 , … , Q } and t ∈ { 1 , … , S } t\in\{1,\ldots,S\} t ∈ { 1 , … , S } , where an empty product is interpreted as one. For the q = Q q=Q q = Q case, the inequality follows directly from the own-layer bound in (270).
We now return to the loss gradient in (245). Under Assumption 4.2, applied at the fixed full parameter tuple W W W to final-layer predictions uniformly over admissible pairs and token indices, we have:
∥ ∇ y t ℓ t ( y t ( Q ) ) ∥ 2 ≤ L ℓ . (309) \left\lVert\nabla_{y_t}\ell_t\left(y_t^{(Q)}\right)\right\rVert_2\le L_\ell. \tag*{(309)} ∇ y t ℓ t ( y t ( Q ) ) 2 ≤ L ℓ . (309)
Finally, taking the Euclidean norm of the vectorized gradient in (245), which equals its block Frobenius norm, gives:
∥ ∇ W ( q ) L S , ( Q ) ( W ) ∥ F = ∥ 1 S ∑ t = 1 S ( ∂ y t ( Q ) ∂ W ( q ) ) T ∇ y t ℓ t ( y t ( Q ) ) ∥ 2 ≤ 1 S ∑ t = 1 S ∥ ∇ y t ℓ t ( y t ( Q ) ) ∥ 2 ∥ ∂ y t ( Q ) ∂ W ( q ) ∥ F ≤ 1 S ∑ t = 1 S L ℓ L x , q ( H q + ∥ W C ( q ) ∥ 2 J q ) ∏ q ′ = q + 1 Q κ q ′ = L ℓ L x , q ( H q + ∥ W C ( q ) ∥ 2 J q ) ∏ q ′ = q + 1 Q κ q ′ . (310) \begin{aligned}
\left\lVert\nabla_{W^{(q)}}\mathcal{L}^{S,(Q)}(W)\right\rVert_F
&=\left\lVert\frac{1}{S}\sum_{t=1}^{S}\left(\frac{\partial y_t^{(Q)}}{\partial W^{(q)}}\right)^{\mathsf T}\nabla_{y_t}\ell_t\left(y_t^{(Q)}\right)\right\rVert_2\\
&\le\frac{1}{S}\sum_{t=1}^{S}\left\lVert\nabla_{y_t}\ell_t\left(y_t^{(Q)}\right)\right\rVert_2\left\lVert\frac{\partial y_t^{(Q)}}{\partial W^{(q)}}\right\rVert_F\\
&\le\frac{1}{S}\sum_{t=1}^{S}L_\ell L_{x,q}\left(H_q+\left\lVert W_C^{(q)}\right\rVert_2J_q\right)\prod_{q'=q+1}^{Q}\kappa_{q'}\\
&=L_\ell L_{x,q}\left(H_q+\left\lVert W_C^{(q)}\right\rVert_2J_q\right)\prod_{q'=q+1}^{Q}\kappa_{q'}. \tag*{(310)}
\end{aligned} ∇ W ( q ) L S , ( Q ) ( W ) F = S 1 t = 1 ∑ S ( ∂ W ( q ) ∂ y t ( Q ) ) T ∇ y t ℓ t ( y t ( Q ) ) 2 ≤ S 1 t = 1 ∑ S ∇ y t ℓ t ( y t ( Q ) ) 2 ∂ W ( q ) ∂ y t ( Q ) F ≤ S 1 t = 1 ∑ S L ℓ L x , q ( H q + W C ( q ) 2 J q ) q ′ = q + 1 ∏ Q κ q ′ = L ℓ L x , q ( H q + W C ( q ) 2 J q ) q ′ = q + 1 ∏ Q κ q ′ . (310)
where we use (308), (307), the triangle inequality, and the fact that ∥ M T v ∥ 2 ≤ ∥ M ∥ F ∥ v ∥ 2 \left\lVert M^{\mathsf T}v\right\rVert_2\le\left\lVert M\right\rVert_F\left\lVert v\right\rVert_2 M T v 2 ≤ ∥ M ∥ F ∥ v ∥ 2 . The bound is independent of the token index t t t .
Substituting the result of (309) back into (242), we get:
∥ ∇ W L S , ( Q ) ( W ) ∥ F ≤ L ℓ ( ∑ q = 1 Q L x , q 2 ( H q + ∥ W C ( q ) ∥ 2 J q ) 2 ∏ q ′ = q + 1 Q κ q ′ 2 ) 1 / 2 = G S S M ( W ) . (311) \left\lVert\nabla_W\mathcal{L}^{S,(Q)}(W)\right\rVert_F
\le L_\ell\left(\sum_{q=1}^{Q}L_{x,q}^{2}\left(H_q+\left\lVert W_C^{(q)}\right\rVert_2J_q\right)^2\prod_{q'=q+1}^{Q}\kappa_{q'}^2\right)^{1/2}
=\mathcal{G}_{\mathrm{SSM}}(W). \tag*{(311)} ∇ W L S , ( Q ) ( W ) F ≤ L ℓ q = 1 ∑ Q L x , q 2 ( H q + W C ( q ) 2 J q ) 2 q ′ = q + 1 ∏ Q κ q ′ 2 1/2 = G SSM ( W ) . (311)
Since S ≥ 1 S\ge1 S ≥ 1 and the admissible length-S S S pair ξ ∈ Z \xi\in\mathcal{Z} ξ ∈ Z were arbitrary, and the right-hand side is independent of S S S and ξ \xi ξ , the bound holds uniformly over all such lengths and admissible pairs for the fixed full parameter tuple W W W , proving Theorem C.3.
Auxiliary Lemmas for Multi-Layer SSM Federated Convergence
First, we describe the following setup that will be utilized in the remainder of the proofs of the multi-layer SSM federated convergence.
Fix a reference full-model parameter tuple W r = ( W r , ( 1 ) , … , W r , ( Q ) ) W^r=\left(W^{r,(1)},\ldots,W^{r,(Q)}\right) W r = ( W r , ( 1 ) , … , W r , ( Q ) ) . For each layer q ∈ { 1 , … , Q } q\in\{1,\ldots,Q\} q ∈ { 1 , … , Q } of the Q Q Q -layer deep SSM defined in C.1, choose some radius R q > 0 R_q>0 R q > 0 and define:
N R q ( q ) ( W r , ( q ) ) : = { V ( q ) : ∥ V ( q ) − W r , ( q ) ∥ F ≤ R q } . (312) \mathcal{N}_{R_q}^{(q)}\left(W^{r,(q)}\right):=\left\{V^{(q)}:\left\lVert V^{(q)}-W^{r,(q)}\right\rVert_F\le R_q\right\}. \tag*{(312)} N R q ( q ) ( W r , ( q ) ) := { V ( q ) : V ( q ) − W r , ( q ) F ≤ R q } . (312)
as the layerwise parameter neighborhood of radius R q R_q R q , centered at the parameter tuple of layer q q q in the central model W r W^r W r .
Furthermore, define:
N R Q : = N R 1 ( 1 ) ( W r , ( 1 ) ) × ⋯ × N R Q ( Q ) ( W r , ( Q ) ) (313) \mathcal{N}_{\mathbf{R}_Q} := \mathcal{N}_{R_1}^{(1)}\left(W^{r,(1)}\right) \times\cdots\times\mathcal{N}_{R_Q}^{(Q)}\left(W^{r,(Q)}\right) \tag*{(313)} N R Q := N R 1 ( 1 ) ( W r , ( 1 ) ) × ⋯ × N R Q ( Q ) ( W r , ( Q ) ) (313)
R Q : = ( R 1 , … , R Q ) . (314) \mathbf{R}_Q := (R_1,\ldots,R_Q). \tag*{(314)} R Q := ( R 1 , … , R Q ) . (314)
The radii R 1 , … , R Q R_1,\ldots,R_Q R 1 , … , R Q are chosen such that:
N R Q ⊆ S γ , δ ( Q ) . (315) \mathcal{N}_{\mathbf{R}_Q} \subseteq\mathcal{S}_{\gamma,\delta}^{(Q)}. \tag*{(315)} N R Q ⊆ S γ , δ ( Q ) . (315)
Furthermore, we assume that Assumption C.1 holds uniformly over this neighborhood with the same finite constants L x , q L_{x,q} L x , q . Furthermore, we let Assumption 4.2 hold at the final-layer predictions y t ( Q ) ( W ; x ) y_t^{(Q)}(W;x) y t ( Q ) ( W ; x ) with the same finite constants L ℓ L_\ell L ℓ and H ℓ H_\ell H ℓ throughout this neighborhood.
All stability margins, layer-input bounds, and loss-regularity constants are fixed independently of the parameter tuple W ∈ N R Q W \in\mathcal{N}_{\mathbf{R}_Q} W ∈ N R Q , the admissible sequence pair, its finite length, and the token position. In particular, ρ q = exp ( − γ q δ q ) < 1 \rho_q = \exp(-\gamma_q\delta_q) < 1 ρ q = exp ( − γ q δ q ) < 1 is fixed for each layer.
For each q ∈ { 1 , … , Q } q \in\{1,\ldots,Q\} q ∈ { 1 , … , Q } , define the parameter envelopes as:
M X , q : = ∥ W X r , ( q ) ∥ 2 + R q X ∈ { Δ , B , C } , (316) M_{X,q} := \left\|W_X^{r,(q)}\right\|_2 + R_q \qquad X \in\{\Delta,B,C\}, \tag*{(316)} M X , q := W X r , ( q ) 2 + R q X ∈ { Δ , B , C } , (316)
M A , q : = ∥ A r , ( q ) ∥ 2 + R q . (317) M_{A,q} := \left\|A^{r,(q)}\right\|_2 + R_q. \tag*{(317)} M A , q := A r , ( q ) 2 + R q . (317)
By the definition of the layerwise neighborhoods, and the triangle inequality, every W ∈ N R Q W \in\mathcal{N}_{\mathbf{R}_Q} W ∈ N R Q satisfies:
∥ W X ( q ) ∥ 2 ≤ M X , q , X ∈ { Δ , B , C } , ∥ A ( q ) ∥ 2 ≤ M A , q (318) \begin{aligned}
\left\|W_X^{(q)}\right\|_2 &\le M_{X,q}, \qquad X \in\{\Delta,B,C\},\\
\left\|A^{(q)}\right\|_2 &\le M_{A,q} \tag*{(318)}
\end{aligned} W X ( q ) 2 A ( q ) 2 ≤ M X , q , X ∈ { Δ , B , C } , ≤ M A , q (318)
Given these envelopes, let:
M K Δ , q : = M Δ , q L x , q + D log ( 2 ) , (319) M_{K_{\Delta,q}} := M_{\Delta,q}L_{x,q} + \sqrt{D}\log(2), \tag*{(319)} M K Δ , q := M Δ , q L x , q + D log ( 2 ) , (319)
M K B , q : = M B , q L x , q 2 , (320) M_{K_{B,q}} := M_{B,q}L_{x,q}^{2}, \tag*{(320)} M K B , q := M B , q L x , q 2 , (320)
M K W , q : = N D M K B , q M K Δ , q ( M K Δ , q + D M A , q L x , q ) ( ρ q 1 − ρ q ) + L x , q 2 N M K Δ , q + L x , q D M K B , q . (321) M_{K_{W,q}} := N D M_{K_{B,q}}M_{K_{\Delta,q}}\left(M_{K_{\Delta,q}}+\sqrt{D}M_{A,q}L_{x,q}\right)\left(\frac{\rho_q}{1-\rho_q}\right)+L_{x,q}^{2}\sqrt{N}M_{K_{\Delta,q}}+L_{x,q}\sqrt{D}M_{K_{B,q}}. \tag*{(321)} M K W , q := N D M K B , q M K Δ , q ( M K Δ , q + D M A , q L x , q ) ( 1 − ρ q ρ q ) + L x , q 2 N M K Δ , q + L x , q D M K B , q . (321)
These are the layerwise counterparts of the single-layer envelopes introduced in Appendix B.1, with the neighborhood radius R R R replaced by R q R_q R q .
Then, by the definitions of K Δ , q K_{\Delta,q} K Δ , q , K B , q K_{B,q} K B , q , and K W , q K_{W,q} K W , q , it follows that:
K Δ , q ≤ M K Δ , q , K B , q ≤ M K B , q , K W , q ≤ M K W , q (322) K_{\Delta,q} \le M_{K_{\Delta,q}}, \qquad K_{B,q} \le M_{K_{B,q}}, \qquad K_{W,q} \le M_{K_{W,q}} \tag*{(322)} K Δ , q ≤ M K Δ , q , K B , q ≤ M K B , q , K W , q ≤ M K W , q (322)
over W ∈ N R Q W \in\mathcal{N}_{\mathbf{R}_Q} W ∈ N R Q .
Further, define:
H R q : = M K B , q M K Δ , q N D 1 − ρ q , (323) H_{R_q} := \frac{M_{K_{B,q}}M_{K_{\Delta,q}}\sqrt{ND}}{1-\rho_q}, \tag*{(323)} H R q := 1 − ρ q M K B , q M K Δ , q N D , (323)
J R q : = M K W , q 1 − ρ q . (324) J_{R_q} := \frac{M_{K_{W,q}}}{1-\rho_q}. \tag*{(324)} J R q := 1 − ρ q M K W , q . (324)
M Λ x , q : = ρ q M A , q M Δ , q H R q + M B , q L x , q ( 2 M K Δ , q + L x , q M Δ , q ) , (325) M_{\Lambda_x,q} := \rho_q M_{A,q}M_{\Delta,q}H_{R_q} + M_{B,q}L_{x,q}\left(2M_{K_{\Delta,q}} + L_{x,q}M_{\Delta,q}\right), \tag*{(325)} M Λ x , q := ρ q M A , q M Δ , q H R q + M B , q L x , q ( 2 M K Δ , q + L x , q M Δ , q ) , (325)
M κ , q : = M C , q ( H R q + L x , q M Λ x , q 1 − ρ q ) . (326) M_{\kappa,q} := M_{C,q}\left(H_{R_q}+\frac{L_{x,q}M_{\Lambda_x,q}}{1-\rho_q}\right). \tag*{(326)} M κ , q := M C , q ( H R q + 1 − ρ q L x , q M Λ x , q ) . (326)
By the definitions of Λ x , q \Lambda_{x,q} Λ x , q and κ q \kappa_q κ q in the multi-layer gradient analysis, the following bounds hold
Λ x , q ( W ) ≤ M Λ x , q , κ q ( W ) ≤ M κ , q (327) \Lambda_{x,q}(W) \le M_{\Lambda_x,q}, \qquad\kappa_q(W) \le M_{\kappa,q} \tag*{(327)} Λ x , q ( W ) ≤ M Λ x , q , κ q ( W ) ≤ M κ , q (327)
for every W ∈ N R Q W \in\mathcal{N}_{\mathbf{R}_Q} W ∈ N R Q . These bounds follow by replacing each parameter norm by its corresponding envelope, since all factors are nonnegative.
Local multi-layer SSM smoothness lemma and proof
Lemma C.4 (Local multi-layer SSM smoothness). Under the neighborhood assumptions and parameter envelopes introduced above, there exists a finite constant L S S M , R Q ( Q ) L^{(Q)}_{\mathrm{SSM},R_Q} L SSM , R Q ( Q ) defined:
L S S M , R Q ( Q ) : = H ℓ Θ Q 2 + L ℓ Ω Q , (328) L^{(Q)}_{\mathrm{SSM},R_Q} := H_{\ell}\Theta_Q^2 + L_{\ell}\Omega_Q, \tag*{(328)} L SSM , R Q ( Q ) := H ℓ Θ Q 2 + L ℓ Ω Q , (328) with Θ Q \Theta_Q Θ Q and Ω Q \Omega_Q Ω Q defined in (331) and (332) respectively, such that, for every admissible sequence pair ξ \xi ξ of finite length S S S and every W , V ∈ N R Q W,V \in\mathcal{N}_{R_Q} W , V ∈ N R Q ,
∥ ∇ W L S , ( Q ) ( W ; ξ ) − ∇ W L S , ( Q ) ( V ; ξ ) ∥ F ≤ L S S M , R Q ( Q ) ∥ W − V ∥ F , (329) \left\| \nabla_W \mathcal{L}^{S,(Q)}(W;\xi) - \nabla_W \mathcal{L}^{S,(Q)}(V;\xi) \right\|_F \le L^{(Q)}_{\mathrm{SSM},R_Q}\left\|W-V\right\|_F, \tag*{(329)} ∇ W L S , ( Q ) ( W ; ξ ) − ∇ W L S , ( Q ) ( V ; ξ ) F ≤ L SSM , R Q ( Q ) ∥ W − V ∥ F , (329) independent of S S S and ξ \xi ξ .
Furthermore, if each client objective L k \mathcal{L}_k L k is finite and differentiable on N R Q \mathcal{N}_{R_Q} N R Q and satisfies:
∇ W L k ( W ) = E ξ ∼ P k [ ∇ W L S , ( Q ) ( W ; ξ ) ] , (330) \nabla_W \mathcal{L}_k(W) = \mathbb{E}_{\xi\sim\mathcal{P}_k}\left[\nabla_W \mathcal{L}^{S,(Q)}(W;\xi)\right], \tag*{(330)} ∇ W L k ( W ) = E ξ ∼ P k [ ∇ W L S , ( Q ) ( W ; ξ ) ] , (330) then every L k \mathcal{L}_k L k , and therefore f = ∑ k p k L k f=\sum_k p_k\mathcal{L}_k f = ∑ k p k L k , is also L S S M , R Q ( Q ) L^{(Q)}_{\mathrm{SSM},R_Q} L SSM , R Q ( Q ) -smooth on N R Q \mathcal{N}_{R_Q} N R Q .
Θ Q \Theta_Q Θ Q and Ω Q \Omega_Q Ω Q have the following recursive definitions:
Θ 0 : = 0 , Θ q : = ( L x , q 2 ( H R q + M C , q J R q ) 2 + M κ , q 2 Θ q − 1 2 ) 1 / 2 , (331) \Theta_0 := 0,\qquad\Theta_q := \left(L_{x,q}^2\left(H_{R_q}+M_{C,q}J_{R_q}\right)^2+M_{\kappa,q}^2\Theta_{q-1}^2\right)^{1/2}, \tag*{(331)} Θ 0 := 0 , Θ q := ( L x , q 2 ( H R q + M C , q J R q ) 2 + M κ , q 2 Θ q − 1 2 ) 1/2 , (331) Ω 0 : = 0 , Ω q : = M C , q L x , q E q 1 − ρ q + 2 ( L x , q + M C , q Θ q − 1 ) ( J R q + M Λ x , q Θ q − 1 1 − ρ q ) + 2 H R q Θ q − 1 + M κ , q Ω q − 1 . (332) \begin{aligned}
\Omega_0 &:= 0,\\
\Omega_q &:= \frac{M_{C,q}L_{x,q}\mathcal{E}_q}{1-\rho_q}
+2\left(L_{x,q}+M_{C,q}\Theta_{q-1}\right)\left(J_{R_q}+\frac{M_{\Lambda_x,q}\Theta_{q-1}}{1-\rho_q}\right)\\
&\quad+2H_{R_q}\Theta_{q-1}+M_{\kappa,q}\Omega_{q-1}. \tag*{(332)}
\end{aligned} Ω 0 Ω q := 0 , := 1 − ρ q M C , q L x , q E q + 2 ( L x , q + M C , q Θ q − 1 ) ( J R q + 1 − ρ q M Λ x , q Θ q − 1 ) + 2 H R q Θ q − 1 + M κ , q Ω q − 1 . (332) where:
E q : = ρ q H R q [ ( M K Δ , q + M A , q ( L x , q + M Δ , q Θ q − 1 ) ) 2 + 2 ( L x , q + M Δ , q Θ q − 1 ) + M A , q ( 1 4 ( L x , q + M Δ , q Θ q − 1 ) 2 + 2 Θ q − 1 ) ] + 2 ρ q ( M K Δ , q + M A , q ( L x , q + M Δ , q Θ q − 1 ) ) ( J R q + M Λ x , q Θ q − 1 1 − ρ q ) + 2 Θ q − 1 M K Δ , q L x , q + 2 ( L x , q + M B , q Θ q − 1 ) [ L x , q ( L x , q + M Δ , q Θ q − 1 ) + M K Δ , q Θ q − 1 ] + M B , q L x , q [ L x , q ( 1 4 ( L x , q + M Δ , q Θ q − 1 ) 2 + 2 Θ q − 1 ) + 2 ( L x , q + M Δ , q Θ q − 1 ) Θ q − 1 ] . (333) \begin{aligned}
\mathcal{E}_q := {}& \rho_q H_{R_q}\left[\left(M_{K_{\Delta,q}}+M_{A,q}\left(L_{x,q}+M_{\Delta,q}\Theta_{q-1}\right)\right)^2+2\left(L_{x,q}+M_{\Delta,q}\Theta_{q-1}\right)\right.\\
&\left.\quad+M_{A,q}\left(\frac{1}{4}\left(L_{x,q}+M_{\Delta,q}\Theta_{q-1}\right)^2+2\Theta_{q-1}\right)\right]\\
&+2\rho_q\left(M_{K_{\Delta,q}}+M_{A,q}\left(L_{x,q}+M_{\Delta,q}\Theta_{q-1}\right)\right)\left(J_{R_q}+\frac{M_{\Lambda_x,q}\Theta_{q-1}}{1-\rho_q}\right)\\
&+2\Theta_{q-1}M_{K_{\Delta,q}}L_{x,q}\\
&+2\left(L_{x,q}+M_{B,q}\Theta_{q-1}\right)\left[L_{x,q}\left(L_{x,q}+M_{\Delta,q}\Theta_{q-1}\right)+M_{K_{\Delta,q}}\Theta_{q-1}\right]\\
&+M_{B,q}L_{x,q}\left[L_{x,q}\left(\frac{1}{4}\left(L_{x,q}+M_{\Delta,q}\Theta_{q-1}\right)^2+2\Theta_{q-1}\right)\right.\\
&\left.\quad+2\left(L_{x,q}+M_{\Delta,q}\Theta_{q-1}\right)\Theta_{q-1}\right]. \tag*{(333)}
\end{aligned} E q := ρ q H R q [ ( M K Δ , q + M A , q ( L x , q + M Δ , q Θ q − 1 ) ) 2 + 2 ( L x , q + M Δ , q Θ q − 1 ) + M A , q ( 4 1 ( L x , q + M Δ , q Θ q − 1 ) 2 + 2 Θ q − 1 ) ] + 2 ρ q ( M K Δ , q + M A , q ( L x , q + M Δ , q Θ q − 1 ) ) ( J R q + 1 − ρ q M Λ x , q Θ q − 1 ) + 2 Θ q − 1 M K Δ , q L x , q + 2 ( L x , q + M B , q Θ q − 1 ) [ L x , q ( L x , q + M Δ , q Θ q − 1 ) + M K Δ , q Θ q − 1 ] + M B , q L x , q [ L x , q ( 4 1 ( L x , q + M Δ , q Θ q − 1 ) 2 + 2 Θ q − 1 ) + 2 ( L x , q + M Δ , q Θ q − 1 ) Θ q − 1 ] . (333) Proof of Lemma C.4: Let W ∈ N R Q W\in\mathcal{N}_{R_Q} W ∈ N R Q be some fixed arbitrary parameter tuple, and ξ = ( x , y ∗ ) \xi=(x,y^*) ξ = ( x , y ∗ ) be some admissible fixed input-target sequence pair of length S ≥ 1 S\ge1 S ≥ 1 . Note that, while x x x and y ∗ y^* y ∗ remain fixed throughout the differentiation, the intermediate inputs and outputs x t ( q ) = y t ( q − 1 ) x_t^{(q)}=y_t^{(q-1)} x t ( q ) = y t ( q − 1 ) depend on the parameters of the preceding layers for q ≥ 2 q\ge2 q ≥ 2 .
We introduce:
U = ( U ( 1 ) , … , U ( Q ) ) , V = ( V ( 1 ) , … , V ( Q ) ) (334) U=\left(U^{(1)},\ldots,U^{(Q)}\right),\qquad V=\left(V^{(1)},\ldots,V^{(Q)}\right) \tag*{(334)} U = ( U ( 1 ) , … , U ( Q ) ) , V = ( V ( 1 ) , … , V ( Q ) ) (334) as two arbitrary full-model perturbations such that:
U ( q ) = ( U Δ ( q ) , U B ( q ) , U C ( q ) , U A ( q ) ) , V ( q ) = ( V Δ ( q ) , V B ( q ) , V C ( q ) , V A ( q ) ) (335) U^{(q)}=\left(U_{\Delta}^{(q)},U_{B}^{(q)},U_{C}^{(q)},U_{A}^{(q)}\right),\qquad V^{(q)}=\left(V_{\Delta}^{(q)},V_{B}^{(q)},V_{C}^{(q)},V_{A}^{(q)}\right) \tag*{(335)} U ( q ) = ( U Δ ( q ) , U B ( q ) , U C ( q ) , U A ( q ) ) , V ( q ) = ( V Δ ( q ) , V B ( q ) , V C ( q ) , V A ( q ) ) (335) and:
∥ U ∥ F 2 : = ∑ q = 1 Q ∥ U ( q ) ∥ F 2 = 1 , ∥ V ∥ F 2 : = ∑ q = 1 Q ∥ V ( q ) ∥ F 2 = 1. (336) \left\|U\right\|_F^2:=\sum_{q=1}^{Q}\left\|U^{(q)}\right\|_F^2=1,\qquad
\left\|V\right\|_F^2:=\sum_{q=1}^{Q}\left\|V^{(q)}\right\|_F^2=1. \tag*{(336)} ∥ U ∥ F 2 := q = 1 ∑ Q U ( q ) F 2 = 1 , ∥ V ∥ F 2 := q = 1 ∑ Q V ( q ) F 2 = 1. (336)
Note that each layerwise norm such as ∥ U ( q ) ∥ F \lVert U^{(q)}\rVert_F ∥ U ( q ) ∥ F is defined as the Euclidean combination of the Frobenius norms of its four parameter blocks. As a result, every layerwise direction and every individual parameter-block direction has norm at most one.
Then, for a twice continuously differentiable function F F F of the full parameter tuple, we define the first and second directional derivatives by
D F ( W ) [ U ] : = d d ϵ F ( W + ϵ U ) ∣ ϵ = 0 . (337) DF(W)[U] := \left.\frac{d}{d\epsilon}F(W+\epsilon U)\right|_{\epsilon=0}. \tag*{(337)} D F ( W ) [ U ] := d ϵ d F ( W + ϵ U ) ϵ = 0 . (337)
D 2 F ( W ) [ U , V ] : = ∂ 2 ∂ ϵ ∂ ζ F ( W + ϵ U + ζ V ) ∣ ϵ = ζ = 0 . (338) D^2F(W)[U,V] := \left.\frac{\partial^2}{\partial\epsilon\partial\zeta}F(W+\epsilon U+\zeta V)\right|_{\epsilon=\zeta=0}. \tag*{(338)} D 2 F ( W ) [ U , V ] := ∂ ϵ ∂ ζ ∂ 2 F ( W + ϵ U + ζ V ) ϵ = ζ = 0 . (338)
Unless otherwise specified, all derivatives in the remaining part of this proof are taken with respect to the full parameter tuple W W W .
The first-order chain rule gives
D ( ℓ t ( y t ( Q ) ) ) ( W ) [ U ] = ⟨ ∇ y t ℓ t ( y t ( Q ) ( W ) ) , D y t ( Q ) ( W ) [ U ] ⟩ . (339) D\left(\ell_t\left(y_t^{(Q)}\right)\right)(W)[U]=\left\langle\nabla_{y_t}\ell_t\left(y_t^{(Q)}(W)\right),D y_t^{(Q)}(W)[U]\right\rangle. \tag*{(339)} D ( ℓ t ( y t ( Q ) ) ) ( W ) [ U ] = ⟨ ∇ y t ℓ t ( y t ( Q ) ( W ) ) , D y t ( Q ) ( W ) [ U ] ⟩ . (339)
where we used the notation ℓ t ( y ) = ℓ t ( y , y t ∗ ) \ell_t(y)=\ell_t(y,y_t^*) ℓ t ( y ) = ℓ t ( y , y t ∗ ) . By differentiating this expression in V V V direction, we get:
D 2 ( ℓ t ( y t ( Q ) ) ) ( W ) [ U , V ] = ( D y t ( Q ) ( W ) [ U ] ) ⊤ ∇ y t 2 ℓ t ( y t ( Q ) ( W ) ) D y t ( Q ) ( W ) [ V ] + ⟨ ∇ y t ℓ t ( y t ( Q ) ( W ) ) , D 2 y t ( Q ) ( W ) [ U , V ] ⟩ . (340) \begin{aligned}
D^2\left(\ell_t\left(y_t^{(Q)}\right)\right)(W)[U,V]
={}&\left(Dy_t^{(Q)}(W)[U]\right)^\top\nabla_{y_t}^2\ell_t\left(y_t^{(Q)}(W)\right)Dy_t^{(Q)}(W)[V]\\
&+\left\langle\nabla_{y_t}\ell_t\left(y_t^{(Q)}(W)\right),D^2y_t^{(Q)}(W)[U,V]\right\rangle. \tag*{(340)}
\end{aligned} D 2 ( ℓ t ( y t ( Q ) ) ) ( W ) [ U , V ] = ( D y t ( Q ) ( W ) [ U ] ) ⊤ ∇ y t 2 ℓ t ( y t ( Q ) ( W ) ) D y t ( Q ) ( W ) [ V ] + ⟨ ∇ y t ℓ t ( y t ( Q ) ( W ) ) , D 2 y t ( Q ) ( W ) [ U , V ] ⟩ . (340)
By the neighborhood-uniform loss-regularity bounds introduced in Assumption 4.2 and the Cauchy-Schwarz inequality, it follows that
∣ D 2 ( ℓ t ( y t ( Q ) ) ) ( W ) [ U , V ] ∣ ≤ H ℓ ∥ D y t ( Q ) ( W ) [ U ] ∥ 2 ∥ D y t ( Q ) ( W ) [ V ] ∥ 2 + L ℓ ∥ D 2 y t ( Q ) ( W ) [ U , V ] ∥ 2 . (341) \left|D^2\left(\ell_t\left(y_t^{(Q)}\right)\right)(W)[U,V]\right|
\le H_\ell\left\|Dy_t^{(Q)}(W)[U]\right\|_2\left\|Dy_t^{(Q)}(W)[V]\right\|_2+L_\ell\left\|D^2y_t^{(Q)}(W)[U,V]\right\|_2. \tag*{(341)} D 2 ( ℓ t ( y t ( Q ) ) ) ( W ) [ U , V ] ≤ H ℓ D y t ( Q ) ( W ) [ U ] 2 D y t ( Q ) ( W ) [ V ] 2 + L ℓ D 2 y t ( Q ) ( W ) [ U , V ] 2 . (341)
As such, to bound the second derivative of the loss, it suffices to derive uniform bounds on the first and second directional derivatives of the final-layer output.
We first establish the first-order output sensitivity bounds needed for the second-order calculation.
For ease of notation, for a full-model direction U U U we write U ( ≤ q ) = ( U ( 1 ) , … , U ( q ) ) U^{(\le q)}=(U^{(1)},\ldots,U^{(q)}) U ( ≤ q ) = ( U ( 1 ) , … , U ( q ) ) and U ( < q ) = ( U ( 1 ) , … , U ( q − 1 ) ) U^{(<q)}=(U^{(1)},\ldots,U^{(q-1)}) U ( < q ) = ( U ( 1 ) , … , U ( q − 1 ) ) . We further define the following recursion:
Θ 0 : = 0 , Θ q : = ( L x , q 2 ( H R q + M C , q J R q ) 2 + M κ , q 2 Θ q − 1 2 ) 1 / 2 (342) \Theta_0:=0,\qquad\Theta_q:=\left(L_{x,q}^2\left(HR_q+M_{C,q}JR_q\right)^2+M_{\kappa,q}^2\Theta_{q-1}^2\right)^{1/2} \tag*{(342)} Θ 0 := 0 , Θ q := ( L x , q 2 ( H R q + M C , q J R q ) 2 + M κ , q 2 Θ q − 1 2 ) 1/2 (342)
First, by (270) and the definition of the neighborhood envelopes, we have:
∥ ∂ y ( q ) ∂ W ( q ) ∥ F ≤ L x , q ( H R q + M C , q J R q ) . (343) \left\|\frac{\partial y^{(q)}}{\partial W^{(q)}}\right\|_F\le L_{x,q}\left(HR_q+M_{C,q}JR_q\right). \tag*{(343)} ∂ W ( q ) ∂ y ( q ) F ≤ L x , q ( H R q + M C , q J R q ) . (343)
Then, by (304) and the bound κ q ( W ) ≤ M κ , q \kappa_q(W)\le M_{\kappa,q} κ q ( W ) ≤ M κ , q , for every t ∈ { 1 , … , S } t\in\{1,\ldots,S\} t ∈ { 1 , … , S } ,
∑ j = 1 t ∥ ∂ y t ( q ) ∂ x t ( q ) ∥ 2 = ∑ j = 1 t ∥ K t , j ( q ) ∥ 2 ≤ κ q ( W ) ≤ M κ , q . (344) \sum_{j=1}^{t}\left\|\frac{\partial y_t^{(q)}}{\partial x_t^{(q)}}\right\|_2
=\sum_{j=1}^{t}\left\|K_{t,j}^{(q)}\right\|_2\le\kappa_q(W)\le M_{\kappa,q}. \tag*{(344)} j = 1 ∑ t ∂ x t ( q ) ∂ y t ( q ) 2 = j = 1 ∑ t K t , j ( q ) 2 ≤ κ q ( W ) ≤ M κ , q . (344)
We next prove by induction on q q q that
∥ D y t ( q ) ( W ) [ U ] ∥ 2 ≤ Θ q ∥ U ( ≤ q ) ∥ F (345) \left\|Dy_t^{(q)}(W)[U]\right\|_2\le\Theta_q\left\|U^{(\le q)}\right\|_F \tag*{(345)} D y t ( q ) ( W ) [ U ] 2 ≤ Θ q U ( ≤ q ) F (345)
for every q ∈ { 1 , … , Q } q\in\{1,\ldots,Q\} q ∈ { 1 , … , Q } and every t ∈ { 1 , … , S } t\in\{1,\ldots,S\} t ∈ { 1 , … , S } . When q = 1 q = 1 q = 1 , the input sequence is independent of W W W , and the output of the first layer depends only on W ( 1 ) W^{(1)} W ( 1 ) . As such:
D y t ( 1 ) ( W ) [ U ] = ∂ y t ( 1 ) ∂ W ( 1 ) vec ( U ( 1 ) ) , (346) D y_t^{(1)}(W)[U] = \frac{\partial y_t^{(1)}}{\partial W^{(1)}} \operatorname{vec}\left(U^{(1)}\right), \tag*{(346)} D y t ( 1 ) ( W ) [ U ] = ∂ W ( 1 ) ∂ y t ( 1 ) vec ( U ( 1 ) ) , (346)
Using ∥ A z ∥ 2 ≤ ∥ A ∥ F ∥ z ∥ 2 \lVert Az\rVert_2 \le\lVert A\rVert_F \lVert z\rVert_2 ∥ A z ∥ 2 ≤ ∥ A ∥ F ∥ z ∥ 2 and ∥ vec ( U ( 1 ) ) ∥ 2 = ∥ U ( 1 ) ∥ F \lVert\operatorname{vec}(U^{(1)})\rVert_2 = \lVert U^{(1)}\rVert_F ∥ vec ( U ( 1 ) ) ∥ 2 = ∥ U ( 1 ) ∥ F gives
∥ D y t ( 1 ) ( W ) [ U ] ∥ 2 ≤ L x , 1 ( H R 1 + M C , 1 J R 1 ) ∥ U ( 1 ) ∥ F = Θ 1 ∥ U ( ≤ 1 ) ∥ F , (347) \left\lVert D y_t^{(1)}(W)[U]\right\rVert_2 \le L_{x,1}\left(H_{R_1}+M_{C,1}J_{R_1}\right)\lVert U^{(1)}\rVert_F = \Theta_1\lVert U^{(\le1)}\rVert_F, \tag*{(347)} D y t ( 1 ) ( W ) [ U ] 2 ≤ L x , 1 ( H R 1 + M C , 1 J R 1 ) ∥ U ( 1 ) ∥ F = Θ 1 ∥ U ( ≤ 1 ) ∥ F , (347)
where the equality follows from Θ 0 = 0 \Theta_0=0 Θ 0 = 0 and the definition of Θ 1 \Theta_1 Θ 1 .
Next, for a fixed q ≥ 2 q \ge2 q ≥ 2 , Since U ( ≤ q − 1 ) = U ( < q ) U^{(\le q-1)}=U^{(<q)} U ( ≤ q − 1 ) = U ( < q ) , suppose (the induction hypothesis):
∥ D y j ( q − 1 ) ( W ) [ U ] ∥ 2 ≤ Θ q − 1 ∥ U ( < q ) ∥ F , j ∈ { 1 , … , S } . (348) \left\lVert D y_j^{(q-1)}(W)[U]\right\rVert_2 \le\Theta_{q-1}\lVert U^{(<q)}\rVert_F,\qquad j\in\{1,\ldots,S\}. \tag*{(348)} D y j ( q − 1 ) ( W ) [ U ] 2 ≤ Θ q − 1 ∥ U ( < q ) ∥ F , j ∈ { 1 , … , S } . (348)
For a fixed t t t , the output y t ( q ) y_t^{(q)} y t ( q ) depends on the current-layer parameters W ( q ) W^{(q)} W ( q ) and the input tokens x 1 ( q ) , … , x t ( q ) x_1^{(q)},\ldots,x_t^{(q)} x 1 ( q ) , … , x t ( q ) , which depend on the preceding layers through x j ( q ) = y j ( q − 1 ) x_j^{(q)}=y_j^{(q-1)} x j ( q ) = y j ( q − 1 ) . The chain rule therefore gives
D y t ( q ) ( W ) [ U ] = ∂ y t ( q ) ∂ W ( q ) vec ( U ( q ) ) + ∑ j = 1 t ∂ y t ( q ) ∂ x j ( q ) D y j ( q − 1 ) ( W ) [ U ] . (349) D y_t^{(q)}(W)[U] = \frac{\partial y_t^{(q)}}{\partial W^{(q)}}\operatorname{vec}\left(U^{(q)}\right) + \sum_{j=1}^{t}\frac{\partial y_t^{(q)}}{\partial x_j^{(q)}}D y_j^{(q-1)}(W)[U]. \tag*{(349)} D y t ( q ) ( W ) [ U ] = ∂ W ( q ) ∂ y t ( q ) vec ( U ( q ) ) + j = 1 ∑ t ∂ x j ( q ) ∂ y t ( q ) D y j ( q − 1 ) ( W ) [ U ] . (349)
The first term accounts for the direct parameter perturbation in layer q q q , while the sum accounts for changes propagated through its input sequence.
Taking norms and applying the established Jacobian bounds and the induction hypothesis yields
∥ D y t ( q ) ( W ) [ U ] ∥ 2 ≤ L x , q ( H R q + M C , q J R q ) ∥ U ( q ) ∥ F + ∑ j = 1 t ∥ ∂ y t ( q ) ∂ x j ( q ) ∥ 2 ∥ D y j ( q − 1 ) ( W ) [ U ] ∥ 2 ≤ L x , q ( H R q + M C , q J R q ) ∥ U ( q ) ∥ F + M κ , q Θ q − 1 ∥ U ( < q ) ∥ F . (350) \begin{aligned}
\left\lVert D y_t^{(q)}(W)[U]\right\rVert_2
&\le L_{x,q}\left(H_{R_q}+M_{C,q}J_{R_q}\right)\lVert U^{(q)}\rVert_F
+\sum_{j=1}^{t}\left\lVert\frac{\partial y_t^{(q)}}{\partial x_j^{(q)}}\right\rVert_2\left\lVert D y_j^{(q-1)}(W)[U]\right\rVert_2\\
&\le L_{x,q}\left(H_{R_q}+M_{C,q}J_{R_q}\right)\lVert U^{(q)}\rVert_F
+M_{\kappa,q}\Theta_{q-1}\lVert U^{(<q)}\rVert_F. \tag*{(350)}
\end{aligned} D y t ( q ) ( W ) [ U ] 2 ≤ L x , q ( H R q + M C , q J R q ) ∥ U ( q ) ∥ F + j = 1 ∑ t ∂ x j ( q ) ∂ y t ( q ) 2 D y j ( q − 1 ) ( W ) [ U ] 2 ≤ L x , q ( H R q + M C , q J R q ) ∥ U ( q ) ∥ F + M κ , q Θ q − 1 ∥ U ( < q ) ∥ F . (350)
Applying Cauchy-Schwarz to the two terms gives
∥ D y t ( q ) ( W ) [ U ] ∥ 2 ≤ ( L x , q 2 ( H R q + M C , q J R q ) 2 + M κ , q 2 Θ q − 1 2 ) 1 / 2 ( ∥ U ( q ) ∥ F 2 + ∥ U ( < q ) ∥ F 2 ) 1 / 2 = Θ q ∥ U ( ≤ q ) ∥ F , (351) \begin{aligned}
\left\lVert D y_t^{(q)}(W)[U]\right\rVert_2
&\le\left(L_{x,q}^{2}\left(H_{R_q}+M_{C,q}J_{R_q}\right)^{2}+M_{\kappa,q}^{2}\Theta_{q-1}^{2}\right)^{1/2}
\left(\lVert U^{(q)}\rVert_F^{2}+\lVert U^{(<q)}\rVert_F^{2}\right)^{1/2}\\
&=\Theta_q\lVert U^{(\le q)}\rVert_F, \tag*{(351)}
\end{aligned} D y t ( q ) ( W ) [ U ] 2 ≤ ( L x , q 2 ( H R q + M C , q J R q ) 2 + M κ , q 2 Θ q − 1 2 ) 1/2 ( ∥ U ( q ) ∥ F 2 + ∥ U ( < q ) ∥ F 2 ) 1/2 = Θ q ∥ U ( ≤ q ) ∥ F , (351)
where the equality follows from the definition of Θ q \Theta_q Θ q and the block Frobenius norm. This completes the induction.
The same argument applies to V V V . Finally, since ∥ U ( ≤ q ) ∥ F ≤ ∥ U ∥ F = 1 \lVert U^{(\le q)}\rVert_F\le\lVert U\rVert_F=1 ∥ U ( ≤ q ) ∥ F ≤ ∥ U ∥ F = 1 and ∥ V ( ≤ q ) ∥ F ≤ ∥ V ∥ F = 1 \lVert V^{(\le q)}\rVert_F\le\lVert V\rVert_F=1 ∥ V ( ≤ q ) ∥ F ≤ ∥ V ∥ F = 1 , we obtain the following first-derivative bounds:
∥ D y t ( q ) ( W ) [ U ] ∥ 2 ≤ Θ q , ∥ D y t ( q ) ( W ) [ V ] ∥ 2 ≤ Θ q , (352) \left\lVert D y_t^{(q)}(W)[U]\right\rVert_2\le\Theta_q,\qquad
\left\lVert D y_t^{(q)}(W)[V]\right\rVert_2\le\Theta_q, \tag*{(352)} D y t ( q ) ( W ) [ U ] 2 ≤ Θ q , D y t ( q ) ( W ) [ V ] 2 ≤ Θ q , (352)
uniformly over all layers q ∈ { 1 , … , Q } q\in\{1,\ldots,Q\} q ∈ { 1 , … , Q } and token positions t ∈ { 1 , … , S } t\in\{1,\ldots,S\} t ∈ { 1 , … , S } .
Finally, applying this result to q = Q q=Q q = Q , we get the resulting first-derivative bounds:
∥ D y t ( Q ) ( W ) [ U ] ∥ 2 ≤ Θ Q , ∥ D y t ( Q ) ( W ) [ V ] ∥ 2 ≤ Θ Q , (353) \left\lVert D y_t^{(Q)}(W)[U]\right\rVert_2\le\Theta_Q,\qquad
\left\lVert D y_t^{(Q)}(W)[V]\right\rVert_2\le\Theta_Q, \tag*{(353)} D y t ( Q ) ( W ) [ U ] 2 ≤ Θ Q , D y t ( Q ) ( W ) [ V ] 2 ≤ Θ Q , (353)
and substituting back into (341) we get:
∣ D 2 ( ℓ t ( y t ( Q ) ) ) ( W ) [ U , V ] ∣ ≤ H ℓ Θ Q 2 + L ℓ ∥ D 2 y t ( Q ) ( W ) [ U , V ] ∥ 2 . (354) \left|D^2\left(\ell_t\left(y_t^{(Q)}\right)\right)(W)[U,V]\right|
\le H_{\ell}\Theta_Q^2+L_{\ell}\left\lVert D^2 y_t^{(Q)}(W)[U,V]\right\rVert_2. \tag*{(354)} D 2 ( ℓ t ( y t ( Q ) ) ) ( W ) [ U , V ] ≤ H ℓ Θ Q 2 + L ℓ D 2 y t ( Q ) ( W ) [ U , V ] 2 . (354)
We next bound the second output derivative term ∥ D 2 y t ( q ) ( W ) [ U , V ] ∥ 2 \left\lVert D^2 y_t^{(q)}(W)[U,V]\right\rVert_2 D 2 y t ( q ) ( W ) [ U , V ] 2 . For any layer q q q , the second-order product rule gives:
D 2 y t ( q ) ( W ) [ U , V ] = ( D 2 h t ( q ) ( W ) [ U , V ] ) T C t ( q ) + ( h t ( q ) ) T D 2 C t ( q ) ( W ) [ U , V ] + ( D h t ( q ) ( W ) [ U ] ) T D C t ( q ) ( W ) [ V ] + ( D h t ( q ) ( W ) [ V ] ) T D C t ( q ) ( W ) [ U ] . (355) \begin{aligned}
D^2y_t^{(q)}(W)[U,V]
=\left(D^2h_t^{(q)}(W)[U,V]\right)^{\mathsf T}C_t^{(q)}
+\left(h_t^{(q)}\right)^{\mathsf T}D^2C_t^{(q)}(W)[U,V] \\
&+ \left(Dh_t^{(q)}(W)[U]\right)^{\mathsf{T}} DC_t^{(q)}(W)[V] + \left(Dh_t^{(q)}(W)[V]\right)^{\mathsf{T}} DC_t^{(q)}(W)[U]. \tag*{(355)}
\end{aligned} D 2 y t ( q ) ( W ) [ U , V ] = ( D 2 h t ( q ) ( W ) [ U , V ] ) T C t ( q ) + ( h t ( q ) ) T D 2 C t ( q ) ( W ) [ U , V ] + ( D h t ( q ) ( W ) [ U ] ) T D C t ( q ) ( W ) [ V ] + ( D h t ( q ) ( W ) [ V ] ) T D C t ( q ) ( W ) [ U ] . (355)
We bound each term separately.
By the first-order bounds already established:
∥ D x t ( q ) ( W ) [ U ] ∥ 2 = ∥ D y t ( q − 1 ) ( W ) [ U ] ∥ 2 ≤ Θ q − 1 , (356) \left\|Dx_t^{(q)}(W)[U]\right\|_2 = \left\|Dy_t^{(q-1)}(W)[U]\right\|_2 \le\Theta_{q-1}, \tag*{(356)} D x t ( q ) ( W ) [ U ] 2 = D y t ( q − 1 ) ( W ) [ U ] 2 ≤ Θ q − 1 , (356)
vanishing for q = 1 q = 1 q = 1 , consistent with Θ 0 = 0 \Theta_0 = 0 Θ 0 = 0 . The same holds for ∥ D x t ( q ) ( W ) [ V ] ∥ 2 \left\|Dx_t^{(q)}(W)[V]\right\|_2 D x t ( q ) ( W ) [ V ] 2 . As a result, by the product rule:
∥ D C t ( q ) ( W ) [ U ] ∥ 2 ≤ L x , q + M C , q Θ q − 1 , (357) \left\|DC_t^{(q)}(W)[U]\right\|_2 \le L_{x,q} + M_{C,q}\Theta_{q-1}, \tag*{(357)} D C t ( q ) ( W ) [ U ] 2 ≤ L x , q + M C , q Θ q − 1 , (357)
∥ D C t ( q ) ( W ) [ V ] ∥ 2 ≤ L x , q + M C , q Θ q − 1 , (358) \left\|DC_t^{(q)}(W)[V]\right\|_2 \le L_{x,q} + M_{C,q}\Theta_{q-1}, \tag*{(358)} D C t ( q ) ( W ) [ V ] 2 ≤ L x , q + M C , q Θ q − 1 , (358)
∥ D 2 C t ( q ) ( W ) [ U , V ] ∥ 2 ≤ 2 Θ q − 1 + M C , q ∥ D 2 x t ( q ) ( W ) [ U , V ] ∥ 2 . (359) \left\|D^2C_t^{(q)}(W)[U,V]\right\|_2 \le2\Theta_{q-1} + M_{C,q}\left\|D^2x_t^{(q)}(W)[U,V]\right\|_2. \tag*{(359)} D 2 C t ( q ) ( W ) [ U , V ] 2 ≤ 2 Θ q − 1 + M C , q D 2 x t ( q ) ( W ) [ U , V ] 2 . (359)
Furthermore, by (269) and (298) ,
∥ D h t ( q ) ( W ) [ U ] ∥ F ≤ J R q + M Λ x , q Θ q − 1 ∑ j = 1 t ρ q t − j ≤ J R q + M Λ x , q Θ q − 1 1 − ρ q , (360) \left\|Dh_t^{(q)}(W)[U]\right\|_F \le J_{R_q} + M_{\Lambda_x,q}\Theta_{q-1}\sum_{j=1}^{t}\rho_q^{t-j} \le J_{R_q} + \frac{M_{\Lambda_x,q}\Theta_{q-1}}{1-\rho_q}, \tag*{(360)} D h t ( q ) ( W ) [ U ] F ≤ J R q + M Λ x , q Θ q − 1 j = 1 ∑ t ρ q t − j ≤ J R q + 1 − ρ q M Λ x , q Θ q − 1 , (360)
with the same inequality holding for ∥ D h t ( q ) ( W ) [ V ] ∥ F \left\|Dh_t^{(q)}(W)[V]\right\|_F D h t ( q ) ( W ) [ V ] F .
Since ∥ C t ( q ) ∥ 2 ≤ M C , q L x , q \left\|C_t^{(q)}\right\|_2 \le M_{C,q}L_{x,q} C t ( q ) 2 ≤ M C , q L x , q and ∥ h t ( q ) ∥ F ≤ H R q \left\|h_t^{(q)}\right\|_F \le H_{R_q} h t ( q ) F ≤ H R q , equation (355) yields
∥ D 2 y t ( q ) ( W ) [ U , V ] ∥ 2 ≤ M C , q L x , q ∥ D 2 h t ( q ) ( W ) [ U , V ] ∥ F + M C , q H R q ∥ D 2 x t ( q ) ( W ) [ U , V ] ∥ 2 + 2 ( L x , q + M C , q Θ q − 1 ) ( J R q + M Λ x , q Θ q − 1 1 − ρ q ) + 2 H R q Θ q − 1 . (361) \begin{aligned}
\left\|D^2y_t^{(q)}(W)[U,V]\right\|_2
&\le M_{C,q}L_{x,q}\left\|D^2h_t^{(q)}(W)[U,V]\right\|_F + M_{C,q}H_{R_q}\left\|D^2x_t^{(q)}(W)[U,V]\right\|_2 \\
&\quad+ 2\left(L_{x,q}+M_{C,q}\Theta_{q-1}\right)\left(J_{R_q}+\frac{M_{\Lambda_x,q}\Theta_{q-1}}{1-\rho_q}\right)+2H_{R_q}\Theta_{q-1}. \tag*{(361)}
\end{aligned} D 2 y t ( q ) ( W ) [ U , V ] 2 ≤ M C , q L x , q D 2 h t ( q ) ( W ) [ U , V ] F + M C , q H R q D 2 x t ( q ) ( W ) [ U , V ] 2 + 2 ( L x , q + M C , q Θ q − 1 ) ( J R q + 1 − ρ q M Λ x , q Θ q − 1 ) + 2 H R q Θ q − 1 . (361)
As a result, we need to bound the second derivative of the hidden state. By the definition of h t ( q ) ( W ) h_t^{(q)}(W) h t ( q ) ( W ) , differentiating it twice yields:
D 2 h t ( q ) ( W ) [ U , V ] = A ˉ t ( q ) ⊙ D 2 h t − 1 ( q ) ( W ) [ U , V ] + D 2 A ˉ t ( q ) ( W ) [ U , V ] ⊙ h t − 1 ( q ) + D A ˉ t ( q ) ( W ) [ U ] ⊙ D h t − 1 ( q ) ( W ) [ V ] + D A ˉ t ( q ) ( W ) [ V ] ⊙ D h t − 1 ( q ) ( W ) [ U ] + D 2 [ B t ( q ) ( Δ t ( q ) ⊙ x t ( q ) ) T ] ( W ) [ U , V ] . (362) \begin{aligned}
D^2h_t^{(q)}(W)[U,V]
&=\bar{A}_t^{(q)}\odot D^2h_{t-1}^{(q)}(W)[U,V]+D^2\bar{A}_t^{(q)}(W)[U,V]\odot h_{t-1}^{(q)} \\
&\quad+D\bar{A}_t^{(q)}(W)[U]\odot Dh_{t-1}^{(q)}(W)[V]+D\bar{A}_t^{(q)}(W)[V]\odot Dh_{t-1}^{(q)}(W)[U] \\
&\quad+D^2\left[B_t^{(q)}\left(\Delta_t^{(q)}\odot x_t^{(q)}\right)^{\mathsf{T}}\right](W)[U,V]. \tag*{(362)}
\end{aligned} D 2 h t ( q ) ( W ) [ U , V ] = A ˉ t ( q ) ⊙ D 2 h t − 1 ( q ) ( W ) [ U , V ] + D 2 A ˉ t ( q ) ( W ) [ U , V ] ⊙ h t − 1 ( q ) + D A ˉ t ( q ) ( W ) [ U ] ⊙ D h t − 1 ( q ) ( W ) [ V ] + D A ˉ t ( q ) ( W ) [ V ] ⊙ D h t − 1 ( q ) ( W ) [ U ] + D 2 [ B t ( q ) ( Δ t ( q ) ⊙ x t ( q ) ) T ] ( W ) [ U , V ] . (362)
Then, since the absolute values of the first and second derivatives of Softplus are bounded above by 1 and 1 / 4 1/4 1/4 , respectively, the product and chain rule give:
∥ D Δ t ( q ) ( W ) [ U ] ∥ 2 ≤ L x , q + M Δ , q Θ q − 1 , (363) \left\|D\Delta_t^{(q)}(W)[U]\right\|_2 \le L_{x,q}+M_{\Delta,q}\Theta_{q-1}, \tag*{(363)} D Δ t ( q ) ( W ) [ U ] 2 ≤ L x , q + M Δ , q Θ q − 1 , (363)
∥ D Δ t ( q ) ( W ) [ V ] ∥ 2 ≤ L x , q + M Δ , q Θ q − 1 , (364) \left\|D\Delta_t^{(q)}(W)[V]\right\|_2 \le L_{x,q}+M_{\Delta,q}\Theta_{q-1}, \tag*{(364)} D Δ t ( q ) ( W ) [ V ] 2 ≤ L x , q + M Δ , q Θ q − 1 , (364)
∥ D 2 Δ t ( q ) ( W ) [ U , V ] ∥ 2 ≤ 1 4 ( L x , q + M Δ , q Θ q − 1 ) 2 + 2 Θ q − 1 + M Δ , q ∥ D 2 x t ( q ) ( W ) [ U , V ] ∥ 2 . (365) \left\|D^2\Delta_t^{(q)}(W)[U,V]\right\|_2
\le\frac{1}{4}\left(L_{x,q}+M_{\Delta,q}\Theta_{q-1}\right)^2+2\Theta_{q-1}+M_{\Delta,q}\left\|D^2x_t^{(q)}(W)[U,V]\right\|_2. \tag*{(365)} D 2 Δ t ( q ) ( W ) [ U , V ] 2 ≤ 4 1 ( L x , q + M Δ , q Θ q − 1 ) 2 + 2 Θ q − 1 + M Δ , q D 2 x t ( q ) ( W ) [ U , V ] 2 . (365)
Then, applying the product rule and the exponential chain rule (per every entry of A A A ), and using the established state and first-derivative bounds, we get:
∥ D 2 h t ( q ) ( W ) [ U , V ] ∥ F ≤ ρ q ∥ D 2 h t − 1 ( q ) ( W ) [ U , V ] ∥ F + E q + M Λ x , q ∥ D 2 x t ( q ) ( W ) [ U , V ] ∥ 2 , (366) \left\|D^2h_t^{(q)}(W)[U,V]\right\|_F
\le\rho_q\left\|D^2h_{t-1}^{(q)}(W)[U,V]\right\|_F+\mathcal{E}_q+M_{\Lambda_x,q}\left\|D^2x_t^{(q)}(W)[U,V]\right\|_2, \tag*{(366)} D 2 h t ( q ) ( W ) [ U , V ] F ≤ ρ q D 2 h t − 1 ( q ) ( W ) [ U , V ] F + E q + M Λ x , q D 2 x t ( q ) ( W ) [ U , V ] 2 , (366)
where we collected all the terms independent of the second input derivative in E q \mathcal{E}_q E q , defined as
E q : = ρ q H R q [ ( M K Δ , q + M A , q ( L x , q + M Δ , q Θ q − 1 ) ) 2 + 2 ( L x , q + M Δ , q Θ q − 1 ) + M A , q ( 1 4 ( L x , q + M Δ , q Θ q − 1 ) 2 + 2 Θ q − 1 ) ] + 2 ρ q ( M K Δ , q + M A , q ( L x , q + M Δ , q Θ q − 1 ) ) ( J R q + M Λ x , q Θ q − 1 1 − ρ q ) + 2 Θ q − 1 M K Δ , q L x , q + 2 ( L x , q + M B , q Θ q − 1 ) [ L x , q ( L x , q + M Δ , q Θ q − 1 ) + M K Δ , q Θ q − 1 ] + M B , q L x , q [ L x , q ( 1 4 ( L x , q + M Δ , q Θ q − 1 ) 2 + 2 Θ q − 1 ) + 2 ( L x , q + M Δ , q Θ q − 1 ) Θ q − 1 ] . (367) \begin{aligned}
\mathcal{E}_q := {} & \rho_q H_{R_q}\Bigl[(M_{K_{\Delta,q}}+M_{A,q}(L_{x,q}+M_{\Delta,q}\Theta_{q-1}))^2+2(L_{x,q}+M_{\Delta,q}\Theta_{q-1}) \\
&\quad+M_{A,q}\Bigl(\frac{1}{4}(L_{x,q}+M_{\Delta,q}\Theta_{q-1})^2+2\Theta_{q-1}\Bigr)\Bigr] \\
&+2\rho_q(M_{K_{\Delta,q}}+M_{A,q}(L_{x,q}+M_{\Delta,q}\Theta_{q-1}))\Bigl(J_{R_q}+\frac{M_{\Lambda_x,q}\Theta_{q-1}}{1-\rho_q}\Bigr) \\
&+2\Theta_{q-1}M_{K_{\Delta,q}}L_{x,q} \\
&+2(L_{x,q}+M_{B,q}\Theta_{q-1})[L_{x,q}(L_{x,q}+M_{\Delta,q}\Theta_{q-1})+M_{K_{\Delta,q}}\Theta_{q-1}] \\
&+M_{B,q}L_{x,q}\Bigl[L_{x,q}\Bigl(\frac{1}{4}(L_{x,q}+M_{\Delta,q}\Theta_{q-1})^2+2\Theta_{q-1}\Bigr)+2(L_{x,q}+M_{\Delta,q}\Theta_{q-1})\Theta_{q-1}\Bigr]. \tag*{(367)}
\end{aligned} E q := ρ q H R q [ ( M K Δ , q + M A , q ( L x , q + M Δ , q Θ q − 1 ) ) 2 + 2 ( L x , q + M Δ , q Θ q − 1 ) + M A , q ( 4 1 ( L x , q + M Δ , q Θ q − 1 ) 2 + 2 Θ q − 1 ) ] + 2 ρ q ( M K Δ , q + M A , q ( L x , q + M Δ , q Θ q − 1 )) ( J R q + 1 − ρ q M Λ x , q Θ q − 1 ) + 2 Θ q − 1 M K Δ , q L x , q + 2 ( L x , q + M B , q Θ q − 1 ) [ L x , q ( L x , q + M Δ , q Θ q − 1 ) + M K Δ , q Θ q − 1 ] + M B , q L x , q [ L x , q ( 4 1 ( L x , q + M Δ , q Θ q − 1 ) 2 + 2 Θ q − 1 ) + 2 ( L x , q + M Δ , q Θ q − 1 ) Θ q − 1 ] . (367)
The first term in E q \mathcal{E}_q E q comes from the second transition derivative multiplied entrywise by the state:
D 2 A ˉ t ( q ) ( W ) [ U , V ] ⊙ h t − 1 ( q ) . D^2\bar{A}^{(q)}_t(W)[U,V]\odot h^{(q)}_{t-1}. D 2 A ˉ t ( q ) ( W ) [ U , V ] ⊙ h t − 1 ( q ) .
The second comes from the two mixed transition-state terms,
D A ˉ t ( q ) ( W ) [ U ] ⊙ D h t − 1 ( q ) ( W ) [ V ] + D A ˉ t ( q ) ( W ) [ V ] ⊙ D h t − 1 ( q ) ( W ) [ U ] . D\bar{A}^{(q)}_t(W)[U]\odot Dh^{(q)}_{t-1}(W)[V]+D\bar{A}^{(q)}_t(W)[V]\odot Dh^{(q)}_{t-1}(W)[U]. D A ˉ t ( q ) ( W ) [ U ] ⊙ D h t − 1 ( q ) ( W ) [ V ] + D A ˉ t ( q ) ( W ) [ V ] ⊙ D h t − 1 ( q ) ( W ) [ U ] .
The remaining three terms come from differentiating the additive state term
B t ( q ) ( Δ t ( q ) ⊙ x t ( q ) ) T B^{(q)}_t\left(\Delta^{(q)}_t\odot x^{(q)}_t\right)^{\mathsf{T}} B t ( q ) ( Δ t ( q ) ⊙ x t ( q ) ) T
twice. The contributions involving the second input derivative are collectively bounded by
M Λ x , q ∥ D 2 x t ( q ) ( W ) [ U , V ] ∥ 2 , M_{\Lambda_x,q}\left\|D^2x^{(q)}_t(W)[U,V]\right\|_2, M Λ x , q D 2 x t ( q ) ( W ) [ U , V ] 2 ,
where M Λ x , q M_{\Lambda_x,q} M Λ x , q was defined in (324).
Since the initial state and its derivatives equal 0, unrolling (365) and summing the geometric series gives
∥ D 2 h t ( q ) ( W ) [ U , V ] ∥ F ≤ E q 1 − ρ q + M Λ x , q 1 − ρ q max 1 ≤ j ≤ t ∥ D 2 x j ( q ) ( W ) [ U , V ] ∥ 2 . (368) \left\|D^2h^{(q)}_t(W)[U,V]\right\|_F\leq\frac{\mathcal{E}_q}{1-\rho_q}+\frac{M_{\Lambda_x,q}}{1-\rho_q}\max_{1\leq j\leq t}\left\|D^2x^{(q)}_j(W)[U,V]\right\|_2. \tag*{(368)} D 2 h t ( q ) ( W ) [ U , V ] F ≤ 1 − ρ q E q + 1 − ρ q M Λ x , q 1 ≤ j ≤ t max D 2 x j ( q ) ( W ) [ U , V ] 2 . (368)
Next, we note that since ∥ D 2 x t ( q ) ( W ) [ U , V ] ∥ 2 ≤ max 1 ≤ j ≤ t ∥ D 2 x j ( q ) ( W ) [ U , V ] ∥ 2 \left\|D^2x^{(q)}_t(W)[U,V]\right\|_2\leq\max_{1\leq j\leq t}\left\|D^2x^{(q)}_j(W)[U,V]\right\|_2 D 2 x t ( q ) ( W ) [ U , V ] 2 ≤ max 1 ≤ j ≤ t D 2 x j ( q ) ( W ) [ U , V ] 2 , substituting (367) and using this fact, the new coefficient of the max 1 ≤ j ≤ t ∥ D 2 x j ( q ) ( W ) [ U , V ] ∥ 2 \max_{1\leq j\leq t}\left\|D^2x^{(q)}_j(W)[U,V]\right\|_2 max 1 ≤ j ≤ t D 2 x j ( q ) ( W ) [ U , V ] 2 term becomes:
M C , q H R q + M C , q L x , q M Λ x , q 1 − ρ q = M κ , q . (369) M_{C,q}H_{R_q}+\frac{M_{C,q}L_{x,q}M_{\Lambda_x,q}}{1-\rho_q}=M_{\kappa,q}. \tag*{(369)} M C , q H R q + 1 − ρ q M C , q L x , q M Λ x , q = M κ , q . (369)
Finally, we define a new recursive term Ω q \Omega_q Ω q as follows:
Ω 0 : = 0 , \Omega_0:=0, Ω 0 := 0 ,
Ω q : = M C , q L x , q E q 1 − ρ q + 2 ( L x , q + M C , q Θ q − 1 ) ( J R q + M Λ x , q Θ q − 1 1 − ρ q ) + 2 H R q Θ q − 1 + M κ , q Ω q − 1 . (370) \Omega_q:=\frac{M_{C,q}L_{x,q}\mathcal{E}_q}{1-\rho_q}+2(L_{x,q}+M_{C,q}\Theta_{q-1})\left(J_{R_q}+\frac{M_{\Lambda_x,q}\Theta_{q-1}}{1-\rho_q}\right)+2H_{R_q}\Theta_{q-1}+M_{\kappa,q}\Omega_{q-1}. \tag*{(370)} Ω q := 1 − ρ q M C , q L x , q E q + 2 ( L x , q + M C , q Θ q − 1 ) ( J R q + 1 − ρ q M Λ x , q Θ q − 1 ) + 2 H R q Θ q − 1 + M κ , q Ω q − 1 . (370)
For q = 1 q=1 q = 1 , second input derivative vanishes. Then, for q ≥ 2 q\geq2 q ≥ 2 , and using the similar induction argument as in the first-order derivative, as well as the fact x j ( q ) = y j ( q − 1 ) x^{(q)}_j=y^{(q-1)}_j x j ( q ) = y j ( q − 1 ) , the induction yields:
∥ D 2 y t ( q ) ( W ) [ U , V ] ∥ 2 ≤ Ω q (371) \left\|D^2y^{(q)}_t(W)[U,V]\right\|_2\leq\Omega_q \tag*{(371)} D 2 y t ( q ) ( W ) [ U , V ] 2 ≤ Ω q (371)
for every layer and token position. All constants are finite and independent of W W W , ξ \xi ξ , S S S , and t t t , because the neighborhood envelopes are fixed, ρ q < 1 \rho_q < 1 ρ q < 1 , and Q Q Q is finite.
Finally, applying this bound to q = Q q = Q q = Q , and substituting the result into (341) it follows that:
∣ D 2 ( ℓ t ( y t ( Q ) ) ) ( W ) [ U , V ] ∣ ≤ H Θ Θ Q 2 + L ℓ Ω Q = : L S S M , R Q ( Q ) . (372) \left|D^2\left(\ell_t\left(y_t^{(Q)}\right)\right)(W)[U,V]\right| \le H_\Theta\Theta_Q^2 + L_\ell\Omega_Q =: L_{\mathrm{SSM},R_Q}^{(Q)}. \tag*{(372)} D 2 ( ℓ t ( y t ( Q ) ) ) ( W ) [ U , V ] ≤ H Θ Θ Q 2 + L ℓ Ω Q =: L SSM , R Q ( Q ) . (372)
Averaging over the token losses preserves this bound. Since U , V U,V U , V are arbitrary unit directions, it is true that:
∥ ∇ W 2 L S , ( Q ) ( W ; ξ ) ∥ o p ≤ L S S M , R Q ( Q ) , (373) \left\|\nabla_W^2\mathcal{L}^{S,(Q)}(W;\xi)\right\|_{\mathrm{op}} \le L_{\mathrm{SSM},R_Q}^{(Q)}, \tag*{(373)} ∇ W 2 L S , ( Q ) ( W ; ξ ) op ≤ L SSM , R Q ( Q ) , (373)
where the operator norm is induced by the block Frobenius norm.
Since N R Q \mathcal{N}_{R_Q} N R Q is convex, integrating the Hessian along the segment joining any W 0 , W 1 ∈ N R Q W_0,W_1 \in\mathcal{N}_{R_Q} W 0 , W 1 ∈ N R Q gives
∥ ∇ W L S , ( Q ) ( W 1 ; ξ ) − ∇ W L S , ( Q ) ( W 0 ; ξ ) ∥ F ≤ L S S M , R Q ( Q ) ∥ W 1 − W 0 ∥ F . (374) \left\|\nabla_W\mathcal{L}^{S,(Q)}(W_1;\xi)-\nabla_W\mathcal{L}^{S,(Q)}(W_0;\xi)\right\|_F \le L_{\mathrm{SSM},R_Q}^{(Q)}\left\|W_1-W_0\right\|_F. \tag*{(374)} ∇ W L S , ( Q ) ( W 1 ; ξ ) − ∇ W L S , ( Q ) ( W 0 ; ξ ) F ≤ L SSM , R Q ( Q ) ∥ W 1 − W 0 ∥ F . (374)
Taking expectations, by Assumption 4.6 and Jensen’s inequality, we get:
∥ ∇ W L k ( W 1 ) − ∇ W L k ( W 0 ) ∥ F = ∥ E ξ ∼ P k [ ∇ W L S , ( Q ) ( W 1 ; ξ ) − ∇ W L S , ( Q ) ( W 0 ; ξ ) ] ∥ F ≤ E ξ ∼ P k [ ∥ ∇ W L S , ( Q ) ( W 1 ; ξ ) − ∇ W L S , ( Q ) ( W 0 ; ξ ) ∥ F ] ≤ L S S M , R Q ( Q ) ∥ W 1 − W 0 ∥ F , (375) \begin{aligned}
\left\|\nabla_W L_k(W_1)-\nabla_W L_k(W_0)\right\|_F
&= \left\|\mathbb{E}_{\xi\sim\mathcal{P}_k}\left[\nabla_W\mathcal{L}^{S,(Q)}(W_1;\xi)-\nabla_W\mathcal{L}^{S,(Q)}(W_0;\xi)\right]\right\|_F \\
&\le\mathbb{E}_{\xi\sim\mathcal{P}_k}\left[\left\|\nabla_W\mathcal{L}^{S,(Q)}(W_1;\xi)-\nabla_W\mathcal{L}^{S,(Q)}(W_0;\xi)\right\|_F\right] \\
&\le L_{\mathrm{SSM},R_Q}^{(Q)}\left\|W_1-W_0\right\|_F, \tag*{(375)}
\end{aligned} ∥ ∇ W L k ( W 1 ) − ∇ W L k ( W 0 ) ∥ F = E ξ ∼ P k [ ∇ W L S , ( Q ) ( W 1 ; ξ ) − ∇ W L S , ( Q ) ( W 0 ; ξ ) ] F ≤ E ξ ∼ P k [ ∇ W L S , ( Q ) ( W 1 ; ξ ) − ∇ W L S , ( Q ) ( W 0 ; ξ ) F ] ≤ L SSM , R Q ( Q ) ∥ W 1 − W 0 ∥ F , (375)
demonstrating that every client objective is L S S M , R Q ( Q ) L_{\mathrm{SSM},R_Q}^{(Q)} L SSM , R Q ( Q ) -smooth on N R Q \mathcal{N}_{R_Q} N R Q .
Finally, since this inequality holds for every client objective, and p k ≥ 0 p_k \ge0 p k ≥ 0 and ∑ k p k = 1 \sum_k p_k = 1 ∑ k p k = 1 , it also holds for f = ∑ k p k L k f = \sum_k p_kL_k f = ∑ k p k L k , demonstrating that f f f is also L S S M , R Q ( Q ) L_{\mathrm{SSM},R_Q}^{(Q)} L SSM , R Q ( Q ) -smooth on N R Q \mathcal{N}_{R_Q} N R Q , completing the proof. □ \square □
Multi-layer SSM gradient second-moment constant lemma and proof
Lemma C.5 (Multi-layer SSM gradient second-moment constant). Suppose the Assumptions 4.2 and C.1 hold. Let N R Q ( W r ) ⊆ S γ , δ ( Q ) \mathcal{N}_{R_Q}(W^r) \subseteq\mathcal{S}_{\gamma,\delta}^{(Q)} N R Q ( W r ) ⊆ S γ , δ ( Q ) be a stable local model neighborhood around the round-r r r broadcast Q Q Q -deep model W r W^r W r . Let:
g ( W ; ξ ) : = ∇ W L S , ( Q ) ( W ; ξ ) (376) g(W;\xi) := \nabla_W\mathcal{L}^{S,(Q)}(W;\xi) \tag*{(376)} g ( W ; ξ ) := ∇ W L S , ( Q ) ( W ; ξ ) (376) denote the stochastic sequence-level gradient for a sampled input-target sequence pair ξ = ( x 1 : S , y 1 : S ∗ ) \xi= (x_{1:S},y^*_{1:S}) ξ = ( x 1 : S , y 1 : S ∗ ) . Then, for every W ∈ N R Q ( W r ) W \in\mathcal{N}_{R_Q}(W^r) W ∈ N R Q ( W r ) ,
E ξ ∥ g ( W ; ξ ) ∥ F 2 ≤ ( G S S M , R Q ( Q ) ) 2 , (377) \mathbb{E}_{\xi}\left\|g(W;\xi)\right\|_F^2 \le\left(G_{\mathrm{SSM},R_Q}^{(Q)}\right)^2, \tag*{(377)} E ξ ∥ g ( W ; ξ ) ∥ F 2 ≤ ( G SSM , R Q ( Q ) ) 2 , (377) where
G S S M , R Q ( Q ) : = L ℓ ( ∑ q = 1 Q L x , q 2 ( H R q + M C , q J R q ) 2 ∏ q ′ = q + 1 Q M κ , q ′ 2 ) 1 / 2 = L ℓ Θ Q . (378) G_{\mathrm{SSM},R_Q}^{(Q)} := L_\ell\left(\sum_{q=1}^{Q}L_{x,q}^2\left(H_{R_q}+M_{C,q}J_{R_q}\right)^2\prod_{q'=q+1}^{Q}M_{\kappa,q'}^2\right)^{1/2}=L_\ell\Theta_Q. \tag*{(378)} G SSM , R Q ( Q ) := L ℓ q = 1 ∑ Q L x , q 2 ( H R q + M C , q J R q ) 2 q ′ = q + 1 ∏ Q M κ , q ′ 2 1/2 = L ℓ Θ Q . (378) where H R q H_{R_q} H R q , J R q J_{R_q} J R q , M C , q M_{C,q} M C , q and M κ , q M_{\kappa,q} M κ , q are defined in (323) , (324) , (316) , and (326) respectively.
Proof of Lemma C.5: By Theorem C.3, under the assumptions of the lemma, for every W ∈ N R Q ( W r ) ⊆ S γ , δ ( Q ) W \in\mathcal{N}_{R_Q}(W^r) \subseteq\mathcal{S}_{\gamma,\delta}^{(Q)} W ∈ N R Q ( W r ) ⊆ S γ , δ ( Q ) , every finite integer S ≥ 1 S \ge1 S ≥ 1 , and every admissible length-S S S sequence pair ξ ∈ Z \xi\in\mathcal{Z} ξ ∈ Z , we have:
∥ ∇ W L S , ( Q ) ( W ; ξ ) ∥ F ≤ L ℓ ( ∑ q = 1 Q L x , q 2 ( H q + ∥ W C ( q ) ∥ 2 J q ) 2 ∏ q ′ = q + 1 Q κ q ′ 2 ) 1 / 2 . \left\|\nabla_W\mathcal{L}^{S,(Q)}(W;\xi)\right\|_F \le L_\ell\left(\sum_{q=1}^{Q}L_{x,q}^2\left(H_q+\left\|W_C^{(q)}\right\|_2J_q\right)^2\prod_{q'=q+1}^{Q}\kappa_{q'}^2\right)^{1/2}. ∇ W L S , ( Q ) ( W ; ξ ) F ≤ L ℓ q = 1 ∑ Q L x , q 2 ( H q + W C ( q ) 2 J q ) 2 q ′ = q + 1 ∏ Q κ q ′ 2 1/2 .
Since g ( W ; ξ ) = ∇ W L S , ( Q ) ( W ; ξ ) g(W;\xi)=\nabla_W\mathcal{L}^{S,(Q)}(W;\xi) g ( W ; ξ ) = ∇ W L S , ( Q ) ( W ; ξ ) , it follows that:
∥ g ( W ; ξ ) ∥ F ≤ L ℓ ( ∑ q = 1 Q L x , q 2 ( H q + ∥ W C ( q ) ∥ 2 2 J q ) 2 ∏ q ′ = q + 1 Q κ q ′ 2 ) 1 / 2 . (379) \lVert g(W;\xi)\rVert_F \le L_\ell\left(\sum_{q=1}^{Q}L_{x,q}^{2}\left(H_q+\lVert W_C^{(q)}\rVert_2^2J_q\right)^2\prod_{q'=q+1}^{Q}\kappa_{q'}^2\right)^{1/2}. \tag*{(379)} ∥ g ( W ; ξ ) ∥ F ≤ L ℓ q = 1 ∑ Q L x , q 2 ( H q + ∥ W C ( q ) ∥ 2 2 J q ) 2 q ′ = q + 1 ∏ Q κ q ′ 2 1/2 . (379)
Restricting to W ∈ N R Q ( W r ) W\in\mathcal{N}_{R_Q}(W^r) W ∈ N R Q ( W r ) , by the local neighborhood bounds defined previously ((322), (323), (315), and (325)),
H q ≤ H R q , ∥ W C ( q ) ∥ 2 ≤ M C , q , J q ≤ J R q , κ q ≤ M κ , q . (380) H_q\le H_{R_q},\qquad\lVert W_C^{(q)}\rVert_2\le M_{C,q},\qquad J_q\le J_{R_q},\qquad\kappa_q\le M_{\kappa,q}. \tag*{(380)} H q ≤ H R q , ∥ W C ( q ) ∥ 2 ≤ M C , q , J q ≤ J R q , κ q ≤ M κ , q . (380)
Therefore,
∥ g ( W ; ξ ) ∥ F ≤ L ℓ ( ∑ q = 1 Q L x , q 2 ( H R q + M C , q J R q ) 2 ∏ q ′ = q + 1 Q M κ , q ′ 2 ) 1 / 2 = G S S M , R Q ( Q ) . (381) \lVert g(W;\xi)\rVert_F\le L_\ell\left(\sum_{q=1}^{Q}L_{x,q}^{2}\left(H_{R_q}+M_{C,q}J_{R_q}\right)^2\prod_{q'=q+1}^{Q}M_{\kappa,q'}^2\right)^{1/2}=G_{\mathrm{SSM},R_Q}^{(Q)}. \tag*{(381)} ∥ g ( W ; ξ ) ∥ F ≤ L ℓ q = 1 ∑ Q L x , q 2 ( H R q + M C , q J R q ) 2 q ′ = q + 1 ∏ Q M κ , q ′ 2 1/2 = G SSM , R Q ( Q ) . (381)
Since both values are non-negative, squaring both sides gives:
∥ g ( W ; ξ ) ∥ F 2 ≤ ( G S S M , R Q ( Q ) ) 2 = L ℓ 2 ( ∑ q = 1 Q L x , q 2 ( H R q + M C , q J R q ) 2 ∏ q ′ = q + 1 Q M κ , q ′ 2 ) . (382) \lVert g(W;\xi)\rVert_F^2\le\left(G_{\mathrm{SSM},R_Q}^{(Q)}\right)^2=L_\ell^2\left(\sum_{q=1}^{Q}L_{x,q}^{2}\left(H_{R_q}+M_{C,q}J_{R_q}\right)^2\prod_{q'=q+1}^{Q}M_{\kappa,q'}^2\right). \tag*{(382)} ∥ g ( W ; ξ ) ∥ F 2 ≤ ( G SSM , R Q ( Q ) ) 2 = L ℓ 2 q = 1 ∑ Q L x , q 2 ( H R q + M C , q J R q ) 2 q ′ = q + 1 ∏ Q M κ , q ′ 2 . (382)
Finally, taking expectation over the sampled sequence ξ \xi ξ preserves the bound:
E ξ [ ∥ g ( W ; ξ ) ∥ F 2 ] ≤ ( G S S M , R Q ( Q ) ) 2 (383) \mathbb{E}_{\xi}\left[\lVert g(W;\xi)\rVert_F^2\right]\le\left(G_{\mathrm{SSM},R_Q}^{(Q)}\right)^2 \tag*{(383)} E ξ [ ∥ g ( W ; ξ ) ∥ F 2 ] ≤ ( G SSM , R Q ( Q ) ) 2 (383)
proving the lemma.
Multi-layer SSM stochastic gradient variance bound lemma and proof
Lemma C.6 (Multi-layer SSM stochastic gradient variance bound). Suppose the assumptions of Lemma C.5 and Assumption 4.6 hold. Let
L ( W ) : = E ξ ∼ P [ L S , ( Q ) ( W ; ξ ) ] \mathcal{L}(W):=\mathbb{E}_{\xi\sim\mathcal{P}}\left[\mathcal{L}^{S,(Q)}(W;\xi)\right] L ( W ) := E ξ ∼ P [ L S , ( Q ) ( W ; ξ ) ] denote the expected sequence loss over some local data distribution P \mathcal{P} P , for a Q Q Q -layer deep SSM parameterized by W W W . Define
g ( W ; ξ ) : = ∇ W L S , ( Q ) ( W ; ξ ) g(W;\xi):=\nabla_W\mathcal{L}^{S,(Q)}(W;\xi) g ( W ; ξ ) := ∇ W L S , ( Q ) ( W ; ξ ) as the single-sequence stochastic gradient. For a mini-batch Ξ ξ = { ξ 1 , … , ξ Ξ } \Xi_\xi=\{\xi_1,\ldots,\xi_{\Xi}\} Ξ ξ = { ξ 1 , … , ξ Ξ } of Ξ \Xi Ξ independent sampled sequences, define
g Ξ ( W ; Ξ ξ ) : = 1 Ξ ∑ j = 1 Ξ g ( W ; ξ j ) . (384) g_{\Xi}(W;\Xi_\xi):=\frac{1}{\Xi}\sum_{j=1}^{\Xi}g(W;\xi_j). \tag*{(384)} g Ξ ( W ; Ξ ξ ) := Ξ 1 j = 1 ∑ Ξ g ( W ; ξ j ) . (384) Then, for every W ∈ N R Q ( W r ) W\in\mathcal{N}_{R_Q}(W^r) W ∈ N R Q ( W r ) it follows that
E Ξ ξ [ ∥ g Ξ ( W ; Ξ ξ ) − ∇ W L ( W ) ∥ F 2 ] ≤ ( σ S S M , R Q , Ξ ( Q ) ) 2 , (385) \mathbb{E}_{\Xi_\xi}\left[\left\lVert g_{\Xi}(W;\Xi_\xi)-\nabla_W\mathcal{L}(W)\right\rVert_F^2\right]\le\left(\sigma_{\mathrm{SSM},R_Q,\Xi}^{(Q)}\right)^2, \tag*{(385)} E Ξ ξ [ ∥ g Ξ ( W ; Ξ ξ ) − ∇ W L ( W ) ∥ F 2 ] ≤ ( σ SSM , R Q , Ξ ( Q ) ) 2 , (385) where
( σ S S M , R Q , Ξ ( Q ) ) 2 : = 1 Ξ sup W ∈ N R Q ( W r ) ( E ξ ∼ P ∥ g ( W ; ξ ) ∥ F 2 − ∥ ∇ W L ( W ) ∥ F 2 ) . (386) \left(\sigma_{\mathrm{SSM},R_Q,\Xi}^{(Q)}\right)^2:=\frac{1}{\Xi}\sup_{W\in\mathcal{N}_{R_Q}(W^r)}\left(\mathbb{E}_{\xi\sim\mathcal{P}}\lVert g(W;\xi)\rVert_F^2-\lVert\nabla_W\mathcal{L}(W)\rVert_F^2\right). \tag*{(386)} ( σ SSM , R Q , Ξ ( Q ) ) 2 := Ξ 1 W ∈ N R Q ( W r ) sup ( E ξ ∼ P ∥ g ( W ; ξ ) ∥ F 2 − ∥ ∇ W L ( W ) ∥ F 2 ) . (386) Moreover, by Lemma C.5,
( σ S S M , R Q , Ξ ( Q ) ) 2 ≤ ( G S S M , R Q ( Q ) ) 2 Ξ . (387) \left(\sigma_{\mathrm{SSM},R_Q,\Xi}^{(Q)}\right)^2\le\frac{\left(G_{\mathrm{SSM},R_Q}^{(Q)}\right)^2}{\Xi}. \tag*{(387)} ( σ SSM , R Q , Ξ ( Q ) ) 2 ≤ Ξ ( G SSM , R Q ( Q ) ) 2 . (387)
Proof of Lemma C.6: By unbiasedness and independence of the sampled sequences, the standard mini-batch variance identity gives:
E Ξ [ ∥ g Ξ ( W ; Ξ ξ ) − ∇ W L ( W ) ∥ F 2 ] = 1 Ξ E ξ ∼ P [ ∥ g ( W ; ξ ) − ∇ W L ( W ) ∥ F 2 ] . \mathbb{E}_{\Xi}\left[\left\|g_{\Xi}(W;\Xi_{\xi})-\nabla_W\mathcal{L}(W)\right\|_F^2\right]=\frac{1}{\Xi}\mathbb{E}_{\xi\sim\mathcal{P}}\left[\left\|g(W;\xi)-\nabla_W\mathcal{L}(W)\right\|_F^2\right]. E Ξ [ ∥ g Ξ ( W ; Ξ ξ ) − ∇ W L ( W ) ∥ F 2 ] = Ξ 1 E ξ ∼ P [ ∥ g ( W ; ξ ) − ∇ W L ( W ) ∥ F 2 ] .
Using the identity
E ξ ∼ P [ ∥ g ( W ; ξ ) − ∇ W L ( W ) ∥ F 2 ] = E ξ ∼ P [ ∥ g ( W ; ξ ) ∥ F 2 ] − ∥ ∇ W L ( W ) ∥ F 2 , (388) \mathbb{E}_{\xi\sim\mathcal{P}}\left[\left\|g(W;\xi)-\nabla_W\mathcal{L}(W)\right\|_F^2\right]=\mathbb{E}_{\xi\sim\mathcal{P}}\left[\|g(W;\xi)\|_F^2\right]-\|\nabla_W\mathcal{L}(W)\|_F^2, \tag*{(388)} E ξ ∼ P [ ∥ g ( W ; ξ ) − ∇ W L ( W ) ∥ F 2 ] = E ξ ∼ P [ ∥ g ( W ; ξ ) ∥ F 2 ] − ∥ ∇ W L ( W ) ∥ F 2 , (388)
and taking the supremum over W ∈ N R Q ( W r ) W\in\mathcal{N}_{\mathrm{R}_Q}(W^r) W ∈ N R Q ( W r ) , we obtain
E Ξ [ ∥ g Ξ ( W ; Ξ ξ ) − ∇ W L ( W ) ∥ F 2 ] ≤ ( σ S S M , R Q , Ξ ( Q ) ) 2 . (389) \mathbb{E}_{\Xi}\left[\left\|g_{\Xi}(W;\Xi_{\xi})-\nabla_W\mathcal{L}(W)\right\|_F^2\right]\leq\left(\sigma_{\mathrm{SSM},\mathrm{R}_Q,\Xi}^{(Q)}\right)^2. \tag*{(389)} E Ξ [ ∥ g Ξ ( W ; Ξ ξ ) − ∇ W L ( W ) ∥ F 2 ] ≤ ( σ SSM , R Q , Ξ ( Q ) ) 2 . (389)
Finally, Lemma C.5 gives
E ξ ∼ P [ ∥ g ( W ; ξ ) ∥ F 2 ] ≤ ( G S S M , R Q ( Q ) ) 2 \mathbb{E}_{\xi\sim\mathcal{P}}\left[\|g(W;\xi)\|_F^2\right]\leq\left(G_{\mathrm{SSM},\mathrm{R}_Q}^{(Q)}\right)^2 E ξ ∼ P [ ∥ g ( W ; ξ ) ∥ F 2 ] ≤ ( G SSM , R Q ( Q ) ) 2
and since ∥ ∇ W L ( W ) ∥ F 2 ≥ 0 \|\nabla_W\mathcal{L}(W)\|_F^2\geq0 ∥ ∇ W L ( W ) ∥ F 2 ≥ 0 ,
( σ S S M , R Q , Ξ ( Q ) ) 2 ≤ ( G S S M , R Q ( Q ) ) 2 Ξ . (390) \left(\sigma_{\mathrm{SSM},\mathrm{R}_Q,\Xi}^{(Q)}\right)^2\leq\frac{\left(G_{\mathrm{SSM},\mathrm{R}_Q}^{(Q)}\right)^2}{\Xi}. \tag*{(390)} ( σ SSM , R Q , Ξ ( Q ) ) 2 ≤ Ξ ( G SSM , R Q ( Q ) ) 2 . (390)
This proves the claim.
Multi-layer SSM client heterogeneity bound under total variation lemma and proof
Lemma C.7 (Multi-layer SSM client heterogeneity bound under total variation). Suppose the assumptions of Lemma C.5 and Assumption 4.6 hold. Let
f ( W ) : = ∑ k = 1 K p k L k ( W ) (391) f(W):=\sum_{k=1}^{K}p_k\mathcal{L}_k(W) \tag*{(391)} f ( W ) := k = 1 ∑ K p k L k ( W ) (391)
be the global objective, where p k ≥ 0 p_k\geq0 p k ≥ 0 and ∑ k = 1 K p k = 1 \sum_{k=1}^{K}p_k=1 ∑ k = 1 K p k = 1 . Let P k \mathcal{P}_k P k denote the local data distribution of client k k k , and define the global mixture distribution as:
P ˉ : = ∑ k = 1 K p k P k . (392) \bar{\mathcal{P}}:=\sum_{k=1}^{K}p_k\mathcal{P}_k. \tag*{(392)} P ˉ := k = 1 ∑ K p k P k . (392)
Define the local client heterogeneity constant
( Γ S S M , R Q ( Q ) ) 2 : = sup W ∈ N R Q ( W r ) ∑ k = 1 K p k ∥ ∇ W L k ( W ) − ∇ W f ( W ) ∥ F 2 . (393) \left(\Gamma_{\mathrm{SSM},\mathrm{R}_Q}^{(Q)}\right)^2:=\sup_{W\in\mathcal{N}_{\mathrm{R}_Q}(W^r)}\sum_{k=1}^{K}p_k\left\|\nabla_W\mathcal{L}_k(W)-\nabla_W f(W)\right\|_F^2. \tag*{(393)} ( Γ SSM , R Q ( Q ) ) 2 := W ∈ N R Q ( W r ) sup k = 1 ∑ K p k ∥ ∇ W L k ( W ) − ∇ W f ( W ) ∥ F 2 . (393)
Then:
( Γ S S M , R Q ( Q ) ) 2 ≤ 4 ( G S S M , R Q ( Q ) ) 2 ∑ k = 1 K p k TV ( P k , P ˉ ) 2 , (394) \left(\Gamma_{\mathrm{SSM},\mathrm{R}_Q}^{(Q)}\right)^2\leq4\left(G_{\mathrm{SSM},\mathrm{R}_Q}^{(Q)}\right)^2\sum_{k=1}^{K}p_k\,\operatorname{TV}(\mathcal{P}_k,\bar{\mathcal{P}})^2, \tag*{(394)} ( Γ SSM , R Q ( Q ) ) 2 ≤ 4 ( G SSM , R Q ( Q ) ) 2 k = 1 ∑ K p k TV ( P k , P ˉ ) 2 , (394)
where
TV ( P , Q ) : = sup A ∣ P ( A ) − Q ( A ) ∣ . (395) \operatorname{TV}(P,Q):=\sup_A\left|P(A)-Q(A)\right|. \tag*{(395)} TV ( P , Q ) := A sup ∣ P ( A ) − Q ( A ) ∣ . (395)
Proof of Lemma C.7: Recall that for each client k k k , the local objective is:
L k ( W ) = E ξ ∼ P k [ L S , ( Q ) ( W ; ξ ) ] , \mathcal{L}_k(W)=\mathbb{E}_{\xi\sim\mathcal{P}_k}\left[\mathcal{L}^{S,(Q)}(W;\xi)\right], L k ( W ) = E ξ ∼ P k [ L S , ( Q ) ( W ; ξ ) ] ,
and, by Assumption 4.6,
∇ W L k ( W ) = E ξ ∼ P k [ g ( W ; ξ ) ] . (396) \nabla_W\mathcal{L}_k(W)=\mathbb{E}_{\xi\sim\mathcal{P}_k}[g(W;\xi)]. \tag*{(396)} ∇ W L k ( W ) = E ξ ∼ P k [ g ( W ; ξ )] . (396)
Similarly, since
f ( W ) : = ∑ k = 1 K p k L k ( W ) , f(W) := \sum_{k=1}^{K} p_k \mathcal{L}_k(W), f ( W ) := k = 1 ∑ K p k L k ( W ) ,
we have
∇ W f ( W ) = ∑ k = 1 K p k ∇ W L k ( W ) = ∑ k = 1 K p k E ξ ∼ P k [ g ( W ; ξ ) ] . (397) \nabla_W f(W) = \sum_{k=1}^{K} p_k \nabla_W \mathcal{L}_k(W) = \sum_{k=1}^{K} p_k \mathbb{E}_{\xi\sim\mathcal{P}_k}[g(W;\xi)]. \tag*{(397)} ∇ W f ( W ) = k = 1 ∑ K p k ∇ W L k ( W ) = k = 1 ∑ K p k E ξ ∼ P k [ g ( W ; ξ )] . (397)
Next, by the definition of the mixture distribution P ‾ \overline{\mathcal{P}} P , we can write this as:
∇ W f ( W ) = E ξ ∼ P ‾ [ g ( W ; ξ ) ] . (398) \nabla_W f(W) = \mathbb{E}_{\xi\sim\overline{\mathcal{P}}}[g(W;\xi)]. \tag*{(398)} ∇ W f ( W ) = E ξ ∼ P [ g ( W ; ξ )] . (398)
Therefore, it follows that
∇ W L k ( W ) − ∇ W f ( W ) = E ξ ∼ P k [ g ( W ; ξ ) ] − E ξ ∼ P ‾ [ g ( W ; ξ ) ] . (399) \nabla_W \mathcal{L}_k(W) - \nabla_W f(W) = \mathbb{E}_{\xi\sim\mathcal{P}_k}[g(W;\xi)] - \mathbb{E}_{\xi\sim\overline{\mathcal{P}}}[g(W;\xi)]. \tag*{(399)} ∇ W L k ( W ) − ∇ W f ( W ) = E ξ ∼ P k [ g ( W ; ξ )] − E ξ ∼ P [ g ( W ; ξ )] . (399)
By the pointwise bound (380) established in the proof of Lemma C.5, for every W ∈ N R Q ( W r ) W \in\mathcal{N}_{R_Q}(W^r) W ∈ N R Q ( W r ) and every admissible sequence pair ξ ∈ Z \xi\in\mathcal{Z} ξ ∈ Z ,
∥ g ( W ; ξ ) ∥ F ≤ G S S M , R Q ( Q ) . \lVert g(W;\xi) \rVert_F \leq G_{\mathrm{SSM},R_Q}^{(Q)}. ∥ g ( W ; ξ ) ∥ F ≤ G SSM , R Q ( Q ) .
Since P k ( Z ) = P ‾ ( Z ) = 1 \mathcal{P}_k(\mathcal{Z}) = \overline{\mathcal{P}}(\mathcal{Z}) = 1 P k ( Z ) = P ( Z ) = 1 , the total-variation inequality for bounded vector-valued functions gives:
∥ E ξ ∼ P k [ g ( W ; ξ ) ] − E ξ ∼ P ‾ [ g ( W ; ξ ) ] ∥ F ≤ 2 G S S M , R Q ( Q ) TV ( P k , P ‾ ) . (400) \left\lVert\mathbb{E}_{\xi\sim\mathcal{P}_k}[g(W;\xi)] - \mathbb{E}_{\xi\sim\overline{\mathcal{P}}}[g(W;\xi)] \right\rVert_F \leq2G_{\mathrm{SSM},R_Q}^{(Q)}\operatorname{TV}(\mathcal{P}_k,\overline{\mathcal{P}}). \tag*{(400)} E ξ ∼ P k [ g ( W ; ξ )] − E ξ ∼ P [ g ( W ; ξ )] F ≤ 2 G SSM , R Q ( Q ) TV ( P k , P ) . (400)
So:
∥ ∇ W L k ( W ) − ∇ W f ( W ) ∥ F 2 ≤ 4 ( G S S M , R Q ( Q ) ) 2 TV ( P k , P ‾ ) 2 . (401) \lVert\nabla_W \mathcal{L}_k(W) - \nabla_W f(W) \rVert_F^2 \leq4\left(G_{\mathrm{SSM},R_Q}^{(Q)}\right)^2 \operatorname{TV}(\mathcal{P}_k,\overline{\mathcal{P}})^2. \tag*{(401)} ∥ ∇ W L k ( W ) − ∇ W f ( W ) ∥ F 2 ≤ 4 ( G SSM , R Q ( Q ) ) 2 TV ( P k , P ) 2 . (401)
Multiplying both sides by p k p_k p k and summing over all clients gives:
∑ k = 1 K p k ∥ ∇ W L k ( W ) − ∇ W f ( W ) ∥ F 2 ≤ 4 ( G S S M , R Q ( Q ) ) 2 ∑ k = 1 K p k TV ( P k , P ‾ ) 2 . (402) \sum_{k=1}^{K} p_k \lVert\nabla_W \mathcal{L}_k(W) - \nabla_W f(W) \rVert_F^2 \leq4\left(G_{\mathrm{SSM},R_Q}^{(Q)}\right)^2 \sum_{k=1}^{K} p_k \operatorname{TV}(\mathcal{P}_k,\overline{\mathcal{P}})^2. \tag*{(402)} k = 1 ∑ K p k ∥ ∇ W L k ( W ) − ∇ W f ( W ) ∥ F 2 ≤ 4 ( G SSM , R Q ( Q ) ) 2 k = 1 ∑ K p k TV ( P k , P ) 2 . (402)
Since the right-hand side of this inequality is independent of W W W , taking the supremum over W ∈ N R Q ( W r ) W \in\mathcal{N}_{R_Q}(W^r) W ∈ N R Q ( W r ) we get:
( Γ S S M , R Q ( Q ) ) 2 : = sup W ∈ N R Q ( W r ) ∑ k = 1 K p k ∥ ∇ W L k ( W ) − ∇ W f ( W ) ∥ F 2 ≤ 4 ( G S S M , R Q ( Q ) ) 2 ∑ k = 1 K p k TV ( P k , P ‾ ) 2 . (403) \left(\Gamma_{\mathrm{SSM},R_Q}^{(Q)}\right)^2 := \sup_{W \in\mathcal{N}_{R_Q}(W^r)} \sum_{k=1}^{K} p_k \lVert\nabla_W \mathcal{L}_k(W) - \nabla_W f(W) \rVert_F^2 \leq4\left(G_{\mathrm{SSM},R_Q}^{(Q)}\right)^2 \sum_{k=1}^{K} p_k \operatorname{TV}(\mathcal{P}_k,\overline{\mathcal{P}})^2. \tag*{(403)} ( Γ SSM , R Q ( Q ) ) 2 := W ∈ N R Q ( W r ) sup k = 1 ∑ K p k ∥ ∇ W L k ( W ) − ∇ W f ( W ) ∥ F 2 ≤ 4 ( G SSM , R Q ( Q ) ) 2 k = 1 ∑ K p k TV ( P k , P ) 2 . (403)
This proves the multi-layer SSM client heterogeneity bound. □
Corollary C.8: FedAvg Multi-Layer SSM Convergence and Proof
Corollary C.8 (FedAvg convergence for multi-layer selective SSMs). Consider the distributed learning framework established in § 3 , with objective
f ( W ) : = ∑ k = 1 K p k L k ( W ) , p k ≥ 0 , ∑ k = 1 K p k = 1 , f(W) := \sum_{k=1}^{K} p_k \mathcal{L}_k(W), \qquad p_k \geq0, \qquad\sum_{k=1}^{K} p_k = 1, f ( W ) := k = 1 ∑ K p k L k ( W ) , p k ≥ 0 , k = 1 ∑ K p k = 1 , where the weights p k p_k p k are fixed and
W = ( W ( 1 ) , … , W ( Q ) ) W = \left(W^{(1)}, \ldots, W^{(Q)}\right) W = ( W ( 1 ) , … , W ( Q ) ) parameterizes the selective SSM of finite depth Q ≥ 1 Q \geq1 Q ≥ 1 defined in Appendix § 9 .§ 1 . Each client objective is finite and differentiable on the neighborhoods under consideration, and satisfies
∇ W L k ( W ) = E ξ ∼ P k [ ∇ W L S , ( Q ) ( W ; ξ ) ] . \nabla_W \mathcal{L}_k(W) = \mathbb{E}_{\xi\sim\mathcal{P}_k}\left[\nabla_W \mathcal{L}^{S,(Q)}(W;\xi)\right]. ∇ W L k ( W ) = E ξ ∼ P k [ ∇ W L S , ( Q ) ( W ; ξ ) ] .
where S S S is the length of the sampled sequence pair ξ \xi ξ , and all clients use the same sequence-loss map.
Let W 0 W^0 W 0 be deterministic with f ( W 0 ) < ∞ f(W^0)<\infty f ( W 0 ) < ∞ , and suppose that f f f is bounded below by a finite constant f ∗ f^* f ∗ .
Consider full-participation FedAvg for T T T communication rounds, with E E E local steps per round, mini-batch size Ξ \Xi Ξ , and constant deterministic local step size η > 0 \eta>0 η > 0 , where T , E , Ξ ∈ Z > 0 T,E,\Xi\in\mathbb{Z}_{>0} T , E , Ξ ∈ Z > 0 :
W k r , 0 = W r , W k r , e + 1 = W k r , e − η g k , Ξ r , e , e = 0 , … , E − 1 , W r + 1 = ∑ k = 1 K p k W k r , E . \begin{aligned}
W_k^{r,0} &= W^r,\\
W_k^{r,e+1} &= W_k^{r,e}-\eta g_{k,\Xi}^{r,e}, \qquad e=0,\ldots,E-1,\\
W^{r+1} &= \sum_{k=1}^{K}p_kW_k^{r,E}.
\end{aligned} W k r , 0 W k r , e + 1 W r + 1 = W r , = W k r , e − η g k , Ξ r , e , e = 0 , … , E − 1 , = k = 1 ∑ K p k W k r , E .
The mini-batch gradient is
g k , Ξ r , e : = 1 Ξ ∑ i = 1 Ξ ∇ W L S i , ( Q ) ( W k r , e ; ξ k , i r , e ) , g_{k,\Xi}^{r,e}:=\frac{1}{\Xi}\sum_{i=1}^{\Xi}\nabla_W\mathcal{L}^{S_i,(Q)}(W_k^{r,e};\xi_{k,i}^{r,e}), g k , Ξ r , e := Ξ 1 i = 1 ∑ Ξ ∇ W L S i , ( Q ) ( W k r , e ; ξ k , i r , e ) ,
where S i S_i S i denotes the length of ξ k , i r , e \xi_{k,i}^{r,e} ξ k , i r , e .
Conditional on the complete training history before each local step, each client draws Ξ \Xi Ξ fresh independent samples from P k P_k P k , and the mini-batches drawn by different clients are conditionally independent.
For fixed deterministic radii R q > 0 R_q>0 R q > 0 , define
N R Q ( W r ) : = ∏ q = 1 Q N R q ( q ) ( W r , ( q ) ) , R Q : = ( R 1 , … , R Q ) . \mathcal{N}_{\mathbf{R}_Q}(W^r):=\prod_{q=1}^{Q}\mathcal{N}_{R_q}^{(q)}(W^{r,(q)}),\qquad\mathbf{R}_Q:=(R_1,\ldots,R_Q). N R Q ( W r ) := q = 1 ∏ Q N R q ( q ) ( W r , ( q ) ) , R Q := ( R 1 , … , R Q ) .
Suppose that, almost surely, for every round r < T r<T r < T , client k k k , and local step 0 ≤ e ≤ E 0\le e\le E 0 ≤ e ≤ E ,
W k r , e ∈ N R Q ( W r ) ⊆ S γ , δ ( Q ) . W_k^{r,e}\in\mathcal{N}_{\mathbf{R}_Q}(W^r)\subseteq\mathcal{S}_{\gamma,\delta}^{(Q)}. W k r , e ∈ N R Q ( W r ) ⊆ S γ , δ ( Q ) .
Suppose also that finite deterministic envelopes M X , q M_{X,q} M X , q satisfy, almost surely for every round,
∥ W X r , ( q ) ∥ 2 + R q ≤ M X , q , X ∈ { Δ , B , C , A } , q ∈ { 1 , … , Q } , \left\|W_X^{r,(q)}\right\|_2+R_q\le M_{X,q},\qquad X\in\{\Delta,B,C,A\},\qquad q\in\{1,\ldots,Q\}, W X r , ( q ) 2 + R q ≤ M X , q , X ∈ { Δ , B , C , A } , q ∈ { 1 , … , Q } ,
where W A r , ( q ) : = A r , ( q ) W_A^{r,(q)}:=A^{r,(q)} W A r , ( q ) := A r , ( q ) .
The stability margins γ q , δ q > 0 \gamma_q,\delta_q>0 γ q , δ q > 0 , the layer-input bounds L x , q L_{x,q} L x , q , the loss-regularity constants L ℓ , H ℓ L_\ell,H_\ell L ℓ , H ℓ , and the parameter envelopes M X , q M_{X,q} M X , q are deterministic and common across rounds.
Let Assumption C.1 hold uniformly on all these neighborhoods, and for each layer, define
ρ q : = exp ( − γ q δ q ) < 1. \rho_q:=\exp(-\gamma_q\delta_q)<1. ρ q := exp ( − γ q δ q ) < 1.
Define:
M K Δ , q : = M Δ , q L x , q + D log ( 2 ) , M K B , q : = M B , q L x , q 2 , M K W , q : = N D M K B , q M K Δ , q ( M K Δ , q + D M A , q L x , q ) ( ρ q 1 − ρ q ) + L x , q 2 N M K Δ , q + L x , q D M K B , q , H R q : = M K B , q M K Δ , q N D 1 − ρ q , J R q : = M K W , q 1 − ρ q , M Λ x , q : = ρ q M A , q M Δ , q H R q + M B , q L x , q ( 2 M K Δ , q + L x , q M Δ , q ) . \begin{aligned}
M_{K_\Delta,q}&:=M_{\Delta,q}L_{x,q}+\sqrt{D}\log(2),\\
M_{K_B,q}&:=M_{B,q}L_{x,q}^{2},\\
M_{K_W,q}&:=NDM_{K_B,q}M_{K_\Delta,q}\left(M_{K_\Delta,q}+\sqrt{D}M_{A,q}L_{x,q}\right)\left(\frac{\rho_q}{1-\rho_q}\right)\\
&\qquad+L_{x,q}^{2}\sqrt{N}M_{K_\Delta,q}+L_{x,q}\sqrt{D}M_{K_B,q},\\
H_{R_q}&:=\frac{M_{K_B,q}M_{K_\Delta,q}\sqrt{ND}}{1-\rho_q},\\
J_{R_q}&:=\frac{M_{K_W,q}}{1-\rho_q},\\
M_{\Lambda_x,q}&:=\rho_qM_{A,q}M_{\Delta,q}H_{R_q}+M_{B,q}L_{x,q}\left(2M_{K_\Delta,q}+L_{x,q}M_{\Delta,q}\right).
\end{aligned} M K Δ , q M K B , q M K W , q H R q J R q M Λ x , q := M Δ , q L x , q + D log ( 2 ) , := M B , q L x , q 2 , := N D M K B , q M K Δ , q ( M K Δ , q + D M A , q L x , q ) ( 1 − ρ q ρ q ) + L x , q 2 N M K Δ , q + L x , q D M K B , q , := 1 − ρ q M K B , q M K Δ , q N D , := 1 − ρ q M K W , q , := ρ q M A , q M Δ , q H R q + M B , q L x , q ( 2 M K Δ , q + L x , q M Δ , q ) .
M κ , q : = M C , q ( H R q + L x , q M Λ x , q 1 − ρ q ) M_{\kappa,q} := M_{C,q}\left(H_{R_q}+\frac{L_{x,q}M_{\Lambda_x,q}}{1-\rho_q}\right) M κ , q := M C , q ( H R q + 1 − ρ q L x , q M Λ x , q )
Θ q : = ( L x , q 2 ( H R q + M C , q J R q ) 2 + M κ , q 2 Θ q − 1 2 ) 1 / 2 , Θ 0 : = 0 , \Theta_q := \left(L_{x,q}^{2}\left(H_{R_q}+M_{C,q}J_{R_q}\right)^2+M_{\kappa,q}^{2}\Theta_{q-1}^{2}\right)^{1/2},\qquad\Theta_0:=0, Θ q := ( L x , q 2 ( H R q + M C , q J R q ) 2 + M κ , q 2 Θ q − 1 2 ) 1/2 , Θ 0 := 0 ,
E q : = ρ q H R q [ ( M K Δ , q + M A , q ( L x , q + M Δ , q Θ q − 1 ) ) 2 + 2 ( L x , q + M Δ , q Θ q − 1 ) + M A , q ( 1 4 ( L x , q + M Δ , q Θ q − 1 ) 2 + 2 Θ q − 1 ) ] + 2 ρ q ( M K Δ , q + M A , q ( L x , q + M Δ , q Θ q − 1 ) ) ( J R q + M Λ x , q Θ q − 1 1 − ρ q ) + 2 Θ q − 1 M K Δ , q L x , q + 2 ( L x , q + M B , q Θ q − 1 ) [ L x , q ( L x , q + M Δ , q Θ q − 1 ) + M K Δ , q Θ q − 1 ] + M B , q L x , q [ L x , q ( 1 4 ( L x , q + M Δ , q Θ q − 1 ) 2 + 2 Θ q − 1 ) + 2 ( L x , q + M Δ , q Θ q − 1 ) Θ q − 1 ] , \begin{aligned}
\mathcal{E}_q := {}&\rho_q H_{R_q}\left[\left(M_{K_{\Delta,q}}+M_{A,q}\left(L_{x,q}+M_{\Delta,q}\Theta_{q-1}\right)\right)^2+2\left(L_{x,q}+M_{\Delta,q}\Theta_{q-1}\right)\right.\\
&\left.+M_{A,q}\left(\frac{1}{4}\left(L_{x,q}+M_{\Delta,q}\Theta_{q-1}\right)^2+2\Theta_{q-1}\right)\right]\\
&+2\rho_q\left(M_{K_{\Delta,q}}+M_{A,q}\left(L_{x,q}+M_{\Delta,q}\Theta_{q-1}\right)\right)\left(J_{R_q}+\frac{M_{\Lambda_x,q}\Theta_{q-1}}{1-\rho_q}\right)\\
&+2\Theta_{q-1}M_{K_{\Delta,q}}L_{x,q}\\
&+2\left(L_{x,q}+M_{B,q}\Theta_{q-1}\right)\left[L_{x,q}\left(L_{x,q}+M_{\Delta,q}\Theta_{q-1}\right)+M_{K_{\Delta,q}}\Theta_{q-1}\right]\\
&+M_{B,q}L_{x,q}\left[L_{x,q}\left(\frac{1}{4}\left(L_{x,q}+M_{\Delta,q}\Theta_{q-1}\right)^2+2\Theta_{q-1}\right)+2\left(L_{x,q}+M_{\Delta,q}\Theta_{q-1}\right)\Theta_{q-1}\right],
\end{aligned} E q := ρ q H R q [ ( M K Δ , q + M A , q ( L x , q + M Δ , q Θ q − 1 ) ) 2 + 2 ( L x , q + M Δ , q Θ q − 1 ) + M A , q ( 4 1 ( L x , q + M Δ , q Θ q − 1 ) 2 + 2 Θ q − 1 ) ] + 2 ρ q ( M K Δ , q + M A , q ( L x , q + M Δ , q Θ q − 1 ) ) ( J R q + 1 − ρ q M Λ x , q Θ q − 1 ) + 2 Θ q − 1 M K Δ , q L x , q + 2 ( L x , q + M B , q Θ q − 1 ) [ L x , q ( L x , q + M Δ , q Θ q − 1 ) + M K Δ , q Θ q − 1 ] + M B , q L x , q [ L x , q ( 4 1 ( L x , q + M Δ , q Θ q − 1 ) 2 + 2 Θ q − 1 ) + 2 ( L x , q + M Δ , q Θ q − 1 ) Θ q − 1 ] ,
Ω q : = M C , q L x , q E q 1 − ρ q + 2 ( L x , q + M C , q Θ q − 1 ) ( J R q + M Λ x , q Θ q − 1 1 − ρ q ) + 2 H R q Θ q − 1 + M κ , q Ω q − 1 , \Omega_q := \frac{M_{C,q}L_{x,q}\mathcal{E}_q}{1-\rho_q}+2\left(L_{x,q}+M_{C,q}\Theta_{q-1}\right)\left(J_{R_q}+\frac{M_{\Lambda_x,q}\Theta_{q-1}}{1-\rho_q}\right)+2H_{R_q}\Theta_{q-1}+M_{\kappa,q}\Omega_{q-1}, Ω q := 1 − ρ q M C , q L x , q E q + 2 ( L x , q + M C , q Θ q − 1 ) ( J R q + 1 − ρ q M Λ x , q Θ q − 1 ) + 2 H R q Θ q − 1 + M κ , q Ω q − 1 ,
Let:
L S S M , R Q ( Q ) : = H ℓ Θ Q 2 + L ℓ Ω Q , L_{\mathrm{SSM},R_Q}^{(Q)}:=H_{\ell}\Theta_Q^2+L_{\ell}\Omega_Q, L SSM , R Q ( Q ) := H ℓ Θ Q 2 + L ℓ Ω Q ,
G S S M , R Q ( Q ) : = L ℓ Θ Q = L ℓ ( ∑ q = 1 Q L x , q 2 ( H R q + M C , q J R q ) 2 ∏ q ′ = q + 1 Q M κ , q ′ 2 ) 1 / 2 , G_{\mathrm{SSM},R_Q}^{(Q)}:=L_{\ell}\Theta_Q=L_{\ell}\left(\sum_{q=1}^{Q}L_{x,q}^{2}\left(H_{R_q}+M_{C,q}J_{R_q}\right)^2\prod_{q'=q+1}^{Q}M_{\kappa,q'}^{2}\right)^{1/2}, G SSM , R Q ( Q ) := L ℓ Θ Q = L ℓ q = 1 ∑ Q L x , q 2 ( H R q + M C , q J R q ) 2 q ′ = q + 1 ∏ Q M κ , q ′ 2 1/2 ,
define the common deterministic smoothness and gradient bounds on all the considered neighborhoods.
For the client distributions, define
P ˉ : = ∑ k = 1 K p k P k , H T V : = ∑ k = 1 K p k TV ( P k , P ˉ ) 2 , \bar{P}:=\sum_{k=1}^{K}p_kP_k,\qquad\mathcal{H}_{\mathrm{TV}}:=\sum_{k=1}^{K}p_k\operatorname{TV}(P_k,\bar{P})^2, P ˉ := k = 1 ∑ K p k P k , H TV := k = 1 ∑ K p k TV ( P k , P ˉ ) 2 ,
where
TV ( P , Q ) : = sup A ∣ P ( A ) − Q ( A ) ∣ . \operatorname{TV}(P,Q):=\sup_A\lvert P(A)-Q(A)\rvert. TV ( P , Q ) := A sup ∣ P ( A ) − Q ( A )∣ .
If the step size satisfies
η E L S S M , R Q ( Q ) ≤ 1 2 , 12 η 2 ( L S S M , R Q ( Q ) ) 2 E ( E − 1 ) ≤ 1 , \eta E L_{\mathrm{SSM},R_Q}^{(Q)}\leq\frac{1}{2},\qquad12\eta^2\left(L_{\mathrm{SSM},R_Q}^{(Q)}\right)^2E(E-1)\leq1, η E L SSM , R Q ( Q ) ≤ 2 1 , 12 η 2 ( L SSM , R Q ( Q ) ) 2 E ( E − 1 ) ≤ 1 ,
then
1 T ∑ r = 0 T − 1 E ∥ ∇ f ( W r ) ∥ F 2 ≤ 4 ( f ( W 0 ) − f ∗ ) η E T + 4 η ( L S S M , R Q ( Q ) ) ( G S S M , R Q ( Q ) ) 2 Ξ ∑ k = 1 K p k 2 + 6 η 2 ( L S S M , R Q ( Q ) ) 2 ( E − 1 ) ( G S S M , R Q ( Q ) ) 2 Ξ + 48 η 2 ( L S S M , R Q ( Q ) ) 2 E ( E − 1 ) ( G S S M , R Q ( Q ) ) 2 H T V . \frac{1}{T}\sum_{r=0}^{T-1}\mathbb{E}\left\lVert\nabla f(W^r)\right\rVert_F^2
\leq
\frac{4(f(W^0)-f^\ast)}{\eta ET}
+\frac{4\eta\left(L_{\mathrm{SSM},R_Q}^{(Q)}\right)\left(G_{\mathrm{SSM},R_Q}^{(Q)}\right)^2}{\Xi}\sum_{k=1}^{K}p_k^2
+\frac{6\eta^2\left(L_{\mathrm{SSM},R_Q}^{(Q)}\right)^2(E-1)\left(G_{\mathrm{SSM},R_Q}^{(Q)}\right)^2}{\Xi}
+48\eta^2\left(L_{\mathrm{SSM},R_Q}^{(Q)}\right)^2E(E-1)\left(G_{\mathrm{SSM},R_Q}^{(Q)}\right)^2\mathcal{H}_{\mathrm{TV}}. T 1 r = 0 ∑ T − 1 E ∥ ∇ f ( W r ) ∥ F 2 ≤ η E T 4 ( f ( W 0 ) − f ∗ ) + Ξ 4 η ( L SSM , R Q ( Q ) ) ( G SSM , R Q ( Q ) ) 2 k = 1 ∑ K p k 2 + Ξ 6 η 2 ( L SSM , R Q ( Q ) ) 2 ( E − 1 ) ( G SSM , R Q ( Q ) ) 2 + 48 η 2 ( L SSM , R Q ( Q ) ) 2 E ( E − 1 ) ( G SSM , R Q ( Q ) ) 2 H TV .
Proof of Corollary C.8: We apply the federated optimization argument from the proof of Theorem B.5 to the full parameter tuple W = ( W ( 1 ) , … , W ( Q ) ) W=(W^{(1)},\ldots,W^{(Q)}) W = ( W ( 1 ) , … , W ( Q ) ) . After vectorization, the Euclidean norm of this tuple is exactly its block Frobenius norm. The preceding neighborhood estimates remain valid when the reference-dependent parameter envelopes are replaced by the common deterministic upper envelopes M X , q M_{X,q} M X , q , because their defining expressions are nondecreasing in those envelopes.
Lemma C.4 therefore supplies the common smoothness constant L = L S S M , R Q ( Q ) L = L_{\mathrm{SSM},\mathbf{R}_Q}^{(Q)} L = L SSM , R Q ( Q ) .
Lemma C.6, applied conditionally on the history before each mini-batch, supplies the common variance bound
σ 2 = ( G S S M , R Q ( Q ) ) 2 Ξ . \sigma^2 = \frac{\left(G_{\mathrm{SSM},\mathbf{R}_Q}^{(Q)}\right)^2}{\Xi}. σ 2 = Ξ ( G SSM , R Q ( Q ) ) 2 .
Conditional independence across clients gives the corresponding weighted-noise variance bound σ 2 ∑ k p k 2 \sigma^2 \sum_k p_k^2 σ 2 ∑ k p k 2 .
Lemma C.7 supplies the common client-gradient disagreement bound Γ 2 = 4 ( G S S M , R Q ( Q ) ) 2 H T V \Gamma^2 = 4\left(G_{\mathrm{SSM},\mathbf{R}_Q}^{(Q)}\right)^2\mathcal{H}_{\mathrm{TV}} Γ 2 = 4 ( G SSM , R Q ( Q ) ) 2 H TV .
Each neighborhood N R Q ( W r ) \mathcal{N}_{\mathbf{R}_Q}(W^r) N R Q ( W r ) is a product of convex balls. Since it contains all local iterates in round r r r , it also contains their weighted aggregate and the segments used in the smoothness argument.
Substituting these constants into (164) yields the desired inequality in Corollary C.8 under the specified step size conditions.
Corollary C.9: FedProx Multi-Layer SSM Convergence and Proof
Corollary C.9 (FedProx convergence for multi-layer selective SSMs). Consider the distributed learning framework established in Section 3, with objective
f ( W ) : = ∑ k = 1 K p k L k ( W ) , p k ≥ 0 , ∑ k = 1 K p k = 1 , f(\mathbf{W}) := \sum_{k=1}^{K} p_k\mathcal{L}_k(\mathbf{W}), \qquad p_k \ge0, \qquad\sum_{k=1}^{K}p_k = 1, f ( W ) := k = 1 ∑ K p k L k ( W ) , p k ≥ 0 , k = 1 ∑ K p k = 1 , where the weights p k p_k p k are fixed and W = ( W ( 1 ) , … , W ( Q ) ) \mathbf{W} = \left(W^{(1)},\ldots,W^{(Q)}\right) W = ( W ( 1 ) , … , W ( Q ) ) parameterizes the selective SSM of finite integer depth Q ≥ 1 Q \ge1 Q ≥ 1 defined in Appendix C.1.
Each client objective is finite and differentiable on the neighborhoods under consideration and satisfies
∇ W L k ( W ) = E ξ ∼ P k [ ∇ W L S , ( Q ) ( W ; ξ ) ] , \nabla_{\mathbf{W}}\mathcal{L}_k(\mathbf{W}) = \mathbb{E}_{\xi\sim\mathcal{P}_k}\left[\nabla_{\mathbf{W}}\mathcal{L}^{S,(Q)}(\mathbf{W};\xi)\right], ∇ W L k ( W ) = E ξ ∼ P k [ ∇ W L S , ( Q ) ( W ; ξ ) ] , where S S S is the length of the sampled sequence pair ξ \xi ξ , and all clients use the same sequence-loss map. Let W 0 W^0 W 0 be deterministic with f ( W 0 ) < ∞ f(W^0)<\infty f ( W 0 ) < ∞ , and suppose that f f f is bounded below by a finite constant f ∗ f^* f ∗ .
Consider full-participation FedProx for T T T communication rounds, with E E E local steps per round, mini-batch size Ξ \Xi Ξ , constant deterministic local step size η > 0 \eta>0 η > 0 , and constant deterministic proximal coefficient μ > 0 \mu>0 μ > 0 , where T , E , Ξ ∈ Z > 0 T,E,\Xi\in\mathbb{Z}_{>0} T , E , Ξ ∈ Z > 0 :
W k r , 0 = W r , W_k^{r,0}=W^r, W k r , 0 = W r , W k r , e + 1 = W k r , e − η ( g k , Ξ r , e + μ ( W k r , e − W r ) ) , e = 0 , … , E − 1 , W_k^{r,e+1}=W_k^{r,e}-\eta\left(g_{k,\Xi}^{r,e}+\mu\left(W_k^{r,e}-W^r\right)\right), \qquad e=0,\ldots,E-1, W k r , e + 1 = W k r , e − η ( g k , Ξ r , e + μ ( W k r , e − W r ) ) , e = 0 , … , E − 1 , W r + 1 = ∑ k = 1 K p k W k r , E , r = 0 , … , T − 1. W^{r+1}=\sum_{k=1}^{K}p_kW_k^{r,E}, \qquad r=0,\ldots,T-1. W r + 1 = k = 1 ∑ K p k W k r , E , r = 0 , … , T − 1. The mini-batch gradient is
g k , Ξ r , e : = 1 Ξ ∑ i = 1 Ξ ∇ W L S k , i r , e , ( Q ) ( W k r , e ; ξ k , i r , e ) , g_{k,\Xi}^{r,e}:=\frac{1}{\Xi}\sum_{i=1}^{\Xi}\nabla_{\mathbf{W}}\mathcal{L}^{S_{k,i}^{r,e},(Q)}\left(W_k^{r,e};\xi_{k,i}^{r,e}\right), g k , Ξ r , e := Ξ 1 i = 1 ∑ Ξ ∇ W L S k , i r , e , ( Q ) ( W k r , e ; ξ k , i r , e ) , where S i S_i S i denotes the length of ξ k , i r , e \xi_{k,i}^{r,e} ξ k , i r , e . Conditional on the complete training history before each local step, each client draws Ξ \Xi Ξ fresh independent samples from P k \mathcal{P}_k P k , and the mini-batches drawn by different clients are conditionally independent.
For fixed deterministic radii R q > 0 R_q>0 R q > 0 , define
N R Q ( W r ) : = ∏ q = 1 Q N R q ( q ) ( W r , ( q ) ) , R Q : = ( R 1 , … , R Q ) . \mathcal{N}_{\mathbf{R}_Q}(W^r):=\prod_{q=1}^{Q}\mathcal{N}_{R_q}^{(q)}\left(W^{r,(q)}\right), \qquad\mathbf{R}_Q:=(R_1,\ldots,R_Q). N R Q ( W r ) := q = 1 ∏ Q N R q ( q ) ( W r , ( q ) ) , R Q := ( R 1 , … , R Q ) .
Suppose that, almost surely, for every round r < T r<T r < T , client k k k , and local step 0 ≤ e ≤ E 0\le e\le E 0 ≤ e ≤ E ,
W k r , e ∈ N R Q ( W r ) ⊆ S γ , δ ( Q ) . W_k^{r,e}\in\mathcal{N}_{R_Q}(W^r)\subseteq\mathcal{S}_{\gamma,\delta}^{(Q)}. W k r , e ∈ N R Q ( W r ) ⊆ S γ , δ ( Q ) .
Suppose also that finite deterministic envelopes M X , q M_{X,q} M X , q satisfy, almost surely for every round,
∥ W X r , ( q ) ∥ 2 + R q ≤ M X , q , X ∈ { Δ , B , C , A } , q = 1 , … , Q , \left\|W_X^{r,(q)}\right\|_2+R_q\le M_{X,q},\qquad X\in\{\Delta,B,C,A\},\qquad q=1,\ldots,Q, W X r , ( q ) 2 + R q ≤ M X , q , X ∈ { Δ , B , C , A } , q = 1 , … , Q ,
where W A r , ( q ) : = A r , ( q ) W_A^{r,(q)}:=A^{r,(q)} W A r , ( q ) := A r , ( q ) .
Let Assumption C.1 hold uniformly on all these neighborhoods, and let Assumption 4.2 hold uniformly at the final-layer predictions. The stability margins γ q , δ q > 0 \gamma_q,\delta_q>0 γ q , δ q > 0 , layer-input bounds L x , q L_{x,q} L x , q , loss-regularity constants L ℓ , H ℓ L_{\ell},H_{\ell} L ℓ , H ℓ , and parameter envelopes M X , q M_{X,q} M X , q are deterministic and common across rounds, admissible sequence pairs, finite sequence lengths, and token positions.
For each layer, define
ρ q : = exp ( − γ q δ q ) < 1. \rho_q:=\exp(-\gamma_q\delta_q)<1. ρ q := exp ( − γ q δ q ) < 1.
Let G S S M , R Q ( Q ) G_{\mathrm{SSM},R_Q}^{(Q)} G SSM , R Q ( Q ) be the common gradient bound defined in Corollary (C.8), constructed using the original envelopes M X , q M_{X,q} M X , q .
Assume 0 < η μ ≤ 1 0<\eta_\mu\le1 0 < η μ ≤ 1 , and define
R μ , q : = min { R q , G S S M , R Q ( Q ) μ [ 1 − ( 1 − η μ ) E ] } , q = 1 , … , Q , R_{\mu,q}:=\min\left\{R_q,\frac{G_{\mathrm{SSM},R_Q}^{(Q)}}{\mu}\left[1-(1-\eta_\mu)^E\right]\right\},\qquad q=1,\ldots,Q, R μ , q := min ⎩ ⎨ ⎧ R q , μ G SSM , R Q ( Q ) [ 1 − ( 1 − η μ ) E ] ⎭ ⎬ ⎫ , q = 1 , … , Q ,
R Q , μ : = ( R μ , 1 , … , R μ , Q ) , \mathbf{R}_{Q,\mu}:=(R_{\mu,1},\ldots,R_{\mu,Q}), R Q , μ := ( R μ , 1 , … , R μ , Q ) ,
M X , q μ : = M X , q − R q + R μ , q , X ∈ { Δ , B , C , A } . M_{X,q}^{\mu}:=M_{X,q}-R_q+R_{\mu,q},\qquad X\in\{\Delta,B,C,A\}. M X , q μ := M X , q − R q + R μ , q , X ∈ { Δ , B , C , A } .
Using these reduced parameter envelopes, define
M K Δ , q μ : = M Δ , q μ L x , q + D log 2 , M_{K_{\Delta,q}}^{\mu}:=M_{\Delta,q}^{\mu}L_{x,q}+\sqrt{D}\log2, M K Δ , q μ := M Δ , q μ L x , q + D log 2 ,
M K B , q μ : = M B , q μ L x , q 2 , M_{K_{B,q}}^{\mu}:=M_{B,q}^{\mu}L_{x,q}^{2}, M K B , q μ := M B , q μ L x , q 2 ,
M K W , q μ : = N D M K B , q μ M K Δ , q μ ( M K Δ , q μ + D M A , q μ L x , q ) ρ q 1 − ρ q + L x , q 2 N M K Δ , q μ + L x , q D M K B , q μ , M_{K_{W,q}}^{\mu}:=NDM_{K_{B,q}}^{\mu}M_{K_{\Delta,q}}^{\mu}\left(M_{K_{\Delta,q}}^{\mu}+\sqrt{D}M_{A,q}^{\mu}L_{x,q}\right)\frac{\rho_q}{1-\rho_q}
+L_{x,q}^{2}\sqrt{N}M_{K_{\Delta,q}}^{\mu}+L_{x,q}\sqrt{D}M_{K_{B,q}}^{\mu}, M K W , q μ := N D M K B , q μ M K Δ , q μ ( M K Δ , q μ + D M A , q μ L x , q ) 1 − ρ q ρ q + L x , q 2 N M K Δ , q μ + L x , q D M K B , q μ ,
H R μ , q : = M K B , q μ M K Δ , q μ N D 1 − ρ q , H_{R_{\mu,q}}:=\frac{M_{K_{B,q}}^{\mu}M_{K_{\Delta,q}}^{\mu}\sqrt{ND}}{1-\rho_q}, H R μ , q := 1 − ρ q M K B , q μ M K Δ , q μ N D ,
J R μ , q : = M K W , q μ 1 − ρ q , J_{R_{\mu,q}}:=\frac{M_{K_{W,q}}^{\mu}}{1-\rho_q}, J R μ , q := 1 − ρ q M K W , q μ ,
M Λ x , q μ : = ρ q M A , q μ M Δ , q μ H R μ , q + M B , q μ L x , q ( 2 M K Δ , q μ + L x , q M Δ , q μ ) , M_{\Lambda_{x,q}}^{\mu}:=\rho_qM_{A,q}^{\mu}M_{\Delta,q}^{\mu}H_{R_{\mu,q}}+M_{B,q}^{\mu}L_{x,q}\left(2M_{K_{\Delta,q}}^{\mu}+L_{x,q}M_{\Delta,q}^{\mu}\right), M Λ x , q μ := ρ q M A , q μ M Δ , q μ H R μ , q + M B , q μ L x , q ( 2 M K Δ , q μ + L x , q M Δ , q μ ) ,
M κ , q μ : = M C , q μ ( H R μ , q + L x , q M Λ x , q μ 1 − ρ q ) . M_{\kappa,q}^{\mu}:=M_{C,q}^{\mu}\left(H_{R_{\mu,q}}+\frac{L_{x,q}M_{\Lambda_{x,q}}^{\mu}}{1-\rho_q}\right). M κ , q μ := M C , q μ ( H R μ , q + 1 − ρ q L x , q M Λ x , q μ ) .
Initialize Θ 0 μ = Ω 0 μ = 0 \Theta_0^\mu=\Omega_0^\mu=0 Θ 0 μ = Ω 0 μ = 0 , and recursively define
Θ q μ : = [ L x , q 2 ( H R μ , q + M C , q μ J R μ , q ) 2 + ( M κ , q μ ) 2 ( Θ q − 1 μ ) 2 ] 1 / 2 , \Theta_q^\mu:=\left[L_{x,q}^{2}\left(H_{R_{\mu,q}}+M_{C,q}^{\mu}J_{R_{\mu,q}}\right)^2+\left(M_{\kappa,q}^{\mu}\right)^2\left(\Theta_{q-1}^\mu\right)^2\right]^{1/2}, Θ q μ := [ L x , q 2 ( H R μ , q + M C , q μ J R μ , q ) 2 + ( M κ , q μ ) 2 ( Θ q − 1 μ ) 2 ] 1/2 ,
E q μ : = ρ q H R μ , q [ ( M K Δ , q μ + M A , q μ ( L x , q + M Δ , q μ Θ q − 1 μ ) ) 2 + 2 ( L x , q + M Δ , q μ Θ q − 1 μ ) + M A , q μ ( 1 4 ( L x , q + M Δ , q μ Θ q − 1 μ ) 2 + 2 Θ q − 1 μ ) ] \mathcal{E}_q^\mu:=\rho_qH_{R_{\mu,q}}\left[\left(M_{K_{\Delta,q}}^\mu+M_{A,q}^\mu\left(L_{x,q}+M_{\Delta,q}^\mu\Theta_{q-1}^\mu\right)\right)^2
+2\left(L_{x,q}+M_{\Delta,q}^\mu\Theta_{q-1}^\mu\right)
+M_{A,q}^\mu\left(\frac{1}{4}\left(L_{x,q}+M_{\Delta,q}^\mu\Theta_{q-1}^\mu\right)^2+2\Theta_{q-1}^\mu\right)\right] E q μ := ρ q H R μ , q [ ( M K Δ , q μ + M A , q μ ( L x , q + M Δ , q μ Θ q − 1 μ ) ) 2 + 2 ( L x , q + M Δ , q μ Θ q − 1 μ ) + M A , q μ ( 4 1 ( L x , q + M Δ , q μ Θ q − 1 μ ) 2 + 2 Θ q − 1 μ ) ]
+ 2 ρ q ( M K Δ , q μ + M Δ , q μ ( L x , q + M Δ , q μ Θ q − 1 μ ) ) ( J R μ , q + M A x , q μ Θ q − 1 μ 1 − ρ q ) + 2 Θ q − 1 μ M K Δ , q μ L x , q + 2 ( L x , q + M B , q μ Θ q − 1 μ ) [ L x , q ( L x , q + M Δ , q μ Θ q − 1 μ ) + M K Δ , q μ Θ q − 1 μ ] + M B , q μ L x , q [ L x , q ( 1 4 ( L x , q + M Δ , q μ Θ q − 1 μ ) 2 + 2 Θ q − 1 μ ) + 2 ( L x , q + M Δ , q μ Θ q − 1 μ ) Θ q − 1 μ ] , \begin{aligned}
&+2\rho_q\left(M^\mu_{K_{\Delta,q}}+M^\mu_{\Delta,q}\left(L_{x,q}+M^\mu_{\Delta,q}\Theta^\mu_{q-1}\right)\right)\left(J_{R_{\mu,q}}+\frac{M^\mu_{A_{x,q}}\Theta^\mu_{q-1}}{1-\rho_q}\right)\\
&+2\Theta^\mu_{q-1}M^\mu_{K_{\Delta,q}}L_{x,q}\\
&+2\left(L_{x,q}+M^\mu_{B,q}\Theta^\mu_{q-1}\right)\left[L_{x,q}\left(L_{x,q}+M^\mu_{\Delta,q}\Theta^\mu_{q-1}\right)+M^\mu_{K_{\Delta,q}}\Theta^\mu_{q-1}\right]\\
&+M^\mu_{B,q}L_{x,q}\left[L_{x,q}\left(\frac{1}{4}\left(L_{x,q}+M^\mu_{\Delta,q}\Theta^\mu_{q-1}\right)^2+2\Theta^\mu_{q-1}\right)\right.\\
&\qquad\left.+2\left(L_{x,q}+M^\mu_{\Delta,q}\Theta^\mu_{q-1}\right)\Theta^\mu_{q-1}\right],
\end{aligned} + 2 ρ q ( M K Δ , q μ + M Δ , q μ ( L x , q + M Δ , q μ Θ q − 1 μ ) ) ( J R μ , q + 1 − ρ q M A x , q μ Θ q − 1 μ ) + 2 Θ q − 1 μ M K Δ , q μ L x , q + 2 ( L x , q + M B , q μ Θ q − 1 μ ) [ L x , q ( L x , q + M Δ , q μ Θ q − 1 μ ) + M K Δ , q μ Θ q − 1 μ ] + M B , q μ L x , q [ L x , q ( 4 1 ( L x , q + M Δ , q μ Θ q − 1 μ ) 2 + 2 Θ q − 1 μ ) + 2 ( L x , q + M Δ , q μ Θ q − 1 μ ) Θ q − 1 μ ] ,
Ω q μ : = M C , q μ L x , q E q μ 1 − ρ q + 2 ( L x , q + M C , q μ Θ q − 1 μ ) ( J R μ , q + M A x , q μ Θ q − 1 μ 1 − ρ q ) + 2 H R μ , q Θ q − 1 μ + M K , q μ Ω q − 1 μ . \begin{aligned}
\Omega^\mu_q&:=\frac{M^\mu_{C,q}L_{x,q}\mathcal{E}^\mu_q}{1-\rho_q}\\
&\quad+2\left(L_{x,q}+M^\mu_{C,q}\Theta^\mu_{q-1}\right)\left(J_{R_{\mu,q}}+\frac{M^\mu_{A_{x,q}}\Theta^\mu_{q-1}}{1-\rho_q}\right)\\
&\quad+2H_{R_{\mu,q}}\Theta^\mu_{q-1}+M^\mu_{K,q}\Omega^\mu_{q-1}.
\end{aligned} Ω q μ := 1 − ρ q M C , q μ L x , q E q μ + 2 ( L x , q + M C , q μ Θ q − 1 μ ) ( J R μ , q + 1 − ρ q M A x , q μ Θ q − 1 μ ) + 2 H R μ , q Θ q − 1 μ + M K , q μ Ω q − 1 μ .
Let
L S S M , R Q , μ ( Q ) : = H ℓ ( Θ Q μ ) 2 + L ℓ Ω Q μ , L^{(Q)}_{\mathrm{SSM},R_{Q,\mu}}:=H_\ell(\Theta^\mu_Q)^2+L_\ell\Omega^\mu_Q, L SSM , R Q , μ ( Q ) := H ℓ ( Θ Q μ ) 2 + L ℓ Ω Q μ ,
L p r o x , R Q , μ ( Q ) : = L S S M , R Q , μ ( Q ) + μ , L^{(Q)}_{\mathrm{prox},R_{Q,\mu}}:=L^{(Q)}_{\mathrm{SSM},R_{Q,\mu}}+\mu, L prox , R Q , μ ( Q ) := L SSM , R Q , μ ( Q ) + μ ,
G S S M , R Q , μ ( Q ) : = L ℓ Θ Q μ = L ℓ [ ∑ q = 1 Q L x , q 2 ( H R μ , q + M C , q μ J R μ , q ) 2 ∏ q ′ = q + 1 Q ( M K , q ′ μ ) 2 ] 1 / 2 , \begin{aligned}
G^{(Q)}_{\mathrm{SSM},R_{Q,\mu}}:=L_\ell\Theta^\mu_Q \\
&=L_\ell\left[\sum_{q=1}^{Q}L_{x,q}^2\left(H_{R_{\mu,q}}+M^\mu_{C,q}J_{R_{\mu,q}}\right)^2\prod_{q'=q+1}^{Q}\left(M^\mu_{K,q'}\right)^2\right]^{1/2},
\end{aligned} G SSM , R Q , μ ( Q ) := L ℓ Θ Q μ = L ℓ q = 1 ∑ Q L x , q 2 ( H R μ , q + M C , q μ J R μ , q ) 2 q ′ = q + 1 ∏ Q ( M K , q ′ μ ) 2 1/2 ,
where empty products equal one. These are common deterministic smoothness and gradient bounds on the reduced neighborhoods
N R Q , μ ( W r ) : = ∏ q = 1 Q N R μ , q ( q ) ( W r , ( q ) ) . \mathcal{N}_{R_{Q,\mu}}(W^r):=\prod_{q=1}^{Q}\mathcal{N}^{(q)}_{R_{\mu,q}}(W^{r,(q)}). N R Q , μ ( W r ) := q = 1 ∏ Q N R μ , q ( q ) ( W r , ( q ) ) .
For the client distributions, define
P ‾ : = ∑ k = 1 K p k P k , H T V : = ∑ k = 1 K p k TV ( P k , P ‾ ) 2 , \overline{P}:=\sum_{k=1}^{K}p_kP_k,\qquad\mathcal{H}_{\mathrm{TV}}:=\sum_{k=1}^{K}p_k\operatorname{TV}(P_k,\overline{P})^2, P := k = 1 ∑ K p k P k , H TV := k = 1 ∑ K p k TV ( P k , P ) 2 ,
where TV ( P , Q ) : = sup A ∣ P ( A ) − Q ( A ) ∣ \operatorname{TV}(P,Q):=\sup_A\lvert P(A)-Q(A)\rvert TV ( P , Q ) := sup A ∣ P ( A ) − Q ( A )∣ , with the supremum taken over measurable sets A A A .
If the step size satisfies
η E L S S M , R Q , μ ( Q ) ≤ 1 2 , 12 η 2 ( L p r o x , R Q , μ ( Q ) ) 2 E ( E − 1 ) ≤ 1 , \eta\mathbb{E}L^{(Q)}_{\mathrm{SSM},R_{Q,\mu}}\leq\frac{1}{2},\qquad12\eta^2\left(L^{(Q)}_{\mathrm{prox},R_{Q,\mu}}\right)^2E(E-1)\leq1, η E L SSM , R Q , μ ( Q ) ≤ 2 1 , 12 η 2 ( L prox , R Q , μ ( Q ) ) 2 E ( E − 1 ) ≤ 1 ,
then
1 T ∑ r = 0 T − 1 E ∥ ∇ f ( W r ) ∥ F 2 ≤ 3 ( f ( W 0 ) − f ∗ ) η E T + 3 η L S S M , R Q , μ ( Q ) ( G S S M , R Q , μ ( Q ) ) 2 Ξ ∑ k = 1 K p k 2 + 3 η 2 ( L p r o x , R Q , μ ( Q ) ) 2 ( E − 1 ) ( G S S M , R Q , μ ( Q ) ) 2 Ξ + 24 η 2 ( L p r o x , R Q , μ ( Q ) ) 2 E ( E − 1 ) ( G S S M , R Q , μ ( Q ) ) 2 H T V . \begin{aligned}
\frac{1}{T}\sum_{r=0}^{T-1}\mathbb{E}\lVert\nabla f(W^r)\rVert_F^2
&\leq\frac{3\left(f(W^0)-f^\ast\right)}{\eta ET}\\
&\quad+\frac{3\eta L^{(Q)}_{\mathrm{SSM},R_{Q,\mu}}\left(G^{(Q)}_{\mathrm{SSM},R_{Q,\mu}}\right)^2}{\Xi}\sum_{k=1}^{K}p_k^2\\
&\quad+\frac{3\eta^2\left(L^{(Q)}_{\mathrm{prox},R_{Q,\mu}}\right)^2(E-1)\left(G^{(Q)}_{\mathrm{SSM},R_{Q,\mu}}\right)^2}{\Xi} \\
&+24\eta^2\left(L_{\mathrm{prox},R_Q,\mu}^{(Q)}\right)^2 E(E-1)\left(G_{\mathrm{SSM},R_Q,\mu}^{(Q)}\right)^2\mathcal{H}_{\mathrm{TV}}.
\end{aligned} T 1 r = 0 ∑ T − 1 E ∥ ∇ f ( W r ) ∥ F 2 ≤ η E T 3 ( f ( W 0 ) − f ∗ ) + Ξ 3 η L SSM , R Q , μ ( Q ) ( G SSM , R Q , μ ( Q ) ) 2 k = 1 ∑ K p k 2 + Ξ 3 η 2 ( L prox , R Q , μ ( Q ) ) 2 ( E − 1 ) ( G SSM , R Q , μ ( Q ) ) 2 + 24 η 2 ( L prox , R Q , μ ( Q ) ) 2 E ( E − 1 ) ( G SSM , R Q , μ ( Q ) ) 2 H TV .
Moreover, almost surely, for every round r < T r<T r < T , client k k k , layer q q q , and local step 0 ≤ e ≤ E 0\le e\le E 0 ≤ e ≤ E ,
∥ W k r , e , ( q ) − W r , ( q ) ∥ F ≤ min { R q , G S S M , R Q ( Q ) μ [ 1 − ( 1 − η μ ) e ] } ≤ R μ , q . \left\|W_k^{r,e,(q)}-W^{r,(q)}\right\|_F\le\min\left\{R_q,\frac{G_{\mathrm{SSM},R_Q}^{(Q)}}{\mu}\left[1-(1-\eta\mu)^e\right]\right\}\le R_{\mu,q}. W k r , e , ( q ) − W r , ( q ) F ≤ min ⎩ ⎨ ⎧ R q , μ G SSM , R Q ( Q ) [ 1 − ( 1 − η μ ) e ] ⎭ ⎬ ⎫ ≤ R μ , q .
Consequently, all local iterates and the aggregated model W r + 1 W^{r+1} W r + 1 lie in
N R Q , μ ( W r ) ⊆ N R Q ( W r ) ⊆ S γ , δ ( Q ) . \mathcal{N}_{R_Q,\mu}(W^r)\subseteq\mathcal{N}_{R_Q}(W^r)\subseteq\mathcal{S}_{\gamma,\delta}^{(Q)}. N R Q , μ ( W r ) ⊆ N R Q ( W r ) ⊆ S γ , δ ( Q ) .
Proof of Corollary C.9: We apply the federated optimization argument from the proof of Theorem B.6 to the full parameter tuple W = ( W ( 1 ) , … , W ( Q ) ) W=\left(W^{(1)},\ldots,W^{(Q)}\right) W = ( W ( 1 ) , … , W ( Q ) ) . After vectorization, the Euclidean norm of this tuple is exactly its block Frobenius norm.
First, the pointwise multi-layer gradient bound implies ∥ g k , Ξ r , e , ( q ) ∥ F ≤ G S S M , R Q ( Q ) \left\|g_{k,\Xi}^{r,e,(q)}\right\|_F\le G_{\mathrm{SSM},R_Q}^{(Q)} g k , Ξ r , e , ( q ) F ≤ G SSM , R Q ( Q ) , which also bounds each layer block of the mini-batch gradient. Applying the displacement recursion from the single-layer FedProx proof separately to each layer, and using 0 < η μ ≤ 1 0<\eta\mu\le1 0 < η μ ≤ 1 , gives
∥ W k r , e , ( q ) − W r , ( q ) ∥ F ≤ G S S M , R Q ( Q ) μ [ 1 − ( 1 − η μ ) e ] . (404) \left\|W_k^{r,e,(q)}-W^{r,(q)}\right\|_F\le\frac{G_{\mathrm{SSM},R_Q}^{(Q)}}{\mu}\left[1-(1-\eta\mu)^e\right]. \tag*{(404)} W k r , e , ( q ) − W r , ( q ) F ≤ μ G SSM , R Q ( Q ) [ 1 − ( 1 − η μ ) e ] . (404)
Combining this with the assumed containment in the original neighborhood yields the stated bound by R μ , q R_{\mu,q} R μ , q .
Consequently, all local iterates lie in N R Q , μ ( W r ) \mathcal{N}_{R_Q,\mu}(W^r) N R Q , μ ( W r ) . This neighborhood is a product of convex balls, so it also contains their weighted aggregate and the segments used in the smoothness argument.
For every W ∈ N R Q , μ ( W r ) W\in\mathcal{N}_{R_Q,\mu}(W^r) W ∈ N R Q , μ ( W r ) ,
∥ W X ( q ) ∥ 2 ≤ ∥ W X r , ( q ) ∥ 2 + R μ , q ≤ M X , q − R q + R μ , q = M X , q μ . \left\|W_X^{(q)}\right\|_2\le\left\|W_X^{r,(q)}\right\|_2+R_{\mu,q}\le M_{X,q}-R_q+R_{\mu,q}=M_{X,q}^{\mu}. W X ( q ) 2 ≤ W X r , ( q ) 2 + R μ , q ≤ M X , q − R q + R μ , q = M X , q μ .
The preceding neighborhood estimates therefore apply with the common deterministic envelopes M X , q μ M_{X,q}^{\mu} M X , q μ , because their defining expressions are nondecreasing in those envelopes.
Lemma C.4 supplies the common smoothness constant L S S M , R Q , μ ( Q ) L_{\mathrm{SSM},R_Q,\mu}^{(Q)} L SSM , R Q , μ ( Q ) for each client objective and for f f f . Adding the proximal penalty makes each local proximal objective L p r o x , R Q , μ ( Q ) L_{\mathrm{prox},R_Q,\mu}^{(Q)} L prox , R Q , μ ( Q ) -smooth, where
L p r o x , R Q , μ ( Q ) = L S S M , R Q , μ ( Q ) + μ . L_{\mathrm{prox},R_Q,\mu}^{(Q)}=L_{\mathrm{SSM},R_Q,\mu}^{(Q)}+\mu. L prox , R Q , μ ( Q ) = L SSM , R Q , μ ( Q ) + μ .
Lemma C.6, applied conditionally on the complete history before each mini-batch, supplies
σ 2 = ( G S S M , R Q , μ ( Q ) ) 2 Ξ . \sigma^2=\frac{\left(G_{\mathrm{SSM},R_Q,\mu}^{(Q)}\right)^2}{\Xi}. σ 2 = Ξ ( G SSM , R Q , μ ( Q ) ) 2 .
The proximal term is deterministic under this conditioning and does not alter the gradient-noise variance. Conditional independence across clients gives the corresponding weighted-noise variance bound σ 2 ∑ k p k 2 \sigma^2\sum_k p_k^2 σ 2 ∑ k p k 2 .
Lemma C.7 supplies the common client-gradient disagreement bound
Γ 2 = 4 ( G S S M , R Q , μ ( Q ) ) 2 H T V . \Gamma^2=4\left(G_{\mathrm{SSM},R_Q,\mu}^{(Q)}\right)^2\mathcal{H}_{\mathrm{TV}}. Γ 2 = 4 ( G SSM , R Q , μ ( Q ) ) 2 H TV .
The common proximal term cancels when comparing client gradients with their weighted average at the same parameter tuple.
The remaining local-drift and descent calculations in the proof of Theorem B.6 depend only on these smoothness, variance, and disagreement bounds, the conditional sampling assumptions, and convexity of the neighborhoods. Applying those calculations with the multi-layer constants above under the state learning-rate conditions and substituting the defined values of σ 2 \sigma^2 σ 2 and Γ 2 \Gamma^2 Γ 2 yields the desired inequality in Corollary C.9, completing the proof.
Supplementary Corollaries
In this section, we provide supplementary corollaries to the theorems presented in the preceding sections and in the main manuscript. These corollaries simplify the preceding results and make explicit their dependence on SSM-specific quantities, including stability, parameter norms, network depth, and related architectural properties.
Single-layer convergence rate corollaries
In this section, we provide convergence rate guarantees for FedAvg ([18 ] ) and FedProx ([38 ] ) learning frameworks. Every convergence corollary retains the assumptions of its referenced result. Furthermore, we establish and retain the following conventions:
F 0 : = f ( W 0 ) − f ∗ , (405) F_0 := f(W^0) - f^*, \tag*{(405)} F 0 := f ( W 0 ) − f ∗ , (405)
P 2 : = ∑ k = 1 K p k 2 , (406) P_2 := \sum_{k=1}^{K} p_k^2, \tag*{(406)} P 2 := k = 1 ∑ K p k 2 , (406)
H T V : = ∑ k p k TV ( P k , P ‾ ) 2 (407) \mathcal{H}_{\mathrm{TV}} := \sum_k p_k \operatorname{TV}(\mathcal{P}_k,\overline{\mathcal{P}})^2 \tag*{(407)} H TV := k ∑ p k TV ( P k , P ) 2 (407)
All O \mathcal{O} O expressions denote upper bounds on nonnegative quantities.
Note that Corollary 4.8 is stated in § 4 , with this section containing its proof.
Corollary 4.8: Single-layer FedAvg convergence rate proof
Proof of Corollary 4.8: By Lemmas 4.7 and B.2 :
G S S M , R = O ( M R ( 1 − ρ ) 2 ) , L S S M , R = O ( M R 2 ( 1 − ρ ) 4 ) (408) G_{\mathrm{SSM},R} = \mathcal{O}\left(\frac{M_R}{(1-\rho)^2}\right), \qquad L_{\mathrm{SSM},R} = \mathcal{O}\left(\frac{M_R^2}{(1-\rho)^4}\right) \tag*{(408)} G SSM , R = O ( ( 1 − ρ ) 2 M R ) , L SSM , R = O ( ( 1 − ρ ) 4 M R 2 ) (408)
Substituting these bounds into Theorem B.5 , collecting the two local-drift terms, and using the fact that P 2 ≤ 1 P_2 \le1 P 2 ≤ 1 , yields the inequality in Corollary 4.8.
Corollary D.1: Single-layer FedProx convergence rate and proof
Corollary D.1 (Single-layer FedProx convergence rate). Under the assumptions and step-size conditions of Theorem B.6 , given its reduced envelopes M X μ = M X − R + R μ M_X^\mu= M_X - R + R_\mu M X μ = M X − R + R μ , define:
M R μ : = ( 1 + M B μ ) ( 1 + M C μ ) ( 1 + M Δ μ ) ( 1 + M Δ μ + M A μ ) . M_{R_\mu} := (1 + M_B^\mu)(1 + M_C^\mu)(1 + M_\Delta^\mu)(1 + M_\Delta^\mu+ M_A^\mu). M R μ := ( 1 + M B μ ) ( 1 + M C μ ) ( 1 + M Δ μ ) ( 1 + M Δ μ + M A μ ) . Then
1 T ∑ r = 0 T − 1 E ∥ ∇ f ( W r ) ∥ F 2 = O ( F 0 η E T + η M R μ 4 Ξ ( 1 − ρ ) 8 + η 2 M R μ 2 ( 1 − ρ ) 4 ( M R μ 2 ( 1 − ρ ) 4 + μ ) 2 ( E − 1 ) ( 1 Ξ + E H T V ) ) . (409) \frac{1}{T}\sum_{r=0}^{T-1}\mathbb{E}\left\lVert\nabla f(W^r)\right\rVert_F^2
= \mathcal{O}\left(
\frac{F_0}{\eta E T}
+ \frac{\eta M_{R_\mu}^4}{\Xi(1-\rho)^8}
+ \eta^2\frac{M_{R_\mu}^2}{(1-\rho)^4}
\left(\frac{M_{R_\mu}^2}{(1-\rho)^4}+\mu\right)^2
(E-1)\left(\frac{1}{\Xi}+E\mathcal{H}_{\mathrm{TV}}\right)
\right). \tag*{(409)} T 1 r = 0 ∑ T − 1 E ∥ ∇ f ( W r ) ∥ F 2 = O η E T F 0 + Ξ ( 1 − ρ ) 8 η M R μ 4 + η 2 ( 1 − ρ ) 4 M R μ 2 ( ( 1 − ρ ) 4 M R μ 2 + μ ) 2 ( E − 1 ) ( Ξ 1 + E H TV ) . (409) The implicit constant has the same dependencies as in Corollary 4.8 and is independent of μ \mu μ .
Proof of Corollary D.1: The single-layer scaling argument, evaluated with M X μ M_X^\mu M X μ , gives G S S M , R μ = O ( M R μ ( 1 − ρ ) 2 ) G_{\mathrm{SSM},R_\mu} = \mathcal{O}\left(\frac{M_{R_\mu}}{(1-\rho)^2}\right) G SSM , R μ = O ( ( 1 − ρ ) 2 M R μ ) and L S S M , R μ = O ( M R μ 2 ( 1 − ρ ) 4 ) L_{\mathrm{SSM},R_\mu} = \mathcal{O}\left(\frac{M_{R_\mu}^2}{(1-\rho)^4}\right) L SSM , R μ = O ( ( 1 − ρ ) 4 M R μ 2 ) .
Consequently L p r o x , R μ = O ( M R μ 2 ( 1 − ρ ) 4 + μ ) L_{\mathrm{prox},R_\mu} = \mathcal{O}\left(\frac{M_{R_\mu}^2}{(1-\rho)^4}+\mu\right) L prox , R μ = O ( ( 1 − ρ ) 4 M R μ 2 + μ ) . Substituting these results into Theorem B.6 and using the fact that P 2 ≤ 1 P_2 \le1 P 2 ≤ 1 proves the bound.
Note that although M R μ ( 1 − ρ ) 2 ≤ M R ( 1 − ρ ) 2 \frac{M_{R_\mu}}{(1-\rho)^2} \le\frac{M_R}{(1-\rho)^2} ( 1 − ρ ) 2 M R μ ≤ ( 1 − ρ ) 2 M R for the same original envelopes, the bound in Corollary D.1 also contains additional μ \mu μ terms. As such, these bounds expose a trade-off and do not imply that every positive proximal coefficient improves the convergence guarantee.
Multi-Layer SSM Gradient Scaling Bounds
In this section we provide simplified bounds on the multi-layer gradient, where all per-layer quantities are scaled to a single, common value. For the remainder of this section, we will utilize the following notation: for a fixed model in Theorem C.3 , let
L x : = max 1 ≤ q ≤ Q L x , q , ρ : = max 1 ≤ q ≤ Q ρ q < 1 , M X : = max 1 ≤ q ≤ Q ∥ W X ( q ) ∥ 2 , X ∈ { Δ , B , C , A } , (410) \begin{aligned}
L_x &:= \max_{1 \leq q \leq Q} L_{x,q}, \qquad\rho:= \max_{1 \leq q \leq Q} \rho_q < 1,\\
M_X &:= \max_{1 \leq q \leq Q} \left\lVert W_X^{(q)} \right\rVert_2,\qquad X \in\{\Delta,B,C,A\}, \tag*{(410)}
\end{aligned} L x M X := 1 ≤ q ≤ Q max L x , q , ρ := 1 ≤ q ≤ Q max ρ q < 1 , := 1 ≤ q ≤ Q max W X ( q ) 2 , X ∈ { Δ , B , C , A } , (410)
where W A ( q ) : = A ( q ) W_A^{(q)} := A^{(q)} W A ( q ) := A ( q ) .
For neighborhood-uniform statements, take M X : = max q M X , q M_X := \max_q M_{X,q} M X := max q M X , q using the deterministic envelopes in the multi-layer convergence results. The bounds on L x L_x L x and ρ \rho ρ are then uniform on those neighborhoods as well. Note that common upper bounds suffice - the layers do not need to have identical weights or identical stability factors.
Using these common quantities, define
M K Δ : = M Δ L x + D log 2 , (411) M_{K_\Delta} := M_\Delta L_x + \sqrt{D}\log2, \tag*{(411)} M K Δ := M Δ L x + D log 2 , (411)
M K B : = M B L x 2 , (412) M_{K_B} := M_B L_x^2, \tag*{(412)} M K B := M B L x 2 , (412)
M K W : = N D M K B M K Δ ( M K Δ + D M A L x ) ρ 1 − ρ + L x 2 N M K Δ + L x D M K B , (413) \begin{aligned}
M_{K_W} := {}& N D M_{K_B} M_{K_\Delta}(M_{K_\Delta}+\sqrt{D}M_A L_x)\frac{\rho}{1-\rho}\\
&+L_x^2\sqrt{N}M_{K_\Delta}+L_x\sqrt{D}M_{K_B}, \tag*{(413)}
\end{aligned} M K W := N D M K B M K Δ ( M K Δ + D M A L x ) 1 − ρ ρ + L x 2 N M K Δ + L x D M K B , (413)
H : = M K B M K Δ N D 1 − ρ , (414) H := \frac{M_{K_B}M_{K_\Delta}\sqrt{ND}}{1-\rho}, \tag*{(414)} H := 1 − ρ M K B M K Δ N D , (414)
J : = M K W 1 − ρ , (415) J := \frac{M_{K_W}}{1-\rho}, \tag*{(415)} J := 1 − ρ M K W , (415)
Λ : = ρ M A M Δ H + M B L x ( 2 M K Δ + L x M Δ ) , (416) \Lambda:= \rho M_A M_\Delta H + M_B L_x(2M_{K_\Delta}+L_xM_\Delta), \tag*{(416)} Λ := ρ M A M Δ H + M B L x ( 2 M K Δ + L x M Δ ) , (416)
κ : = M C ( H + L x Λ 1 − ρ ) . (417) \kappa:= M_C\left(H+\frac{L_x\Lambda}{1-\rho}\right). \tag*{(417)} κ := M C ( H + 1 − ρ L x Λ ) . (417)
Corollary D.2: Multi-layer Gradient under Common Layer Bounds and Proof
Corollary D.2 (Multi-layer gradient under common layer bounds). Under the assumptions of Theorem C.3 , the quantities in (410)-(416) satisfy, for every admissible sequence pair ξ \xi ξ of finite length S S S ,
∥ ∇ W L S , ( Q ) ( W ; ξ ) ∥ F ≤ L ℓ L x ( H + M C J ) ∑ q = 0 Q − 1 κ 2 q . \left\lVert\nabla_W \mathcal{L}^{S,(Q)}(W;\xi)\right\rVert_F \leq L_\ell L_x(H+M_CJ)\sqrt{\sum_{q=0}^{Q-1}\kappa^{2q}}. ∇ W L S , ( Q ) ( W ; ξ ) F ≤ L ℓ L x ( H + M C J ) q = 0 ∑ Q − 1 κ 2 q . Furthermore, the following inequalities hold for different values of κ \kappa κ :
∥ ∇ W L S , ( Q ) ( W ; ξ ) ∥ F ≤ L ℓ L x ( H + M C J ) { 1 1 − κ 2 , 0 ≤ κ < 1 , Q , κ = 1 , κ 2 Q − 1 κ 2 − 1 , κ > 1. \left\lVert\nabla_W \mathcal{L}^{S,(Q)}(W;\xi)\right\rVert_F
\leq L_\ell L_x(H+M_CJ)
\begin{cases}
\frac{1}{\sqrt{1-\kappa^2}}, & 0\leq\kappa<1,\\
\sqrt{Q}, & \kappa=1,\\
\sqrt{\frac{\kappa^{2Q}-1}{\kappa^2-1}}, & \kappa>1.
\end{cases} ∇ W L S , ( Q ) ( W ; ξ ) F ≤ L ℓ L x ( H + M C J ) ⎩ ⎨ ⎧ 1 − κ 2 1 , Q , κ 2 − 1 κ 2 Q − 1 , 0 ≤ κ < 1 , κ = 1 , κ > 1.
Proof of Corollary D.2: All defining expressions 410-416 are nondecreasing in the nonnegative parameter, input, and stability upper bounds. As a result, each own-layer factor in Theorem C.3 is at most L x ( H + M C J ) L_x(H+M_CJ) L x ( H + M C J ) , and each downstream sensitivity is at most κ \kappa κ . Substitution into the inequality from Theorem C.3 gives the right-hand side bounded by L ℓ L x ( H + M C J ) ( ∑ q = 1 Q κ 2 ( Q − q ) ) 1 / 2 L_\ell L_x(H+M_CJ)\left(\sum_{q=1}^{Q}\kappa^{2(Q-q)}\right)^{1/2} L ℓ L x ( H + M C J ) ( ∑ q = 1 Q κ 2 ( Q − q ) ) 1/2 . Evaluating the geometric sum proves both claimed inequalities.
For common envelopes independent of Q Q Q , the upper bound is uniform in depth when κ < 1 \kappa<1 κ < 1 , grows at most as Q \sqrt{Q} Q when κ = 1 \kappa=1 κ = 1 , and can grow exponentially when κ > 1 \kappa>1 κ > 1 . Temporal stability ρ < 1 \rho<1 ρ < 1 alone does not imply κ < 1 \kappa<1 κ < 1 , and an exponentially growing upper bound does not establish that actual gradients grow exponentially.
Multi-layer gradient rate under common layer bounds and proof
Corollary D.3 (Multi-layer gradient rate under common layer bounds). Under the assumptions of Theorem C.3 , define
M q : = ( 1 + ∥ W B ( q ) ∥ 2 ) ( 1 + ∥ W C ( q ) ∥ 2 ) ( 1 + ∥ W Δ ( q ) ∥ 2 ) ( 1 + ∥ W Δ ( q ) ∥ 2 + ∥ A ( q ) ∥ 2 ) . \mathfrak{M}_q := \left(1+\lVert W_B^{(q)}\rVert_2\right)\left(1+\lVert W_C^{(q)}\rVert_2\right)\left(1+\lVert W_\Delta^{(q)}\rVert_2\right)\left(1+\lVert W_\Delta^{(q)}\rVert_2+\lVert A^{(q)}\rVert_2\right). M q := ( 1 + ∥ W B ( q ) ∥ 2 ) ( 1 + ∥ W C ( q ) ∥ 2 ) ( 1 + ∥ W Δ ( q ) ∥ 2 ) ( 1 + ∥ W Δ ( q ) ∥ 2 + ∥ A ( q ) ∥ 2 ) .
Then, given the κ q \kappa_q κ q defined in that theorem, it holds that:
∥ ∇ W L S , ( Q ) ( W ; ξ ) ∥ F = O [ ( ∑ q = 1 Q M q 2 ( 1 − ρ q ) 4 ∏ j = q + 1 Q κ j 2 ) 1 / 2 ] . \left\lVert\nabla_W\mathcal{L}^{S,(Q)}(W;\xi)\right\rVert_F
= O\left[\left(\sum_{q=1}^{Q}\frac{\mathfrak{M}_q^2}{(1-\rho_q)^4}\prod_{j=q+1}^{Q}\kappa_j^2\right)^{1/2}\right]. ∇ W L S , ( Q ) ( W ; ξ ) F = O ( q = 1 ∑ Q ( 1 − ρ q ) 4 M q 2 j = q + 1 ∏ Q κ j 2 ) 1/2 .
Furthermore, with the common envelopes defined above, let M : = ( 1 + M B ) ( 1 + M C ) ( 1 + M Δ ) ( 1 + M Δ + M A ) \mathfrak{M}:=(1+M_B)(1+M_C)(1+M_\Delta)(1+M_\Delta+M_A) M := ( 1 + M B ) ( 1 + M C ) ( 1 + M Δ ) ( 1 + M Δ + M A ) . Then the following holds:
∥ ∇ W L S , ( Q ) ( W ; ξ ) ∥ F = O ( M ( 1 − ρ ) 2 ∑ q = 0 Q − 1 κ 2 q ) = O ( M ( 1 − ρ ) 2 { 1 1 − κ 2 , 0 ≤ κ < 1 , Q , κ = 1 , κ 2 Q − 1 κ 2 − 1 , κ > 1. ) . \begin{aligned}
\left\lVert\nabla_W\mathcal{L}^{S,(Q)}(W;\xi)\right\rVert_F
=O\left(\frac{\mathfrak{M}}{(1-\rho)^2}\sqrt{\sum_{q=0}^{Q-1}\kappa^{2q}}\right) \\
&=O\left(\frac{\mathfrak{M}}{(1-\rho)^2}
\begin{cases}
\sqrt{\frac{1}{1-\kappa^2}}, & 0\leq\kappa<1,\\
\sqrt{Q}, & \kappa=1,\\
\sqrt{\frac{\kappa^{2Q}-1}{\kappa^2-1}}, & \kappa>1.
\end{cases}\right).
\end{aligned} ∇ W L S , ( Q ) ( W ; ξ ) F = O ( 1 − ρ ) 2 M q = 0 ∑ Q − 1 κ 2 q = O ( 1 − ρ ) 2 M ⎩ ⎨ ⎧ 1 − κ 2 1 , Q , κ 2 − 1 κ 2 Q − 1 , 0 ≤ κ < 1 , κ = 1 , κ > 1. .
The implicit constants depend only on N N N , D D D , L x L_x L x , L ℓ L_\ell L ℓ , where L x ≥ max q L x , q L_x\geq\max_q L_{x,q} L x ≥ max q L x , q , and are independent of Q Q Q , sequence length, parameter norms, and stability factors.
Proof of Corollary D.3: The single-layer estimates give L x , q ( H q + ∥ W C ( q ) ∥ 2 J q ) ≤ C M q / ( 1 − ρ q ) 2 L_{x,q}\left(H_q+\lVert W_C^{(q)}\rVert_2J_q\right)\leq C\mathfrak{M}_q/(1-\rho_q)^2 L x , q ( H q + ∥ W C ( q ) ∥ 2 J q ) ≤ C M q / ( 1 − ρ q ) 2 for some common constant C C C . Substituting this into Theorem C.3 we obtain the first equality of in Corollary D.3.
Additionally, substituting L x ( H + M C J ) = O ( M / ( 1 − ρ ) 2 ) L_x(H+M_CJ)=O\left(\mathfrak{M}/(1-\rho)^2\right) L x ( H + M C J ) = O ( M / ( 1 − ρ ) 2 ) into Corollary D.2 proves the second equality.
Multi-layer convergence under common layer bounds
In the following corollaries and their proof, we utilize the neighborhood-uniform common envelopes defined in (410) and 410–416, with the same L ℓ L_\ell L ℓ , H ℓ H_\ell H ℓ throughout all considered neighborhoods. The following reduction replaces the original layer-dependent sensitivity recursions by three finite geometric sums.
We further define the common auxiliary constants
d ∗ : = L x + M Δ , (418) d_* := L_x+M_\Delta, \tag*{(418)} d ∗ := L x + M Δ , (418)
b ∗ : = 1 4 d ∗ 2 + 2 , (419) b_* := \frac{1}{4}d_*^2+2, \tag*{(419)} b ∗ := 4 1 d ∗ 2 + 2 , (419)
c ∗ : = M K Δ + M A d ∗ , (420) c_* := M_{K_\Delta}+M_A d_*, \tag*{(420)} c ∗ := M K Δ + M A d ∗ , (420)
j ∗ : = J + Λ 1 − ρ , (421) j_* := J+\frac{\Lambda}{1-\rho}, \tag*{(421)} j ∗ := J + 1 − ρ Λ , (421)
E ∗ : = ρ H ( c ∗ 2 + 2 d ∗ + M A b ∗ ) + 2 ρ c ∗ j ∗ + 2 M K Δ L x + 2 ( L x + M B ) ( L x d ∗ + M K Δ ) + M B L x ( L x b ∗ + 2 d ∗ ) , (422) E_* := \rho H(c_*^2+2d_*+M_A b_*)+2\rho c_*j_*+2M_{K_\Delta}L_x
+2(L_x+M_B)(L_xd_*+M_{K_\Delta})+M_BL_x(L_xb_*+2d_*), \tag*{(422)} E ∗ := ρ H ( c ∗ 2 + 2 d ∗ + M A b ∗ ) + 2 ρ c ∗ j ∗ + 2 M K Δ L x + 2 ( L x + M B ) ( L x d ∗ + M K Δ ) + M B L x ( L x b ∗ + 2 d ∗ ) , (422)
B ∗ : = M C L x E ∗ 1 − ρ + 2 ( L x + M C ) j ∗ + 2 H . (423) B_* := \frac{M_C L_xE_*}{1-\rho}+2(L_x+M_C)j_*+2H. \tag*{(423)} B ∗ := 1 − ρ M C L x E ∗ + 2 ( L x + M C ) j ∗ + 2 H . (423)
For Q ≥ 1 Q\geq1 Q ≥ 1 , define
G ^ Q : = L ℓ L x ( H + M C J ) ∑ q = 0 Q − 1 κ 2 q , (424) \widehat{G}_Q := L_\ell L_x(H+M_CJ)\sqrt{\sum_{q=0}^{Q-1}\kappa^{2q}}, \tag*{(424)} G Q := L ℓ L x ( H + M C J ) q = 0 ∑ Q − 1 κ 2 q , (424)
L ^ Q : = H ℓ L x 2 ( H + M C J ) 2 ∑ q = 0 Q − 1 κ 2 q + L ℓ B ∗ [ ∑ q = 0 Q − 1 κ q + L x 2 ( H + M C J ) 2 ∑ q = 1 Q κ Q − q ( ∑ j = 0 q − 1 κ 2 j ) ] . (425) \widehat{L}_Q := H_{\ell}L_x^2(H+M_CJ)^2\sum_{q=0}^{Q-1}\kappa^{2q}
+L_{\ell}B_* \left[\sum_{q=0}^{Q-1}\kappa^q+L_x^2(H+M_CJ)^2\sum_{q=1}^{Q}\kappa^{Q-q}\left(\sum_{j=0}^{q-1}\kappa^{2j}\right)\right]. \tag*{(425)} L Q := H ℓ L x 2 ( H + M C J ) 2 q = 0 ∑ Q − 1 κ 2 q + L ℓ B ∗ [ q = 0 ∑ Q − 1 κ q + L x 2 ( H + M C J ) 2 q = 1 ∑ Q κ Q − q ( j = 0 ∑ q − 1 κ 2 j ) ] . (425)
In particular, for κ ≠ 1 \kappa\ne1 κ = 1 ,
∑ q = 0 Q − 1 κ q = 1 − κ Q 1 − κ , ∑ q = 1 Q κ Q − q ( ∑ j = 0 q − 1 κ 2 j ) = ( 1 − κ Q ) ( 1 − κ Q + 1 ) ( 1 − κ ) ( 1 − κ 2 ) , κ ≠ 1. (426) \sum_{q=0}^{Q-1}\kappa^q=\frac{1-\kappa^Q}{1-\kappa},\qquad
\sum_{q=1}^{Q}\kappa^{Q-q}\left(\sum_{j=0}^{q-1}\kappa^{2j}\right)=\frac{(1-\kappa^Q)(1-\kappa^{Q+1})}{(1-\kappa)(1-\kappa^2)},\qquad\kappa\ne1. \tag*{(426)} q = 0 ∑ Q − 1 κ q = 1 − κ 1 − κ Q , q = 1 ∑ Q κ Q − q ( j = 0 ∑ q − 1 κ 2 j ) = ( 1 − κ ) ( 1 − κ 2 ) ( 1 − κ Q ) ( 1 − κ Q + 1 ) , κ = 1. (426)
For κ = 1 \kappa=1 κ = 1 , the two sums reduce to Q Q Q and Q ( Q + 1 ) / 2 Q(Q+1)/2 Q ( Q + 1 ) /2 , respectively.
Corollary D.4: Common-layer smoothness and depth dependence and Proof
Corollary D.4 (Common-layer smoothness and depth dependence). Under the neighborhood assumptions of Lemma C.4, the constants G S S M , R Q ( Q ) G_{\mathrm{SSM},R_Q}^{(Q)} G SSM , R Q ( Q ) and L S S M , R Q ( Q ) L_{\mathrm{SSM},R_Q}^{(Q)} L SSM , R Q ( Q ) defined in Corollary C.8 satisfy:
G S S M , R Q ( Q ) ≤ G ^ Q , L S S M , R Q ( Q ) ≤ L ^ Q . G_{\mathrm{SSM},R_Q}^{(Q)}\le\widehat{G}_Q,\qquad L_{\mathrm{SSM},R_Q}^{(Q)}\le\widehat{L}_Q. G SSM , R Q ( Q ) ≤ G Q , L SSM , R Q ( Q ) ≤ L Q . If all common envelopes and regularity constants are fixed independently of Q Q Q , their depth dependence is
( G ^ Q , L ^ Q ) = { ( O ( 1 ) , O ( 1 ) ) , 0 ≤ κ < 1 , ( O ( Q ) , O ( Q 2 ) ) , κ = 1 , ( O ( κ Q ) , O ( κ 2 Q ) ) , κ > 1. \left(\widehat{G}_Q,\widehat{L}_Q\right)=
\begin{cases}
(\mathcal{O}(1),\mathcal{O}(1)), & 0\le\kappa<1,\\
(\mathcal{O}(\sqrt{Q}),\mathcal{O}(Q^2)), & \kappa=1,\\
(\mathcal{O}(\kappa^Q),\mathcal{O}(\kappa^{2Q})), & \kappa>1.
\end{cases} ( G Q , L Q ) = ⎩ ⎨ ⎧ ( O ( 1 ) , O ( 1 )) , ( O ( Q ) , O ( Q 2 )) , ( O ( κ Q ) , O ( κ 2 Q )) , 0 ≤ κ < 1 , κ = 1 , κ > 1. Here only Q Q Q varies: the implicit constants may depend on the fixed common envelopes and on κ \kappa κ .
Proof of Corollary D.4. After replacing the layerwise quantities by their common upper bounds, the first-sensitivity recursion yields, for every q ≥ 1 q\ge1 q ≥ 1 ,
Θ q 2 ≤ L x 2 ( H + M C J ) 2 ∑ j = 0 q − 1 κ 2 j . (427) \Theta_q^2\le L_x^2(H+M_CJ)^2\sum_{j=0}^{q-1}\kappa^{2j}. \tag*{(427)} Θ q 2 ≤ L x 2 ( H + M C J ) 2 j = 0 ∑ q − 1 κ 2 j . (427)
Hence,
G S S M , R Q ( Q ) = L ℓ Θ Q ≤ L ℓ L x ( H + M C J ) ∑ j = 0 Q − 1 κ 2 j = G ^ Q . (428) G_{\mathrm{SSM},R_Q}^{(Q)}=L_{\ell}\Theta_Q\le L_{\ell}L_x(H+M_CJ)\sqrt{\sum_{j=0}^{Q-1}\kappa^{2j}}=\widehat{G}_Q. \tag*{(428)} G SSM , R Q ( Q ) = L ℓ Θ Q ≤ L ℓ L x ( H + M C J ) j = 0 ∑ Q − 1 κ 2 j = G Q . (428)
For the second-sensitivity recursion, the terms independent of Ω q − 1 \Omega_{q-1} Ω q − 1 are bounded by
B ∗ ( 1 + Θ q − 1 2 ) , (429) B_*\left(1+\Theta_{q-1}^2\right), \tag*{(429)} B ∗ ( 1 + Θ q − 1 2 ) , (429)
This follows because, after replacing the layerwise quantities by their common upper bounds, the terms independent of Ω q − 1 \Omega_{q-1} Ω q − 1 form a polynomial of degree at most two in Θ q − 1 \Theta_{q-1} Θ q − 1 with nonnegative coefficients. The sum of these coefficients is B ∗ B_* B ∗ , obtained by setting Θ q − 1 = 1 \Theta_{q-1}=1 Θ q − 1 = 1 . Since each of 1 1 1 , Θ q − 1 \Theta_{q-1} Θ q − 1 , and Θ q − 1 2 \Theta_{q-1}^2 Θ q − 1 2 is at most 1 + Θ q − 1 2 1+\Theta_{q-1}^2 1 + Θ q − 1 2 , the displayed bound follows. Therefore, unrolling the recursion gives
Ω Q ≤ B ∗ ∑ q = 1 Q κ Q − q ( 1 + Θ q − 1 2 ) ≤ B ∗ [ ∑ q = 0 Q − 1 κ q + L x 2 ( H + M C J ) 2 ∑ q = 1 Q κ Q − q ( ∑ j = 0 q − 1 κ 2 j ) ] , (430) \Omega_Q\le B_*\sum_{q=1}^{Q}\kappa^{Q-q}\left(1+\Theta_{q-1}^2\right)
\le B_*\left[\sum_{q=0}^{Q-1}\kappa^q+L_x^2(H+M_CJ)^2\sum_{q=1}^{Q}\kappa^{Q-q}\left(\sum_{j=0}^{q-1}\kappa^{2j}\right)\right], \tag*{(430)} Ω Q ≤ B ∗ q = 1 ∑ Q κ Q − q ( 1 + Θ q − 1 2 ) ≤ B ∗ [ q = 0 ∑ Q − 1 κ q + L x 2 ( H + M C J ) 2 q = 1 ∑ Q κ Q − q ( j = 0 ∑ q − 1 κ 2 j ) ] , (430)
where the first-sensitivity bound was used in the second inequality. Substituting the bounds on Θ Q \Theta_Q Θ Q and Ω Q \Omega_Q Ω Q into
L S S M , R Q ( Q ) = H ℓ Θ ^ Q 2 + L ℓ Ω Q , (431) L_{\mathrm{SSM},R_Q}^{(Q)} = H_\ell\widehat{\Theta}_Q^2 + L_\ell\Omega_Q, \tag*{(431)} L SSM , R Q ( Q ) = H ℓ Θ Q 2 + L ℓ Ω Q , (431)
we get:
L S S M , R Q ( Q ) ≤ L ^ Q . (432) L_{\mathrm{SSM},R_Q}^{(Q)} \le\widehat{L}_Q. \tag*{(432)} L SSM , R Q ( Q ) ≤ L Q . (432)
Finally, evaluating the geometric sums gives
( G ^ Q , L ^ Q ) = { ( O ( 1 ) , O ( 1 ) ) , 0 ≤ κ < 1 , ( O ( Q ) , O ( Q 2 ) ) , κ = 1 , ( O ( κ Q ) , O ( κ 2 Q ) ) , κ > 1 , (433) \left(\widehat{G}_Q,\widehat{L}_Q\right)=
\begin{cases}
\left(\mathcal{O}(1),\mathcal{O}(1)\right), & 0\le\kappa<1,\\
\left(\mathcal{O}(\sqrt{Q}),\mathcal{O}(Q^2)\right), & \kappa=1,\\
\left(\mathcal{O}(\kappa^Q),\mathcal{O}(\kappa^{2Q})\right), & \kappa>1,
\end{cases} \tag*{(433)} ( G Q , L Q ) = ⎩ ⎨ ⎧ ( O ( 1 ) , O ( 1 ) ) , ( O ( Q ) , O ( Q 2 ) ) , ( O ( κ Q ) , O ( κ 2 Q ) ) , 0 ≤ κ < 1 , κ = 1 , κ > 1 , (433)
which proves the stated depth dependence.
Corollary D.5: Multi-layer FedAvg under common layer bounds and proof
Corollary D.5 (Multi-layer FedAvg under common layer bounds). Under the assumptions of Corollary C.8, let G ^ Q \widehat{G}_Q G Q and L ^ Q \widehat{L}_Q L Q be the common upper bounds in (423) and (424), evaluated with the neighborhood-uniform common envelopes introduced above. If
η E L ^ Q ≤ 1 2 , 12 η 2 L ^ Q 2 E ( E − 1 ) ≤ 1 , \eta E\widehat{L}_Q \le\frac{1}{2}, \qquad12\eta^2\widehat{L}_Q^2E(E-1)\le1, η E L Q ≤ 2 1 , 12 η 2 L Q 2 E ( E − 1 ) ≤ 1 , then
1 T ∑ r = 0 T − 1 E ∥ ∇ f ( W r ) ∥ F 2 = O ( F 0 η E T + η L ^ Q G ^ Q 2 P 2 Ξ + η 2 L ^ Q 2 G ^ Q 2 ( E − 1 ) [ 1 Ξ + E H T V ] ) . \frac{1}{T}\sum_{r=0}^{T-1}\mathbb{E}\left\lVert\nabla f(W^r)\right\rVert_F^2
=\mathcal{O}\left(
\frac{F_0}{\eta ET}
+\frac{\eta\widehat{L}_Q\widehat{G}_Q^2P_2}{\Xi}
+\eta^2\widehat{L}_Q^2\widehat{G}_Q^2(E-1)
\left[\frac{1}{\Xi}+EH_{\mathrm{TV}}\right]
\right). T 1 r = 0 ∑ T − 1 E ∥ ∇ f ( W r ) ∥ F 2 = O ( η E T F 0 + Ξ η L Q G Q 2 P 2 + η 2 L Q 2 G Q 2 ( E − 1 ) [ Ξ 1 + E H TV ] ) .
The implicit constant is numerical. For common envelopes and loss-regularity constants fixed independently of Q Q Q , the depth dependence of G ^ Q \widehat{G}_Q G Q and L ^ Q \widehat{L}_Q L Q is explicit in (423) and (424) and Corollary D.4.
Proof of Corollary D.5: Corollary D.4 gives
G S S M , R Q ( Q ) ≤ G ^ Q , L S S M , R Q ( Q ) ≤ L ^ Q . G_{\mathrm{SSM},R_Q}^{(Q)}\le\widehat{G}_Q,\qquad
L_{\mathrm{SSM},R_Q}^{(Q)}\le\widehat{L}_Q. G SSM , R Q ( Q ) ≤ G Q , L SSM , R Q ( Q ) ≤ L Q .
Consequently, the displayed step-size conditions imply those of Corollary C.8. Substituting these upper bounds into that corollary and grouping the two local-drift terms proves the stated claim.
Corollary D.6: Multi-layer FedProx under common layer bounds and proof
Corollary D.6 (Multi-layer FedProx under common layer bounds). Under the assumptions of Corollary C.9, retain its original radii R q R_q R q , effective radii R μ , q R_{\mu,q} R μ , q , and reduced envelopes M X , q μ = M X , q − R q + R μ , q M^\mu_{X,q}=M_{X,q}-R_q+R_{\mu,q} M X , q μ = M X , q − R q + R μ , q .
For this corollary and its proof, evaluate the existing common bounds G ^ Q \widehat{G}_Q G Q and L ^ Q \widehat{L}_Q L Q in (423) and (424) using
L X : = max 1 ≤ q ≤ Q L X , q , ρ : = max 1 ≤ q ≤ Q ρ q , L_X:=\max_{1\le q\le Q}L_{X,q},\qquad
\rho:=\max_{1\le q\le Q}\rho_q, L X := 1 ≤ q ≤ Q max L X , q , ρ := 1 ≤ q ≤ Q max ρ q , M X : = max 1 ≤ q ≤ Q M X , q μ , X ∈ { Δ , B , C , A } . M_X:=\max_{1\le q\le Q}M^\mu_{X,q},\qquad X\in\{\Delta,B,C,A\}. M X := 1 ≤ q ≤ Q max M X , q μ , X ∈ { Δ , B , C , A } . All auxiliary quantities in (410)–(416) and (417)–(422), including κ \kappa κ and B ∗ B_* B ∗ , are evaluated with these reduced common envelopes. The loss-regularity constants L ℓ L_\ell L ℓ , H ℓ H_\ell H ℓ are unchanged.
If 0 < η μ ≤ 1 0<\eta\mu\le1 0 < η μ ≤ 1 and
η E L ^ Q ≤ 1 2 , 12 η 2 ( L ^ Q + μ ) 2 E ( E − 1 ) ≤ 1 , \eta E\widehat{L}_Q\le\frac{1}{2},\qquad
12\eta^2\left(\widehat{L}_Q+\mu\right)^2E(E-1)\le1, η E L Q ≤ 2 1 , 12 η 2 ( L Q + μ ) 2 E ( E − 1 ) ≤ 1 ,
then
1 T ∑ r = 0 T − 1 E ∥ ∇ f ( W r ) ∥ F 2 = O ( F 0 η E T + η L ^ Q G ^ Q 2 P 2 Ξ + η 2 ( L ^ Q + μ ) 2 G ^ Q 2 ( E − 1 ) [ 1 Ξ + E H T V ] ) . \frac{1}{T}\sum_{r=0}^{T-1}\mathbb{E}\left\|\nabla f(W^r)\right\|_F^2 = O\left(\frac{F_0}{\eta E T}+\frac{\eta\widehat{L}_Q \widehat{G}_Q^2 P_2}{\Xi}+\eta^2(\widehat{L}_Q+\mu)^2\widehat{G}_Q^2(E-1)\left[\frac{1}{\Xi}+E H_{\mathrm{TV}}\right]\right). T 1 r = 0 ∑ T − 1 E ∥ ∇ f ( W r ) ∥ F 2 = O ( η E T F 0 + Ξ η L Q G Q 2 P 2 + η 2 ( L Q + μ ) 2 G Q 2 ( E − 1 ) [ Ξ 1 + E H TV ] ) .
The implicit constant is numerical and independent of μ \mu μ .
Proof of Corollary D.6: The displacement argument in the proof of Corollary C.9 places all local iterates in N R Q , μ ( W r ) \mathcal{N}_{R_Q,\mu}(W^r) N R Q , μ ( W r ) . This product of convex balls also contains their weighted aggregate and the segments used in the smoothness argument.
Since M X , q μ ≤ M X M^\mu_{X,q}\le M_X M X , q μ ≤ M X for every layer, the common-envelope construction of Corollary D.4 gives
G S S M , R Q , μ ( Q ) ≤ G ^ Q , L S S M , R Q , μ ( Q ) ≤ L ^ Q . G^{(Q)}_{\mathrm{SSM},R_Q,\mu}\le\widehat{G}_Q,\qquad L^{(Q)}_{\mathrm{SSM},R_Q,\mu}\le\widehat{L}_Q. G SSM , R Q , μ ( Q ) ≤ G Q , L SSM , R Q , μ ( Q ) ≤ L Q .
Therefore,
L p r o x , R Q , μ ( Q ) = L S S M , R Q , μ ( Q ) + μ ≤ L ^ Q + μ . L^{(Q)}_{\mathrm{prox},R_Q,\mu}=L^{(Q)}_{\mathrm{SSM},R_Q,\mu}+\mu\le\widehat{L}_Q+\mu. L prox , R Q , μ ( Q ) = L SSM , R Q , μ ( Q ) + μ ≤ L Q + μ .
The displayed step-size conditions consequently imply those of Corollary C.9. Substituting these upper bounds into that corollary and grouping the two local-drift terms proves the stated claim. □
SSM Convergence under Distributed Learning
In this section we provide and prove Corollary D.7: SSM Convergence under Distributed Learning and the corresponding rate corollary - a setting where every client runs only one step of gradient descent between model weights exchange.
Corollary D.7 (SSM Convergence under Distributed Learning). Under the assumptions of Theorem B.5, let E = 1 E=1 E = 1 . If η L S S M , R ≤ 1 / 2 \eta L_{\mathrm{SSM},R}\le1/2 η L SSM , R ≤ 1/2 , then
1 T ∑ r = 0 T − 1 E ∥ ∇ f ( W r ) ∥ F 2 ≤ 4 F 0 η T + 4 η L S S M , R G S S M , R 2 P 2 Ξ . \frac{1}{T}\sum_{r=0}^{T-1}\mathbb{E}\left\|\nabla f(W^r)\right\|_F^2\le\frac{4F_0}{\eta T}+\frac{4\eta L_{\mathrm{SSM},R}G^2_{\mathrm{SSM},R}P_2}{\Xi}. T 1 r = 0 ∑ T − 1 E ∥ ∇ f ( W r ) ∥ F 2 ≤ η T 4 F 0 + Ξ 4 η L SSM , R G SSM , R 2 P 2 .
Similarly, under the assumptions of Corollary C.8 with E = 1 E=1 E = 1 , if η L S S M , R Q ( Q ) ≤ 1 / 2 \eta L^{(Q)}_{\mathrm{SSM},R_Q}\le1/2 η L SSM , R Q ( Q ) ≤ 1/2 , then
1 T ∑ r = 0 T − 1 E ∥ ∇ f ( W r ) ∥ F 2 ≤ 4 F 0 η T + 4 η L S S M , R Q ( Q ) ( G S S M , R Q ( Q ) ) 2 P 2 Ξ . \frac{1}{T}\sum_{r=0}^{T-1}\mathbb{E}\left\|\nabla f(W^r)\right\|_F^2\le\frac{4F_0}{\eta T}+\frac{4\eta L^{(Q)}_{\mathrm{SSM},R_Q}\left(G^{(Q)}_{\mathrm{SSM},R_Q}\right)^2P_2}{\Xi}. T 1 r = 0 ∑ T − 1 E ∥ ∇ f ( W r ) ∥ F 2 ≤ η T 4 F 0 + Ξ 4 η L SSM , R Q ( Q ) ( G SSM , R Q ( Q ) ) 2 P 2 .
Both bounds also apply to FedProx with one local step, under the same FedAvg assumptions and step-size conditions, for every μ > 0 \mu>0 μ > 0 . No restriction on η μ \eta\mu η μ is needed for this one-step conclusion.
Proof of Corollary D.7: Setting E = 1 E=1 E = 1 in Theorem B.5 or Corollary C.8 eliminates both terms containing E − 1 E-1 E − 1 and makes the second step-size condition automatic.
For FedProx, initialization at the broadcast model gives
W k r , 1 = W r − η ( g k r , 0 + μ ( W r − W r ) ) = W r − η g k r , 0 . (434) W_k^{r,1}=W^r-\eta\left(g_k^{r,0}+\mu(W^r-W^r)\right)=W^r-\eta g_k^{r,0}. \tag*{(434)} W k r , 1 = W r − η ( g k r , 0 + μ ( W r − W r ) ) = W r − η g k r , 0 . (434)
As such, for every μ > 0 \mu>0 μ > 0 , its one-step update and weighted aggregate coincide with those of FedAvg. Applying the corresponding FedAvg result proves the claim. □
Corollary D.8 (SSM Convergence Rate under Distributed Learning). Under the assumptions of Corollary 4.8, let E = 1 E=1 E = 1 . Under η L S S M , R ≤ 1 / 2 \eta L_{\mathrm{SSM},R}\le1/2 η L SSM , R ≤ 1/2 , let M B M_B M B , M C M_C M C , M Δ M_\Delta M Δ , and M A M_A M A denote uniform upper bounds on ∥ W B ∥ 2 \|W_B\|_2 ∥ W B ∥ 2 , ∥ W C ∥ 2 \|W_C\|_2 ∥ W C ∥ 2 , ∥ W Δ ∥ 2 \|W_\Delta\|_2 ∥ W Δ ∥ 2 , and ∥ A ∥ 2 \|A\|_2 ∥ A ∥ 2 , respectively, over the R R R -local neighborhoods N R ( W r ) \mathcal{N}_R(W^r) N R ( W r ) and define:
M R : = ( 1 + M B ) ( 1 + M C ) ( 1 + M Δ ) ( 1 + M Δ + M A ) . M_R:=(1+M_B)(1+M_C)(1+M_\Delta)(1+M_\Delta+M_A). M R := ( 1 + M B ) ( 1 + M C ) ( 1 + M Δ ) ( 1 + M Δ + M A ) .
Under these conditions, the global optimization trajectory { W r } r = 0 T \{W^r\}_{r=0}^{T} { W r } r = 0 T satisfies
1 T ∑ r = 0 T − 1 E ∥ ∇ f ( W r ) ∥ F 2 = O ( F 0 η E T + η M R 4 Ξ ( 1 − ρ ) 8 ) . \frac{1}{T}\sum_{r=0}^{T-1}\mathbb{E}\left\|\nabla f(W^r)\right\|_{F}^{2}=\mathcal{O}\left(\frac{F_0}{\eta ET}+\frac{\eta M_R^4}{\Xi(1-\rho)^8}\right). T 1 r = 0 ∑ T − 1 E ∥ ∇ f ( W r ) ∥ F 2 = O ( η E T F 0 + Ξ ( 1 − ρ ) 8 η M R 4 ) .
The quantities N N N , D D D , L x L_x L x , L ℓ L_\ell L ℓ , and H ℓ H_\ell H ℓ affect only the implicit constant and do not alter the displayed scaling with the optimization parameters, parameter envelopes, stability, or sequence length.
Proof of Corollary D.8: Setting E = 1 E=1 E = 1 in Corollary 4.8 eliminates both terms containing E − 1 E-1 E − 1 , yielding the equality in the Corollary.
Discussion on Additional Distributed Learning Frameworks
The FedAvg and FedProx results (Theorems B.5 and B.6) relate convergence of selective SSM training to recurrent stability, parameter norms, local client drift, and data heterogeneity. In this section, we use these quantities to interpret additional federated learning methods, identifying how their local updates and server aggregation interact with the SSM-specific bounds. While we do not establish convergence guarantees for these methods, the discussion provides a qualitative, theory-guided characterization of their convergence behavior, offering intuition and motivating expectations about their performance under different training conditions.
The discussion below assumes SGD-style updates, containment in the stated neighborhood, and regularity assumptions. The connection to the AdamW-based Mamba2 experiments is therefore qualitative rather than a direct application of the convergence results.
SCAFFOLD. SCAFFOLD (Karimireddy et al., 2020) introduces server and client control variates (correction terms), which act as drift-correction terms for local client updates. In its classical SGD form, the local update is
W k r , e + 1 = W k r , e − η ( g k ( W k r , e ; ξ k r , e ) + c r − c k r ) , (435) W_k^{r,e+1}=W_k^{r,e}-\eta\left(g_k(W_k^{r,e};\xi_k^{r,e})+c^r-c_k^r\right), \tag*{(435)} W k r , e + 1 = W k r , e − η ( g k ( W k r , e ; ξ k r , e ) + c r − c k r ) , (435)
where c r = ∑ k p k c k r c^r=\sum_k p_kc_k^r c r = ∑ k p k c k r approximates the global update direction and c k r c_k^r c k r approximates the client-specific drift direction. More generally, allowing a correction scale λ c > 0 \lambda_c>0 λ c > 0 , define the corrected local direction
d k r , e : = g k ( W k r , e ; ξ k r , e ) + λ c ( c r − c k r ) . (436) d_k^{r,e}:=g_k(W_k^{r,e};\xi_k^{r,e})+\lambda_c(c^r-c_k^r). \tag*{(436)} d k r , e := g k ( W k r , e ; ξ k r , e ) + λ c ( c r − c k r ) . (436)
The correction term c r − c k r c^r-c_k^r c r − c k r is intended to reduce the component of the local update that points toward the client-specific objective rather than the global objective.
Assume that the correction term satisfies:
∥ c r − c k r ∥ F ≤ C R , (437) \left\|c^r-c_k^r\right\|_F\le C_R, \tag*{(437)} ∥ c r − c k r ∥ F ≤ C R , (437)
then the corrected direction satisfies:
∥ d k r , e ∥ F ≤ G S S M , R + λ c C R = : G S C A F , R , (438) \left\|d_k^{r,e}\right\|_F\le G_{\mathrm{SSM},R}+\lambda_c C_R=:G_{\mathrm{SCAF},R}, \tag*{(438)} ∥ d k r , e ∥ F ≤ G SSM , R + λ c C R =: G SCAF , R , (438)
and the corresponding local drift radius can be bounded by
R S C A F ≤ η E G S C A F , R . (439) R_{\mathrm{SCAF}}\le\eta E G_{\mathrm{SCAF},R}. \tag*{(439)} R SCAF ≤ η E G SCAF , R . (439)
While this mechanism does not directly change the SSM smoothness constant L S S M , R L_{\mathrm{SSM},R} L SSM , R , and could even increase the worst-case local drift radius through the additional correction term, the main effect of SCAFFOLD is to reduce the component of each client update that is biased toward the local objective rather than the global objective. In other words, SCAFFOLD can be interpreted as modifying the effective heterogeneity term. Specifically, define the corrected heterogeneity measure
Γ S C A F , R 2 : = sup W ∈ N ( W r ) ∑ k = 1 K p k ∥ ∇ L k ( W ) − ∇ f ( W ) + λ c ( c r − c k r ) ∥ F 2 . (440) \Gamma_{\mathrm{SCAF},R}^{2}:=\sup_{W\in\mathcal{N}(W^r)}\sum_{k=1}^{K}p_k\left\|\nabla\mathcal{L}_k(W)-\nabla f(W)+\lambda_c(c^r-c_k^r)\right\|_{F}^{2}. \tag*{(440)} Γ SCAF , R 2 := W ∈ N ( W r ) sup k = 1 ∑ K p k ∥ ∇ L k ( W ) − ∇ f ( W ) + λ c ( c r − c k r ) ∥ F 2 . (440)
When the control terms accurately estimate the client-specific drift directions, the correction λ c ( c r − c k r ) \lambda_c(c^r-c_k^r) λ c ( c r − c k r ) partially cancels the difference ∇ L k ( W ) − ∇ f ( W ) \nabla\mathcal{L}_k(W)-\nabla f(W) ∇ L k ( W ) − ∇ f ( W ) . In this case, one expects
Γ S C A F , R 2 < Γ S S M , R 2 . (441) \Gamma_{\mathrm{SCAF},R}^{2}<\Gamma_{\mathrm{SSM},R}^{2}. \tag*{(441)} Γ SCAF , R 2 < Γ SSM , R 2 . (441)
This motivates a potentially reduced client disagreement, although a convergence bound must also account for the evolution and accuracy of the control variates.
This does not imply that SCAFFOLD has a smaller drift radius than FedAvg. In fact, in nearly IID settings, the uncorrected client gradients are already approximately aligned with the global update direction. As a result, the reduction from Γ S S M , R 1 \Gamma^{1}_{\mathrm{SSM},R} Γ SSM , R 1 to Γ S C A F , R 2 \Gamma^{2}_{\mathrm{SCAF},R} Γ SCAF , R 2 may be limited, while the additional correction term can increase the effective update radius and potentially degrade performance. In contrast, under non-IID data, the heterogeneity correction can provide a meaningful benefit by reducing the statistical drift term, which is amplified in the SSM-specific bound through the architecture-dependent gradient and smoothness quantities.
FedAdam. FedAdam (Reddi et al. (2021)) keeps the same FedAvg-style local client training phase, but replaces the direct server averaging step with an adaptive server optimizer. Let
W ˉ r + 1 = ∑ k = 1 K p k W k r , E (442) \bar{W}^{r+1} = \sum_{k=1}^{K} p_k W_k^{r,E} \tag*{(442)} W ˉ r + 1 = k = 1 ∑ K p k W k r , E (442)
denote the standard FedAvg aggregated parameters, and define the server pseudo-gradient:
Δ r : = W ˉ r + 1 − W r . (443) \Delta^r := \bar{W}^{r+1} - W^r. \tag*{(443)} Δ r := W ˉ r + 1 − W r . (443)
FedAdam tracks moving averages of the server pseudo-gradient and its coordinatewise square as:
m r = β 1 m r − 1 + ( 1 − β 1 ) Δ r , (444) m^r = \beta_1 m^{r-1} + (1-\beta_1)\Delta^r, \tag*{(444)} m r = β 1 m r − 1 + ( 1 − β 1 ) Δ r , (444)
v r = β 2 v r − 1 + ( 1 − β 2 ) ( Δ r ⊙ Δ r ) , (445) v^r = \beta_2 v^{r-1} + (1-\beta_2)(\Delta^r \odot\Delta^r), \tag*{(445)} v r = β 2 v r − 1 + ( 1 − β 2 ) ( Δ r ⊙ Δ r ) , (445)
and updates the server model coordinatewise as
W r + 1 = W r + α s m r v r + τ s , (446) W^{r+1} = W^r + \alpha_s \frac{m^r}{\sqrt{v^r}+\tau_s}, \tag*{(446)} W r + 1 = W r + α s v r + τ s m r , (446)
where α s \alpha_s α s is the server learning rate and τ s > 0 \tau_s > 0 τ s > 0 is the denominator offset.
Since the client-side training phase is unchanged from FedAvg, FedAdam does not directly reduce the local SSM drift radius. The local client trajectories remain controlled by the same worst-case bound
R l o c a l ≤ η E G S S M , R . (447) R_{\mathrm{local}} \le\eta E G_{\mathrm{SSM},R}. \tag*{(447)} R local ≤ η E G SSM , R . (447)
The main change is instead introduced at the server: since v r + τ s ≥ τ s \sqrt{v^r}+\tau_s \ge\tau_s v r + τ s ≥ τ s , the server update satisfies the coarse bound
∥ W r + 1 − W r ∥ F ≤ α s τ s ∥ m r ∥ F . (448) \lVert W^{r+1} - W^r \rVert_F \le\frac{\alpha_s}{\tau_s}\lVert m^r \rVert_F. \tag*{(448)} ∥ W r + 1 − W r ∥ F ≤ τ s α s ∥ m r ∥ F . (448)
As such, even though the adaptive server mechanism can be beneficial when it rescales poorly conditioned coordinates in a useful way, it can also increase the effective global update radius when α s τ s \frac{\alpha_s}{\tau_s} τ s α s is large or when the moment estimates are not well aligned with a stable descent direction.
This can be particularly detrimental for selective SSMs - an aggressive server-side adaptive step can increase the effective neighborhood radius, resulting in larger potential values of L S S M , R L_{\mathrm{SSM},R} L SSM , R and G S S M , R G_{\mathrm{SSM},R} G SSM , R , and making the global trajectory more sensitive to non-IID client updates. Compared to FedProx, FedAdam does not explicitly constrain local client drift, and compared to SCAFFOLD, FedAdam does not correct the client heterogeneity term. Instead, it rescales the aggregated update after local drift has already occurred.
FedAlign. The FedAlign baseline we consider is an adaptation of the state-alignment method proposed in (Keçeci et al. [19 ] ). The original FedAlign algorithm was developed for federated system identification with classical linear state-space models of the form
x ~ k + 1 = A ~ x ~ k + B ~ u k , y ~ k = C ~ x ~ k + D ~ u k (449) \tilde{x}_{k+1} = \tilde{A}\tilde{x}_k + \tilde{B}u_k,\qquad\tilde{y}_k = \tilde{C}\tilde{x}_k + \tilde{D}u_k \tag*{(449)} x ~ k + 1 = A ~ x ~ k + B ~ u k , y ~ k = C ~ x ~ k + D ~ u k (449)
where the system matrices A ~ , B ~ , C ~ , D ~ \tilde{A}, \tilde{B}, \tilde{C}, \tilde{D} A ~ , B ~ , C ~ , D ~ are fixed model parameters. In that setting, the main alignment issue is that different clients may learn dynamically equivalent SSMs in different state-coordinate bases, so directly averaging their parameters can distort the global system dynamics. FedAlign addresses this by using similarity transformations to map local SSMs into a common parameter basin before aggregation.
Our setting differs from this original SYSID formulation because Mamba-style selective SSMs do not have a single fixed set of state-space matrices applied uniformly across the sequence. Instead, the effective transition and input terms are coupled to learned projections and input-dependent discretization quantities. Therefore, our FedAlign implementation adapts the same state-alignment principle to Mamba2 by aligning coupled SSM state, group, and head-indexed parameter blocks before aggregation.
As such, we can write the adapted FedAlign aggregation as
W r + 1 = ∑ k = 1 K p k Align k ( W k r , E ) , (450) W^{r+1} = \sum_{k=1}^{K} p_k \operatorname{Align}_k\left(W_k^{r,E}\right), \tag*{(450)} W r + 1 = k = 1 ∑ K p k Align k ( W k r , E ) , (450)
where Align k \operatorname{Align}_k Align k is the client-specific alignment map applied to the coupled Mamba2 SSM blocks.
Next, as long as Align k \operatorname{Align}_k Align k is a norm-preserving permutation or matching of coupled coordinates, then
∥ Align k ( W k r , E ) − Align k ( W r ) ∥ F = ∥ W k r , E − W r ∥ F . (451) \left\|\operatorname{Align}_k\left(W_k^{r,E}\right)-\operatorname{Align}_k\left(W^r\right)\right\|_F = \left\|W_k^{r,E}-W^r\right\|_F. \tag*{(451)} Align k ( W k r , E ) − Align k ( W r ) F = W k r , E − W r F . (451)
The identity preserves distance when the same alignment is applied to both models, not distance to the fixed broadcast model W r W^r W r . FedAlign can reduce aggregation error from mismatched state coordinates, but norm preservation alone does not control local drift, statistical heterogeneity, or stability-sensitive gradient growth in selective SSMs. FedAvg-like behavior is therefore expected when coordinate mismatch is limited. Containment of aligned models requires separate verification.
FedDyn. FedDyn (Acar et al. (2021)) combines proximal regularization with a dynamic gradient correction. In the full-participation, weighted formulation, client k k k maintains a state ν k r \nu_k^r ν k r , initialized at zero, and optimizes
g k r ( W ) : = L k ( W ) − ⟨ ν k r , W ⟩ F + α 2 ∥ W − W r ∥ F 2 , ν k r + 1 : = ν k r − α ( W k r , E − W r ) , (452) g_k^r(W) := \mathcal{L}_k(W) - \langle\nu_k^r, W\rangle_F + \frac{\alpha}{2}\left\|W-W^r\right\|_F^2,\qquad\nu_k^{r+1}:=\nu_k^r-\alpha\left(W_k^{r,E}-W^r\right), \tag*{(452)} g k r ( W ) := L k ( W ) − ⟨ ν k r , W ⟩ F + 2 α ∥ W − W r ∥ F 2 , ν k r + 1 := ν k r − α ( W k r , E − W r ) , (452)
where α > 0 \alpha> 0 α > 0 . Writing ν r : = ∑ k p k ν k r \nu^r := \sum_k p_k\nu_k^r ν r := ∑ k p k ν k r and W ‾ r + 1 : = ∑ k p k W k r , E \overline{W}^{r+1} := \sum_k p_k W_k^{r,E} W r + 1 := ∑ k p k W k r , E , the server updates are W r + 1 = W ‾ r + 1 − ν r + 1 / α W^{r+1} = \overline{W}^{r+1} - \nu^{r+1}/\alpha W r + 1 = W r + 1 − ν r + 1 / α .
For local SGD, under the stable-neighborhood conditions of Theorem B.6 , given the bound ∥ ν k r ∥ F ≤ C ν \left\|\nu_k^r\right\|_F \le C_\nu ∥ ν k r ∥ F ≤ C ν , and with the learning rate satisfying 0 < η α ≤ 1 0 < \eta\alpha\le1 0 < η α ≤ 1 , the proximal displacement recursion gives:
max e ∈ { 0 , … , E } ∥ W k r , e − W r ∥ F ≤ R d y n : = min { R , G S S M , R + C ν α [ 1 − ( 1 − η α ) E ] } . (453) \max_{e\in\{0,\ldots,E\}}\left\|W_k^{r,e}-W^r\right\|_F \le R_{\mathrm{dyn}} := \min\left\{R,\frac{G_{\mathrm{SSM},R}+C_\nu}{\alpha}\left[1-(1-\eta\alpha)^E\right]\right\}. \tag*{(453)} e ∈ { 0 , … , E } max ∥ W k r , e − W r ∥ F ≤ R dyn := min { R , α G SSM , R + C ν [ 1 − ( 1 − η α ) E ] } . (453)
The geometric factor therefore damps accumulated local displacement. While this bound includes C ν C_\nu C ν , it ignores cancellation between the local gradient and the dual correction. Accurate tracking can on the other hand produce smaller corrected updates than the inequality suggests, and given a tighter local neighborhood, the SSM parameter envelopes could be reduced.
Furthermore, note that the client-gradient disagreement becomes:
Γ d y n , R 2 : = sup W ∈ N R ( W r ) ∑ k p k ∥ ∇ L k ( W ) − ∇ f ( W ) − ( ν k r − ν r ) ∥ F 2 . (454) \Gamma_{\mathrm{dyn},R}^2 := \sup_{W\in\mathcal{N}_R(W^r)}\sum_k p_k\left\|\nabla\mathcal{L}_k(W)-\nabla f(W)-\left(\nu_k^r-\nu^r\right)\right\|_F^2. \tag*{(454)} Γ dyn , R 2 := W ∈ N R ( W r ) sup k ∑ p k ∥ ∇ L k ( W ) − ∇ f ( W ) − ( ν k r − ν r ) ∥ F 2 . (454)
As a result, when the centered states accurately track the client-gradient differences, this residual can be smaller than Γ S S M , R 2 \Gamma_{\mathrm{SSM},R}^2 Γ SSM , R 2 . Therefore, FedDyn combines local-displacement damping with a mechanism for reducing the disagreement highlighted by the FedAvg bound.
However, these benefits compete with the additional local smoothness term α \alpha α and the server displacement:
∥ W r + 1 − W r ∥ F ≤ R d y n + ∥ ν r + 1 ∥ F α . (455) \left\|W^{r+1}-W^r\right\|_F \le R_{\mathrm{dyn}}+\frac{\left\|\nu^{r+1}\right\|_F}{\alpha}. \tag*{(455)} W r + 1 − W r F ≤ R dyn + α ν r + 1 F . (455)
As such, suitable regularization and accurate tracking can make the damping and disagreement beneficial while preserving stable containment, if these improvements outweigh the smoothness constant increase provided the server update also remains within the stable neighborhood. As such, for a well-tuned FedDyn, we expect it to improve on FedAvg, with the benefits being especially highlighted under heterogeneous data conditions through disagreement correction.
FedSAM. FedSAM (Qu et al., 2022) retains FedAvg aggregation but uses a sharpness-aware local SGD step with two gradient evaluations:
u k r , e : = R S A M g k ( W k r , e ; ξ k r , e ) ∥ g k ( W k r , e ; ξ k r , e ) ∥ F , W k r , e + 1 = W k r , e − η g k ( W k r , e + u k r , e ; ξ k r , e ) (456) u_k^{r,e} := \mathfrak{R}_{\mathrm{SAM}} \frac{g_k(W_k^{r,e};\xi_k^{r,e})}{\lVert g_k(W_k^{r,e};\xi_k^{r,e})\rVert_F}, \qquad W_k^{r,e+1}=W_k^{r,e}-\eta g_k(W_k^{r,e}+u_k^{r,e};\xi_k^{r,e}) \tag*{(456)} u k r , e := R SAM ∥ g k ( W k r , e ; ξ k r , e ) ∥ F g k ( W k r , e ; ξ k r , e ) , W k r , e + 1 = W k r , e − η g k ( W k r , e + u k r , e ; ξ k r , e ) (456)
where R S A M > 0 \mathfrak{R}_{\mathrm{SAM}}>0 R SAM > 0 is the perturbation radius, with u k r , e = 0 u_k^{r,e}=0 u k r , e = 0 when the first gradient vanishes.
Suppose the local iterates lie in N R ( W r ) \mathcal{N}_R(W^r) N R ( W r ) and the SSM assumptions hold uniformly on N R + R S A M ( W r ) ⊆ S γ , δ \mathcal{N}_{R+\mathfrak{R}_{\mathrm{SAM}}}(W^r)\subseteq\mathcal{S}_{\gamma,\delta} N R + R SAM ( W r ) ⊆ S γ , δ . The expanded neighborhood contains the perturbed evaluation points, resulting in the local-displacement bound
R S A M : = max e ∈ { 0 , … , E } ∥ W k r , e − W r ∥ F ≤ η E G S S M , R + R S A M . (457) R_{\mathrm{SAM}}:=\max_{e\in\{0,\ldots,E\}}\lVert W_k^{r,e}-W^r\rVert_F\leq\eta E G_{\mathrm{SSM},R+\mathfrak{R}_{\mathrm{SAM}}}. \tag*{(457)} R SAM := e ∈ { 0 , … , E } max ∥ W k r , e − W r ∥ F ≤ η E G SSM , R + R SAM . (457)
The sequence-wise smoothness argument in the proof of Lemma 4.7 also gives
∥ g k ( W k r , e + u k r , e ; ξ k r , e ) − g k ( W k r , e ; ξ k r , e ) ∥ F ≤ L S S M , R + R S A M R S A M . (458) \lVert g_k(W_k^{r,e}+u_k^{r,e};\xi_k^{r,e})-g_k(W_k^{r,e};\xi_k^{r,e})\rVert_F\leq L_{\mathrm{SSM},R+\mathfrak{R}_{\mathrm{SAM}}}\mathfrak{R}_{\mathrm{SAM}}. \tag*{(458)} ∥ g k ( W k r , e + u k r , e ; ξ k r , e ) − g k ( W k r , e ; ξ k r , e ) ∥ F ≤ L SSM , R + R SAM R SAM . (458)
As a result, relative to an SGD step from the same iterate and sample, SAM changes the update by at most η L S S M , R + R S A M R S A M \eta L_{\mathrm{SSM},R+\mathfrak{R}_{\mathrm{SAM}}}\mathfrak{R}_{\mathrm{SAM}} η L SSM , R + R SAM R SAM . When the perturbation changes the SSM constants only slightly and its accumulated effect over training remains small, we expect FedSAM to perform similarly compared to FedAvg under both nearly IID and heterogeneous data. Note that this expectation relies on the small-perturbation approximation, and possible generalization benefits from flatter solutions are not quantified by these worst-case bounds.
FedExP. FedExP (Jhunjhunwala et al., 2023) retains the FedAvg local updates but rescales the aggregated update:
W r + 1 = W r + η g r ∑ k = 1 K p k ( W k r , E − W r ) , W^{r+1}=W^r+\eta_g^r\sum_{k=1}^{K}p_k(W_k^{r,E}-W^r), W r + 1 = W r + η g r k = 1 ∑ K p k ( W k r , E − W r ) ,
η g r : = max { 1 , ∑ k = 1 K p k ∥ W k r , E − W r ∥ F 2 2 ∥ ∑ k = 1 K p k ( W k r , E − W r ) ∥ F 2 + ϵ g } , (459) \eta_g^r:=\max\left\{1,\frac{\sum_{k=1}^{K}p_k\lVert W_k^{r,E}-W^r\rVert_F^2}{2\left\lVert\sum_{k=1}^{K}p_k(W_k^{r,E}-W^r)\right\rVert_F^2+\epsilon_g}\right\}, \tag*{(459)} η g r := max ⎩ ⎨ ⎧ 1 , 2 ∑ k = 1 K p k ( W k r , E − W r ) F 2 + ϵ g ∑ k = 1 K p k ∥ W k r , E − W r ∥ F 2 ⎭ ⎬ ⎫ , (459)
where ϵ g > 0 \epsilon_g>0 ϵ g > 0 stabilizes the denominator. By the weighted variance identity, the server scale factor η g r \eta_g^r η g r exceeds 1 when
∑ k = 1 K p k ∥ W k r , E − ∑ j = 1 K p j W j r , E ∥ F 2 > ∥ ∑ k = 1 K p k ( W k r , E − W r ) ∥ F 2 + ϵ g . (460) \sum_{k=1}^{K}p_k\left\lVert W_k^{r,E}-\sum_{j=1}^{K}p_jW_j^{r,E}\right\rVert_F^2>\left\lVert\sum_{k=1}^{K}p_k(W_k^{r,E}-W^r)\right\rVert_F^2+\epsilon_g. \tag*{(460)} k = 1 ∑ K p k W k r , E − j = 1 ∑ K p j W j r , E F 2 > k = 1 ∑ K p k ( W k r , E − W r ) F 2 + ϵ g . (460)
As a result, rescaling is activated when disagreement among client updates is sufficiently large relative to the squared norm of their average. Otherwise, η g r = 1 \eta_g^r=1 η g r = 1 and the server update reduces to FedAvg.
For local SGD under the same stable-neighborhood assumptions, neighborhood radius remains R l o c a l ≤ η E G S S M , R R_{\mathrm{local}}\leq\eta E G_{\mathrm{SSM},R} R local ≤ η E G SSM , R , however, the server step satisfies:
∥ W r + 1 − W r ∥ F = η g r ∥ ∑ k = 1 K p k ( W k r , E − W r ) ∥ F ≤ η g r η E G S S M , R . (461) \lVert W^{r+1}-W^r\rVert_F=\eta_g^r\left\lVert\sum_{k=1}^{K}p_k(W_k^{r,E}-W^r)\right\rVert_F\leq\eta_g^r\eta E G_{\mathrm{SSM},R}. \tag*{(461)} ∥ W r + 1 − W r ∥ F = η g r k = 1 ∑ K p k ( W k r , E − W r ) F ≤ η g r η E G SSM , R . (461)
Since η g r ≥ 1 \eta_g^r\geq1 η g r ≥ 1 , this server-step upper bound is no smaller than the corresponding FedAvg bound, although the actual server displacement need not exceed the local radius. Therefore, server scaling may require a larger neighborhood to cover the server update, with larger parameter envelopes entering the SSM gradient and smoothness bounds. Containment of this expanded neighborhood in S γ , δ \mathcal{S}_{\gamma,\delta} S γ , δ is further not guaranteed.
The frequency of rescaling depends on disagreement among the client updates, which can reflect both data heterogeneity and stochastic sampling. For IID data, we expect sufficiently similar client updates for the server scaling to remain mostly inactive, resulting in FedAvg-like behavior. However, given heterogeneous data, greater dispersion relative to the average update can activate scaling more often. The resulting server steps also amplify any local-drift error in the averaged update, without correcting client disagreement. For the considered SSM setting, we therefore expect worse performance than FedAvg when these displacement and stability costs outweigh the acceleration benefit. This is a qualitative expectation, not a convergence comparison.
DiLoCo-style. The original DiLoCo framework (Douillard et al., 2024) combines AdamW local optimization with a Nesterov momentum server update. Our DiLoCo-style baseline retains the shared local phase and updates the server as follows:
m o r = β o m o r − 1 + ∑ k = 1 K p k ( W k r , E − W r ) , m_o^r = \beta_o m_o^{r-1} + \sum_{k=1}^{K} p_k\left(W_k^{r,E} - W^r\right), m o r = β o m o r − 1 + k = 1 ∑ K p k ( W k r , E − W r ) ,
W r + 1 = W r + α o ( β o m o r + ∑ k = 1 K p k ( W k r , E − W r ) ) , (462) W^{r+1} = W^r + \alpha_o\left(\beta_o m_o^r + \sum_{k=1}^{K} p_k\left(W_k^{r,E} - W^r\right)\right), \tag*{(462)} W r + 1 = W r + α o ( β o m o r + k = 1 ∑ K p k ( W k r , E − W r ) ) , (462)
where α o > 0 \alpha_o > 0 α o > 0 , β o ∈ [ 0 , 1 ) \beta_o \in[0,1) β o ∈ [ 0 , 1 ) , and m o − 1 = 0 m_o^{-1}=0 m o − 1 = 0 . Setting β o = 0 \beta_o=0 β o = 0 and α o = 1 \alpha_o=1 α o = 1 reduces to FedAvg.
For the SGD-based comparison, the same stable-neighborhood conditions with a common gradient bound G S S M , R G_{\mathrm{SSM},R} G SSM , R across rounds hold. Each averaged client update then has norm at most η E G S S M , R \eta E G_{\mathrm{SSM},R} η E G SSM , R .
As such, unrolling the server momentum recursion we get ∥ m o r ∥ F ≤ η E G S S M , R / ( 1 − β o ) \lVert m_o^r\rVert_F \le\eta E G_{\mathrm{SSM},R}/(1-\beta_o) ∥ m o r ∥ F ≤ η E G SSM , R / ( 1 − β o ) , and therefore
∥ W r + 1 − W r ∥ F ≤ α o 1 − β o η E G S S M , R . (463) \lVert W^{r+1} - W^r\rVert_F \le\frac{\alpha_o}{1-\beta_o}\eta E G_{\mathrm{SSM},R}. \tag*{(463)} ∥ W r + 1 − W r ∥ F ≤ 1 − β o α o η E G SSM , R . (463)
When α o / ( 1 − β o ) > 1 \alpha_o/(1-\beta_o)>1 α o / ( 1 − β o ) > 1 , this upper bound exceeds the corresponding FedAvg bound. Furthermore, unlike FedExP, momentum can accumulate even when clients agree, because it combines averaged updates across rounds. Persistent update directions can increase server displacement, while changes in direction can leave the momentum contribution misaligned with the current averaged update. The server trajectory may therefore require a larger neighborhood and larger SSM parameter envelopes, with stable containment requiring separate verification. The within-round local update rule remains unchanged, and outer momentum does not directly correct client disagreement.
As such, depending on the momentum parameters, the displacement and history effects could outweigh the acceleration benefit of momentum, leading to worse performance than FedAvg, although the effects could potentially balance out.
Summary. The FedAvg bound (Theorem B.5 ) connects convergence to L S S M , R L_{\mathrm{SSM},R} L SSM , R , G S S M , R G_{\mathrm{SSM},R} G SSM , R , and H T V \mathcal{H}_{\mathrm{TV}} H TV through local displacement, stable containment, and client disagreement. Under the stated assumptions, FedProx (Theorem B.6 ) and FedDyn’s proximal term damp displacement bounds, at a smoothness cost. SCAFFOLD and FedDyn can reduce corrected disagreement when their control states accurately track client-gradient differences, though IID data leave less disagreement to correct. FedAdam, FedExP, and DiLoCo-style retain the local phase but modify server updates through coordinatewise adaptation, disagreement-dependent extrapolation, and momentum, respectively. These updates may require larger stable neighborhoods. FedAlign targets coordinate mismatch through norm-preserving permutations, while FedSAM perturbs gradient evaluation points, so FedAvg-like behavior is expected when coordinate mismatch or accumulated perturbation effects, respectively, are small. These theorem-motivated expectations are collected in Table 2 and compared with observations in § 5 .
Discussion on Model Merging
Model Merging with SSMs Motivation
§ 3 formulates distributed learning as the minimization of the aggregated expected sequence loss in (5) through repeated local adaptation and parameter aggregation. The optimization proceeds over T T T communication rounds, each consisting of E E E local SGD steps followed by aggregation of the updated model parameters. This framework also provides a natural formulation of one-shot model merging (Wortsman et al., 2022; Ilharco et al., 2023).
Consider the case of task or domain experts adapted from a common pretrained initialization. This setting shares the central operation studied in our distributed framework: combining parameter updates learned from heterogeneous data. Specifically, let M M M experts share the same selective SSM architecture, parameterization, and pretrained initialization W 0 W^0 W 0 . Expert m m m adapts to a local dataset D m \mathcal{D}_m D m associated with a distribution P m \mathcal{P}_m P m , with all experts using the sequence-loss formulation of § 3 . To make the connection explicit, suppose each expert starts from W m 0 , 0 = W 0 W_m^{0,0}=W^0 W m 0 , 0 = W 0 and performs E E E local SGD steps following the update rule in that section. Denote its final parameters and task vector by
W m : = W m 0 , E , T m : = W m − W 0 . (464) W_m := W_m^{0,E}, \qquad T_m := W_m-W^0. \tag*{(464)} W m := W m 0 , E , T m := W m − W 0 . (464)
The independently adapted experts are then combined using a merging operator,
W m e r g e = Merge ( { W m } m = 1 M , W 0 ) , (465) W_{\mathrm{merge}}=\operatorname{Merge}\left(\{W_m\}_{m=1}^{M},W^0\right), \tag*{(465)} W merge = Merge ( { W m } m = 1 M , W 0 ) , (465)
which may use both the expert parameters and the pretrained reference. If the merging operator is chosen to be weighted parameter averaging, the final model parameters are obtained as
W a v g = ∑ m = 1 M p m W m = W 0 + ∑ m = 1 M p m T m , p m > 0 , ∑ m = 1 M p m = 1 , (466) W_{\mathrm{avg}}=\sum_{m=1}^{M}p_mW_m=W^0+\sum_{m=1}^{M}p_mT_m,\qquad p_m>0,\qquad\sum_{m=1}^{M}p_m=1, \tag*{(466)} W avg = m = 1 ∑ M p m W m = W 0 + m = 1 ∑ M p m T m , p m > 0 , m = 1 ∑ M p m = 1 , (466)
which reduces exactly to one round of FedAvg with K = M K=M K = M and T = 1 T=1 T = 1 when the weights in the objective and aggregation are kept the same.
This demonstrates that averaging task vectors around a shared initialization provides a direct connection between one-shot model merging and the distributed optimization setting considered in this work. More general merging operators retain this sequence of independent adaptation followed by aggregation, although the differences in how the expert updates are combined limit the applicability of the current theoretical results.
Additionally, practical model merging often involves large pretrained networks and extensive independent fine-tuning. Although our formulation permits pretrained initialization and includes a multilayer extension in Appendix § 9 , applying the results to complete pretrained architectures and expert-specific optimization protocols requires verifying additional assumptions. Applying our federated convergence results to one-shot merging requires a neighborhood around W 0 W^0 W 0 containing the full independent adaptation trajectories, without intermediate synchronization. This may require a large radius R R R and correspondingly large parameter envelopes, increasing L S S M , R L_{\mathrm{SSM},R} L SSM , R and G S S M , R G_{\mathrm{SSM},R} G SSM , R and making the bounds loose or potentially uninformative. The required stability and step-size conditions may also become harder to satisfy. When a common stable neighborhood exists, convex averaging preserves containment within it, but stability alone does not guarantee predictive performance across the contributing domains.
Nevertheless, the shared structure of independent adaptation followed by aggregation motivates including model merging as a related setting for interpreting our results. In the remainder of this section, we discuss connections between representative merging methods and our analysis, clarify their applicability and limitations, and highlight potential takeaways for merging selective SSMs. We further provide supplementary model merging results in Appendix § 14 .§ 3 .
Model Merging Methods: Connections to Selective SSM Analysis
For a merged model parameterized by W m e r g e W_{\mathrm{merge}} W merge with W m e r g e ∈ N R ( W 0 ) ⊆ S γ , δ W_{\mathrm{merge}}\in\mathcal{N}_R(W^0)\subseteq\mathcal{S}_{\gamma,\delta} W merge ∈ N R ( W 0 ) ⊆ S γ , δ , the uniform regularity conditions of Lemma 4.7 imply
f ( W m e r g e ) = f ( W 0 + ( W m e r g e − W 0 ) ) ≤ f ( W 0 ) + ⟨ ∇ f ( W 0 ) , W m e r g e − W 0 ⟩ F + L S S M , R 2 ∥ W m e r g e − W 0 ∥ F 2 . (467) \begin{aligned}
f\left(W_{\mathrm{merge}}\right)=f\left(W^0+\left(W_{\mathrm{merge}}-W^0\right)\right) \\
&\leq f(W^0)+\langle\nabla f(W^0),W_{\mathrm{merge}}-W^0\rangle_F+\frac{L_{\mathrm{SSM},R}}{2}\left\|W_{\mathrm{merge}}-W^0\right\|_F^2. \tag*{(467)}
\end{aligned} f ( W merge ) = f ( W 0 + ( W merge − W 0 ) ) ≤ f ( W 0 ) + ⟨ ∇ f ( W 0 ) , W merge − W 0 ⟩ F + 2 L SSM , R W merge − W 0 F 2 . (467)
Similarly, for a Q Q Q -layer model with W m e r g e ∈ N R Q ( W 0 ) ⊆ S γ , δ ( Q ) W_{\mathrm{merge}}\in\mathcal{N}_{R_Q}(W^0)\subseteq\mathcal{S}^{(Q)}_{\gamma,\delta} W merge ∈ N R Q ( W 0 ) ⊆ S γ , δ ( Q ) , the assumptions of Lemma C.4 give
f ( W m e r g e ) ≤ f ( W 0 ) + ⟨ ∇ f ( W 0 ) , W m e r g e − W 0 ⟩ F + L S S M , R Q ( Q ) 2 ∥ W m e r g e − W 0 ∥ F 2 , (468) f\left(W_{\mathrm{merge}}\right)\leq f(W^0)+\langle\nabla f(W^0),W_{\mathrm{merge}}-W^0\rangle_F+\frac{L_{\mathrm{SSM},R_Q}^{(Q)}}{2}\left\|W_{\mathrm{merge}}-W^0\right\|_F^2, \tag*{(468)} f ( W merge ) ≤ f ( W 0 ) + ⟨ ∇ f ( W 0 ) , W merge − W 0 ⟩ F + 2 L SSM , R Q ( Q ) W merge − W 0 F 2 , (468)
where the inner product and norm are taken over the full parameter tuple, and L S S M , R Q ( Q ) = H ℓ Θ Q 2 + L ℓ Θ Q L_{\mathrm{SSM},R_Q}^{(Q)}=H_\ell\Theta_Q^2+L_\ell\Theta_Q L SSM , R Q ( Q ) = H ℓ Θ Q 2 + L ℓ Θ Q is the existing multi-layer smoothness constant.
These inequalities highlight important factors that determine the loss bound after merging. Firstly, the alignment of W m e r g e − W 0 W_{\mathrm{merge}}-W^0 W merge − W 0 with − ∇ f ( W 0 ) -\nabla f(W^0) − ∇ f ( W 0 ) indicates whether the update initially moves toward a lower aggregated loss. In addition, the merging operator determines the direction and magnitude of this update - different merging methods might rescale or modify the model parameters during aggregation. Finally, the SSM smoothness constant bounds the error in this local loss prediction and depends on the neighborhood over which it is evaluated. The radius R R R therefore plays two roles: it specifies the maximum displacement of the model parameters ∥ W m e r g e − W 0 ∥ F ≤ R \lVert W_{\mathrm{merge}} - W^0 \rVert_F \le R ∥ W merge − W 0 ∥ F ≤ R (or ∥ W m e r g e ( q ) − W 0 , ( q ) ∥ F ≤ R q ∀ q ∈ { 1 , … , Q } \lVert W_{\mathrm{merge}}^{(q)} - W^{0,(q)} \rVert_F \le R_q \forall q \in\{1,\ldots,Q\} ∥ W merge ( q ) − W 0 , ( q ) ∥ F ≤ R q ∀ q ∈ { 1 , … , Q } ) covered by the analysis, and determines the parameter range over which the smoothness bound holds. A larger radius can require larger parameter envelopes M X M_X M X , leading to larger smoothness constants L S S M , R L_{\mathrm{SSM},R} L SSM , R (or L S S M , R Q ( Q ) L_{\mathrm{SSM},R_Q}^{(Q)} L SSM , R Q ( Q ) ) and a looser loss bound.
This motivates examining how different merging methods affect the merged model’s displacement from W 0 W^0 W 0 and the neighborhood needed to contain it. We discuss several representative methods below.
Weighted parameter averaging. If all the experts lie in a common stable neighborhood N R ( W 0 ) \mathcal{N}_R(W^0) N R ( W 0 ) , their weighted average satisfies
∥ W a v g − W 0 ∥ F ≤ ∑ m = 1 M p m ∥ W m − W 0 ∥ F ≤ R . (469) \lVert W_{\mathrm{avg}} - W^0 \rVert_F \le\sum_{m=1}^{M} p_m \lVert W_m - W^0 \rVert_F \le R. \tag*{(469)} ∥ W avg − W 0 ∥ F ≤ m = 1 ∑ M p m ∥ W m − W 0 ∥ F ≤ R . (469)
So an averaging merge operation does not enlarge the neighborhood containing the experts, and the same local smoothness bound applies. This property also holds for the multi-layer product neighborhood. Furthermore, Lemma B.4 bounds the weighted squared gradient disagreement at a common parameter tuple by 4 G S S M , R 2 H T V 4G_{\mathrm{SSM},R}^2 H_{\mathrm{TV}} 4 G SSM , R 2 H TV , showing how data heterogeneity and SSM sensitivity jointly determine this bound.
Task Arithmetic. Task Arithmetic (Ilharco et al. (2023)) scales combined task vectors. In a weighted, normalized form,
W T A = W 0 + λ T ‾ , T ‾ : = ∑ m = 1 M p m T m , λ ≥ 0. (470) W_{\mathrm{TA}} = W^0 + \lambda\overline{T}, \qquad\overline{T} := \sum_{m=1}^{M} p_m T_m, \qquad\lambda\ge0. \tag*{(470)} W TA = W 0 + λ T , T := m = 1 ∑ M p m T m , λ ≥ 0. (470)
Here λ = 1 \lambda= 1 λ = 1 gives parameter averaging, while 0 ≤ λ ≤ 1 0 \le\lambda\le1 0 ≤ λ ≤ 1 preserves containment in the common neighborhood. Larger scales require a separate containment check. In (466), the directional term scales with λ \lambda λ and the quadratic remainder with λ 2 \lambda^2 λ 2 . Thus, scaling controls displacement relative to SSM sensitivity, but shrinking the update can also suppress useful adaptation and cannot recover directions lost through cancellation.
TIES-Merging. TIES-Merging (Yadav et al. (2023)) trims small task-vector entries, elects each coordinate’s sign according to the total retained movement, and averages the nonzero entries agreeing with that sign. The resulting vector is scaled and added to W 0 W^0 W 0 . Because coordinates may select different expert subsets, the result need not remain in the experts’ common neighborhood. Moreover, raw magnitude and sign do not account for how changes to A A A , W Δ W_{\Delta} W Δ , W B W_B W B , and W C W_C W C interact through the SSM recurrence. Our bounds therefore motivate sign-consistency-informed trimming and conflict resolution, but do not establish that TIES improves stability or reduces the merged model’s loss.
Practical Takeaways and Limitations. Overall, the model merging discussion motivates jointly considering expert adaptation, merge strength, and SSM sensitivity. The dependence of the bounds on neighborhood radii, recurrent stability, and interactions between layers motivates considering SSM-specific properties when evaluating and designing merging methods. Additionally, the derived relationships remain conditional on the stated assumptions - the local loss bounds require uniform regularity over a common convex stable neighborhood, while applying the federated convergence results additionally requires containment of the full adaptation trajectories. Extensive fine-tuning may therefore require large parameter envelopes and yield loose bounds. These limitations motivate extending the analysis to complete pretrained architectures, practical optimizers, and general merging operators as a promising direction for future work. We complement this discussion with supplementary model-merging experiments and an analysis of their results in Appendix H.3.
Detailed Experimental Setup
In this section, we describe the experimental setup in detail. The experiments fall into three groups: (i) synthetic dataset validation of the derived theoretical bounds, (ii) federated language modeling with practical selective state-space models on RedPajama, (iii) one-shot model merging supplementary experiments with pretrained Large Mamba2-based models. We detail the datasets, models, as well as training and validation procedures needed for reproducibility.
Datasets
Synthetic Validation. The synthetic datasets are autoregressive token sequences sampled from frozen teacher selective SSMs that implement the recurrence of § 3 exactly, so that every assumption of Theorem 4.4 holds for the data-generating model (rather than being assumed to hold). A teacher consists only of the four parameter blocks W = ( W Δ , W B , W C , A ) W = (W_{\Delta}, W_{B}, W_{C}, A) W = ( W Δ , W B , W C , A ) of a layer (no embedding, convolution, residual path, normalization, MLP, or Transformer components). The inputs are one-hot encoded: x t x_t x t is one of the standard basis vectors e 1 , … , e D e_1, \ldots, e_D e 1 , … , e D of R D \mathbb{R}^{D} R D for every t t t . This formulation makes the input dimension D D D also act as the vocabulary size (since there are D D D different basis vectors). Since ∥ x t ∥ 2 = 1 \lVert x_t\rVert_2 = 1 ∥ x t ∥ 2 = 1 , Assumption 4.3 holds with L x = 1 L_x = 1 L x = 1 .
The teacher SSM is turned into a generative model as follows. For a partially generated sequence x 1 , … , x t x_1, \ldots, x_t x 1 , … , x t , running it through the recurrence, starting from h 0 = 0 N × D h_0 = 0_{N \times D} h 0 = 0 N × D , produces an output y t ∈ R D y_t \in\mathbb{R}^{D} y t ∈ R D , which has one coordinate per token in the vocabulary. We therefore treat the d d d -th coordinate y t , d y_{t,d} y t , d as the logit of the event that the next input is token d d d , i.e. that x t + 1 = e d x_{t+1} = e_d x t + 1 = e d . We then take a softmax with temperature τ > 0 \tau> 0 τ > 0 to convert these D D D logits into a probability vector over the tokens, and draw the next input as follows:
Pr [ x t + 1 = e d ∣ x 1 , … , x t ] = [ softmax ( y t / τ ) ] d = exp ( y t , d / τ ) ∑ d ′ = 1 D exp ( y t , d ′ / τ ) , d = 1 , … , D . \Pr[x_{t+1} = e_d \mid x_1, \ldots, x_t] = [\operatorname{softmax}(y_t/\tau)]_d = \frac{\exp(y_{t,d}/\tau)}{\sum_{d'=1}^{D} \exp(y_{t,d'}/\tau)}, \qquad d = 1, \ldots, D. Pr [ x t + 1 = e d ∣ x 1 , … , x t ] = [ softmax ( y t / τ ) ] d = ∑ d ′ = 1 D exp ( y t , d ′ / τ ) exp ( y t , d / τ ) , d = 1 , … , D .
Table 3 summarizes the single-layer dataset generation over different settings.
Table 3. Generation settings of the synthetic teacher datasets. Grid entries are searched per configuration in the fixed order given in the text.
Single-layer synthetic datasets. To generate the single-layer datasets, we instantiate one frozen teacher SSM for every combination of the input dimension D ∈ { 4 , 8 , 16 } D \in\{4, 8, 16\} D ∈ { 4 , 8 , 16 } , the state dimension N ∈ { 4 , 8 , 16 } N \in\{4, 8, 16\} N ∈ { 4 , 8 , 16 } , and the stability limit ρ ∈ { 0.3 , 0.5 , 0.7 , 0.9 , 0.95 , 0.99 , 0.995 , 0.999 } \rho\in\{0.3, 0.5, 0.7, 0.9, 0.95, 0.99, 0.995, 0.999\} ρ ∈ { 0.3 , 0.5 , 0.7 , 0.9 , 0.95 , 0.99 , 0.995 , 0.999 } (from Definition 4.1 ), which gives 3 × 3 × 8 = 72 3 \times3 \times8 = 72 3 × 3 × 8 = 72 different frozen teachers. Each such teacher, with its specific combination of D D D , N N N , and ρ \rho ρ , then generates 4,096 training and 1,024 test sequences of length S = 64 S = 64 S = 64 according to the procedure described above.
Teacher initialization and stability targeting. For a teacher SSM corresponding to a combination of D D D , N N N , and ρ \rho ρ , its weights are drawn with i.i.d. Gaussian entries as follows: ( W B ) n , d ∼ N ( 0 , ( 0.75 g ) 2 ) (W_B)_{n,d} \sim\mathcal{N}(0, (0.75g)^2) ( W B ) n , d ∼ N ( 0 , ( 0.75 g ) 2 ) , ( W C ) n , d ∼ N ( 0 , 0.75 2 ) (W_C)_{n,d} \sim\mathcal{N}(0, 0.75^2) ( W C ) n , d ∼ N ( 0 , 0.7 5 2 ) , ( W Δ ) d , d ′ ∼ N ( 0 , 0.75 2 ) (W_{\Delta})_{d,d'} \sim\mathcal{N}(0, 0.75^2) ( W Δ ) d , d ′ ∼ N ( 0 , 0.7 5 2 ) , where g g g is a gain multiplier on the input projection described below. The margins ( γ , δ ) (\gamma, \delta) ( γ , δ ) are chosen such that the teacher belongs to S γ , δ \mathcal{S}_{\gamma,\delta} S γ , δ with ρ = exp ( − γ δ ) \rho= \exp(-\gamma\delta) ρ = exp ( − γ δ ) equal to the specified value while satisfying both constraints of Definition 4.1 . Since the inputs are one-hot, W Δ x t W_{\Delta}x_t W Δ x t is simply a column of W Δ W_{\Delta} W Δ , so the time-scale constraint of Definition 4.1 reduces to the entry-wise condition Softplus ( ( W Δ ) d , d ′ ) ≥ δ \operatorname{Softplus}((W_{\Delta})_{d,d'}) \ge\delta Softplus (( W Δ ) d , d ′ ) ≥ δ for all d , d ′ d,d' d , d ′ . We therefore draw W Δ W_{\Delta} W Δ first and set δ \delta δ to the smallest step it produces,
δ ^ : = min d , d ′ Softplus ( ( W Δ ) d , d ′ ) = Softplus ( min d , d ′ ( W Δ ) d , d ′ ) , δ : = ⌊ 10 5 δ ^ ⌋ / 10 5 , \hat{\delta} := \min_{d,d'} \operatorname{Softplus}\left((W_{\Delta})_{d,d'}\right) = \operatorname{Softplus}\left(\min_{d,d'}(W_{\Delta})_{d,d'}\right), \qquad\delta:= \left\lfloor10^5\hat{\delta}\right\rfloor/10^5, δ ^ := d , d ′ min Softplus ( ( W Δ ) d , d ′ ) = Softplus ( d , d ′ min ( W Δ ) d , d ′ ) , δ := ⌊ 1 0 5 δ ^ ⌋ /1 0 5 ,
rounded down so that δ ≤ δ ^ \delta\le\hat{\delta} δ ≤ δ ^ holds exactly, and then γ : = − ln ( ρ ) / δ \gamma:= -\ln(\rho)/\delta γ := − ln ( ρ ) / δ for the designated ρ \rho ρ . The parameters of the transition block are then generated as follows:
A n = − γ ( 1 + 0.25 ∣ z n ∣ ) , z n ∼ N ( 0 , 1 ) , n = 1 , … , N , A_n = -\gamma\left(1+0.25\lvert z_n\rvert\right), \qquad z_n \sim\mathcal{N}(0,1), \qquad n=1,\ldots,N, A n = − γ ( 1 + 0.25 ∣ z n ∣ ) , z n ∼ N ( 0 , 1 ) , n = 1 , … , N ,
so that A n ≤ − γ A_n \le-\gamma A n ≤ − γ holds with a multiplicative margin. With this construction, the realized stability limit ρ ^ : = max n , d , d ′ ( A ˉ t ( e d ′ ) ) n , d = exp ( − γ ^ δ ^ ) \hat{\rho} := \max_{n,d,d'}(\bar{A}_t(e_{d'}))_{n,d} = \exp(-\hat{\gamma}\hat{\delta}) ρ ^ := max n , d , d ′ ( A ˉ t ( e d ′ ) ) n , d = exp ( − γ ^ δ ^ ) with γ ^ : = min n ( − A n ) \hat{\gamma} := \min_n(-A_n) γ ^ := min n ( − A n ) satisfies ρ ^ = ρ ( δ / δ ^ ) ( 1 + 0.25 min n ∣ z n ∣ ) \hat{\rho} = \rho^{(\delta/\hat{\delta})(1+0.25\min_n\lvert z_n\rvert)} ρ ^ = ρ ( δ / δ ^ ) ( 1 + 0.25 m i n n ∣ z n ∣) and tracks ρ \rho ρ , including as ρ → 1 \rho\to1 ρ → 1 . Across all generated datasets ρ − ρ ^ ∈ [ 0 , 0.03 ] \rho-\hat{\rho}\in[0,0.03] ρ − ρ ^ ∈ [ 0 , 0.03 ] . By construction, A n ≤ − γ A_n\le-\gamma A n ≤ − γ , Softplus ( ( W Δ ) d , d ′ ) ≥ δ \operatorname{Softplus}((W_{\Delta})_{d,d'})\ge\delta Softplus (( W Δ ) d , d ′ ) ≥ δ , and ρ ^ < 1 \hat{\rho}<1 ρ ^ < 1 hold. Since the admissible inputs form the finite set { e 1 , … , e D } \{e_1,\ldots,e_D\} { e 1 , … , e D } , these conditions are also verified exhaustively over all D D D one-hot inputs before a teacher is accepted. A clamping projection onto S γ , δ \mathcal{S}_{\gamma,\delta} S γ , δ is available as a safeguard, but it was not active for any of the 72 accepted teachers.
Sampling. Given the frozen teacher with a combination of D D D , N N N , and ρ \rho ρ and the frozen weights constructed as described above, a sequence is generated by drawing x 1 x_1 x 1 uniformly from { e 1 , … , e D } \{e_1,\ldots,e_D\} { e 1 , … , e D } , starting from h 0 = 0 N × D h_0=0_{N\times D} h 0 = 0 N × D , and sampling x t + 1 x_{t+1} x t + 1 as described above for 79 further steps. The first 16 tokens are discarded as burn-in and the remaining S = 64 S=64 S = 64 tokens are stored as a single sequence. The burn-in aims to reduce the stored prefix’s dependence on the first input. The recurrent state at the start of the stored window is not persisted, and every subsequent teacher-forced or learner evaluation restarts from h 0 = 0 N × D h_0=0_{N\times D} h 0 = 0 N × D at the first stored token, which is the convention of the theory.
The training and test splits are sampled with separate fixed seeds (1,000 and 1,001,003), reused in every configuration. Each dataset stores the token indices as 8-bit integers together with the frozen teacher parameters, the generation settings, and the stability certificate, and is never modified afterwards. The learner only sees the stored tokens and never accesses the teacher.
Acceptance criteria. A generated candidate dataset is kept only if it passes the fixed criteria of Table 4 , which exclude degenerate teachers (whose sequences collapse into a dominant token, or become deterministic, constant, or uninformative), while ensuring that the next-token task carries predictive information. All diagnostics of the table are computed on the union of the training and test splits, unless stated otherwise. The central quantity is the teacher-forced negative log-likelihood (NLL): the stored tokens of a sequence are fed to the teacher as inputs, starting from h 0 = 0 N × D h_0=0_{N\times D} h 0 = 0 N × D , instead of re-sampling from it, and at every position t = 1 , … , S − 1 t=1,\ldots,S-1 t = 1 , … , S − 1 we record − ln ( Pr [ x t + 1 ∣ x 1 , … , x t ] ) -\ln(\Pr[x_{t+1}\mid x_1,\ldots,x_t]) − ln ( Pr [ x t + 1 ∣ x 1 , … , x t ]) , i.e., minus the log-probability that the teacher (at the sampling temperature τ \tau τ ) assigns to the stored next token. The NLL is the average of these values over all positions and sequences and measures how predictable the generated data are for the very model that produced them. A model that assigns probability 1 / D 1/D 1/ D to every token has NLL ln D \ln D ln D , which serves as the uniform baseline. The informativeness criterion therefore requires the sequences to be predictable beyond chance, while the perplexity criterion exp ( N L L ) ≥ 1.20 \exp(\mathrm{NLL})\ge1.20 exp ( NLL ) ≥ 1.20 excludes near-deterministic teachers. The mutual information is estimated from the empirical frequencies of consecutive token pairs. To avoid generating full datasets for clearly degenerate candidates, each candidate is first screened on a small draw of 256 training and 128 test sequences, and only if this screen passes is the full dataset generated and checked again against the same thresholds, which are never relaxed.
Table 4. Acceptance criteria applied to every synthetic candidate dataset. Statistics are computed on the union of the training and test splits unless noted. The token marginal is the empirical distribution of the D D D tokens over all stored positions, ignoring position and context. NLL denotes the teacher-forced negative log-likelihood at the sampling temperature τ \tau τ with h 0 = 0 h_0 = 0 h 0 = 0 per stored sequence.
Gain and temperature choices. As ρ → 1 \rho\to1 ρ → 1 , the hidden state of a random teacher accumulates input contributions over a horizon of order 1 / ( 1 − ρ ) 1/(1-\rho) 1/ ( 1 − ρ ) , so its logits grow and sampling collapses into a few tokens, which violates the balance and entropy criteria. Instead of relaxing the criteria, we search a fixed grid of input-projection gains and sampling temperatures,
( g , τ ) ∈ { ( 1 , 0.7 ) , ( 1 , 1 ) , ( 0.5 , 0.7 ) , ( 0.5 , 1 ) , ( 0.25 , 0.7 ) , ( 0.25 , 1 ) , ( 0.15 , 0.7 ) , (g,\tau)\in\{(1,0.7),(1,1),(0.5,0.7),(0.5,1),(0.25,0.7),(0.25,1),(0.15,0.7), ( g , τ ) ∈ {( 1 , 0.7 ) , ( 1 , 1 ) , ( 0.5 , 0.7 ) , ( 0.5 , 1 ) , ( 0.25 , 0.7 ) , ( 0.25 , 1 ) , ( 0.15 , 0.7 ) ,
( 0.15 , 1 ) , ( 0.1 , 0.7 ) , ( 0.1 , 1 ) , ( 0.05 , 0.7 ) , ( 0.05 , 1 ) , ( 0.03 , 1 ) } , (0.15,1),(0.1,0.7),(0.1,1),(0.05,0.7),(0.05,1),(0.03,1)\}, ( 0.15 , 1 ) , ( 0.1 , 0.7 ) , ( 0.1 , 1 ) , ( 0.05 , 0.7 ) , ( 0.05 , 1 ) , ( 0.03 , 1 )} ,
in this order for the teacher seeds s ∈ { 0 , 1 , 2 } s\in\{0,1,2\} s ∈ { 0 , 1 , 2 } (outer loop), and accept the first candidate that passes every criterion in Table 4 . Reducing g g g scales W B W_B W B (and therefore B t B_t B t ) and the accumulated state without touching W Δ W_{\Delta} W Δ or A A A , so the margins ( γ , δ ) (\gamma,\delta) ( γ , δ ) and ρ \rho ρ remain unchanged. Over the 72 dataset configurations, 18 were accepted at the first attempt and the longest search took 32 attempts. Teacher seed 0 was accepted in 63 configurations, seed 1 in 5, and seed 2 in 4. The accepted gains were g = 1 g = 1 g = 1 (30 configurations), 0.5 (9), 0.25 (15), 0.15 (8), 0.1 (2), 0.05 (6), and 0.03 (2). A gain below one was required in every configuration with ρ ≥ 0.99 \rho\ge0.99 ρ ≥ 0.99 and in only 7 of the 27 configurations with ρ ≤ 0.7 \rho\le0.7 ρ ≤ 0.7 . The accepted temperatures were τ = 0.7 \tau= 0.7 τ = 0.7 (39 configurations) and τ = 1 \tau= 1 τ = 1 (33 configurations). The resulting teachers improve on the uniform NLL by 0.02 to 0.97, have a consecutive-token mutual information between 0.008 and 0.90 and a teacher perplexity between 1.5 and 15.7. The most frequent token has frequency at most 1.76/D D D , the normalized marginal entropy is at least 0.94, and at least 98% of the stored sequences are unique.
Federated language modeling (RedPajama). The federated experiments use the SlimPajama-627B (Together Computer, 2023) release of RedPajama, available as cerebras/SlimPajama-627B. Of the seven SlimPajama domains: arxiv, book, c4, common_crawl (cc), github, stackexchange, wikipedia, we use four-domain combinations to instantiate four federated clients:
Setting 1: arxiv, github, stackexchange, wikipedia;
Setting 2: arxiv, c4, stackexchange, wikipedia;
Setting 3: c4, common_crawl, github, wikipedia;
Setting 4: arxiv, common_crawl, github, stackexchange.
Due to copyright restrictions, the book domain is no longer accessible, and therefore not used in our experiments.
For every client, we set the maximum number of sequences to sequences_per_client = 10,000. Each client’s dataset is split into 80% training and 20% validation data using train_val_split = 0.8. Due to the limited number of available sequences in certain domains, the effective per-client budgets are reduced for some settings. The resulting dataset statistics are summarized in Table 5 .
Table 5. Effective client train/validation budgets and server validation sizes across heterogeneity settings.
We use β \beta β to label three domain-allocation regimes:
Concretely, with sequences_per_client = 10,000 and an 80/20 train/validation split, each client typically contains 8,000 training chunks and 2,000 validation chunks. The server held-out evaluation set is the union of all client validation pools, giving approximately 8,000 validation chunks for K = 4 K = 4 K = 4 clients.
For each configuration, we use the Hugging Face gpt2 tokenizer (50,257 entries), with EOS reused for padding. The model configuration sets vocab_size = 50,277 and pad_vocab_size_multiple = 8, yielding 50,280 embedding/output rows.
Model Merging. For model merging, we evaluate on four text classification datasets: AG News (Zhang et al., 2015), DBpedia (Lehmann et al., 2015), TREC (Li and Roth, 2002), and IMDB (Maas et al., 2011). The dataset statistics and evaluation limits are summarized in Table 6 .
Table 6. Task datasets and sequence limits for causal-LM evaluation.
Each task is formulated as causal-LM scoring without a classification head. At evaluation time, we score prompt + ‘ ’ + label for every candidate label and select the label with the highest mean per-token log-probability over the label tokens. We use the mean, rather than the sum, so that labels of different lengths remain comparable. The evaluation pool is sub-sampled with a fixed seed of 99991 so that the evaluation split is identical across training seeds. The training pool is sub-sampled with the per-run training seed (seed ∈ 0, 1, 2) so that the three runs differ both in optimization noise and in their training subsamples.
The prompt templates are defined in Table 7 :
Table 7. Prompt templates and candidate labels used for causal-LM scoring.
Tokenization uses each model’s own tokenizer, namely GPT-2 BPE. Prompts are truncated or padded to max_seq_len = 256, with 16 tokens reserved for the label completion and template tail. During tokenization, we construct a boolean label_mask. This mask is used during fine-tuning to compute the loss only over label-token positions, and during evaluation to average scores only over label tokens.
All datasets are used under their original licenses and terms of use.
Models
Synthetic Validation. The learner SSM has the exact same architecture as the teacher: a single-layer selective SSM as defined in § 3 , with the four parameter blocks W = ( W Δ , W B , W C , A ) W = (W_{\Delta}, W_B, W_C, A) W = ( W Δ , W B , W C , A ) of sizes D × D D \times D D × D , N × D N \times D N × D , N × D N \times D N × D , and N × 1 N \times1 N × 1 , one-hot inputs, and no embedding, convolution, residual path, normalization, MLP, or Transformer components. The output y t ∈ R D y_t \in\mathbb{R}^{D} y t ∈ R D is used directly as the logit vector for next-token prediction. In every configuration, the learner uses the same input dimension D D D and state dimension N N N as the teacher that generated its dataset (D D D must match the vocabulary), so its parameter count is D 2 + 2 N D + N D^2 + 2ND + N D 2 + 2 N D + N (Table 8 ). The learner never receives the teacher parameters—the only teacher-related quantities it uses are the margins ( γ , δ ) (\gamma, \delta) ( γ , δ ) of its configuration, which define the stability set S γ , δ \mathcal{S}_{\gamma,\delta} S γ , δ in which it is trained.
Table 8. Learner parameter counts D 2 + 2 N D + N D^2 + 2ND + N D 2 + 2 N D + N for the synthetic configurations.
Initialization. For a learner seed s ∈ { 0 , 1 , 2 } s \in\{0, 1, 2\} s ∈ { 0 , 1 , 2 } , drawn independently of the teacher seed, the projections are initialized with i.i.d. Gaussian entries ( W Δ ) d , d ′ , ( W B ) n , d , ( W C ) n , d ∼ N ( 0 , 0.1 2 ) (W_{\Delta})_{d,d'}, (W_B)_{n,d}, (W_C)_{n,d} \sim\mathcal{N}(0, 0.1^2) ( W Δ ) d , d ′ , ( W B ) n , d , ( W C ) n , d ∼ N ( 0 , 0. 1 2 ) , and the transition block as
A n = − ( γ + ϵ ) − 0.1 ∣ z n ∣ , z n ∼ N ( 0 , 1 ) , n = 1 , … , N , A_n = -(\gamma+ \epsilon) - 0.1 \lvert z_n \rvert,\qquad z_n \sim\mathcal{N}(0,1),\qquad n = 1,\ldots,N, A n = − ( γ + ϵ ) − 0.1 ∣ z n ∣ , z n ∼ N ( 0 , 1 ) , n = 1 , … , N ,
with a safety margin ϵ = 10 − 4 \epsilon= 10^{-4} ϵ = 1 0 − 4 . The initial parameters are then projected onto S γ + ϵ , δ + ϵ \mathcal{S}_{\gamma+\epsilon,\delta+\epsilon} S γ + ϵ , δ + ϵ by clamping A n ≤ − ( γ + ϵ ) A_n \leq-(\gamma+ \epsilon) A n ≤ − ( γ + ϵ ) and ( W Δ ) d , d ′ ≥ Softplus − 1 ( δ + ϵ ) (W_{\Delta})_{d,d'} \geq\operatorname{Softplus}^{-1}(\delta+ \epsilon) ( W Δ ) d , d ′ ≥ Softplus − 1 ( δ + ϵ ) , and membership in S γ , δ \mathcal{S}_{\gamma,\delta} S γ , δ is verified over all D D D one-hot inputs, exactly as for the teachers. The initialization scale 0.1 is much smaller than the teacher’s 0.75, so every learner starts close to a uniform next-token predictor. The same projection is applied after every optimizer update during training, so the learner remains in S γ , δ \mathcal{S}_{\gamma,\delta} S γ , δ with realized transitions bounded by ρ \rho ρ throughout training. All learner parameters are stored and updated in single precision (float32).
Federated Training. All federated runs train Mamba-2 selective state-space models from scratch using mamba_ssm’s MambaLMHeadModel with the configuration:
d_model = 256
ssm_cfg.layer = Mamba2
default d_state = 128
d_conv = 4
expand = 2
headdim = 64 64 64
ngroups = 1 1 1
vocab_size = 50,277 50{,}277 50 , 277
pad_vocab_multiple = 8 8 8 , giving padded vocabulary size 50,280 50{,}280 50 , 280
rms_norm = True
residual_in_fp32 = True
fused_add_norm = True
dtype = float32 (with fp16 autocast inside forward pass)
depth ∈ { 4 , 16 } \in\{4,16\} ∈ { 4 , 16 } (observed depths: 4 and 16)
i.e. we consider custom Mamba2 models of depth 4 or depth 16. The parameter counts are summarized in Table 9 .
Table 9. Parameter breakdown by model depth.
Notes: the input/output embedding are shared by the LM head (50,280 × 256 = 12,871,680 50{,}280 \times256 = 12{,}871{,}680 50 , 280 × 256 = 12 , 871 , 680 parameters). The SSM (mixer) params denotes the parameter count restricted to tensors matching *.mixer.*, including in_proj, conv1d, A_log, D, dt_bias, the block-gated RMSNorm, and out_proj.
Hybrid and Attention Backbones. The backbone ablation (see the ablations in the Practical Distributed Learning Framework subsection) replaces some or all of the four Mamba2 mixers of the depth-4 model by causal multi-head attention layers, keeping d_model = 256, the tied GPT-2 embedding and LM head, the RMSNorm layers, and the residual structure unchanged, so that the mixer of every layer is either a Mamba2 block with the configuration above or an attention block. Attention layers are mamba_ssm’s MHA (Multi-Head Attention) with 8 heads of dimension 32, rotary position embeddings over the full head dimension, causal masking, biases on the input (qkv) and output projections, and no feed-forward sublayer. The attention layers are spread evenly through the stack. With n a t t n n_{\mathrm{attn}} n attn attention layers among the L = 4 L = 4 L = 4 layers, the j j j -th attention layer (counting from j = 0 j = 0 j = 0 ) is placed at index ⌊ ( j + 0.5 ) L / n a t t n ⌋ \lfloor(j + 0.5)L/n_{\mathrm{attn}} \rfloor ⌊( j + 0.5 ) L / n attn ⌋ , which puts a single attention layer in the middle of the stack (index 2), two attention layers at indices 1 and 3, and three at indices 0, 2, and 3, with the remaining layers being Mamba2 mixers. To check that the placement itself does not drive the results, hybrid50alt keeps two attention layers but moves them to indices 0 and 2. Table 10 lists the resulting layouts and parameter counts: an attention layer has 263,168 parameters against 465,176 for a Mamba2 mixer, so the total parameter count decreases with the attention fraction. The attention-only model (attn0) serves as the zero-SSM control (since it has no SSM state to align).
Table 10. Backbones of the depth-4 ablation. Layer indices run from 0 to 3, every layer not listed as attention is a Mamba2 mixer.
Model Merging. The model merging experiments use public Mamba2 checkpoints loaded from Hugging Face with MambaLMHeadModel.from_pretrained. The results evaluate the 130M, 370M, and 780M checkpoints.
All checkpoints are loaded with dtype = bfloat16. The base state θ 0 \theta^0 θ 0 is the unmodified pretrained checkpoint and is fixed once at the start of each experiment. The per-task specialists θ m \theta_m θ m are produced by task fine-tuning (details in G.5), and saved to the per-experiment directory.
The pretrained models and the mamba-ssm module are used under their original licenses and terms of use.
Synthetic Distributed Learning Framework
For every configuration ( D , N , ρ ) (D,N,\rho) ( D , N , ρ ) and learner seed s ∈ { 0 , 1 , 2 } s \in\{0,1,2\} s ∈ { 0 , 1 , 2 } , the synthetic pipeline runs four stages on the dataset corresponding to that configuration: (i) centralized training of the learner of the Models subsection, (ii) evaluation of the gradient bound of Theorem 4.4 at the stored checkpoints, (iii) evaluation of the smoothness constants of Lemma 4.7 at the same checkpoints, and (iv) federated training with FedAvg and FedProx, which measures the quantities entering Theorem B.5 and Theorem B.6 . Stages (ii) and (iii) never train, they only read checkpoints. All stages use the margins ( γ , δ ) (\gamma,\delta) ( γ , δ ) of the configuration. Table 12 lists the shared settings.
Table 12. Shared settings of the synthetic centralized and federated runs.
Centralized Training. The learner minimizes the mean teacher-forced next-token cross-entropy over the S − 1 S-1 S − 1 shifted positions of every training sequence, i.e., the sequence loss of (3) with ℓ t \ell_t ℓ t the softmax cross-entropy and y t ∗ = x t + 1 y_t^*=x_{t+1} y t ∗ = x t + 1 . SGD uses no momentum, weight decay, or clipping, while projection and epoch reshuffling differ from the analyzed independent-sampling protocol. Each epoch shuffles the 4,096 training sequences with a seed derived from the learner seed and the epoch index and cuts them into batches of 64, running for 2,000 updates. After every update the parameters are projected onto S γ + ϵ , δ + ϵ S_{\gamma+\epsilon,\delta+\epsilon} S γ + ϵ , δ + ϵ at initialization, and membership in S γ , δ S_{\gamma,\delta} S γ , δ is re-verified over all D D D one-hot inputs. Checkpoints are written every 100 updates, and the test NLL, perplexity, and next-token accuracy are evaluated on the 1,024 test sequences at the same frequency, always restarting from h 0 = 0 N × D h_0=0_{N\times D} h 0 = 0 N × D at the first stored token.
Gradient-Bound Evaluation. At the five checkpoints of Table 12 and at the frozen teacher, every one of the 1,024 test sequences is processed in float64, and the gradient norm of its sequence loss with respect to the four blocks is computed as follows: ∥ ∇ W L S ∥ F = ( ∑ X ∈ { Δ , B , C , A } ∥ ∇ W X L S ∥ F 2 ) 1 / 2 \lVert\nabla_W L^S\rVert_F=\left(\sum_{X\in\{\Delta,B,C,A\}}\lVert\nabla_{W_X}L^S\rVert_F^2\right)^{1/2} ∥ ∇ W L S ∥ F = ( ∑ X ∈ { Δ , B , C , A } ∥ ∇ W X L S ∥ F 2 ) 1/2 . It is compared with two constants evaluated at the same parameters. The configured bound G S S M ( W ) \mathcal{G}_{\mathrm{SSM}}(W) G SSM ( W ) is Theorem 4.4 with its analytic constants, the configured ( γ , δ , ρ ) (\gamma,\delta,\rho) ( γ , δ , ρ ) , L x = 1 L_x=1 L x = 1 , and L ℓ = 2 L_{\ell} = \sqrt{2} L ℓ = 2 (the gradient of the softmax cross-entropy with respect to the logits has norm at most 2 \sqrt{2} 2 ). The tightened bound G S S M t i g h t ( W ) \mathcal{G}_{\mathrm{SSM}}^{\mathrm{tight}}(W) G SSM tight ( W ) uses realized stability margins, exact one-hot projection bounds, and finite-history sums: the realized margins γ ^ = min n ( − A n ) \hat{\gamma} = \min_n(-A_n) γ ^ = min n ( − A n ) , δ ^ \hat{\delta} δ ^ , and ρ ^ = exp ( − γ ^ δ ^ ) \hat{\rho} = \exp(-\hat{\gamma}\hat{\delta}) ρ ^ = exp ( − γ ^ δ ^ ) replace ( γ , δ , ρ ) (\gamma,\delta,\rho) ( γ , δ , ρ ) , max d ∥ Softplus ( W Δ e d ) ∥ 2 \max_d \lVert\operatorname{Softplus}(W\Delta e_d)\rVert_2 max d ∥ Softplus ( W Δ e d ) ∥ 2 replaces K Δ K_{\Delta} K Δ , the largest column norms max d ∥ W B e d ∥ 2 \max_d \lVert W_B e_d\rVert_2 max d ∥ W B e d ∥ 2 and max d ∥ W C e d ∥ 2 \max_d \lVert W_C e_d\rVert_2 max d ∥ W C e d ∥ 2 replace ∥ W B ∥ 2 \lVert W_B\rVert_2 ∥ W B ∥ 2 and ∥ W C ∥ 2 \lVert W_C\rVert_2 ∥ W C ∥ 2 , and every geometric factor 1 / ( 1 − ρ ) 1/(1-\rho) 1/ ( 1 − ρ ) is truncated to ( 1 − ρ ^ S − 1 ) / ( 1 − ρ ^ ) (1-\hat{\rho}^{S-1})/(1-\hat{\rho}) ( 1 − ρ ^ S − 1 ) / ( 1 − ρ ^ ) , since a stored sequence contributes at most S − 1 S-1 S − 1 terms to each history sum. These replacements upper-bound the same one-hot projection and history terms and do not exceed the configured constants. A violation is recorded when the measured norm exceeds the bound by more than a relative tolerance of 10 − 8 10^{-8} 1 0 − 8 . The utilization is the ratio of the measured norm to the bound. The gradient of the batch-mean loss over all test sequences is evaluated as well and checked against the mean of the per-sequence norms (triangle inequality) and against the bound.
Smoothness Evaluation. At the same checkpoints, 32 test sequences drawn once with a fixed seed are processed in float64. For every sequence, (a) the operator norm of the Hessian of the sequence loss is estimated by power iteration with exact Hessian-vector products (at most 15 iterations, stopping when the Rayleigh quotient changes by less than a relative 10 − 9 10^{-9} 1 0 − 9 ) and compared with L S S M , R L_{\mathrm{SSM},R} L SSM , R at R = 0 R = 0 R = 0 , (b) the finite-difference ratio ∥ ∇ L S ( W + h U ) − ∇ L S ( W ) ∥ F / h \lVert\nabla L^S(W+hU)-\nabla L^S(W)\rVert_F/h ∥ ∇ L S ( W + h U ) − ∇ L S ( W ) ∥ F / h with h = 10 − 3 h=10^{-3} h = 1 0 − 3 is evaluated along three unit directions U U U (two random and the normalized gradient) and compared with L S S M , h L_{\mathrm{SSM},h} L SSM , h whenever the ball of radius h h h is guaranteed to lie in S γ , δ \mathcal{S}_{\gamma,\delta} S γ , δ . Between consecutive learner checkpoints W a → W b W_a \to W_b W a → W b , the per-sequence ratio max i ∥ ∇ ℓ i ( W b ) − ∇ ℓ i ( W a ) ∥ F / ∥ W b − W a ∥ F \max_i \lVert\nabla\ell_i(W_b)-\nabla\ell_i(W_a)\rVert_F/\lVert W_b-W_a\rVert_F max i ∥ ∇ ℓ i ( W b ) − ∇ ℓ i ( W a ) ∥ F / ∥ W b − W a ∥ F is compared with L S S M , R L_{\mathrm{SSM},R} L SSM , R centered at W a W_a W a with R = ∥ W b − W a ∥ F R=\lVert W_b-W_a\rVert_F R = ∥ W b − W a ∥ F , and ∣ G S S M ( W b ) − G S S M ( W a ) ∣ / ∥ W b − W a ∥ F \lvert\mathcal{G}_{\mathrm{SSM}}(W_b)-\mathcal{G}_{\mathrm{SSM}}(W_a)\rvert/\lVert W_b-W_a\rVert_F ∣ G SSM ( W b ) − G SSM ( W a )∣ / ∥ W b − W a ∥ F with L G S S M , R L_{\mathcal{G}_{\mathrm{SSM}},R} L G SSM , R of Lemma B.1 . The loss-regularity constants are L ℓ = 2 L_{\ell}=\sqrt{2} L ℓ = 2 and H ℓ = 1 / 2 H_{\ell}=1/2 H ℓ = 1/2 .
Federated Training. FedAvg and FedProx are run on the same learner with K K K clients holding disjoint, equal-size shards of the 4,096 training sequences and weights p k = 1 / K p_k=1/K p k = 1/ K . Under the IID partition, the sequences are randomly permuted (seeded by the learner seed) and cut into K K K shards. Under the dominant-token partition, the sequences are first sorted by their most frequent token, then by the fraction of positions that token occupies, and then cut into K K K shards, so that clients differ systematically in token composition. Every client starts each round from the broadcast model and performs E E E local SGD updates with the settings of Table 12 , each on a fresh batch of 64 sequences drawn with replacement from the client’s shard, followed by the same projection and verification as in centralized training. FedProx adds μ ( W − W r ) \mu(W-W^r) μ ( W − W r ) to every local gradient, taking projected SGD steps on F k r F_k^r F k r from Section 3. The server forms W r + 1 = ∑ k p k W k r , E W^{r+1}=\sum_k p_k W_k^{r,E} W r + 1 = ∑ k p k W k r , E in float64 and applies the projection once more. All runs start from the centralized learner initialization of the same seed and use T = 60 T=60 T = 60 rounds. Table 13 lists the settings: the base setting is run on all 72 configurations, and the one-factor variations of K K K , E E E , μ \mu μ , and the partition are run on the 16 core configurations, namely the ρ \rho ρ axis at D = N = 8 D=N=8 D = N = 8 and all ( D , N ) (D,N) ( D , N ) pairs at ρ = 0.95 \rho=0.95 ρ = 0.95 . With three seeds this gives 1,200 federated runs.
Table 13. Synthetic federated settings. The base setting is run on all 72 configurations, each variation changes one factor of the base setting and is run on the 16 core configurations.
The following quantities are recorded. At every evaluated round, the subset gradient norm ∥ ∇ f ( W r ) ∥ F \lVert\nabla f(W^r)\rVert_F ∥ ∇ f ( W r ) ∥ F on a fixed subset of 1,024 training sequences is compared with the configured and tightened G S S M ( W r ) \mathcal{G}_{\mathrm{SSM}}(W^r) G SSM ( W r ) . The client drift ∥ W k r , E − W r ∥ F \lVert W_k^{r,E}-W^r\rVert_F ∥ W k r , E − W r ∥ F (mean and maximum over clients) and the largest displacement of any local iterate ∥ W k r , e − W r ∥ F \lVert W_k^{r,e}-W^r\rVert_F ∥ W k r , e − W r ∥ F are compared with the radius R R R . The heterogeneity ∑ k p k ∥ ∇ f k ( W r ) − ∇ f ( W r ) ∥ F 2 \sum_k p_k\lVert\nabla f_k(W^r)-\nabla f(W^r)\rVert_F^2 ∑ k p k ∥ ∇ f k ( W r ) − ∇ f ( W r ) ∥ F 2 , with client gradients over full shards, is compared with 4 G S S M ( W r ) 2 ∑ k p k T V k 2 4\mathcal{G}_{\mathrm{SSM}}(W^r)^2 \sum_k p_k \mathrm{TV}_k^2 4 G SSM ( W r ) 2 ∑ k p k TV k 2 of Lemma B.4, where T V k \mathrm{TV}_k TV k is the exact total variation between the empirical distribution of client k k k over whole sequences and the pooled distribution (unigram and bigram variants are recorded for reference but do not enter the lemma). The test NLL of the global model is evaluated on the 1,024 test sequences. Reference radii and envelopes are set from initialization: R = η E G S S M ( W 0 ) R=\eta E\mathcal{G}_{\mathrm{SSM}}(W^0) R = η E G SSM ( W 0 ) and M X = ∥ W X 0 ∥ 2 + ( T + 1 ) R M_X=\lVert W_X^0\rVert_2+(T+1)R M X = ∥ W X 0 ∥ 2 + ( T + 1 ) R for each block X X X , from which G S S M , R \mathcal{G}_{\mathrm{SSM},R} G SSM , R , L S S M , R L_{\mathrm{SSM},R} L SSM , R , and L G S S M , R L_{\mathcal{G}_{\mathrm{SSM},R}} L G SSM , R are computed. For FedProx the radius is R μ = min { R , G S S M , R [ 1 − ( 1 − η μ ) E ] / μ } R_\mu=\min\{R,G_{\mathrm{SSM},R}[1-(1-\eta\mu)^E]/\mu\} R μ = min { R , G SSM , R [ 1 − ( 1 − η μ ) E ] / μ } with correspondingly reduced envelopes. Beyond the sufficient step-size range, we log iterate containment, projection activity, and the tests η E L ≤ 1 / 2 \eta EL\le1/2 η E L ≤ 1/2 and 12 η 2 ( L + μ ) E ( E − 1 ) ≤ 1 12\eta^2(L+\mu)E(E-1)\le1 12 η 2 ( L + μ ) E ( E − 1 ) ≤ 1 . We compare the right-hand side of Theorem B.5 (coefficients 4, 4, 6, 48) or Theorem B.6 (coefficients 3, 3, 3, 24) with the subset estimate of 1 T ∑ r < T ∥ ∇ f ( W r ) ∥ F 2 \frac{1}{T}\sum_{r<T}\lVert\nabla f(W^r)\rVert_F^2 T 1 ∑ r < T ∥ ∇ f ( W r ) ∥ F 2 , using the full-training initial loss f ( W 0 ) f(W^0) f ( W 0 ) and f ∗ = 0 f^*=0 f ∗ = 0 .
Practical Distributed Learning Framework
The federated framework uses K = 4 K=4 K = 4 clients unless stated otherwise (see the client-count ablation) and initializes all clients from the same randomly initialized model θ 0 \theta^0 θ 0 . At the start of every round r r r , the server broadcasts the global model θ r \theta^r θ r , each client k k k runs E E E local optimization steps on its private data starting from θ r \theta^r θ r , and returns its updated parameters θ k r , E \theta_k^{r,E} θ k r , E to a server module that performs algorithm-specific aggregation. After aggregation, the new global model θ r + 1 \theta^{r+1} θ r + 1 is evaluated on the union of all clients’ local validation data (server validation pool). The per-round per-client training perplexities and the server validation perplexity are saved.
Shared Training Schedule. All algorithms are evaluated under the same overall optimization schedule. Across communication rounds, we keep the number of clients, participation rate, local optimizer, batch construction, sequence length, and random seeds fixed. The only differences across methods are the algorithm-specific server or client update rule and the corresponding method-specific hyperparameters. The shared hyperparameters are summarized in Table 14 . Local training runs in single precision with mixed-precision (fp16) autocast and dynamic loss scaling, and gradients are clipped after unscaling. FedSAM is the one exception and runs in full float32. A fresh AdamW optimizer is created at the start of every round, so no optimizer state carries across rounds.
Table 14. Shared training hyperparameters used across all federated algorithms.
The following metrics are saved for every round:
Train Perplexity (per client). During each local step, the client computes the token-level cross-entropy of the next-token objective: the logits at positions 1 , … , S − 1 1,\ldots,S-1 1 , … , S − 1 are scored against the tokens at positions 2 , … , S 2,\ldots,S 2 , … , S , with S ′ = 512 S'=512 S ′ = 512 . The pre-aggregation training perplexity of client k k k in round r r r is exp ( C E ‾ ) \exp(\overline{\mathrm{CE}}) exp ( CE ) , where C E ‾ \overline{\mathrm{CE}} CE is the mean cross-entropy over the E E E local steps of the round.
Validation Perplexity. After aggregation, the global model θ r + 1 \theta^{r+1} θ r + 1 is evaluated on the server validation pool. We report exp ( C E ‾ ) \exp(\overline{\mathrm{CE}}) exp ( CE ) with + ∞ +\infty + ∞ saturation on overflow.
Federated Algorithms. We evaluate nine federated learning algorithms, all sharing the schedule of Table 14 . Throughout, p k p_k p k denotes the sample-count weight of client k k k , and since every client processes the same number of sequences per round, p k = 1 / K p_k = 1/K p k = 1/ K in all runs.
FedAvg [18 ] . After each client completes its E E E local AdamW updates, the server sets θ r + 1 = ∑ k = 1 K p k θ k r , E = : θ ˉ r + 1 \theta^{r+1} = \sum_{k=1}^{K} p_k \theta_k^{r,E} =: \bar{\theta}^{r+1} θ r + 1 = ∑ k = 1 K p k θ k r , E =: θ ˉ r + 1 . This method serves as the main baseline and introduces no algorithm-specific hyperparameters.
FedProx [38 ] . FedProx adds the uniform proximal penalty μ 2 ∥ θ − θ r ∥ F 2 \frac{\mu}{2}\lVert\theta-\theta^r\rVert_F^2 2 μ ∥ θ − θ r ∥ F 2 to the local objective, which discourages local models from drifting far from the broadcast model. Server aggregation is identical to FedAvg.
SCAFFOLD (Karimireddy et al., 2020). SCAFFOLD corrects each client’s local update with the difference between a server control variate c r c^r c r and the client control variate c k r c_k^r c k r : the local gradient is shifted by λ c ( c r − c k r ) \lambda_c(c^r-c_k^r) λ c ( c r − c k r ) with correction scale λ c \lambda_c λ c . The control variates are refreshed every f c f_c f c rounds with control learning rate η c \eta_c η c , and their norm is bounded by τ c \tau_c τ c . Aggregation of the model parameters is identical to FedAvg.
FedAdam (Reddi et al., 2021). Clients run the unchanged AdamW local phase. The server applies Adam to the pseudo-gradient θ ˉ r + 1 − θ r \bar{\theta}^{r+1}-\theta^r θ ˉ r + 1 − θ r : it maintains first- and second-moment estimates m r m^r m r and v r v^r v r with coefficients ( β 1 s , β 2 s ) (\beta_1^s,\beta_2^s) ( β 1 s , β 2 s ) and updates θ r + 1 = θ r + α s m r / ( v r + τ s ) \theta^{r+1}=\theta^r+\alpha_s m^r/(\sqrt{v^r}+\tau_s) θ r + 1 = θ r + α s m r / ( v r + τ s ) coordinatewise, with server learning rate α s \alpha_s α s and offset τ s \tau_s τ s .
FedAlign [19 ] . FedAlign aligns the Mamba2 state coordinates of the client models before averaging. In the default mode (align_mode = mamba2_ref), the B / C B/C B / C state features of every client are matched to the current global model as the reference within each group, applying the same permutation to all coupled parameters. Optionally (align_mamba2_heads = 1), heads are matched as well, permuting every head-indexed parameter. After alignment, the client parameters are averaged with the same weights as FedAvg.
FedDyn (Acar et al., 2021). Each client keeps a persistent dual state ν k r \nu_k^r ν k r , initialized at zero, and trains the local objective L k ( θ ) − ⟨ ν k r , θ ⟩ F + α 2 ∥ θ − θ r ∥ F 2 \mathcal{L}_k(\theta)-\langle\nu_k^r,\theta\rangle_F+\frac{\alpha}{2}\lVert\theta-\theta^r\rVert_F^2 L k ( θ ) − ⟨ ν k r , θ ⟩ F + 2 α ∥ θ − θ r ∥ F 2 , with the two regularization terms computed in float32 outside autocast. After local training, the client sets ν k r + 1 = ν k r − α ( θ k r , E − θ r ) \nu_k^{r+1}=\nu_k^r-\alpha(\theta_k^{r,E}-\theta^r) ν k r + 1 = ν k r − α ( θ k r , E − θ r ) . The server keeps the average dual state ν r + 1 = ν r − α ∑ k p k ( θ k r , E − θ r ) \nu^{r+1}=\nu^r-\alpha\sum_k p_k(\theta_k^{r,E}-\theta^r) ν r + 1 = ν r − α ∑ k p k ( θ k r , E − θ r ) and updates θ r + 1 = θ ˉ r + 1 − ν r + 1 / α \theta^{r+1}=\bar{\theta}^{r+1}-\nu^{r+1}/\alpha θ r + 1 = θ ˉ r + 1 − ν r + 1 / α . The local optimizer remains AdamW, and the gradient of the regularized objective is clipped like every other local gradient.
FedSAM (Qu et al., 2022). Every local step is a first-order sharpness-aware step: the client computes the gradient g g g at the current iterate θ \theta θ , perturbs the weights by u = R S A M g / ( ∥ g ∥ F + 10 − 12 ) u=\mathfrak{R}_{\mathrm{SAM}}g/(\lVert g\rVert_F+10^{-12}) u = R SAM g / (∥ g ∥ F + 1 0 − 12 ) with the norm taken jointly over all trainable parameters, computes the gradient at θ + u \theta+u θ + u , restores θ \theta θ exactly, and applies the perturbed gradient (clipped) with AdamW. Aggregation is identical to FedAvg. Because the perturbation must be formed from exact gradients across two backward passes, FedSAM runs without mixed precision at roughly twice the wall-clock cost of the other methods.
FedExP (Jhunjhunwala et al., 2023). Local training is identical to FedAvg. With the client displacements θ k r , E − θ r \theta_k^{r,E}-\theta^r θ k r , E − θ r and their weighted average ∑ k p k ( θ k r , E − θ r ) \sum_k p_k(\theta_k^{r,E}-\theta^r) ∑ k p k ( θ k r , E − θ r ) , the server applies θ r + 1 = θ r + η g r ∑ k p k ( θ k r , E − θ r ) \theta^{r+1}=\theta^r+\eta_g^r\sum_k p_k(\theta_k^{r,E}-\theta^r) θ r + 1 = θ r + η g r ∑ k p k ( θ k r , E − θ r ) with the scaling factor η g r = max { 1 , ∑ k p k ∥ Δ k r ∥ F 2 / ( 2 ∥ Δ r ∥ F 2 + ϵ g ) } \eta_g^r=\max\{1,\sum_k p_k\lVert\Delta_k^r\rVert_F^2/(2\lVert\Delta^r\rVert_F^2+\epsilon_g)\} η g r = max { 1 , ∑ k p k ∥ Δ k r ∥ F 2 / ( 2 ∥ Δ r ∥ F 2 + ϵ g )} , a single scalar shared by all parameters, with norms taken over all floating-point tensors. The factor has no upper cap and is logged every round. We do not average the last two server iterates at evaluation time.
DiLoCo-style (Douillard et al., 2024). Clients run the same AdamW local phase as FedAvg. The server applies an outer Nesterov step to the pseudo-gradient θ ˉ r + 1 − θ r \bar{\theta}^{r+1}-\theta^r θ ˉ r + 1 − θ r : m o r = β o m o r − 1 + θ ˉ r + 1 − θ r m_o^r=\beta_o m_o^{r-1}+\bar{\theta}^{r+1}-\theta^r m o r = β o m o r − 1 + θ ˉ r + 1 − θ r and θ r + 1 = θ r + α o ( β o m o r + θ ˉ r + 1 − θ r ) \theta^{r+1}=\theta^r+\alpha_o(\beta_o m_o^r+\bar{\theta}^{r+1}-\theta^r) θ r + 1 = θ r + α o ( β o m o r + θ ˉ r + 1 − θ r ) , with m o − 1 = 0 m_o^{-1}=0 m o − 1 = 0 , outer learning rate α o \alpha_o α o , outer momentum β o \beta_o β o , and per-parameter momentum buffers kept in float32. Unlike DiLoCo, whose workers keep their inner AdamW state across outer steps, the inner optimizer is re-created every round, as for all other methods.
Hyperparameter Tuning. For each algorithm, we ran every value of the grid in Table 15 at every ( depth , E , β , setting ) (\text{depth}, E, \beta, \text{setting}) ( depth , E , β , setting ) configuration and over three seeds.
Table 15. Hyperparameter grids of the federated algorithms, run at every configuration and seed. Values shared by all members of a grid are fixed.
The final reported metrics correspond, per configuration, to the hyperparameter value with the lowest validation perplexity averaged over the last 10 rounds (rounds 41–50) and over the three seeds. Runs that end with a non-finite perplexity are counted as failures and are never replaced.
Reporting Metrics. For every ( depth , E , β , setting ) (\text{depth}, E, \beta, \text{setting}) ( depth , E , β , setting ) configuration we report:
train_ppl: the per-round, per-client training perplexity exp ( C E ‾ ) \exp(\overline{\mathrm{CE}}) exp ( CE ) averaged over rounds and clients, then averaged over seeds (with its standard deviation).
val_ppl: the server validation perplexity exp ( C E ‾ ) \exp(\overline{\mathrm{CE}}) exp ( CE ) averaged over all 50 rounds, then over seeds (with its standard deviation).
val_ppl_last10: the server validation perplexity averaged over rounds 41–50, then over seeds (with its standard deviation).
Ablations. We further add two ablation experiments to the main grid, both at the constant settings β = 0.7 \beta= 0.7 β = 0.7 , depth 4, E = 64 E = 64 E = 64 , T = 50 T = 50 T = 50 with three seeds and one fixed hyperparameter value per algorithm: FedProx μ = 10 − 3 \mu= 10^{-3} μ = 1 0 − 3 (5 × 10 − 4 5 \times10^{-4} 5 × 1 0 − 4 in the backbone ablation), SCAFFOLD f c = 8 f_c = 8 f c = 8 , FedAdam α s = 10 − 2 \alpha_s = 10^{-2} α s = 1 0 − 2 , FedAlign without head matching (with head matching in the backbone ablation), FedDyn α = 10 − 2 \alpha= 10^{-2} α = 1 0 − 2 , FedSAM R S A M = 10 − 2 \mathit{R}_{\mathrm{SAM}} = 10^{-2} R SAM = 1 0 − 2 , FedExP ϵ g = 10 − 3 \epsilon_g = 10^{-3} ϵ g = 1 0 − 3 , and DiLoCo-style ( α o , β o ) = ( 0.7 , 0.9 ) (\alpha_o, \beta_o) = (0.7, 0.9) ( α o , β o ) = ( 0.7 , 0.9 ) .
The client-count ablation varies K ∈ { 4 , 8 , 16 , 32 } K \in\{4, 8, 16, 32\} K ∈ { 4 , 8 , 16 , 32 } on all four domain settings. Clients are assigned primary domains round-robin over the four domains of the setting, so K / 4 K/4 K /4 clients share each primary domain, and each client draws a fraction β \beta β of its data from its primary domain and ( 1 − β ) / 3 (1 - \beta)/3 ( 1 − β ) /3 from each of the other three. Since the demand on every domain grows as K / 4 K/4 K /4 , the per-client budget is capped at the available domain pool divided by this demand: the 7,427/1,857 training/validation sequences per client at K = 4 K = 4 K = 4 become approximately 3,713/928, 1,856/464, and 928/232 at K = 8 K = 8 K = 8 , 16, and 32 for Settings 1 and 4, and slightly fewer for Settings 2 and 3 (which are limited by the size of C4).
The backbone ablation keeps K = 4 K = 4 K = 4 and Setting 1 and replaces some or all Mamba2 mixers of the depth-4 model by attention layers. The six backbones are described in the Models subsection.
Model Merging Framework
The merging framework is a two-phase pipeline. In the first phase, we fine-tune the pretrained base θ 0 \theta^0 θ 0 on each of the four downstream tasks independently, producing four task specialists θ m \theta_m θ m . In the second phase, we merge the specialists with each configured method and evaluate the merged state on every task’s evaluation split.
Per-Task Local Fine-Tuning For each task m ∈ { ag-news , abpedia_14 , trec , imdb } m \in\{\text{ag-news}, \text{abpedia\_14}, \text{trec}, \text{imdb}\} m ∈ { ag-news , abpedia_14 , trec , imdb } the pretrained base θ 0 \theta^0 θ 0 is fine-tuned on each task’s training pool with the causal-LM cross-entropy objective restricted to label-token positions. Specialists are checkpointed at every epoch in ”Checkpoint epochs” so that phase 2 can be repeated at multiple training horizons without re-paying the fine-tuning cost. Table 16 lists the optimization parameters.
Table 16. Per-task fine-tuning recipe (identical across tasks and seeds).
The cross-entropy loss is masked to label-token positions only, prompt and template tokens are ignored. The training-pool subsample varies with the seed (so each seed sees a different 40k subset of the underlying task), while the evaluation-pool subsample is held fixed across seeds (eval seed = 99,991) so that all reported accuracies are comparable across seeds and methods.
Reproducibility
Deterministic Data and Seed Handling. All three frameworks share a single PyTorch + NumPy seed. The federated harness deterministically caches the tokenized RedPajama subsets to a single binary cache file shared across all algorithms, settings, and seeds. The merging harness deterministically samples train and eval pools from each downstream dataset, with the eval seed (99,991) held fixed across all training seeds so that all reported accuracies are directly comparable.
Hardware and Runtime. All reported experiments were run on single-GPU workers using NVIDIA A100-40GB and NVIDIA H100 GPUs. The A100-40GB workers were used for prototyping, debugging, and smaller validation runs, as well as the synthetic dataset generation and validation experiments. The remaining main sweeps of federated and model merging experiments were run on the H100 workers. Each run used one GPU worker, with host CPU/RAM used only for data loading, tokenization-cache access, logging, and checkpoint I/O. The tokenized RedPajama subsets were cached once and reused across algorithms, settings, and seeds.
For federated language-modeling experiments, the dominant cost was local client training. Runtime scaled approximately linearly with the number of local steps E E E . In our setup, single federated runs ranged from approximately 30 minutes for E = 64 E = 64 E = 64 to at most roughly 2 hours for the longest E = 256 E = 256 E = 256 runs on an H100. All federated algorithms used the same base hardware and data pipeline. Their runtime differences were small relative to the effect of E E E . Naturally, the 16-layer model scaled the computation compared to the 4-layer one.
For model merging, each Phase-1 task-expert fine-tuning configuration required up to roughly 8 hours on a single H100, depending on checkpoint size.
Additional Experimental Results and Ablation Studies
Single Layer Synthetic Distributed Learning
Note that we validate the single-layer statements only. The multi-layer bound of Theorem C.3 composes the same per-layer constants with the layerwise sensitivities κ q \kappa_q κ q of (304) ; the contribution of layer q q q is the single-layer constant of that layer (with its parameters adjusted to the multi-layer setting) multiplied by ∏ j > q κ j \prod_{j>q}\kappa_j ∏ j > q κ j over the layers above it. When κ j ≥ 1 \kappa_j \ge1 κ j ≥ 1 , these factors do not reduce the per-layer bounds, but this does not establish greater relative looseness. Useful layers can also contract perturbations. Numerical evaluation is restricted to the single-layer theory.
Validity and tightness. Table 17 reports, per ρ \rho ρ , the number of evaluated cells, parameter points and sequences, the violation counts for the configured and tightened bounds (all zero), the median utilization with confidence intervals, the largest utilization and the median realized ρ ^ \hat{\rho} ρ ^ . Table 18 gives the same statistics along training. Figure 3 shows the utilization along training, one curve per ρ \rho ρ , and Figure 4 the tightened-constant companion of Figure 2 a together with the full per-sequence utilization distributions: at every ρ \rho ρ the distribution ends at least two orders of magnitude below the bound.
Table 17. Validity and tightness of the gradient bound of Theorem 4.4 by stability limit (single layer). Utilization is the measured per-sequence gradient norm divided by G S S M \mathcal{G}_{\mathrm{SSM}} G SSM (conf.) or G S S M t i g h t \mathcal{G}^{\mathrm{tight}}_{\mathrm{SSM}} G SSM tight (tight.). The row marked * is the one ρ = 0.3 \rho=0.3 ρ = 0.3 cell whose realized step δ ^ \hat{\delta} δ ^ differs from the other eight and is grouped separately by the evaluation.
Table 18. Utilization along training (single layer).
(a) Configured constants
(b) Tightened constants
Figure 3. Median bound utilization along training, one curve per ρ \rho ρ (colour), with the frozen teacher at the last position. The bound is tightest at initialization and loosest at the frozen teacher at every ρ \rho ρ .
Figure 4. (a) Largest measured gradient norm over the test split against the tightened G S S M t i g h t \mathcal{G}_{\mathrm{SSM}}^{\mathrm{tight}} G SSM tight for all 1,296 parameter points (thin lines mark utilizations 10 − 2 10^{-2} 1 0 − 2 to 10 − 6 10^{-6} 1 0 − 6 ). (b) Empirical distribution of the per-sequence tightened utilization per ρ \rho ρ (one in eight sequences shown), the vertical line is the bound.
Anatomy of the bound and of the gradient. Table 19 lists the median share of the squared gradient norm carried by each parameter block at the final learner checkpoint and at the frozen teacher, next to the share of G S S M \mathcal{G}_{\mathrm{SSM}} G SSM carried by its recurrent-Jacobian term.
Table 19. Where the measured gradient lives (median share of squared Frobenius norm per parameter block) against the share of the certified bound carried by its recurrent-Jacobian term.
Dimension. Table 20 and Figure 2 d give the log-log exponents of the configured bound, the tightened bound and the measured gradient in D D D (at fixed N N N , seed and ρ \rho ρ ) and in N N N at the final learner checkpoint. The certified exponents follow the N D 2 N D^2 N D 2 -type structure of K W K_W K W , the measured gradient is flat in N N N and decreasing in D D D .
Table 20. Log-log exponents in the state and vocabulary sizes at the final learner checkpoint (median over one-factor fits with 95% confidence intervals).
Realized stability and training. Table 21 and Figure 5 demonstrate that the bounds use learners that generally outperform uniform prediction and approach the teachers’ test Negative Log Likelihood (NLL). At short memory (ρ \rho ρ far away from 1), the teachers’ small predictive advantage over uniform makes normalized gap recovery sensitive to small absolute errors, while the learners remain well inside the stability limit. At long memory (ρ \rho ρ approaches 1), learners nearly match the teachers and train close to that limit.
Table 21. Centralized learners by stability limit: fraction of runs whose test Negative Log Likelihood (NLL) falls below the uniform baseline, median excess NLL over the teacher, and the fraction of the uniform-to-teacher gap recovered.
Figure 5. (a) Fraction of the uniform-to-teacher NLL gap recovered by the learners, per ρ \rho ρ . (b) The teachers’ predictive gap over the uniform baseline as a percentage of the uniform NLL, per cell.
Federated ingredients. Figure 6 shows how the quantities that enter Theorem B.5 scale with the federated hyperparameters. Client drift, the end-of-round displacement ∥ W k r − W r ∥ F \lVert W_k^r-W^r\rVert_F ∥ W k r − W r ∥ F , grows as E 0.87 E^{0.87} E 0.87 while the initialization-based reference radius R = η E G S S M ( W 0 ) R=\eta_E\mathcal{G}_{\mathrm{SSM}}(W^0) R = η E G SSM ( W 0 ) grows as E 1 E^1 E 1 (Figure 6 a). The client disagreement ∑ k p k ∥ ∇ L k ( W r ) − ∇ f ( W r ) ∥ F 2 \sum_k p_k\lVert\nabla\mathcal{L}_k(W^r)-\nabla f(W^r)\rVert_F^2 ∑ k p k ∥ ∇ L k ( W r ) − ∇ f ( W r ) ∥ F 2 , the quantity whose supremum Γ S S M , R 2 \Gamma^2_{\mathrm{SSM},R} Γ SSM , R 2 Lemma B.4 bounds, grows as K 1.48 K^{1.48} K 1.48 (Figure 6 b) and as ( 1 − ρ ) − 1.15 (1-\rho)^{-1.15} ( 1 − ρ ) − 1.15 , whereas drift is flat in ρ \rho ρ and ∥ ∇ f ∥ F 2 \lVert\nabla f\rVert_F^2 ∥ ∇ f ∥ F 2 grows only as ( 1 − ρ ) − 0.2 (1-\rho)^{-0.2} ( 1 − ρ ) − 0.2 (Figure 6 c), so disagreement grows faster than the squared gradient norm, consistent with the lemma’s SSM-sensitivity dependence. Figure 7 shows the per-round curves behind these tail means. Figure 8 examines the heterogeneity lemma: measured disagreement is 10 − 11 10^{-11} 1 0 − 11 to 10 − 14 10^{-14} 1 0 − 14 of 4 G S S M 2 H T V 4G^2_{\mathrm{SSM}}\mathcal{H}_{\mathrm{TV}} 4 G SSM 2 H TV (Figure 8 a). The sequence-level squared-TV aggregate is 0.56 at K = 4 K=4 K = 4 (0.25 to 0.94 across K K K ) and unchanged by the dominant-token partition, whereas a token-level squared-TV analogue rises from 1.6 × 10 − 5 1.6\times10^{-5} 1.6 × 1 0 − 5 to 2.8 × 10 − 3 2.8\times10^{-3} 2.8 × 1 0 − 3 and disagreement by 226× (Figure 8 b). Thus, the sequence-level term is insensitive to this partition; certifying a token-level or moment-based alternative requires a separate bound.
Figure 6. Federated scaling directions (medians with bootstrap 95% intervals). (a) End-of-round client drift against E E E for FedAvg and FedProx on the core cells, with the initialization-based reference radius R = η E G S S M ( W 0 ) R = \eta E G_{\mathrm{SSM}}(W^0) R = η E G SSM ( W 0 ) . (b) Client dissimilarity ∑ k p k ∥ ∇ L k ( W r ) − ∇ f ( W r ) ∥ F 2 \sum_k p_k \lVert\nabla\mathcal{L}_k(W^r) - \nabla f(W^r) \rVert_F^2 ∑ k p k ∥ ∇ L k ( W r ) − ∇ f ( W r ) ∥ F 2 against K K K on the core cells. (c) ∑ k p k ∥ ∇ L k ( W r ) − ∇ f ( W r ) ∥ F 2 \sum_k p_k \lVert\nabla\mathcal{L}_k(W^r) - \nabla f(W^r) \rVert_F^2 ∑ k p k ∥ ∇ L k ( W r ) − ∇ f ( W r ) ∥ F 2 , drift and ∥ ∇ f ∥ F 2 \lVert\nabla f \rVert_F^2 ∥ ∇ f ∥ F 2 against 1 − ρ 1-\rho 1 − ρ at the base setting (all 72 cells).
Figure 7. Per-round gradient (top) and client drift (bottom) on the core cells for each E E E
Figure 8. (a) Measured client dissimilarity against the certified heterogeneity bound with the tightened constant, for IID and dominant-token splits. (b) Sequence-level, bigram and unigram weighted total variation for the client counts and partitions of the bank, only the sequence-level value enters the lemma.
What drives the bound. Table 22 and Figure 9 give signed covariance attribution across the bank. The recurrent-history term carries at least 99% of the bound, so log 10 G S S M \log_{10} \mathcal{G}_{\mathrm{SSM}} log 10 G SSM is the sum of log-factors ρ / ( 1 − ρ ) 2 \rho/(1-\rho)^2 ρ / ( 1 − ρ ) 2 , N D ND N D , ∥ W C ∥ 2 \lVert W_C\rVert_2 ∥ W C ∥ 2 , K B K_B K B , K Δ K_\Delta K Δ , and K Δ + D ∥ A ∥ 2 K_\Delta+ \sqrt{D}\lVert A\rVert_2 K Δ + D ∥ A ∥ 2 , plus a residual below 0.1 decades. Each share is the covariance of a log-factor with log-bound magnitude divided by the latter’s variance. The memory factor spans 6.2 decades and contributes 93%. Dimension, readout and step contribute 7%, 6% and 4%, while the transition factor contributes −13%, offsetting memory growth. This offset helps explain the exponent above −2 in Figure 2 b. Teacher initialization gives ∥ A ∥ 2 = γ ∑ n ( 1 + 0.25 ∣ z n ∣ ) 2 \lVert A\rVert_2 = \gamma\sqrt{\sum_n(1+0.25|z_n|)^2} ∥ A ∥ 2 = γ ∑ n ( 1 + 0.25∣ z n ∣ ) 2 with γ = − ln ρ / δ \gamma=-\ln\rho/\delta γ = − ln ρ / δ . For log-utilization, memory contributes 102% and measured gradient growth −18%. Recurrence therefore dominates variation in tightness across this bank, not necessarily absolute looseness.
Table 22. What drives the bound across the bank. log 10 G S S M \log_{10}\mathcal{G}_{\mathrm{SSM}} log 10 G SSM is the sum of the logarithms of the factors of its recurrent-history term (plus a residual for the remaining terms), so the covariance of each factor with log 10 G S S M \log_{10}\mathcal{G}_{\mathrm{SSM}} log 10 G SSM divided by its variance is an additive attribution that sums to one over all 1,296 parameter points. The last column attributes the variation of the utilization ∥ ∇ L ∥ F / G S S M \lVert\nabla\mathcal{L}\rVert_F/\mathcal{G}_{\mathrm{SSM}} ∥ ∇ L ∥ F / G SSM in the same way, with the measured gradient as an additional term. A negative share means the factor moves against the total: ∥ A ∥ 2 \lVert A\rVert_2 ∥ A ∥ 2 shrinks as ρ → 1 \rho\to1 ρ → 1 .
Practical Distributed Learning
In this subsection we provide supplemental results to the Section 5 Mamba2 federated learning experiments. Every table reports the three metrics defined in Appendix G: the client training perplexity, the server validation perplexity (both averaged over all 50 rounds), and the server validation perplexity averaged over the last 10 rounds. Appendix H.2.1 evaluates the 9 federated algorithms in all the
72 main configurations in details, demonstrating how the different local rounds E E E , model depths, heterogeneity degrees β \beta β , and data compositions affect their performance. The reported standard deviation measures the per-seed average across configurations for 3 seeds (not the perplexity spread across configurations). Appendices § 14 .2.2 and § 14 .2.3 provide two ablation studies, on different client counts, and different model backbones respectively. Both use fixed hyperparameters listed in the Ablations paragraph of Appendix § 13 .
Detailed Results Across the 72 Main Configurations
Tables 23-26 report the nine algorithms averaged over the 72 configurations along each factor of the grid.
Comments. The results averages show a consistent overall ranking. FedProx achieves the lowest mean perplexity in 34 of the 36 metric columns. The two exceptions are last-10 validation perplexity at β = 1 \beta= 1 β = 1 , where FedDyn is marginally lower (40.0 versus 40.2), and all-round validation perplexity at E = 64 E = 64 E = 64 , where SCAFFOLD is lower (105.6 versus 106.6). On the last-10 metric, FedProx, FedDyn, and SCAFFOLD rank first, second, and third, respectively, at every local-step count, domain setting, and model depth in Tables 24-26.
Heterogeneity produces the clearest changes in relative performance. FedProx reduces last-10 perplexity relative to FedAvg by approximately 19%, 20%, and 34% at β = 0 \beta= 0 β = 0 , 0.7, and 1, respectively.
SCAFFOLD moves from eighth place at β = 0 \beta= 0 β = 0 (46.9 versus 45.4 for FedAvg) to third at β = 1 \beta= 1 β = 1 , where it improves on FedAvg by 18%. FedDyn narrowly overtakes FedProx at β = 1 \beta= 1 β = 1 , whereas FedExP moves from near parity with FedAvg at β ≤ 0.7 \beta\le0.7 β ≤ 0.7 to last place at β = 1 \beta= 1 β = 1 , with 13.5% higher last-10 perplexity. Across the same increase in β \beta β , last-10 perplexity rises by approximately 32-34% for FedAvg, FedAlign, FedSAM, and DiLoCo-style, by 52% for FedExP, and by 16% for FedAdam. The corresponding increases are only 9% for FedProx and 6% for SCAFFOLD. FedDyn instead improves by approximately 9%, although this comparison uses a separately selected α \alpha α at each β \beta β .
Increasing the number of local steps strengthens the relative advantages of FedDyn and SCAFFOLD. Their reductions in last-10 perplexity relative to FedAvg grow from approximately 12% and 4.5% at E = 64 E = 64 E = 64 to 22% and 10% at E = 256 E = 256 E = 256 , respectively. FedProx maintains a comparatively uniform reduction of 24-27% across the three values of E E E . These trends are qualitatively consistent with the role of the E ( E − 1 ) E(E - 1) E ( E − 1 ) drift term in the bounds and the benefits of radius control or heterogeneity correction discussed in our analysis. Naturally, larger E E E results in longer training, so all nine algorithms achieve approximately 35-45% lower last-10 perplexity when E E E increases from 64 to 256 at fixed T = 50 T = 50 T = 50 communication rounds.
The remaining methods generally remain close to, or underperform, FedAvg on the last-10 metric. FedAlign and FedSAM stay within 2% of FedAvg throughout the factor tables, while DiLoCo-style stays within 5%. FedAdam has approximately 9% higher last-10 perplexity at every local-step count and model depth, with gaps of approximately 5-12% across domain settings.
Table 23. Effect of heterogeneity. Training, validation, and last-10-round validation perplexity of the nine federated learning algorithms on Mamba2 at every β \beta β , averaged over the 24 configurations.
All-round validation perplexity provides an important contrast to these last-10 results. Despite its strong late-training performance, FedDyn has substantially higher all-round validation perplexity than FedAvg, as does FedAdam. Across the factor tables, their all-round averages are approximately 1.7–6.4 times those of FedAvg, reaching 814.4 for FedDyn and 355.2 for FedAdam at β = 1 \beta= 1 β = 1 . The round-wise results place these averages in context: after round 1, FedDyn and FedAdam have validation perplexities approximately 8 and 9 times that of FedAvg, respectively, using geometric means across configurations. FedDyn subsequently falls below FedAvg from round 4 onward and finishes 18% lower, whereas FedAdam remains above FedAvg throughout training and finishes 9% higher.
Domain composition and model depth change the absolute perplexity levels without changing the ordering of the three leading methods. Setting 1 yields the lowest last-10 perplexity and Setting 4 the highest for every algorithm. For FedAvg, these values differ by approximately a factor of 2.7. FedProx improves on FedAvg by approximately 24–26% in each setting. Increasing depth from 4 to 16 reduces last-10 perplexity by approximately 15–18% for FedAvg, FedAlign, FedSAM, FedExP, DiLoCo-style, and FedAdam, compared with 11% for SCAFFOLD, 8% for FedProx, and 4% for FedDyn. Consequently, the relative improvements over FedAvg narrow from 28% to 22% for FedProx, from 22% to 12% for FedDyn, and from 9% to 4% for SCAFFOLD.
Client-Count Ablation
Table 27 reports the client-count ablation described in Appendix G. We consider K ∈ { 4 , 8 , 16 , 32 } K \in\{4, 8, 16, 32\} K ∈ { 4 , 8 , 16 , 32 } client counts at fixed β = 0.7 \beta= 0.7 β = 0.7 , depth 4, and E = 64 E = 64 E = 64 , averaged over the four domain settings, with K / 4 K/4 K /4 clients sharing each primary domain and every client holding a 4 / K 4/K 4/ K share of the same domain pools.
Table 27. Client-count ablation. Training, validation, and last-10-round validation perplexity of the nine algorithms with K ∈ { 4 , 8 , 16 , 32 } K \in\{4, 8, 16, 32\} K ∈ { 4 , 8 , 16 , 32 } clients at β = 0.7 \beta= 0.7 β = 0.7 , depth 4, E = 64 E = 64 E = 64 , averaged over the four domain settings.
Comments. With per-client work held fixed, FedAvg’s last-10 validation perplexity decreases by approximately 4% from K = 4 K = 4 K = 4 to K = 8 K = 8 K = 8 (64.2 to 61.6), with little further change for the larger client counts (60.9 and 61.1). The training perplexity continues to decrease, from 144 at K = 4 K = 4 K = 4 to 129 at K = 32 K = 32 K = 32 , potentially reflecting more frequent reuse of smaller local datasets. The three leading methods in the main grid -FedProx, FedDyn, and SCAFFOLD - remain the strongest on last-10 validation perplexity at every K K K . FedAlign and FedSAM remain within 1% of FedAvg, whereas FedAdam has 8-9% higher perplexity.
Table 24. Effect of local steps. Training, validation, and last-10-round validation perplexity of the nine federated learning algorithms on Mamba2 at every E E E , averaged over the 24 configurations.
Table 25. Effect of the domain assignment. Training, validation, and last-10-round validation perplexity of the nine federated learning algorithms on Mamba2 for every domain setting (Setting 1: arxiv, github, stackexchange, wikipedia; Setting 2: arxiv, c4, stackexchange, wikipedia; Setting 3: c4, common_crawl, github, wikipedia; Setting 4: arxiv, common_crawl, github, stackexchange), averaged over the 18 configurations.
FedProx maintains a reduction of 22-24% compared to FedAvg across the evaluated values of K K K . In contrast, the reductions achieved by SCAFFOLD and FedDyn increase from 3% to 13% and from 7% to 18%, respectively, between K = 4 K = 4 K = 4 and K = 32 K = 32 K = 32 . DiLoCo-style moves from 3% higher perplexity than FedAvg to 8% lower, while FedExP moves from approximate parity to a 6% reduction. As such, although the leading methods remain unchanged, their relative gains and the ordering of the remaining methods vary with client count.
One possible explanation for these method-dependent trends is that having multiple clients per primary domain at larger K K K produces a more stable aggregate update than the one-client-per-domain partition at K = 4 K = 4 K = 4 . However, this interpretation is not directly tested by the ablation. Increasing K K K also changes the total client work, local dataset sizes, and data partitioning. These results therefore describe performance under the evaluated client-count protocol at a single (β \beta β , depth, E E E ) setting, rather than isolating the effect of client count or establishing a particular algorithmic mechanism.
Model Backbone Ablation
Table 28 reports the different model backbones ablation described in Appendix G: the depth-4 model with some or all Mamba2 mixers replaced by attention layers (Table 10), trained on Setting 1 at β = 0.7 \beta= 0.7 β = 0.7 , E = 64 E = 64 E = 64 , and K = 4 K = 4 K = 4 .
Comments. Under FedAvg the backbones order as hybrid75 (26.5) < hybrid50 (29.3) < mamba2 (30.7) < hybrid50alt (31.3) < hybrid25 (32.7) < attn (42.3) on the last-10 validation perplexity. Notably, an attention layer in the middle of the stack improves on the pure Mamba2 model by 14%. Attention layers placed first (hybrid50alt, hybrid50) or a mostlyattention stack lose that gain, and the attention-only control is 38% worse than pure Mamba2 at this model size and sequence length. The ranking of the algorithms transfers from the pure-SSM backbone to every hybrid, with two exceptions. FedProx is the best method on all six backbones (−17 to −21% relative to FedAvg), and FedAlign and FedSAM stay within 3% of FedAvg everywhere. SCAFFOLD, in contrast, gains 13–15% on the hybrids with two or three Mamba2 layers and 10% on hybrid25, but only 4% on mamba2 and 1% on attn0, and FedDyn at its fixed α \alpha α is unstable across architectures (−2 to −6% on mamba2, hybrid50, and attn0, +6 to +11% on the other three hybrids). The server-step methods are the second exception: their penalty grows as Mamba2 layers are replaced, from +8% (FedAdam) and +1% (DiLoCo-style) on mamba2 to +40% and +14% on attn0, whereas FedExP, neutral on mamba2, is 3–6% better than FedAvg on every backbone that contains attention.
Table 26. Effect of model depth. Training, validation, and last-10-round validation perplexity of the nine federated learning algorithms for the depth-4 and depth-16 Mamba2 models, averaged over the 36 configurations.
Model Merging
This subsection reports the one-shot merging experiments referenced in Appendix § 12 . Following the framework of Appendix § 13 .§ 5 , the pretrained Mamba2-130M, 370M, and 780M checkpoints (Table 11 ) are fine-tuned separately on AG News, DBpedia, TREC, and IMDB (Table 6 ) with the recipe of Table 16 , and the four specialists θ m = θ 0 + T m \theta_m = \theta^0 + T_m θ m = θ 0 + T m saved after 1, 2, and 4 epochs are merged by weight averaging (p m = 1 / 4 p_m = 1/4 p m = 1/4 ), Task Arithmetic (θ 0 + λ ∑ m T m \theta^0 + \lambda\sum_m T_m θ 0 + λ ∑ m T m ), and TIES-Merging (trim each task vector to the fraction d d d of its largest-magnitude entries, elect signs, average the agreeing entries, and scale the result by λ \lambda λ ). Every merged model is evaluated on all four tasks by causal-LM label scoring, and we report the accuracy averaged over the four tasks (mean ± standard deviation over three fine-tuning seeds), as well as the accuracies of the pretrained model and the specialists evaluated on their own and on the other tasks. Task Arithmetic and TIES-Merging are shown at the best of the evaluated λ \lambda λ and ( λ , d ) (\lambda, d) ( λ , d ) for each checkpoint and epoch. Tables 31 and 32 give the full sweeps, Table 30 the per-task accuracies after four epochs, and Table 33 a variant of the 130M experiment in which the specialists are fine-tuned with the FedProx proximal term.
Table 11. Public Mamba2 checkpoints used for model merging.
Table 33. Weight averaging of proximally fine-tuned specialists (Mamba2-130M): task-averaged accuracy (%). Each specialist is fine-tuned with the FedProx local objective L m ( θ ) + μ 2 ∥ θ − θ 0 ∥ F 2 \mathcal{L}_m(\theta) + \frac{\mu}{2}\lVert\theta- \theta^0\rVert_F^2 L m ( θ ) + 2 μ ∥ θ − θ 0 ∥ F 2 for 1, 2, or 4 epochs and the four specialists are merged by weight averaging
Comments. After four epochs, specialists average 89–91% accuracy on their own tasks but show little transfer to the other tasks. Task Arithmetic and TIES-Merging outperform weight averaging, with the best evaluated merges reaching 61.3, 71.8, and 72.1% for the 130M, 370M, and 780M checkpoints, respectively, compared with 37.4, 50.4, and 51.7% for averaging (Table 29 ). Larger checkpoints narrow the gap to specialists, although substantial deficits remain, especially on DBpedia and TREC (Table 30 ). The sweeps favor Task Arithmetical scales of λ = 0.7 \lambda= 0.7 λ = 0.7 -1, rather than the averaging scale λ = 0.25 \lambda= 0.25 λ = 0.25 , and sparse, rescaled TIES updates, with ( λ , d ) = ( 1.3 , 0.1 ) (\lambda,d) = (1.3, 0.1) ( λ , d ) = ( 1.3 , 0.1 ) performing best among the four-epoch settings evaluated (Table 31 and Table 32 ). Additionally, fine-tuning with the proximal penalty μ 2 ∥ θ − θ 0 ∥ F 2 \frac{\mu}{2}\lVert\theta-\theta^{0}\rVert_{F}^{2} 2 μ ∥ θ − θ 0 ∥ F 2 reduces four-epoch averaging accuracy from 37.4% at μ = 0 \mu= 0 μ = 0 to 26.2% at μ = 10 − 1 \mu= 10^{-1} μ = 1 0 − 1 , near the pretrained baseline (Table 33 ).
Table 29. One-shot merging of Mamba2 task specialists: task-averaged accuracy (%). For each public checkpoint, the accuracy averaged over AG News, DBpedia, TREC, and IMDB of the pretrained model, of the four specialists on their own task and on the other three tasks, and of the merged model produced by weight averaging, Task Arithmetic, and TIES-Merging from specialists fine-tuned for 1, 2, or 4 epochs.
Table 30. Per-task accuracy (%) of the merged models after 4 specialist epochs. Columns are the evaluation tasks for each checkpoint, rows are the pretrained model, the specialist fine-tuned on that task, and the three merges.
Table 31. Task Arithmetic scale sweep: task-averaged accuracy (%). θ T A = θ 0 + λ ∑ m T m \theta_{\mathrm{TA}} = \theta^0 + \lambda\sum_m \mathbf{T}_m θ TA = θ 0 + λ ∑ m T m over the four specialists, so λ = 1 / M = 0.25 \lambda= 1/M = 0.25 λ = 1/ M = 0.25 would be weight averaging and λ = 1 \lambda= 1 λ = 1 adds every task vector at full length. The 780M sweep evaluated only λ ∈ { 0.7 , 1.0 } \lambda\in\{0.7, 1.0\} λ ∈ { 0.7 , 1.0 } .
Table 32. TIES-Merging sweep after 4 specialist epochs: task-averaged accuracy (%). Rows are the output scale λ \lambda λ applied to the task vector, columns the fraction d d d of largest-magnitude entries kept per task vector. The 780M sweep evaluated only λ = 1.3 \lambda= 1.3 λ = 1.3 with d ∈ { 0.1 , 0.5 } d \in\{0.1, 0.5\} d ∈ { 0.1 , 0.5 } in addition to the default ( λ , d ) = ( 1.0 , 0.2 ) (\lambda, d) = (1.0, 0.2) ( λ , d ) = ( 1.0 , 0.2 ) .
Table 28. Backbone ablation. Validation and last-10-round validation perplexity of the nine algorithms on the six depth-4 backbones of Table 10 (Setting 1, β = 0.7 \beta= 0.7 β = 0.7 , E = 64 E = 64 E = 64 , K = 4 K = 4 K = 4 , the second header row gives the fraction of Mamba2 layers).
Relation to the analysis. These results are consistent with the trade-off in the local loss control (466) between the linear alignment term ⟨ ∇ f ( θ 0 ) , θ m e r g e − θ 0 ⟩ F \langle\nabla f(\theta^{0}),\theta_{\mathrm{merge}}-\theta^{0}\rangle_{F} ⟨ ∇ f ( θ 0 ) , θ merge − θ 0 ⟩ F and the quadratic smoothness remainder. Weight averaging preserves neighborhood containment but rescales each task vector by 1 / M 1/M 1/ M . For the 780M model parameters, ∥ ∑ m T m ∥ F 2 / ∑ m ∥ T m ∥ F 2 = 1.04 \lVert\sum_m T_m\rVert_{F}^{2}/\sum_m\lVert T_m\rVert_{F}^{2}=1.04 ∥ ∑ m T m ∥ F 2 / ∑ m ∥ T m ∥ F 2 = 1.04 -1.07, indicating little net alignment among the task vectors. The scale sweeps in this suggests that averaging suppresses useful task-specific adaptation: larger displacements can improve accuracy despite weaker containment guarantees, illustrating why containment alone does not ensure predictive performance (Appendix § 12 .§ 1 ). The proximal results suggest a similar trade-off. Limiting specialist drift can also suppress useful adaptation, and, unlike iterative federated learning, one-shot merging has no subsequent rounds to recover it. Finally, the uniform smoothness bound does not explain the larger accuracy gaps on DBpedia and TREC, motivating further investigation of the sensitivity-aware per-block scales discussed in Appendix § 12 .§ 2 .