Decentralized Differentially Private Without-Replacement Stochastic Gradient Descent

Richeng Jin, Xiaofan He, Huaiyu Dai

TL;DR

This paper introduces a decentralized, differentially private (DP) Stochastic Gradient Descent (SGD) algorithm that utilizes without-replacement sampling—a more practical and often more accurate alternative to standard i.i.d. sampling. By integrating a Deep Q-Learning (DQN) framework, the algorithm intelligently decides when a node should update the noisy global model versus its own private local model, effectively mitigating the accuracy loss typically associated with high-privacy requirements.

What Problem Does This Paper Address?

In collaborative machine learning, multiple parties (nodes) want to train a shared model without sharing their raw, sensitive data. While decentralized SGD allows nodes to share only gradients, these gradients can still leak private information. Differential Privacy (DP) solves this by adding noise to the gradients, but this noise often degrades the model's accuracy significantly.

Furthermore, most DP-SGD research assumes "i.i.d. sampling" (picking data points with replacement), which is computationally inefficient for large datasets. In the real world, practitioners prefer "without-replacement" sampling (shuffling the data and scanning through it), but providing formal privacy and convergence guarantees for this method in a decentralized, noisy environment is mathematically challenging.

Methods

The authors propose a Deep-Q Learning based Collaborative Decentralized DP-SGD algorithm. The key components include:

  • Dual-Model Architecture: Each node maintains two models: a local model (private, no noise added) and a global model (shared, noise added for DP).
  • Without-Replacement Sampling: Nodes process their local data in sequential mini-batches without replacement, which is faster and allows for better data access patterns.
  • RL-Based Control (DQN): Because the global model's gradients are injected with Gaussian noise to satisfy $(\epsilon, \delta)$-differential privacy, the global model isn't always "better" than a node's local model. The authors use a Deep Q-Network to act as a controller. At each step, the DQN decides whether a node should update the global model (contributing to collective intelligence but incurring a privacy/noise cost) or stick to updating its local model.
  • Gaussian Mechanism: To ensure privacy, noise is added to the gradients whenever the global model is updated. The authors provide a rigorous proof for the $L_2$-sensitivity of these updates to calibrate the noise correctly.

Datasets

The algorithm was evaluated on two widely used benchmarks:

  1. MNIST: A dataset of 70,000 handwritten digits. The authors used PCA to reduce the dimensionality to 50 for the experiments.
  2. Covertype: A much larger dataset (581,012 instances, 54 features) used for predicting forest cover types.

Both datasets were normalized and projected onto a unit ball to maintain the bounded sensitivity required for differential privacy.

Key Insights and Ideas

  • The "Noise vs. Collaboration" Trade-off: In high-privacy settings (small $\epsilon$), the noise added to the global model can be so high that it becomes a "distraction." The DQN learns to recognize when the global model is becoming too noisy and pivots the node toward local training.
  • Superiority of Without-Replacement: The paper reinforces the idea that without-replacement sampling is not just a practical convenience; it can lead to faster convergence than i.i.d. sampling in decentralized settings, provided the privacy analysis is handled correctly.
  • Scalability as a Noise Buffer: A fascinating insight is that as the number of participating nodes increases, the overall accuracy improves. More nodes mean more total training samples, which helps "wash out" the impact of the DP noise added at each iteration.

Key Results

  • Accuracy Gains: The proposed "DP-Deep-Q" algorithm outperformed standard DP-SGD baselines (using i.i.d. sampling) by up to 10% in classification accuracy on both MNIST and Covertype datasets.
  • Privacy Resilience: In scenarios with 20 collaborative nodes, the accuracy degradation caused by the privacy constraints was kept within a narrow margin of 4% to 6% compared to a "noiseless" non-private version.
  • Convergence: The authors provided theoretical proofs showing that the algorithm converges at a rate of $O(1/\sqrt{n})$ for convex functions and $O(1/t)$ for strongly convex functions, matching the efficiency of standard SGD.

Limitations and Future Work

  • Convexity Constraint: The current convergence and privacy analyses are strictly for convex objective functions (like logistic regression). While many modern deep learning problems are non-convex, this paper provides the foundational theory that future work could extend to more complex neural architectures.
  • DQN Complexity: While the DQN helps optimize the model, it adds its own computational overhead. The authors note that optimizing this controller itself is a promising direction for future research.
  • Communication Costs: While the paper mentions that communication overhead is low (sharing only indices and step counts), a deeper dive into the latency of fetching the "latest" global model in a massive-scale network would be beneficial.

Summary updated

BibTeX
@inproceedings{jin2023decentralized,
  author = {Richeng Jin and Xiaofan He and Huaiyu Dai},
  title = {{Decentralized Differentially Private Without-Replacement Stochastic Gradient Descent}},
  booktitle = {CISS},
  year = {2023},
  url = {https://openreview.net/forum?id=V3bGde8A5H},
}
Figure