Skip to main content
Log in

Toward sampling from undirected probabilistic graphical models using a D-Wave quantum annealer

  • Published:
Quantum Information Processing Aims and scope Submit manuscript

Abstract

A D-Wave quantum annealer (QA) having a 2048 qubit lattice, with no missing qubits and couplings, allowed embedding of a complete graph of a restricted Boltzmann machine (RBM). A handwritten digit OptDigits dataset having 8 × 7 pixels of visible units was used to train the RBM using classical contrastive divergence. Embedding of the classically trained RBM into the D-Wave lattice was used to demonstrate that the QA offers a high-efficiency alternative to the classical Markov chain Monte Carlo (MCMC) for reconstructing missing labels of the test images as well as a generative model on a classically trained RBM. At any training iteration, the D-Wave-based classification had classification error less than half of that in MCMC. The main goal of this study was to investigate the quality of the QA sample from the RBM model probability distribution and compare it to a classical MCMC during the Gibbs sampling traditionally used in RBM training. For the OptDigits dataset, the states in the D-Wave sample belonged to about twice as many local valleys (LVs) as in the MCMC sample. All the lowest energy (the highest joint probability), local minima in the MCMC sample were also found by the D-Wave. The D-Wave missed many of the higher-energy LVs, while also finding many “new” LVs consistently missed by the MCMC. It was established that the “new” LVs that the D-Wave finds are important for the model distribution in terms of the energy of the corresponding local minima, the width of the LVs and the height of the escape barrier.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11

Similar content being viewed by others

