Compression Boosts Differentially Private Federated Learning

Raouf Kerkouche, Gergely Ács, Claude Castelluccia, Pierre Genevès

Federated Learning (FL) is often hailed as a privacy savior: keep the data on the device, only share the "knowledge" (gradients). But as researchers have shown, those gradients can be chatty, leaking sensitive information about the training data. Adding Differential Privacy (DP) noise is the standard fix, but it usually comes at a steep cost to model accuracy.

A new paper, "Compression Boosts Differentially Private Federated Learning," proposes a clever workaround. By using compressive sensing to shrink model updates before adding noise, the authors demonstrate that you can actually improve model accuracy while slashing communication costs by up to 95%.

TL;DR

The authors introduce FL-CS-DP, a framework that uses compressive sensing to reduce the dimensionality of model updates in Federated Learning. By adding Differential Privacy noise to a smaller, compressed vector rather than the full model, they significantly reduce the total noise injected, leading to better model utility and massive bandwidth savings.

What Problem Does This Paper Address?

In Federated Learning, clients collaborate to train a model without sharing raw data. However, an adversary observing the model updates (gradients) can perform "reconstruction attacks" to see what the training data looked like.

To prevent this, we use Differential Privacy (DP), which involves adding random Gaussian noise to the gradients. The catch? The amount of noise required is proportional to the size of the model. For modern neural networks with millions of parameters, this "noise flood" often drowns out the actual learning signal, leading to poor model performance. Furthermore, sending these massive, noisy vectors back and forth creates a huge bottleneck for bandwidth-constrained devices (like mobile phones or medical sensors).

Methods

The authors propose a protocol called FL-CS-DP (Federated Learning with Compressive Sensing and Differential Privacy). Here is the workflow:

  1. Compression via DCT: Instead of sending raw gradients, clients transform their updates into the frequency domain using a Discrete Cosine Transform (DCT). They keep only the first $m$ coefficients (the low-frequency components), effectively compressing the update.
  2. Distributed Noise: Clients add Gaussian noise to these compressed vectors. Because the vector is much shorter ($m \ll n$), the total noise "volume" is lower for the same privacy guarantee.
  3. Secure Aggregation: The protocol is designed to work with secure aggregation, meaning the server only ever sees the sum of the noisy, compressed updates from all clients.
  4. Reconstruction (The "Denoising" Step): The server reconstructs the original gradient from the noisy, compressed aggregate by solving a convex optimization problem known as Basis Pursuit Denoising (BPDN) or LASSO. They use a scalable solver called OWL-QN to handle large models.
  5. Error Feedback: To prevent the lossy compression from hurting convergence, the server maintains an "error accumulation" vector, re-injecting the compression residuals into the next round of training.

Datasets

The authors evaluated their approach on two distinct types of data:

  • Fashion-MNIST: A benchmark dataset of 70,000 grayscale images of clothing items, used to test general image classification.
  • Premier Healthcare Database: A massive, real-world medical dataset containing 1.2 million hospital records from 415 US hospitals. The task was to predict in-hospital mortality—a classic "imbalanced data" problem where privacy is paramount.

Key Insights and Ideas

  • The "Double Win" of Compression: Usually, compression is a trade-off (smaller size = less detail). Here, it’s a synergistic boost. Because DP noise scales with dimensionality, shrinking the vector before noising it allows for a much cleaner signal-to-noise ratio.
  • Linearity is Key: Compressive sensing is a linear operation. This is crucial because it allows the server to aggregate compressed updates directly. The sum of the compressed gradients equals the compression of the sum, making it perfectly compatible with secure aggregation protocols.
  • Sparsity Exploitation: Neural network gradients are often naturally sparse (many values are near zero). Compressive sensing is mathematically designed to recover sparse signals from very few measurements, making it a natural fit for model updates.
  • Scalability via Chunking: To handle models with millions of parameters, the authors suggest "shuffling and chunking" the updates. By breaking the large vector into smaller pieces and compressing each, they make the heavy math of reconstruction much faster.

Key Results

The results show that FL-CS-DP often outperforms standard, uncompressed private federated learning (FL-STD-DP):

  • Bandwidth: On both datasets, the proposed method reduced communication costs by up to 95% compared to standard FL.
  • Accuracy: On Fashion-MNIST, with a compression ratio of 0.05, the model achieved 78% accuracy, whereas the standard private model (FL-STD-DP) struggled to reach 61% because of the excessive noise required for the full-sized model.
  • Medical Utility: For the mortality prediction task, the compressed private model achieved an AUROC (Area Under the Curve) of 0.76, nearly matching the performance of non-private models while using 60% less bandwidth.

Limitations and Future Work

While the results are promising, there are a few areas for further exploration:

  • Computational Overhead: While the authors optimized reconstruction using OWL-QN and chunking, solving BPDN at the server is still more computationally expensive than simple averaging.
  • Sparsity Assumptions: The effectiveness of the method relies on the gradients being sparse in the DCT domain. While this holds for many deep learning tasks, it might vary across different architectures or data types.
  • Hyperparameter Tuning: The "sweet spot" for the compression ratio $r$ needs to be found. If $r$ is too small, reconstruction error dominates; if $r$ is too large, DP noise dominates.

In summary, this paper provides a compelling argument that in the world of private machine learning, less is more. By sending less data, we can actually learn more accurately.

Summary updated

BibTeX
@inproceedings{kerkouche2021compression,
  author = {Raouf Kerkouche and Gergely Ács and Claude Castelluccia and Pierre Genevès},
  title = {{Compression Boosts Differentially Private Federated Learning}},
  booktitle = {EuroS\&P},
  year = {2021},
  doi = {10.1109/eurosp51992.2021.00029},
}
Figure