Understanding the Robustness of Distributed Self-Supervised Learning Frameworks Against Non-IID Data

Xuanyu Chen1, Nan Yang1\(^{*}\), Shuai Wang2, Dong Yuan11
1School of Electrical and Computer Engineering, The University of Sydney
2Northwestern Polytechnical University
{xuanyu.chen,n.yang,dong.yuan}@sydney.edu.au
{s.wang}@mail.nwpu.edu.cn


Abstract

Recent research has introduced distributed self-supervised learning (D-SSL) approaches to leverage vast amounts of unlabeled decentralized data. However, D-SSL faces the critical challenge of data heterogeneity, and there is limited theoretical understanding of how different D-SSL frameworks respond to this challenge. To fill this gap, we present a rigorous theoretical analysis of the robustness of D-SSL frameworks under non-IID (non-independent and identically distributed) settings. Our results show that pre-training with Masked Image Modeling (MIM) is inherently more robust to heterogeneous data than Contrastive Learning (CL), and that the robustness of decentralized SSL increases with average network connectivity, implying that federated learning (FL) is no less robust than decentralized learning (DecL). These findings provide a solid theoretical foundation for guiding the design of future D-SSL algorithms. To further illustrate the practical implications of our theory, we introduce MAR loss, a refinement of the MIM objective with local-to-global alignment regularization. Extensive experiments across model architectures and distributed settings validate our theoretical insights, and additionally confirm the effectiveness of MAR loss as an application of our analysis.

1 Introduction↩︎

Deep learning advancements have been driven by large-scale datasets, as seen in the training of LLMs, which require billions of data points [1], [2]. However, real-world data is often decentralized, such as surveillance footage from distributed security cameras. This abundance of unlabeled distributed data has spurred interest in distributed self-supervised learning (D-SSL) [3], [4], which extends self-supervised learning (SSL) to decentralized settings. Existing D-SSL frameworks can generally be distinguished in two aspects: differing by the adopted self-supervised learning (SSL) method or by the applied distributed framework. Self-supervised learning (SSL) is a widely used technique to learn representations without human-labeled annotations by solving pretext tasks that generate supervisory signals from raw data [5]. Depending on the approach used to generate supervisory signals, SSL methods are broadly categorized into Contrastive Learning (CL) and Masked Image Modeling (MIM) [6], [7], with representative methods like SimSiam [8] and MAE [9]. On the other hand, federated learning (FL) and decentralized learning (DecL) are two main frameworks in training models with distributed data [10], [11]. FL aggregates local models via a central server [3], [12], while DecL enables direct inter-client communications for aggregating models, enhancing privacy and avoiding the dependence on the central server [13], [14].

One unique challenge of D-SSL research is handling highly heterogeneous data on clients. Distributed data among multiple clients are normally non-independent and identically distributed (non-IID), leading to performance degradation [15]. To tackle this challenge, previous works proposed advanced D-SSL algorithms with robustness to heterogeneous data. Notable examples include FedU [3], Orchestra [16], and L-DAWA [17]. However, despite continuous algorithmic innovation, there is still a lack of theoretical understanding of this heterogeneity problem. For example, FedU was designed within the FL framework, but how would its robustness to non-IID data change if deployed in a DecL framework without coordination from the server? Similarly, state-of-the-art D-SSL algorithms are primarily based on CL, while the adaptation of MIM methods to distributed settings remains under-explored. Could D-SSL based on MIM offer greater robustness to non-IID data than CL-based methods? These confusions converge into a fundamental research question affecting the advancement of D-SSL:

How robust are different D-SSL frameworks against data heterogeneity?

To address this question, this paper aims to provide a theoretical understanding of how different D-SSL frameworks behave under heterogeneous data. We construct mathematical models in a simplified non-IID setting and rigorously analyze the representability of local and global representations learned by these algorithms. Our analysis reveals two key insights: (i) D-SSL algorithms based on Masked Image Modeling (MIM) are inherently more robust than those based on Contrastive Learning (CL), although their robustness still degrades under severe divergence between local and global distributions; and (ii) the robustness of decentralized SSL improves with the average connectivity of the network, which suggests that decentralized SSL is only as robust as federated D-SSL in the limited case of full connectivity (i.e., a fully connected network). Building on these insights, we also explore how theoretical results can inform algorithmic design. As an illustration, we refine the MIM objective with the additional alignment regularization, which we call MAR loss, to encourage local-to-global representation consistency. Finally, we conduct extensive experiments on ResNet [18] and Vision Transformer (ViT) [19] across a variety of distributed settings and benchmark datasets to validate our theoretical findings and to demonstrate the usefulness of MAR loss as a practical example.

In summary, our main contributions are listed below:

  1. We develop a rigorous theoretical analysis of distributed self-supervised learning (D-SSL) under non-IID data, showing that MIM-based D-SSL is inherently more robust than CL-based D-SSL.

  2. We establish the relationship between network connectivity and robustness, proving that decentralized SSL benefits from higher connectivity and that federated SSL is no less robust than decentralized SSL.

  3. We introduce MAR loss as an illustrative case study demonstrating how our theoretical results can guide algorithmic design, by refining the MIM objective with alignment regularization.

  4. We conduct extensive experiments across model architectures and distributed settings, which validate our theoretical insights and further confirm the effectiveness of MAR loss.

2 Related Work↩︎

Self-Supervised Learning. Self-supervised learning (SSL) leverages unlabeled data by generating pseudo labels from raw inputs to learn meaningful representations [5]. Vision-based SSL methods are typically categorized into contrastive learning (CL) and masked image modeling (MIM) [6], [7]. CL learns representations by maximizing the similarity between positive pairs (i.e., similar data points created by data augmentation) and minimizing it between negative pairs (i.e., data pairs created by other data points) [20], [21]. Recent methods like SimSiam [8] and BYOL [22] advance the original contrastive loss by removing terms related to negative pairs, which improves stability and reduces batch size dependence. MIM, in contrast, randomly masks out patches of input images and predicts the missing parts, learning representations through a reconstruction loss [9], [23][25]. Although different in formulation, recent studies have shown that many MIM methods have close connections to CL (i.e., their objectives can be directly re-formulated as contrastive loss [7], [26]). In this work, we aim to figure out which SSL paradigm is inherently more robust against data heterogeneity.

Distributed Learning. Distributed learning enables collaborative model training across multiple clients without sharing data. Two dominant frameworks in this area are: federated learning (FL), which uses a central server to coordinate and aggregate models [12], and decentralized learning (DecL), where clients exchange models locally with neighbors [13], [14]. While FL is more widely adopted [27] for better convergence and training effectiveness, DecL offers benefits in scalability and privacy. Recent studies have started comparing these two frameworks [28], [29]. For example, Sun et al. explored which leads to better generalization and the impact of network architecture on generalization [11]. However, the relationship between network architecture and the non-IID robustness in distributed settings is still unclear. Our work addresses this gap by providing both theoretical analysis and empirical findings to clarify this relationship.

Distributed SSL. Distributed SSL (D-SSL) integrates SSL with distributed frameworks to leverage unlabeled, decentralized data while preserving privacy [3], [30]. A core challenge is learning robust representations under data heterogeneity [15]. Prior work has primarily focused on algorithmic solutions such as FedU [3] and L-DAWA [17]. Although some studies also provide theoretical analyses, their purpose is to demonstrate the validity of the proposed algorithms rather than to advance the understanding of the robustness variance between different D-SSL frameworks [16], [31]. The most relevant theoretical work is by Wang et al., who showed that SSL is more robust than supervised learning in distributed settings [4]. Unfortunately, their study only analyzed a specific case of D-SSL where CL is combined with FL and did not extend it to other types of D-SSL frameworks. In contrast, our work delves deeper into these differences, shedding light on understanding the insensitivity of various D-SSL approaches under heterogeneous conditions.

3 Problem Setup↩︎

To provide theoretical insights on understanding this central question, we first introduce our problem setup about distributed training and D-SSL with heterogeneous data.

3.1 Distributed Training↩︎

Distributed Setting. Consider a distributed scenario consisting of a connected network of N clients, represented as a graph \(\mathcal{G} = (\mathcal{V}, \mathcal{E})\), where \(\mathcal{V}\) is the set of clients and \(\mathcal{E}\) is the set of edges denoting direct communication links between clients. The connectivity of the graph is captured by a matrix \(A \in \mathbb{R}^{N \times N}\), referred to as the adjacency matrix, where \(A_i\) denotes the set including client \(i \in [N]\) itself and its neighbors shown by \(\mathcal{E}\), \(|A_i|\) represents the size of this neighborhood set or the connectivity of client \(i\), and \(|\bar{A}| = \frac{1}{n} \sum_{i=1}^{n}(|A_i|)\) is the average connectivity. Hence, distributed training conducted through DecL satisfies \(\forall i \in [N], 2 \leq |A_i| \leq N\). In contrast, FL relies on a central server that aggregates local models from all clients and broadcasts the global model back to them in each round, as in FedAvg [12]. This architecture effectively enables every client to communicate with all others through the server, which corresponds to a fully connected decentralized topology where \(\forall i \in [N], |A_i| = N\). A more formal specification of the graph structure and the mixing-weight conditions for this distributed setting is provided in Appendix 8.6.1.

Objective of Distributed Optimization. To utilize different clients to learn useful representations, distributed training generally optimizes the below global objectives: \[\label{eq95distributed95global} W^*_{Dec} = \min_W \frac{1}{N} \sum_{i=1}^N \frac{1}{|A_i|} \sum_{j \in A_i} \mathcal{L}_j(W_j); \quad W^*_{Fed} =\min_W \frac{1}{N} \sum_{i=1}^N \mathcal{L}_i(W_i)\tag{1}\] where \(\mathcal{L}_j\) is the objective of local SSL on client \(j\), \(W^*_{Dec}\) and \(W^*_{Fed}\) denote the global objective of DecL and FL, respectively. In particular, at each iteration of DecL, each client conducts local updates using the local dataset and aggregates the updated local model with those from neighbors [13]. For generating the global model for downstream tasks, there will be an additional aggregation on all local models after all iterations. Differently, the optimization of FL involves each round of model aggregation only on the central server [12]. Then, the server broadcasts the global model to all clients for the next round of training. Note that the FL framework does not need another aggregation between all local models since the updated global model on the server can be used directly for fine-tuning.

3.2 Rigorous Analysis of D-SSL on a Simplified Non-IID setting↩︎

Non-IID Client Data. D-SSL involves all clients collaboratively training a global model by leveraging their local unlabeled datasets \(\{D_i\}^{N}_{i=1}\) and communicating over the graph \(\mathcal{G}\). Since sharing data is prohibited to protect privacy, the heterogeneity across these distributed data sources generally leads to a performance drop in many distributed applications [3], [12]. Two common types of data heterogeneity are: feature heterogeneity and label heterogeneity [15]. In this paper, we follow previous works [4], [32] to model a simplified but formal label non-IIDness between local datasets as follows.

Figure 1: Illustration of the constructed heterogeneous distribution for local data on clients. Each client holds two unique data classes.

The global data distribution \(D = \bigcup_{i=1}^N D_i\) across clients is assumed to contain unlabeled data from \(2N\) classes. For the dataset on client \(i\), the local data distribution \(D_i\) is constrained and imbalanced on three classes, with most samples belonging to classes \(2i-1\) and \(2i\), while the remaining very few samples come from the class \(h_i \in [2N] \setminus \{2i-1, 2i\}\). Specifically, for a sufficiently large positive integer \(d>0\), let \(x \in \mathbb{R}^d \sim D_i\) be the data points in the local dataset and \(e_1, \ldots, e_d\) be the standard unit-norm vectors of the d-dimensional Euclidean space. For class \(2i-1\), we set \(x^{(2i-1)} = e_i - \Sigma^{N}_{k \neq i, k=1}q^{(2i-1,k)}\tau e_k + \mu \xi^{(2i-1)}\), where \(\tau\) and \(\mu\) are two positive hyperparameters, \(q\) is sampled uniformly from \(\{0,1\}\) and \(\xi \sim \mathcal{N}(0, I)\) from Gaussian distribution. Likewise, for class \(2i\), we define \(x^{(2i)} = -e_i - \Sigma^{N}_{k \neq i, k=1}q^{(2i,k)}\tau e_k + \mu \xi^{(2i)}\). The size of the data from classes \(2i-1\) and \(2i\) are equal and both grow in polynomials of \(d\). For infrequent class \(h_i\), the samples are generated as: \(x^{(h_i)} = e_{h_i} + \mu \xi^{(h_i)}\) and the amount of data is sublinear in \(d\), denoted as \(O(d^{\alpha})\) with \(\alpha \in (0,1)\)). Furthermore, we assume all \(N\) local datasets to have an equal total number of samples, i.e., \(|D_1| = |D_2| = \ldots = |D_N|\). To facilitate understanding, we provide an overview of this non-IID data distribution in Figure 1. Next, we consider CL and MIM as two main paradigms of SSL and formulate CL and MIM, respectively.

