Skip to content
AI.info

Research

SPADE-KD: Peer-to-Peer Collaborative Learning under Heterogeneous Settings

Overview Research area: Decentralized and federated deep learning, specifically peer-to-peer collaborative training via knowledge distillation under data, model, and training heterogeneity. Technical

SPADE-KD: Peer-to-Peer Collaborative Learning under Heterogeneous Settings
arXiv
2610.24013
Published
2026-10-15
Authors
Harikrishna Kuttivelil, Katia Obraczka

AI summary

Overview

Research area: Decentralized and federated deep learning, specifically peer-to-peer collaborative training via knowledge distillation under data, model, and training heterogeneity.

Technical level: Advanced. The paper is written for readers comfortable with knowledge distillation, KL divergence, gradient norms, and multi-armed bandit formulations; the prose is dense with notation, though the underlying intuition is explainable in simple terms.

Scope: The paper proposes SPADE-KD, a fully serverless framework in which heterogeneous clients use a single loss-derived utility signal both to weight distillation from each peer's model and to decide which peers to request models from next, and evaluates it on three classification scenarios against a naive decentralized distillation baseline and two ablations.

What This Paper Is About

Most decentralized collaborative learning methods either average model parameters, which forces every client to use the same architecture, or distill knowledge while relying on shared public data or a central coordinator. They also typically push all clients toward one global solution, which is a poor fit when clients' local data distributions differ. SPADE-KD addresses both problems at once: clients with different model architectures exchange models directly and distill from each other, and each client decides how much to learn from a given peer and which peers to contact, using only a locally computed signal and no central infrastructure.

Key Contributions

  1. A decentralized adaptive knowledge distillation method that derives a bounded utility signal γ ∈ [0, 1] from the comparative task-loss advantage of an incoming teacher model over the client's own native model (Eq. 4), and applies it as a coefficient that scales the distillation loss. A second modulation, Γ_i(γ), interpolates between full differentiation and an undifferentiated signal based on the ratio of the client's recent gradient norm to its maximum historical gradient norm (Eq. 5), so that clients early in training do not over-select.
  2. Reuse of that same utility signal for peer selection, formulated as a multi-armed bandit problem per client: the γ values already produced as a by-product of distillation are stored as per-peer scores, with a neutral default γ₀ = 0.5 for never-contacted peers, and used for score-proportionate weighted sampling without replacement (Eq. 11) or greedy top-m selection (Eq. 12), yielding exploration at no extra cost.
  3. The complete SPADE-KD framework, a fully decentralized collaborative deep learning system that requires no central aggregator, no shared global model, and no public dataset, and that accommodates heterogeneity in data distributions, model architecture, and model quality. Transfers are assumed to be asymmetric, not necessarily mutual.
  4. An ablation study isolating adaptive distillation and utility-driven peer selection, comparing both components individually and combined against naive decentralized knowledge distillation across three classification scenarios.

Main Findings

  • Combined method wins on mean loss in all three scenarios. Final-round mean loss: FEMNIST 0.548 versus 0.620 for the D-KD baseline (+11.6%); MNIST 0.333 versus 0.432 (+23.0%); SpeechCommands 1.073 versus 1.095 (+2.1%). Each component alone improves on the baseline in most cases, but the combination is best or near-best nearly everywhere.
  • Ablation, FEMNIST: D-KD-PS (peer selection only) mean 0.566 (+8.7%), D-AKD (adaptive distillation only) mean 0.586 (+5.4%), SPADE-KD 0.548 (+11.6%). At the P₁₀ percentile, SPADE-KD reaches 0.276 (+20.2%) versus 0.314 and 0.300 for the single-component variants.
  • Ablation, MNIST (label-swapped): D-KD-PS mean 0.344 (+20.4%), D-AKD mean 0.399 (+7.7%), SPADE-KD mean 0.333 (+23.0%); at P₁₀, SPADE-KD reaches 0.168 (+25.0%) versus 0.185 and 0.204.
  • Ablation, SpeechCommands (scarce data): gains are smaller and mixed. SPADE-KD mean 1.073 (+2.1%) and P₁₀ 0.349 (+11.4%), while D-KD-PS records +0.9% mean and −0.9% at P₉₀, and D-AKD records +1.9% mean and −1.2% at P₉₀.
  • The two mechanisms help at different times. Adaptive distillation without peer selection gives the larger gain early in collaboration (visible in FEMNIST and MNIST) and when local data is scarce (SpeechCommands); peer selection without adaptive distillation gives the larger gain later, as native models become more stationary.
  • Peer selection alone can nearly match the full method in some views. In FEMNIST and MNIST, D-KD-PS appears to match or slightly exceed SPADE-KD on accuracy (reported in the appendix); SPADE-KD still attains lower loss. On FEMNIST P₉₀ loss, D-KD-PS (0.890) is marginally better than SPADE-KD (0.894).
  • Both tails of the quality distribution improve. SPADE-KD gives the lowest loss for higher-quality models (P₁₀) and lower-quality models (P₉₀) in virtually all cases, suggesting it suppresses weak teachers while preserving strong clients' progress and still letting knowledge flow unidirectionally to weaker clients.
  • Exception in the most distributed scenario. On SpeechCommands P₉₀, SPADE-KD (1.831) is worse than the D-KD baseline (1.804), i.e., the weakest clients are not served as well; the authors attribute this to stochastic noise in the weakest models trained on the fewest local samples and flag it for future work.
  • Scores decay naturally over time. Clients' stored scores for contacted peers decrease as training proceeds, which acts as a defense against stale scores and, combined with the neutral default γ₀ = 0.5, pushes clients toward unexplored peers.

