Solving Large-Scale Granular Resource Allocation Problems Efficiently with POP

Deepak Narayanan, Fiodar Kazhamiaka, Firas Abuzaid, Peter Kraft, Akshay Agrawal, Srikanth Kandula, Stephen P. Boyd, Matei Zaharia

Introduction

Resource allocation is a fundamental challenge in modern cloud infrastructure, involving the distribution of GPUs, network bandwidth, and data shards across thousands of users. While mathematical optimization techniques like Linear Programming offer theoretically optimal solutions, they suffer from poor scalability. In large-scale systems with millions of variables, traditional solvers can take minutes or hours—latencies that are unacceptable for production environments requiring sub-second decision-making.

To circumvent these delays, engineers often rely on hand-tuned heuristics. While fast, these "rule of thumb" algorithms frequently sacrifice allocation quality and lack the flexibility to adapt to new objectives. Researchers from Stanford and Microsoft have introduced Partitioned Optimization Problems (POP), a technique that achieves near-optimal results with orders-of-magnitude speedups, effectively bridging the gap between slow exact solvers and sub-optimal heuristics.

Methodology: Divide and Conquer

The core innovation of POP is a "divide and conquer" strategy that exploits the statistical properties of large-scale systems. The process follows a simple three-step workflow:

  1. Partition: Randomly split the clients and resources into $k$ smaller, independent sub-problems.
  2. Map: Solve each sub-problem in parallel using standard off-the-shelf solvers (e.g., Gurobi or MOSEK).
  3. Reduce: Aggregate the local solutions into a single global allocation.
The POP partitioning process splits a large system and its corresponding optimization problem into k independent sub-problems.

This approach relies on the concept of granularity. In systems where many clients request small fractions of interchangeable (fungible) resources, random partitioning creates sub-problems that are representative "microcosms" of the global state. For scenarios with large "elephant" flows or non-granular requests, the authors introduce Granularization Techniques, such as splitting large client requests into multiple "virtual" clients or dividing resource capacity across partitions to maintain statistical balance.

Key Results and Performance

The authors evaluated POP across three domains: GPU cluster scheduling (using Gavel traces), traffic engineering (using Internet Topology Zoo and industrial WAN traces), and load balancing. Across all benchmarks, POP demonstrated a superior balance of speed and quality.

Performance comparison showing POP variants achieving near-optimal quality with significantly lower runtime than exact solvers and better quality than heuristics like Gandiva.

Key performance metrics include:

  • Near-Optimality: POP consistently stayed within 1.5% of the optimal solution quality.
  • Significant Speedups: The technique achieved up to 100x faster runtimes compared to solving the full optimization problem.
  • Heuristic Superiority: In GPU cluster scheduling, POP was 20x faster and provided 1.9x higher quality allocations than Gandiva, a state-of-the-art heuristic.
  • Flexibility: Unlike heuristics, POP reuses the original optimization formulation, allowing for seamless changes to objectives (e.g., switching from throughput maximization to fairness) without modifying the partitioning logic.

Limitations and Future Work

Despite its advantages, POP is not a universal solution. Its performance can degrade under hard combinatorial constraints (e.g., strict co-location requirements) or when dealing with highly non-fungible resources where specific clients must access unique, non-interchangeable assets. Furthermore, global objectives—such as minimizing the total number of active servers—are difficult to optimize when sub-problems lack global visibility. Future research may focus on "affinity-aware" partitioning and iterative refinement methods to further close the remaining optimality gap in these challenging scenarios.

Summary updated

BibTeX
@inproceedings{narayanan2021solving,
  author = {Deepak Narayanan and Fiodar Kazhamiaka and Firas Abuzaid and Peter Kraft and Akshay Agrawal and Srikanth Kandula and Stephen P. Boyd and Matei Zaharia},
  title = {{Solving Large-Scale Granular Resource Allocation Problems Efficiently with POP}},
  booktitle = {SOSP},
  year = {2021},
  url = {https://openreview.net/forum?id=rSeW9u8uLb9},
}
Figure