LeapsAndBounds: A Method for Approximately Optimal Algorithm Configuration.

Gellért Weisz, András György, Csaba SzepesváriarXiv 2018

Abstract

We consider the problem of configuring general-purpose solvers to run efficiently on problem instances drawn from an unknown distribution. The goal of the configurator is to find a configuration that runs fast on average on most instances, and do so with the least amount of total work. It can run a chosen solver on a random instance until the solver finishes or a timeout is reached. We propose LeapsAndBounds, an algorithm that tests configurations on randomly selected problem instances for longer and longer time. We prove that the capped expected runtime of the configuration returned by LeapsAndBounds is close to the optimal expected runtime, while our algorithm's running time is near-optimal. Our results show that LeapsAndBounds is more efficient than the recent algorithm of Kleinberg et al. (2017), which, to our knowledge, is the only other algorithm configuration method with non-trivial theoretical guarantees. Experimental results on configuring a public SAT solver on a new benchmark dataset also stand witness to the superiority of our method.

Introduction

Modern solvers for NP-hard problems—such as SAT solvers, planners, or combinatorial optimizers—often feature hundreds of configurable parameters. Finding the optimal configuration is a significant challenge because solver performance is highly instance-dependent: a setting that excels on one problem might hang indefinitely on another.

The goal of algorithm configuration is to identify a parameter set that minimizes the average runtime over a distribution of problem instances. The primary challenge lies in doing so without consuming excessive compute time on configurations that are clearly sub-optimal. While popular heuristic methods like SMAC or ParamILS are effective in practice, they lack formal performance guarantees. A recent theoretical breakthrough, "Structured Procrastination," provided the first non-trivial guarantees but was computationally expensive and lacked empirical validation. This paper introduces LeapsAndBounds, a simpler, faster approach with tighter theoretical bounds.

Methodology

LeapsAndBounds approaches the configuration search by iteratively estimating the optimal expected runtime. It employs a "guess-and-double" strategy, starting with a small guess $\theta$ and doubling it in each subsequent phase.

Key components of the algorithm include:

  • Budgeted Estimation: For each configuration, a subroutine tests it on random instances. It enforces a timeout per instance to avoid "hopelessly hard" tasks and a total time budget for that configuration. Early rejection occurs if a configuration exceeds its total budget.
  • Empirical Bernstein Stopping: An optimized version of the algorithm leverages the variance of observed runtimes. If a configuration's performance is highly consistent (low variance), the algorithm can stop testing it significantly earlier than a worst-case analysis would dictate.
  • Relaxed Optimality: To handle instances that might take infinite time, the paper utilizes $(\epsilon, \delta)$-optimality. This involves finding a configuration whose "capped" mean runtime is within $(1+\epsilon)$ of the optimum, where the cap is large enough that only a small $\delta$ fraction of instances exceed it.

Experimental Setup

To validate the theoretical findings, the authors generated a massive new benchmark dataset. They utilized the minisat SAT solver across 972 different parameter settings. These were tested on 20,118 SAT problems generated using the CNFuzzDD tool.

Distribution of runtimes in the benchmark dataset, capped at 15 CPU minutes.

Generating the ground-truth runtime for every configuration on every instance required approximately 83 CPU years. This high-fidelity environment allows for precise simulation and comparison of configuration algorithms.

Results and Discussion

LeapsAndBounds demonstrates significant improvements over previous methods in both theory and practice.

  • Theoretical Gains: The paper proves a tighter upper bound on search time compared to Structured Procrastination, removing several logarithmic factors from the complexity.
  • Empirical Speedup: In simulations on the minisat dataset, LeapsAndBounds found the optimal configuration roughly twice as fast as Structured Procrastination (933.5 vs 1850.46 CPU days in a non-resuming environment).
Comparison of total time spent by LeapsAndBounds and Structured Procrastination across configurations.
  • Efficiency on "Fast" Configs: Interestingly, both algorithms spend more time on fast configurations than slow ones. Slow configurations are rejected quickly, while fast ones require more samples to statistically prove they are truly $(\epsilon, \delta)$-optimal.

Conclusion

LeapsAndBounds provides a robust framework for algorithm configuration with strong theoretical underpinnings. By incorporating empirical variance into its stopping rules, it "leaps" over poor configurations rather than "procrastinating" on them. While the optimality guarantee is relative to the specific timeout used, the method is highly parallelizable and more efficient than existing theoretical approaches. Future work will explore extending these guarantees to a wider range of problem difficulty quantiles to ensure robustness across diverse instance subsets.

Summary updated

BibTeX
@misc{weisz2018leapsandbounds,
  author = {Gellért Weisz and András György and Csaba Szepesvári},
  title = {{LeapsAndBounds: A Method for Approximately Optimal Algorithm Configuration.}},
  year = {2018},
  eprint = {1807.00755},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1807.00755},
}
Figure