Abstract
Federated Learning (FL) enables collaborative model training while preserving data privacy. However, data heterogeneity across clients (Non-IID data) often degrades the performance of standard aggregation methods like FedAvg. This paper presents FedAWA (Federated learning with Adaptive Weight Aggregation), a method that dynamically adjusts client contribution weights based on "client vectors"—the difference between local and global model parameters. By optimizing these weights to favor updates that align with the collective global direction, FedAWA improves model accuracy and stability in heterogeneous environments without requiring auxiliary proxy data.
1. Introduction
Federated Learning (FL) allows multiple participants to train a shared model without exchanging raw data. Despite its privacy benefits, FL faces a significant hurdle: data heterogeneity. When clients possess non-identically and independently distributed (Non-IID) data, their local updates can diverge significantly.
The standard approach, FedAvg, weights client contributions based solely on dataset size. This "blind" approach fails to account for whether a client's update aligns with the global objective or represents a local outlier. Existing alternatives often rely on privacy-risking "proxy datasets" on the server or use static weights that cannot adapt to the evolving model. FedAWA addresses these issues by introducing a dynamic, consensus-driven weighting scheme.
2. Methodology
The core innovation of FedAWA lies in its use of client vectors to represent local updates and an adaptive optimization process to aggregate them.
2.1 Client Vectors and the Alignment Hypothesis
Instead of directly aggregating raw model parameters, the FedAWA server calculates a "client vector" ($\tau_k^t$) for each participant $k$. This vector is defined as the difference between the client's locally trained model ($\theta_k^t$) and the current global model ($\theta_g^t$).
Empirical analysis suggests that these vectors act as signatures of local data distributions. Through testing, the authors found that updates aligning closely with the aggregated "global vector" are generally more beneficial for generalization.
2.2 Adaptive Optimization
In each communication round, the server solves an optimization problem to determine the aggregation weights ($\lambda$). The goal is to find weights that minimize the distance between individual client vectors and the merged global vector ($\tau_g^t$), while incorporating a regularization term based on cosine similarity to prevent excessive global model drift.
2.3 Layer-wise Granularity (FedAWA-L)
Recognizing that different neural network layers capture features of varying complexity (e.g., edges vs. complex objects), the authors introduced FedAWA-L. This variant calculates unique aggregation weights for every layer, providing finer control over the global model's evolution.
3. Experiments and Results
FedAWA was evaluated on standard computer vision benchmarks (CIFAR-10, CIFAR-100, and TinyImageNet) using Dirichlet sampling ($Dir_\alpha$) to simulate varying degrees of data imbalance.
3.1 Performance and Efficiency
FedAWA consistently outperformed baselines. On CIFAR-100 with high heterogeneity, FedAWA-L achieved 45.27% accuracy, compared to 41.46% for FedAvg. Furthermore, FedAWA proved to be computationally efficient. On ResNet20, it required only 0.82 seconds per aggregation, significantly faster than proxy-based methods like FedLAW, which took over 10 seconds.
3.2 Robustness and Versatility
The method is architecture-agnostic, showing strong performance across CNNs, ResNets, and Vision Transformers (ViT). For ViT on CIFAR-100, FedAWA achieved 31.44% accuracy versus 25.60% for FedAvg. Additionally, FedAWA is "plug-and-play" and can be combined with other client-side optimization methods like FedProx to further boost performance.
4. Conclusion
FedAWA provides a privacy-preserving, efficient, and effective solution for weight aggregation in heterogeneous Federated Learning. By leveraging client vectors and adaptive optimization, it ensures that the global model prioritizes updates that contribute to collective generalization. Future work will explore extending this logic to environments with heterogeneous client model architectures.
Summary updated