CAT and DOG: Improved Codes for Private Distributed Matrix Multiplication

Christoph Hofmeister, Rawad Bitar, Antonia Wachter-Zeh

Abstract

In the era of big data, Private Distributed Matrix Multiplication (PDMM) has become a critical primitive for secure large-scale computation. This paper presents two new coding frameworks: Cyclic-Addition degree Tables (CAT) and Discretely Optimized GASPrs (DOG). By utilizing roots of unity as evaluation points and employing discrete optimization for degree gaps, these frameworks minimize the number of worker nodes required for $T$-private computation. Our analysis shows that the proposed CATx and DOGrs constructions consistently outperform state-of-the-art methods like GASPr and PoleGap, offering significant reductions in worker counts, especially in scenarios where the number of matrix partitions is large relative to the privacy threshold.

Introduction

The proliferation of massive datasets in machine learning necessitates distributing heavy computational tasks, such as matrix multiplication, across multiple worker nodes. In a Private Distributed Matrix Multiplication (PDMM) setting, a user wishes to compute the product $AB$ of two large matrices by distributing the work among $N$ nodes. A primary constraint is $T$-privacy: even if up to $T$ worker nodes collude, they must not be able to gain any information about the input matrices $A$ and $B$.

The efficiency of a PDMM scheme is measured by the recovery threshold $N$, the minimum number of workers needed to successfully decode the product. Most modern schemes utilize Outer Product Partitioning (OPP), where $A$ and $B$ are divided into $K$ and $L$ blocks, respectively. The core challenge lies in designing "degree tables"—mathematical structures that manage the exponents of the encoding polynomials to prevent interference between the desired product terms and the random noise added for privacy.

Methodology: CAT and DOG

We introduce two primary innovations to improve the recovery threshold in PDMM.

Cyclic-Addition Degree Tables (CAT)

Traditional PDMM schemes, such as GASPr, rely on polynomial degrees managed through standard integer addition. We propose the CAT framework, which utilizes roots of unity from finite fields or complex numbers as evaluation points.

The key advantage of using roots of unity is that the underlying degree table operates via modulo-addition (cyclic addition) rather than integer addition. This allows for a more compact "packing" of terms. Specifically, the CATx construction allows degrees to "wrap around" a modulus $q$, reducing the total number of distinct terms required in the polynomial. This directly translates to a lower recovery threshold $N$.

Example degree tables illustrating the packing of terms in the proposed coding schemes.

Discretely Optimized GASPrs (DOG)

For environments where roots of unity may not be suitable, we enhance the existing integer-based GASPr framework. We generalize the "gaps" between polynomial degrees using parameters $r$ and $s$. By applying discrete optimization techniques (computer-aided searches), we identified optimal gap configurations, leading to the DOGrs family of codes. These codes provide a more flexible and efficient alternative to standard GASPr by tailoring the degree table to specific values of $K, L,$ and $T$.

Performance Evaluation and Key Results

As this is a theoretical contribution to information theory, performance is evaluated by comparing the required worker counts ($N$) across a broad parameter space.

Comparative Dominance

Our schemes demonstrate broad superiority over existing benchmarks. Figure 1 illustrates a "heatmap" of the best-performing methods for various values of $K=L$ and $T$.

Performance heatmap comparing CATx, DOGrs, GASPr, and PoleGap across different partition (K=L) and privacy (T) parameters.

The results indicate that CATx is exceptionally powerful in the "low-privacy" regime—where the number of partitions ($K, L$) is significantly larger than the privacy threshold ($T$). In such cases, CATx can save up to $3T - 5$ workers compared to previous state-of-the-art methods. For instance, with $K=L=T=4$, CATx requires only 34 workers, whereas GASPr requires 36.

Scaling and Efficiency

For larger systems, the benefits remain substantial. In a configuration with $K=L=T=100$, the DOGrs and GASPrs schemes reduce the worker requirement by approximately 5%. While seemingly modest, a 5% reduction in a 1,000-node cluster represents a significant decrease in hardware costs, power consumption, and communication latency.

Conclusion and Future Work

The CAT and DOG frameworks represent a significant step forward in the efficiency of private distributed computation. By moving from linear to cyclic degree management and employing discrete optimization, we have pushed the boundaries of the recovery threshold in PDMM.

However, certain constraints remain. The CAT framework requires the underlying field to support specific roots of unity, and the CATx construction is most efficient when $K+1$ and $L+1$ are coprime to $T-1$. Future research will focus on establishing "converse results"—theoretical lower bounds on the recovery threshold—to determine how close these new codes are to the fundamental limits of information theory. Additionally, we aim to extend our asymptotic analysis to even larger-scale distributed systems.

Summary updated

BibTeX
@inproceedings{hofmeister2025cat,
  author = {Christoph Hofmeister and Rawad Bitar and Antonia Wachter-Zeh},
  title = {{CAT and DOG: Improved Codes for Private Distributed Matrix Multiplication}},
  booktitle = {ISIT},
  year = {2025},
  doi = {10.1109/isit63088.2025.11195364},
}
Figure