ImpatientCapsAndRuns: Approximately Optimal Algorithm Configuration from an Infinite Pool

Gellért Weisz, András György, Wei-I Lin, Devon R. Graham, Kevin Leyton-Brown, Csaba Szepesvári, Brendan LucierNeurIPS 2020

Introduction

Solving computationally hard problems—such as Boolean Satisfiability (SAT) or Mixed Integer Programming (MIP)—often relies on algorithms equipped with dozens of tunable parameters. These "configurations" do not change the final mathematical answer, but they dictate the solver's efficiency, often meaning the difference between a task finishing in seconds or taking days.

The goal of Algorithm Configuration (AC) is to find the best parameter settings for a specific distribution of problem instances. Historically, researchers have faced a stark trade-off between speed and mathematical certainty:

  1. Heuristic Methods (e.g., SMAC, ParamILS): These are fast and "impatient," quickly discarding bad configurations based on minimal testing. However, they lack theoretical guarantees; they might accidentally discard the optimal setting or get trapped in local optima.
  2. Theoretical Methods (e.g., CapsAndRuns): These provide "probably approximately correct" (PAC) guarantees, ensuring near-optimal results. The catch is that they are often too "patient," spending massive amounts of compute time on obviously bad configurations just to prove statistically that they are, in fact, bad.

ImpatientCapsAndRuns (ICAR) is a new algorithm configuration framework designed to bridge this gap. By introducing an "impatient" pre-screening mechanism to discard poor parameter settings early, ICAR achieves significant speedups—often cutting search time in half—while maintaining rigorous proofs of near-optimality.

Methodology: The Virtue of Impatience

ICAR builds upon an existing theoretically-grounded algorithm called CapsAndRuns (CAR). The core innovation of ICAR is the introduction of a PRECHECK mechanism.

  • The "Impatient" Filter: Instead of running every configuration through a full, expensive evaluation, ICAR processes them in batches. Each configuration first undergoes a PRECHECK. This function quickly estimates the configuration's performance using a small number of instances and a strict timeout.
  • Global Upper Bound ($T$): ICAR maintains a running upper bound on what the "optimal" runtime looks like based on the best configurations seen so far. If a new configuration's PRECHECK suggests it is significantly worse than this bound, it is discarded immediately.
  • Iterative Refinement: As ICAR finds better configurations, the bound $T$ tightens, making the PRECHECK even more aggressive for subsequent batches.
  • Theoretical Safety: The authors mathematically prove that despite this "impatience," the probability of accidentally discarding a near-optimal configuration remains extremely low.

Additionally, the paper introduces CAR++, an optimized version of the original CapsAndRuns that uses a more efficient sample size, discovered through a refined mathematical analysis of the original algorithm.

Experimental Setup

The authors evaluated ICAR on three challenging benchmarks:

  1. Minisat (CNFuzzDD): A popular SAT solver tested on instances generated by a fuzzer.
  2. CPLEX (Regions200): A high-performance industrial solver (MIP) applied to combinatorial auction problems.
  3. CPLEX (RCW): The same CPLEX solver applied to "Recoverable Robustness" problems in wildlife conservation.

To handle the massive compute required for these tests, the researchers utilized Empirical Performance Models (EPMs)—random forest models trained on real solver data to accurately simulate runtimes across thousands of configurations.

Key Results

The experimental results demonstrate that the gap between "theory" and "practice" in algorithm configuration is largely about how bad data is handled. By mimicking the "impatient" behavior of heuristic practitioners, theoretical algorithms can become highly competitive.

Experimental results comparing ICAR, CAR++, and CAR across three datasets.
  • Significant Speedups: As shown in the results table, ICAR drastically reduces the total CPU time required. On the CPLEX RCW dataset (at $\gamma = 0.05$), ICAR found an optimal configuration in roughly 1,284 CPU days, compared to 3,306 days for the original CAR algorithm—a speedup of over 2.5x.
  • Outperforming CAR++: Even against the improved CAR++ baseline, ICAR was consistently faster on the MIP datasets (Regions200 and RCW). These search spaces contained many weak configurations that the PRECHECK mechanism could easily filter out (e.g., filtering 134 configurations down to just 18 in the CPLEX RCW test).
  • Quality Maintenance: Despite discarding configurations aggressively, ICAR did not sacrifice quality. In all tests, ICAR returned configurations with mean runtimes ($R^\delta$) equal to or slightly better than those found by the slower, more conservative algorithms.

Because ICAR spends so little time on bad configurations, it can afford to sample more total configurations from the infinite pool within the same time budget, increasing the likelihood of finding a superior setting.

Limitations and Future Work

While ICAR represents a significant step forward, it currently selects configurations from the pool at random. It does not yet incorporate "active learning" (like Bayesian Optimization) to intelligently pick configurations that look promising based on previous results. Furthermore, the efficiency of the PRECHECK depends heavily on how quickly the algorithm can find a decent initial configuration to set the first bound $T$.

Future work will likely focus on integrating the ICAR framework with model-based search techniques (like SMAC) to create a configurator that is both theoretically sound and state-of-the-art in practical performance.

Summary updated

BibTeX
@inproceedings{weisz2020impatientcapsandruns,
  author = {Gellért Weisz and András György and Wei-I Lin and Devon R. Graham and Kevin Leyton-Brown and Csaba Szepesvári and Brendan Lucier},
  title = {{ImpatientCapsAndRuns: Approximately Optimal Algorithm Configuration from an Infinite Pool}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=JuS7JV2ec6T},
}

Loading related content...

Figure