Automatic Algorithm Configuration Based on Local Search

Frank Hutter, Holger H. Hoos, Thomas Stützle

Abstract

High-performance algorithms often feature a vast array of parameters that significantly impact their efficiency. Manual tuning of these parameters is a labor-intensive and often suboptimal process. This paper introduces ParamILS, an automated framework based on Iterated Local Search (ILS) designed to navigate complex parameter spaces. We specifically highlight the FocusedILS variant, which intelligently manages computational resources to avoid over-tuning and provides statistically robust configurations. Our results across various SAT and Bayesian network optimization scenarios demonstrate that ParamILS can achieve performance gains of several orders of magnitude over default settings.

Introduction

The performance of state-of-the-art algorithms—ranging from SAT solvers to commercial optimizers like CPLEX—is highly sensitive to parameter settings. These "knobs" control heuristic choices, numerical tolerances, and search strategies. Traditionally, researchers and practitioners have relied on manual tuning, which is not only time-consuming and biased but also struggles to scale as the number of parameters increases.

Automated algorithm configuration tools aim to solve this, but they face two primary challenges: scalability to high-dimensional parameter spaces and the risk of "over-tuning." Over-tuning occurs when a configuration performs exceptionally well on a small training set but fails to generalize to new instances, a phenomenon often driven by statistical noise in performance estimates.

The ParamILS Framework

ParamILS treats algorithm configuration as a stochastic optimization problem. It utilizes Iterated Local Search (ILS) to move beyond simple hill-climbing. The search process involves a "one-exchange neighborhood" search—changing one parameter at a time—interspersed with "perturbation" steps that randomly alter multiple parameters to escape local optima.

A key contribution of this work is the distinction between two search strategies:

  1. BasicILS(N): Evaluates every candidate configuration on a fixed set of $N$ training instances.
  2. FocusedILS: Employs a "racing" approach. It starts with a small number of evaluations for new configurations and only increases the sample size for those that show promise. This ensures that computational time is concentrated on the most competitive settings.
Figure 1: Search progress of FocusedILS compared to BasicILS variants. FocusedILS converges more quickly to high-quality configurations by efficiently managing its evaluation budget.

FocusedILS is theoretically guaranteed to converge to the optimal parameter configuration as the number of iterations increases, providing a robust foundation for automated tuning.

Experimental Evaluation

We evaluated ParamILS across four distinct tuning scenarios involving three different algorithms:

  • SAT4J: A tree-search SAT solver tuned on graph coloring instances.
  • SAPS: A local search SAT solver tuned on graph coloring and "Quasi-group with holes" (QWH) instances.
  • GLS+: A local search algorithm for Bayesian network MPE problems, tuned on grid-structured networks.

These scenarios represent a mix of algorithm types and problem domains, testing the versatility of the ParamILS framework against hundreds of potential parameter configurations.

Key Results and Discussion

The experimental results demonstrate that ParamILS consistently outperforms both manual defaults and existing state-of-the-art tuning tools like CALIBRA. In the SAPS-SW scenario, the automatically tuned version achieved an average run-time of 0.43 seconds, compared to the default's 263 seconds—a speedup of nearly three orders of magnitude.

Figure 5: Performance comparison of FocusedILS against default parameters and other tuning methods across four scenarios. FocusedILS consistently achieves the best performance (bolded).

Beyond raw speedups, ParamILS proved capable of handling hundreds of parameters, far exceeding the capacity of previous tools which were often limited to fewer than ten. Its real-world utility was further validated during the 2007 SAT Competition, where solvers tuned with ParamILS achieved significant gains in software verification and random instance categories.

Conclusion

ParamILS provides a powerful, scalable, and theoretically grounded approach to automated algorithm configuration. By leveraging Iterated Local Search and intelligent resource allocation through FocusedILS, it removes the burden of manual tuning while delivering superior performance. Future work will explore the integration of continuous parameter handling and more sophisticated neighborhood structures to further enhance search efficiency.

Summary updated

BibTeX
@inproceedings{hutter2007automatic,
  author = {Frank Hutter and Holger H. Hoos and Thomas Stützle},
  title = {{Automatic Algorithm Configuration Based on Local Search}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2007},
}
Figure