CL Formulation. For CL, we adopt the more advanced Simsiam [8] which trains with only the positive pairs \((g_a(x), g_b(x))\), where \(g_a(\cdot)\) and \(g_b(\cdot)\) are random augmentations drawn from SimSiam’s augmentation policy (e.g., Gaussian noise, flipping). Consider a linear embedding function \(f_{W}(x) = Wx\), where the weight matrix \(W\) satisfies \(W \in \mathbb{R}^{c \times d}\) and \(c \geq 2N\) according to the distributed settings, the local objective on client \(i\) is defined as: \[\label{eq95simsiam95loss} \begin{align} \mathcal{L}_{CL} &= -\mathbb{E}_{x \sim D_i} [|(W(g_a(x)))^{\intercal}(W(g_b(x)))] + \frac{1}{2}||W^{\intercal}W||^2_F. \end{align}\tag{2}\] Eq.(2 ) captures the SimSiam loss by utilizing the negative inner product \(\langle a,b \rangle\) to measure the distance between the positive pairs. This objective also excludes a feature predictor for simplicity and includes a regularization term \(||W^{\intercal}W||^2_F\) for more mathematically tractable, similar to previous works [4], [32]. Note that Eq.(2 ) stands for a general form of Simsiam loss due to the wide class of augmentation functions [5]. For a detailed and tractable theoretical exploration, we consider the linear formulation of data augmentation and further differ CL by the similarity between \(g_a(\cdot)\) and \(g_b(\cdot)\). In particular, for the case where the positive pairs are generated by similar augmentations, the objective becomes \(\mathcal{L}_{CL} = -\mathbb{E}_{x \sim D_i} [(W(x+\xi))^{\intercal}(W(x+\xi'))] + \frac{1}{2}||W^{\intercal}W||^2_F\), where \(\xi, \xi' \sim \mathcal{N}(0,I)\) are random noise sampled IID from the Gaussian distribution. On the other hand, when \(g_a(\cdot)\) and \(g_b(\cdot)\) are different, we define the loss as \(\mathcal{L}_{CL}' = -\mathbb{E}_{x \sim D_i} [(W(x+\xi))^{\intercal}(W(Hx))] + \frac{1}{2}||W^{\intercal}W||^2_F\), where \(H \in \mathbb{R}^{d \times d}\) denotes a linear image transformation (e.g., rotation, translation, etc.). The formal conditions on \(H\) are given in Appendix 8.6.1.

MIM Formulation. For MIM, a random binary mask \(m \in \{0,1\}^d\) (created by uniformly sampling 0 with probability \(p\), i.e., mask ratio) is applied to partition the input \(x\) into two complementary views: the unmasked part \(x_1 = x \odot m\) and the masked part \(x_2 = x \odot (1-m)\) satisfying \(x_1 + x_2 = x\). Then, we train an encoder-decoder model \(f = f_d \circ f_e\), where the encoder \(f_e\) encodes the input \(x_1\) to a latent representation \(z=f_e(x_1)\), and the decoder \(f_d\) decodes \(z\) back to pixel space to reconstruct the masked part \(x_2\). Hence, considering a linear encoder and decoder with embedding matrix \(W_e \in \mathbb{R}^{c\times d}\) and \(W_d \in \mathbb{R}^{d\times c}\), the local objective of MIM is given by \[\label{eq95MIM95loss} \begin{align} \mathcal{L}_{MIM} &= \mathbb{E}_{x \sim D_i} \mathbb{E}_{x_1, x_2 | x} ||f_d(f_e(x_1)) - x_2||^2 = \mathbb{E}_{x \sim D_i} ||W_d W_e (x \odot m) - (x \odot (1-m))||^2, \end{align}\tag{3}\] where the mean square error (MSE) loss is utilized to enforce the reconstructed image to be similar to the original image, and \(\odot\) denotes the Hadamard product. Recent studies have focused on the connection between MIM and contrastive losses and found that the MIM reconstruction objective admits an alignment between the masked and unmasked parts [7], [26]. Based on these results, we adopt an alignment-style formulation of Eq.(3 ) with \(W := W_e \in \mathbb{R}^{c\times d}\): \[\label{eq95new95MIM95loss} \begin{align} \mathcal{L}_{MIM} &= - \mathbb{E}_{x \sim D_i} [(W (x \odot m))^{\intercal}(W(x \odot (1-m)))] + \frac{1}{2}||W^{\intercal}W||^2_F, \end{align}\tag{4}\] which implicitly aligns the masked and unmasked views in the embedding space. The regularization term \(||W^{\intercal}W||^2_F\) is also introduced to ensure a well-posed quadratic form and improve the traceability.

4 Theoretical Insights↩︎

In this section, we use the above problem setup to model different D-SSL frameworks and compare their robustness to heterogeneous data. Differences in applied SSL and network architecture lead to distinctions in learned representations, which can be further explored to determine variance in robustness. Due to page limitations, the complete proof for our analysis is provided in Appendix 8.6.

4.1 Analysis of Representations Learned by D-SSL↩︎

We begin our analysis with the definition of the representability of the learned representation.

Definition 1. (Representability Vector (RV)). Let \(\{e_1, \ldots, e_d\}\) be the standard basis of \(\mathbb{R}^d\). Let \(W = [w_1, \ldots, w_c]^{\intercal} \in \mathbb{R}^{c\times d}\) be the feature matrix learned by the linear embedding function \(f_{W}(x) = Wx\), where \(c \leq d\). For row space \(\mathcal{R}=\mathrm{row}(W) \subseteq \mathbb{R}^d\), we denote the representability of \(\mathcal{R}\) as a vector \(r = [||\Pi_\mathcal{R}(e_1)||^2_2, \ldots, ||\Pi_\mathcal{R}(e_d)||^2_2]^{\intercal}\), where \(\Pi_\mathcal{R}(e_k)\) is the projection of \(e_k\) onto \(\mathcal{R}\) for \(k \in [d]\). Hence, we have \(||\Pi_\mathcal{R}(e_k)||^2_2 = \sum^c_{j=1} (e_k^{\intercal}v_j)^2\), where \(\{v_1, \ldots, v_c\}\) is any orthonormal basis of \(\mathcal{R}\).

The intuition behind this definition is that for any input vectors \(x \in \mathbb{R}^d\), the learned feature space should have a good representation of the standard basis vectors, \(e_1, \ldots, e_d\), to perform well. In particular, these basis vectors should have large projections onto the feature space. The introduction of the representability vector allows us to quantitatively assess the feature space learned by different D-SSL frameworks. Similar definitions and notations have also been used in previous works studying the feature space of SSL [4], [32]. Based on this definition and the above problem setup, we establish the following theorem for D-SSL based on MIM pre-training.

Theorem 1. (Representability of Distributed MIM). Consider a distributed scenario consisting of \(N = \Theta(d^{\frac{1}{20}})\) clients and following the above non-iid setup with \(\tau = d^\frac{1}{5}\) and \(\mu = d^{-\frac{1}{5}}\). For distributed SSL that utilizes Masked Image Modeling (MIM) as the pre-training approach, with a high probability, the following statements hold:

  1. Let \(r_i^M = [r_{i,1}^M, \ldots, r_{i,c}^M]^\intercal\) be the local RV learned on client \(i\), then we have \(1-\frac{O( d^{-\frac{2}{5}} )}{2p( 1-p ) d^{\frac{2}{5}}+O( d^{-\frac{2}{5}})} \leq r_{i,k}^M \leq 1\), where \(i \in [N] \backslash k\).

  2. Let \(\bar{r}^{M}_{Dec} = [\bar{r}_{1}^M, \ldots, \bar{r}_{c}^M]^\intercal\) be the global RV learned through DecL, then we have \(1-\frac{O( d^{-\frac{2}{5}} )}{2p( 1-p ) ( 1-1/|\bar{A}| ) d^{\frac{2}{5}} +O( d^{-\frac{2}{5}} )} \leq \bar{r}^M_{Dec} \leq 1\); while for the global RV \(\bar{r}^{M}_{Fed} = [\bar{\boldsymbol{r}}_{1}^M, \ldots, \bar{\boldsymbol{r}}_{c}^M]^\intercal\) learned through FL, we have \(1-\frac{O( d^{-\frac{2}{5}} )}{2p( 1-p )d^\frac{2}{5} -\Theta ( d^{\frac{7}{20}} ) +O( d^{-\frac{2}{5}} )} \leq \bar{r}^M_{Fed} \leq 1\).

Theorem 1 shows the status of the feature space learned by distributed MIM with different objectives (i.e., local vs decentralized global vs federated global). Note that for each provided representability vector, we find a unique lower bound and a shared upper bound (considering \(\sum^d_{j=1} (e_k^{\intercal}e_j)^2 = 1\)). The distance between the lower and upper bound states how much the learned representation fluctuates in the c unit directions, \(e_1, \ldots, e_c\), associated with data generation. Therefore, the smaller the distance, the less sensitive the representation space is to the non-IID distribution of local datasets on clients. In other words, the corresponding D-SSL is more robust to heterogeneity.

By a similar proof, we derive the representability vectors for D-SSL with CL pre-training as follows.

Theorem 2. (Representability of Distributed CL). Consider the same distributed scenario in Theorem 1. For distributed SSL that utilizes Contrastive Learning (CL) as the pre-training approach, with a high probability, the following statements hold:

  1. Let \(r_i^C = [r_{i,1}^C, \ldots, r_{i,c}^C]^\intercal\) be the local RV, then we have \(1-\frac{O( d^{-\frac{1}{5}} )}{d^{\frac{2}{5}}+O( d^{-\frac{1}{5}})} \leq r_{i,k}^C \leq 1\) and \(1-\frac{O( d^{-\frac{1}{5}} )}{\text{tr}(H) d^{\frac{2}{5}}+O( d^{-\frac{1}{5}})} \leq r_{i,k}^C \leq 1\) for similar and dissimilar augmentations, respectively.

  2. For the global RV \(\bar{r}^{C}_{Dec} = [\bar{r}_{1}^C, \ldots, \bar{r}_{c}^C]^\intercal\) learned through DecL, we have \(1-\frac{O( d^{-\frac{1}{5}} )}{( 1-1 / | \bar{A}| ) d^{\frac{2}{5}} +O( d^{-\frac{1}{5}} )} \leq \bar{r}^C_{Dec} \leq 1\) and \(1-\frac{O( d^{-\frac{1}{5}} )}{\text{tr}(H) ( 1-1 / | \bar{A}| ) d^{\frac{2}{5}} +O( d^{-\frac{1}{5}} )} \leq \bar{r}^C_{Dec} \leq 1\) for similar and dissimilar augmentations; while for \(\bar{r}^{C}_{Fed} = [\bar{\boldsymbol{r}}_{1}^C, \ldots, \bar{\boldsymbol{r}}_{c}^C]^\intercal\) learned through FL, we have \(1-\frac{O( d^{-\frac{1}{5}} )}{d^{\frac{2}{5}}-\Theta ( d^{\frac{7}{20}} ) +O( d^{-\frac{1}{5}} )} \leq \bar{r}_{Fed}^C \leq 1\) and \(1-\frac{O( d^{-\frac{1}{5}} )}{\text{tr}(H) d^{\frac{2}{5}}- \Theta ( d^{\frac{7}{20}} ) +O( d^{-\frac{1}{5}} )} \leq \bar{r}_{Fed}^C \leq 1\).

Theorem 2 demonstrates that the local and global feature spaces learned by distributed CL are distinct from those learned by distributed MIM. However, it is not obvious which feature spaces hold a smaller gap between the lower and upper bounds. To determine which type of pre-training is less sensitive to data heterogeneity, we further compare their global feature spaces learned in DecL and FL framework, respectively, and summarize the results in the following theorem.

4.2 MIM is inherently more Robust than CL with Heterogeneous Data↩︎

Theorem 3. Let \(s = \max_{k \in [c]} \bar{r}_k - \min_{k \in [c]} \bar{r}_k\) be the sensitivity of distributed SSL to heterogeneous data \(x \in \mathbb{R}^d\), measured as the spread of the leading \(c\) coordinates of the learned global representability vector \(\bar{r}\). For any network architecture, distributed SSL satisfies the following property: \(\lim_{d \to \infty} [s^C > s^M]\), where \(s^C\) and \(s^M\) represent the sensitivities of distributed SSL adopting contrastive learning and masked image modeling as the pre-training approach, respectively.

The main intuition for the greater robustness (or smaller sensitivity) of distributed MIM is that CL learns representations from aligning features of the positive pair generated from the original data through data augmentation, whereas MIM aligns features of the reconstructed and the raw data to learn representations. Although the applied augmentation generally does not lead to a change in data labels [8], [20], the output is still a different image. In contrast, the masking operation splits the original image into the masked and unmasked parts, but a portion of the original data is retained in both parts. As a result, CL learns a local representation with greater randomness, and that additional randomness is also biased by local labels. Considering that data heterogeneity already exists among clients, the global representation learned by distributed CL is less uniform than that learned by distributed MIM.

4.3 Impact of the Average Client Connectivity on Non-IID Robustness↩︎

Next, we shift our focus to another dimension that distinguishes D-SSL algorithms and address the question: how does the network architecture affect the robustness of the feature space learned by D-SSL? The tool for solving this question is again the bounds of the representability vector. For the DecL setup where clients directly communicate with their direct neighbors, Theorem 1 and 2 have implicitly shown the answer.

Corollary 1. For any SSL pre-training approaches, if the distributed scenario is fully decentralized (i.e., without a central server), the robustness of distributed SSL against heterogeneous local data improves with the average connectivity \(|\bar{A}|\) between clients in the network.

Corollary 1 also implies that the robustness of D-SSL conducted in a federated setup should be no worse than in a fully decentralized network. Consider the best case of the network topology, where each client can communicate with all other clients in the network. In this case, each client receives a model aggregated by the local models from all clients, which is exactly the global model distributed by the server in the federated setup. We can continue exploring to verify that this intuition is correct. Theoretically, combining Theorem 1, Theorem 2, and Corollary 1, we arrive at another main theorem addressing the question introduced at the beginning of this section.

Theorem 4. For any SSL pre-training paradigms, distributed SSL satisfies the following property: \(\lim_{d \to \infty} [s_{Dec} \geq s_{Fed}]\), where \(s_{Dec} = \max_{k \in [c]}\bar{r}_{Dec}^{(k)} - \min_{k \in [c]}\bar{r}_{Dec}^{(k)}\) denotes the sensitivity of distributed SSL performed in the DecL setup (i.e., clients directly communicate with neighbors), and \(s_{Fed} = \max_{k \in [c]}\bar{r}_{Fed}^{(k)} - \min_{k \in [c]}\bar{r}_{Fed}^{(k)}\) represents the sensitivity of distributed SSL performed in the FL setup (i.e., all clients are indirectly connected through the central server).

This theorem further demonstrates the robustness trade-off between applying SSL in federated and decentralized frameworks. For less concern about the impact of data heterogeneity, we should conduct distributed SSL in a federated setup (often also referred to as federated self-supervised learning [3], [16], [17], [33]). However, the decentralized case is more common in reality, as it is challenging to provide a central server that can be trusted by all clients and has stable communication with them. Then, we can consider increasing the average connectivity between clients to minimize the negative impact of heterogeneous data on training (e.g., identifying under-connected clients and creating additional direct communication links).

5 MAR Loss: An Illustrative Case Study in Enhancing Robustness↩︎

The preceding analysis has addressed the main focus of this paper by establishing theoretical insights into the robustness of different D-SSL frameworks under heterogeneous data. As a further step, we illustrate how these insights can guide a more robust algorithmic design. In particular, our results show that although distributed MIM is fundamentally more robust than CL, its training dynamics are dominated by the client-specific covariance, causing local encoders to drift toward different directions before aggregation gradually mitigates this effect. This observation motivates us to refine the MIM objective with an additional term that explicitly and dynamically promotes consistency between local and global masked representations, which we term MAR loss. The integration of MAR into both federated and decentralized frameworks is summarized in Algorithm 3 and Algorithm 4

Formally, MAR loss augments the MIM objective with an alignment regularization term: \[\label{eq95mar95loss} \begin{align} \mathcal{L}_{MAR} &= \mathbb{E}_{x \sim D_i}\, \mathbb{E}_{x_1, x_2 | x} \Big[ \|f_d(f_e(x_1)) - x_2\|^2 + \gamma_t^{(i)} \cdot \text{A-MMD}(z_i, \bar{z}) \Big], \end{align}\tag{5}\] where \(z_i = f_e(x_1)\) and \(\bar{z}\) denote the local masked and global representations, and \(\gamma_t^{(i)} > 0\) is a dynamic weight for alignment. The alignment regularizer is based on Maximum Mean Discrepancy (MMD), a widely used measure of distributional discrepancy in machine learning [34][36]. MMD compares whether two distributions \(P\) and \(Q\) differ by mapping samples into a reproducing kernel Hilbert space (RKHS) and evaluating differences in their feature means. Typically, MMD adopts a Gaussian kernel \(k(x, x') = \exp(-\|x-x'\|^2 / 2\sigma^2)\).

In MAR, we employ an adaptive version (A-MMD) to compare the feature spaces of local and global representations more robustly. Unlike prior FL works that use vanilla MMD [37][39], A-MMD selects the kernel bandwidth automatically rather than fixing it. Given batches of local and global embeddings of equal size \(B\), A-MMD is computed as: \[\label{eq95A-MMD} \text{A-MMD}(z_i, \bar{z}) = \frac{1}{B(B-1)} \Bigg(\sum_{a \neq b} k(z_{i,a}, z_{i,b}) + \sum_{a \neq b} k(\bar{z}_a, \bar{z}_b)\Bigg) - \frac{2}{B^2}\sum_{a=1}^{B}\sum_{b=1}^{B} k(z_{i,a}, \bar{z}_b),\tag{6}\] with the adaptive kernel defined as \(k(z,z') = exp(-\frac{||z-z'||}{2 (\text{mean}_{a \neq b}||z_a- z_b||)^2})\) . This data-driven choice ensures stability across non-IID clients by scaling the kernel to the observed embedding distribution.

Finally, to balance early-stage consensus and late-stage efficiency, we design the regularization weight \(\gamma_t^{(i)}\) to decay smoothly from \(\gamma_{\max}\) to \(\gamma_{\min}\). We adopt a cosine schedule based on client participation: \[\label{eq95dynamic95gamma} \gamma_t^{(i)} = \gamma_{\min} + (\gamma_{\max} - \gamma_{\min}) \cdot \tfrac{1}{2}\Big(1 + \cos \tfrac{\pi \cdot \omega_t^{(i)}}{\Omega}\Big),\tag{7}\] where \(\omega_t^{(i)}\) counts the number of times client \(i\) has been selected up to round \(t\), and \(\Omega\) controls the decay horizon. In DecL, where all clients participate every round, one can simply set \(\Omega = T\). In FL with partial participation, a practical choice is the expected number of selections per client, or \(T\) as a default. This schedule applies stronger alignment when client divergence is most pronounced, and gradually relaxes toward \(\gamma_{\min}\) as training progresses, ensuring dynamic robustness gains.

6 Experiments↩︎

In this section, we conduct extensive experiments to validate the correctness of our derived theoretical insights and evaluate the effectiveness of the MAR loss in improving the robustness of distributed MIM against data heterogeneity. We first introduce the experimental setup. Then we assess our results in different datasets, model backbones, and distributed settings.

6.1 Experimental Setup↩︎

Datasets and Distributed Simulation. We pre-train our models on the Mini-ImageNet dataset [40], which contains 60,000 images extracted from ImageNet [41]. To simulate a distributed scenario with label non-IIDness, the dataset is partitioned by sampling the class priors of the Dirichlet distribution [42]. More heterogeneous division can be made with a smaller Dirichlet parameter \(\alpha\) during sampling, while the IID case is simulated with a very large \(\alpha\). Besides, we follow prior works to simulate feature heterogeneity by uniformly dividing datasets and applying unique data augmentation for each client [4], [15]. Hence, the local labels are kept the same but features are skewed into different domains before training. Furthermore, to simulate DecL, we use the Erdős-Rényi model [43] to initialize a connected network with the number of clients and the average connectivity as inputs and return the adjacency matrix \(A\). For FL, we additionally assume a central server connecting with all clients. After pre-training, the models’ backbones are fine-tuned on benchmark datasets, including CIFAR-10, CIFAR-100 [44], and ImageNet. The fine-tuning accuracies are used for analysis.

Implementation Details. For our experiments, we use ResNet [18] and Vision Transformer (ViT) [19] as the model architecture. Following the problem setup in theoretical analysis, we select Simsiam [8] and MAE [9] as the representatives of CL and MIM pre-training, respectively. In original works, Simsiam is used to pre-train ResNet models, while MAE is used to pre-train ViTs. We implement two new SSL baselines to show that our theoretical insights apply to any model architecture. One uses Simsiam to pre-train ViTs, and the other one pre-trains ResNet through MAE. Furthermore, we follow the classical distributed algorithms, D-PSGD [45] and FedAvg [12], to implement the DecL and FL frameworks, and then implement our FedMAR and DecMAR algorithms based on these frameworks. All our codes are implemented in Python using the Pytorch framework and executed on a server with 4 \(\text{NVIDIA\textregistered}\) RTX 3090 GPUs. The detailed training setup and server configuration can be found in Appendix 8.2. Our codes are also available at https://github.com/xuanyuLawrence/FedMAR-DecMAR.

6.2 Empirical Study↩︎

Insensitivity Superiority of Distributed MIM. Table 1 compares the impact of data heterogeneity on the pre-training effectiveness between distributed MIM and CL. With highly heterogeneous data, the learned local feature space will be significantly different across clients, resulting in a greater divergence between local and global feature space and a larger drop in the performance compared to the IID setup [3], [16], [33]. Across various datasets and backbone architectures, we observe that distributed MIM consistently exhibits a smaller gap between IID and non-IID settings compared to distributed CL. The experimental results align with Theorem 3, verifying that MIM is less sensitive than CL when handling heterogeneous data in distributed scenarios. To further substantiate this theoretical insight, we also visualize the local and global feature spaces learned by distributed MIM and CL and compute the \(l_2\)-norm weight distance between their local and global models. Please see Appendix 8.3.1 for these external experimental results.

Table 1: Fine-tuning accuracy (\(\%\)) of backbones pre-trained by different D-SSL algorithms. All results provided in this table are the mean of three trials (L/non-IID = Label Non-IID; F/non-IID = Feature Non-IID). The values in brackets denote the gap between IID and non-IID performance.
CIFAR-10 CIFAR-100 ImageNet
2-4 (lr)5-7 (lr)8-10 IID L/non-IID F/non-IID IID L/non-IID F/non-IID IID L/non-IID F/non-IID
Simsiam + CNN 86.03 84.33 (\(\boldsymbol{\downarrow}\)1.70) 84.62 (\(\boldsymbol{\downarrow}\)1.41) 58.91 57.80 (\(\boldsymbol{\downarrow}\)1.11) 57.81 (\(\boldsymbol{\downarrow}\)1.10) 46.74 46.10 (\(\boldsymbol{\downarrow}\)0.64) 46.41 (\(\boldsymbol{\downarrow}\)0.33)
MAE + CNN 87.28 86.97 (\(\boldsymbol{\downarrow}\)0.31) 86.17 (\(\boldsymbol{\downarrow}\)1.11) 57.86 57.77 (\(\boldsymbol{\downarrow}\)0.09) 57.20 (\(\boldsymbol{\downarrow}\)0.66) 45.88 45.87 (\(\boldsymbol{\downarrow}\)0.01) 45.80 (\(\boldsymbol{\downarrow}\)0.08)
Simsiam + ViT 72.32 69.50 (\(\boldsymbol{\downarrow}\)2.82) 70.66 (\(\boldsymbol{\downarrow}\)1.66) 48.60 43.49 (\(\boldsymbol{\downarrow}\)5.11) 43.07 (\(\boldsymbol{\downarrow}\)5.53) 61.97 59.86 (\(\boldsymbol{\downarrow}\)2.11) 59.13 (\(\boldsymbol{\downarrow}\)2.84)
MAE + ViT 69.90 68.20 (\(\boldsymbol{\downarrow}\)1.70) 69.32 (\(\boldsymbol{\downarrow}\)0.58) 50.04 48.95 (\(\boldsymbol{\downarrow}\)1.09) 49.60 (\(\boldsymbol{\downarrow}\)0.44) 62.69 62.25 (\(\boldsymbol{\downarrow}\)0.44) 62.51 (\(\boldsymbol{\downarrow}\)0.18)

3.5pt

Impact of Average Connectivity on Non-IID Robustness. We verify our second insight by setting up decentralized networks with different average connectivity \(|\bar{A}|\). For the same \(|\bar{A}|\), we consider two cases: (1) a general case where the number of neighbors \(|A_i|\) varies across clients, and (2) a uniform case where all clients have the same connectivity, i.e., \(\forall i \in [N], |A_i| =|\bar{A}|\). Additionally, we set up an FL scenario with 20 clients training in parallel per round. Figure 2 (a) shows that Corollary 1 is correct. We can observe that the fine-tuning accuracy of decentralized SSL increases with \(|\bar{A}|\). Moreover, Figure 2 (a) provides empirical evidence for Theorem 4. We find that pre-training in FL is no less robust than in DecL against heterogeneous data. Additional results using alternative consensus matrices for DecL are given in Appendix 8.3.2, and confirm the same robustness ordering.

a

b

Figure 2: (a) Impact of the average connectivity between clients on the non-IID robustness. Models are pre-trained in a network with 20 clients and then fine-tuned on CIFAR-100. The blue line shows the results of DecL, and the orange line shows FL results. (b) Comparison of MAR and MIM loss on robustness to data heterogeneity in federated and decentralized settings..

Effectiveness of MAR loss. To further illustrate the practical relevance of our analysis, we evaluate MAR loss against the standard MIM objective in both FL and DecL frameworks under varying degrees of heterogeneity. Figure 2 (b) shows that, as the level of non-IIDness increases (i.e., the Dirichlet parameter \(\alpha\) decreases from 1 to 0.001), the fine-tuning accuracy of all methods declines. Nevertheless, models pre-trained with MAR loss consistently outperform those trained with the vanilla MIM loss across all non-IID levels. This trend holds in both FL and DecL settings, suggesting that MAR loss can effectively reduce the sensitivity of distributed MIM to heterogeneity.

Besides, to provide a more comprehensive evaluation, we extend the comparison to recent federated SSL baselines. We evaluate the effectiveness of our FedMAR by comparing it against several state-of-the-art (SOTA) federated self-supervised learning (F-SSL) baselines in a non-IID distributed setting. The SOTA baselines involve: 1) FedU [3]: Using the divergence-aware predictor module for dynamic updates within the self-supervised BYOL network [22]; 4) FedEMA [33]: Employing EMA of the global model to adaptively update online networks; 5) Orchestra [16]: Combining clustering algorithms with Federated Learning for better model aggregation. 6) FeatARC [4]: Combing clustering techniques with feature alignment; 7) LDAWA [17]: Smartly aggregating models according to the angular divergence between local models; and 8) Fed\(U^2\) [46]: Optimizing training with the flexible uniform regularizer and efficient unified aggregator. Following prior works [3], [17], we simulate a highly heterogeneous scenario with 100 clients sampled from a Dirichlet distribution with \(\alpha=0.1\). In each round, 5 clients are randomly selected and each conducts 10 epochs of local training for 200 rounds in total.

