Quantum Algorithm for Sparse Online Learning with Truncated Gradient Descent

Debbie Lim, Yixian Qiu, Patrick Rebentrost, Qisheng Wang · DOI

Introduction

In the era of "Big Data," high-dimensional features are ubiquitous, yet often only a small subset of these features is relevant to the task at hand. Online learning, where models update sequentially as data arrives, is a standard approach for handling such data streams. However, classical online learning algorithms typically scale linearly with the feature dimension $d$, i.e., $O(d)$ per iteration. For ultra-high-dimensional datasets where $d$ reaches millions or billions, this linear scaling becomes a significant computational bottleneck.

To address high dimensionality, sparsity-inducing techniques like Truncated Gradient Descent (TGD) are employed. TGD maintains model interpretability and efficiency by forcing small coefficients to zero. This paper introduces a quantum algorithm that quantizes the TGD framework, achieving a quadratic speedup in the data dimension $d$ while preserving the optimal $O(1/\sqrt{T})$ regret bound for fundamental problems like logistic regression, support vector machines (SVMs), and least squares.

Methodology

The proposed quantum algorithm builds upon the classical TGD framework established by Langford, Li, and Zhang (2009). The transition to a quantum setting involves several technical innovations to bypass the $O(d)$ memory and time constraints:

  1. Oracle-Oriented Weight Updates: Rather than storing the weight vector $w$ explicitly in $O(d)$ space, the algorithm utilizes quantum unitaries to compute specific entries of $w$ on-the-fly. This approach effectively "unrolls" the history of gradient updates into a quantum circuit.
  2. Quantum Subroutines: The framework leverages Quantum Amplitude Estimation and Amplification for two primary tasks:
  3. Inner Product Estimation: Used for the prediction step ($\hat{y} = w \cdot x$), enabling sub-linear scaling in $d$.
  4. Norm Estimation: Used to estimate the $\ell_1$-norm of truncated weights, a requirement for theoretical regret guarantees.
  5. Truncation Unitary: A specialized quantum circuit implements the truncation function (setting values within a threshold to zero) using comparison and min-max oracles.
  6. Input Model: The algorithm assumes a standard quantum input model where entries of training examples $x^{(t)}$ are accessible coherently.

Key Insights and Theoretical Results

The primary contribution of this work is the demonstration of a dimension-time trade-off. By accepting a higher dependency on the number of iterations ($T$), the algorithm achieves a significantly lower dependency on the dimension ($d$). Specifically, while classical complexity is $O(Td)$, the quantum complexity is $\tilde{O}(T^{5/2}\sqrt{d})$.

Extracted table from page 5 of Quantum Algorithm for Sparse Online Learning with Truncated Gradient Descent

As shown in the table above, the quantum algorithm provides a quadratic speedup in $d$ for Logistic Regression, SVM (Hinge Loss), and Least Squares. Crucially, it maintains the optimal regret bound of $O(1/\sqrt{T})$, matching the best possible rate for these online learning problems. The authors note that this speedup becomes practically significant in "ultra-high-dimensional" regimes where $d \geq \Omega(T^5)$.

Discussion and Limitations

While the quantum algorithm offers a substantial speedup in $d$, it introduces a $T^{5/2}$ scaling, which is significantly worse than the classical linear $T$. This limits the algorithm's advantage to scenarios where the feature dimension is massive relative to the number of iterations. Furthermore, because quantum subroutines like amplitude estimation are probabilistic, the authors provide rigorous proofs to ensure that accumulated errors do not degrade the regret bound over $T$ iterations.

Future research directions include extending this quantum approach to other gradient descent variants such as Mirror Descent or Stochastic Gradient Descent (SGD), investigating dynamic regret scenarios, and exploring applications in Reinforcement Learning.

Summary updated

BibTeX
@misc{lim2024quantum,
  author = {Debbie Lim and Yixian Qiu and Patrick Rebentrost and Qisheng Wang},
  title = {{Quantum Algorithm for Sparse Online Learning with Truncated Gradient Descent}},
  year = {2024},
  eprint = {2411.03925},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.03925},
}
Figure