Quantile Learn-Then-Test: Quantile-Based Risk Control for Hyperparameter Optimization

Amirmohammad Farzaneh, Sangwoo Park, Osvaldo Simeone

Abstract

The increasing adoption of Artificial Intelligence (AI) in engineering problems calls for the development of calibration methods capable of offering robust statistical reliability guarantees. The calibration of black box AI models is carried out via the optimization of hyperparameters dictating architecture, optimization, and/or inference configuration. Prior work has introduced learn-then-test (LTT), a calibration procedure for hyperparameter optimization (HPO) that provides statistical guarantees on average performance measures. Recognizing the importance of controlling risk-aware objectives in engineering contexts, this work introduces a variant of LTT that is designed to provide statistical guarantees on quantiles of a risk measure. We illustrate the practical advantages of this approach by applying the proposed algorithm to a radio access scheduling problem.

Introduction

In the development of AI-driven systems, Hyperparameter Optimization (HPO) is a critical stage where engineers tune model parameters—such as learning rates or network architectures—to maximize performance. Traditionally, HPO focuses on minimizing average risk. However, in safety-critical engineering domains like wireless communications or medical diagnostics, average performance is often an insufficient metric.

For instance, in a 5G network, a configuration that provides excellent average latency might still subject 10% of users to unacceptable delays. Engineers require risk control: a mathematical guarantee that the system's risk remains below a specific threshold for a guaranteed fraction of the population or time intervals. While the recently proposed Learn-Then-Test (LTT) framework provides statistical guarantees for average performance, it lacks the mechanisms to handle these specific "quantile" or tail-risk requirements. This paper introduces Quantile Learn-Then-Test (QLTT) to bridge this gap.

Methodology

QLTT reformulates HPO as a Multiple Hypothesis Testing (MHT) problem. The objective is to identify a set of "safe" hyperparameters from a candidate set $\Lambda$ that are statistically guaranteed to satisfy a quantile constraint on unseen data.

Algorithm 1: The Learn-Then-Test (LTT) and Quantile Learn-Then-Test (QLTT) frameworks.

The process follows four primary steps:

  1. Candidate Selection: A finite set of potential hyperparameter configurations is defined.
  2. Null Hypothesis Formulation: For each configuration, the null hypothesis assumes the configuration fails the quantile requirement (e.g., the 90th percentile delay exceeds 10ms).
  3. Calibration and p-value Evaluation: Using a separate calibration dataset, QLTT calculates a p-value for each configuration. Unlike standard LTT, QLTT utilizes a specialized concentration inequality—a one-sided confidence interval for quantiles—to estimate the probability that a configuration meets the safety goal.
  4. FWER Control: To mitigate the "look-elsewhere effect" inherent in testing multiple candidates, the algorithm applies Family-Wise Error Rate (FWER) controlling procedures, such as the Bonferroni correction or Fixed Sequence Testing.

The final output is a set $\hat{\Lambda}$ of hyperparameters that satisfy the risk constraint with a user-defined confidence level (e.g., 90% or 95%).

Experimental Setup: Radio Access Scheduling

The researchers evaluated QLTT using the Nokia Wireless Suite, a simulator for radio access scheduling. The task involved allocating 25 downlink resource blocks to 32 users across four Quality of Service (QoS) classes.

The study utilized 100 simulated episodes for calibration and 100 for testing. The search space consisted of 256 candidate hyperparameter vectors controlling the scheduling agent's prioritization of queue size, packet age, and fairness. The safety target was to maintain a packet delay below 10ms.

Key Results and Discussion

The primary finding of this work is the identification of the "Average Trap": a model can be statistically safe on average while remaining dangerous in the tail of the distribution.

Comparison of average delay distributions for LTT and QLTT. While both meet average targets, only QLTT respects the 0.9-quantile safety threshold.

In the radio scheduling task, when targeting a 0.9-quantile (ensuring 90% of episodes stay under 10ms), the results were stark:

  • QLTT Success: QLTT successfully identified hyperparameters that met the 10ms goal on the test set.
  • LTT Failure: The standard LTT method, optimizing for the average, returned configurations where the 90th-percentile delay reached 10.77ms, clearly violating the safety threshold.
  • Reliability: QLTT demonstrated consistent performance across multiple data realizations, whereas LTT's quantile risks frequently exceeded the target as requirements became more stringent.

Conclusion

QLTT provides a rigorous framework for ensuring reliability in "black box" AI models without requiring knowledge of the model's internal architecture. By allowing designers to specify an "outage rate" ($q$), QLTT enables a controlled trade-off between raw performance and guaranteed reliability.

Current limitations include the requirement for a discrete search space and the necessity of a representative calibration dataset. Future research may extend this framework to continuous search spaces and other statistical measures, such as mutual information or entropy, which are vital for privacy-preserving AI applications.

Summary updated

Abstract

The increasing adoption of Artificial Intelligence (AI) in engineering problems calls for the development of calibration methods capable of offering robust statistical reliability guarantees. The calibration of black box AI models is carried out via the optimization of hyperparameters dictating architecture, optimization, and/or inference configuration. Prior work has introduced learn-then-test (LTT), a calibration procedure for hyperparameter optimization (HPO) that provides statistical guarantees on average performance measures. Recognizing the importance of controlling risk-aware objectives in engineering contexts, this work introduces a variant of LTT that is designed to provide statistical guarantees on quantiles of a risk measure. We illustrate the practical advantages of this approach by applying the proposed algorithm to a radio access scheduling problem.
BibTeX
@article{farzaneh2024quantile,
  author = {Amirmohammad Farzaneh and Sangwoo Park and Osvaldo Simeone},
  title = {{Quantile Learn-Then-Test: Quantile-Based Risk Control for Hyperparameter Optimization}},
  journal = {IEEE Signal Processing Letters},
  year = {2024},
  doi = {10.1109/lsp.2024.3486238},
}
Figure