Papers
Topics
Authors
Recent
Search
2000 character limit reached

Coded Distributed Computing Optimization

Updated 3 February 2026
  • Coded Distributed Computing (CDC) is a framework that reduces shuffle load by introducing structured computation redundancy.
  • It optimizes heterogeneous systems via joint file placement and nested coded shuffling schemes under nonuniform file popularity.
  • Low-complexity methods like the two-file-group heuristic and C-CDC substantially reduce communications, achieving near-optimal load reductions.

Coded Distributed Computing (CDC) is a framework for minimizing the communication bottleneck in distributed MapReduce systems by intentionally introducing structured computation redundancy, thereby maximizing multicasting opportunities and reducing the amount of data exchanged in the shuffle phase. Recent developments have extended CDC to heterogeneous environments with nonuniform file popularity, flexible worker storage and computation capacities, and application-driven optimizations. This article focuses on the design, analysis, and optimization of heterogeneous CDC systems under nonuniform file popularity, with emphasis on the nested coded shuffling paradigm, optimization formulations, low-complexity approximation methods, and shuffling load reduction through data aggregation (Deng et al., 2023).

1. System Model and Heterogeneity

CDC is considered in a setting where KK workers each store up to MkM_k files and are responsible for a fraction WkW_k of the QQ reduce functions, satisfying kWk=1\sum_k W_k=1. The input file library contains NN files with popularity profile p=(p1,,pN)p=(p_1,\dots,p_N), typically Zipf-like, imposing nonuniform file request probabilities pnp_n. Job requests draw subsets W{1,,N}\mathcal W\subseteq\{1,\dots,N\} of fixed size D=WD=|\mathcal W| with induced product probability

MkM_k0

to model skewed access patterns and probabilistic locality.

Each worker MkM_k1 stores up to MkM_k2 files and is assigned a subset MkM_k3 of the MkM_k4 reduce functions. File placement is encoded using binary variables MkM_k5, indicating storage of file MkM_k6 on exactly the subset MkM_k7 of workers. The assignment must satisfy that every file is placed (MkM_k8 for all MkM_k9) and each worker's storage is not exceeded (WkW_k0 for each WkW_k1).

2. File Placement under Nonuniform Popularity

Optimal file placement jointly considers the workers' heterogeneity and the nonuniform popularity distribution. Each file is assigned to a specific nonempty worker subset WkW_k2 with the variable WkW_k3. The resulting WkW_k4 counts the requested files from WkW_k5 located on WkW_k6 for the current job.

Due to the combinatorial explosion in the number of subsets WkW_k7, directly solving for the best WkW_k8 is intractable for moderate WkW_k9. To make this practical, a two-file-group heuristic groups the files into "popular" and "unpopular" classes by selecting a threshold QQ0. The QQ1 most popular files are greedily stored to maximize redundancy (filling remaining storage), while the less popular files are placed minimally (each mapped to only one worker), reducing mapping redundancy and storage cost.

3. Nested Coded Shuffling Scheme

The coded shuffling stage delivers, for each worker QQ2, all intermediate values (IVs) QQ3 required for the assigned reduce tasks QQ4, covering files QQ5 not locally stored. The nested shuffling is a recursive procedure defined for each worker subset QQ6, QQ7:

  • Step 1: For each QQ8, identify the residual IVs, QQ9, needed from kWk=1\sum_k W_k=10 not previously coded in larger supersets.
  • Step 2: Within kWk=1\sum_k W_k=11, for each pair kWk=1\sum_k W_k=12, kWk=1\sum_k W_k=13, select a segment kWk=1\sum_k W_k=14 of equal normalized size kWk=1\sum_k W_k=15 for all kWk=1\sum_k W_k=16. The remainder, kWk=1\sum_k W_k=17, is carried down to be resolved at lower cardinality.
  • Step 3: Each worker kWk=1\sum_k W_k=18 forms the coded packet

kWk=1\sum_k W_k=19

and multicasts it to NN0.

This process recursively continues until NN1, where remaining residuals are unicasted. This scheme generalizes the coded multicasting gain to settings with nonuniform file popularity, variable IV sizes, and arbitrary file placements.