Since most baselines employ ResNet-18 [18] as the backbone, we first implement FedMAR with ResNet-18 for a direct comparison. As shown in Table 2, FedMAR employed on ResNet-18 achieves higher accuracy on CIFAR-10 and CIFAR-100 while obtaining comparable results on ImageNet. This indicates that MAR loss can provide tangible improvements even when using the same CNN backbone as prior methods. To further examine the generality of MAR, we also evaluate FedMAR with a lightweight Vision Transformer backbone (Tiny-ViT). Importantly, this model has a comparable number of parameters and GFLOPs to ResNet-18, ensuring fairness in comparison. In this setting, FedMAR employed on Tiny-ViT achieves superior performance on all three benchmarks, surpassing CNN-based baselines while maintaining lower computational cost. These results suggest that MAR loss is not limited to convolutional architectures and can be particularly effective when applied to transformer-based models in federated self-supervised learning.

Table 2: Comparison of FedMAR with the state-of-the-art F-SSL methods on the Non-iid version (\(\alpha=0.1\)) under cross-device (\(n=100\)) settings. Each method was pre-trained with Mini-ImageNet Dataset. The table shows the mean fine-tuning accuracy (%) of three trials.
Method Architecture Params GFLOPS CIFAR-10 CIFAR-100 ImageNet
FedU ResNet-18 38.47M 7.40 72.02 38.44 65.10
FedEMA ResNet-18 38.47M 7.40 70.73 40.78 65.24
Orchestra ResNet-18 11.84M 7.31 88.87 70.11 65.02
FeatARC ResNet-18 11.70M 1.83 89.60 64.11 68.17
LDAWA ResNet-18 15.39M 1.83 89.95 68.96 51.43
Fed\(U^2\) ResNet-18 15.39M 1.83 82.39 55.49 45.27
FedMAR(Ours) ResNet-18 22.50M 3.64 92.70 70.82 65.36
FedMAR(Ours) Tiny-ViT 11.60M 0.88 90.03 71.28 75.99

Extended Study on MAR. In addition to the comparative experiments, we also conduct ablation studies on the main components of MAR loss, including the alignment term and its dynamic weighting. The detailed results of these analyses are provided in 8.4.1, and 8.4.2, respectively. The reported results have confirmed that each component contributes to the performance improvement led by MAR loss. Finally, we assess the practical feasibility of MAR by analyzing its privacy concerns and communication overhead. Since MAR communicates only masked embeddings, the additional communication overhead remains modest, and raw data are never shared. Privacy is therefore also preserved through masking and can be further strengthened with differential privacy. A detailed discussion is reported in Appendix 8.5.

7 Conclusion↩︎

In this paper, we investigated the robustness of distributed self-supervised learning (D-SSL) under heterogeneous data. Our theoretical analysis shows that MIM-based frameworks achieve greater robustness than CL-based ones, and that the degree of robustness in decentralized learning is closely tied to the average network connectivity, with federated learning being no less robust than decentralized learning. These findings provide a principled foundation for understanding how algorithmic choices and network structures affect distributed learning with unlabeled and heterogeneous data. Beyond the theory, we also illustrated how such insights can inform practical design. As a case study, we introduced MAR loss, a refinement of the MIM objective with alignment regularization, which serves to demonstrate the applicability of our analysis. Extensive experiments across model architectures and distributed settings validate our theoretical predictions, and further confirm the utility of MAR loss in practice. We hope that our results can serve as a theoretical grounding and guiding framework for future developments in distributed self-supervised learning.

Acknowledgments↩︎

This work is partly supported by the Australian Research Council Linkage Project (Grant No.LP220200893).

8 Appendix↩︎

8.1 Full Pseudocode of D-SSL with MAR loss↩︎

Figure 3: FedMAR Algorithm
Figure 4: DecMAR Algorithm

8.2 Details about Experiment Setup↩︎

In this section, we have provided two tables to present our experiment setup. Table ¿tbl:tab1? shows the experiment details, which include the specific settings for the model architecture, dataset, scenario, and training. Table ¿tbl:tab2? demonstrates the setup of the running environment, including the configuration of our test server.

\begin{table}[h!]

Details
Model Architecture ResNet, Vision Transformer (ViT)
Number of layers in ResNet 18
Number of blocks in ViT 5
Pre-train Method MAE, Simsiam
Pre-train Dataset Mini-ImageNet
Fine-tune Dataset CIFAR-10/100, ImageNet
Non-IID Options (i.e. the value of \(\alpha\)) \(\{1e5 \text{ (IID)}, 1, 0.1, 0.01, 0.001\}\)
Options for the \(\gamma\) used in MAR loss \(\{1, 0.1, 0.01, 0.001\}\)
For Federated Learning (FL):
Number of clients \(100\)
Number of sampled clients per round \(5\)
Number of local training epochs \(2\)
Number of total training rounds \(100\)
For Decentralized Learning (DecL):
Number of clients \(20\)
Options for average connectivity \(3, 5, 10, 20 \text{ (equals to FL)}\)
Number of local training epochs \(1\)
Number of total training rounds \(25\)
Fine-tuning Epochs 50/100 (CIFAR-10/100), 20/100 (ImageNet)
Pre-train Batch Size 128
Fine-tune Batch Size 256 (CIFAR-10/100), 1024 (ImageNet)
Base Learning Rate 1.5e-4
\vskip

-0.1in \end{table}

\begin{table}[h!]

Config Details
Server GPU Count 4
Server GPU Type RTX 3090 (24GB)
Server CPU Type AMD EPYC 7282 16-Core
CUDA 12.4
Framework PyTorch
\vskip

-0.1in \end{table}

8.3 External Experiments↩︎

8.3.1 Feature Space Visualization and Model Difference↩︎

Figure 5: Visualization of the feature space of local and global model in Non-IID setting. Each column stands for a D-SSL framework (i.e., pre-training ViT by Simsiam, pre-training ViT by MAE, and pre-training ViT by MAR). The first row shows the local feature space from client 1, the second row shows the local feature space from client 100, and the last row shows the global feature space.

Besides Table 1 demonstrating the non-IID robustness of distributed CL and MIM by the gap in fine-tuning accuracy, we further explore the differences in their learned features empirically. Specifically, we simulate a heterogeneous setting with 100 clients using a Dirichlet sampling with \(\alpha=0.1\). For each D-SSL framework, we obtain three pre-trained ViT backbones: (1) a global model trained using FL across all clients; and (2) two local models trained solely on data from client 1 and client 100, respectively. To compare their learned feature spaces, we extract the encoder features of each model. These high-dimensional features are first projected to 20 dimensions using principal component analysis (PCA) and then embedded into 2D space using Umap [47] for visualization.

Figure 5 presents the feature of local and global models learned by each D-SSL method. Each column corresponds to one method, while each row shows features from a specific model (client 1, client 100, and the global model). We observe that for distributed MIM methods, the local features are more aligned with each other and also closer to the global features, suggesting more consistent representations across heterogeneous clients. In contrast, distributed CL exhibits greater divergence between local and global features, indicating that it is inherently more sensitive to data heterogeneity.

To provide a more quantitative comparison, we also show the weight differences between local and global models in Table 3. In particular, we compute the layer-wise \(\ell_2\)-norm difference between local and global model weights and report the sum across all layers. The results show that distributed MIM methods (MAE and MAR) yield significantly lower weight distances compared to distributed CL, reinforcing the observation that MIM leads to more stable and consistent model updates in the presence of non-IID data.

