Targeted Hyperparameter Optimization with Lexicographic Preferences Over Multiple Objectives

Shaokun Zhang, Feiran Jia, Chi Wang, Qingyun WuICLR 2023

LexiFlow is a new hyperparameter optimization (HPO) algorithm that automates multi-objective tuning by allowing users to define a clear priority order—a lexicographic preference—for their goals. Instead of wasting computational resources mapping out an entire Pareto frontier of trade-offs, LexiFlow zeroes in on the specific configurations that satisfy user-defined tolerances and targets. This targeted approach makes it ideal for automated MLOps pipelines where human intervention is a bottleneck.

The Problem with Traditional HPO

In modern machine learning, "performance" is rarely a single number. We want high accuracy, but we also demand low latency, fairness, and small model sizes. Traditional HPO usually takes one of two paths:

  1. Single-Objective (SO-HPO): Optimizes one metric (like loss) and ignores the rest.
  2. Multi-Objective (MO-HPO): Finds a "Pareto frontier"—a set of models where you can't improve one metric without hurting another.

The problem with the Pareto approach is that it is fundamentally "untargeted." An algorithm might spend half its budget finding models that are incredibly fast but have terrible accuracy, even if the user would never actually deploy them. Furthermore, a human usually has to manually inspect the frontier to pick the final model, which breaks the "Auto" in AutoML and creates a bottleneck for continuous integration/deployment (CI/CD) systems.

Comparison of SO-HPO, MO-HPO, and LexiFlow on validation loss vs. DSP.

The authors address this gap by formalizing Targeted HPO. They ask: How can we tell an optimizer exactly what we want upfront so it can find the best model without human intervention?

Methods: Introducing LexiFlow

The researchers introduce LexiFlow, a randomized direct search algorithm designed to handle lexicographic preferences.

Key Concepts

  • Lexicographic Ordering: This is a "dictionary-style" priority. Objective A is strictly more important than Objective B. You only look at B to break ties in A.
  • Tolerances ($\tau$): Pure lexicographic ordering is often too rigid. LexiFlow allows users to specify a tolerance (e.g., "I'm willing to lose 0.5% accuracy if it significantly reduces latency").
  • Lexi-Targets: The algorithm recursively defines "frontiers" based on these priorities and tolerances.
  • The LexiFlow Algorithm: Unlike Bayesian methods that build complex surrogate models, LexiFlow uses a randomized search. It maintains an "incumbent" (the best configuration found so far) and samples nearby points.
  • Targeted Lexicographic Relations: The core innovation is a new way to compare two configurations. Instead of just asking "is X better than Y?", it asks "is X better than Y relative to our prioritized targets and tolerances?"

Crucially, because the "best possible" value for the primary objective isn't known at the start, LexiFlow estimates these targets on the fly using historical data from the search.

Key Results and Applications

The authors evaluated LexiFlow across several diverse scenarios, proving its efficiency and versatility.

  • Neural Network Tuning: When tuning a neural network on Fashion-MNIST to balance error rate against FLOPs and parameter counts, LexiFlow found models with 2x to 4x fewer FLOPs than standard MO-HPO methods while staying within the same accuracy tolerance.
  • Fairness in XGBoost: On the Compas dataset, the goal was to minimize validation loss while keeping "Statistical Disparity" (DSP, a fairness metric) low. LexiFlow achieved a fairness score of 0.016, whereas the single-objective baseline (which only cared about loss) was over four times worse (0.067).
  • Bioinformatics: On the AP_Colon_Kidney dataset for gene expression prediction, LexiFlow was the only method that successfully reached the user-defined "goal" for the number of features while maintaining top-tier accuracy.
LexiFlow performance over time on primary (Error rate) and secondary (Parameter count) objectives.

Core Insights

  • Automation requires Total Ordering: By using lexicographic preferences, the authors turn a complex multi-objective "partial ordering" into a "total ordering." This allows the machine to make the final decision, removing the human from the loop.
  • Efficiency through Focus: LexiFlow is "cost-frugal." Because it knows the target, it doesn't waste time exploring parts of the search space that are "Pareto optimal" but practically useless.
  • Tolerances as a "Soft" Priority: The inclusion of $\tau$ is the "secret sauce." It prevents the algorithm from getting stuck trying to optimize the 5th decimal place of accuracy when a massive gain in a secondary objective is available.
  • Proxy Objectives for Robustness: A fascinating insight is that lexicographic HPO can be used to fight overfitting. By setting "lower feature count" as a secondary priority, the algorithm naturally favors simpler, more generalizable models when accuracy scores are close. In an overfitting study across eight datasets, LexiFlow achieved the best test-time performance on seven of them.

Limitations and Future Work

While powerful, LexiFlow relies heavily on the user correctly identifying the priority of objectives; if the ranking is poorly chosen, the algorithm will efficiently find a model the user doesn't actually want. Furthermore, as a black-box optimizer, it may be slower than gradient-based methods if gradients are available. Finally, while it simplifies HPO, it introduces its own hyper-hyperparameters (tolerances and goals) that require domain knowledge to set. Future work may extend this framework to "multi-fidelity" settings, using small data subsets to speed up the early stages of the search.

Summary updated

BibTeX
@inproceedings{zhang2023targeted,
  author = {Shaokun Zhang and Feiran Jia and Chi Wang and Qingyun Wu},
  title = {{Targeted Hyperparameter Optimization with Lexicographic Preferences Over Multiple Objectives}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=0Ij9_q567Ma},
}
Figure