Methodology in Plain English

The authors build a custom discrete-event simulator in Python 3, with models implemented in PyTorch, running on an Apple Mac Studio with an Apple M4 Max chip (16 cores, 128 GB memory). Clients sit on a Watts–Strogatz small-world peer-to-peer graph. Each client first does purely local pre-training (τ_pre rounds of ε epochs), then enters a collaboration phase of τ rounds; in each round it trains locally for ε epochs, requests models from m peers, and distills from them.

Knowledge transfer uses distillation: the student compares its soft outputs against the teacher's using KL divergence, added to its own task loss with weights α_t and α_d. The authors set α_t = 0 and α_d = 1 so that the distillation step contains only the distillation loss, isolating the effect of collaboration.

The core trick is that a client evaluates each received model on its own local data and computes γ = L_i / (L_i + L_k), where L_i is the client's own task loss and L_k is the incoming model's loss. If the peer is better, γ approaches 1 and distillation is encouraged; if worse, γ approaches 0 and it is suppressed; if comparable, γ is about 0.5. That same γ is then stored in a per-client score map and used to pick future partners, either by greedy top-m selection or by sampling proportionally to the scores.

Three datasets are used. MNIST (100 clients, m = 10, ε = 3, τ_pre ≤ 10, τ = 40, ~600 samples/client) is made artificially heterogeneous by swapping unique label sets within each client's data. FEMNIST (80 clients, m = 10, ε = 20, τ_pre ≤ 40, τ = 60, ~53 samples/client) is naturally heterogeneous because partitions follow original digit writers. SpeechCommands (80 clients, m = 5, ε = 2, τ_pre ≤ 15, τ = 60, ~25 samples/client) is naturally heterogeneous by speaker and represents highly distributed settings with very little data per client. FEMNIST and SpeechCommands are obtained through Flower.

Model heterogeneity is created with size tiers. For the digit tasks: a standard LeNet-5 (~61K parameters) plus three compact variants (~29K, ~12.6K, ~3.4K) that share a single 3×3 convolution with 4×4 max-pooling and one fully connected hidden layer, scaled down per tier. For keyword spotting, a shared keyword transformer (KWT) instantiated at ~76K, ~32K, and ~7K parameters. Architectures are assigned round-robin and pre-training amounts are randomly set per client. Results are averaged over 5 unique seeds for MNIST and FEMNIST and 10 for SpeechCommands.

Why This Matters

Impact on research. The paper's central claim is structural rather than incremental: one locally measurable quantity — the loss advantage of an incoming model on the client's own data — can simultaneously govern how much to distill and who to ask next. This collapses two problems that decentralized distillation literature normally treats separately, and it does so without public data, a central matchmaker, or homogeneous architectures. It also reframes decentralized collaboration as a personalized rather than consensus objective, which is a meaningful shift from the global-model assumption baked into most federated and gossip learning work.

Real-world applications:

  • Fleets of edge devices with different hardware tiers (phones, cameras, sensors) that cannot share data or run identical models.
  • Smart-home and personal-assistant devices that must adapt to individual households whose data distributions genuinely differ, rather than to one global average user.
  • Clinical or institutional settings where each site holds a different patient population and a locally optimal model is more useful than a pooled one.
  • Keyword spotting and other on-device audio tasks in bandwidth- and privacy-constrained deployments, which is precisely the SpeechCommands scenario studied here.

Industry relevance. Removing the central aggregator removes a single point of failure and a communication bottleneck, both operationally attractive for deployments spanning many organizations. Because only forward-pass outputs are exchanged and the client's native architecture is never constrained, SPADE-KD fits environments with mixed, pre-existing hardware and models — a common reality that parameter-averaging schemes cannot accommodate.

Future Directions

  • Improving service to the weakest clients. SPADE-KD underperformed the naive baseline at P₉₀ on SpeechCommands (1.831 versus 1.804). The authors attribute this to noise in models trained on ~25 samples each and leave the fix open.
  • Exploring other bandit solvers. The paper notes that alternatives to greedy and score-proportionate selection exist but that a thorough exploration is outside its scope.
  • Reconciling the accuracy and loss pictures. Peer selection alone appears to match or exceed SPADE-KD's accuracy on FEMNIST and MNIST while SPADE-KD has lower loss; understanding this divergence, and comparing against other distributed distillation methods (deferred to the appendix due to incompatible collaboration structures), remain open.
  • Testing beyond small models and three datasets. All models here are deliberately small (3.4K to 76K parameters) and all tasks are classification; scaling behavior and non-classification tasks are not reported.

Target Audience

Graduate students and researchers in decentralized/federated learning and distributed deep learning who are already familiar with knowledge distillation and want a personalized, architecture-agnostic alternative to parameter averaging. It will also interest practitioners building serverless edge collaboration systems who need to reason about heterogeneous model quality and peer selection. Readers new to the field will find the intuition accessible but the formal sections (Eqs. 4–12 and Algorithm 1) demanding.

Authors’ abstract

Peer-to-peer collaborative learning is an emerging distributed deep learning paradigm that eliminates the need for a central aggregator and disseminator, avoiding the single-point-of-failure and bottleneck issues they can bring. Many such approaches 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. Many of these approaches also make a one-size-fits-all assumption, i.e., jointly training 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 with both model architecture and data distribution heterogeneity, we present SPADE-KD -- a fully decentralized 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. Using federated classification tasks, we demonstrate that SPADE-KD consistent outperforms naive decentralized distillation with lower loss and faster convergence and that its individual components are more effective together than independently.

Read the original paper