Distributed Sketching Methods for Privacy Preserving Regression

Burak Bartan, Mert PilanciarXiv 2020

Abstract

In this work, we study distributed sketching methods for large scale regression problems. We leverage multiple randomized sketches for reducing the problem dimensions as well as preserving privacy and improving straggler resilience in asynchronous distributed systems. We derive novel approximation guarantees for classical sketching methods and analyze the accuracy of parameter averaging for distributed sketches. We consider random matrices including Gaussian, randomized Hadamard, uniform sampling and leverage score sampling in the distributed setting. Moreover, we propose a hybrid approach combining sampling and fast random projections for better computational efficiency. We illustrate the performance of distributed sketches in a serverless computing platform with large scale experiments.

Introduction

As datasets scale to massive proportions, standard linear regression often exceeds the memory capacity of a single machine, necessitating distributed computing solutions. However, traditional distributed optimization methods, such as synchronous gradient descent, frequently encounter communication bottlenecks and the "straggler" problem—where slow worker nodes delay the entire pipeline. Furthermore, distributing raw data across cloud environments introduces significant privacy risks.

This paper addresses these challenges by proposing a distributed sketching framework. By distributing compressed, "sketched" versions of the data to parallel workers and averaging their independent solutions, the approach achieves exact convergence guarantees, inherent differential privacy, and high resilience to asynchronous system delays.

The Distributed Sketching Framework

The proposed algorithm follows a simple, parallelizable four-step process:

  1. Sketching: The master node compresses the massive data matrix $A$ and target vector $b$ using a random sketching matrix $S_k$.
  2. Distribution: Unique sketches $(S_k A, S_k b)$ are sent to $q$ parallel workers.
  3. Local Solve: Each worker independently solves a small-scale least-squares problem.
  4. Averaging: The master node collects the parameter vectors from all workers and averages them to produce the final estimator.

While Gaussian sketches provide the strongest theoretical properties, they are computationally intensive. To address this, the authors propose a Hybrid Sketch. This method first uses uniform sampling to reduce the data to a manageable size, then applies a fast sketch like the Sparse Johnson-Lindenstrauss Transform (SJLT) to refine the approximation and improve convergence.

Theoretical Advantages: Unbiasedness and Privacy

A primary contribution of this work is the proof that Gaussian sketch estimators are completely unbiased. This implies that the expected error of the averaged solution scales perfectly with $1/q$, where $q$ is the number of workers. Consequently, model accuracy can be improved simply by increasing the number of parallel workers. Unlike asynchronous SGD, these guarantees are independent of the data's condition number.

Furthermore, sketching provides "privacy for free." The authors demonstrate that publishing sketched matrices satisfies $(\epsilon, \delta)$-differential privacy. This allows for a mathematically rigorous trade-off between accuracy and privacy, with approximation error scaling at $O(1/\epsilon^2)$.

Empirical Performance and Serverless Synergy

The framework is particularly well-suited for serverless architectures like AWS Lambda because sub-problems are entirely independent, requiring zero inter-worker communication. In large-scale tests, the system solved a 298 GB synthetic regression problem in under 80 seconds using 200 AWS Lambda functions.

Experiments on the EMNIST and Airline datasets highlight the superiority of the Hybrid Sketch (Sampling + SJLT). As shown in the figures below, the SJLT-based approach significantly reduces approximation error and improves test accuracy compared to pure uniform sampling as the number of averaged outputs increases.

Approximation error vs. number of outputs averaged for uniform sampling and SJLT.
Accuracy vs. number of outputs averaged for uniform sampling and SJLT.

While uniform and leverage score sampling are computationally fast, they introduce a fundamental bias that prevents the error from converging to zero. In contrast, the SJLT approach leverages the benefits of averaging to drive down error more effectively.

Conclusion

Distributed sketching offers a robust alternative to traditional distributed optimization for large-scale regression. By combining the theoretical strengths of Gaussian sketches with the computational efficiency of hybrid sampling methods, this framework provides a scalable, private, and straggler-resilient solution for modern data science. Future work may extend these formulas and hybrid techniques to broader classes of convex optimization and non-linear models.

Summary updated

BibTeX
@misc{bartan2020distributed,
  author = {Burak Bartan and Mert Pilanci},
  title = {{Distributed Sketching Methods for Privacy Preserving Regression}},
  year = {2020},
  eprint = {2002.06538},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.06538},
}
Figure