Quantum Deep Learning

Nathan Wiebe, Ashish Kapoor, Krysta M. Svore

Researchers at Microsoft Research have introduced a novel framework that leverages quantum computing to train Boltzmann machines—a powerful class of generative neural networks—more efficiently and accurately than classical hardware allows. By utilizing quantum algorithms to bypass the computational bottlenecks of classical training, this work opens the door to more complex model architectures with significantly higher modeling capacity.

The Partition Function Bottleneck

Deep learning often employs Boltzmann Machines (BMs) to learn the underlying probability distributions of complex datasets. However, training these models is computationally intensive. To optimize weights, one must calculate expectation values over the model's state, a process involving a "partition function" that scales exponentially with the number of neurons.

To manage this, classical approaches typically rely on Contrastive Divergence (CD). While CD provides a useful approximation, it is prone to convergence issues and often limits researchers to Restricted Boltzmann Machines (RBMs), where connections are only permitted between layers, not within them. These structural constraints limit the representational power of the network.

Quantum Algorithms for Gradient Estimation

The paper proposes two primary quantum algorithms to replace classical approximations with exact sampling:

  1. Gradient Estimation via Quantum Sampling (GEQS): This algorithm prepares a "coherent Gibbs state" representing the model's probability distribution. It uses a classically-computed Mean-Field (MF) approximation as a non-uniform prior. By starting with a state already close to the target, the quantum computer can use rejection sampling to reach the exact distribution much faster than starting from scratch.
  2. Gradient Estimation via Quantum Amplitude Estimation (GEQAE): Building on GEQS, this method utilizes Quantum Amplitude Estimation (a variation of Grover’s algorithm) to provide a quadratic reduction in the number of samples required to estimate the gradient. This is particularly advantageous for large-scale training datasets.

Unlocking Full Connectivity

A major contribution of this research is the ability to train Full Boltzmann Machines, where any neuron can connect to any other neuron. Classically, these models are intractable due to their dense connectivity, but they offer significantly higher modeling capacity than layered RBMs.

Comparison between a layered Deep Boltzmann Machine (a) and a Full Boltzmann Machine (b). Quantum algorithms enable the training of the latter, which is classically intractable.

Numerical evaluations demonstrated that a full BM with only 7 units could outperform an RBM with 10 units. Overall, full BMs achieved a 25% better objective function value than deep RBMs with a similar number of edges.

Key Results and Scaling

Due to the current limitations of quantum hardware, the authors performed numerical simulations on small-scale models (up to 20 units) using synthetic data and sub-sampled MNIST digits. Key findings include:

  • Objective Function Improvement: Quantum-trained models showed a 10% improvement in the log-likelihood objective function compared to those trained with classical CD-1.
  • Exactness: Unlike the "noisy" gradients produced by CD, quantum computers provide the true gradient of the maximum-likelihood objective, leading to higher fidelity models.
  • Complexity: While classical exact training is exponential ($2^{n_v+n_h}$), the proposed quantum methods are polynomial in the number of edges, provided the Mean-Field approximation remains reasonably accurate.

Limitations and Future Work

The primary hurdle for this framework is the requirement for fault-tolerant quantum computers with high-precision gates. Additionally, the speedup relies on the overlap between the classical Mean-Field state and the true Gibbs state. For "hard" instances, such as spin glasses, this overlap might be exponentially small, potentially negating the quantum advantage.

The cumulative probability mass captured as a function of the rejection sampling parameter κ. The efficiency of the GEQS algorithm depends on κ scaling favorably for larger networks.

Future research will focus on how the parameter $\kappa$ (which dictates the rejection sampling success rate) scales for full-resolution images and deeper networks. The authors conclude that quantum computing does more than just accelerate deep learning; it provides a richer framework that could fundamentally change the architectures we are able to train.

Summary updated

BibTeX
@article{wiebe2016quantum,
  author = {Nathan Wiebe and Ashish Kapoor and Krysta M. Svore},
  title = {{Quantum Deep Learning}},
  journal = {Quantum Inf. Comput.},
  year = {2016},
  doi = {10.26421/qic16.7-8-1},
}
Figure