Skip to main content
QUICK REVIEW

[Paper Review] Quantum algorithm for logistic regression

Hailing Liu, Chao‐Hua Yu|arXiv (Cornell University)|Jun 10, 2019
Quantum Computing Algorithms and ArchitectureComputer Science36 references6 citations
TL;DR

This paper proposes a quantum algorithm for logistic regression that achieves exponential speedup in computing gradients during each iteration of the gradient descent process. By leveraging quantum amplitude estimation and quantum state preparation, the algorithm efficiently computes classical gradients when the data dimension M grows polylogarithmically with the number of data points N, enabling faster model training for big data classification tasks.

ABSTRACT

Logistic regression (LR) is an important machine learning model for classification, with wide applications in text classification, image analysis and medicine diagnosis, etc. However, training LR generally entails an iterative gradient descent method, and is quite time consuming when processing big data sets. To solve this problem, we present a quantum algorithm for LR to implement the key task of the gradient descent method, obtaining the classical gradients in each iteration. It is shown that our algorithm achieves exponential speedup over its classical counterpart in each iteration when the dimension of each data point M grows polylogarithmically with the number of data points N, i.e.,M=O(polylog N). It is worth noting that the optimal model parameters are finally derived by performing simple calculations on the obtained gradients. So once the optimal model parameters are determined, one can use them to classify new data at little cost.

Motivation & Objective

  • To address the computational bottleneck of classical logistic regression on large-scale datasets by accelerating the gradient computation step.
  • To design a quantum algorithm that efficiently computes gradients in each iteration of the gradient descent process, a core component of logistic regression training.
  • To achieve exponential speedup over classical methods under the condition that data dimension M grows polylogarithmically with the number of data points N.
  • To enable faster training of logistic regression models by reducing the time complexity of gradient computation using quantum techniques.

Proposed method

  • The algorithm uses quantum state preparation to encode classical data points into quantum states, enabling efficient manipulation of high-dimensional vectors.
  • It applies quantum amplitude estimation to estimate the inner products between data points and the current model parameters, which are essential for gradient computation.
  • The method leverages quantum linear algebra techniques to compute the gradient vector in superposition, significantly reducing the time required per iteration.
  • The algorithm assumes that the data dimension M is O(polylog N), which allows the quantum speedup to be realized in practice for large N.
  • After obtaining the quantum state encoding the gradients, it performs measurement-based estimation to extract classical gradient values for classical update steps.
  • The final model parameters are obtained through classical post-processing of the estimated gradients, maintaining compatibility with standard logistic regression inference.

Experimental results

Research questions

  • RQ1Can quantum algorithms achieve exponential speedup in computing gradients for logistic regression training?
  • RQ2Under what conditions on data dimension M relative to the number of data points N does the quantum algorithm outperform classical methods?
  • RQ3How can quantum techniques be effectively applied to the iterative gradient descent process in logistic regression?
  • RQ4What is the role of quantum amplitude estimation in accelerating the computation of classical gradients?

Key findings

  • The quantum algorithm achieves exponential speedup in gradient computation compared to classical methods when the data dimension M grows polylogarithmically with the number of data points N.
  • The speedup is realized in each iteration of the gradient descent process, significantly reducing training time for large-scale datasets.
  • The algorithm efficiently computes the gradient vector using quantum amplitude estimation and state preparation, enabling faster convergence in theory.
  • The final model parameters are derived from classical post-processing of the quantum-estimated gradients, ensuring compatibility with standard classification pipelines.
  • The method is particularly effective when M = O(polylog N), making it suitable for big data applications with high-dimensional features.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.