Manifold-Aware General Coded Computing for Straggler-Resilient Distributed Computing

Parsa Moradi, Mohammad Ali Maddah-AliarXiv 2026

TL;DR

Distributed computing often slows down due to "straggler" nodes, a problem typically solved by introducing redundant, coded tasks. This paper introduces Manifold-Aware General Coded Computing (GCC), a strategy that orders input data to respect its natural geometric structure before encoding. By keeping coded tasks within the realistic data distribution, this approach significantly reduces recovery errors and maintains high model accuracy even when many workers fail.

What Problem Does This Paper Address?

In large-scale distributed machine learning, a master node splits a batch of data across multiple worker nodes to compute a function (like neural network inference) in parallel. However, the system's overall speed is often bottlenecked by stragglers—workers that are slow, overloaded, or fail entirely.

"Coded computing" solves this by distributing mathematically combined (coded) inputs so the master node can reconstruct the final results from whichever workers finish first. A recent framework called General Coded Computing (GCC) uses smoothing splines to handle complex, non-linear functions like deep neural networks.

However, standard GCC ignores the intrinsic structure of the input data. It assigns data points to the encoder arbitrarily, which can result in a highly erratic, oscillatory encoding curve. Consequently, the generated coded inputs often end up far away from the natural data distribution (out-of-distribution), leading to massive approximation errors during decoding when workers straggle.

Methods

The authors propose Manifold-Aware GCC, which treats data ordering as a core code-design variable. The method proceeds as follows:

  1. Graph Construction: Given a batch of $K$ inputs, it builds a distance-weighted graph where each node is a data point, and edge weights represent pairwise Euclidean distances.
  2. Manifold Traversal via TSP: To find a smooth one-dimensional traversal of this high-dimensional data manifold, the authors formulate it as finding the shortest Hamiltonian path (a Traveling Salesman Problem variant).
  3. 2-Opt Heuristic: Since exact TSP is NP-hard ($O(K^2 2^K)$), they employ a highly efficient 2-opt local search heuristic to approximate the optimal data ordering.
  4. Spline Encoding & Decoding: The data points are mapped to ordered encoder design points according to this permutation. A second-order smoothing spline is then fitted to create a smooth encoding curve. Coded inputs are sampled along this curve and sent to workers. The master node decodes the results using a corresponding decoder spline.
Fig. 2: Illustration of standard and manifold-aware GCC encoding. Original input samples (blue) lie on a low-dimensional data manifold. With an arbitrary ordering, the fitted encoder curve (red) makes large transitions through the ambient space, causing many coded inputs (orange) to lie away from the data manifold. In contrast, the manifold-aware ordering encourages the encoder curve to follow the data geometry, keeping the resulting coded inputs (green) in the vicinity of the manifold.

Datasets

The method was evaluated on two primary tasks:

  • MNIST Handwritten Digit Database: Used for neural network inference with the LeNet5 architecture (a convolutional neural network with approximately $6 \times 10^4$ trainable parameters).
  • Synthetic High-Dimensional Polynomial Dataset: A degree-8 polynomial evaluation task used to test performance on classic high-dimensional mathematical functions.

Key Insights and Ideas

  • Don't Compress Before Coding: In traditional communications, Shannon's separation theorem suggests removing data redundancy (source coding) before adding protection (channel coding). The authors argue this principle breaks down in coded computing because machine learning models rely on the data's intrinsic geometric structure to make accurate predictions.
  • Smoother Curves = Better Recovery: Ordering data points by proximity creates a much smoother encoding spline. In approximation theory, smoother functions can be reconstructed much more accurately from fewer sample points (i.e., fewer non-straggling workers).
  • Avoiding Out-of-Distribution (OOD) Pitfalls: Arbitrary coding creates synthetic inputs that look like pure noise to a neural network. Manifold-aware coding ensures that the synthetic, coded inputs remain close to the real data manifold, meaning the neural network evaluates them in regions where it was actually trained to perform reliably.

Key Results

  • Massive Error Reduction: For LeNet5 inference with 100 workers and a batch size of 60 ($(N, K) = (100, 60)$), Manifold-Aware GCC consistently achieved lower Mean Squared Error (MSE) and significantly higher relative classification accuracy compared to standard GCC, especially as the number of stragglers increased.
  • Stable Polynomial Recovery: In the degree-8 polynomial task ($(N, K) = (31, 12)$), the proposed method maintained a recovery error close to zero across the entire tested straggler range, whereas standard GCC's error exploded with more stragglers.
  • Heuristic Efficiency: The 2-opt local search heuristic closely tracked the performance of the exact shortest Hamiltonian path algorithm, making it highly practical for real-world deployment without adding prohibitive computational overhead.
Performance comparison between standard GCC and manifold-aware GCC

Limitations and Future Work

  • Scaling to Massive Batches: Although the 2-opt heuristic is efficient ($O(K^2d)$ where $d$ is the dimension), the quadratic dependence on the batch size $K$ could still become a bottleneck for extremely large batches.
  • Advanced Distance Metrics: The current implementation relies primarily on standard Euclidean distance to construct the graph. The authors note that using more sophisticated distance metrics in learned feature spaces could further improve manifold alignment for complex datasets.

Summary updated

BibTeX
@misc{moradi2026manifold,
  author = {Parsa Moradi and Mohammad Ali Maddah-Ali},
  title = {{Manifold-Aware General Coded Computing for Straggler-Resilient Distributed Computing}},
  year = {2026},
  eprint = {2609.00552},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.00552},
}
Figure