Near-Optimal Quantum Algorithm for Minimizing the Maximal Loss

Hao Wang, Chenyi Zhang, Tongyang Li

Abstract

We address the problem of minimizing the maximum of $N$ convex, Lipschitz functions, a core challenge in robust machine learning and distributionally robust optimization. We introduce a quantum algorithm that leverages quantum Gibbs sampling and ball optimization acceleration to achieve a quadratic speedup in terms of $N$ over the best known classical algorithms. Specifically, our algorithm achieves a query complexity of $\tilde{O}(\sqrt{N}\epsilon^{-5/3} + \epsilon^{-8/3})$. Furthermore, we establish a quantum lower bound of $\Omega(\sqrt{N}\epsilon^{-2/3})$, proving that our algorithm's dependence on $N$ is optimal.

1. Introduction

The "min-max" optimization problem involves finding a point $x$ that minimizes the maximum value among a set of $N$ convex functions $f_1, \dots, f_N$: $$\min_x \max_{i \in [N]} f_i(x)$$ This formulation is central to various machine learning tasks, such as training Support Vector Machines (SVMs) and performing distributionally robust optimization (DRO), where the goal is to ensure performance against worst-case scenarios.

Classically, solving this problem is computationally expensive when $N$ is large. Standard subgradient methods require $O(N\epsilon^{-2})$ queries to find an $\epsilon$-suboptimal point. While recent classical breakthroughs using "ball optimization" have improved this to $\tilde{O}(N\epsilon^{-2/3} + \epsilon^{-8/3})$, the linear dependence on $N$ remains a significant bottleneck for massive datasets. This work explores the potential of quantum computing to break this linear scaling.

2. Methodology

The proposed quantum algorithm builds upon the framework of Ball Optimization Acceleration, specifically a variant of Monteiro-Svaiter acceleration. The algorithm proceeds in two primary stages:

2.1 Softmax Approximation

To handle the non-smooth nature of the "hard" maximum, the algorithm minimizes a "softened" version—the Log-Sum-Exp function. This approximation is smoother and more amenable to optimization while maintaining the same minimizer as the original problem.

2.2 Quantum Ball Regularized Optimization Oracle (BROO)

The core innovation lies in the implementation of the oracle used to find a minimizer within a small ball. In classical settings, computing weights for all $N$ functions to sample a gradient requires $O(N)$ time. The quantum approach overcomes this by utilizing:

  • Quantum Zeroth-Order Oracle: Returns function values in superposition.
  • Quantum Gibbs Sampling: Employs "Top-K Maximum Finding" and "Amplitude Amplification" to sample from the required distribution in $\tilde{O}(\sqrt{N})$ queries.

3. Lower Bound Analysis

To establish the optimality of the $\sqrt{N}$ scaling, the authors utilize a "quantum progress control" method. They construct a "hard instance" based on an $\alpha$-robust $N$-element zero-chain structure. In this setting, any algorithm must solve a multi-round unstructured search problem to make progress along different coordinates. By ensuring that each round's solution acts as a "key" to the next, the authors prove that no quantum algorithm can bypass the $\sqrt{N}$ dependence.

4. Results and Discussion

The main results of this work are summarized in the table below, comparing the proposed quantum algorithm with state-of-the-art classical methods.

Comparison of query complexities for minimizing the maximum of $N$ convex functions.

The proposed algorithm achieves a query complexity of $\tilde{O}(\sqrt{N}\epsilon^{-5/3} + \epsilon^{-8/3})$, providing a quadratic speedup in $N$ over the classical state-of-the-art. The proven lower bound of $\Omega(\sqrt{N}\epsilon^{-2/3})$ confirms that the $\sqrt{N}$ dependence is optimal up to poly-logarithmic factors.

5. Conclusion

This work demonstrates that the $O(N)$ bottleneck in classical min-max optimization is fundamentally a sampling problem that quantum algorithms can efficiently address. While the dependence on $N$ is tight, a gap remains in the dependence on the accuracy parameter $\epsilon$ (between $\epsilon^{-5/3}$ and $\epsilon^{-2/3}$). Future research may focus on closing this gap, exploiting function smoothness for faster convergence, or investigating the impact of first-order quantum oracles.

Summary updated

BibTeX
@inproceedings{wang2024near,
  author = {Hao Wang and Chenyi Zhang and Tongyang Li},
  title = {{Near-Optimal Quantum Algorithm for Minimizing the Maximal Loss}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=pB1FeRSQxh},
}
Figure