Choosing the Right Algorithm With Hints From Complexity Theory

Shouda Wang, Weijie Zheng, Benjamin Doerr

Abstract

Selecting the optimal randomized search heuristic for a specific optimization problem often relies on empirical trial-and-error. This paper proposes a systematic approach using black-box complexity (BBC) theory to identify superior algorithms. By analyzing the DeceivingLeadingBlocks (DLB) benchmark, the authors demonstrate that theoretical "speed limits" can guide practitioners toward non-elitist algorithms like the Metropolis Algorithm and higher-arity methods like sig-cGA, which significantly outperform standard evolutionary strategies.

Introduction

In the field of randomized search heuristics, practitioners face a "paradox of choice" due to the vast number of available algorithm variants. Choosing the right tool for a new problem typically involves extensive experimentation. This research addresses the Algorithm Selection Problem by leveraging theoretical tools to predict performance. The study focuses on the DeceivingLeadingBlocks (DLB) benchmark, a deceptive problem where standard elitist algorithms—which never accept inferior solutions—struggle with a runtime scaling of $O(n^3)$.

Methods and Problem Formulation

The researchers utilize Black-Box Complexity (BBC) analysis to measure the minimum fitness evaluations required by the best possible algorithm within specific classes.

The DLB Benchmark

The DLB problem consists of an $n$-bit string divided into blocks of two. While a block of 11 is the target, a block of 00 serves as a local optimum or "trap." To transition from a 00 trap to the 11 goal, an algorithm must pass through 01 or 10, both of which have lower fitness. Elitist algorithms fail here because they refuse the necessary "step backward."

Theoretical Mapping

  1. Complexity Mapping: The authors proved that elitist unary algorithms are limited to $\Omega(n^3)$ on DLB, whereas non-elitist unary algorithms can achieve $O(n^2)$.
  2. Algorithm Identification: This led to the selection of the Metropolis Algorithm, which uses probabilistic acceptance of worse moves to escape local optima.
  3. Higher-Arity Analysis: Analysis of algorithms using information from multiple parents (higher-arity) suggested that Estimation-of-Distribution Algorithms (EDAs) could reach $O(n \log n)$.
The Metropolis Algorithm, a non-elitist heuristic identified through complexity analysis.

Results

The theoretical predictions were confirmed through rigorous mathematical analysis and experimental validation.

Performance Comparison

  • Metropolis Algorithm: Proven to solve DLB in $O(n^2)$ time. It emerged as the practical winner, outperforming other heuristics for the tested problem sizes.
  • sig-cGA: Proven to solve DLB in $O(n \log n)$ time. Although it offers the best asymptotic scaling, it currently faces higher constant factors than the Metropolis Algorithm.
  • Standard (1+1) EA: Confirmed as the slowest at $O(n^3)$.
Experimental runtime comparison for solving the DLB function across different algorithms.
Algorithm Class Proven Runtime Experimental Performance
(1+1) EA Elitist Unary $O(n^3)$ Slowest
Metropolis Non-Elitist Unary $O(n^2)$ Best in Practice
sig-cGA Higher-Arity EDA $O(n \log n)$ Best Asymptotic Scaling

Discussion and Conclusion

This work demonstrates that black-box complexity can serve as a "compass" for algorithm selection. If the BBC for a certain class of algorithms is high, practitioners can avoid wasting resources on tuning those variants. The success of the Metropolis Algorithm underscores the value of non-elitism in deceptive landscapes.

While sig-cGA shows superior theoretical scaling, its practical overhead remains a limitation for smaller problem sizes. Future work will focus on applying this theory-guided approach to complex, real-world black-box problems where the underlying structure is less defined.

Summary updated

BibTeX
@inproceedings{wang2021choosing,
  author = {Shouda Wang and Weijie Zheng and Benjamin Doerr},
  title = {{Choosing the Right Algorithm With Hints From Complexity Theory}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.24963/ijcai.2021/234},
}
Figure