Table 3: Weight distance between local and global models learned from different D-SSL methods.
\(l_2\)-Norm Difference SimSiam + ViT MAE + ViT MAR + ViT
local 1 vs local 100 45.37 36.10 35.75
local 1 vs global 40.34 31.57 31.38
local 100 vs global 38.39 31.77 31.25

8.3.2 Effect of Different Consensus Matrices on Robustness Theory↩︎

Table 4: CIFAR-100 Accuracy (%) of decentralized MIM under different consensus matrices. Results are averaged over three test runs.
Method Avg Connectivity \(\approx\) 5 Avg Connectivity \(\approx\) 10
FL (reference) 52.72 52.72
DecL with Data Size Weights 46.62 52.28
DecL with Degree Normalized 45.34 52.08
DecL with Doubly Stochastic 45.22 52.18
DecL with Push Sum 45.19 52.22

This experiment examines whether the robustness findings in Section 4.3 remain valid under different choices of consensus matrices in decentralized learning. The theoretical bounds link robustness to the average connectivity of the network graph, while the average connectivity is closely related to how efficiently information mixes across clients. If various consensus rules produced qualitatively different mixing behavior, they could in principle affect robustness. To test this, we conduct two groups of experiments on decentralized networks with 20 clients under strong non-IID conditions using \(\alpha=0.1\). In the first group, the network has an average connectivity of around 5, while in the second group, connectivity is increased to about 10. Within each group, we pre-train distributed MIM using four commonly adopted consensus schemes, including data size weighting, degree normalized averaging, doubly stochastic matrices, and push sum, and compare all results against a federated learning baseline with the same number of clients. The results in Table 4 show a consistent pattern. When connectivity is low, all decentralized variants suffer a noticeable accuracy loss relative to federated learning, and the specific consensus rule makes only minor differences. When connectivity increases, all decentralized variants recover to a level that is close to the federated baseline yet never surpass it. These findings confirm that the qualitative ordering predicted by the theory persists. The choice of consensus matrix influences only constant factors in mixing but does not overturn the robustness relation that federated learning is at least as robust as decentralized learning.

8.4 Ablation Studies on MAR↩︎

8.4.1 Ablation on Alignment Metric↩︎

Table 5: Evaluation of different alignment metrics for MAR loss on CIFAR-100. We report accuracy (%) under three settings of fixed \(\gamma\): \(1\mathrm{e}{-1}\), \(1\mathrm{e}{-2}\), and \(0\) (degenerate to vanilla MIM).
Metric \(\gamma=1\mathrm{e}{-1}\) \(\gamma=1\mathrm{e}{-2}\) \(\gamma=0\)
Cosine Similarity 51.71 52.47 51.45
Vanilla MMD (\(\sigma=1\)) 51.79 52.12 51.45
A-MMD (median \(\sigma\)) 52.42 54.13 51.45
A-MMD (mean \(\sigma\)) [Ours] 54.09 54.39 51.45

Our MAR loss (Eq. 5 ) involves two key components: the dynamic regularization weight \(\gamma_t\) and the A-MMD distributional penalty used to align local and global representations. To understand their impact, we perform ablation studies on each component. We first evaluate the contribution of the alignment metric.

For baselines, we consider two commonly used choices in prior work: cosine similarity, which has been widely adopted in federated SSL studies for enforcing alignment between local and global feature spaces [4], and vanilla MMD with a fixed kernel bandwidth, which has also been explored in recent federated learning works [37][39]. On top of these, we evaluate our adaptive variant A-MMD, where the kernel bandwidth is chosen automatically based on either the median or mean of pairwise distances. As shown in Table 5, A-MMD consistently outperforms cosine similarity and vanilla MMD across different \(\gamma\) values. Between the two adaptive variants, using the mean of pairwise distances provides slightly better performance, and we adopt this as our default design.

8.4.2 Ablation on Regularization Weight↩︎

Table 6: Evaluation of regularization weight \(\gamma\) for MAR loss on CIFAR-100.
Weight Schedule Acc(%)
\(\gamma = 1\) 51.50
\(\gamma = 1\mathrm{e}{-1}\) 54.09
\(\gamma = 1\mathrm{e}{-2}\) 54.39
\(\gamma = 1\mathrm{e}{-3}\) 53.55
\(\gamma: 1\mathrm{e}{-1} \rightarrow 1\mathrm{e}{-3}\) (cosine decay) 54.91

Next, we analyze the impact of the regularization weight \(\gamma\) by fixing the alignment metric to A-MMD. Results in Table 6 show that using a large weight (\(\gamma=1\)) degrades performance, as the alignment term overwhelms the reconstruction objective. Conversely, very small weights such as \(\gamma=1\mathrm{e}{-3}\) reduce MAR to a near-vanilla MIM objective and fail to deliver sufficient robustness gains. Moderate fixed values such as \(\gamma=1\mathrm{e}{-2}\) and \(\gamma=1\mathrm{e}{-1}\) yield stronger results, but still remain below our proposed dynamic schedule.

Notably, the cosine decay schedule that smoothly decreases \(\gamma\) from \(1\mathrm{e}{-1}\) to \(1\mathrm{e}{-3}\) achieves the best performance (54.91%). This validates our intuition behind dynamic weighting: stronger alignment is most beneficial in the early stage when client divergence is high, while gradually relaxing the weight avoids excessive penalty in later stages. These findings highlight the importance of the dynamic design in MAR loss, which not only achieves higher accuracy but also improves training stability.

8.5 Discussion on Privacy and Communication Overhead of MAR↩︎

When deploying MAR loss in practice, natural concerns arise regarding the potential privacy risks and the additional communication associated with sharing local representations. We provide both quantitative and qualitative analyses below to show that these costs remain modest and manageable.

Privacy considerations. The information communicated by MAR is limited to local representations \(z_i=f_e(x_1)\) derived from the unmasked portion of the input. Because MIM typically adopts a high masking ratio (e.g., 75% in MAE [9]), most raw content remains hidden and the embedding dimensionality is substantially reduced, which mitigates potential leakage. For stronger guarantees, MAR can be further combined with standard Differential Privacy (DP) mechanisms [48], [49] by perturbing embeddings before transmission, e.g., \(z_i \leftarrow f_e(x_1) + \mathcal{N}(0,\sigma^2 I)\) with \(\sigma\) calibrated to satisfy \((\epsilon,\delta)\)-DP.

Communication overhead. In addition to the standard model updates (e.g., gradients or weights), MAR transmits compact masked embeddings computed from the unmasked portion of each input. This is the sole extra payload introduced by MAR. For instance, in the MAE (ViT-B/16) setting on ImageNet with a 75% masking ratio, each image has 196 patches, of which 49 remain visible. With hidden size 768 and batch size 256, this yields about \(49 \times 768 \times 256\) float values (\(\approx 36.8\) MB in float32). By contrast, a full model with 86M parameters is \(\approx 328\) MB, so the additional cost from MAR is only \(\sim\!11\%\) under this configuration. Crucially, in cross-device settings where small batches are common, this extra cost decreases proportionally with the batch size: at \(B{=}128\) it is \(\approx 18\) MB (\(\sim\!5\%\)), at \(B{=}64\) it is \(\approx 9\) MB (\(\sim\!3\%\)), and at \(B{=}32\) it drops to around \(\sim\!1\%\). These calculations indicate that the MAR-induced overhead remains acceptable in realistic deployments. Moreover, MAR is optional: when minimal communication is the overriding priority, one can simply use the standard MIM objective, whose effectiveness is explained by our theory, at zero additional cost. When a small extra cost is acceptable, MAR offers corresponding robustness gains while keeping the overhead low.

8.6 Full proof for Theoretical Analysis↩︎

8.6.1 Formal Assumptions↩︎

To make the theoretical analysis fully transparent and self-contained, we first summarize here all assumptions used in deriving the main results. These assumptions complement the problem setup in Section 3 and reflect the standard modeling choices commonly adopted in theoretical studies of distributed and self-supervised learning.

Assumption 1. (Communication Graph). The distributed system is modeled as a fixed and connected communication graph \(\mathcal{G} = (\mathcal{V}, \mathcal{E})\) with \(N = |\mathcal{V}|\) clients. Each client \(i\) communicates only with its neighborhood \(A_i = \{ j : (i,j)\in\mathcal{E} \} \cup \{i\}\). We assume \(2 \le |A_i| \le N\) for all \(i \in [N]\). The average neighborhood size \(|\bar{A}| = \tfrac{1}{N}\sum_{i=1}^N |A_i|\) is used as a measure of connectivity.

Remark 5. This formulation encompasses decentralized learning on arbitrary connected topologies and federated learning as the fully connected special case (i.e., by the help of the central server, all clients can indirectly communicate with each other so there exists \(|A_i| = N\) for all \(i\in[N]\)).

Assumption 2. (Consensus Weights). During decentralized aggregation, each client \(i\) forms a mixing vector \(w_i = \{w_{ij}\}_{j \in A_i}\) satisfying:

  • \(w_{ij} > 0\) only if \(j \in A_i\) (topology-respecting sparsity);

  • \(\sum_{j \in A_i} w_{ij} = 1\) (row-stochasticity).

Remark 6. The above conditions represent the standard requirements for decentralized model aggregation: each client averages only over its local neighborhood and the mixing vector is row-stochastic. This formulation covers commonly used consensus rules in decentralized optimization, including uniform averaging [12], degree-normalized weights [45], and symmetric doubly-stochastic schemes [13]. Our analysis relies only on these basic structural properties, while more general mixing operators could in principle be incorporated by extending the corresponding aggregation step. Exploring such extensions is an interesting direction for future work, but it is not required for the results presented here.

Assumption 3. (Non-degenerate Embedding). Throughout the analysis, we focus on non-trivial stationary points of the regularized objectives, where the embedding matrix \(W \in \mathbb{R}^{c \times d}\) satisfies \(W \neq 0\) and \(\mathrm{rank}(W) = c\).

Remark 7. The trivial solution \(W = 0\) does not minimize the reconstruction or alignment terms in either the MIM or CL objectives, and corresponds to a representation carrying no information. Therefore, this assumption is generally satisfied in the theoretical analysis of self-supervised learning [4], [32].

Assumption 4. (Independence Local Sampling.) For each client \(i\), the local dataset \(D_i\) consists of \(|D_i|\) independent samples drawn from its local distribution \(\mathcal{D}_i\).

Remark 8. The independence assumption is the minimal condition required for high-probability spectral norm bounds of empirical covariance matrices. It does not alter the established non-IID structure across clients, but ensures that the empirical covariance on each client concentrates around its population counterpart. This is a standard assumption in the theoretical analysis of distributed learning [4], [13].

Assumption 5. (Dissimilar Image Transformation for CL). When the two augmented views \((g_a(x), g_b(x))\) used in CL are generated from dissimilar transformations, we model \(g_b(x)\) by a linear operator \(H \in \mathbb{R}^{d \times d}\) acting on the input space. In the theoretical analysis, \(H\) enters only through the quadratic form \(x^{\top} H x\), and therefore only its symmetric component \(H_{\mathrm{sym}} = (H + H^{\top})/2\) is relevant. Let \(\mathcal{S} = \mathrm{span}\{e_1, \ldots, e_c\}\) denote the class-dependent subspace in the non-IID generative model, and let \(P\) be the orthogonal projection onto \(\mathcal{S}\). We assume that \[\mathrm{tr}(P H_{\mathrm{sym}} P) > 0.\]

Remark 9. The above condition ensures that the transformation \(H\) preserves nontrivial energy on the class-dependent semantic subspace \(\mathcal{S}\). It is a mild requirement and is common to hold in standard contrastive learning augmentations [8], [20], including rotations, flips, translations, crops, blurs, and color jittering. These transformations perturb the input in ways that do not cancel class-discriminative directions, so \(\mathrm{tr}(P H_{\mathrm{sym}} P)\) remains strictly positive in practice.

8.6.2 Learned Representability for Decentralized MIM↩︎

This section provides the full proof of Theorem 1.

Proof. We begin by formulating the representability of local representation. Then, we derive the global representation based on the local feature. Since FL is different from decentralized learning in the updates, we establish the global representation for each distributed framework, respectively.

\(\boldsymbol{For local feature space.}\) According to the alignment-style loss function of MIM shown in Eq.(4 ) and by the definition of Kronecker product, we have

\[\begin{align} \mathcal{L}_{MIM} &= - \mathbb{E}[|(W (x \odot m))^{\intercal}(W(x \odot (1-m)))] + \frac{1}{2}||W^{\intercal}W||^2_F \\ &= - \mathbb{E}[(W (\text{diag} (\text{vec}(x)) \cdot \text{vec}(m)))^{\intercal}(W(\text{diag} (\text{vec}(x)) \cdot \text{vec}( 1-m)))] + \frac{1}{2}||W^{\intercal}W||^2_F. \end{align}\]

Define \[a = \mathrm{diag}(\mathrm{vec}(x))\cdot\mathrm{vec}(m), \qquad b = \mathrm{diag}(\mathrm{vec}(x))\cdot\mathrm{vec}(1-m),\] so that the above loss becomes \[\mathcal{L}_{MIM} = -\mathbb{E}[a^\intercal W^\intercal Wb] + \frac{1}{2}||W^{\intercal}W||^2_F.\] Using the fact that \[\label{eq95gradient95deriviation95start} a^\intercal W^\intercal Wb = \text{tr}(a^\intercal W^\intercal Wb) = \text{tr}( W^\intercal Wba^\intercal) = \text{tr}( Wba^\intercal W^\intercal),\tag{8}\] we obtain \[\frac{\partial}{\partial W}\bigl(a^\intercal W^\intercal Wb\bigr)=\frac{\partial }{\partial W}(\text{tr}( Wba^\intercal W^\intercal))=W(ba^{\intercal}+ab^{\intercal}).\] Together with \[\label{eq95gradient95WTW} \frac{\partial (\frac{1}{2}\|W^{\top}W\| _ {F}^{2})}{\partial W}=2WW^{\intercal}W,\tag{9}\] the gradient of the complete objective becomes \[\label{eq95gradient95deriviation95end} \frac{\partial\mathcal{L} _ {\mathrm{MIM}}}{\partial W}=-W\mathbb{E}\bigl[ba^{\intercal}+ab^{\intercal}\bigr]+2WW^{\intercal}W.\tag{10}\]

Setting the gradient to zero yields \[\label{eq95mim95gradient95zero} W\mathbb{E} \left[ ba^{\intercal} + ab^{\intercal} \right] = 2WW^\intercal W.\tag{11}\] Under Assumption 3, multiplying both sides on the left by the Moore–Penrose pseudoinverse \(W^{+}\) reduces Eq.(11 ) to the stationary condition \[\label{eq95stationary95MIM} \frac{1}{2}\mathbb{E} \left[ ba^{\intercal} + ab^{\intercal} \right] = W^\intercal W.\tag{12}\]

Let \(X_i^M\) represent the left-hand side of this equation. Consider the binary matrix \(m\) used for masking is sampled uniformly from the binomial distribution with a probability \(p\), we establish

\[\begin{align} X_{i}^{M}&= \frac{1}{2}\mathbb{E} [ \mathrm{diag}(\mathrm{vec}(x))\mathrm{vec}(1-m) \mathrm{vec}(m)^{\intercal} \mathrm{diag}(\mathrm{vec}(x))^{\intercal} \\ &\quad + \mathrm{diag}(\mathrm{vec}(x))\mathrm{vec}(m) \mathrm{vec}(1-m)^{\intercal} \mathrm{diag}(\mathrm{vec}(x))^{\intercal}]\\ &=\frac{2p\left( 1-p \right)}{\left| D_i \right|}\sum_{j=1}^{\left| D_i \right|}{\left( \text{diag}\left( \text{vec}\left( x_{i,j} \right) \right) \text{diag}\left( \text{vec}\left( x_{i,j} \right) \right)^{\intercal} \right)}, \end{align}\]

