Exploration of Quantum Neural Architecture by Mixing Quantum Neuron Designs: (Invited Paper)

Zhepeng Wang, Zhiding Liang, Shanglin Zhou, Caiwen Ding, Yiyu Shi, Weiwen Jiang

TL;DR

This paper pioneers the concept of mixing different quantum neuron designs to create more powerful quantum neural networks (QNNs). By combining the strengths of variational quantum circuits (VQC) with real-valued weights and QuantumFlow's efficient multi-layer capabilities (though with binary weights), they introduce QF-MixNN, achieving a significant accuracy boost on the MNIST dataset.

What Problem Does This Paper Address?

The rapid advancement of quantum computing hardware, with increasing qubit counts, is making quantum deep learning a tangible reality. However, a key challenge is determining the optimal quantum neural architecture. Unlike classical neural networks, directly porting existing architectures is problematic due to the unique constraints of quantum computation, such as limited data representation and the cost of measurements. While various quantum neuron designs exist, they often have complementary strengths and weaknesses. For instance, VQC can handle real-valued weights but struggles with deep networks, while QuantumFlow excels at multi-layer structures but is limited to binary weights. This paper addresses the question of how to effectively combine these different neuron types to build more performant and versatile QNNs.

Methods

The core innovation of this paper is the mixing of quantum neuron designs. Inspired by classical neural architecture search (NAS), the authors propose a framework for seamlessly connecting different quantum neurons without incurring costly intermediate measurements. They introduce a set of design principles to guide this mixing process, focusing on compatibility of data encoding methods and avoiding measurement overhead.

Specifically, they propose QF-MixNN, a novel architecture that combines:

  • V-NEU (V-Layer): Based on Variational Quantum Circuits (VQC), capable of using real-valued weights.
  • U-NEU (U-Layer): From QuantumFlow, which can build multi-layer networks but is limited to binary weights.
  • N-NEU (N-Layer): Also from QuantumFlow, used for normalization.
  • P-NEU (P-Layer): Another QuantumFlow neuron for probabilistic computation.

They also developed QF-Mixer, a tool to help designers explore these mixed architectures and evaluate the feasibility of connecting different neuron types based on their data encoding methods.

Datasets

The primary dataset used for evaluation is MNIST, a standard benchmark for image classification. The authors evaluate their proposed architecture on the full MNIST dataset and also on several sub-datasets:

  • MNIST-2: Specifically selecting digits {3, 6} for binary classification.
  • MNIST-3: Selecting digits {0, 3, 6}.
  • MNIST-4: Selecting digits {0, 3, 6, 9}.
  • MNIST-5: Selecting digits {0, 1, 3, 6, 9}.
  • MNIST-10: The original, full MNIST dataset.

Images are downsampled to resolutions of 4x4, 8x8, and 16x16 to reduce the number of input qubits required.

Key Insights and Ideas

  • Complementarity of Quantum Neuron Designs: The paper strongly suggests that different quantum neuron designs are not just distinct but can be complementary. VQC's real-valued weights offer richer representation than QuantumFlow's binary weights, while QuantumFlow's multi-layer structure is beneficial for complex tasks.
  • Avoiding Intermediate Measurements is Crucial: The authors highlight that inserting measurement operations between quantum neuron layers can create a significant bottleneck due to classical-quantum communication overhead, negating the benefits of quantum computation. Their design principles aim to circumvent this.
  • Data Encoding Compatibility is Key: A major challenge in mixing neurons is their potentially different data encoding schemes (e.g., amplitude vs. probability encoding). The proposed design principles address how to connect neurons while respecting these differences.
  • QF-MixNN Architecture: The proposed QF-MixNN architecture demonstrates that a carefully designed mix of VQC and QuantumFlow neurons can lead to superior performance compared to using either type in isolation.

Key Results

The experimental results show a significant performance improvement with the proposed QF-MixNN architecture:

  • On the full MNIST dataset, QF-MixNN achieves an accuracy of 90.62%.
  • This significantly outperforms the baseline VQC-based QNN (52.77% accuracy) and QuantumFlow (69.92% accuracy) on the full MNIST dataset.
  • The paper also reports that QF-MixNN consistently outperforms QuantumFlow on more complex MNIST sub-datasets, indicating the benefit of incorporating real-valued weights from VQC.
  • For binary classification tasks (MNIST-2), VQC-based QNN performed slightly better, suggesting that simpler linear decision boundaries might suffice in such cases.

Limitations and Future Work

  • Limited Exploration of Neuron Types: While the paper focuses on VQC and QuantumFlow neurons, the authors acknowledge that other quantum neuron designs exist and could potentially be integrated.
  • Sensitivity to Hyperparameters: The paper notes that for deeper QNNs like QF-MixNN-2, tuning training parameters becomes more critical, and accuracy can drop if not managed carefully (as observed in Figure 4).
  • Scalability of Training: Training QNNs on classical computers is still computationally expensive due to the need to represent quantum gates as unitary matrices, especially for deep networks. The authors mention that decoupling layers can help mitigate this, but it remains a challenge.

Future work could involve exploring a wider range of quantum neuron designs, developing more sophisticated QF-Mixer tools for automated architecture search, and investigating the training scalability of these mixed architectures on actual quantum hardware.

Summary updated

BibTeX
@inproceedings{wang2021exploration,
  author = {Zhepeng Wang and Zhiding Liang and Shanglin Zhou and Caiwen Ding and Yiyu Shi and Weiwen Jiang},
  title = {{Exploration of Quantum Neural Architecture by Mixing Quantum Neuron Designs: (Invited Paper)}},
  booktitle = {ICCAD},
  year = {2021},
  doi = {10.1109/iccad51958.2021.9643575},
}
Figure