Abstract
This paper studies MapReduce-based heterogeneous coded distributed computing (CDC) where, besides different computing capabilities at workers, input files to be accessed by computing jobs have nonuniform popularity. We propose a file placement strategy that can handle an arbitrary number of input files. Furthermore, we design a nested coded shuffling strategy that can efficiently manage the nonuniformity of file popularity to maximize the coded multicasting opportunity. We then formulate the joint optimization of the proposed file placement and nested shuffling design variables to optimize the proposed CDC scheme. To reduce the high computational complexity in solving the resulting mixed-integer linear programming (MILP) problem, we propose a simple two-file-group-based file placement approach to obtain an approximate solution. Numerical results show that the optimized CDC scheme outperforms other alternatives. Also, the proposed two-file-group-based approach achieves nearly the same performance as the conventional branch-and-cut method in solving the MILP problem but with substantially lower computational complexity that is scalable over the number of files and workers. For computing jobs with aggregate target functions that commonly appear in machine learning applications, we propose a heterogeneous compressed CDC (C-CDC) scheme to further improve the shuffling efficiency.
Introduction
In large-scale distributed computing frameworks like MapReduce or Spark, the "Shuffle" phase—where workers exchange intermediate data—is often the primary bottleneck, sometimes accounting for over 90% of execution time. Coded Distributed Computing (CDC) was introduced to mitigate this by using "coded multicasting," allowing a single transmission to satisfy multiple workers simultaneously. However, traditional CDC models often assume homogeneous worker capabilities and uniform file popularity, which do not reflect real-world heterogeneous clusters and Zipf-distributed data access patterns. This research addresses these gaps by designing a CDC framework that optimizes communication load under nonuniform file popularity and mismatched hardware.
System Architecture and the CDC Framework
The proposed system follows a MapReduce structure where a set of input files $\mathcal{D}$ is processed to compute target functions. As shown in Figure 1, the process involves a Map phase generating Intermediate Values (IVs), followed by a Shuffle phase (the focus of this optimization), and finally a Reduce phase to produce the target functions.
Proposed Innovations
1. Nested Coded Shuffling Strategy
A significant challenge in heterogeneous CDC is that nonuniform file popularity leads to intermediate values of varying sizes. Standard XOR-based multicasting requires equal-sized messages. To overcome this, the authors developed a nested coded shuffling strategy. This recursive approach identifies "residual" data that cannot be perfectly multicasted in one pass and groups it into nested layers, maximizing multicasting opportunities even with asymmetric message sizes.
2. Two-File-Group-Based Placement
Optimizing file placement to minimize shuffling load is typically a Mixed-Integer Linear Programming (MILP) problem, which is NP-hard. The authors propose a heuristic: partitioning files into "popular" and "unpopular" groups. This simplification transforms the problem into a standard Linear Programming (LP) task, drastically reducing computational time from days to seconds without significant loss in performance.
3. Heterogeneous Compressed CDC (C-CDC)
For aggregate target functions common in machine learning (e.g., gradient summation), the framework introduces a local aggregation step. Workers sum their intermediate values locally before shuffling, significantly reducing the total volume of data transmitted across the network.
Performance Evaluation
Numerical simulations demonstrate the effectiveness of the proposed schemes:
- Efficiency: The optimized CDC scheme consistently outperforms standard Round-Robin placement and existing state-of-the-art models.
- Scalability: For a 10-worker system, the proposed heuristic found a solution in 45 seconds that was nearly identical to one found by an exact MILP solver in 4 days.
- Robustness: The scheme maintains high efficiency even when file popularity predictions are slightly inaccurate.
- Data Skew: As file popularity becomes more skewed (higher Zipf parameter), the communication load reduction becomes even more pronounced, approaching theoretical limits.
Conclusion
By accounting for worker heterogeneity and nonuniform file popularity, this research provides a practical and scalable framework for reducing the communication bottleneck in distributed computing. The combination of nested shuffling and group-based optimization heuristics makes it particularly suitable for modern, large-scale machine learning workloads in heterogeneous cloud environments.
Summary updated