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

Generalized Lagrange Coded Computing: A Flexible Computation-Communication Tradeoff

Jinbao Zhu, Songze Li

TL;DR

Generalized Lagrange Coded Computing (GLCC) is a new framework for distributed computing that simultaneously provides data privacy, security against malicious actors, and resilience against slow "straggler" nodes. By introducing flexible dataset partitioning and multi-response workers, GLCC achieves up to a 3.9x speedup in training time compared to the previous state-of-the-art, Lagrange Coded Computing (LCC).

What Problem Does This Paper Address?

Distributed computing is essential for processing massive datasets, but it faces three fundamental hurdles:

  1. The Straggler Effect: A single slow worker node can delay an entire computation.
  2. Security Vulnerabilities: Malicious workers might intentionally return incorrect results to bias a model or disrupt the system.
  3. Privacy Concerns: In sensitive fields like healthcare or finance, raw data cannot be shared directly with worker nodes.

Existing "coded computing" methods use error-correction principles to solve these issues. However, the current gold standard—Lagrange Coded Computing (LCC)—is often "rigid." It requires a high number of successful responses (a high "recovery threshold") before the master node can reconstruct the final result. The authors of this paper sought a more flexible approach that allows system designers to trade off communication overhead for faster, more resilient computation.

Methods

The authors propose Generalized Lagrange Coded Computing (GLCC). While it builds on the polynomial-based encoding of LCC, it introduces two key structural innovations:

  • Dataset Partitioning ($G$): Instead of encoding the entire dataset into one large polynomial, GLCC partitions the data into $G$ disjoint groups. This reduces the degree of the polynomials involved, which in turn lowers the number of worker responses needed to solve the problem.
  • Multiple Sub-responses ($L$): Each worker processes multiple encoded data points and returns $L$ sub-responses. The master node uses a technique called interference cancellation to "untangle" these responses.

By tuning $G$ and $L$, GLCC can significantly lower the recovery threshold ($K$)—the minimum number of workers the master must wait for. LCC is effectively a special case of GLCC where $G=1$ and $L=1$.

To make this work for real-world machine learning, the authors also implemented a quantization scheme. Since coded computing relies on finite field mathematics (modular arithmetic), they developed a way to map real-valued gradients and weights into integers and back again without losing significant accuracy.

Datasets

The authors evaluated GLCC by training single-layer perceptron classifiers on two standard benchmarks:

  • MNIST: A dataset of 70,000 grayscale images of handwritten digits (0-9).
  • CIFAR-10: A dataset of 60,000 color images across 10 classes (e.g., airplanes, cats, dogs). For this dataset, they used a pre-trained VGG19 model (on ImageNet) to extract 512-dimensional features before training.

Key Insights and Ideas

  • The "Aha" Moment on Partitioning: The authors realized that by splitting the dataset into groups, they could "align" the interference from different groups in a way that the master node could easily subtract. This is what allows for a lower recovery threshold without sacrificing privacy.
  • Flexibility is Key: There is no "one-size-fits-all" configuration. In scenarios with mild stragglers, a configuration with more sub-responses ($L$) is better. In scenarios with severe, long delays, a configuration with more groups ($G$) is more robust.
  • Privacy-Efficiency Synergy: Surprisingly, GLCC can provide stronger privacy guarantees than LCC. In their experiments, GLCC could tolerate up to 6 colluding workers (workers sharing data to try and steal the raw dataset), while LCC could only tolerate 3 in the same setup.

Key Results

  • Significant Speedups: GLCC achieved training speedups of 2.5x to 3.4x on MNIST and 3.6x to 3.9x on CIFAR-10 compared to LCC.
  • Lower Recovery Threshold: In a system with 50 workers, GLCC was able to recover the full computation using as few as 12 workers, whereas LCC required significantly more.
  • Accuracy Preservation: Despite the quantization required for finite field math, GLCC reached nearly the same test accuracy as centralized training (within ~1-4%), proving it is viable for practical machine learning tasks.

Limitations and Future Work

  • Quantization Noise: The transition from real numbers to finite fields introduces a tradeoff. Larger fields reduce noise but increase the computational burden on the master and workers.
  • Polynomial Complexity: GLCC is designed for functions that can be expressed as polynomials. While many ML operations (like gradients for linear/logistic regression) fit this, complex non-linearities like ReLU or Softmax require polynomial approximations, which can introduce further errors.
  • Exploiting "Partial" Stragglers: Currently, the model assumes a worker either finishes all $L$ sub-responses or is treated as a straggler. Future work could look into "anytime" decoding, where the master uses whatever sub-responses a slow worker manages to send before the deadline.

Summary updated

BibTeX
@inproceedings{zhu2022generalized,
  author = {Jinbao Zhu and Songze Li},
  title = {{Generalized Lagrange Coded Computing: A Flexible Computation-Communication Tradeoff}},
  booktitle = {ISIT},
  year = {2022},
  url = {https://openreview.net/forum?id=wHsRMVgcsr7},
}

Loading related content...

Figure