Skip to main content
QUICK REVIEW

[Paper Review] Variational Quantum Neural Networks (VQNNS) in Image Classification

Meghashrita Das, Tirupati Bolisetti|arXiv (Cornell University)|Mar 10, 2023
Quantum Computing Algorithms and ArchitectureComputer Science6 citations
TL;DR

This paper proposes Variational Quantum Neural Networks (VQNNs) that leverage the Quantum Approximate Optimization Algorithm (QAOA) to train quantum circuits for image classification. By encoding the QNN cost function into relative phases within a parameterized quantum circuit and optimizing via QAOA's mixer and problem Hamiltonians, VQNNs achieve faster convergence and improved accuracy on MNIST and crack detection datasets compared to standard QNNs.

ABSTRACT

Quantum machine learning has established as an interdisciplinary field to overcome limitations of classical machine learning and neural networks. This is a field of research which can prove that quantum computers are able to solve problems with complex correlations between inputs that can be hard for classical computers. This suggests that learning models made on quantum computers may be more powerful for applications, potentially faster computation and better generalization on less data. The objective of this paper is to investigate how training of quantum neural network (QNNs) can be done using quantum optimization algorithms for improving the performance and time complexity of QNNs. A classical neural network can be partially quantized to create a hybrid quantum-classical neural network which is used mainly in classification and image recognition. In this paper, a QNN structure is made where a variational parameterized circuit is incorporated as an input layer named as Variational Quantum Neural Network (VQNNs). We encode the cost function of QNNs onto relative phases of a superposition state in the Hilbert space of the network parameters. The parameters are tuned with an iterative quantum approximate optimisation (QAOA) mixer and problem hamiltonians. VQNNs is experimented with MNIST digit recognition (less complex) and crack image classification datasets (more complex) which converges the computation in lesser time than QNN with decent training accuracy.

Motivation & Objective

  • To improve the performance and time complexity of Quantum Neural Networks (QNNs) using variational quantum optimization.
  • To design a hybrid quantum-classical framework where a variational quantum circuit serves as an input layer for image classification.
  • To apply the Quantum Approximate Optimization Algorithm (QAOA) to train QNNs by encoding the cost function into quantum state phases.
  • To evaluate VQNNs on both simple (MNIST) and complex (crack detection) image datasets for generalization and efficiency.
  • To demonstrate that VQNNs can achieve higher training accuracy with reduced runtime compared to standard QNNs.

Proposed method

  • A parameterized quantum circuit is constructed using a feature map F that encodes classical image data into a m-qubit quantum state |Ψ(x)⟩ = F(x)|0⟩⊗m.
  • An ansatz A(θ) with tunable parameters θ applies entangling and rotation gates to generate an entangled quantum state |ϕ(x,θ)⟩ = A(θ)|Ψ(x)⟩.
  • The expectation value f(x,θ) = ⟨ϕ(x,θ)|O|ϕ(x,θ)⟩ is measured, where O is an observable, serving as the model output.
  • The QAOA ansatz is applied using two Hamiltonians: a problem Hamiltonian HC encoding the cost function and a mixer Hamiltonian HM = ∑j Xj to enable parameter exploration.
  • The parameterized state |Ψ(γ,β)⟩ = e−iβHM e−iγHC |0⟩⊗m is prepared and iteratively optimized via classical feedback to minimize the cost expectation ⟨C⟩ = ⟨Ψ(γ,β)|HC|Ψ(γ,β)⟩.
  • The final QNN output is fed into a classical neural network with two ConvNN layers and a fully connected layer, whose last neuron's value is used as θ in the quantum circuit.

Experimental results

Research questions

  • RQ1Can QAOA-based variational optimization improve the training efficiency and accuracy of QNNs in image classification tasks?
  • RQ2How does the integration of a 2-qubit parameterized quantum circuit as an input layer affect performance compared to a single-qubit approach?
  • RQ3Does VQNNs achieve faster convergence and better generalization on complex image datasets like crack detection compared to standard QNNs?
  • RQ4What is the impact of encoding the QNN cost function into relative phases of a superposition state via QAOA on model performance?
  • RQ5Can VQNNs maintain high accuracy while reducing runtime on both simple and complex image classification benchmarks?

Key findings

  • On the MNIST dataset, VQNN achieved 99.88% training accuracy and 99.89% validation accuracy, slightly lower than QNN’s 99.90% but with significantly reduced runtime of 8 minutes 40 seconds versus 1 minute 9 seconds.
  • For the crack detection dataset, VQNN achieved 89.25% training accuracy and 89.00% validation accuracy, outperforming QNN’s 87.05% and 96.90% respectively, with a 35-minute 48-second training time compared to QNN’s 48 minutes 15 seconds.
  • VQNNs demonstrated faster convergence on both MNIST and crack detection datasets, as shown in training convergence plots (Fig. 4 and Fig. 5), indicating improved optimization dynamics.
  • The VQNN framework successfully classified MNIST digits and crack images, with visual predictions in Figures 6 and 7 confirming correct classification outcomes.
  • The results indicate that VQNNs offer a favorable trade-off between accuracy and training time, especially on complex datasets where the improvement in accuracy is more pronounced.
  • The study confirms that QAOA-based parameterization enables effective optimization of QNNs, suggesting potential for further gains with larger, more coherent quantum hardware.

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.