Introduction
In decentralized learning, a network of agents collaborates to train a global model by interacting only with their immediate neighbors. This peer-to-peer architecture avoids the communication bottlenecks and single-point-of-failure risks inherent in centralized Federated Learning (FL). However, decentralized systems are particularly vulnerable to data heterogeneity. In real-world deployments, data is rarely distributed independently and identically (IID). Agents may possess skewed (long-tailed) datasets, noisy sensor data, or even malicious intent to "poison" the global model.
Existing decentralized algorithms often struggle to distinguish between helpful neighbors and those providing irrelevant or harmful information, leading to slow convergence or complete training failure. To address this, we present ROSS (RObust decentralized Stochastic learning based on Shapley values), a novel algorithm that utilizes game-theoretic principles to intelligently weight neighbor contributions.
Methodology
ROSS innovates on the standard decentralized stochastic gradient descent (DSGD) framework by introducing a robust aggregation mechanism based on the marginal utility of neighbor updates.
1. Cross-Gradients
Rather than simply averaging model parameters, each agent $i$ computes a "cross-gradient." This is defined as the derivative of agent $i$’s own local loss function evaluated at the neighbor’s model parameters. This provides a direct, local measure of how well a neighbor’s current "knowledge" aligns with agent $i$’s local data distribution.
2. Shapley Value Weighting
To aggregate these gradients fairly, ROSS treats neighbors as players in a cooperative game. It calculates the Shapley value for each neighbor, representing that neighbor's average marginal contribution to the model's prediction accuracy across all possible subsets (coalitions) of neighbors. This "coalition-aware" property is crucial; it accounts for the fact that some data distributions might be redundant when combined, while others are complementary.
3. Computational Efficiency via Monte Carlo
Calculating exact Shapley values is computationally expensive, scaling exponentially with the number of neighbors. ROSS employs a Monte Carlo-based estimation to maintain efficiency. Empirical results show that even a small number of iterations ($R=10$) is sufficient to achieve high performance and robust weighting.
4. Momentum-like Updates
The algorithm incorporates a momentum buffer to smooth out updates and accelerate convergence, drawing inspiration from decentralized momentum SGD (DMSGD) to ensure stability in stochastic environments.
Experimental Evaluation
The algorithm was evaluated on MNIST and CIFAR-10 benchmarks, modified to simulate four distinct "data challenges":
- Long-tailed distribution: Class-imbalanced training data.
- Data noise: Gaussian noise added to local inputs.
- Label noise: Flipping labels (e.g., changing a '7' to an '8').
- Gradient poisoning: Maliciously crafted gradients designed to disrupt the global objective.
Key Results
- Superior Convergence: On the MNIST dataset, ROSS typically reaches its minimum loss within approximately 60 rounds. In contrast, state-of-the-art baselines like CGA require ~120 rounds, while others like DMSGD or BALANCE often fail to converge within 150 rounds under heterogeneous conditions.
- Enhanced Accuracy: In long-tailed MNIST scenarios with 10 agents, ROSS achieved ~98% test accuracy. This outperformed the next best baselines, NET-FLEET (96%) and CGA (94%), while some standard methods dropped as low as 84%.
- Scalability and Topology Independence: As the number of agents ($N$) increases, ROSS maintains stable performance. Under data noise with $N=30$, ROSS's average loss was 3–17× smaller than the baselines. Furthermore, ROSS proved effective across various network structures, including fully connected, bipartite, and ring graphs.
- Theoretical Guarantees: The authors provide rigorous proof that ROSS achieves a linear convergence speedup of $O(1/\sqrt{NT})$, matching the theoretical optimal rate for decentralized stochastic gradient descent.
Discussion and Future Work
ROSS demonstrates that fairness-based weighting acts as a natural defense against both noise and adversarial actors. If a neighbor's gradient does not improve (or actively harms) the prediction accuracy on a clean local validation set, its Shapley value—and its weight in the aggregation—drops significantly.
However, some limitations remain:
- Communication Overhead: The exchange of cross-gradients increases the communication load per round. Future iterations could integrate gradient compression or pruning techniques.
- Validation Set Requirement: ROSS assumes each agent holds a small, clean validation set (approximately 20% of the test set size). While effective, this may be a hurdle in extremely data-constrained environments.
- Adaptive Adversaries: Future research is required to evaluate ROSS against "Shapley-aware" adversaries who might attempt to mimic benign updates to bypass the weighting mechanism while slowly drifting the model.
Summary updated