Abstract
Secure distributed matrix multiplication (SDMM) is a critical component in modern large-scale computation, balancing the need for speed with the necessity of data privacy. This paper explores a novel coding framework based on bivariate polynomial codes designed to mitigate the impact of "stragglers"—slow-moving worker nodes—while protecting sensitive data against collusion. By extending bivariate polynomial codes into the security domain, we demonstrate a scheme that significantly reduces upload communication costs and storage requirements. Our results show that this approach achieves lower average computation times (ACT) compared to existing univariate and rateless coding schemes, particularly in communication-constrained environments.
Introduction
In the era of big data, multiplying massive matrices (e.g., $C = A \times B$) is a fundamental operation for machine learning and signal processing. To manage the computational load, these tasks are often distributed across a network of cloud-based worker nodes. However, distributed systems face two primary challenges: the "straggler problem," where the overall computation speed is limited by the slowest node, and the risk of data leakage if workers are untrusted or collude to reconstruct the input matrices.
Traditional coded computation methods, such as univariate Polynomial Codes or GASP codes, provide privacy and straggler resilience but often ignore the partial work completed by slow nodes. Furthermore, they frequently suffer from high upload communication overhead. This work introduces Secure Bivariate Polynomial (SBP) codes, a framework that leverages the multi-message potential of bivariate polynomials to optimize both security and efficiency.
Problem Formulation: Stragglers and Privacy
We consider a system where a master node wishes to compute the product of two large matrices, $A$ and $B$, using $N$ distributed workers. The system must address two constraints:
- Straggler Mitigation: The system should not wait for the slowest workers. Instead, it should utilize partial results from any worker to reconstruct the final product.
- $T$-Collusion Privacy: The matrices $A$ and $B$ must remain private even if up to $T$ workers share their received data to attempt to decode the original inputs. Mathematically, this requires the mutual information between the input matrices and the data held by any $T$ workers to be zero.
The Secure Bivariate Polynomial (SBP) Framework
The proposed SBP codes extend the concept of bivariate encoding into a secure multi-message environment.
Encoding and Masking
Unlike univariate schemes that use a single variable, SBP encodes matrix partitions into polynomials of two variables, $x$ and $y$. Matrix $A$ is partitioned and encoded into a polynomial $A(x)$, while Matrix $B$ is encoded into $B(x, y)$. To ensure privacy, the master node adds $T$ random "noise" matrices to these polynomials. These noise matrices act as a mask, ensuring that any subset of $T$ workers sees only random data, satisfying the $T$-collusion privacy requirement.
Multi-Message Computation
SBP codes allow for a "multi-message" approach. Instead of a worker performing one large task and returning a single result, each worker computes and returns $m$ smaller sub-products sequentially. This granularity is key to handling stragglers: if a worker is slow, the master can still use the few sub-tasks that the worker did manage to complete.
One-to-Any Replaceability
A defining feature of the SBP construction is that every sub-task result is equally valuable for decoding. The master node only needs to collect a specific total number of results—the recovery threshold ($R_{th}$)—from any combination of workers. The recovery threshold for SBP is derived as: $$R_{th} = (K + T)L + m(K + T - 1)$$ where $K$ and $L$ represent the partitioning factors of the matrices, $T$ is the collusion threshold, and $m$ is the number of tasks per worker.
Performance and Insights
Communication and Storage Efficiency
SBP codes are particularly effective in upload-constrained settings. To enable $m$ sub-computations, a worker requires only one coded piece of matrix $A$ and $m$ coded pieces of matrix $B$. In contrast, univariate schemes typically require $m$ pieces of both matrices, leading to significantly higher communication overhead. This asymmetry makes SBP highly efficient for distributing large-scale datasets.
Reduced Latency
Through numerical simulations using a shifted exponential distribution to model worker speeds, the authors compared SBP against "Rateless Codes" and a multi-message version of GASP codes (MM-GASP). The results indicate that SBP codes consistently achieve a lower Average Computation Time (ACT). The "one-to-any replaceability" ensures that the master node is never blocked by a specific set of missing tasks, making the system highly agile in heterogeneous environments where worker speeds vary wildly.
Limitations and Future Work
While SBP codes offer significant advantages, they are subject to a "task ceiling" defined by the number of partitions ($L$); a worker cannot compute more sub-tasks than there are unique pieces of Matrix $B$. Additionally, the current design is model-agnostic. Future optimizations could involve "worker-aware" scheduling, where more tasks are assigned to nodes with historically higher performance. Finally, the complexity of encoding and decoding is tied to the size of the finite field used; while larger fields ensure a lower probability of failure, they may increase the local computational burden on the master node.
Conclusion
Secure Bivariate Polynomial codes provide a robust solution for secure distributed matrix multiplication. By optimizing the trade-off between privacy, communication cost, and straggler resilience, SBP codes outperform traditional univariate methods in practical, communication-constrained cloud environments. This framework paves the way for more efficient and secure large-scale data processing in untrusted distributed systems.
Summary updated