Abstract
Non-IID data present a tough challenge for federated learning. In this paper, we explore a novel idea of facilitating pairwise collaborations between clients with similar data. We propose FedAMP, a new method employing federated attentive message passing to facilitate similar clients to collaborate more. We establish the convergence of FedAMP for both convex and non-convex models, and propose a heuristic method to further improve the performance of FedAMP when clients adopt deep neural networks as personalized models. Our extensive experiments on benchmark data sets demonstrate the superior performance of the proposed methods.
Introduction
Standard Federated Learning (FL) typically aims to train a single global model that serves all participating clients. While this approach is effective when data is identically and independently distributed (IID), it often fails in "cross-silo" scenarios—such as collaborations between different hospitals or financial institutions—where data distributions vary significantly (non-IID). In these cases, a single global model may be "poisoned" by conflicting data from diverse sources, leading to poor performance for individual participants.
The fundamental bottleneck is the assumption that one global model can fit all clients. Existing personalization methods often rely on fine-tuning a global model, but this is insufficient if the starting global model is already compromised by data heterogeneity. The challenge lies in enabling similar clients to collaborate deeply without a central global model and without compromising data privacy.
The FedAMP Framework
To address these challenges, we introduce FedAMP (Federated Attentive Message Passing). Unlike traditional FL, FedAMP moves away from the "one-size-fits-all" paradigm by maintaining personalized cloud models for each client on the server.
Core Innovations
- Personalized Cloud Models: The server maintains a unique model $u_i^k$ for every client $i$.
- Attentive Message Passing: In each communication round, a client's model is updated via a weighted combination of all other clients' models. These weights, $\xi_{i,j}$, are determined by an attention mechanism: models that are more similar in parameter space receive higher weights.
- Automatic Clustering: This mechanism creates a positive feedback loop where similar clients collaborate more intensely, effectively "clustering" clients with similar tasks automatically without requiring prior labels.
- HeurFedAMP for Deep Learning: For Deep Neural Networks (DNNs), standard Euclidean distance often fails due to the high dimensionality of weight vectors. We propose HeurFedAMP, which utilizes cosine similarity to better measure relationships between high-dimensional models.
Experimental Evaluation
We evaluated FedAMP and HeurFedAMP against four standard benchmarks: MNIST, FMNIST, EMNIST, and CIFAR100. We tested these across various settings, including IID, pathological non-IID (2 classes per client), and a "Practical non-IID" setting where clients are naturally grouped by similarity (e.g., some have digits, others have letters).
Key Results
Our experiments demonstrate that FedAMP significantly outperforms standard methods like FedAvg and other personalized approaches like APFL and SCAFFOLD. For instance, on the challenging Practical non-IID CIFAR100 task, HeurFedAMP achieved 53.27% accuracy, compared to FedAvg's 35.21%.
Beyond raw accuracy, visualization of the collaboration weights $\xi_{i,j}$ confirmed that the attention mechanism correctly identifies ground-truth groups. Clients with similar data distributions were assigned high mutual weights, proving that model parameter similarity is a robust proxy for data similarity.
Conclusion and Future Work
FedAMP offers a powerful alternative for organizations that wish to collaborate on AI models but possess data too heterogeneous for a single global average. By leveraging attentive message passing, the framework allows for deep, automated pairwise collaboration.
While highly effective for cross-silo FL (tens to hundreds of clients), future work is needed to address the server-side memory overhead required to maintain $m$ separate models for $m$ clients, which currently limits scalability for cross-device FL (millions of clients). Additionally, further research into the communication costs and potential privacy nuances of sharing attention weights will be beneficial for large-scale deployments.
Summary updated