Learning Static Parallel Portfolios of Algorithms

Marek Petrik, Shlomo ZilbersteinAI&M 2006

Abstract

In the field of combinatorial optimization, the performance of a single algorithm often varies dramatically across different problem instances. This paper introduces Static Parallel Portfolios of Algorithms (SPPA), a framework where multiple solvers run concurrently on a single processor with fixed CPU shares. We present the Classification-Maximization Algorithm (CMA) to optimize these shares. Our evaluation on the Sat-Ex dataset demonstrates that SPPAs can reduce mean execution time by up to 68% compared to the best individual SAT solver, offering a robust and efficient solution to the algorithm selection problem.

1. Introduction: The Algorithm Selection Problem

A fundamental challenge in solving NP-hard problems like Boolean Satisfiability (SAT) is that no single "best" algorithm exists for all instances. A solver optimized for industrial hardware verification may perform poorly on cryptographic instances. This variability is illustrated in Figure 1, which shows the distribution of runtime differences between two algorithms.

Figure 1: Distribution of runtime differences between two solvers on the Sat-Ex dataset. The prominent spikes at the extremes represent instances where one algorithm solved the problem while the other reached the timeout limit.

The presence of extreme performance gaps—where one solver succeeds while another fails—suggests that a portfolio approach can hedge against the risk of selecting a poorly performing algorithm for a specific task.

2. Static Parallel Portfolios and CMA

We propose the Static Parallel Portfolio of Algorithms (SPPA), where multiple algorithms run simultaneously, each receiving a fixed percentage of the CPU's time. To determine the optimal shares, we developed the Classification-Maximization Algorithm (CMA).

The CMA operates in two iterative phases:

  1. Classification: For current CPU shares, identify which algorithm would first solve each training instance.
  2. Maximization: Adjust shares to maximize the total "profit" (e.g., minimizing total runtime) based on these assignments.

This approach is supported by a theoretical framework using Probably Approximately Correct (PAC) learning, ensuring that portfolios optimized on training data are likely to maintain high performance on unseen instances.

3. Experimental Evaluation

The approach was tested using the Sat-Ex dataset (Simon, 2005), comprising 1,303 instances and 23 state-of-the-art SAT solvers.

3.1 Performance Improvements

The SPPA significantly outperformed individual solvers. Compared to zChaff (the best single algorithm), the portfolio reduced mean execution time by 37% across the full dataset. On the subset of instances solvable by at least one algorithm, the mean execution time was reduced by 68%, with a 55% reduction in standard deviation, leading to more predictable performance.

3.2 Resource Allocation Insights

Optimization often leads to counter-intuitive resource distributions. In one experiment, zChaff was allocated only 9% of CPU time, while eqsatz received over 85%. This is because zChaff was efficient enough to solve its target instances even with a small share, allowing the portfolio to dedicate more resources to "specialist" solvers that cover harder cases.

4. Conclusion

Static Parallel Portfolios provide a simple yet powerful method for leveraging algorithmic diversity. By using the CMA to optimize fixed CPU shares, we achieve substantial speedups over state-of-the-art solvers. While dynamic schedules offer further potential, the static approach provides a highly effective and computationally accessible alternative for solving complex combinatorial problems.

Summary updated

BibTeX
@inproceedings{petrik2006learning,
  author = {Marek Petrik and Shlomo Zilberstein},
  title = {{Learning Static Parallel Portfolios of Algorithms}},
  booktitle = {AI\&M},
  year = {2006},
  url = {https://openreview.net/forum?id=rNRebFRsem},
}
Figure