Skip to main content
QUICK REVIEW

[Paper Review] Training Classical Neural Networks by Quantum Machine Learning

Chen-Yu Liu, En-Jui Kuo|arXiv (Cornell University)|Feb 26, 2024
Quantum Computing Algorithms and ArchitectureComputer Science3 citations
TL;DR

This paper proposes a novel quantum machine learning framework that trains classical neural networks by mapping their weights to a quantum neural network (QNN) with only O(polylog(M)) parameters, enabling efficient training via quantum-enhanced optimization. The method leverages the exponentially large Hilbert space of quantum systems to compress classical network parameters, allowing trained models to be deployed on classical hardware without requiring quantum inference.

ABSTRACT

In recent years, advanced deep neural networks have required a large number of parameters for training. Therefore, finding a method to reduce the number of parameters has become crucial for achieving efficient training. This work proposes a training scheme for classical neural networks (NNs) that utilizes the exponentially large Hilbert space of a quantum system. By mapping a classical NN with $M$ parameters to a quantum neural network (QNN) with $O( ext{polylog} (M))$ rotational gate angles, we can significantly reduce the number of parameters. These gate angles can be updated to train the classical NN. Unlike existing quantum machine learning (QML) methods, the results obtained from quantum computers using our approach can be directly used on classical computers. Numerical results on the MNIST and Iris datasets are presented to demonstrate the effectiveness of our approach. Additionally, we investigate the effects of deeper QNNs and the number of measurement shots for the QNN, followed by the theoretical perspective of the proposed method. This work opens a new branch of QML and offers a practical tool that can greatly enhance the influence of QML, as the trained QML results can benefit classical computing in our daily lives.

Motivation & Objective

  • Address the challenge of high parameter counts in deep classical neural networks by leveraging quantum systems for efficient training.
  • Overcome the practical limitation of quantum machine learning models requiring quantum hardware for inference by enabling classical deployment after training.
  • Reduce the number of trainable parameters in classical neural networks using the exponential expressivity of quantum states.
  • Demonstrate that quantum circuits can efficiently approximate classical neural network weights through measurement probabilities.
  • Establish theoretical foundations for the existence of QNN approximations of classical networks under complexity-theoretic assumptions.

Proposed method

  • Map the M weights of a classical neural network to the measurement probabilities of a quantum state prepared by a parameterized quantum circuit (QNN).
  • Use a QNN with O(polylog(M)) rotational gate angles (Ry and Rz) to represent the classical network’s weights, drastically reducing the number of trainable parameters.
  • Train the QNN using non-gradient-based optimization to update gate angles, which indirectly train the classical network weights via the mapping.
  • Employ the EfficientSU2 ansatz with Ry/Rz rotations and CNOT entanglement for scalable and hardware-aware circuit design.
  • Translate measurement outcomes (probabilities) from the QNN into classical neural network weights using a predefined mapping function.
  • Perform inference on classical computers after training, eliminating the need for quantum hardware at inference time.

Experimental results

Research questions

  • RQ1Can a quantum neural network with polylogarithmic parameters effectively train a classical neural network with M parameters?
  • RQ2To what extent does the expressivity of deeper QNNs improve classification accuracy on classical datasets like MNIST and Iris?
  • RQ3How do the number of measurement shots in QNN simulations affect the accuracy of the resulting classical neural network?
  • RQ4Is there a theoretical justification for the existence of QNNs that can approximate classical neural networks with exponentially fewer parameters?
  • RQ5Can alternative mappings from quantum measurement probabilities to classical weights improve training performance or convergence?

Key findings

  • The proposed method reduces the number of trainable parameters from M to O(polylog(M)) by encoding classical network weights into the measurement probabilities of a quantum state.
  • Numerical experiments on MNIST and Iris datasets confirm the feasibility and effectiveness of the proposed training scheme, achieving competitive classification accuracy.
  • Deeper QNNs yield higher classification accuracy due to increased circuit expressibility, with performance improving as circuit depth increases.
  • Increasing the number of measurement shots in shot-based simulations improves classification accuracy, particularly when shot counts approach the Hilbert space size 2^N.
  • Theoretical analysis supports the existence of QNN approximations for classical neural networks under the assumption that SampBQP ≠ SampBPP, implying quantum advantage is likely.
  • The trained classical models can be deployed on classical hardware without quantum access, significantly enhancing the practical applicability of quantum machine learning.

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.