Latent Class Models for Algorithm Portfolio Methods

Bryan Silverthorn, Risto MiikkulainenAAAI 2010

Abstract

Different solvers for computationally difficult problems such as satisfiability (SAT) perform best on different instances. Algorithm portfolios exploit this phenomenon by predicting solvers' performance on specific problem instances, then shifting computational resources to the solvers that appear best suited. This paper develops a new approach to the problem of making such performance predictions: natural generative models of solver behavior. Two are proposed, both following from an assumption that problem instances cluster into latent classes: a mixture of multinomial distributions, and a mixture of Dirichlet compound multinomial distributions. The latter model extends the former to capture burstiness, the tendency of solver outcomes to recur. These models are integrated into an algorithm portfolio architecture and used to run standard SAT solvers on competition benchmarks. This approach is found competitive with the most prominent existing portfolio, SATzilla, which relies on domain-specific, hand-selected problem features; the latent class models, in contrast, use minimal domain knowledge. Their success suggests that these models can lead to more powerful and more general algorithm portfolio methods.

Introduction

In computationally difficult fields like Boolean Satisfiability (SAT), no single solver dominates all types of problems. An algorithm portfolio manages this by running multiple solvers on a single problem instance, attempting to select the one most likely to succeed. Traditionally, successful portfolios like SATzilla rely on "empirical hardness models," which require manually identifying dozens of domain-specific features (e.g., variable-to-clause ratios) to predict performance. This research addresses the "feature bottleneck" by building a high-performing portfolio using only the observed successes and failures of solvers, treating the solvers themselves as "sensors" for the problem's difficulty.

Methodology

The proposed model-based architecture learns from a training set of tasks and solver outcomes. The core innovation lies in two generative models:

  1. Multinomial Latent Class Model: This assumes problem instances belong to one of $K$ hidden (latent) classes, each with a specific probability distribution for solver performance.
  2. Dirichlet Compound Multinomial (DCM) Latent Class Model: This extends the multinomial model to capture "burstiness"—the tendency of outcomes to recur. For example, if a randomized solver fails on an instance once, it is statistically more likely to fail again on that same instance. The DCM uses a Dirichlet distribution to model this per-task variation.
Algorithm portfolio architecture flowchart

The workflow consists of offline training, where solvers are run multiple times on training tasks to build behavioral profiles using Expectation-Maximization (EM). During online selection, when a new task arrives, the portfolio runs a solver, observes the outcome, and uses Bayes' rule to update its belief about the task's latent class. It then greedily selects the next solver-duration pair that maximizes "discounted utility."

Experimental Setup

The models were evaluated using benchmarks and solvers from the 2009 SAT Competition, categorized into:

  • Random: 570 generator-sampled instances.
  • Crafted: 281 manually selected instances.
  • Industrial: 292 real-world application instances.

The portfolio included every solver from the main round of the competition, providing a rigorous, real-world testbed.

Results and Discussion

The DCM-based portfolio with "hard" (deterministic) action selection proved highly effective. As shown in the results table, it significantly outperformed the "Best Single" solver and random selection across the Random and Crafted categories.

Comparison of SAT instances solved across different methods and datasets

On the Random dataset, the DCM model solved an average of 424.2 instances, surpassing SATzilla’s 407.5. It also outperformed SATzilla on the Crafted (129.4 vs 125.6) and Industrial (146.0 vs 137.6) datasets. These results are particularly notable because the latent class model achieved this performance with minimal domain knowledge, whereas SATzilla utilizes approximately 90 hand-tuned features.

Key insights from the study include:

  • Behavior as a Feature: Solver performance history acts as a proxy for underlying problem features, removing the need for internal structural understanding.
  • Importance of Burstiness: The DCM model's superiority over the standard multinomial model highlights that modeling solver "stubbornness" is crucial for scheduling decisions.

Conclusion

Latent class models offer a "plug-and-play" approach for algorithm portfolios in hard problem domains like planning or scheduling. While the current model requires substantial offline training and uses a greedy selection policy that lacks explicit exploration, future work could integrate more sophisticated planning or hybridize behavioral models with domain-specific features to create even more robust "super-portfolios."

Summary updated

BibTeX
@inproceedings{silverthorn2010latent,
  author = {Bryan Silverthorn and Risto Miikkulainen},
  title = {{Latent Class Models for Algorithm Portfolio Methods}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2010},
  url = {https://openreview.net/forum?id=S14W6CeOWH},
}
Figure