Abstract
In the evolving landscape of Cyber-Physical-Social Systems (CPSS), Federated Learning (FL) has emerged as a vital paradigm for training collaborative models while maintaining data localization. However, the integration of Differential Privacy (DP) to prevent inference attacks often results in significant accuracy degradation due to the stochastic noise injected into model updates. This paper introduces GCFL, a Gradient Correction-based Federated Learning framework designed to mitigate this utility loss. By implementing a server-side projection mechanism that identifies and corrects conflicting noisy gradients, GCFL maintains high classification accuracy even under stringent privacy budgets. Experimental results across MNIST, CIFAR-10, and COVID-19 datasets demonstrate that GCFL consistently outperforms state-of-the-art privacy-preserving FL methods.
1. Introduction
Cyber-Physical-Social Systems (CPSS), such as smart healthcare networks and autonomous transportation systems, generate vast amounts of sensitive data distributed across heterogeneous devices. Federated Learning (FL) allows these devices to train a shared global model without centralizing raw data, offering a first line of defense for user privacy.
Despite its benefits, FL remains vulnerable to sophisticated inference attacks where adversaries reconstruct private training data from intercepted model updates. To counter this, Differential Privacy (DP) is often applied via DP-SGD, which clips gradients and adds Gaussian noise. While DP provides rigorous mathematical privacy guarantees, the added noise frequently obscures the true gradient signal, leading to poor model convergence and reduced accuracy. GCFL addresses this "privacy-utility trade-off" by treating DP noise as a directional problem that can be corrected at the server level.
2. The GCFL Framework
GCFL maintains the standard client-side privacy protocols while introducing a novel server-side aggregation strategy. The framework operates in two primary phases:
2.1 Client-Side Training with DP-SGD
Each client performs local training on its private dataset. To satisfy differential privacy, the resulting local gradients are processed using two steps:
- Gradient Clipping: Gradients are clipped to a fixed threshold ($C_t$) to bound the sensitivity of the update.
- Noise Injection: Gaussian noise, determined by a noise multiplier ($\sigma$), is added to the clipped gradient before it is transmitted to the server.
2.2 Server-Side Gradient Correction
The core innovation of GCFL lies in how the server handles these noisy updates. Rather than simple averaging, which allows noise to propagate into the global model, the server performs a denoising operation based on geometric alignment:
- Conflict Detection: The server identifies a reference direction for convergence by selecting a subset of client updates. It then calculates the cosine similarity between this reference and individual incoming gradients. A negative similarity indicates that the noise has pushed the gradient in a direction that actively opposes global convergence.
- Gradient Projection: For gradients identified as conflicting, the server applies a projection mechanism. The conflicting gradient is projected onto the normal plane of the reference gradient. This process effectively "strips away" the components of the noise that hinder convergence while preserving the underlying gradient information that aligns with the model's learning path.
3. Experimental Evaluation
The authors evaluated GCFL against standard baselines, including DP-FedAvg and DP-Scaffold, using three benchmark datasets representing different CPSS use cases:
- MNIST & Non-IID MNIST: Handwritten digit recognition, including a custom split to test robustness against data heterogeneity.
- CIFAR-10: A standard image classification benchmark with 10 categories.
- COVID-19 Radiography: A practical healthcare dataset containing 21,165 chest X-ray images.
3.1 Performance under Strict Privacy Budgets
GCFL demonstrates its greatest utility when privacy requirements are high (low $\epsilon$). On the MNIST dataset with a privacy budget of $\epsilon=2$, GCFL achieved an accuracy of 91.11%, significantly outperforming DP-FedAvg (85.50%) and DP-Scaffold (87.13%). While baseline models often exhibit wild oscillations or early plateaus under high noise, GCFL maintains a smooth and continuous reduction in loss.
3.2 Robustness to Data Heterogeneity
In Non-IID (Non-Independent and Identically Distributed) settings, where clients hold different data distributions, GCFL improved accuracy by 4.45% over the simplest baseline. This suggests that the gradient correction mechanism is effective not only at filtering noise but also at mitigating "local drift" caused by data heterogeneity.
3.3 Computational Efficiency
While the projection mathematics introduce additional server-side complexity, the impact on overall training throughput is minimal. On the MNIST dataset, GCFL achieved a training speed of approximately 7,598 samples/sec, which is highly competitive with DP-Scaffold (~7,801 samples/sec).
4. Discussion and Limitations
The success of GCFL stems from the observation that high-dimensional random noise is unlikely to align perfectly with the true gradient signal. By geometrically aligning updates, the server can recover the signal without accessing the original, noiseless data.
However, the framework has limitations. The correction process relies on the selection of a representative reference batch. If the subset of gradients used to define the "correct" direction is itself highly unrepresentative or excessively noisy, the correction efficiency may decrease. Additionally, the server-side comparison of all client gradients creates a slight computational bottleneck compared to simple stochastic averaging.
5. Conclusion
GCFL provides a robust solution for privacy-preserving Federated Learning in CPSS environments. By shifting the focus from simply "hiding" noise to actively correcting its directional impact, the framework proves that rigorous differential privacy does not necessitate a catastrophic loss in model utility. Future work will focus on optimizing reference batch selection and adapting loss functions to further enhance performance in extremely heterogeneous data environments.
Summary updated