where \(\mathbb{E}_{x \sim D_i} [x x^\intercal] = \frac{1}{\left| D_i \right|}\sum_{j=1}^{\left| D_i \right|}{\left( \text{diag}\left( \text{vec}\left( x_{i,j} \right) \right) \text{diag}\left( \text{vec}\left( x_{i,j} \right) \right)^\intercal \right)}\) denotes the empirical covariance matrix for the learning with local dataset on client \(i\). Based on the setup of data generation in Section 3, we also derive the following expectation of \(X_{i}^{M}\) with \(\tau = d^{\frac{1}{5}}\) and \(\mu = d^{-\frac{1}{5}}\):

\[\label{eq95x95i94M} \begin{align} &\mathbb{E}\left[ X_{i}^{M} \right] = \text{diag}\\ &\Bigg( \underset{N\,\,\text{ter}ms}{\underbrace{2p\left( 1-p \right) \tau ^2+O\left( d^{-\frac{2}{5}} \right) ,\underset{i^{th}\,\,\text{term}}{...,\underbrace{2p\left( 1-p \right) +O\left( d^{-\frac{2}{5}} \right) }},...,\,\,2p\left( 1-p \right) \tau ^2+O\left( d^{-\frac{2}{5}} \right) }}, \\ & \underset{d-N\,\,\text{ter}ms}{\underbrace{O\left( d^{-\frac{2}{5}} \right) ,...,O\left( d^{-\frac{2}{5}} \right) }} \Bigg) \\ &=\text{diag} \bigg( 2p\left( 1-p \right) d^{\frac{2}{5}}+O\left( d^{-\frac{2}{5}} \right) ,...,2p\left( 1-p \right) +O\left( d^{-\frac{2}{5}} \right) , \\ &\quad\quad\quad\quad ..., 2p\left( 1-p \right) d^{\frac{2}{5}}+O\left( d^{-\frac{2}{5}} \right) ,...,O\left( d^{-\frac{2}{5}} \right) \bigg) \end{align}\tag{13}\]

Next, consider the fact that up to a positive scaling and an additive constant, the regularized MIM objective can be rewritten as the Frobenius-norm objective \(\mathcal{L}(W) = \lVert X_{i}^{M}-W^{\intercal}W \rVert _{F}^{2}.\) Thus, minimizing \(\mathcal{L}_{\mathrm{MIM}}\) solves the Frobenius-norm best rank-\(c\) approximation problem for \(X_i^M\). According to the Eckart-Young-Mirsky theorem [50], we notice that the row span of the optimal \(W \in \mathbb{R}^{c \times d}\) is the span of the eigenvectors corresponding to the first \(c\) eigenvalues of \(X_i^M\). Denoting the set of orthonormal eigenvectors of \(X_i^M\) as \(\left\{ v_{i,1}^M,...,v_{i,d}^M \right\}\), we have \(X_i^M =\sum_{j=1}^d{\lambda _{i,j}v_{i,j}^{M}}(v_{i,j}^{M})^{\intercal}\), where \(\lambda_{i,j} := \lambda_j (X_i^M)\) is the j-th largest eigenvalue of \(X_i^M\). Therefore, the inequality below is satisfied:

\[\label{eq95inequality95x95i94M} \begin{align} e_{k}^{\intercal}X_{i}^{M}e_k &= e_{k}^{\intercal} \left (\sum_{j=1}^d{\lambda _{i,j}v_{i,j}^{M}(v_{i,j}^{M})^{\intercal}} \right) e_{k} \\ &= \sum_{j=1}^d \lambda _{i,j} ({e_{k}^{\intercal} v_{i,j}^{M}})^2 \\ &\leq \lambda _{i,1}^{M}\sum_{j=1}^d ({e_{k}^{\intercal} v_{i,j}^{M}})^2, \end{align}\tag{14}\]

for any \(e_k\) with \(k \in \left[ N \right] \backslash \{i\}\). On the other hand, under the data construction described in Section 3.2, the number of samples on each client equals to the sum of the samples from frequent classes and the rare class. Since each of the two frequent classes grows in polynomials of \(d\), while the amount of data from the rare class is \(O(d^{\alpha})\) with \(\alpha \in (0,1)\), the local sample size satisfies \(|D_i|=\Theta(d^{\beta})\) with \(\beta \geq 1\). Based on this sufficiently large sample size and Assumption 4, the matrix concentration bounds [51] implies that the spectral norm satisfies \(\lVert X_{i}^{M}-\mathbb{E}\left[ X_{i}^{M} \right] \rVert _2\le O\left( d^{-\frac{2}{5}} \right)\) with probability at least \(1-\frac{1}{2}e^{-d^\frac{1}{10}}\). Building on Weyl’s inequality, we obtain that with high probability,

\[\label{M:3} \begin{align} \left| \lambda _{i,k}^{M}-\lambda _k\mathbb{E}\left[ X_{i}^{M} \right] \right|\le \lVert X_{i}^{M}-\mathbb{E}\left[ X_{i}^{M} \right] \rVert _2\le O\left( d^{-\frac{2}{5}} \right). \end{align}\tag{15}\]

By combining Eqs.(13 ), (14 ) and (15 ), we can derive the below lower bound for \(e_{k}^{\intercal}X_i^M e_k\):

\[\label{eq95exe95M951} \begin{align} &e_{k}^{\intercal}X_{i}^{M}e_k=e_{k}^{\intercal}\mathbb{E}\left[ X_{i}^{M} \right] e_k+e_{k}^{\intercal}\left[ X_{i}^{M}-\mathbb{E}\left[ X_{i}^{M} \right] \right] e_k \\ &\ge 2p\left( 1-p \right) d^{\frac{2}{5}}+O\left( d^{-\frac{2}{5}} \right) -\lVert X_{i}^{M}-\mathbb{E}\left[ X_{i}^{M} \right] \rVert \\ &\ge 2p\left( 1-p \right) d^{\frac{2}{5}}-O\left( d^{-\frac{2}{5}} \right), \end{align}\tag{16}\]

which is led by the fact that \(\lVert X \rVert _{\max}\le \lVert X \rVert\) for symmetric \(X\). Likewise, we prove the upper bound as follows:

\[\label{M:8} \begin{align} &e_{k}^{\intercal}X_{i}^{M}e_k=e_{k}^{\intercal}\mathbb{E}\left[ X_{i}^{M} \right] e_k+e_{k}^{\intercal}\left[ X_{i}^{M}-\mathbb{E}\left[ X_{i}^{M} \right] \right] e_k \\ &\le 2p\left( 1-p \right) d^{\frac{2}{5}}+O\left( d^{-\frac{2}{5}} \right) +\lVert X_{i}^{M}-\mathbb{E}\left[ X_{i}^{M} \right] \rVert \\ &\le 2p\left( 1-p \right) d^{\frac{2}{5}}+O\left( d^{-\frac{2}{5}} \right). \end{align}\tag{17}\]

Moreover, we notice from Eqs.(13 ) and (14 ) that the below statements hold for \(\lambda _{i,1}^{M}\):

\[\label{eq95lambda95M} \begin{align} &\lambda _{i,1}^{M} \ge \lambda _1\left( \mathbb{E}\left[ X_{i}^{M} \right] \right) -O\left( d^{-\frac{2}{5}} \right) \ge 2p\left( 1-p \right) d^{\frac{2}{5}}-O\left( d^{-\frac{2}{5}} \right) \\ & \lambda _{i,1}^{M} \le \lambda _1\left( \mathbb{E}\left[ X_{i}^{M} \right] \right) +O\left( d^{-\frac{2}{5}} \right) =2p\left( 1-p \right) d^{\frac{2}{5}}+O\left( d^{-\frac{2}{5}} \right). \end{align}\tag{18}\]

With Eqs.(16 ) - (18 ), we further establish

\[\begin{align} &\sum_{j=1}^d{ ({e_{k}^{\intercal} v_{j}^{M}})^2 }\ge \frac{2p\left( 1-p \right) d^{\frac{2}{5}}-O\left( d^{-\frac{2}{5}} \right)}{2p\left( 1-p \right) d^{\frac{2}{5}}+O\left( d^{-\frac{2}{5}} \right)} \\ &= \frac{2p\left( 1-p \right) d^{\frac{2}{5}}+O\left( d^{-\frac{2}{5}} \right)}{2p\left( 1-p \right) d^{\frac{2}{5}}+O\left( d^{-\frac{2}{5}} \right)}-\frac{2O\left( d^{-\frac{2}{5}} \right)}{2p\left( 1-p \right) d^{\frac{2}{5}}+O\left( d^{-\frac{2}{5}} \right)} \\ &=1-\frac{O\left( d^{-\frac{2}{5}} \right)}{2p\left( 1-p \right) d^{\frac{2}{5}}+O\left( d^{-\frac{2}{5}} \right)}. \end{align}\]

This completes the proof for local representation.

For global feature space. Since the local goal can be equivalently re-formulated as \(\lVert X_{i}^{M}-W^{\intercal}W \rVert _{F}^{2}\), by Assumptions 1 and 2, we re-write the global goal of D-SSL for DecL framework (shown in Eq.(1 )) as \[\label{M:12} \begin{align} \underset{W}{\min}\frac{1}{N}\sum_{i\in \left[ N \right]}\frac{1}{\left| A_i \right|}{\sum_{j\in A_i}{\lVert X_{j}^{M}-W^{\intercal}W \rVert _{F}^{2}}}. \end{align}\tag{19}\]

Note that the following function holds the same minimizer as Eq.(19 ): \[\label{M:13} \begin{align} & \underset{W}{\min} \lVert \frac{1}{N} \sum_{i\in \left[ N \right]}\frac{1}{\left| A_i \right|}{\sum_{j\in A_i}{X_{j}^{M}-W^{\intercal}W}} \rVert _{F}^{2} \\ &= \underset{W}{\min} \lVert \frac{1}{N} \sum_{i\in \left[ N \right]}{\overline{X_{i}^{M}}}-W^{\intercal}W \rVert _{F}^{2} \\ &= \underset{W}{\min} \lVert \overline{X^M}-W^{\intercal}W \rVert _{F}^{2}, \end{align}\tag{20}\]

where \(\overline{X_{i}^{M}} = \sum_{j\in A_i} \frac{1}{\left| A_i \right|} X_{j}^{M}\) denotes the empirical covariance matrix for training with the local datasets across the local datasets on client \(i\) and its neighbors. So, finding the optimal \(W\) for DecL is equivalent to solving Eq.(20 ). Following the derivation of Eq.(13 ) and linearity of expectation, we establish \[\label{eq95x95i95M95decl} \begin{align} &\mathbb{E}\left( \overline{X_{i}^{M}} \right) = \text{diag} \\ &\bigg( \underset{N\,\,\text{terms}}{\underbrace{...,\underset{j \in A_i \backslash i}{\underbrace{2p\left( 1-p \right) \left( \left( 1-\frac{1}{\left| A_i \right|} \right) d^{\frac{2}{5}}+\frac{1}{\left| A_i \right|} \right) +O\left( d^{-\frac{2}{5}} \right) }},...,\underset{i^{th} \text{term}}{\underbrace{2p\left( 1-p \right) d^{\frac{2}{5}}+O\left( d^{-\frac{2}{5}} \right) }},...,}}\,\, \\ &\quad \underset{d-N\,\,\text{terms}}{\underbrace{O\left( d^{-\frac{2}{5}} \right) ,...,O\left( d^{-\frac{2}{5}} \right) }} \bigg), \end{align}\tag{21}\] where we prove with the fact that \[\begin{align} &\frac{\left( \left| A_i \right|-1 \right) 2p\left( 1-p \right) d^{\frac{2}{5}}+2p\left( 1-p \right) +\left| A_i \right|O\left( d^{-\frac{2}{5}} \right)}{\left| A_i \right|} \\ &=\frac{\left( \left| A_i \right|-1 \right) 2p\left( 1-p \right) d^{\frac{2}{5}}+2p\left( 1-p \right)}{\left| A_i \right|}+O\left( d^{-\frac{2}{5}} \right) \\ &=2p\left( 1-p \right) \left( 1-\frac{1}{\left| A_i \right|} \right) d^{\frac{2}{5}}+2p\left( 1-p \right) \frac{1}{\left| A_i \right|}+O\left( d^{-\frac{2}{5}} \right) \\ &=2p\left( 1-p \right) \left( \left( 1-\frac{1}{\left| A_i \right|} \right) d^{\frac{2}{5}}+\frac{1}{\left| A_i \right|} \right) +O\left( d^{-\frac{2}{5}} \right). \end{align}\]

With Eq.(21 ), we can also have

\[\begin{align} &\mathbb{E} \left( \overline{X^M} \right) = \text{diag} \\ &\bigg( \underset{N\,\,terms}{\underbrace{2p\left( 1-p \right) \left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} +O\left( d^{-\frac{9}{20}} \right) ,...,2p\left( 1-p \right) \left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} +O\left( d^{-\frac{9}{20}} \right) }}, \\ &\quad ...,O\left( d^{-\frac{2}{5}} \right) \bigg) \end{align}\] where we consider \(\frac{1}{N}\sum_{i=1}^N\frac{1}{\left| A_i \right|} = \left| \bar{A} \right|\) and the fact that \[\begin{align} &\frac{\sum_{i=1}^N{\left( 2p\left( 1-p \right) \left( \left( 1-\frac{1}{\left| A_i \right|} \right) d^{\frac{2}{5}}+\frac{1}{\left| A_i \right|} \right) +O\left( d^{-\frac{2}{5}} \right) \right)}}{N} \\ &= 2p\left( 1-p \right) \left( \left( 1-\frac{1}{N}\sum_{i=1}^N\frac{1}{\left| A_i \right|} \right) d^{\frac{2}{5}}+\frac{1}{N}\sum_{i=1}^N\frac{1}{\left| A_i \right|} \right) +O\left( d^{-\frac{2}{5}} \right) \\ &= 2p\left( 1-p \right) \left( \left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} + \frac{1}{\left| \bar{A} \right|} \right) +O\left( d^{-\frac{2}{6}} \right) \\ &=2p\left( 1-p \right) \left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} +O\left( d^{-\frac{2}{5}} \right). \end{align}\]

Through similar proof from Eq.(16 ) to Eq.(18 ), we prove that the following statements hold for all \(i \in [N]\):

\[\begin{align} & e_{k}^{\intercal}\overline{X^M}e_k\ge 2p\left( 1-p \right) \left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} -O\left( d^{-\frac{2}{5}} \right) \\ & e_{k}^{\intercal}\overline{X^M}e_k\le 2p\left( 1-p \right) \left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} +O\left( d^{-\frac{2}{5}} \right) \end{align}\] \[\begin{align} &\lambda _{i,1}^{M}\ge \lambda _1\left( \mathbb{E}\left[ \overline{X^M} \right] \right) +O\left( d^{-\frac{2}{5}} \right) =2p\left( 1-p \right) \left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} -O\left( d^{-\frac{2}{5}} \right) \\ &\lambda _{i,1}^{M}\le \lambda _1\left( \mathbb{E}\left[ \overline{X^M} \right] \right) +O\left( d^{-\frac{2}{5}} \right) =2p\left( 1-p \right) \left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} +O\left( d^{-\frac{2}{5}} \right), \end{align}\]

which then implies:

\[\label{M441} \begin{align} &\sum_{j=1}^d{ ({e_{k}^{\intercal} \bar{v}_{j}^{M}})^2}\ge \frac{2p\left( 1-p \right) \left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} -O\left( d^{-\frac{2}{5}} \right)}{2p\left( 1-p \right) \left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} +O\left( d^{-\frac{2}{5}} \right)} \\ &=\frac{2p\left( 1-p \right) \left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} +O\left( d^{-\frac{2}{5}} \right)}{2p\left( 1-p \right)\left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} +O\left( d^{-\frac{2}{5}} \right)}-\frac{2O\left( d^{-\frac{2}{5}} \right)}{2p\left( 1-p \right) \left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} +O\left( d^{-\frac{2}{5}} \right)} \\ &=1-\frac{O\left( d^{-\frac{2}{5}} \right)}{2p\left( 1-p \right) \left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} +O\left( d^{-\frac{2}{5}} \right)}. \end{align}\tag{22}\]

