Manuscript Offprint
arXiv:2610.24013SPADE-KD: Peer-to-Peer Collaborative Learning under Heterogeneous Settings
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Fully decentralized, peer-to-peer collaborative learning is an emerging distributed deep learning paradigm that, unlike its centralized counterparts, eliminates the need for a central aggregator and disseminator, avoiding the single-point-of-failure and bottleneck issues they can bring. Many such approaches – including decentralized federated and gossip learning – use parameter averaging, requiring clients to have homogeneous model architectures, whereas others use knowledge distillation as an alternative while leaning on shared public data or centralized control infrastructure. Most decentralized learning approaches also make a one-size-fits-all assumption, i.e., they collaboratively train clients towards a single, globally optimal solution for all clients, when in reality, clients' underlying data distributions might differ such that a globally optimal solution may not be locally optimal for all clients. To enable collaborative learning in environments where heterogeneity is present in both model architecture and in underlying data distribution, we present SPADE-KD, a fully decentralized serverless model distillation framework that optimizes collaboration towards personalized rather than global performance. SPADE-KD leverages two mechanisms – adaptive distillation and utility-driven peer selection. Adaptive distillation modulates the strength of each incoming model transfer by the performance advantage of the incoming model compared to the native model measured by their task losses, such that a client will distill more aggressively from incoming models that outperform it on its own local data. Utility-driven peer selection uses the loss-informed utility derived from adaptive distillation to rank prospective partners, focusing on exchanges that measurably improve the local model while suppressing low-utility transfers. Neither mechanism relies on any centralized infrastructure or public datasets. Using federated classification tasks, we demonstrate that SPADE-KD consistent outperforms naive decentralized distillation with lower loss and faster convergence and we provide ablation studies of the combined and individual effectiveness of SPADE-KD's component mechanisms.
Introduction
As more data is generated at the network edge and utilized to train deep learning models, distributed model training over decentralized data has become an attractive structural paradigm for deep learning, mitigating privacy concerns and providing more autonomy for participating clients and improving communication efficiency between servers and/or clients. While many centralized and semi-centralized distributed learning approaches are facilitated or coordinated through centralized servers, raising concerns about servers being single points of failures or bottlenecks in collaborative learning among networks of clients, and motivating fully decentralized collaborative learning paradigms.
However, distributed learning – centralized and decentralized – must contend with issues emerging from the heterogeneity that is especially characteristic in realistic peer-to-peer settings. Heterogeneity within underlying data distributions poses challenges to distributed learning approaches that target consensus towards a global solution, as they may not adequately serve networks of clients whose data distributions show incongruence enough that a globally optimal solution may not be the best solution – or even an adequate one – for all clients. Heterogeneity in model quality as a result of training capacities or quantity and/or quality of clients' local data poses opportunities to bridge model performance disparity through collaboration but also challenges in preserving performance higher-quality models, mitigating training volatility, and convergence of local models. While many federated learning approaches have been proposed to address these two axes of heterogeneity, heterogeneity in model architectures make it impossible to use the model parameter-averaging mechanisms at the core of many of them, and therefore knowledge must be instead transferred functionally – via knowledge distillation.
Yet the scarce but growing landscape of existing distributed distillation methods inherit two assumptions that can fail in heterogeneous settings: (1) that every model has something to offer that is worth distilling from, and (2) that every potential peer client is worth collaborating with. When peers hold heterogeneous data and unequal competence, both assumptions break — and a naive scheme can drag a capable agent down toward a weaker peer. Even distribution distillation methods that confront that challenge these assumptions assume a level of heterogeneity low enough that distribution variance among clients' data can be overcome with universal collaboration among clients. In the face of more challenging heterogeneity, we must consider both how a client should distill from models shared with it from other clients and how a client should select peers it wants to receive models from.
Copyright © 2026.
Our key insight is that both problems share a solution – a client can measure the potential utility of a shared model on its own data and use this signal to determine how much to distill from each shared model and which clients it should query next — i.e., one utility can govern both what a client learns and who it should learn from, in the context of collaborative learning. This insight yields our proposed approach, Serverless Peer-to-Peer Adaptive Decentralized Knowledge Distillation (SPADE-KD), a framework that builds both the distillation mechanism and the peer selection mechanism from a single utility signal. In SPADE-KD, each client computes an adaptive coefficient from the relative task loss of a peer's model versus its own native model, and uses it to modulate that peer's contribution in the distillation objective, promoting prospective teacher models that outperform its native model locally and surprising those that do not. Because this coefficient falls out of distillation as a by-product, we reuse it as a stored utility score that drives peer selection, with a neutral default for never-seen peers that yields exploration at no additional cost. Our contributions are:
• A decentralized adaptive knowledge distillation method that derives a utility signal from the comparative loss advantage of an incoming prospective teacher model and the native student model (Eq. 4) and applies it as a coefficient to modulate distillation.
• The re-utilization of that same utility signal as an indication of collaboration potential in the formulation of a multi-armed bandit problem for each client to select the optimal peers to request prospective teacher models from to best collaboratively train its native model and minimize loss over its local data.
• SPADE-KD, a fully decentralized collaborative deep learning framework, that utilizes decentralized adaptive knowledge distillation and utility-based peer selection to account for networks of clients with heterogeneity in data distributions, model architectures, and model qualities within the network.
Federated & Decentralized Learning Federated learning (FL) (McMahan et al. 2017) proposed having a central server disseminate copies of its model to clients and perform parameter averaging of the returned client-trained model updates to periodically update its global model, making it unnecessary for clients to send their data directly to the server and providing consequent benefits in privacy and communication bandwidth utilization. Personalized variations on FL have followed, e.g., proposing adaptations to its structure of collaboration and aggregation (Tan et al. 2022) and using the cosine similarity of model progressions to produce differentiated server models trained by clusters of clients (Sattler, Müller, and Samek 2020), among other approaches. To address the single point of failure and performance bottleneck issues raised by centralized approaches, decentralized FL approaches (Beltrán et al. 2023) have been proposed and proven competitive to centralized FL, including asynchronous, peer-to-peer gossip learning (Hegedús, Danner, and Jelasity 2019). These decentralized adaptations include some approaches that address data and training heterogeneity among clients, proposing mechanisms such as optimal peer selection and weighted aggregation to overcome heterogeneity and reach consensus on a global optimal solution (Tang et al. 2022). Other approaches target more localized optimal solutions by exploiting observable heterogeneity as clients train (Ma et al. 2024).
Distributed Knowledge Distillation The utilization of knowledge distillation in distributed, collaborative deep learning aims to overcome some of the detriments of parameter averaging, namely the requirement for homogeneous model architectures and the catastrophic forgetting incurred by the averaging of divergent client models. Some decentralized FL approaches leverage knowledge distillation as an intermediary mechanism to discern compatible collaboration partners (Jeong and Kountouris 2023). Other proposals implement mutual distillation to optimize information exchange from peer-aggregated models and peer selection (Soltani et al. 2024) in networks of high data heterogeneity, supplementing but not supplanting the parameter averaging-based aggregation mechanism. FL has also evolved to include federated knowledge distillation approaches (Wu et al. 2022; Kalra et al. 2023) that leverage mutual knowledge distillation to produce compact proxy models that can be sent with better communication efficiency over the network to then be aggregated via parameter averaging for better training robustness. These approaches yield the additional benefit that because native client models are distilling into these compact proxy models and only these proxy models are being exchanged, only the proxy models must have identical model architectures, enabling the native client models to have heterogeneous architectures. To enable collaborative decentralized learning between heterogeneous model architectures towards a globally optimal solution space, decentralized federated mutual learning (Khalil et al. 2024) has been proposed, in which clients in a decentralized network take turns mutually distilling partners' models alongside their own over their local data, oscillating between local training and distillation. However, this and similar approaches do not consider the possibility of data distributions being heterogeneous to the point of incongruence in which training jointly on clients' data – directly or indirectly via client-trained model updates – can be detrimental to the training of any single client. To that end, one LLM-specific orchestrated gossip learning via distillation approach (Singh et al. 2026) proposes to have a centralized matchmaker that learns throughout the collaborative training phase to form client pairs based on training performance and client-provided profiles. To our knowledge, our approach is the first to provide a general solution to fully decentralized collaborative learning via knowledge distillation among clients that addresses both heterogeneous model architecture as well as data heterogeneity and training disparity.
Peer-to-Peer Adaptive Knowledge Distillation
To facilitate collaboration in decentralized networks with heterogeneous data, models, and training history, we introduce Serverless Peer-to-Peer Adaptive Decentralized Knowledge Distillation – SPADE-KD – a fully decentralized approach that adaptively modulates distillation from received models using a utility signal derived from local task loss advantage and reuses that same signal to drive utility-based peer selection.
System Model We consider a fully decentralized network N of n clients that collaboratively train without a central coordinator or a shared global model. We model the network as an undirected small-world graph , where each vertex (with ) is a client and each edge is a logical communication link between two clients. The set of candidate peers available to client i is defined by reachability or provided by some peer sampling service such that . In each collaboration round client i may request models from a subset of of these peers. Each client i holds a private local dataset and a native model . We consider the cases in which the network is heterogeneous, specifically along three axes: (1) data heterogeneity – clients' local data may come from non-identical, potentially incongruent distributions; (2) model heterogeneity – clients' native models may differ in architecture and capacity; and (3) training heterogeneity – clients enter the collaborative phase with varying training histories. Rather than converging to a shared consensus model, each client pursues a personalized objective, i.e., it seeks the parameters that minimize its expected local task loss over its own data distribution:
where denotes a forward pass through and the task loss. Because clients hold heterogeneous architectures, it is implied that knowledge cannot be shared by averaging parameters as in weight-aggregation schemes. We cannot assume that distillation between any two clients would be mutually beneficial, therefore we do not assume knowledge transfers should always be mutual or bi-directional; we assume that they can be asymmetric.
Decentralized Adaptive Knowledge Distillation
To enable collaborative training between heterogeneous model architectures, we use knowledge distillation as the mechanism to transfer knowledge from a received model into the native model. In standard distillation-based training, the loss of some student model given some teacher model is typically defined as the weighted sum of the ground truth-informed task loss and the teacher-based distillation loss :
where and represent the task loss and distillation loss strengths, respectively. The distillation loss is derived from the Kullback-Leibler (KL) divergence between soft output probabilities of the student and teacher models given a
Table 1: Summary of notation.
| Symbol | Description |
|---|---|
| n | Number of clients in the network |
| Neighbors of client i (candidate peers) | |
| Number of peers contacted per round, | |
| Selected peers of client i, | |
| Private local dataset of client i | |
| Native model of client i | |
| Forward pass of input x through model | |
| Soft outputs of | |
| Total (unified) loss for client i w.r.t. peer k | |
| Ground-truth task loss of model | |
| Distillation loss from into | |
| Gradient (or weight update) norm at client i | |
| Task- and distillation-loss signal strengths | |
| Utility signal (coefficient/score) (Eq. 4) | |
| Default neutral utility signal, | |
| -based modulation of at client i (Eq. 5) | |
| Score record (map) maintained by client i (Eq. 9) | |
| Recalled score for target peer k by client i (Eq. 10) | |
| Peer-selection probability distribution | |
| Monotonic score-scaling function | |
| Local training epochs per round | |
| Independent local pre-training rounds | |
| Collaboration rounds |
common input resulting from a forward pass and , respectively:
In this manner, the student model is penalized for divergence from the teacher model, and the resulting distillation incentivizes the student model behavior to conform to the teacher model behavior. Importantly, this naive implementation of this distillation loss assumes that the teacher model has achieved sufficient task performance and is advantageous (i.e., has useful knowledge to offer) to the student model.
Adaptive Knowledge Distillation However, for some arbitrary model considering distillation from another model from , it cannot be assumed that is always an adequate teacher, and engaging in knowledge distillation with an inadequate teacher model can hurt the overall training of . To address this possibility in the case of peer-to-peer learning on networks with heterogeneous data distribution, we must modulate the distillation loss to be higher, the more advantageous the received model is over the native model given the local dataset . Thus, to enact this desired behavior – i.e., – while ensuring that the actuating modulation remains bounded, we use the utility signal:
As the received model significantly performs better and the native model performs worse ( and ), the utility signal increases , thus promoting the distillation loss. When the received model performs worse and the native model performs better ( and ), the coefficient decreases , thus suppressing the distillation loss. In the neutral case that both models perform about the same, .
Modulating the Modulation While we can use this utility signal directly as a coefficient to scale distillation loss based on the inferred utility of a candidate peer, the subsequent selectivity would hurt the generalized knowledge building that takes place in earlier collaborative training rounds (Meng et al. 2024). Therefore, we further modulate the utility signal itself by scaling it based on gradient (or weight update) norms, such that the relationship between the client i's recent gradient norm and the maximum historical gradient norm interpolates the final coefficient between the utility signal coefficient and a full signal :
With this, when a client is in earlier stages of training and gradient updates are larger ( ), it will not differentiate its modulation among contributed distillation losses, . When a client is in later stages of training and gradient updates are smaller ( ), it will retain full differentiation through the per-peer-k utility signal, . Finally, we define our unified loss function with adaptive knowledge distillation as:
Decentralized Multi-Distillation We consider that a client may receive models from peers at once or accumulates them over time before engaging in distillation. Then, to facilitate distillation into student model from multiple teacher models simultaneously, we average all received models' contributed distillation losses into an aggregate distillation loss:
Recall that each contributed distillation is weighed by the modulated coefficient (Eq. 5), yielding:
Utility-based Peer Selection
In our case of asymmetric decentralized knowledge distillation, the optimal peer selection process at client should result in model update requests from connected clients whose models can best contribute via distillation to the local model . To that end, we posit that we can derive this contribution potential based on the relative task loss advantage of any model over . Our adaptive distillation already yields the utility signal and adaptive coefficient using those task losses, as a by-product. Thus, for the same reason we apply this task loss advantage to adaptive distillation, we can utilize as a score value bounded [0, 1] such that implies no contribution potential, implies strong contribution potential, and implies neutral contribution potential.
Maintaining Scores To leverage these scores for peer selection, each client i maintains its own score record , a map that is updated with each model transfer from another client, such that contains the score from its most recent encounter with client k for only those clients that client i has encountered. Then, letting K be the key space for any S and be the set of all recorded clients:
When client i recalls its score for some client k, , the most recent score is obtained if it has encountered k, else the score is assumed to be the default neutral score , such that:
Optimal Peer Selection For client to select optimal peers , it leverages the recalled scores to model selection as a multi-armed bandit problem. We can use score-proportionate selection – weighted sampling without replacement (w.o.r.), i.e., clients with higher scores have a higher chance of being selected – with an optional monotonic increasing scaling function being applied to the scores to manipulate the probability distribution:
Or, we can lean towards exploitation over exploration use greedy selection to select clients with the top m scores:
Other multinomial bandit solvers may also be used as well, but a thorough exploration of those solutions is outside the scope of this paper.
Experiments
In our experiments, we implement and compare SPADE-KD and its ablations alongside the naive baseline. We measure performance in terms of loss in different classification task scenarios under fully heterogeneous settings.
Scenario Configurations
We use a custom-built discrete event simulator based on Python 3 to simulate synchronous rounds of distributed learning with models being implemented with PyTorch. Simulations were run on an Apple Mac Studio with an Apple M4 Max chip with 16 cores and 128 GB of memory. Each decentralized paradigm is run considering a peer-to-peer small-world network (Watts and Strogatz 1998) of n clients, where each client can collaborate with m other partner clients each round. Clients complete rounds, with each round consisting of epochs, of purely local pre-training before the collaborative phase begins. Collaborative learning proceeds for rounds, and in each round an agent performs epochs of local training on its private data before exchanging knowledge with its partners.
Algorithm 1: SPADE-KD, at client
Input: local dataset ; native model ; candidate peers
Parameters: peers per round ; local epochs ; pre-training rounds ; collaboration rounds ; task and distillation loss strengths ; default utility signal ; learning rate
Output: personalized model
1: Initialize score record , where if is uncontacted, else
2: // Pre-training phase
3: for round = 1 to do
4: epochs of training on minimizing
5: end for
6: // Collaboration phase
7: for round = 1 to do
8: epochs of training on minimizing
9: // Utility-based peer selection
10: {or sample }
11: Request and receive
12: // Decentralized adaptive knowledge distillation
13: for epochs do
14: for all inputs do
15: ; Evaluate on
16: // Compute signal, store recent as score
17: for all do
18: ; Evaluate on
19:
20:
21: end for
22:
23:
24: end for
25: end for
26: end for
27: return
Data Heterogeneity We consider classification task scenarios built around 3 distributed datasets – MNIST (LeCun, Cortes, and Burges 2010), FEMNIST (Caldas et al. 2018), and SpeechCommands (Warden 2018) – with the latter two being provided by Flower (Beutel et al. 2020). Table 2 shows the configuration parameters for each scenario. In the MNIST scenario (~600 samples/client), we introduce artificial heterogeneity by label-swapping, i.e., swapping unique sets of labels within each data distribution (Zec et al. 2024). We use this scenario to represent a more extreme case of heterogeneity expressed through label incongruence, whereas the FEMNIST scenario presents the same task with natural heterogeneity due to its client partitions being based on the original writers of the digits (~53 samples/client). The SpeechCommands dataset is also naturally heterogeneous with its client partitions being based on the original speakers of the words, but resembles more massively distributed real-world scenarios in which each client holds very little data (~25 samples/client).
Table 2: Experimental configuration for each scenario.
| Scenario | n | m | ε | τ | |
|---|---|---|---|---|---|
| MNIST | 100 | 10 | 3 | ≤10 | 40 |
| FEMNIST | 80 | 10 | 20 | ≤40 | 60 |
| SpeechCommands | 80 | 5 | 2 | ≤15 | 60 |
Model & Training Heterogeneity We model deep learning model heterogeneity by implementing size-based tiers within the model family for each task. For the MNIST and FEMNIST handwritten digit recognition task scenarios, we employ a family of four CNN classifiers. The largest is the standard LeNet-5 (~61K parameters), while the three more compact variants (~29K, ~12.6K, and ~3.4K parameters) share a common single-convolution template – a convolutional layer with max-pooling followed by a single fully-connected hidden layer – with the channel width and hidden dimension scaled down at each tier. For the SpeechCommand keyword spotting task scenario we use a shared keyword transformer architecture (Berg, O'Connor, and Cruz 2021) instantiated at three capacity tiers (~76K, ~32K, and ~7K parameters). We select these small models to represent models that can be trained on commonly available edge devices and to represent the effects of models with varying capacity in collaboration with each other. At the start of each experiment, model architectures are assigned round-robin to each client and clients pre-train their model on local data at different levels, randomly set.
Method Implementation To our knowledge, no fully decentralized approach provides a model-agnostic approach to this high-heterogeneity problem space where clients distill from multiple peer collaborators simultaneously. Thus, to observe the relative advantage of our approach – wholly and with each of its component mechanisms – against a fully decentralized baseline, we implement the following :
-
Decentralized KD (D-KD) naive baseline implementation of decentralized KD (Eq. 7) with the standard distillation loss (Eq. 3)
-
Decentralized KD + Adaptive Distillation (D-AKD) decentralized KD implemented with the adaptive distillation loss signal (Eq. 8)
-
Decentralized KD + Peer Selection (D-KD-PS) decentralized KD implemented with the greedy utility-driven peer selection (Eq. 12)
-
SPADE-KD (♠-KD) our complete decentralized KD approach (Alg. 1) implemented with both adaptive knowledge distillation and greedy utility-based peer selection
In our experiments, we want to observe the collaboration advantage, i.e., how beneficial distillation is across different approaches. Therefore, since clients already perform local
Comparison against the related distributed distillation method(s) is included in the supplemental appendix and is omitted here due to the infeasibility of direct comparison between different collaboration structures.
Table 3: Final-round client loss (L) and percentage improvement ( ) of the utility-based peer selection ablation (D-KD-PS), the adaptive knowledge distillation ablation (D-AKD), and the complete SPADE-KD (♠-KD) method versus the naive decentralized KD (D-KD) baseline, at the mean, , and across clients.
| Method | FEMNIST | MNIST | SpeechCommands | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Mean | Mean | Mean | ||||||||||||||||
| D-KD | 0.620 | - | 0.346 | - | 0.969 | - | 0.432 | - | 0.224 | - | 0.691 | - | 1.095 | - | 0.393 | - | 1.804 | - |
| D-KD-PS | 0.566 | +8.7 | 0.314 | +9.4 | 0.890 | +8.2 | 0.344 | +20.4 | 0.185 | +17.4 | 0.527 | +23.8 | 1.086 | +0.9 | 0.383 | +2.6 | 1.821 | -0.9 |
| D-AKD | 0.586 | +5.4 | 0.300 | +13.5 | 0.953 | +1.7 | 0.399 | +7.7 | 0.204 | +8.9 | 0.655 | +5.2 | 1.075 | +1.9 | 0.352 | +10.5 | 1.826 | -1.2 |
| ♠-KD | 0.548 | +11.6 | 0.276 | +20.2 | 0.894 | +7.8 | 0.333 | +23.0 | 0.168 | +25.0 | 0.524 | +24.3 | 1.073 | +2.1 | 0.349 | +11.4 | 1.831 | -1.5 |
training at each round, we set and to completely suppress the supervision task loss while retaining the full distillation loss during the distillation step. We opt to use greedy peer selection (Eq. 12) to best show the impact of our utility-based peer selection.
Results & Discussion
We monitor loss as our primary performance metric . Results are shown for the FEMNIST scenario in Fig. 1, the label-swapped MNIST scenario in Fig. 2, and the SpeechCommands scenario in Fig. 3. Final performance losses and relative performance advantages are shown in Table 3. These results reflect the performance metrics of all clients averaged across 5 unique seeds for the MNIST and FEMNIST scenarios and 10 unique seeds for the SpeechCommands scenario to account for noisiness incurred from scare data availability. Our experiments demonstrate that overall, while both its adaptive distillation and utility-based peer selection components each provide tangible performance advantages, the combination of both in SPADE-KD yields better performance than each component in isolation in virtually all cases.
Component Effectiveness The impacts of each component mechanism do vary. Earlier in the collaboration phase (as seen in the FEMNIST or MNIST scenarios) or when dealing with scarce local data availability (as seen in the SpeechCommands scenario), adaptive distillation without utility-based peer selection tends to be the more advantageous component, achieving higher initial performance gains than peer selection without adaptive distillation. However, as collaborative training continues and native models become more stationary, utility-based peer selection without adaptive distillation seems to provide a greater advantage than adaptive distillation without utility-based peer selection. We can even observe that in the FEMNIST and MNIST scenarios, utility-based peer selection in isolation appears to match or slightly exceed the accuracy of SPADE-KD; however, even in these cases, SPADE-KD still achieves lower overall loss.
Managing Quality Disparity We observe that our approach yields the lowest loss for both higher-quality models (via losses) and lower-quality models (via losses) in virtually all cases. This implies that our method is effective in suppressing the distillation influence of lower-quality models and preserving the training progress of higher-quality models while still enabling the unidirectional flow of knowledge to those lower-quality models. We observe a specific exception in the massively distributed SpeechCommands scenario – our approach does not serve lower-quality client models as well (Fig. 3c); we can attribute this to the stochastic noise expected in the weakest models training over the fewest local samples, but this leaves room for future exploration.
Diminishing Scores We observe that clients' score values for contacted peers decrease over time. This makes sense – while contribution potential is high in earlier rounds of training, as a client has more rounds to train on its local data, the potential for another client's model trained on that client's data diminishes. This implicit decaying of score also acts as a natural defense against stale score values, such that a peer with a stale high score may be selected for knowledge transfer but that interaction would update that stale score. Even then, optimal peer selection still selects the most useful peers to request models from, and as scores diminish, clients are encouraged to contact unexplored peers due to the default neutral contribution potential .
Conclusion
We presented SPADE-KD, a fully decentralized, serverless framework for collaborative learning among clients that are heterogeneous in their data distributions, model architectures, and model quality. Its core idea is that a single, locally computed utility signal — the relative task-loss advantage of a received model over a client's own model on its local data — can act as an adaptive coefficient for how much a client distills from a received model and as a bandit score for which candidate peers it queries next. Across three classification scenarios spanning artificial and natural heterogeneity, adaptive distillation and utility-based peer selection each yielded tangible advantages, and their combination in SPADE-KD generally achieved the lowest loss — surpassing a the naive decentralized distillation baseline and either component in isolation. Our future work will focus on adapting distillation selectivity to a client's data scarcity or training stage and exploring richer multi-armed bandit formulations for peer selection beyond the policies considered here.
Accuracies are included in the supplemental appendix.

(a) Mean loss.
(b) 10th percentile loss.
(c) 90th percentile loss.
D-KD D-KD-PS D-AKD SPADE-KD
Figure 1: Client loss on the FEMNIST scenario (naturally heterogeneous image data): mean, , and across clients.

(a) Mean loss.
(b) 10th percentile loss.
D-KD D-KD-PS D-AKD SPADE-KD
(c) 90th percentile loss.
Figure 2: Client loss on the MNIST scenario (artificially heterogeneous image data): mean, , and across clients.

(a) Mean loss.
(b) 10th percentile loss.
D-KD D-KD-PS D-AKD SPADE-KD
(c) 90th percentile loss.
Figure 3: Client loss on the SpeechCommands scenario (naturally heterogeneous audio data): mean, , and across clients.
References
Beltrán, E. T. M.; Pérez, M. Q.; Sánchez, P. M. S.; Bernal, S. L.; Bovet, G.; Pérez, M. G.; Pérez, G. M.; and Celdrán, A. H. 2023. Decentralized federated learning: Fundamentals, state of the art, frameworks, trends, and challenges. IEEE Communications Surveys & Tutorials, 25(4): 2983–3013.
Berg, A.; O'Connor, M.; and Cruz, M. T. 2021. Keyword transformer: A self-attention model for keyword spotting. In Proc. Interspeech 2021, 4249–4253.
Beutel, D. J.; Topal, T.; Mathur, A.; Qiu, X.; Parcollet, T.; and Lane, N. D. 2020. Flower: A Friendly Federated Learning Research Framework. CoRR, abs/2007.14390.
Caldas, S.; Wu, P.; Li, T.; Konečný, J.; McMahan, H. B.; Smith, V.; and Talwalkar, A. 2018. LEAF: A Benchmark for Federated Settings. CoRR, abs/1812.01097.
Hegedüs, I.; Danner, G.; and Jelasity, M. 2019. Gossip learning as a decentralized alternative to federated learning. In IFIP International Conference on Distributed Applications and Interoperable Systems, 74–90. Springer.
Jeong, E.; and Kountouris, M. 2023. Personalized Decentralized Federated Learning with Knowledge Distillation. In ICC 2023 - IEEE International Conference on Communications, 1982–1987. ISSN: 1938-1883.
Kalra, S.; Wen, J.; Cresswell, J. C.; Volkovs, M.; and Tizhoosh, H. R. 2023. Decentralized federated learning through proxy model sharing. Nature Communications, 14(1): 2899.
Khalil, Y. H.; Estiri, A. H.; Beitollahi, M.; Asadi, N.; Hemati, S.; Li, X.; Zhang, G.; and Chen, X. 2024. Dfml: Decentralized federated mutual learning. arXiv preprint arXiv:2402.01863.
LeCun, Y.; Cortes, C.; and Burges, C. 2010. MNIST handwritten digit database. ATT Labs [Online]. Available: http://yann.lecun.com/exdb/mnist, 2.
Ma, Z.; Xu, Y.; Xu, H.; Liu, J.; and Xue, Y. 2024. Like Attracts Like: Personalized Federated Learning in Decentralized Edge Computing. IEEE Transactions on Mobile Computing, 23(2): 1080–1096. Conference Name: IEEE Transactions on Mobile Computing.
McMahan, B.; Moore, E.; Ramage, D.; Hampson, S.; and y Arcas, B. A. 2017. Communication-efficient learning of deep networks from decentralized data. In Artificial intelligence and statistics, 1273–1282. Pmlr.
Meng, L.; Qi, Z.; Wu, L.; Du, X.; Li, Z.; Cui, L.; and Meng, X. 2024. Improving global generalization and local personalization for federated learning. IEEE Transactions on Neural Networks and Learning Systems, 36(1): 76–87.
Sattler, F.; Müller, K.-R.; and Samek, W. 2020. Clustered federated learning: Model-agnostic distributed multitask optimization under privacy constraints. IEEE transactions on neural networks and learning systems, 32(8): 3710–3722.
Singh, I.; Vissol-Gaudin, E.; Otung, A.; and Sekiya, M. 2026. Learning to Collaborate: An Orchestrated-Decentralized Framework for Peer-to-Peer LLM Federation. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40, 25472–25480.
Soltani, B.; Haghighi, V.; Zhou, Y.; Sheng, Q. Z.; and Yao, L. 2024. DFLStar: A decentralized federated learning framework with self-knowledge distillation and participant selection. In Proceedings of the 33rd ACM International Conference on Information and Knowledge Management, 2108–2117.
Tan, A. Z.; Yu, H.; Cui, L.; and Yang, Q. 2022. Towards personalized federated learning. IEEE transactions on neural networks and learning systems, 34(12): 9587–9603.
Tang, Z.; Shi, S.; Li, B.; and Chu, X. 2022. GossipFL: A decentralized federated learning framework with sparsified and adaptive communication. IEEE Transactions on Parallel and Distributed Systems, 34(3): 909–922.
Warden, P. 2018. Speech Commands: A Dataset for Limited-Vocabulary Speech Recognition. ArXiv e-prints.
Watts, D. J.; and Strogatz, S. H. 1998. Collective dynamics of ‘small-world’ networks. nature, 393(6684): 440–442.
Wu, C.; Wu, F.; Lyu, L.; Huang, Y.; and Xie, X. 2022. Communication-efficient federated learning via knowledge distillation. Nature communications, 13(1): 2032.
Zec, E. L.; Hagander, T.; Ihre-Thomason, E.; and Girdzi-jauskas, S. 2024. On the effects of similarity metrics in decentralized deep learning under distributional shift. arXiv preprint arXiv:2409.10720.
Appendix
Full Experiment Results
We include more comprehensive results of our experiments:
• Figure 4: Scores of candidate peers in SPADE-KD for the FEMNIST scenario.
• Figure 5: Scores of candidate peers in SPADE-KD for the MNIST scenario.
• Figure 6: Scores of candidate peers in SPADE-KD for the SpeechCommands scenario.
• Figure 7: Clients’ loss and accuracy for the FEMNIST scenario.
• Figure 8: Clients’ loss and accuracy for the label-swapped MNIST scenario.
• Figure 9: Clients’ loss and accuracy for the SpeechCommands scenario.
• Table 4: Summary of client performance via final-round loss for all scenarios.
• Table 5: Summary of client performance via final-round accuracy for all scenarios.
Visualizing Diminishing Scores Figs. 4, 5, and 6 present average of clients' recorded scores for selected candidate peers as part of the utility-based peer selection in SPADE-KD each scenario to showcase how clients' recorded scores for candidate peers diminishes over time. Note that at the start of the collaboration phase, however, all clients record for all candidate peers , since no collaboration has occurred yet between clients and the recalled score is defaulted to .
Analyzing Accuracy Performance We present accuracy performance across the different methods in addition to loss performance in Figs. 7, 8, and 9. However, we note that the performance advantages in terms of accuracy of our proposed approach SPADE-KD and its ablations over the baselines are harder to discern that in terms of loss. While it still holds that SPADE-KD achieves the highest accuracies in most cases, it is sometimes matched or surpassed by the utility-based peer selection alone (D-KD-PS); and yet, SPADE-KD still yields

Figure 4: ♠-KD client-recorded scores over the course of collaborative training in the FEMNIST scenario.

Figure 5: ♠-KD client-recorded scores over the course of collaborative training in the MNIST scenario.

Figure 6: ♠-KD client-recorded scores over the course of collaborative training in the SpeechCommands scenario.
the lowest loss. We infer that while utility-based peer selection alone can yield good prediction accuracy, the confidence of those predictions can be hindered by divergent client drift, whereas adaptive distillation alongside optimal peer selection can reduce divergent client drift and improve loss. This inference extends beyond the peer selection ablation — when compared to naive decentralized KD (D-KD) in the SpeechCommands scenario, most of the other tested methods appear to achieve worse prediction accuracy, yet achieve lower loss (with the noted exception of the lower-quality models represented by the quantile).
Comparing to Federated KD The class of fully-decentralized distributed knowledge distillation approaches is still sparse at the time of writing, and the sub-class of heterogeneity-aware approaches is even more so, making it difficult to find related works to use as state-of-the-art baselines in our experiments. Existing semi-decentralized distributed knowledge distillation approaches rely on electing aggregator nodes (Khalil et al. 2024) mutually distill on local data (with the implicit assumption that any heterogeneity in underlying data distributions can be overcome by functional consensus) or centralized matchmakers for pairwise model exchanges (Singh et al. 2026). In these results, we opt to include FedKD (Wu et al. 2022) as related method, since it uses mutual distillation between a publicly aggregated mentee model and locally trained and distilled mentor model to facilitate adaptive distillation that acknowledges

(a) Mean loss.
(b) 10th percentile loss.

(c) 90th percentile loss.

(d) Mean accuracy.
(e) 10th percentile accuracy.

(f) 90th percentile accuracy.
FedKD D-KD D-KD-PS D-AKD SPADE-KD
Figure 7: Clients' loss and accuracy on the FEMNIST scenario (naturally heterogeneous image data).

(a) Mean loss.
(b) 10th percentile loss.

(c) 90th percentile loss.

(d) Mean loss.
(e) 10th percentile accuracy.

(f) 90th percentile accuracy.
FedKD D-KD D-KD-PS D-AKD SPADE-KD
Figure 8: Clients' loss and accuracy on the MNIST scenario (artificially heterogeneous image data).

(a) Mean loss.
(b) 10th percentile loss.
(c) 90th percentile loss.

(d) Mean loss.
(e) 10th percentile accuracy.
(f) 90th percentile accuracy.
— FedKD — D-KD — D-KD-PS — D-AKD — SPADE-KD
Figure 9: Clients' loss and accuracy on the SpeechCommands scenario (naturally heterogeneous audio data).
Table 4: Final-round client loss (lower is better) and percentage improvement versus the naive decentralized KD (D-KD) baseline, at the mean, , and across clients. means lower loss than D-KD.
| Method | FEMNIST | MNIST | SpeechCommands | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Mean | Mean | Mean | ||||||||||||||||
| L | Δ% | L | Δ% | L | Δ% | L | Δ% | L | Δ% | L | Δ% | L | Δ% | L | Δ% | L | Δ% | |
| FedKD | 0.708 | -14.3 | 0.433 | -25.2 | 1.063 | -9.7 | 0.442 | -2.3 | 0.249 | -11.6 | 0.679 | +1.8 | 1.093 | +0.3 | 0.445 | -13.1 | 1.828 | -1.3 |
| D-KD | 0.620 | - | 0.346 | - | 0.969 | - | 0.432 | - | 0.224 | - | 0.691 | - | 1.095 | - | 0.393 | - | 1.804 | - |
| D-KD-PS | 0.566 | +8.7 | 0.314 | +9.4 | 0.890 | +8.2 | 0.344 | +20.4 | 0.185 | +17.4 | 0.527 | +23.8 | 1.086 | +0.9 | 0.383 | +2.6 | 1.821 | -0.9 |
| D-AKD | 0.586 | +5.4 | 0.300 | +13.5 | 0.953 | +1.7 | 0.399 | +7.7 | 0.204 | +8.9 | 0.655 | +5.2 | 1.075 | +1.9 | 0.352 | +10.5 | 1.826 | -1.2 |
| ♠-KD | 0.548 | +11.6 | 0.276 | +20.2 | 0.894 | +7.8 | 0.333 | +23.0 | 0.168 | +25.0 | 0.524 | +24.3 | 1.073 | +2.1 | 0.349 | +11.4 | 1.831 | -1.5 |
Table 5: Final-round client accuracy (higher is better) and percentage improvement versus the naive decentralized KD (D-KD) baseline, at the mean, , and across clients. means higher accuracy than D-KD.
| Method | FEMNIST | MNIST | SpeechCommands | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Mean | Mean | Mean | ||||||||||||||||
| Acc. | Δ% | Acc. | Δ% | Acc. | Δ% | Acc. | Δ% | Acc. | Δ% | Acc. | Δ% | Acc. | Δ% | Acc. | Δ% | Acc. | Δ% | |
| FedKD | 0.828 | -1.9 | 0.678 | -1.9 | 0.956 | -0.5 | 0.883 | +0.2 | 0.815 | +1.7 | 0.944 | +0.2 | 0.654 | -1.4 | 0.378 | -5.7 | 0.918 | -0.2 |
| D-KD | 0.844 | - | 0.692 | - | 0.961 | - | 0.881 | - | 0.802 | - | 0.942 | - | 0.663 | - | 0.401 | - | 0.920 | - |
| D-KD-PS | 0.854 | +1.2 | 0.727 | +5.1 | 0.964 | +0.3 | 0.898 | +1.9 | 0.846 | +5.5 | 0.950 | +0.9 | 0.663 | +0.0 | 0.387 | -3.3 | 0.910 | -1.2 |
| D-AKD | 0.843 | -0.1 | 0.699 | +1.1 | 0.961 | +0.0 | 0.887 | +0.7 | 0.822 | +2.5 | 0.946 | +0.5 | 0.662 | -0.2 | 0.399 | -0.4 | 0.915 | -0.6 |
| ♠-KD | 0.852 | +1.0 | 0.727 | +5.1 | 0.964 | +0.3 | 0.899 | +2.0 | 0.842 | +5.0 | 0.950 | +0.9 | 0.664 | +0.2 | 0.389 | -2.9 | 0.919 | -0.1 |
heterogeneity in underlying data distributions.
However, even then, a direct comparison between FedKD and the decentralized distillation approaches we present poses various incompatibilities. First, this federated approach assumes a different communication structure altogether, where clients interact only with the server; thus, we implement a star topology with the server at the middle instead of the small-world peer-to-peer topology (Watts and Strogatz 1998). Second, FedKD uses mutual distillation between its mentor and mentee models to transfer knowledge from the rest of the network, whereas our approaches implement distinct local training and collaborative distillation steps. To attempt to mitigate this, we set to retain both the full task loss and distillation losses. Third, FedKD and other federated knowledge distillation approaches (Kalra et al. 2023) rely on compact proxy models to carry information between clients through server-orchestrated parameter aggregation, making their performance dependent on the structure and capacity of the proxy model architecture itself. We consider that in real world scenarios considering a network of heterogeneous model architectures and inferred heterogeneous computational capacities, the proxy model architecture should be trainable by all clients. Therefore, we select the smallest common model architecture for the intermediary proxy model. Even then, the existence of these factors, however mitigated, and others make direct comparison challenging between federated KD and our decentralized KD methods. Future work will compare our methods and ablations against state-of-the-art decentralized heterogeneity-aware distillation methods as they continue to emerge.
Reproducibility & Code Supplement
The code supplement has been submitted separately as a compressed .zip file which must be extracted before use. Instructions for understanding the implementations and reproducing the experiments are located in AAAI_README.md of the root directory.