Manuscript Offprint

arXiv:2609.00552

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

Parsa Moradi, Mohammad Ali Maddah-Ali

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Parsa Moradi

University of Minnesota, Twin Cities

Minneapolis, MN, USA

moradi@umn.edu

Mohammad Ali Maddah-Ali

University of Minnesota, Twin Cities

Minneapolis, MN, USA

maddah@umn.edu

Abstract—Existing coded-computing designs do not explicitly exploit the intrinsic structure of the input data. In communication systems, statistical structure and redundancy are often removed through source coding (or compression) before channel coding is applied. This principle, however, does not transfer directly to coded computation. In many computational tasks, particularly in machine learning, the structure of the data is precisely what the computation seeks to exploit to infer outputs or learn meaningful patterns. Consequently, coded-computing schemes should preserve and leverage this structure in their code design, rather than ignoring or eliminating it through source coding.

This observation motivates a different perspective on code construction. In many channel-coding schemes, such as Reed-Solomon codes, coded symbols are generated by evaluating a low-dimensional algebraic representation at selected points. In contrast, many high-dimensional datasets naturally concentrate near low-dimensional manifolds. In this paper, we exploit this intrinsic geometry by designing coded samples that follow the natural manifold of the data, rather than imposing an artificial low-dimensional structure unrelated to the data distribution. Inspired by graph-based manifold learning, we propose a manifold-aware encoding strategy for general coded computing (GCC). Experiments on neural network inference and high-dimensional polynomial evaluation demonstrate that the proposed strategy consistently and significantly reduces the mean squared recovery error under straggling compared with standard GCC.

I. INTRODUCTION

Distributed computing is a fundamental approach to accelerate large-scale computational workloads, including machine learning training and inference. In a typical master-worker architecture, a master node seeks to evaluate a function on a batch of input data by distributing computational tasks across multiple worker nodes. In practice, however, the overall completion time is often dominated by stragglers: workers that are delayed, overloaded, or fail to return their outputs before a prescribed deadline. Developing effective mechanisms for mitigating the impact of stragglers is therefore a central problem in distributed computing.

Coded computing addresses this challenge by introducing structured redundancy into tasks assigned to workers [1]–[10]. Rather than assigning the original inputs directly, the master node generates a collection of coded inputs via a designed encoding procedure. Each worker evaluates the prescribed target function on its coded input and returns the resulting coded output. The master node then applies a decoding procedure to recover the desired function evaluations from the outputs returned by the non-straggling workers.

Classical coded-computing schemes draw heavily on algebraic coding theory and provide rigorous straggler-resilience guarantees for structured computations, such as matrix multiplication and polynomial evaluation [2], [5], [11]–[16]. Many modern computational workloads, however, involve general high-dimensional nonlinear functions, including deep neural networks, that lack the algebraic structure these schemes require. This limitation has motivated the development of more flexible coded-computing approaches for general nonlinear functions [1], [4], [17], [18]. Among these approaches, General Coded Computing (GCC) provides a learning-theoretic framework for designing straggler-resilient coded-computing schemes for arbitrary functions [6], [7]. GCC formulates coded computation as an end-to-end approximation problem and designs the encoder and decoder by optimizing a loss function that directly measures the discrepancy between the desired function evaluations and the estimates recovered from the non-straggling worker outputs.

Nevertheless, existing coded-computing approaches generally overlook an important property of the input data: its intrinsic statistical structure. This structure often implies substantial redundancy in the data. In communication systems, this redundancy is typically removed first through source coding (or compression) before controlled redundancy is introduced via channel coding to enable reliable communication over an uncertain or noisy channel [19], [20]. This classical separation is supported by Shannon's source-channel separation theorem, which establishes, under standard assumptions for point-to-point memoryless channels, that separate source and channel coding can achieve optimal performance asymptotically [20].

However, this separation principle does not carry over directly to coded computing. Consider machine learning computations, which have been a major motivation for the coded-computing paradigm. Many such tasks are specifically designed to exploit the statistical and geometric structure of the input data to infer outputs or learn meaningful patterns. Applying source coding solely to eliminate intrinsic data redundancy before designing the coded-computing scheme may therefore discard or obscure precisely the structure the computation aims to exploit. Moreover, it is not evident that a

Figure

Fig. 1: Illustration of the importance of exploiting data structure in coded computing. Top: standard GCC. Bottom: GCC with a structure-aware encoder that exploits the intrinsic geometry of the data.

strict separation between source compression and coding for reliable computation is desirable in this setting. Instead, these observations suggest a more integrated design principle:

Coded-computing schemes should explicitly embrace and exploit the intrinsic structure of the data, rather than ignoring or treating it merely as redundancy to be removed prior to coding.

Let us illustrate this consideration through a simple toy example. We first provide a high-level overview of how GCC operates. GCC selects a set of fixed, ordered scalar locations on a one-dimensional interval, referred to as encoder design points, and associates the input samples with these locations (see the blue points in Fig. 1, top). The master node then constructs an encoder curve that maps each encoder design point approximately to its associated input sample (red curve) and samples this curve at a second set of fixed locations, one for each worker, to generate coded inputs (green points). After the workers evaluate the target function on these coded inputs, the master node constructs a decoder curve from the returned coded outputs and evaluates it at the encoder design points to recover the desired function values.

