Skip to main content

Fast Quantum Algorithm for Learning

 -By Hayata Yamasaki,  Sathyawageeswar Subramanian,  Sho Sonoda,  Masato Koashi


Paper Link

image Courtesy: Fossguru.com


Abstract

Kernel methods augmented with random features give scalable algorithms for learning from big data. But it has been computationally hard to sample random features according to a probability distribution that is optimized for the data, so as to minimize the required number of features for achieving the learning to the desired accuracy. Here, we develop a quantum algorithm for sampling from this optimized distribution over features, in runtime O(D) that is linear in the dimension D of the input data. Our algorithm achieves an exponential speedup in D compared to any known classical algorithm for this sampling task. In contrast to existing quantum machine learning algorithms, our algorithm circumvents sparsity and low-rank assumptions and thus has wide applicability. We also show that the sampled features can be combined with regression by stochastic gradient descent to achieve the learning without canceling out our exponential speedup. Our algorithm-based on sampling optimized random features leads to an accelerated framework for machine learning that takes advantage of quantum computers. 


Random features provide a powerful technique for scaling up kernel methods applicable to various machine learning tasks, such as ridge regression, kernel learning, and principle component analysis. Recently, Bach has shown an optimized probability distribution of random features, and sampling features from this optimized distribution would drastically improve runtime of learning algorithms based on random features. However, this sampling task has been computationally “hard in practice” due to inversion of a high-dimensional operator. In contrast, the power of quantum computers to process data in quantum superposition attracts growing attention towards accelerating learning tasks, opening a new field of quantum machine learning (QML). QML accelerates a supervised learning task, by constructing an efficient quantum algorithm for sampling from this optimized distribution.

Problem: 

These conventional methods for obtaining random features from the data-independent distribution dτ (v) require a large number M of features to learn the function f, which slows down the decision of all M features and the regression over M coefficients. Aiming at minimizing M required for the learning, rather than sampling from dτ (v), we will sample features from a probability distribution that puts greater weight on important features that are optimized for the data, via a probability density function q(v) for dτ (v). 


Solution

  •  (Theorem 1) We construct a new quantum algorithm for sampling an optimized random feature from q ∗  (v)dτ (v) in as fast as linear runtime O(D) in the data dimension D. The best existing classical algorithm by Bach for sampling each single feature from this data-optimized distribution q ∗  (v)dτ (v) requires exponential runtime O(exp(D)). In contrast, our quantum algorithm can sample each single feature from q ∗  (v)dτ (v) with runtime O(D), which is as fast as the conventional algorithms such as. These conventional algorithms perform an easier task, i.e. sampling from a data-independent distribution dτ (v). Advantageously over the conventional algorithms sampling from dτ (v), quantum algorithm sampling is used from q ∗  (v)dτ (v) to achieve learning with a significantly small number M of features, which is proven to be minimal up to a logarithmic gap. Remarkably, we achieve this without assuming sparsity or low rank of relevant operators.

  • To construct this quantum algorithm, we circumvent the difficulty of infinite dimension by formulating a discrete approximation of the problem of sampling a real-valued feature from q ∗  (v)dτ (v). This approximation is equivalent to using fixed-point number representation with rescaling.

  • (Theorem 2) The combined M features sampled by the algorithm with regression by stochastic gradient descent to achieve supervised learning in time O(MD), i.e. without canceling out our exponential speedup. This M is minimal up to a logarithmic gap, since we use optimized random features. Thus, by improving the computational bottleneck faced by classical algorithms for sampling optimized random features, we provide a promising framework of quantum machine learning that leverages our O(D) sampling algorithm to achieve the optimal M among all algorithms using random features.

Conclusion

 a quantum algorithm is constructed for sampling an optimized random feature within a linear time O(D) in data dimension D, achieving an exponential speedup in D compared to the existing classical algorithm of Bach for this sampling task. Combining M features sampled by this quantum algorithm with stochastic gradient descent, we can achieve supervised learning in time O(MD), where this M is expected to be nearly minimal since we use the optimized random features. As for future work, it is open to prove the hardness of sampling an optimized random feature for any possible classical algorithm under complexity-theoretical assumptions. It is also interesting to investigate whether we can reduce the runtime to O(M log D).  but using the optimized random features to achieve minimal M. Since our quantum algorithm does not impose sparsity or low-rank assumptions, our results open a route to a widely applicable framework of kernel-based quantum machine learning with an exponential speedup.



Comments

Popular posts from this blog

DDSP: DIFFERENTIABLE DIGITAL SIGNAL PROCESSING

 -By Google Research {jesseengel,hanoih,gcj,adarob}@google.com Paper Link Code Demo Abstract Most generative models of audio directly generate samples in one of two domains: time or frequency. While sufficient to express any signal, these representations are inefficient, as they do not utilize existing knowledge of how sound is generated and perceived. A third approach (vocoders/synthesizers) successfully incorporates strong domain knowledge of signal processing and perception, but has been less actively researched due to limited expressivity and difficulty integrating with modern auto-differentiation-based machine learning methods. In this paper, we introduce the Differentiable Digital Signal Processing (DDSP) library, which enables direct integration of classic signal processing elements with deep learning methods. Focusing on audio synthesis, we achieve high-fidelity generation without the need for large autoregressive models or adversarial losses, demonstrating that DDSP enable...

Detecting Anomaly in Big Data System Logs Using Convolutional Neural Network

By - Siyang Lu, Xiang Wei, Yandong Li, Liqiang Wang Department of Computer Science, University of Central Florida, Orlando, FL, USA School of Software Engineering, Beijing Jiaotong University, China Paper Link Previous week we did a scan of the survey of Anomaly detection   , that covers breath of the topic (Types of Anomalies, Types of Models and their applications). In this summary paper, we look in to the core Heavy lifting part of Detecting Anomaly in Big Data System Logs Using Convolutional Neural Network. Abstract Nowadays, big data systems are being widely adopted by many domains for offering effective data solutions, such as manufacturing, healthcare, education, and media. Big data systems produce tons of unstructured logs that contain buried valuable information. However, it is a daunting task to manually unearth the information and detect system anomalies. A few automatic methods have been developed, where the cutting-edge machine lear...

Capsule Neural Networks

-By Sara Sabour, Nicholas Frosst,  Geoffrey E. Hinton  Google Brain Toronto Paper Link Abstract   A capsule is a group of neurons whose activity vector represents the instantiation parameters of a specific type of entity such as an object or an object part. We use the length of the activity vector to represent the probability that the entity exists and its orientation to represent the instantiation parameters. Active capsules at one level make predictions, via transformation matrices, for the instantiation parameters of higher-level capsules. When multiple predictions agree, a higher level capsule becomes active. We show that a discrimininatively trained, multi-layer capsule system achieves state-of-the-art performance on MNIST and is considerably better than a convolutional net at recognizing highly overlapping digits. To achieve these results we use an iterative routing-by-agreement mechanism: A lower-level capsule prefers to send its output to higher...