NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Formalizing Preferences Over Runtime Distributions

Devon R. Graham, Kevin Leyton-Brown, Tim Roughgarden

Introduction

Evaluating algorithms based on their average runtime is fundamentally flawed because it is easily skewed by rare, extremely long runs that we would realistically just time out. This paper introduces a principled, utility-theoretic framework to score algorithms based on their runtime distributions and our actual tolerance for waiting. By leveraging the principle of maximum entropy, the authors provide ready-to-use mathematical scoring functions that perfectly capture real-world constraints, even when exact timeouts are unknown.

The Problem with Average Runtime

Imagine you are choosing between two algorithms (e.g., SAT solvers or routing algorithms) that are both guaranteed to find the correct answer, but take different amounts of time. How do you decide which is "best"?

The default approach is to pick the one with the lowest average runtime. However, average runtime can be dominated by a single catastrophic run that takes 100 years. In practice, we never let algorithms run for 100 years; we use a "captime" (a timeout) and switch to a backup plan.

Currently, the AI and algorithm configuration communities handle timeouts using ad-hoc metrics, like Penalized Average Runtime (PAR10), which counts a timeout as taking 10 times the captime. The authors argue that these arbitrary metrics can lead to illogical rankings. The paper asks: How can we mathematically formalize our actual preferences for algorithm runtimes in a way that naturally handles timeouts and the diminishing value of time?

A Utility-Theoretic Framework

The authors tackle this using axiomatic decision theory, heavily inspired by the classic von Neumann-Morgenstern expected utility theory.

  1. Axioms of Preference: They define six logical rules that any rational preference over algorithm runtimes should follow. Four are standard (Transitivity, Monotonicity, Continuity, Independence), and two are novel to the runtime setting: Eagerness (we prefer a deterministic fast run over a slower one) and Relevance (we strictly prefer solving the problem over failing to solve it).
  2. Utility Functions: They mathematically prove that if your preferences follow these six axioms, you are effectively maximizing the expected value of a specific utility function. This function depends on the runtime and the captime.

Maximum Entropy Utility Functions

In the real world, we rarely know our exact captime (e.g., "I need this done in about an hour, maybe two"). The authors use the principle of maximum entropy to derive objective utility functions based on partial knowledge.

Examples of derived utility functions based on different captime knowledge constraints.

For example, if you only know the average timeout you'll face, maximum entropy dictates you should score algorithms using an exponential utility function. If you only know the expected order of magnitude of your timeout, you should use a Pareto (geometric) utility function. If you know the absolute maximum time but nothing else, use a Uniform (linear) utility function.

Key Insights and Empirical Results

To demonstrate how much the choice of metric matters in practice, the authors evaluated their framework on real-world data, including 972 configurations of the minisat SAT solver and data from the 2021 International SAT Competition.

  • Average runtime implies solving the problem is worthless: The authors mathematically demonstrate that optimizing for a simple capped average runtime implies a logical contradiction: it assumes the value you gain from actually solving the problem is zero.
  • Timeouts are a feature, not a bug: In standard finance decision theory, you often have to suffer the full loss of a bad gamble. In algorithm execution, you can always "stop the gamble" by killing the process. This ability to cap losses is what makes expected utility theory work so well for runtimes.
  • Estimation is incredibly cheap: You can accurately estimate an algorithm's expected utility using capped samples. The number of samples and the captime needed depend only on your desired accuracy and your utility function—it is completely independent of how slow the algorithm actually is. Estimating an algorithm's score to within an $\epsilon$ additive factor requires a captime of $u^{-1}(\epsilon/2)$.
  • Wrong metrics destroy value: In the minisat experiment, optimizing a solver for one utility function (e.g., Uniform) but evaluating it under another (e.g., log-Laplace) resulted in a massive drop in actual performance.
  • Rankings are highly subjective: When re-evaluating the 2021 SAT Competition, the authors found that the top-3 rankings completely shuffled depending on which utility function was applied. There is no single "best" algorithm; the winner depends entirely on the user's specific time constraints.

Limitations and Future Work

The main text focuses on algorithms that either solve the problem perfectly or fail. While the authors extend the theory to algorithms with variable solution quality (like machine learning models), the core examples are built around exact decision problems. Furthermore, while the maximum entropy approach helps, practitioners still need to formalize their constraints (e.g., defining the expected captime or the cost of compute) to select the right utility function.

A natural next step is integrating these principled utility functions directly into automated algorithm configuration frameworks (like SMAC or irace) to replace legacy metrics like PAR10.

Summary updated

BibTeX
@inproceedings{graham2023formalizing,
  author = {Devon R. Graham and Kevin Leyton-Brown and Tim Roughgarden},
  title = {{Formalizing Preferences Over Runtime Distributions}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=FQGIERCekB},
}
Figure