Iterative Sketching for Secure Coded Regression

Neophytos Charalambides, Hessam Mahdavifar, Mert Pilanci, Alfred O. Hero Iii

TL;DR

This paper introduces a framework for distributed linear regression that uses randomized basis rotations and block subsampling to achieve a "triple threat" of benefits: faster computation through dimensionality reduction, robust resilience against slow "straggler" nodes, and cryptographic data security. By treating the responses of available servers as a dynamic "sketch" of the full dataset, the authors enable efficient, iterative optimization without the heavy encoding/decoding overhead typical of traditional coded computing.

What Problem Does This Paper Address?

In large-scale machine learning, we often distribute data across multiple servers to solve linear regression problems. However, three major hurdles frequently arise:

  1. Stragglers: In any distributed system, some nodes will be slower than others. Waiting for the slowest node (the "straggler") creates a bottleneck that delays the entire process.
  2. Security: Sensitive data (like medical or financial records) must be protected from eavesdroppers or even the computational servers themselves if they are "honest but curious."
  3. Computational Overhead: Existing "Coded Computing" (CC) techniques solve the straggler problem by adding redundancy, but they often require complex encoding and decoding steps at every iteration, which can be as slow as the original problem.

The authors aim to solve these problems simultaneously by merging techniques from Randomized Numerical Linear Algebra (RandNLA)—specifically sketching—with Coded Computing.

Methods

The core of the paper is Algorithm 1: Iterative Orthonormal Sketching. The process works as follows:

  1. Basis Rotation (Encryption): Before distributing data, the central server applies a random orthonormal matrix $\Pi$ to the data $(A, b)$. Because $\Pi$ is orthonormal, it preserves the geometry of the problem (the solution $x^*$ remains the same), but it effectively "scrambles" the data, providing a layer of encryption.
  2. Data Partitioning: The transformed data is split into $K$ blocks and sent to $m$ servers.
  3. Iterative Sketching: At each iteration $t$, the central server sends the current model parameters $x^{[t]}$ to the servers. Each server computes a partial gradient on its assigned block.
  4. Straggler Mitigation via Subsampling: The central server does not wait for all responses. It takes the first $q$ responses it receives. Mathematically, this is equivalent to taking a uniform random "sketch" of the full dataset.
  5. No Decoding Step: Unlike traditional CC (illustrated in Figure 1), which requires a decoding step to recover the exact gradient, this method uses the partial gradients directly to perform a Stochastic Steepest Descent (SSD) update.

![Fig.

  1. Traditional Coded Computing requires a decoding step to recover the exact result, which can be a bottleneck.](/figures/art_f55c6f17128a4f6fa51b63be55b66840)

To make this efficient, the authors utilize the Subsampled Randomized Hadamard Transform (SRHT), which allows the initial rotation to be computed in $O(N \log N)$ time. They also propose a "garbled" version of the SRHT to fix inherent security weaknesses in the standard Hadamard transform.

Datasets

The authors primarily evaluated their methods using synthetic datasets designed to test specific mathematical properties:

  • Non-uniform Block Leverage Scores: They generated matrices $A \in \mathbb{R}^{2000 \times 40}$ where some rows are much more "important" (higher leverage) than others, following a t-distribution. This is a stress test for sketching, as uniform sampling usually fails on such data unless the basis is first rotated.
  • Gaussian Noise: Standard Gaussian noise was added to the labels $b$ to simulate real-world regression scenarios.

Key Insights and Ideas

  • Flattening the Importance: The most critical insight is that random orthonormal projections "flatten" the leverage scores of a matrix. As shown in Figure 3, the "No projection" line has highly variable scores, while the "Orthonormal" and "SRHT" lines are nearly flat. This ensures that any random subset of server responses is a good representative of the whole dataset.

![Fig.

  1. Random projections "smear" the importance of data points, making uniform sampling statistically valid.](/figures/art_23afb147dbee477380bb60a92bb4dc2c)
  2. Encryption for Free: The same rotation used to flatten leverage scores also acts as a cryptographic tool. If the rotation matrix $\Pi$ is kept secret, the servers cannot recover the original data $A$.
  3. Iterative vs. Static Sketching: The paper argues that sketching at every iteration (using whichever servers are fastest at that moment) is superior to a single static sketch performed at the start. This "freshness" avoids the bias inherent in a single fixed approximation.
  4. Adaptive Step-Size: The authors derived an optimal, adaptive step-size $\xi_t$ that can be computed by the central server to significantly accelerate convergence compared to a fixed step-size.

Key Results

  • Convergence: The proposed method converges to the optimal solution $x^*_{ls}$ at a rate of $O(1/t)$, matching the expectation of regular steepest descent.
  • Security Guarantees: The authors proved Shannon secrecy (information-theoretic security) for general random orthonormal projections and computational security for their "garbled" block-SRHT.
  • Efficiency: The SRHT-based approach reduces the initial encoding complexity to $O(N \log N)$, making it practical for very large $N$.
  • Performance: In numerical experiments, the orthonormal sketching approach outperformed Gaussian and Rademacher sketches, which produced biased gradients in the distributed setting. Figure 2 illustrates how the central server aggregates these unbiased estimates to update the model.

![Fig.

  1. The central server collects gradients from the fastest servers to update the model parameters.](/figures/art_a927f5e6273d4fc1ac547b69468d78d6)

Limitations and Future Work

  • Matrix Size Constraints: The most efficient version (SRHT) requires the number of data points $N$ to be a power of two, though this can be mitigated with padding.
  • Privacy vs. Security: While the data is cryptographically secure from raw inspection, the authors acknowledge that the system might still be vulnerable to sophisticated privacy attacks like membership inference or model inversion, which are outside the scope of this paper.
  • Second-Order Methods: The current work focuses on first-order steepest descent. The authors suggest that extending this to second-order methods (like Iterative Hessian Sketching) could further reduce the number of iterations needed, albeit with higher computation per node.

Summary updated

BibTeX
@article{charalambides2024iterative,
  author = {Neophytos Charalambides and Hessam Mahdavifar and Mert Pilanci and Alfred O. Hero III},
  title = {{Iterative Sketching for Secure Coded Regression}},
  journal = {IEEE J. Sel. Areas Inf. Theory},
  year = {2024},
  doi = {10.1109/jsait.2024.3384395},
}
Figure