Introduction
Federated Learning (FL) enables collaborative model training across decentralized clients without direct data sharing. However, a significant hurdle remains: handling Non-IID (Independent and Identically Distributed) data. When clients possess highly heterogeneous data distributions, the global model often suffers from "catastrophic forgetting," where local updates inadvertently erase knowledge learned from the broader collective. This paper introduces FedProj, a novel framework designed to mitigate this forgetting by preserving global knowledge gradients during local training.
The Challenge: Global Knowledge Forgetting
In standard FL frameworks like FedAvg, clients perform local training steps to minimize loss on their private datasets. This process often leads to "client drift," where the model overfits to local features and loses its grasp on the global decision boundaries. The authors identify a "Perfect Start Paradox": even if a client is initialized with an optimal global model, local training quickly degrades its performance on the global task. This suggests that the conflict between local and global objectives is inherent and occurs at the gradient level before being baked into the model weights.
The FedProj Methodology
FedProj addresses the stability-plasticity dilemma by treating FL as a continual learning problem where the global model represents the "previous task" to be preserved while learning from new local data.
1. Client-Side Gradient Projection
The core innovation is a gradient projection technique. During local training, clients maintain an "episodic memory" of global knowledge using a small, unlabeled public dataset. For every update, the client computes a local gradient ($g_{local}$) and a global gradient ($g_{glob}$). If the local update conflicts with global knowledge (i.e., the gradients point in opposite directions), FedProj projects the local gradient onto a subspace orthogonal to the global gradient.
This ensures that local learning proceeds without increasing the global loss, effectively stopping the "damage" of forgetting at the source.
2. Server-Side Ensemble Distillation
Following local updates, the server employs knowledge distillation rather than simple weight averaging. It uses a public dataset to aggregate the diverse expertise of client models into a single student model, fusing their learned features into a cohesive global representation.
3. Weight Divergence Regularization
To ensure stability when public and private data distributions differ, a regularization term is added during distillation. This penalty keeps the refined global model close to the initial average, preventing noisy updates from the public data from degrading the model's integrity.
Experimental Evaluation
The researchers benchmarked FedProj against several state-of-the-art (SOTA) baselines, including FedProx, MOON, and FedDF. The evaluation spanned Computer Vision (CV) tasks (CIFAR-10/100, CINIC-10) and Natural Language Processing (NLP) tasks (MNLI, SST-2, MARC).
Results and Discussion
FedProj consistently outperformed all baselines, particularly in scenarios with high data skew ($\beta=0.3$).
In Computer Vision tasks, FedProj achieved a significant lead. For instance, on CIFAR-10 with $\beta=0.3$, it reached 65.52% accuracy, surpassing FedAvg (63.19%) and FedProx (61.40%). The gains were even more dramatic in NLP; on the MNLI dataset, FedProj reached 44.38% accuracy, a massive jump over FedAvg (35.67%) and the previous best distillation method, FedDF (36.65%). Furthermore, FedProj exhibited lower variance across runs, indicating superior stability.
Conclusion
FedProj effectively mitigates global knowledge forgetting by constraining local updates at the gradient level. By ensuring that local learning does not conflict with global objectives, it provides a robust solution for Federated Learning on Non-IID data. While the reliance on public data and increased client-side computation remain areas for future optimization, FedProj represents a significant step toward stable and accurate decentralized learning.
Summary updated