Abstract
We present the first nontrivial procedure for configuring heuristic algorithms to maximize the utility provided to their end users while also offering theoretical guarantees about performance. Existing procedures seek configurations that minimize expected runtime. However, very recent theoretical work argues that expected runtime minimization fails to capture algorithm designers' preferences. Here we show that the utilitarian objective also confers significant algorithmic benefits. Intuitively, this is because mean runtime is dominated by extremely long runs even when they are incredibly rare; indeed, even when an algorithm never gives rise to such long runs, configuration procedures that provably minimize mean runtime must perform a huge number of experiments to demonstrate this fact. In contrast, utility is bounded and monotonically decreasing in runtime, allowing for meaningful empirical bounds on a configuration's performance. This paper builds on this idea to describe effective and theoretically sound configuration procedures. We prove upper bounds on the runtime of these procedures that are similar to theoretical lower bounds, while also demonstrating their performance empirically.
Introduction
Heuristic algorithms, such as SAT solvers and Integer Programming (IP) solvers, are foundational to modern computational logic and optimization. However, their performance is notoriously sensitive to parameter configurations. The field of "algorithm configuration" seeks to automate the search for optimal settings. Traditionally, the gold standard for these tools has been the minimization of expected runtime.
This paper argues that the focus on expected runtime is fundamentally flawed, both from a decision-theoretic perspective and a computational one. We propose a shift toward Utilitarian Algorithm Configuration, introducing a novel procedure called Utilitarian Procrastination (UP). By maximizing a bounded utility function rather than minimizing an unbounded runtime, we can achieve stronger theoretical guarantees and significantly more efficient empirical performance.
The Limitations of Expected Runtime
The traditional objective of minimizing mean runtime suffers from two primary issues:
- Axiomatic Inconsistency: Recent research suggests that mean runtime does not accurately reflect how users value time. For instance, a user likely perceives a massive difference between a 1-second and an 11-second solve time, but finds the difference between 10,001 and 10,011 seconds to be negligible. Mean runtime treats these 10-second intervals identically.
- The "Heavy Tail" Problem: Heuristic runtimes often follow heavy-tailed distributions. Because mean runtime is highly sensitive to rare, extremely long runs, any configuration tool attempting to provide statistical guarantees must perform an enormous number of experiments at very high "captimes" (cutoff limits) to ensure that catastrophic outliers do not exist. This makes theoretical soundness prohibitively expensive.
The Utilitarian Framework
We define a utility function $u(t)$ that maps an algorithm's runtime $t$ to a value in the range $[0, 1]$. This function is monotonically decreasing, where $u(0) = 1$ (instant success) and $\lim_{t \to \infty} u(t) = 0$.
Because utility is bounded, the "tail" of the runtime distribution becomes manageable. If an algorithm takes 1,000 seconds or 1,000,000 seconds, and the utility for both is effectively zero, the configuration tool does not need to waste computational resources distinguishing between these two outcomes. This boundedness is the "superpower" that enables more efficient search procedures.
Utilitarian Procrastination (UP)
The core contribution of this work is the Utilitarian Procrastination (UP) algorithm. UP is a "racing" algorithm that evaluates a set of configurations and discards those that are provably suboptimal. Its design is guided by three key principles:
- Anytime Performance: Unlike naive methods that require a fixed accuracy ($\epsilon$) or fixed timeout ($\kappa$) to be specified upfront, UP is an anytime algorithm. It begins with short timeouts and small sample sizes, gradually increasing both as the search progresses.
- The Doubling Condition: UP employs a strategic "captime doubling condition." It only increases the timeout for a specific configuration when the statistical error introduced by "capping" the run (the uncertainty of what happens after the timeout) exceeds the statistical error derived from the current sample size.
- Procrastination as Strategy: By "procrastinating" on long, expensive runs and focusing on short, informative runs, UP can eliminate poor configurations early and cheaply.
Experimental Evaluation
We evaluated UP using three established benchmarks in the algorithm configuration literature:
- minisat: Tuning the MiniSAT solver on CNFuzzdd-generated instances.
- cplex_rcw: Tuning the CPLEX solver on "woodpecker conservation" integer programming problems.
- cplex_region: Tuning CPLEX on combinatorial auction winner determination instances.
Key Results
- Efficiency and Speedups: UP drastically outperformed a "Naive" baseline (which uses fixed captimes). On the
minisatdataset, UP reached target accuracy levels in a fraction of the CPU time required by the baseline. - Robustness: While the Naive method's performance depends heavily on the user correctly guessing an optimal fixed timeout, UP's adaptive nature allows it to automatically find an efficient schedule regardless of the initial parameters.
- Theoretical Tightness: We proved that the runtime of UP is nearly optimal, matching theoretical lower bounds for the amount of time any procedure must spend to guarantee an $\epsilon$-optimal configuration.
Conclusion and Future Work
Utilitarian Algorithm Configuration provides a rare bridge between rigorous theoretical guarantees and practical performance. By shifting the objective to a bounded utility function, we avoid the computational pitfalls of heavy-tailed runtime distributions.
Future work includes extending these utilitarian guarantees to massively parallel environments and exploring methods to elicit specific utility functions from end-users to better tailor the configuration process to real-world needs. While current heuristic tuners like SMAC or ParamILS are highly optimized for runtime, the principles of UP offer a path toward a new generation of configuration tools that are both faster and more aligned with human preferences.
Summary updated