Abstract
Federated Learning (FL) often struggles with "Non-IID" data distributions, where local client datasets vary significantly, leading to model drift and poor global performance. FedDW (Distilling Weights) is a novel framework designed to mitigate this issue by exploiting a hidden consistency between a model's soft labels and its classifier weights. By regularizing local training to match a globally aggregated class relationship distribution, FedDW improves accuracy by an average of 3% over state-of-the-art methods with nearly zero additional computational cost.
Introduction
In standard Federated Learning, a central server coordinates multiple clients—such as mobile devices or medical institutions—to train a shared model without accessing raw data. While privacy-preserving, this setup faces optimization hurdles when data is Non-Independent and Identically Distributed (Non-IID). For instance, if one client only possesses images of "cats" and another only "dogs," their local models will diverge. Simple averaging of these specialized models often results in a sub-optimal global model.
To address this, the authors introduce the concept of Deep Learning Encrypted Data (DLE data). DLE data consists of information generated during training—such as feature vectors, soft labels, or model parameters—that captures essential dataset characteristics while remaining mathematically irreversible, ensuring privacy while enabling better coordination.
Methodology: The Consistency Principle
The core innovation of FedDW is the discovery of the Consistency Principle, which relates two distinct representations of class relationships:
- Soft Label (SL) Matrix: Captures inter-class similarities based on model probability outputs.
- Class Relation (CR) Matrix: Derived directly from the classifier's weight matrix by calculating $\omega \omega^\top$.
In an ideal IID scenario, these two matrices are nearly identical as they both reflect intrinsic class relationships. FedDW leverages this by aggregating "Soft Labels" from all clients to construct a Global SL Matrix ($Ω^{global}$). This matrix is sent back to clients to serve as a "gold standard" for local regularization.
Local Training and Global Aggregation
During local training, FedDW instructs the model to ensure its internal weight structure (the CR matrix) respects the global relationships between all classes, even those not present in the local dataset. This is achieved through a regularization loss term added to the standard classification loss.
As shown in the technical workflow, the server performs global aggregation of both model parameters ($\theta$) and logit output matrices. The local client then optimizes a composite loss function $\mathcal{L}_t^n = \mathcal{L}_{cla,t}^n + \lambda \mathcal{L}_{reg,t}^n$, where the regularization term $\mathcal{L}_{reg,t}^n$ aligns the local weights $\omega_t^n$ with the global class relationship $\bar{\Omega}_t^{global}$.
Experimental Evaluation
The researchers evaluated FedDW against 10 major FL frameworks (including FedAvg, FedProx, and MOON) across several benchmarks:
- Computer Vision: MNIST, FashionMNIST, CIFAR-10, and CIFAR-100.
- Natural Language Processing: IMDB sentiment analysis.
- Heterogeneity: Data imbalance was simulated using a Dirichlet distribution ($Dir(\beta)$) to test both practical and extreme pathological scenarios.
Key Insights
- Weight Modulus Paradox: The authors observed that the modulus (size) of a class's weight vector is negatively correlated with the amount of data for that class. This insight explains why unregularized Non-IID training often fails.
- Efficiency: Because the regularization only targets the final classifier layer, the computational overhead is negligible. FedDW remains nearly as fast as the baseline FedAvg while providing significantly higher performance.
Results and Conclusion
FedDW demonstrated superior accuracy, boosting performance by an average of 3% in highly heterogeneous settings. It also exhibited faster convergence, reaching target accuracy levels in fewer communication rounds than competing methods. The framework proved scalable up to 100 clients and compatible with various architectures like ResNet-18 and MobileNet.
While currently focused on classification tasks, future work may extend these principles to generative models or regression. FedDW represents a significant step forward in making Federated Learning robust to the realities of diverse, real-world data distributions without sacrificing privacy or efficiency.
Summary updated