Local Differential Privacy-Based Federated Learning for Internet of Things

Yang Zhao, Jun Zhao, Mengmeng Yang, Teng Wang, Ning Wang, Lingjuan Lyu, Dusit Niyato, Kwok-Yan Lam

TL;DR

This paper introduces LDP-FedSGD, a framework that combines Federated Learning (FL) with novel Local Differential Privacy (LDP) mechanisms to protect sensitive vehicle data in crowdsourcing applications. By tailoring LDP perturbations to different privacy budgets and using a discretization strategy, the authors achieve high model utility while significantly reducing the communication overhead typical of privacy-preserving IoT systems.

What Problem Does This Paper Address?

In the Internet of Vehicles (IoV), applications like Waze or Uber rely on real-time data from users to train traffic management models. However, this creates a major privacy-utility tension:

  1. Privacy Risks: Even if users don't share raw data, a "honest-but-curious" cloud server can potentially reverse-engineer uploaded machine learning gradients to infer sensitive information, such as a driver's exact location or habits.
  2. Communication Costs: IoT devices (like vehicles) often have limited bandwidth. Standard privacy techniques often generate complex, high-precision noise that is expensive to transmit.

Existing solutions often fail to balance these needs across a wide range of privacy requirements. Some work well when privacy is the top priority (small privacy budget $\epsilon$) but poorly when utility is favored (large $\epsilon$), and vice versa.

Methods

The authors propose the LDP-FedSGD algorithm, which integrates four new LDP mechanisms designed specifically for numeric data:

  • Three-Outputs: A discrete mechanism that limits the perturbed output to just three values. Because these can be encoded in only two bits, it drastically reduces communication costs while maintaining high accuracy in high-privacy regimes (small $\epsilon$).
  • PM-OPT (Optimal Piecewise Mechanism): An optimal mechanism for scenarios where the privacy budget is large. It uses a continuous probability density function to minimize the "worst-case variance" of the noise.
  • PM-SUB (Suboptimal Piecewise Mechanism): A simplified version of PM-OPT that is easier for resource-constrained IoT devices to compute while offering comparable performance.
  • HM-TP (Hybrid Mechanism): A "best of both worlds" approach that probabilistically switches between Three-Outputs and PM-SUB depending on the specific privacy budget $\epsilon$.

To make these practical for vehicles, the authors also developed a Discretization Post-Processing step. This converts continuous noisy outputs into discrete values, ensuring they can be transmitted efficiently without losing the statistical properties required for accurate model training.

System Design showing the flow from local datasets to noisy gradients via LDP

Datasets

The researchers evaluated their mechanisms using both synthetic and real-world datasets:

  • WISDM: A Human Activity Recognition dataset containing accelerometer data from smartphones.
  • Census Data (BR & MX): Publicly available census records from Brazil and Mexico, used to test mean estimation and regression tasks.
  • Vehicle Dataset: A specialized dataset from a distributed sensor network (acoustic, seismic, and infrared) used as a benchmark for federated learning in IoV.

Key Insights and Ideas

  • User-Level vs. Record-Level Privacy: The authors argue that in IoV, User-Level LDP (ULDP) is essential. Since one vehicle generates many related data points, protecting individual records isn't enough; the privacy mechanism must protect the entire set of data generated by a single user to prevent inference attacks.
  • The $\epsilon$ Threshold: A key "aha moment" is the realization that no single LDP mechanism is optimal for all privacy levels. As shown in the comparison below, the "winner" changes based on the privacy budget.
Comparison of worst-case variances across different privacy budgets
  • Communication Efficiency as a First-Class Citizen: By designing the Three-Outputs mechanism to be representable in just 2 bits, the authors address the physical constraints of IoT hardware, not just the mathematical constraints of differential privacy.

Key Results

The proposed mechanisms consistently outperformed state-of-the-art methods like Duchi’s mechanism and the standard Laplace mechanism.

  • Variance Reduction: As seen in Figure 1, the HM-TP and PM-OPT mechanisms maintain lower worst-case noise variance across the entire spectrum of privacy budgets compared to existing benchmarks.
  • Model Accuracy: In tasks like Logistic Regression and SVM classification, the LDP-FedSGD approach achieved lower misclassification rates. For example, on the WISDM dataset, the proposed hybrid approach significantly outperformed traditional LDP methods as the privacy budget increased.
  • Effective Discretization: Experiments confirmed that discretizing the output into 2000 segments allowed the system to match the performance of continuous-output mechanisms while being much more transmission-friendly.
Worst-case noise variance for one-dimensional numeric data versus the privacy budget

Limitations and Future Work

While highly effective for numeric data and standard machine learning tasks (like linear/logistic regression), the paper notes some areas for further exploration:

  • Deep Learning Complexity: The current work focuses on FedSGD. Extending these LDP mechanisms to more complex deep neural network architectures remains a future goal.
  • Parameter Optimization: The optimal switching point for the hybrid mechanism (HM-TP) involves complex calculations that might be difficult to tune dynamically in highly volatile IoT environments.
  • Categorical Data: While the paper touches on categorical data by converting it to binary attributes, a more native integration for high-cardinality categorical features could be beneficial.

Summary updated

BibTeX
@article{zhao2021local,
  author = {Yang Zhao and Jun Zhao and Mengmeng Yang and Teng Wang and Ning Wang and Lingjuan Lyu and Dusit Niyato and Kwok-Yan Lam},
  title = {{Local Differential Privacy-Based Federated Learning for Internet of Things}},
  journal = {IEEE Internet of Things Journal},
  year = {2021},
  url = {https://openreview.net/forum?id=vY3zO8QWRb},
}
Figure