[Paper Review] A Quantum Model for Multilayer Perceptron
This paper proposes a quantum model for multilayer perceptron (MLP) using quantum state preparation and a novel parallel swap test technique to achieve at least quadratic, and in some cases exponential, speedup over classical learning algorithms. The method encodes input and weight vectors as quantum states and leverages quantum amplitude estimation and controlled operations to compute nonlinear activations and update weights efficiently, enabling faster training of quantum MLPs and an exponential speedup for Hebbian learning in Hopfield networks.
Multilayer perceptron is the most common used class of feed-forward artificial neural network. It contains many applications in diverse fields such as speech recognition, image recognition, and machine translation software. To cater for the fast development of quantum machine learning, in this paper, we propose a new model to study multilayer perceptron in quantum computer. This contains the tasks to prepare the quantum state of the output signal in each layer and to establish the quantum version of learning algorithm about the weights in each layer. We will show that the corresponding quantum versions can achieve at least quadratic speedup or even exponential speedup over the classical algorithms. This provide us an efficient method to study multilayer perceptron and its applications in machine learning in quantum computer. Finally, as an inspiration, an exponential fast learning algorithm (based on Hebb's learning rule) of Hopfield network will be proposed.
Motivation & Objective
- To develop a quantum model of multilayer perceptron that integrates nonlinear activation functions and weight learning within a quantum computing framework.
- To overcome the challenge of nonlinearity in quantum algorithms by using a novel quantum technique—parallel swap test—enabling efficient computation of inner products and nonlinear functions.
- To achieve significant speedup in both output computation and weight update processes compared to classical MLP training algorithms.
- To extend the framework to quantum Hopfield networks, demonstrating an exponential speedup in Hebbian learning using the same core technique.
Proposed method
- Input and weight vectors are encoded as quantum states |x⟩ = (1/‖x‖)∑x_i|i⟩ and |w⟩ = (1/‖w‖)∑w_i|i⟩, enabling superposition-based processing.
- The parallel swap test is used to compute inner products ⟨x|w⟩ in parallel across multiple qubit pairs, enabling efficient estimation of weighted sums.
- Nonlinear activation functions (e.g., sigmoid or threshold) are implemented via controlled rotations conditioned on the estimated inner product, inspired by the HHL algorithm.
- Weight updates are performed using a quantum version of online and batch learning, where the update rule is encoded via controlled unitary operations on ancilla qubits.
- The learning rule for Hopfield networks is adapted using a superposition of input and weight states, enabling simultaneous computation of all weight updates.
- The entire process is designed to preserve unitarity and coherence, ensuring compatibility with quantum circuit models and enabling exponential speedup under certain conditions.
Experimental results
Research questions
- RQ1Can a multilayer perceptron be effectively modeled in a quantum computer while preserving its nonlinear activation functions and learning dynamics?
- RQ2Can the quantum version of the multilayer perceptron achieve a speedup over classical training algorithms, particularly in weight update and output computation?
- RQ3Does the parallel swap test technique enable efficient and scalable computation of inner products and nonlinear functions in quantum neural networks?
- RQ4Can the same quantum framework be extended to other neural network models, such as Hopfield networks, to achieve exponential speedup in learning?
- RQ5What are the quantum algorithmic primitives required to implement gradient-based and Hebbian learning rules in a unitary, coherent quantum framework?
Key findings
- The proposed quantum model for multilayer perceptron achieves at least quadratic speedup in computing output signals and learning weight updates compared to classical algorithms.
- The use of the parallel swap test enables efficient estimation of inner products and nonlinear functions, forming the core of the quantum MLP’s computational advantage.
- For Hopfield networks, the quantum Hebbian learning rule achieves exponential speedup over classical counterparts, particularly when the number of input neurons is large.
- The quantum state preparation for input and weight vectors requires only O(log n) qubits, offering a significant advantage over models using n qubits for n inputs.
- The framework supports both online and batch learning modes, with the learning process encoded unitarily to preserve quantum coherence.
- The method demonstrates feasibility for integrating nonlinear neural dynamics into quantum computation, opening new pathways for 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 NubintThis review was generated by AI from the original paper. Please check the paper before citing it.