The proof for the global featured space learned in the decentralized learning framework has been completed. Next, consider federated learning (FL) as a special case of decentralized learning with \(\forall i \in [N], \left| A_i \right|=N\). The global of FL is thus: \[\begin{align} \underset{W}{\min}\frac{1}{N}\sum_{i\in \left[ N \right]}{{\lVert X_{i}^{M}-W^{\intercal}W \rVert _{F}^{2}}}. \end{align}\]

This is similar to solving \[\begin{align} \underset{W}{\min}{{\lVert \overline{X^{M}}-W^{\intercal}W \rVert _{F}^{2}}}, \end{align}\]

where \(\overline{X^{M}} := \frac{1}{N}\sum_{i\in \left[ N \right]} X_{i}^{M}\) denotes the empirical covariance matrix for learning with the global dataset. Then, we derive \[\label{FY-fir} \begin{align} \mathbb{E} \left( \overline{X^{M}} \right) &=\text{diag} \bigg( 2p\left( 1-p \right) d^{\frac{2}{5}}-\varTheta \left( d^{\frac{7}{20}} \right) +O\left( d^{-\frac{2}{5}} \right) ,..., \\ &\quad 2p\left( 1-p \right) d^{\frac{2}{5}}-\varTheta \left( d^{\frac{7}{20}} \right) +O\left( d^{-\frac{2}{5}} \right) ,...O\left( d^{-\frac{2}{5}} \right) \bigg) \end{align}\tag{23}\] where we adopt \(N = \varTheta(d^{\frac{1}{20}})\) have used the fact that \[\begin{align} &\frac{\left( N-1 \right) 2p\left( 1-p \right) d^{\frac{2}{5}}+2p\left( 1-p \right) +NO\left( d^{-\frac{2}{5}} \right)}{N} \\ &=\frac{\left( \varTheta \left( d^{\frac{1}{20}} \right) -1 \right) 2p\left( 1-p \right) d^{\frac{2}{5}}+2p\left( 1-p \right)}{\varTheta \left( d^{\frac{1}{20}} \right)}+O\left( d^{-\frac{2}{5}} \right) \\ &=2p\left( 1-p \right) \left( 1-\varTheta \left( d^{-\frac{1}{20}} \right) \right) d^{\frac{2}{5}}+\varTheta \left( d^{-\frac{1}{20}} \right) +O\left( d^{-\frac{2}{5}} \right) \\ &=2p\left( 1-p \right) d^{\frac{2}{5}}-\varTheta \left( d^{\frac{7}{20}} \right) +O\left( d^{-\frac{2}{5}} \right). \end{align}\] Again, by similar arguments from Eq.(16 ) to Eq.(18 ), we further prove \[\label{FY-end} \begin{align} &\sum_{j=1}^d{({e_{k}^{\intercal} \bar{v}_{j}^{M}})^2}\ge \frac{2p\left( 1-p \right) d^{\frac{2}{5}}-\varTheta \left( d^{\frac{7}{20}} \right) -O\left( d^{-\frac{2}{5}} \right)}{2p\left( 1-p \right) d^{\frac{2}{5}}-\varTheta \left( d^{\frac{7}{20}} \right) +O\left( d^{-\frac{2}{5}} \right)} \\ &= \frac{2p\left( 1-p \right) d^{\frac{2}{5}}-\varTheta \left( d^{\frac{7}{20}} \right) +O\left( d^{-\frac{2}{5}} \right)}{2p\left( 1-p \right) d^{\frac{2}{5}}-\varTheta \left( d^{\frac{7}{20}} \right) +O\left( d^{-\frac{2}{5}} \right)}-\frac{2O\left( d^{-\frac{2}{5}} \right)}{p\left( 1-p \right) d^{\frac{2}{5}}-\varTheta \left( d^{\frac{7}{20}} \right) +O\left( d^{-\frac{2}{5}} \right)} \\ &=1-\frac{O\left( d^{-\frac{2}{5}} \right)}{2p\left( 1-p \right)d^{\frac{2}{5}} -\varTheta \left( d^{\frac{7}{20}} \right) +O\left( d^{-\frac{2}{5}} \right)}, \end{align}\tag{24}\]

which completes the proof of this theorem. ◻

8.6.3 Learned Representability for decentralized contrastive learning↩︎

This section provides the full proof of Theorem 2.

Lemma 1. (Representability of Distributed CL under Similar Augmentations). Consider the same distributed scenario in Theorem 1. For distributed SSL that utilizes Contrastive Learning (CL) in pre-training and generate positive pairs through similar augmentations, with a high probability, the following statements hold:

  1. Let \(r_i^C = [r_{i,1}^C, \ldots, r_{i,c}^C]^\intercal\) be the local RV learned on client \(i\). If positive pairs are generated by similar augmentations, we have \(1-\frac{O( d^{-\frac{1}{5}} )}{d^{\frac{2}{5}}+O( d^{-\frac{1}{5}})} \leq r_{i,k}^C \leq 1\), where \(i \in [N] \backslash k\).

  2. Let \(\bar{r}^{C}_{Dec} = [\bar{r}_{1}^C, \ldots, \bar{r}_{c}^C]^\intercal\) be the RV learned through the global objective of DecL framework, then we have \(1-\frac{O( d^{-\frac{1}{5}} )}{( 1-\frac{1}{| \bar{A}|} ) d^{\frac{2}{5}} +O( d^{-\frac{1}{5}} )} \leq \bar{r}^C \leq 1\).

  3. Let \(\bar{r}^{M}_{Fed} = [\bar{\boldsymbol{r}}_{1}^M, \ldots, \bar{\boldsymbol{r}}_{c}^M]^\intercal\) be the RV learned through the global objective of FL framework, we have \(1-\frac{O( d^{-\frac{1}{5}} )}{d^{\frac{2}{5}}-\Theta ( d^{\frac{7}{20}} ) +O( d^{-\frac{1}{5}} )} \leq \bar{r}_{Fed}^C \leq 1\).

Proof. Following the proof in 8.6.2, we first discuss local representability learned by distributed contrastive learning and then derive the global representation based on these local features. Since federated learning differs from decentralized learning in terms of updates, we construct separate global representations for each distributed framework.

\(\boldsymbol{For local feature space.}\) Let \(a = x+\xi\) and \(b = x+\xi'\). Based on the loss function of contrastive learning (CL) shown in Section 3.2, we obtain \[\begin{align} \mathcal{L}_{CL} &= -\mathbb{E}_{x \sim D_i} [(W(x+\xi))^{\intercal}(W(x+\xi'))] + \frac{1}{2}||W^{\intercal}W||^2_F \\ &= -\mathbb{E}_{x \sim D_i} [a^{\intercal}W^{\intercal}Wb] + \frac{1}{2}||W^{\intercal}W||^2_F. \end{align}\] By the same derivation between Eq.(8 )-Eq.(10 ), the gradient of the above function is \[\label{eq95gradient95CL95leftab} \frac{\partial\mathcal{L} _ {\mathrm{CL}}}{\partial W}=-W\mathbb{E}\bigl[(x+\xi')(x+\xi)^{\intercal}+(x+\xi)(x+\xi')^{\intercal}\bigr]+2WW^{\intercal}W.\tag{25}\]

To find the minimizer of \(\mathcal{L}_{CL}\), we solve for \[-W\mathbb{E}\bigl[(x+\xi')(x+\xi)^{\intercal}+(x+\xi)(x+\xi')^{\intercal}\bigr]+2WW^{\intercal}W = 0.\] Under Assumption 3, it leads to \[\frac{1}{2}\mathbb{E}\bigl[2xx^{\intercal}+x\xi^{\intercal}+\xi'x^{\intercal} +x(\xi')^{\intercal} + \xi x^{\intercal} + \xi'\xi^{\intercal} + \xi(\xi')^{\intercal} \bigr] = W^{\intercal}W.\] Similarly, let \(X_{i}^{C}\) represent the left-hand side of this equation. We can then establish \[\begin{align} X_{i}^{C}=\frac{1}{2\left| D_i \right|}\sum_{j=1}^{\left| D_i \right|}\left( 2x_{i,j}x_{i,j}^{\intercal}+x_{i,j}\xi_{i,j}^{\intercal}+\xi'_{i,j}x_{i,j}^{\intercal} +x_{i,j}(\xi')^{\intercal}_{i,j} + \xi_{i,j} x^{\intercal}_{i,j} + \xi'_{i,j}\xi^{\intercal}_{i,j} + \xi_{i,j}(\xi')^{\intercal}_{i,j} \right), \end{align}\] where \(X_{i}^{C}\) represents the empirical covariance matrix for the local feature learned by CL on client \(i\). Considering that \(\xi, \xi' \sim \mathcal{N}(0,I)\), we also derive the following expectation of \(X_{i}^{C}\): \[\begin{align} &\mathbb{E}\left[ X_{i}^{C} \right] = \text{diag}\\ & \left( \underset{N\;\text{terms}}{\underbrace{\tau^2 + O\left( d^{-\frac{2}{5}} \right) + 2O\left( d^{-\frac{1}{5}} \right), ..., \underset{i^{\text{th}}\;\text{term}}{\underbrace{1 + O\left( d^{-\frac{2}{5}} \right) + 2O\left( d^{-\frac{1}{5}} \right)}}, ..., \tau^2 + O\left( d^{-\frac{2}{5}} \right) + 2O\left( d^{-\frac{1}{5}} \right)}}, \right.\\ &\left.\quad \dots \underset{d-N\;\text{terms}}{\underbrace{2O\left( d^{-\frac{1}{5}} \right) + O\left( d^{-\frac{2}{5}} \right), ..., 2O\left( d^{-\frac{1}{5}} \right) + O\left( d^{-\frac{2}{5}} \right)}} \right)\\ &= \text{diag}\left( d^{\frac{2}{5}} + O\left( d^{-\frac{1}{5}} \right), ..., 1 + O\left( d^{-\frac{1}{5}} \right), ..., d^{\frac{2}{5}} + O\left( d^{-\frac{1}{5}} \right), ..., O\left( d^{-\frac{1}{5}} \right) \right) \end{align}\]

Next, using similar arguments from Eqs. (14 ) to (18 ), we arrive at the below results: \[\begin{align} & d^{\frac{2}{5}}-O\left( d^{-\frac{1}{5}} \right) \le e_{k}^{\intercal}X_{i}^{C}e_k \le d^{\frac{2}{5}}+O\left( d^{-\frac{1}{5}} \right) \\ & d^{\frac{2}{5}}-O\left( d^{-\frac{1}{5}} \right) \le \lambda _{i,1}^{C} \le d^{\frac{2}{5}}+O\left( d^{-\frac{1}{5}} \right). \end{align}\]

With these inequalities, we derive \[\begin{align} \sum_{j=1}^d{({e_{k}^{\intercal} v_{j}^{C}})^2} &\ge \frac{d^{\frac{2}{5}}-O\left( d^{-\frac{1}{5}} \right)}{d^{\frac{2}{5}}+O\left( d^{-\frac{1}{5}} \right)} \\ &= 1-\frac{O\left( d^{-\frac{1}{5}} \right)}{d^{\frac{2}{5}}+O\left( d^{-\frac{1}{5}} \right)}, \end{align}\]

which completes the proof of the local part.

For global feature space. Since the local goal can be equivalently reformulated as \(\lVert X_{i}^{C}-W^{\intercal}W \rVert _{F}^{2}\), by Assumptions 1 and 2, the global goal of distributed contrastive learning in the decentralized learning (DecL) framework is given by \[\begin{align} \underset{W}{\min}\sum_{i\in \left[ N \right]}{\frac{1}{N}\sum_{j\in A_i}{\frac{1}{\left| A_i \right|}\lVert X_{j}^{C}-W^{\intercal}W \rVert _{F}^{2}}}. \end{align}\]

Furthermore, we find this is equivalent to solving \[\begin{align} &\quad \underset{W}{\min} \lVert \frac{1}{N}\sum_{i\in \left[ N \right]}\frac{1}{\left| A_i \right|}{\sum_{j\in A_i}{ X_{j}^{C}-W^{\intercal}W}} \rVert _{F}^{2} \\ &=\underset{W}{\min} \lVert \frac{1}{N} \sum_{i\in \left[ N \right]}{\overline{X_{i}^{C}}}-W^{\intercal}W \rVert _{F}^{2} \\ &=\underset{W}{\min} \lVert \overline{X^C}-W^{\intercal}W \rVert _{F}^{2}. \end{align}\]

Again, using similar arguments from Eq. (21 ) to Eq. (22 ), we further establish \[\label{C441} \begin{align} &\sum_{k=1}^d{({e_{k}^{\intercal} \bar{v}_{j}^{C}})^2 }\ge \frac{\left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} -O\left( d^{-\frac{1}{5}} \right)}{\left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} +O\left( d^{-\frac{1}{5}} \right)} \\ &=1-\frac{O\left( d^{-\frac{1}{5}} \right)}{\left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} +O\left( d^{-\frac{1}{5}} \right)}. \end{align}\tag{26}\]

The proof for the global feature space learned in the DecL framework has been completed. Next, denote federated learning (FL) as a special case of decentralized learning with \(\forall i, \left| A_i \right|=N\). The global objective of FL is expressed as \[\begin{align} \underset{W}{\min}{{\lVert \overline{X^{C}}-W^{\intercal}W \rVert _{F}^{2}}}. \end{align}\]

where we denote \(\overline{X^{C}} := \frac{1}{N}\sum_{i\in \left[ N \right]}X_i^C\). By similar arguments from Eq. (23 ) to Eq. (24 ), we have \[\label{C442} \begin{align} &\sum_{j=1}^d{({e_{k}^{\intercal} \bar{v}_{j}^{C}})^2}\ge \frac{d^{\frac{2}{5}}-\varTheta \left( d^{\frac{7}{20}} \right) -O\left( d^{-\frac{1}{5}} \right)}{d^{\frac{2}{5}}-\varTheta \left( d^{\frac{7}{20}} \right) +O\left( d^{-\frac{1}{5}} \right)} \\ &=\frac{d^{\frac{2}{5}}-\varTheta \left( d^{\frac{7}{20}} \right) +O\left( d^{-\frac{1}{5}} \right)}{d^{\frac{2}{5}}-\varTheta \left( d^{\frac{7}{20}} \right) +O\left( d^{-\frac{1}{5}} \right)}-\frac{2O\left( d^{-\frac{1}{5}} \right)}{d^{\frac{2}{5}}-\varTheta \left( d^{\frac{7}{20}} \right) +O\left( d^{-\frac{1}{5}} \right)} \\ &=1-\frac{O\left( d^{-\frac{1}{5}} \right)}{d^{\frac{2}{5}}-\varTheta \left( d^{\frac{7}{20}} \right) +O\left( d^{-\frac{1}{5}} \right)}, \end{align}\tag{27}\]

which completes the proof of this lemma. ◻

Then, we start to prove Theorem 2 as follows.

Proof. Lemma 1 demonstrates the learned local and global representations of distributed CL when positive pairs are generated by similar augmentations. For the other case using dissimilar augmentations, we adopt a similar process to derive the local and global representations.