The total (expected) shuffle load is expressed as

NN2

subject to the placement and nesting constraints.

4. Joint Placement and Shuffle Optimization

The joint design seeks NN3, NN4, and nested residual variables NN5 that minimize the expected shuffle load NN6, subject to capacity and recursion constraints. The resulting problem is a large-scale mixed-integer linear program (MILP): NN7 plus linear constraints for the nested flow-conservation at every NN8. The problem is NP-hard and its size grows exponentially with NN9.

5. Two-File-Group Low-Complexity Method

For scalability, a two-file-group approach reduces search complexity by fixing the placement as follows: unpopular files are round-robin assigned to minimize redundancy, and the p=(p1,,pN)p=(p_1,\dots,p_N)0 most popular files fill remaining storage greedily. For each threshold p=(p1,,pN)p=(p_1,\dots,p_N)1, the remaining subproblem with fixed placement becomes an LP in the shuffling design variables, solved efficiently for all p=(p1,,pN)p=(p_1,\dots,p_N)2.

The best split p=(p1,,pN)p=(p_1,\dots,p_N)3 is selected to minimize p=(p1,,pN)p=(p_1,\dots,p_N)4. In practice, p=(p1,,pN)p=(p_1,\dots,p_N)5 suffices to ensure tractability, and numerical results indicate this heuristic achieves within a few percent of the full MILP solution and within 10–15% of a fundamental lower bound. For highly skewed popularity (p=(p1,,pN)p=(p_1,\dots,p_N)6), the two-group solution is nearly optimal—within 3% of the bound.

Approach Complexity Performance gap
MILP (branch-and-cut) Exponential in p=(p1,,pN)p=(p_1,\dots,p_N)7 Baseline (optimal)
Two-file-group + LP p=(p1,,pN)p=(p_1,\dots,p_N)8 LPs, p=(p1,,pN)p=(p_1,\dots,p_N)9 Within pnp_n0\%

6. Aggregate Jobs and Heterogeneous Compressed CDC (C-CDC)

For applications where the reduce functions are aggregate (e.g., mini-batch gradients, sums), the framework introduces a compressed CDC (C-CDC) variant that leverages local aggregation to reduce shuffle load. For aggregates of the form

pnp_n1

each worker pre-aggregates IVs for files it holds, so only a single T-bit aggregate needs to be delivered per group, replacing pnp_n2 individual IVs with one sum.

The compressed shuffle follows the same nested approach as in standard CDC, but variable pnp_n3 are now associated with aggregate-packets and receive adjusted flow constraints. The result is a further 20–30% reduction in shuffling load over the standard (uncompressed) CDC scheme.

7. Empirical Results and Insights

Empirical studies using the above framework yield several key results:

  • For moderate system sizes pnp_n4, full MILP is infeasible, while the two-file-group method solves in seconds.
  • Across realistic ranges of Zipf popularity (pnp_n5–pnp_n6), the two-file-group solution is within a few percent of the MILP and within 10–15% of an information-relaxed lower bound.
  • Compared to uncoded round-robin baseline, the proposed heterogeneous CDC achieves up to pnp_n7 reduction in shuffle load, with aggregation-based compression (C-CDC) delivering an additional 20–30% saving.
  • As popularity skew increases, redundancy is concentrated on a few highly requested files, and the two-group heuristic approaches the theoretical optimum.

Summary Table: CDC Scheme Capabilities

CDC Scheme Heterogeneous pnp_n8, pnp_n9 Nonuniform Popularity (W{1,,N}\mathcal W\subseteq\{1,\dots,N\}0) Compressed/Aggregate-IV Low-Complexity Approximation Multicasting Method
(Deng et al., 2023) Yes Yes Yes (C-CDC) Two-file-group Nested coded shuffling

The flexible heterogeneous CDC paradigm (Deng et al., 2023)—which jointly optimizes worker-aware file placement and generalized coded shuffling, incorporates file popularity, and exploits data aggregation—substantially improves shuffle communication efficiency in practical distributed systems. This framework extends classical CDC to heterogeneous, data-skewed, and ML-driven settings with scalable solution methods and analytically quantifiable performance.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Coded Distributed Computing (CDC).