A Regression-Based Methodology for Online Algorithm Selection

Hans Degroote, Patrick De Causmaecker, Bernd Bischl, Lars KotthoffSOCS 2018

Introduction

Algorithm Selection (AS) is a critical task in artificial intelligence, where the goal is to identify the most efficient algorithm or heuristic for a specific problem instance. Traditionally, AS has been treated as an offline learning problem: a static model is trained on a fixed dataset of algorithm performances and then deployed. However, this approach fails to adapt to new data or unrepresentative initial training sets.

This paper proposes a regression-based framework for online algorithm selection, framing the task as a contextual multi-armed bandit problem. By updating performance models incrementally as new instances are solved, the system continuously refines its selection strategy, outperforming traditional offline methods and demonstrating the ability to learn effectively even without initial training data.

Methodology

The authors model the online selection process using a contextual multi-armed bandit setup. In this framework, the "arms" represent the algorithms in the portfolio, the "context" is the feature vector of the problem instance, and the "reward" is the observed performance (e.g., runtime).

The core of the methodology utilizes Random Forest regression models. A separate model is maintained for each algorithm to predict its performance based on instance features. The online loop follows these steps:

  1. Feature Extraction: Calculate features for a new problem instance.
  2. Prediction: Use regression models to predict the performance of all available algorithms.
  3. Selection: Choose an algorithm based on a strategy such as Greedy, $\epsilon$-greedy, or Upper Confidence Bound (UCB).
  4. Execution and Observation: Run the selected algorithm and record its actual performance.
  5. Model Update: Append the new data point to the training set and retrain the corresponding regression model.

Experimental Setup

The methodology was evaluated using ASlib version 4.0, covering 16 diverse scenarios including Boolean Satisfiability (SAT), Constraint Satisfaction (CSP), and Answer Set Programming (ASP). These scenarios range from 4 to 31 algorithms and up to 4,642 instances, providing a comprehensive benchmark for assessing online learning capabilities.

Results and Discussion

A key finding of the study is the efficacy of the simple greedy strategy. Despite the theoretical need for explicit exploration in bandit problems, the greedy approach—always selecting the algorithm with the best predicted performance—consistently outperformed more complex strategies like $\epsilon$-greedy or UCB. The authors attribute this to "implicit exploration," where the natural diversity of incoming problem instances provides sufficient variety for the models to learn without intentional sub-optimal choices.

Furthermore, the system demonstrates remarkable performance when starting with zero initial training data. After an initial round-robin phase to gather baseline data, the models quickly surpass the Single Best Solver (SBS).

Figure 1: Performance over time for the CSP-MZN-2013 scenario starting with zero training data. The models quickly improve, approaching the performance of a model trained on all data.

When compared to standard offline baselines, the online approach shows significant gains. With only 10% initial training data, the online greedy method closed the performance gap to the theoretical "Virtual Best Solver" (VBS) by an additional 7.03% on average compared to the offline version.

Table 2: Online performance with 10% training data. Greedy consistently outperforms the offline baseline across various scenarios.

Conclusion

The proposed regression-based online AS framework offers a robust and adaptive alternative to static offline models. By learning from every instance, it mitigates the risks of unrepresentative training data and can even bootstrap from scratch. Future work includes exploring truly incremental learning models like Mondrian Forests to reduce retraining overhead and investigating more advanced contextual bandit algorithms in specific edge cases.

Summary updated

BibTeX
@inproceedings{degroote2018regression,
  author = {Hans Degroote and Patrick De Causmaecker and Bernd Bischl and Lars Kotthoff},
  title = {{A Regression-Based Methodology for Online Algorithm Selection}},
  booktitle = {SOCS},
  year = {2018},
  doi = {10.1609/socs.v9i1.18458},
}
Figure