aspeed: Solver scheduling via answer set programming

Holger H. Hoos, Roland Kaminski, Marius Lindauer, Torsten Schaub

Abstract

This paper introduces aspeed, a system leveraging Answer Set Programming (ASP) to automatically design optimal schedules for solver portfolios. Unlike traditional algorithm selectors that rely on complex, domain-specific feature extraction, aspeed generates non-uniform, ordered schedules based on historical performance data. Experimental results across various combinatorial problem domains demonstrate that aspeed matches or exceeds the performance of state-of-the-art feature-based selectors, particularly in parallel computing environments.

Introduction

In the field of Boolean Constraint Technology—encompassing SAT solvers, Answer Set Programmers, and Constraint solvers—no single algorithm dominates all problem instances. A solver that excels on one class of problems may frequently time out on another. To mitigate this, researchers employ portfolios, which utilize a collection of solvers rather than a single one.

Managing these portfolios effectively remains a challenge. Simple approaches, such as running solvers in parallel with equal time slices, often underutilize resources. Conversely, sophisticated "algorithm selectors" like satzilla use machine learning to predict the best solver based on instance features. However, feature extraction is computationally expensive and highly domain-specific. The authors of this paper propose aspeed, a "feature-free" alternative that uses ASP to create robust, non-uniform schedules based on previous benchmarking data.

The Portfolio Advantage

The core motivation for solver portfolios is the complementary performance of different algorithms. As shown in Table 1, individual solvers may fail on specific instances, but a combined approach can significantly reduce total timeouts.

Table 1: Example runtimes of three solvers on six instances, illustrating the potential of an oracle portfolio.

In this example, while each individual solver ($s_1, s_2, s_3$) times out on three instances, an "oracle" that always picks the best solver for each instance achieves zero timeouts. aspeed aims to approximate this oracle performance by optimizing the time allocated to each solver in a sequence.

Methodology

The authors formulate solver scheduling as a multi-criteria optimization problem solved using the gringo grounder and clasp solver.

  1. Primary Objective: Minimize the number of timeouts across a set of training instances.
  2. Secondary Objective: Minimize total runtime by optimizing the execution order (alignment) of solvers.
  3. ASP Optimization: The system uses ASP encodings to determine optimal time slices. To ensure robustness, it employs a simplified $L^2$-norm to break ties, favoring schedules that distribute time more evenly across solvers.
  4. Parallelism: The framework naturally extends to multi-core architectures. The ASP encoding assigns solvers to different processing units, ensuring that the total time on any single core does not exceed the global cutoff.

Experimental Evaluation

The authors evaluated aspeed across eight large-scale datasets from various solver competitions, including SAT, ASP, CSP, and QBF benchmarks.

  • Performance Gains: On the 3S-Set (SAT), aspeed reduced timeouts from 1,881 (for the single best solver) to 603.
  • Efficiency: Despite the complexity of the optimization task, aspeed typically finds an optimal schedule in less than one CPU second.
  • Comparison with Selectors: In several benchmarks, aspeed outperformed feature-based tools like satzilla and claspfolio. This is particularly notable because aspeed avoids the overhead and complexity of per-instance feature extraction.
  • Parallel Scaling: Utilizing four cores (aspeed-4P), the system achieved substantial speedups, solving 117 more instances on the ASP-Set than the sequential version of satzilla.

Conclusion

aspeed demonstrates that high-performance solver portfolios can be constructed without the need for complex feature extraction. By using ASP to optimize static schedules based on historical data, it provides a robust and easily adaptable solution for hard combinatorial problems. Future work will focus on refining the optimization criteria to directly minimize runtime and exploring the impact of solver complementarity on portfolio efficiency.

Summary updated

BibTeX
@inproceedings{hoos2015aspeed,
  author = {Holger H. Hoos and Roland Kaminski and Marius Lindauer and Torsten Schaub},
  title = {{aspeed: Solver scheduling via answer set programming}},
  booktitle = {Theory Pract. Log. Program},
  year = {2015},
  url = {https://openreview.net/forum?id=jVTnvHyUT0s},
}
Figure