Reinforcement Learning for Automatic Online Algorithm Selection - an Empirical Study

Hans Degroote, Bernd Bischl, Lars Kotthoff, Patrick De CausmaeckerITAT 2016

Introduction

The "No Free Lunch" theorem in computer science posits that no single algorithm can achieve optimal performance across all possible problem instances. This reality has led to the development of Automatic Algorithm Selection (AAS), a field that leverages machine learning to predict the most efficient algorithm from a portfolio for a given task based on its specific characteristics or "features."

Traditionally, AAS models are trained "offline" on a static dataset and then deployed without further modification. However, this approach is inherently wasteful, as it ignores the valuable performance data generated every time an algorithm is executed on a new instance. This paper investigates the transition to online algorithm selection, where models are updated continuously, and explores the fundamental reinforcement learning trade-off between exploration and exploitation.

The Algorithm Selection Framework

The authors frame the selection process as a mapping from a problem space to an algorithm space. As illustrated in the framework below, a problem instance $i$ is first characterized by a set of features $f(i)$. A selection mapping $s(f)$ then chooses an algorithm $a$ from the available portfolio $\mathcal{A}$. The ultimate goal is to minimize the performance cost $perf(a, i)$, typically measured in runtime.

The standard Algorithm Selection framework mapping problem instances to algorithm performance.

In this study, the problem is treated as a Contextual Multi-Armed Bandit (CMAB). The "arms" are the algorithms, the "context" is the problem features, and the "reward" is the observed performance (speed).

Methodology: From Static to Online Learning

The researchers compared traditional static approaches with online learning strategies using the ASLIB (Algorithm Selection Library), focusing on the QBF-2011 (Quantified Boolean Formula) scenario. The portfolio consisted of 5 algorithms tested against 1,368 instances. Performance was evaluated using PAR10 (Penalized Average Runtime), which applies a heavy penalty to timeouts.

The strategies tested included:

  • Greedy-No-Learning (greedyNL): The baseline offline approach.
  • Greedy: A purely exploitative strategy that always selects the algorithm predicted to be fastest and updates its model with the results.
  • $\epsilon$-greedy: A standard RL strategy that explores random algorithms with probability $\epsilon$.
  • Lower Confidence Bound (LCB): A sophisticated strategy that accounts for both predicted performance and model uncertainty.
  • Full Information (greedyFI): An idealized upper bound where the system receives performance data for all algorithms on every instance.

Key Results and the Exploration Paradox

The empirical results revealed a surprising "Exploration Paradox." While explicit exploration (trying unknown algorithms to improve the model) is often considered essential in reinforcement learning, it proved detrimental in this context.

Performance comparison (PAR10) of different selection strategies on the QBF-2011 dataset, showing the superiority of the greedy approach over complex exploration.

As shown in the figure above, the purely greedy strategy significantly outperformed the static greedyNL baseline and, more importantly, beat the more complex $\epsilon$-greedy and LCB strategies. The authors hypothesize that "implicit exploration" occurs because different algorithms are optimal in different regions of the feature space. As the system encounters a diverse range of problems, it naturally gathers data across the portfolio without the high cost of intentional, suboptimal exploration.

Conclusion and Future Directions

This study demonstrates that online learning is a clear winner for algorithm selection, closing much of the gap between static models and theoretical "full information" performance. The success of simple greedy strategies suggests that the high cost of failure in algorithm selection (e.g., timeouts) makes traditional exploration strategies less viable.

Future research will focus on reducing the computational overhead of frequent model retraining through incremental learning (e.g., Mondrian Forests) and addressing the "cold start" problem for systems starting with zero prior knowledge.

Summary updated

BibTeX
@inproceedings{degroote2016reinforcement,
  author = {Hans Degroote and Bernd Bischl and Lars Kotthoff and Patrick De Causmaecker},
  title = {{Reinforcement Learning for Automatic Online Algorithm Selection - an Empirical Study}},
  booktitle = {ITAT},
  year = {2016},
}
Figure