Privacy for Free: Communication-Efficient Learning with Differential Privacy Using Sketches

Tian Li, Zaoxing Liu, Vyas Sekar, Virginia SmitharXiv 2019

Abstract

Communication and privacy are two critical concerns in distributed learning. Many existing works treat these concerns separately. In this work, we argue that a natural connection exists between methods for communication reduction and privacy preservation in the context of distributed machine learning. In particular, we prove that Count Sketch, a simple method for data stream summarization, has inherent differential privacy properties. Using these derived privacy guarantees, we propose a novel sketch-based framework (DiffSketch) for distributed learning, where we compress the transmitted messages via sketches to simultaneously achieve communication efficiency and provable privacy benefits. Our evaluation demonstrates that DiffSketch can provide strong differential privacy guarantees (e.g., $\varepsilon$= 1) and reduce communication by 20-50x with only marginal decreases in accuracy. Compared to baselines that treat privacy and communication separately, DiffSketch improves absolute test accuracy by 5%-50% while offering the same privacy guarantees and communication compression.

Introduction

In the landscape of distributed and federated learning, practitioners often face a "double penalty." To protect sensitive user data, Differential Privacy (DP) mechanisms inject statistical noise. Simultaneously, to manage limited bandwidth, communication-efficiency techniques like quantization or sparsification compress the gradients.

Typically, these two objectives are treated as orthogonal problems. However, combining them naively—such as adding noise to a compressed signal or compressing an already noisy one—causes errors to compound, often resulting in a significant degradation of model utility. This paper introduces DiffSketch, a framework that identifies a fundamental synergy between sketching algorithms and privacy. The authors demonstrate that the randomization inherent in sketching for compression can simultaneously serve as a mechanism for differential privacy.

The DiffSketch Framework

The core technical contribution is the analysis of the Count Sketch, a classic data structure for summarizing high-dimensional data. DiffSketch leverages the Count Sketch in a distributed SGD or Federated Learning (FedAvg) pipeline through the following steps:

  1. Compression via Hashing: Each worker maps their local gradient update into a compact sketch table. This process uses random hash functions to assign gradient elements to specific bins.
  2. Intrinsic Privacy: The authors provide a formal proof that this hashing process is inherently differentially private. The "noise" required for DP is provided by hash collisions—where multiple gradient elements are mapped to the same bin, effectively masking individual values.
  3. Linear Aggregation: Because Count Sketches are linear operators, the central server can aggregate updates by simply summing the sketch tables received from all workers. The server never needs to access the raw, uncompressed updates.
  4. Update Recovery: Workers or the server recover the aggregated global update by querying the median of the bins in the sketch, a standard technique for Count Sketch estimation.
Count Sketch mechanism: Random hashing maps gradient elements to bins, providing inherent privacy through collisions.

Experimental Evaluation

The authors evaluated DiffSketch across several datasets to test scalability and robustness:

  • MNIST: A baseline for distributed SGD with 10 workers.
  • MNIST*: An expanded setup with 6,000 workers to evaluate performance against baselines like cpSGD in high-device-count scenarios.
  • Shakespeare: A federated learning task from the LEAF benchmark (46 workers) using non-IID data partitioned by speaking roles.

Key Results

  • Superior Accuracy: DiffSketch consistently outperforms cpSGD (a state-of-the-art baseline treating privacy and compression separately). Under identical privacy and communication budgets, DiffSketch improved absolute test accuracy by 5% to 50%.
  • Extreme Efficiency: The framework achieves 20-50x communication reduction with minimal impact on model performance.
  • Convergence Guarantees: The authors prove that for convex functions, DiffSketch maintains the same convergence rate as standard distributed SGD, ensuring that compression does not impede the learning process.

Insights and Discussion

  • Privacy for Free: The most significant insight is that the randomization required for sketching mirrors the requirements for local differential privacy. The data structure itself acts as a privacy mask, reducing or eliminating the need for additional Laplacian or Gaussian noise.
  • The Compression-Privacy Trade-off: Interestingly, more aggressive compression (using fewer bins) leads to more collisions, which actually strengthens the privacy guarantee (lower $\varepsilon$). This creates a direct, tunable relationship between communication, privacy, and utility.
  • Linearity as an Enabler: The linearity of the sketch ($S(A+B) = S(A) + S(B)$) is crucial for secure and efficient aggregation in distributed settings.

Limitations and Future Work

While promising, the work notes several areas for further exploration. The current privacy proof assumes that input gradients follow a Gaussian distribution; while empirically observed in many deep learning tasks, this may not be universal. Additionally, the authors utilize a specific definition of local differential privacy that is slightly distinct from "pure" LDP. Future research may extend these principles to other sketching techniques like Count-Min sketches or Bloom filters to find even more optimized trade-offs.

Summary updated

BibTeX
@misc{li2019privacy,
  author = {Tian Li and Zaoxing Liu and Vyas Sekar and Virginia Smith},
  title = {{Privacy for Free: Communication-Efficient Learning with Differential Privacy Using Sketches}},
  year = {2019},
  eprint = {1911.00972},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.00972},
}
Figure