References

  1. Yoshua, B.: Learning deep architectures for AI. Found. Trends Mach. Learn. 2(1), 1–127 (2009). https://doi.org/10.1561/2200000006

    Article  MATH  Google Scholar 

  2. Salakhutdinov, R.: Learning deep generative models. Annu. Rev. Stat. Appl. 2, 361 (2015)

    Article  Google Scholar 

  3. Salakhutdinov, R.R., Hinton, G.E.: An efficient learning procedure for deep Boltzmann machines. Neural Comput. 24(8), 1967–2006 (2012). https://doi.org/10.1162/NECO_a_00311. Epub 2012 Apr 17

    Article  MathSciNet  MATH  Google Scholar 

  4. Frigessi, A., Martinelli, F., Stander, J.: Computational complexity of Markov Chain Monte Carlo methods for finite markov random fields. Biometrika 84, 1 (1997)

    Article  MathSciNet  Google Scholar 

  5. Dumoulin, V., Goodfellow, I.J., Courville, A.C., Bengio, Y.: (2014). On the challenges of physical implementations of RBMs. In: Proceedings of the Twenty-Eighth AAAI Conference on Artificial Intelligence, July 27–31, 2014, Quebec City, Quebec, Canada., pp. 1199–1205

  6. Rose, G.: First ever DBM trained using a quantum computer (2014). https://dwave.wordpress.com/2014/01/06/first-ever-dbm-trained-using-a-quantum-computer/

  7. Adachi, S.H., Henderson, M.P.: Application of quantum annealing to training of deep neural networks (2015). arXiv:1510.06356

  8. Perdomo-Ortiz, A., O’Gorman, B., Fluegemann, J., Biswas, R., Smelyanskiy, V.N.: Determination and correction of persistent biases in quantum annealers (2015). arXiv:1503.05679v1

  9. Benedetti, M., Reaple-Gómez, J., Biswas, R., Perdomo-Ortiz, A.: Estimation of effective temperatures in a quantum annealer and its impact in sampling applications: a case study towards deep learning applications. Phys. Rev. A 94, 022308 (2015)

    Article  ADS  Google Scholar 

  10. Koshka, Y., Perera, D., Hall, S., Novotny, M.A.: Determination of the lowest-energy states for the model distribution of trained restricted Boltzmann machines using a 1000 Qubit D-Wave 2X quantum computer. Neural Comput. 29, 1815–1837 (2017)

    Article  Google Scholar 

  11. Koshka, Y., Perera, D., Hall, S., Novotny, M.A.: Empirical investigation of the low temperature energy function of the Restricted Boltzmann Machine using a 1000 qubit D-Wave 2X. In: Proceedings of 2016 International Joint Conference on Neural Networks (IJCNN), Vancouver, BC, 2016, pp. 1948–1954. https://doi.org/10.1109/ijcnn.2016.7727438

  12. Amin, M.H., Andriyash, E., Rolfe, J., Kulchytskyy, B., Melko, R.: Quantum Boltzmann machine. arXiv:1601.02036

  13. Benedetti, M., Realpe-Gómez, J., Biswas, R., Perdomo-Ortiz, A.: Quantum-assisted learning of hardware-embedded probabilistic graphical models. Physical Review X 7(4), 041052 (2017)

    Article  ADS  Google Scholar 

  14. Dorband, J.E.: A Boltzmann machine implementation for the D-wave. In: 2015 12th International Conference on Information Technology—New Generations, Las Vegas, NV, 2015, pp. 703–707. https://doi.org/10.1109/ITNG.2015.118

  15. Sleeman, J., Dorband, J., Halem, M.: A hybrid quantum enabled RBM advantage: convolutional autoencoders for quantum image compression and generative learning. arXiv:2001.11946

  16. Liu, J., Spedalieri, F.M., Yao, K.T., Potok, T.E., Schuman, C., Young, S., Patton, R., Rose, G.S., Chamka, G.: Adiabatic quantum computation applied to deep learning networks. Entropy. 20(5), 380 (2018). https://doi.org/10.3390/e20050380

    Article  ADS  MathSciNet  Google Scholar 

  17. Koshka, Y., Novotny, M.A.: Comparison of use of a 2000 Qubit D-wave quantum annealer and MCMC for sampling, image reconstruction, and classification. IEEE Trans. Emerg. Top. Computat. Intell. (2000). https://doi.org/10.1109/TETCI.2018.2871466

    Article  Google Scholar 

  18. Koshka, Y., Novotny, M.A.: 2000 Qubit D-wave quantum computer replacing MCMC for RBM image reconstruction and classification. In: 2018 International Joint Conference on Neural Networks (IJCNN): Rio de Janeiro, Brazil, July 2018, pp. 1–8 (2018). https://doi.org/10.1109/ijcnn.2018.8489746

  19. MacKay, D.J.C.: Information Theory, Inference & Learning Algorithms. Cambridge University Press, Cambridge (2002)

    Google Scholar 

  20. Lichman, M.: UCI Machine Learning Repository (2013)

  21. Santoro, G.E., Tosatti, E.: Topical review: optimization using quantum mechanics: quantum annealing through adiabatic evolution. J. Phys. A: Math. Gen. 39, R393–R431 (2006)

    Article  ADS  Google Scholar 

  22. D-Wave Systems, Inc. http://www.dwavesys.com

  23. Binder, K., Young, A.P.: Spin glasses: Experimental facts, theoretical concepts and open questions. Rev. Mod. Phys. 58, 801 (1986)

    Article  ADS  Google Scholar 

  24. Stein, D.L., Newman, C.M.: Spin Glasses and Complexity. Princeton University Press, Princeton, NJ (2013)

    Book  Google Scholar 

  25. Boixo, S., Rønnow, T.F., Isakov, S.V., Wang, Z., Wecker, D., Lidar, D.A., Martinis, J.M., Troyer, M.: Evidence for quantum annealing with more than one hundred qubits. Nat. Phys. 10(3), 218–224 (2014)

    Article  Google Scholar 

  26. Trummer, I., Koch, C.: Multiple query optimization on the D-Wave 2X adiabatic quantum computer (2015). arXiv:1510.06437

  27. Novotny, M.A., Hobl, L., Hall, J.S., Michielsen, J.S.: Spanning tree calculations on D-Wave 2 machines. In: Journal of Physics: Conference Series, vol. 681, 012005. International Conference on Computer Simulation in Physics and Beyond (CSP 2015), 6–10 Sept. 2015, Moscow, Russia, IOP Publishing Ltd. (2016). https://iopscience.iop.org/article/10.1088/1742-6596/681/1/012005/meta

  28. Fischer, A., Igel, C.: Training restricted Boltzmann machines: an introduction. Pattern Recognit 47(1), 25–39 (2014)

    Article  Google Scholar 

Download references

Acknowledgements

The authors thank D-Wave Systems for access to their 2000 Q machine. This material is based on research sponsored by the Air Force Research Laboratory under agreement number FA8750-18-1-0096. The views and conclusions contained herein are those of the authors and should not be interpreted as necessarily representing the official policies or endorsement, either expressed or implied, of the Air Force Research Laboratory (AFRL) or the US Government.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Yaroslav Koshka.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Koshka, Y., Novotny, M.A. Toward sampling from undirected probabilistic graphical models using a D-Wave quantum annealer. Quantum Inf Process 19, 353 (2020). https://doi.org/10.1007/s11128-020-02781-8

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s11128-020-02781-8

Keywords

Navigation