Skip to main content
QUICK REVIEW

[Paper Review] LeapsAndBounds: A Method for Approximately Optimal Algorithm Configuration

Gellért Weisz, András György|arXiv (Cornell University)|Jul 2, 2018
Machine Learning and Data ClassificationComputer Science5 references8 citations
TL;DR

LeapsAndBounds is a novel algorithm for approximately optimal algorithm configuration that uses empirical Bernstein stopping to dynamically allocate runtime across configurations and problem instances. It achieves a tighter worst-case runtime bound than Structured Procrastination while significantly reducing total execution time in practice, especially when resuming runs is supported.

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.

Motivation & Objective

  • Address the challenge of finding a near-optimal solver configuration for problem instances drawn from an unknown distribution.
  • Minimize the total time spent searching for the best configuration while ensuring the returned configuration has expected runtime close to optimal.
  • Provide theoretical guarantees on both the quality of the selected configuration and the total runtime of the search process.
  • Outperform existing methods like Structured Procrastination in both theoretical worst-case bounds and practical efficiency.

Proposed method

  • LeapsAndBounds tests configurations on randomly sampled problem instances with progressively increasing time limits, starting from a base runtime of $ \kappa_0 $.
  • It employs empirical Bernstein stopping to terminate runtime measurements early when sufficient confidence is achieved in the estimated mean runtime.
  • The algorithm proceeds in phases, doubling the time budget $ \theta_k $ in each phase, with each configuration tested on multiple instances up to a phase-specific budget.
  • It maintains confidence intervals over configuration runtimes and uses these to prune slow configurations early while retaining fast ones for further evaluation.
  • The method dynamically adjusts the number of runs per configuration and instance based on variance estimates, favoring configurations with lower runtime variance.
  • It supports both restart and resume semantics, with performance gains when resuming is allowed due to reduced redundant computation.

Experimental results

Research questions

  • RQ1Can we design an algorithm for algorithm configuration that achieves a tighter worst-case runtime bound than existing methods with theoretical guarantees?
  • RQ2How does the use of empirical Bernstein stopping improve the efficiency of configuration search compared to fixed-time or heuristic-based approaches?
  • RQ3To what extent does the algorithm’s performance depend on the variance of configuration runtimes across instances?
  • RQ4Can the algorithm outperform Structured Procrastination in practice, especially in non-adversarial, realistic settings?
  • RQ5What is the impact of resuming vs. restarting runs on the total search time, and how can this be leveraged in implementation?

Key findings

  • LeapsAndBounds achieves a worst-case runtime bound that is tighter than that of Structured Procrastination, improving the theoretical efficiency of configuration search.
  • In experiments on configuring the minisat SAT solver, LeapsAndBounds reduced total runtime to 933.50 CPU days (without resuming) and 368.50 CPU days (with resuming), compared to 1850.46 and 1169.36 days for Structured Procrastination.
  • The algorithm runs each configuration for significantly less time than Structured Procrastination, especially in later phases, due to earlier termination via empirical Bernstein stopping.
  • LeapsAndBounds returns the same optimal configuration (898) as Structured Procrastination, confirming that the quality of the result is comparable, but the search is far more efficient.
  • The performance gain is most pronounced when resuming runs is supported, as the algorithm avoids redundant computation by reusing partial results.
  • The method is embarrassingly parallel, enabling efficient distribution across multiple processors with minimal coordination overhead.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.