NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Speeding Up Private Distributed Matrix Multiplication via Bivariate Polynomial Codes

Burak Hasircioglu, Jesús Gómez-Vilardebó, Deniz Gündüz

Abstract: Distributed matrix multiplication is a cornerstone of large-scale machine learning, yet it faces significant challenges from worker stragglers and data privacy requirements. This paper proposes a novel approach using bivariate polynomial codes to mitigate these issues. Unlike traditional univariate methods that often discard partial work from slow nodes, the bivariate scheme enables "one-to-any replaceable" sub-tasks, allowing the master node to harvest results more flexibly. Simulations demonstrate that this method achieves lower latency and reduced communication costs compared to state-of-the-art GASP and Rateless codes while providing robust information-theoretic privacy.

Introduction

In modern data science, matrices are often too large to multiply on a single machine, necessitating distribution across a network of worker nodes. However, two major hurdles arise: stragglers and privacy. Stragglers are slow nodes that can bottleneck the entire process if the system waits for them to finish. Privacy is equally critical; sensitive data (e.g., medical or financial records) must remain hidden from workers, even if several nodes collude to reconstruct the original matrices.

Existing solutions often rely on univariate polynomial codes, such as GASP codes. While effective, these typically assign a single task per worker, meaning any partial work done by a straggler is wasted. Newer multi-message approaches exist but often suffer from high "upload costs"—the volume of data the master must transmit to each worker.

Methodology: Bivariate Polynomial Codes

The authors introduce a scheme based on bivariate (two-variable) polynomial codes to address these inefficiencies. The approach involves several key components:

  • Encoding with Derivatives: The master node partitions matrices $A$ and $B$ and embeds them within polynomials $A(x)$ and $B(x, y)$. Random "noise" matrices are injected to ensure information-theoretic privacy. Crucially, the master sends each worker a single evaluation of $A(x)$ but multiple partial derivatives of $B(x, y)$.
  • Multi-Message Computation: The bivariate structure allows a worker to use its single piece of matrix $A$ to compute multiple sub-products with different pieces of matrix $B$. This makes sub-tasks "one-to-any replaceable," meaning any result from any worker contributes toward the recovery threshold ($R_{th}$) needed to decode the final product.
  • Privacy and Decoding: Even if $T$ workers collude, the original matrices remain perfectly masked. Once the master receives enough sub-products to meet the recovery threshold, it employs bivariate polynomial interpolation to solve for the final product $AB$.

Performance Evaluation

The scheme was evaluated using numerical simulations where matrices were defined over a finite field $\mathbb{F}_q$. Worker speeds were modeled using a shifted exponential distribution, a standard benchmark for representing the mix of fast nodes and unpredictable stragglers found in real-world distributed systems.

The proposed scheme achieves a higher number of tasks (m) for a given upload budget while maintaining a competitive recovery threshold (Rth).

Key Results

  • Communication Efficiency: The bivariate scheme significantly reduces communication overhead. In univariate schemes, performing $m$ tasks usually requires $m$ pieces of data. Here, the worker only needs one piece of matrix $A$ to perform $m$ tasks involving matrix $B$, drastically lowering upload costs.
  • Latency Reduction: The most significant gain is in computation time. By utilizing partial work from stragglers, the proposed method reaches the recovery threshold much faster than competing methods.
Expected computation time vs. upload cost budget, demonstrating significant latency reduction for the proposed bivariate scheme compared to GASP and Rateless codes.

As shown in the figures, for a test case with $K=L=5$ partitions and $T=3$ colluding workers, the proposed method consistently outperforms GASP and Rateless codes in both recovery speed and communication requirements.

Conclusion and Future Work

By moving away from "all-or-nothing" univariate tasks, bivariate polynomial codes offer a more robust and efficient framework for private distributed computing. While the current scheme is highly effective, future research may focus on optimizing the dependency on finite field size $q$ to further reduce computational overhead. Additionally, extending these codes to dynamic settings—where data is sent as needed to save worker memory—remains a promising path for further enhancing large-scale matrix operations.

Summary updated

BibTeX
@inproceedings{hasircioglu2021speeding,
  author = {Burak Hasircioglu and Jesús Gómez-Vilardebó and Deniz Gündüz},
  title = {{Speeding Up Private Distributed Matrix Multiplication via Bivariate Polynomial Codes}},
  booktitle = {ISIT},
  year = {2021},
  url = {https://openreview.net/forum?id=CAIEKb2z0E},
}
Figure