Overview
Algorithm configuration (AC) is the process of finding the best settings for an algorithm's parameters—such as the learning rate in a neural network or the branching heuristic in a SAT solver. Traditionally, AC focuses on minimizing average runtime. However, in real-world applications, we often care more about utility: obtaining a solution within a specific deadline is valuable, but a solution that takes an exorbitant amount of time is useless, regardless of whether it is technically "faster" than another slow configuration.
A recent method called Utilitarian Procrastination (UP) addressed this by optimizing for utility functions. However, UP had a major limitation: it could only handle a small, fixed number of configurations. If an algorithm has continuous parameters, UP forces the user to pick a few arbitrary points to test. Furthermore, UP uses a "Successive Elimination" strategy, wasting time running bad configurations just to prove they are suboptimal before moving on.
This paper introduces COUP (Continuous, Optimistic Utilitarian Procrastination), a new method for automatically tuning algorithm parameters to maximize a user-defined utility function. Unlike previous utilitarian approaches, COUP efficiently searches infinite (continuous) parameter spaces while providing provable optimality guarantees and significantly faster performance.
Methods
The authors propose two core algorithms to address the limitations of prior work:
- OUP (Optimistic Utilitarian Procrastination): Designed for finite sets, OUP abandons the "pessimistic" elimination approach of UP. Instead, it uses the Upper Confidence Bound (UCB) principle. It focuses its computational budget on configurations that look promising or about which it is most uncertain. This "optimism in the face of uncertainty" allows it to ignore bad configurations much sooner.
- COUP (Continuous OUP): To handle infinite spaces, COUP operates in successive phases. In each phase, it samples a new batch of configurations from the parameter space. It then runs OUP on the current pool, progressively tightening the optimality guarantees.
- Refined Doubling: Both algorithms use a "capping" strategy (stopping a run if it takes too long). The authors introduce an improved "doubling condition" that better balances the error coming from limited samples versus the error coming from censored (capped) data.
Experimental Setup
The authors evaluated their methods on three well-known benchmarks in the algorithm configuration literature:
- minisat: Measured execution times of the MiniSAT solver on a generated set of SAT instances.
- cplex_rcw: Predicted solve times for the CPLEX integer programming solver on wildlife conservation problems.
- cplex_region: Predicted solve times for CPLEX on combinatorial auction problems.
Key Insights
- Optimism is Faster than Elimination: The most significant insight is that one does not need to definitively prove a configuration is bad to stop running it. By focusing on configurations with the highest potential (the upper confidence bound), the algorithm naturally stops wasting time on suboptimal choices much faster than an elimination-based strategy.
- Bridging Bandits and AC: The paper successfully adapts multi-armed bandit theory (specifically UCB) to the unique constraints of algorithm configuration, where the "cost" of a sample is stochastic (runtime) and can be capped to save time.
- Anytime Optimality: COUP is "anytime" in two ways: the longer it runs, the smaller the error ($\epsilon$) becomes, and the more of the parameter space ($\gamma$) it accounts for. This allows users to stop the process whenever they are satisfied with the current guarantee.
Key Results
The empirical evaluation demonstrates the clear advantages of the proposed methods:
- Massive Speedups: On finite configuration sets, OUP proved near-optimality an order of magnitude faster than the previous state-of-the-art (UP).
- Efficiency in the Infinite: COUP’s search of infinite spaces adds very little overhead. In experiments, COUP found configurations nearly as good as if it had been given the best possible finite subset to start with.
- Superiority over Baselines: When compared against popular non-utilitarian methods like Hyperband and AC-Band, COUP and OUP consistently reached better configurations (in terms of utility) and provided more robust performance across different random seeds.
Limitations and Future Work
While the utilitarian framework is powerful, the authors acknowledge that defining the right utility function is not always easy for end users. If a user picks a utility function that doesn't accurately reflect their needs, the algorithm will optimize for the wrong outcome. Additionally, COUP currently samples new configurations from a prior distribution. The paper doesn't deeply explore how to define this distribution for complex, high-dimensional parameter spaces where some regions might be much more promising than others. Future work could focus on developing tools or guides to help practitioners define meaningful utility functions and priors for their specific domains.
Summary updated