Run2Survive: A Decision-theoretic Approach to Algorithm Selection based on Survival Analysis

Alexander Tornede, Marcel Wever, Stefan Werner, Felix Mohr, Eyke Hüllermeier

Introduction

In the field of combinatorial optimization—encompassing tasks such as Boolean Satisfiability (SAT), Constraint Satisfaction Problems (CSP), and Mixed Integer Programming (MIP)—no single algorithm consistently outperforms all others across every problem instance. This phenomenon motivates the Algorithm Selection (AS) problem: given a specific instance, how can we automatically select the most efficient algorithm from a portfolio?

While AS has seen significant progress, a major bottleneck remains in how models handle "censored" training data. In practice, algorithm runs are terminated after a fixed cutoff time to keep experiments feasible. This results in right-censored data, where the true runtime is unknown, only that it exceeds the cutoff. Standard regression techniques often fail to account for this properly, leading to biased models that underestimate the risk of timeouts. This paper introduces Run2Survive, a framework that leverages survival analysis and decision theory to navigate the complexities of censored runtime data.

The Problem with Censored Data

To train an AS model, researchers typically collect historical runtime data. However, because some algorithms may take hours or days to solve a single instance, a time limit (cutoff) is imposed. Standard machine learning models cannot natively process these incomplete data points. Common workarounds include:

  • Ignoring timed-out runs: This discards valuable information about algorithm failure.
  • Imputation: Replacing timeouts with the cutoff value or a penalized value (e.g., PAR10).

The authors demonstrate that these imputations are fundamentally flawed. They distort the training distribution and lead to overly optimistic models that fail to accurately predict the risk of a catastrophic timeout during deployment.

Methodology: Survival Analysis and Risk-Aversion

To address these limitations, Run2Survive shifts the paradigm from point-estimate regression to Survival Analysis (SA). Originally developed for medical research to model time-to-event data (like patient survival), SA is perfectly suited for modeling algorithm runtimes.

1. Random Survival Forests

Instead of standard regression trees, Run2Survive employs Random Survival Forests (RSF). For each algorithm in the portfolio, an RSF is trained to incorporate censored data points natively. Rather than outputting a single predicted runtime, the model produces a full survival function—a probability distribution representing the likelihood that an algorithm will still be running at any given time $t$.

2. Decision-Theoretic Selection

With a full probability distribution in hand, the selection process is framed as an expected loss minimization problem. However, simply minimizing the expected runtime is often insufficient because it treats all parts of the distribution equally. In real-world scenarios, a timeout is far more costly than a slow success.

3. Risk-Averse Surrogate Losses

To align the model with performance metrics like PAR10 (which penalizes timeouts at 10x the cutoff), the authors introduce parameterized, convex surrogate loss functions:

  • Polynomial Loss
  • Log-based Loss

These functions are designed to be "risk-averse," placing significantly higher weight on the tail end of the runtime distribution. This encourages the model to select algorithms with a lower probability of timing out, even if their average-case performance is slightly slower than a riskier alternative. The shape and risk-aversion parameters of these functions are optimized per dataset using Bayesian Optimization.

Experimental Evaluation

The authors evaluated Run2Survive on the ASlib v4.0 benchmark suite, which contains 26 diverse scenarios. These scenarios represent a wide range of challenges, including some where over 70% of the training data is censored (e.g., CSP-Minizinc-Time-2016).

Performance was measured using the normalized PAR10 (nPAR10) metric. A score below 1.0 indicates that the model performs better than the Single Best Solver (SBS)—the single algorithm that performs best on average across the entire dataset.

Key Results

  • Superior Performance: The tuned Run2SurvivePoly/Log variants outperformed state-of-the-art baselines, including SUNNY, SATzilla'11, and standard Per-Algorithm Regressors, in terms of median and mean nPAR10.
  • Unmatched Consistency: Run2Survive achieved an nPAR10 score below 1.0 on 25 out of 26 scenarios. This level of consistency was not matched by any other baseline, proving that the survival analysis approach is robust across different problem domains.
  • Winning Scenarios: The risk-averse variants achieved the best overall performance in 13 out of the 26 scenarios.

Insights and Future Work

The success of Run2Survive highlights two critical insights for the AS community. First, distributions are superior to point estimates; capturing variance and tail risk provides a much richer signal for decision-making. Second, expected runtime is not always the optimal metric; risk-aversion is essential when the cost of failure (timeout) is high.

While Run2Survive sets a new state-of-the-art for pure algorithm selection, the authors note that it does not yet incorporate pre-solvers or automated feature selection—components often found in complex industrial AS portfolios. Future research will explore extending this survival-based approach to "Extreme Algorithm Selection" (XAS) and integrating it with ranking-based models to further refine selection accuracy.

Summary updated

BibTeX
@inproceedings{tornede2020run,
  author = {Alexander Tornede and Marcel Wever and Stefan Werner and Felix Mohr and Eyke Hüllermeier},
  title = {{Run2Survive: A Decision-theoretic Approach to Algorithm Selection based on Survival Analysis}},
  booktitle = {ACML},
  year = {2020},
}
Figure