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(\text{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.
Introduction
Modern deep learning is currently grappling with a "parameter explosion." State-of-the-art models often require millions or even billions of parameters, leading to prohibitive computational costs and energy consumption. While Quantum Machine Learning (QML) offers theoretical advantages, it faces significant practical hurdles, such as the data encoding bottleneck and the inference bottleneck—where models typically require quantum hardware even after training.
This paper introduces a novel training scheme that uses Quantum Neural Networks (QNNs) to optimize the weights of classical neural networks. By leveraging the exponentially large Hilbert space of quantum systems, the authors achieve a polylogarithmic reduction in trainable parameters. This allows a classical model to be trained via a quantum "compressor" and subsequently deployed on standard classical hardware for inference, bypassing the need for quantum hardware during the operational phase.
Methodology
The core innovation lies in a mapping scheme that translates quantum measurement probabilities into classical neural network weights ($\theta$). For a classical network with $M$ weights, the system utilizes a QNN with $N = \lceil \log_2 M \rceil$ qubits. Because the Hilbert space grows as $2^N$, only a small number of qubits are needed to represent a vast number of weights.
The weights are derived from the measurement probabilities of the quantum state in the computational basis. To allow for the full range of classical weight values (including negative signs), the authors employ a parity-based setting. Additionally, a scaling factor $\gamma$ and a $\tanh$ activation are introduced to preserve weight magnitude as the number of qubits increases. The training loop uses a hybrid optimization approach: the COBYLA algorithm tunes the QNN gate angles ($\vec{\phi}$), while the Nelder-Mead algorithm tunes the scaling factor ($\gamma$). The QNN itself utilizes the EfficientSU2 ansatz, characterized by $R_y$ and $R_z$ rotational gates and CNOT entanglements.
Experimental Results
The approach was evaluated on two standard benchmarks: the MNIST handwritten digit dataset and the Iris flower classification dataset. For MNIST, a Convolutional Neural Network (CNN) with $M = 6690$ parameters was the target; for Iris, a single hidden layer NN with $M = 131$ parameters was used.
On the MNIST dataset, using a QNN with 13 qubits and 26 layers, the authors achieved a test accuracy of 80.21% using only 728 parameters—a parameter ratio of just 10.8% compared to the original model. For the simpler Iris task, the model achieved 98% accuracy with a parameter ratio of 24.4% using a single-layer QNN. The results demonstrate that increasing the number of QNN layers (depth) significantly improves the expressibility of the generated weights, leading to higher accuracy on complex tasks.
Discussion and Key Insights
The most striking result is the exponential compression of parameters. By mapping weights to a quantum state, the number of trainable parameters scales as $O(\text{polylog}(M))$. Furthermore, this method enables "Quantum Training with Classical Inference." Unlike typical hybrid models, the quantum component is only used during the training phase. The resulting weights are standard numerical values that can be loaded into any classical framework like PyTorch or TensorFlow.
From a theoretical standpoint, the authors argue that if a classical network's weights correspond to a wavefunction in the SampBQP complexity class, a quantum circuit is mathematically necessary for efficient compression, as classical probabilistic machines (SampBPP) cannot replicate these distributions in polynomial time.
Conclusion and Future Work
While promising, the method currently faces challenges regarding noise sensitivity in the NISQ era and the relatively slow convergence of non-gradient-based optimizers like COBYLA. Future research will explore gradient-based quantum optimization, alternative mapping schemes, and automated "Quantum Architecture Search" to find even more efficient circuit structures for weight generation. This work represents a significant step toward making QML practically useful for enhancing classical computing tasks.
Summary updated