Let us now design the encoder by explicitly exploiting the structure of the data. We first order the data points and then assign them to the encoder design points according to this ordering; see Fig. 1 (bottom). As illustrated in the figure, the resulting encoding curve, shown in red, is substantially smoother. The coded symbols, shown in green, are again obtained by sampling this curve. Heuristically, a smoother encoding curve can be represented more accurately from a limited number of sampled points. Equivalently, fewer coded symbols may be sufficient to reconstruct the red curve, and hence to recover the original data points more accurately. Indeed, the theory of generalized coded computing suggests that a smoother encoding function leads to more accurate coded-computing results [6], [7].

This toy example highlights the importance of exploiting

the intrinsic structure of the data in code design. Many real-world high-dimensional datasets exhibit precisely the structure that can be leveraged for this purpose. According to the manifold hypothesis, such datasets often concentrate near a low-dimensional manifold embedded in the ambient high-dimensional space [21]. This low-dimensional geometry can be viewed as a form of intrinsic redundancy.

Fig. 2 illustrates an example of such a manifold, where the input data points lie in its vicinity. Fig. 2(a) shows a code design that does not exploit the intrinsic structure of the data. As a result, the coded data symbols are sampled from a relatively complex encoding curve, which can lead to a higher approximation error in the decoding process. In contrast, Fig. 2(b) illustrates a code design that exploits this structure and achieves a more accurate approximation.

As shown in Fig. 2(b), when coded computing respects the structure of the data, the coded symbols remain in the vicinity of the data manifold. This observation highlights a key perspective: because the target function is evaluated on coded symbols rather than directly on original data, each coded representation generated by the encoder must constitute a meaningful input to the target function. If the coded-computing scheme fails to respect the data's intrinsic structure, the resulting coded symbols may fall outside the regions of the input space where the target function operates reliably.

For example, in an inference task where the target function is a machine learning model trained on data drawn from a specific domain distribution, coded symbols that stay near the data manifold are more likely to lie in data-supported regions where the model performs well. In contrast, coded symbols that deviate substantially from this manifold may act as out-of-distribution inputs, leading to unreliable predictions after decoding. Similarly, when computing the gradient of a loss function for training, generating coded samples close to the manifold helps ensure training occurs on inputs representative of the underlying data domain.

Uncovering and learning the low-dimensional intrinsic structure near which data points concentrate in a high-dimensional ambient space is referred to as manifold learning. Classical examples include Isomap [22] and Laplacian Eigenmaps [23]. A common approach in manifold learning is to represent relationships among high-dimensional samples using a graph whose nodes correspond to data points and whose edge weights are determined by pairwise distances [22]–[25]. Nearby samples are interpreted as locally related, and the resulting graph provides a discrete proxy for the geometry of the underlying data manifold.

Motivated by these observations, this paper proposes a manifold-aware GCC encoding strategy. Given an input batch, the proposed method constructs a distance-weighted graph whose vertices correspond to input samples and whose edge weights reflect pairwise distances. It then uses a short Hamiltonian path to obtain a one-dimensional traversal of the empirical data geometry and assigns the samples to ordered encoder design points accordingly. The GCC encoder is subsequently

Figure

(a) Standard GCC: arbitrary ordering

Figure

(b) Manifold-aware GCC

Figure

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.

constructed using this geometry-aware assignment. As a result, consecutive portions of the encoder curve connect nearby samples, encouraging coded inputs sampled from the curve to remain closer to the underlying data manifold. Thus, the proposed strategy introduces input ordering as an additional code-design variable while preserving the standard GCC pipeline.

We evaluate the proposed method on two representative classes of high-dimensional nonlinear computations: neural network inference using LeNet5 [26] and high-dimensional polynomial evaluation. Experimental results show that the proposed manifold-aware ordering consistently improves GCC recovery performance under straggling, yielding lower mean squared recovery error than standard GCC.

References (29)

  • Berrut approximated coded computing: Straggler resistance beyond polynomial computing
  • Straggler mitigation in distributed matrix multiplication: Fundamental limits and optimal coding
  • Straggler mitigation in distributed optimization through data encoding
  • ApproxIFER: A model-agnostic approach to resilient and robust prediction serving systems
  • Lagrange coded computing: Optimal design for resiliency, security, and privacy
  • Coded computing for resilient distributed computing: A learning-theoretic framework
  • General coded computing in a probabilistic straggler regime
  • Algorithm-based fault tolerance for matrix operations
  • Speeding up distributed machine learning using codes
  • High-dimensional coded matrix multiplication
  • Numerically stable polynomially coded computing
  • Polynomial codes: an optimal design for high-dimensional coded matrix multiplication
  • Entangled polynomial codes for secure, private, and batch distributed matrix multiplication: Breaking the
  • On the optimal recovery threshold of coded matrix multiplication
  • : Computing large linear transforms distributedly using coded short dot products
  • A scalable approach for privacy-preserving collaborative machine learning
  • CodedPrivateML: A fast and privacy-preserving framework for distributed machine learning
  • A mathematical theory of communication
  • Testing the manifold hypothesis
  • A global geometric framework for nonlinear dimensionality reduction
  • Laplacian eigenmaps for dimensionality reduction and data representation
  • UMAP: Uniform Manifold Approximation and Projection for Dimension Reduction
  • Manifold repairing, reconstruction and denoising from scattered data in high-dimension (opens arXiv in a new tab)
  • Gradient-based learning applied to document recognition
  • Smoothing noisy data with spline functions
  • SIAM, 1990
  • Dynamic programming treatment of the travelling salesman problem
  • A method for solving traveling-salesman problems
  • MNIST handwritten digit database