Sketching for First Order Method: Efficient Algorithm for Low-Bandwidth Channel and Vulnerability

Zhao Song, Yitan Wang, Zheng Yu, Lichen Zhang

TL;DR

This paper introduces a "sketch-and-de-sketch" framework that slashes communication costs in Federated Learning by compressing high-dimensional gradients into low-dimensional "sketches." Crucially, the authors prove that sketching alone is vulnerable to data-recovery attacks, leading them to develop a hybrid approach that combines random sketching with Gaussian noise to achieve both bandwidth efficiency and rigorous Differential Privacy.

What Problem Does This Paper Address?

Federated Learning (FL) allows multiple parties to train a model collectively without sharing their raw data. However, it faces two massive hurdles:

  1. Communication Bottlenecks: Modern machine learning models have millions or billions of parameters. Sending full-sized gradients over low-bandwidth networks (like mobile or IoT devices) is painfully slow and expensive.
  2. Privacy Vulnerabilities: While FL doesn't share raw data, it shares gradients. Recent research has shown that "gradient leakage" is a real threat—attackers can mathematically reconstruct a user's private training data just by observing these gradients.

Existing solutions often tackle one problem at the expense of the other. This paper seeks a "best of both worlds" solution: a method that compresses data to save bandwidth while providing a mathematical guarantee that the underlying data remains private.

Methods

The authors propose a novel Iterative Sketching framework based on a "Sketch-and-De-sketch" process:

  • Sketching: Instead of sending a high-dimensional gradient ($d$), the client multiplies it by a random sketching matrix ($R$) to create a much smaller vector ($s$, where $s \ll d$).
  • De-sketching: The receiver (or the client, after receiving the averaged global update) uses the transpose of that matrix ($R^\top$) to "recover" the gradient back into the original high-dimensional space.
  • Coordinate-wise Embedding: The authors identify that for this to work without breaking the model's convergence, the sketching matrix must satisfy a "coordinate-wise embedding" property. They show that common matrices like Random Gaussian, SRHT, and Count-Sketch all fit the bill.
Common sketching matrices and their coordinate-wise embedding parameters.
  • DP-Sketching: To solve the privacy issue, they inject Gaussian noise into the gradient before sketching. This ensures the algorithm satisfies Differential Privacy (DP), meaning an attacker cannot distinguish if a specific data point was included in the training set.
  • The Attack: They also develop a specific gradient-descent-based attack algorithm to prove that sketching alone is not a security feature; if an attacker knows the sketching matrix, they can recover the data just as easily as from a full gradient.

Datasets

The paper is primarily a theoretical contribution focused on algorithmic proofs and complexity analysis. Consequently, no empirical datasets (like MNIST or CIFAR) were used for training or evaluation within the main body of this specific paper. The results are presented as rigorous mathematical proofs of convergence and privacy.

Key Insights and Ideas

  • Sketching is not a Mask: A major "aha moment" is the formal proof that random projections do not inherently protect privacy. If the sketching matrix is shared or discovered, the "mask" vanishes. This highlights why Differential Privacy (adding noise) is a necessary companion to compression.
  • Unbiased Estimators: The authors show that the de-sketched gradient ($R^\top R g$) acts as an unbiased estimator of the true gradient. This allows them to treat the extra "noise" introduced by compression similarly to the noise in Stochastic Gradient Descent (SGD), enabling them to use existing optimization theory to prove the model will still converge.
  • Communication Efficiency vs. Iteration Count: While sketching requires more iterations to converge (because the "sketched" gradient is noisier), the amount of data sent per iteration is so much smaller that the total communication cost in bits remains better than or equal to standard methods.

Key Results

  • Convergence Guarantees: The authors provide formal proofs that their method converges for strongly convex, convex, and non-convex objective functions.
  • Communication Complexity: For convex losses, the algorithm achieves an $\epsilon$-optimal solution with $O(\frac{Ld}{\epsilon})$ bits of communication, which is strictly better than some previous state-of-the-art local gradient descent analyses.
  • Privacy Proof: They rigorously prove that their noisy sketching algorithm is $(\epsilon, \delta)$-Differentially Private.
  • Attack Feasibility: They demonstrate that their proposed attack can recover local data from sketched gradients for a wide variety of non-linear machine learning models, proving the necessity of their DP remedy.

Limitations and Future Work

  • Under-parameterized Focus: The attack analysis primarily targets the "under-parameterized" regime (where the number of parameters is less than the data dimension). While they mention extensions, the most robust results are in this setting.
  • Hyperparameter Tuning: The method introduces a trade-off between the sketch dimension ($s$) and the learning rate. Finding the optimal balance for a specific network bandwidth remains a practical challenge.
  • Beyond First-Order: The current work focuses on first-order methods (gradient descent). The authors suggest that extending this sketching framework to second-order methods (like Newton's method) or momentum-based optimizers is a promising next step.

Summary updated

BibTeX
@inproceedings{song2023sketching,
  author = {Zhao Song and Yitan Wang and Zheng Yu and Lichen Zhang},
  title = {{Sketching for First Order Method: Efficient Algorithm for Low-Bandwidth Channel and Vulnerability}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=3urju73vVK},
}
Figure