\(\boldsymbol{For local feature space.}\) Define \(a = x+\xi\) and \(b = Hx\). According to the loss function of contrastive learning (CL) with dissimilar augmentations in Section 3.2, we have \[\begin{align} \mathcal{L}_{CL}' &= -\mathbb{E}_{x \sim D} \left[ \left( W(x + \xi) \right)^{\intercal} (WHx) \right] + \frac{1}{2} \left\| W^{\intercal} W \right\|_F^2 \\ &= -\mathbb{E} \left[ a^\intercal W^\intercal W b \right] + \frac{1}{2} \left\| W^\intercal W \right\|_F^2. \end{align}\]

The minimizer of this loss function is \[\begin{align} \frac{\partial \mathcal{L}_{CL}'}{\partial W}=-W\mathbb{E}\left[ Hx(x+\xi)^{\intercal}+(x+\xi)x^{\intercal}H^{\intercal} \right] +2WW^{\intercal}W=0. \end{align}\]

Rearranging it under Assumption 3 derives \[\frac{1}{2}\mathbb{E}\left[ Hx(x+\xi)^{\intercal}+(x+\xi)x^{\intercal}H^{\intercal} \right] = W^{\intercal}W.\]

Let \(X_i^{C'}\) denote the left-hand side of the above equation. Hence, \[\begin{align} X_{i}^{C'} &=\frac{1}{2}\mathbb{E}\left[ Hx(x+\xi)^{\intercal}+(x+\xi)x^{\intercal}H^{\intercal} \right] \\ &=\frac{1}{2\left| D_i \right|}\sum_{j=1}^{\left| D_i \right|}\left( Hx_{i,j}x_{i,j}^{\intercal} +Hx_{i,j}\xi_{i,j}^{\intercal} + x_{i,j}x^{\intercal}_{i,j}H^{\intercal}+ \xi_{i,j}x^{\intercal}_{i,j}H^{\intercal}\right). \end{align}\]

Similarly, based on the formulation that \(\xi \sim \mathcal{N}(0, I)\), \(\tau = d^{\frac{1}{5}}\) and \(\mu = d^{-\frac{1}{5}}\), the expectation of \(X_{i}^{C'}\) can be written as \[\begin{align} & \mathbb{E}(X^{C'}_i) = \\ &\text{diag}\bigg( \underset{N\;\text{terms}}{\underbrace{\text{tr}(H)\tau^2 + O\left(d^{-\frac{2}{5}}\right),\, \ldots,\, \underset{i^{\text{th}}\;\text{term}}{\underbrace{\text{tr}(H) + O\left(d^{-\frac{2}{5}}\right),}}\, \ldots,\, \text{tr}(H)\tau^2 + O\left(d^{-\frac{2}{5}}\right),}}\, \ldots,\, O\left(d^{-\frac{2}{5}}\right) \bigg) \\ &+ \text{diag}\bigg( \underset{N\;\text{terms}}{\underbrace{O\left(d^{-\frac{1}{5}}\right),\, \ldots,\, O\left(d^{-\frac{1}{5}}\right),}}\, \ldots,\, O\left(d^{-\frac{1}{5}}\right) \bigg) \\ &= \text{diag}\left( \text{tr}(H)d^{\frac{2}{5}} + O\left(d^{-\frac{1}{5}}\right),\, \ldots,\, \text{tr}(H) + O\left(d^{-\frac{1}{5}}\right),\, \ldots,\, \text{tr}(H)d^{\frac{2}{5}} + O\left(d^{-\frac{1}{5}}\right),\, \ldots,\, O\left(d^{-\frac{1}{5}}\right) \right). \end{align}\]

Following the proof process from Eqs. (15 ) to (18 ), the following inequalities can be found \[\begin{align} & \left| \lambda _{i,k}^{C'}-\lambda _k\mathbb{E}\left[ X_{i}^{C'} \right] \right|\le \lVert X_{i}^{C'}-\mathbb{E}\left[ X_{i}^{C'} \right] \rVert _2\le O\left( d^{-\frac{1}{5}} \right) \\ & \text{tr}(H)d^{\frac{2}{5}}-O\left( d^{-\frac{1}{5}} \right) \le e_{k}^{\intercal}X_{i}^{C'}e_k \le \text{tr}(H)d^{\frac{2}{5}}+O\left( d^{-\frac{1}{5}} \right) \\ & \text{tr}(H)d^{\frac{2}{5}}-O\left( d^{-\frac{1}{5}} \right) \le \lambda _{i,1}^{C'} \le \text{tr}(H)d^{\frac{2}{5}}+O\left( d^{-\frac{1}{5}} \right). \end{align}\] However, unlike the previous proof, there exists a potential issue that the image transformation matrix \(H\) may lead to the case that \(X_{i}^{C'}\) is not a square matrix. Then we denote \(X_i^{C'} =\sum_{j=1}^d{\lambda_{i,j}u_{i,j}^{C'}v_{i,j}^{C'}}\), where \(u_{i,j}^{C'}\) and \(v_{i,j}^{C'}\) are left and right singular vectors produced by SVD decomposition. So, we have \[\begin{align} e_{k}^{\intercal}X_{i}^{C'}e_k &= \sum_{j=1}^d \lambda _{i,j} ({e_{k}^{\intercal} u_{i,j}^{C'} v_{i,j}^{C'}e_{k}}) \\ &\leq \lambda _{i,1}^{C'}\sum_{j=1}^d|e_{k}^{\intercal} u_{i,j}^{C'} v_{i,j}^{C'}e_{k}|, \end{align}\] which further leads to \[\label{eq95dCL95dissismilar95local95lb} \begin{align} \sum_{j=1}^d{| {e_{k}^{\intercal} u_{i,j}^{C'} v_{i,j}^{C'}}e_{k} |} &\ge \frac{\text{tr}(H)d^{\frac{2}{5}}-O\left( d^{-\frac{1}{5}} \right)}{\text{tr}(H)d^{\frac{2}{5}}+O\left( d^{-\frac{1}{5}} \right)} \\ &= 1-\frac{O\left( d^{-\frac{1}{5}} \right)}{\text{tr}(H)d^{\frac{2}{5}}+O\left( d^{-\frac{1}{5}} \right)}. \end{align}\tag{28}\]

\(\boldsymbol{For global feature space.}\) By similar augments from Eq. (21 ) to Eq. (22 ) and based on Eq.(28 ), for the global representation learned through the decentralized learning framework, we establish \[\label{eq95dCL95dissismilar95dec95lb} \begin{align} &\sum_{k=1}^d{| e_{k}^{\intercal}\bar{u}_{j}^{C'}\bar{v}_{j}^{C'}e_{k} |}\ge \frac{\text{tr}(H)\left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} -O\left( d^{-\frac{1}{5}} \right)}{\text{tr}(H)\left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} +O\left( d^{-\frac{1}{5}} \right)} \\ &=1-\frac{O\left( d^{-\frac{1}{5}} \right)}{\text{tr}(H)\left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} +O\left( d^{-\frac{1}{5}} \right)}. \end{align}\tag{29}\]

On the other hand, for the global objective of the federated learning framework, we follow the arguments from Eq. (23 ) to Eq. (24 ) to derive \[\label{eq95dCL95dissismilar95fed95lb} \begin{align} &\sum_{j=1}^d{| e_{k}^{\intercal}\bar{u}_{j}^{C'}\bar{v}_{j}^{C'}e_{k} |}\ge \frac{\text{tr}(H)d^{\frac{2}{5}}-\varTheta \left( d^{\frac{7}{20}} \right) -O\left( d^{-\frac{1}{5}} \right)}{\text{tr}(H)d^{\frac{2}{5}}-\varTheta \left( d^{\frac{7}{20}} \right) +O\left( d^{-\frac{1}{5}} \right)} \\ &=1-\frac{O\left( d^{-\frac{1}{5}} \right)}{\text{tr}(H)d^{\frac{2}{5}}-\varTheta \left( d^{\frac{7}{20}} \right) +O\left( d^{-\frac{1}{5}} \right)}. \end{align}\tag{30}\]

Combining Lemma 1, Eq.(28 ), Eq.(29 ) and Eq.(30 ) completes the proof. ◻

8.6.4 Proof of First Theoretical Insight↩︎

This section provides the full proof of Theorem 3.

Proof. According to Theorem 1 and Theorem 2, we can find the main difference between the global representations lies in the lower bound. For the global feature learned in the decentralized learning (DecL) framework, we denote the sensitivity of D-SSL as below:

\[\label{eq95s95dec95M} s_{Dec}^M = \frac{O\left( d^{-\frac{2}{5}} \right)}{2p\left( 1-p \right) \left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} +O\left( d^{-\frac{2}{5}} \right)},\tag{31}\] \[\label{eq95s95dec95C95similar} s_{Dec}^{C_1}=\frac{O\left( d^{-\frac{1}{5}} \right)}{\left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} -O\left( d^{-\frac{1}{5}} \right)},\tag{32}\] \[\label{eq95s95dec95C95dissimilar} s_{Dec}^{C_2}=\frac{O\left( d^{-\frac{1}{5}} \right)}{\text{tr}(H)\left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} -O\left( d^{-\frac{1}{5}} \right)},\tag{33}\]

where \(s_{Dec}^M\) represents the sensitivity of MIM-based D-SSL to heterogeneous data, \(s_{Dec}^{C_1}\) represents the sensitivity of CL-based SSL with similar augmentations, and \(s_{Dec}^{C_2}\) represents the sensitivity of CL-based SSL with dissimilar augmentations. Then, we compare the magnitude of \(s_{Dec}^M\) and \(s_{Dec}^{C_1}\) by solving the following equation:

\[\begin{align} &s_{Dec}^M - s_{Dec}^{C_1} = \frac{O\left( d^{-\frac{2}{5}} \right)}{\left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} +O\left( d^{-\frac{2}{5}} \right)} - \frac{O\left( d^{-\frac{1}{5}} \right)}{\left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} -O\left( d^{-\frac{1}{5}} \right)} \\ &= \frac{O\left( d^{-\frac{2}{5}} \right) \left( \left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} -O\left( d^{-\frac{1}{5}} \right) \right) - O\left( d^{-\frac{1}{5}} \right) \left( \left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} +O\left( d^{-\frac{2}{5}} \right) \right)}{\left( \left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} -O\left( d^{-\frac{1}{5}} \right) \right) \left( \left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} +O\left( d^{-\frac{2}{5}} \right) \right)}. \end{align}\]

Consider the dimension \(d\) of the Euclidean space is very large so that \(d \to \infty\). Then, we have

\[\begin{align} &\lim_{d \to \infty} [ s_{Dec}^M - s_{Dec}^{C_1}] = \\ &\lim_{d \to \infty}\frac{O\left( d^{-\frac{2}{5}} \right) \left( \left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} -O\left( d^{-\frac{1}{5}} \right) \right) - O\left( d^{-\frac{1}{5}} \right) \left( \left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} +O\left( d^{-\frac{2}{5}} \right) \right)}{\left( \left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} -O\left( d^{-\frac{1}{5}} \right) \right) \left( \left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} +O\left( d^{-\frac{2}{5}} \right) \right)} \\ &= \lim_{d \to \infty} \frac{-\left( 1-\frac{1}{\left| \bar{A} \right|} \right) O\left( d^{\frac{1}{5}} \right)}{\left( 1-\frac{1}{\left| \bar{A} \right|} \right) ^2 \varTheta \left( d^{\frac{4}{5}} \right)}. \end{align}\]

Due to the fact that \(2 \leq \left| \bar{A} \right| \leq N\), we prove

\[\label{eq95first95insight95r195similar} \quad \lim_{d \to \infty} [ s_{Dec}^M - s_{Dec}^{C_1}] < 0.\tag{34}\]

Similarly, under Assumption 5, we determine if \(s_{Dec}^M\) is less than \(s_{Dec}^{C_2}\) as follows \[\lim_{d \to \infty} [ \frac{s_{Dec}^{C_2}}{s_{Dec}^M}] = \lim_{d \to \infty} \frac{ \displaystyle \frac{O\left(d^{-\frac{1}{5}}\right)}{\operatorname{tr}(H) \left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} + O\left(d^{-\frac{1}{5}}\right)} }{ \displaystyle \frac{O\left(d^{-\frac{2}{5}}\right)}{2p(1 - p) \left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} + O\left(d^{-\frac{2}{5}}\right)} } = \frac{d^{-\frac{3}{5}}}{d^{-\frac{4}{5}}} = \infty,\]

which implies \[\label{eq95first95insight95r195dissimilar} \quad \lim_{d \to \infty} [ s_{Dec}^M - s_{Dec}^{C_2}] < 0.\tag{35}\]

Combining Eqs.(34 ) and (35 ) arrives \[\label{eq95first95insight95r1} \quad \lim_{d \to \infty} [ s_{Dec}^M - s_{Dec}^{C}] < 0,\tag{36}\] where \(s_{Dec}^{C}\) denotes the sensitivity of CL-based SSL to heterogeneous data. On the other hand, for the federated learning (FL) framework, we denote the following sensitivity of D-SSL:

\[\label{eq95s95fed95M} s_{Fed}^M=\frac{O\left( d^{-\frac{2}{5}} \right)}{2p\left( 1-p \right) d^{\frac{2}{5}} -\varTheta \left( d^{\frac{7}{20}} \right) +O\left( d^{-\frac{2}{5}} \right)},\tag{37}\]

\[\label{eq95s95fed95C95similar} s_{Fed}^{C_1}=\frac{O\left( d^{-\frac{1}{5}} \right)}{d^{\frac{2}{5}}-\varTheta \left( d^{\frac{7}{20}} \right) +O\left( d^{-\frac{1}{5}} \right)},\tag{38}\]

\[\label{eq95s95fed95C95dissimilar} s_{Fed}^{C_2}=\frac{O\left( d^{-\frac{1}{5}} \right)}{\text{tr}(H)d^{\frac{2}{5}}-\varTheta \left( d^{\frac{7}{20}} \right) +O\left( d^{-\frac{1}{5}} \right)}.\tag{39}\]

The difference between \(s_{Fed}^M\) and \(s_{Fed}^{C_1}\) is given by

\[\label{con1:e1} \begin{align} s_{Fed}^M-s_{Fed}^{C_1} &= \frac{O\left( d^{-\frac{4}{5}} \right)}{2p\left( 1-p \right) -\varTheta \left( d^{-\frac{1}{20}} \right) +O\left( d^{-\frac{4}{5}} \right)} - \frac{O\left( d^{-\frac{3}{5}} \right)}{1-\varTheta \left( d^{-\frac{1}{20}} \right) +O\left( d^{-\frac{3}{5}} \right)} \\ &= \frac{O\left( d^{-\frac{4}{5}} \right) \left( 1-\varTheta \left( d^{-\frac{1}{20}} \right) +O\left( d^{-\frac{3}{5}} \right) \right) - O\left( d^{-\frac{3}{5}} \right) \left( 1-\varTheta \left( d^{-\frac{1}{20}} \right) +O\left( d^{-\frac{4}{5}} \right) \right)}{\left( 1-\varTheta \left( d^{-\frac{1}{20}} \right) +O\left( d^{-\frac{4}{5}} \right) \right) \left( 1-\varTheta \left( d^{-\frac{1}{20}} \right) +O\left( d^{-\frac{3}{5}} \right) \right)} \\ &= \frac{-O\left( d^{-\frac{3}{5}} \right) +\varTheta \left( d^{-\frac{13}{20}} \right)}{d^{\frac{1}{5}}-\varTheta \left( d^{\frac{3}{20}} \right) +O\left( d^{-\frac{3}{5}} \right)}. \end{align}\tag{40}\]

For the above result, let \(d\rightarrow \infty\), we can establish \[\label{eq95first95insight95r295similar} \begin{align} \lim_{d\rightarrow \infty} [s_{Fed}^M-s_{Fed}^{C_1}] = \lim_{d\rightarrow \infty} \frac{-O\left( d^{-\frac{3}{5}} \right) +\varTheta \left( d^{-\frac{13}{20}} \right)}{d^{\frac{1}{5}}-\varTheta \left( d^{\frac{3}{20}} \right) +O\left( d^{-\frac{3}{5}} \right)} &= \lim_{d\rightarrow \infty} \frac{-O\left( d^{-\frac{3}{5}} \right)}{d^{\frac{1}{5}}} < 0 \end{align}\tag{41}\]

