Dynamic Algorithm Portfolios

Matteo Gagliolo, Jürgen SchmidhuberAI&M 2006

Abstract

Traditional algorithm selection (meta-learning) requires extensive offline training, creating a significant "training tax" before a model can be deployed. This paper introduces Dynamic Algorithm Portfolios, a lifelong learning approach that eliminates the boundary between training and execution. By utilizing Adaptive Online Time Allocation (AOTA) and censored sampling, the system dynamically adjusts CPU time for parallel algorithms based on real-time performance estimates. Experimental results on genetic algorithms demonstrate that this approach trains three orders of magnitude faster than static methods while maintaining competitive performance on novel test tasks.

Introduction

In artificial intelligence, selecting the optimal algorithm or parameter set for a specific problem is a persistent challenge. Traditional Algorithm Selection (AS) typically involves running a massive battery of offline tests to map problem features to performance. However, this approach suffers from three major flaws: the high computational cost of the training phase, the inability to handle the high variance of stochastic algorithms, and a lack of adaptability if a chosen algorithm stalls during execution.

This paper proposes a shift from static selection to dynamic time allocation. Instead of picking a single winner, the system runs a portfolio of candidates in parallel, dynamically shifting computational resources toward algorithms that show the most promise in real-time.

Methodology

Adaptive Online Time Allocation (AOTA)

The core of the proposed system is the AOTA framework, which operates through several key mechanisms:

  1. Parallel Execution & Time Slicing: All candidate algorithms run concurrently. CPU time is divided into small intervals ($\Delta t$), with each algorithm receiving a fraction of that time based on its current performance bias.
  2. Dynamic Updating: The system monitors "state" data, such as fitness levels in genetic algorithms, to estimate the remaining time to solution ($\tau$).
  3. Censored Sampling: To learn from algorithms that have not yet finished, the authors treat incomplete runs as censored data. This allows the model to statistically infer that an algorithm's runtime is at least as long as the time spent so far, enabling it to learn from slow-movers without waiting for them to complete.
  4. Probabilistic Modeling: The system uses an Extreme Value distribution to model the logarithm of runtimes, effectively handling the heavy-tailed distributions common in search and optimization tasks.

Experimental Results

The researchers evaluated AOTA using a portfolio of 76 Genetic Algorithms (GAs) applied to a sequence of 21 deceptive "trap" problems of increasing difficulty.

Training Efficiency

The most striking result is the reduction in training overhead. As shown in Figure 1, the cumulative time required for the dynamic AOTA approach is approximately three orders of magnitude lower than the static AS approach. This is because static methods require solving every training problem with every algorithm in the portfolio to build a predictive map, whereas AOTA learns while solving, focusing only on the most efficient paths.

Cumulative training time comparison showing L2-AOTA's efficiency over static AS and brute force.

Test Performance

Despite the drastically lower training cost, the dynamic portfolio remains highly competitive. On the final test tasks (19-21), AOTA outperformed the static model in total execution time. While the static model might perform better on specific individual tasks where its offline training was highly relevant, the dynamic model's ability to adapt to real-time progress makes it more robust overall.

Test time performance for tasks 19-21 and total sum, comparing AOTA to static selection.

Discussion and Conclusion

Dynamic Algorithm Portfolios represent a significant step toward practical meta-learning. By treating training as execution, the system provides an "out-of-the-box" solution that improves over time without a prohibitive upfront cost.

Future work aims to transition from batch updates to fully online updates during a single run and to relax the requirement for problems to be ordered by difficulty. Currently, the approach is best suited for computationally expensive solvers where the predictive model's overhead is negligible compared to the search time saved.

Summary updated

BibTeX
@inproceedings{gagliolo2006dynamic,
  author = {Matteo Gagliolo and Jürgen Schmidhuber},
  title = {{Dynamic Algorithm Portfolios}},
  booktitle = {AI\&M},
  year = {2006},
}
Figure