Don't Give Up on Large Optimization Problems; POP Them!

Deepak Narayanan, Fiodar Kazhamiaka, Firas Abuzaid, Peter Kraft, Matei ZahariaarXiv 2021

The Scalability Wall in Resource Allocation

In the era of "hyper-scale" cloud infrastructure, resource allocation has become a monumental challenge. Whether scheduling millions of jobs across GPU clusters or routing petabytes of traffic through global networks, the underlying task is often a massive optimization problem. While these can be formally defined as Linear Programs (LPs) or Integer Linear Programs (ILPs), the computational cost of solving them optimally for millions of variables is prohibitive for real-time systems.

Historically, engineers have faced a binary choice: wait hours for an optimal solver or settle for hand-tuned heuristics. Heuristics are fast but brittle; they are difficult to maintain, struggle to generalize across changing objectives, and often leave significant performance on the table. This paper introduces Partitioned Optimization Problems (POP), a technique designed to break this deadlock by providing near-optimal solutions with heuristic-like speed.

Methods: The POP Framework

The core philosophy of POP is a "MapReduce" style approach to mathematical optimization. Rather than tackling a monolithic problem, POP decomposes it into smaller, parallelizable components.

The POP workflow: partitioning a large system and its corresponding optimization variables into k independent sub-problems.

The process follows three distinct steps:

  1. Split (Partition): The large system—comprising $n$ entities and $m$ resources—is divided into $k$ independent sub-systems.
  2. Map (Solve): The original optimization formula is applied to each sub-system and solved in parallel using standard, off-the-shelf solvers.
  3. Reduce (Coalesce): The resulting sub-allocations are merged into a single global solution.

The success of this approach hinges on distributional similarity. For the coalesced solution to be effective, each sub-problem must serve as a representative "miniature" of the global state. The authors demonstrate that simple techniques like random assignment or stratified sampling are often sufficient to ensure that the mean and covariance of entity attributes remain consistent across partitions, allowing local optima to naturally approximate the global optimum.

Key Insights: Why Partitioning Works

A primary driver of POP's efficiency is the superlinear speedup inherent in optimization solvers. The most efficient LP solvers typically exhibit a complexity of approximately $O(n^{2.5})$. By reducing the number of variables by a factor of $k$, the runtime improvement is not merely linear; splitting a problem into 10 parts can result in speedups of several hundred times.

Furthermore, POP addresses the "maintenance trap" of heuristics. In a traditional system, changing a business objective (e.g., from maximizing throughput to ensuring fairness) requires rewriting complex heuristic logic. With POP, developers simply update the objective function in the mathematical model, and the solver handles the implementation details across the partitions.

Empirical Results

The authors evaluated POP across three domains: cluster scheduling (using the Gavel model), traffic engineering (on the Kentucky Data Link topology), and query load balancing.

Allocation quality vs. runtime for cluster scheduling. POP achieves near-optimal quality with orders of magnitude faster runtimes than the original solver.

The results were transformative:

  • Massive Speedups: In cluster scheduling, POP achieved a 405x runtime improvement compared to the original full-scale solver.
  • High Efficacy: Across all evaluated tasks, POP remained within 1.5% of the optimal solution.
  • Outperforming Heuristics: When compared to state-of-the-art heuristics like Gandiva (for scheduling) or CSPF (for networking), POP produced solutions that were up to 1.9x better while maintaining comparable or superior runtimes.

Limitations and Future Directions

While POP shows immense promise, it is not a silver bullet. The authors identify the "Taylor Swift" problem—extreme data skew where a single entity (like a viral data shard) dominates traffic—as a scenario where simple partitioning fails. In such cases, replicating heavy entities across multiple sub-problems may be necessary. Additionally, while empirical results are robust, providing formal theoretical optimality bounds for partitioned non-convex problems remains a challenge.

Future work aims to automate the partitioning process, creating a general-purpose framework that can determine the optimal "split" strategy for any given optimization formula without requiring manual, domain-specific tuning.

Reference: Narayanan, D., et al. "Don't Give Up on Large Optimization Problems; POP Them!" arXiv:2104.06513 [cs.DC].

Summary updated

BibTeX
@misc{narayanan2021don,
  author = {Deepak Narayanan and Fiodar Kazhamiaka and Firas Abuzaid and Peter Kraft and Matei Zaharia},
  title = {{Don't Give Up on Large Optimization Problems; POP Them!}},
  year = {2021},
  eprint = {2104.06513},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.06513},
}
Figure