Then for the comparison between \(s_{Fed}^M\) and \(s_{Fed}^{C_2}\), under Assumption 5, we have \[\label{eq95first95insight95r295dissimilar} \lim_{d \to \infty} [ \frac{s_{Fed}^{C_2}}{s_{Fed}^M}] = \lim_{d \to \infty} \frac{ \displaystyle \frac{O\left(d^{-\frac{1}{5}}\right)}{\operatorname{tr}(H)\, d^{\frac{2}{5}} - \Theta\left(d^{\frac{7}{20}}\right) + O\left(d^{-\frac{1}{5}}\right)} }{ \displaystyle \frac{O\left( d^{-\frac{1}{5}} \right)}{d^{\frac{2}{5}}-\varTheta \left( d^{\frac{7}{20}} \right) +O\left( d^{-\frac{1}{5}} \right)} } = \frac{d^{-\frac{3}{5}}}{d^{-\frac{4}{5}}} = \infty.\tag{42}\]

With Eqs.(41 ) and (42 ), we find \[\label{eq95first95insight95r2} \quad \lim_{d \to \infty} [ s_{Fed}^M - s_{Fed}^{C}] < 0.\tag{43}\]

Combining Eq.(36 ) and Eq.(43 ) completes the proof. ◻

8.6.5 Proof of Second Theoretical Insight↩︎

This section provides the full proof of Corollary 1 and Theorem 4.

Proof. For the decentralized learning (DecL) framework, we notice from Eqs.(31 ), (32 ) and (33 ) that their denominators both include the term \(1-\frac{1}{\left| \bar{A} \right|}\). Since \(\left| \bar{A} \right|\) is proportional to \(1-\frac{1}{\left| \bar{A} \right|}\), we derive that \(\left| \bar{A} \right|\) is inversely proportional to \(s_{Dec}^M\), \(s_{Dec}^{C_1}\) and \(s_{Dec}^{C_2}\), which completes the proof of Corollary 1. Next, by a similar proof from Eq.(31 ) to Eq.(43 ), we compare the robustness of distributed MIM between DecL and FL framework by solving

\[s_{Dec}^M - s_{Fed}^M = \frac{O\left( d^{-\frac{2}{5}} \right)}{2p\left( 1-p \right)\left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} +O\left( d^{-\frac{2}{5}} \right)} - \frac{O\left( d^{-\frac{2}{5}} \right)}{2p\left( 1-p \right)d^{\frac{2}{5}} -\varTheta \left( d^{\frac{7}{20}} \right) +O\left( d^{-\frac{2}{5}} \right)}.\]

This is equivalent to solving

\[\begin{align} &2p\left( 1-p \right)\left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} - \left( 2p\left( 1-p \right) d^{\frac{2}{5}}-\varTheta \left( d^{\frac{7}{20}} \right) \right) \\ &=2p\left( 1-p \right) d^{\frac{2}{5}} -\frac{2p\left( 1-p \right)}{\left| \bar{A} \right|} d^{\frac{2}{5}} -2p\left( 1-p \right) d^{\frac{2}{5}}+\varTheta \left( d^{\frac{7}{20}} \right). \end{align}\]

Due to the fact that

\[\lim_{d \to \infty}\left[ 2p\left( 1-p \right) d^{\frac{2}{5}} -\frac{2p\left( 1-p \right)}{\left| \bar{A} \right|} d^{\frac{2}{5}} -2p\left( 1-p \right) d^{\frac{2}{5}}+\varTheta \left( d^{\frac{7}{20}} \right) \right] < 0,\]

we have

\[\label{eq95second95insight95r1} \lim_{d \to \infty} [s_{Dec}^M - s_{Fed}^M] > 0.\tag{44}\]

Similarly, for CL-based SSL, we have \[s_{Dec}^{C_1} - s_{Fed}^{C_1} = \frac{O\left( d^{-\frac{1}{5}} \right)}{\left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} -O\left( d^{-\frac{1}{5}} \right)} - \frac{O\left( d^{-\frac{1}{5}} \right)}{d^{\frac{2}{5}}-\varTheta \left( d^{\frac{7}{20}} \right) +O\left( d^{-\frac{1}{5}} \right)},\]

\[s_{Dec}^{C_2} - s_{Fed}^{C_2} = \frac{O\left( d^{-\frac{1}{5}} \right)}{\text{tr}(H)\left( 1-\frac{1}{\left| \bar{A} \right|} \right) d^{\frac{2}{5}} -O\left( d^{-\frac{1}{5}} \right)} - \frac{O\left( d^{-\frac{1}{5}} \right)}{\text{tr}(H)d^{\frac{2}{5}}-\varTheta \left( d^{\frac{7}{20}} \right) +O\left( d^{-\frac{1}{5}} \right)}.\]

Under Assumption 5, the above results imply that \[\label{eq95second95insight95r295similar} \lim_{d \to \infty} [s_{Dec}^{C_1} - s_{Fed}^{C_1}] > 0,\tag{45}\] \[\label{eq95second95insight95r295dissimilar} \lim_{d \to \infty} [s_{Dec}^{C_2} - s_{Fed}^{C_2}] > 0.\tag{46}\]

With Eqs.(45 ) and (46 ), we find \[\label{eq95second95insight95r2} \lim_{d \to \infty} [s_{Dec}^{C} - s_{Fed}^{C}] > 0.\tag{47}\]

Combining Eq.(44 ) with Eq.(47 ) derives \[\label{eq95second95insight95r3} \lim_{d \to \infty} [s_{Dec} > s_{Fed}].\tag{48}\]

Note that Eq.(48 ) holds for decentralized learning setups in which each client has an inconsistent number of neighbors. However, there exists an optimal case for decentralized learning, denoted by \(\forall i,\left| A_i \right|=N\). In this case, the global objective of decentralized learning can be re-formulated as follows:

\[\sum_{i\in \left[ N \right]}{\frac{1}{N}\sum_{j\in \left[ N \right]}{\frac{1}{N}\mathcal{L}}}=\sum_{i\in \left[ N \right]}{\frac{1}{N}\mathcal{L}}.\]

This equation is exactly the same as the global objective of federated learning shown in Eq.(1 ). Therefore, we know the below statement holds: \[\label{eq95second95insight95r4} \lim_{d \to \infty} [s_{Dec} = s_{Fed}],\tag{49}\] when \(\forall i \in [N],\left| A_i \right|=N\). Combining Eq.(48 ) and Eq.(49 ) completes the proof. ◻

References↩︎

[1]
J. Hoffmann et al., “Training compute-optimal large language models,” in Proceedings of the 36th international conference on neural information processing systems, 2022, pp. 30016–30030.
[2]
J. W. Rae et al., “Scaling language models: Methods, analysis & insights from training gopher,” arXiv preprint arXiv:2112.11446, 2021.
[3]
W. Zhuang, X. Gan, Y. Wen, S. Zhang, and S. Yi, “Collaborative unsupervised visual representation learning from decentralized data,” in Proceedings of the IEEE/CVF international conference on computer vision, 2021, pp. 4912–4921.
[4]
L. Wang, K. Zhang, Y. Li, Y. Tian, and R. Tedrake, “Does learning from decentralized non-iid unlabeled data benefit from self supervision?” arXiv preprint arXiv:2210.10947, 2022.
[5]
J. Gui et al., “A survey on self-supervised learning: Algorithms, applications, and future trends,” IEEE Transactions on Pattern Analysis and Machine Intelligence, 2024.
[6]
X. Liu et al., “Self-supervised learning: Generative or contrastive,” IEEE transactions on knowledge and data engineering, vol. 35, no. 1, pp. 857–876, 2021.
[7]
Q. Zhang, Y. Wang, and Y. Wang, “How mask matters: Towards theoretical understandings of masked autoencoders,” Advances in Neural Information Processing Systems, vol. 35, pp. 27127–27139, 2022.
[8]
X. Chen and K. He, “Exploring simple siamese representation learning,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2021, pp. 15750–15758.
[9]
K. He, X. Chen, S. Xie, Y. Li, P. Dollár, and R. Girshick, “Masked autoencoders are scalable vision learners,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2022, pp. 16000–16009.
[10]
J. Verbraeken, M. Wolting, J. Katzy, J. Kloppenburg, T. Verbelen, and J. S. Rellermeyer, “A survey on distributed machine learning,” Acm computing surveys (csur), vol. 53, no. 2, pp. 1–33, 2020.
[11]
Y. Sun, L. Shen, and D. Tao, “Towards understanding generalization and stability gaps between centralized and decentralized federated learning.” 2024, [Online]. Available: https://arxiv.org/abs/2310.03461.
[12]
B. McMahan, E. Moore, D. Ramage, S. Hampson, and B. A. y Arcas, “Communication-efficient learning of deep networks from decentralized data,” in Artificial intelligence and statistics, 2017, pp. 1273–1282.
[13]
Z. Tang, S. Shi, B. Li, and X. Chu, “Gossipfl: A decentralized federated learning framework with sparsified and adaptive communication,” IEEE Transactions on Parallel and Distributed Systems, vol. 34, no. 3, pp. 909–922, 2022.
[14]
G. Ayache and S. El Rouayheb, “Random walk gradient descent for decentralized learning on graphs,” in 2019 IEEE international parallel and distributed processing symposium workshops (IPDPSW), 2019, pp. 926–931.
[15]
H. Zhu, J. Xu, S. Liu, and Y. Jin, “Federated learning on non-IID data: A survey,” Neurocomputing, vol. 465, pp. 371–390, 2021.
[16]
E. Lubana, C. I. Tang, F. Kawsar, R. Dick, and A. Mathur, “Orchestra: Unsupervised federated learning via globally consistent clustering,” in International conference on machine learning, 2022, pp. 14461–14484.
[17]
Y. A. U. Rehman, Y. Gao, P. P. B. De Gusmão, M. Alibeigi, J. Shen, and N. D. Lane, “L-dawa: Layer-wise divergence aware weight aggregation in federated self-supervised visual representation learning,” in Proceedings of the IEEE/CVF international conference on computer vision, 2023, pp. 16464–16473.
[18]
K. He, X. Zhang, S. Ren, and J. Sun, “Deep residual learning for image recognition,” in Proceedings of the IEEE conference on computer vision and pattern recognition, 2016, pp. 770–778.
[19]
A. Dosovitskiy et al., “An image is worth 16x16 words: Transformers for image recognition at scale,” in International conference on learning representations, 2020.
[20]
T. Chen, S. Kornblith, M. Norouzi, and G. Hinton, “A simple framework for contrastive learning of visual representations,” in International conference on machine learning, 2020, pp. 1597–1607.
[21]
K. He, H. Fan, Y. Wu, S. Xie, and R. Girshick, “Momentum contrast for unsupervised visual representation learning,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2020, pp. 9729–9738.
[22]
J.-B. Grill et al., “Bootstrap your own latent-a new approach to self-supervised learning,” Advances in Neural Information Processing Systems, vol. 33, pp. 21271–21284, 2020.
[23]
H. Bao, L. Dong, S. Piao, and F. Wei, “Beit: Bert pre-training of image transformers,” arXiv preprint arXiv:2106.08254, 2021.
[24]
J. Zhou et al., “Ibot: Image bert pre-training with online tokenizer,” arXiv preprint arXiv:2111.07832, 2021.
[25]
Z. Xie et al., “Simmim: A simple framework for masked image modeling,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2022, pp. 9653–9663.
[26]
L. Kong, C. de M. d’Autume, W. Ling, L. Yu, Z. Dai, and D. Yogatama, “A mutual information maximization perspective of language representation learning,” arXiv preprint arXiv:1910.08350, 2019.
[27]
C. Zhang, Y. Xie, H. Bai, B. Yu, W. Li, and Y. Gao, “A survey on federated learning,” Knowledge-Based Systems, vol. 216, p. 106775, 2021.
[28]
E. T. M. Beltrán et al., “Decentralized federated learning: Fundamentals, state of the art, frameworks, trends, and challenges,” IEEE Communications Surveys & Tutorials, 2023.
[29]
I. Hegedűs, G. Danner, and M. Jelasity, “Decentralized learning works: An empirical comparison of gossip learning and federated learning,” Journal of Parallel and Distributed Computing, vol. 148, pp. 109–124, 2021.
[30]
N. Yang, X. Chen, C. Z. Liu, D. Yuan, W. Bao, and L. Cui, “FedMAE: Federated self-supervised learning with one-block masked auto-encoder,” arXiv preprint arXiv:2303.11339, 2023.
[31]
S. Jing, A. Yu, S. Zhang, and S. Zhang, “FedSC: Provable federated self-supervised learning with spectral contrastive objective over non-iid data,” arXiv preprint arXiv:2405.03949, 2024.
[32]
H. Liu, J. Z. HaoChen, A. Gaidon, and T. Ma, “Self-supervised learning is more robust to dataset imbalance,” in International conference on learning representations, 2022.
[33]
W. Zhuang, Y. Wen, and S. Zhang, “Divergence-aware federated self-supervised learning,” in International conference on learning representations, 2021.
[34]
A. Gretton, K. M. Borgwardt, M. J. Rasch, B. Schölkopf, and A. Smola, “A kernel two-sample test,” The Journal of Machine Learning Research, vol. 13, no. 1, pp. 723–773, 2012.
[35]
C.-L. Li, W.-C. Chang, Y. Cheng, Y. Yang, and B. Póczos, “Mmd gan: Towards deeper understanding of moment matching network,” Advances in neural information processing systems, vol. 30, 2017.
[36]
M. Gong, K. Zhang, T. Liu, D. Tao, C. Glymour, and B. Schölkopf, “Domain adaptation with conditional transferable components,” in International conference on machine learning, 2016, pp. 2839–2848.
[37]
X. Ma, H. Shen, W. Lyu, and W. Ke, “Enhancing federated learning robustness in non-IID data environments via MMD-based distribution alignment,” in International conference on parallel and distributed computing: Applications and technologies, 2024, pp. 280–291.
[38]
K. Hu et al., “FedMMD: A federated weighting algorithm considering non-IID and local model deviation,” Expert Systems with Applications, vol. 237, p. 121463, 2024.
[39]
X. Liao et al., “FOOGD: Federated collaboration for both out-of-distribution generalization and detection,” Advances in Neural Information Processing Systems, vol. 37, pp. 132908–132945, 2024.
[40]
O. Vinyals, C. Blundell, T. Lillicrap, D. Wierstra, et al., “Matching networks for one shot learning,” Advances in neural information processing systems, vol. 29, 2016.
[41]
J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei, “Imagenet: A large-scale hierarchical image database,” in 2009 IEEE conference on computer vision and pattern recognition, 2009, pp. 248–255.
[42]
T.-M. H. Hsu, H. Qi, and M. Brown, “Measuring the effects of non-identical data distribution for federated visual classification,” arXiv preprint arXiv:1909.06335, 2019.
[43]
P. ERDdS and A. R&wi, “On random graphs i,” Publ. math. debrecen, vol. 6, no. 290–297, p. 18, 1959.
[44]
A. Krizhevsky, G. Hinton, et al., “Learning multiple layers of features from tiny images,” 2009.
[45]
X. Lian, C. Zhang, H. Zhang, C.-J. Hsieh, W. Zhang, and J. Liu, “Can decentralized algorithms outperform centralized algorithms? A case study for decentralized parallel stochastic gradient descent,” Advances in neural information processing systems, vol. 30, 2017.
[46]
X. Liao et al., “Rethinking the representation in federated unsupervised learning with non-iid data,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2024, pp. 22841–22850.
[47]
L. McInnes, J. Healy, and J. Melville, “Umap: Uniform manifold approximation and projection for dimension reduction,” arXiv preprint arXiv:1802.03426, 2018.
[48]
H. B. McMahan, D. Ramage, K. Talwar, and L. Zhang, “Learning differentially private recurrent language models,” arXiv preprint arXiv:1710.06963, 2017.
[49]
K. Wei et al., “Federated learning with differential privacy: Algorithms and performance analysis,” IEEE transactions on information forensics and security, vol. 15, pp. 3454–3469, 2020.
[50]
C. Eckart and G. Young, “The approximation of one matrix by another of lower rank,” Psychometrika, vol. 1, no. 3, pp. 211–218, 1936.
[51]
R. Vershynin, High-dimensional probability: An introduction with applications in data science, vol. 47. Cambridge university press, 2018.

  1. Corresponding Authors: Nan Yang and Dong Yuan.↩︎