Classical-to-quantum convolutional neural network transfer learning

Juhyeon Kim, Joonsuk Huh, Daniel K. Park

TL;DR

This paper proposes a "Classical-to-Quantum" (C2Q) transfer learning framework that uses a pre-trained classical CNN to extract features for a small Quantum Convolutional Neural Network (QCNN). The authors demonstrate that these hybrid models can significantly outperform purely classical models of similar size (the "few-parameter regime"), providing a practical pathway for quantum advantage in the current NISQ era.

What Problem Does This Paper Address?

While Quantum Machine Learning (QML) is a burgeoning field, it faces two massive hurdles:

  1. Hardware Constraints: We are currently in the Noisy Intermediate-Scale Quantum (NISQ) era, meaning we only have access to a small number of qubits that are prone to errors.
  2. Trainability: Large-scale quantum circuits often suffer from "barren plateaus," where the optimization landscape becomes so flat that the model stops learning.

QCNNs are a promising architecture because their hierarchical structure naturally avoids barren plateaus and requires fewer parameters. However, feeding high-dimensional raw data (like images) directly into a small quantum circuit is difficult. This paper tackles the challenge of how to utilize small, reliable quantum circuits to solve complex, real-world classification problems by leveraging the "knowledge" already captured by classical neural networks.

Methods

The authors implement a Classical-to-Quantum (C2Q) Transfer Learning pipeline:

  • Feature Extraction (Classical): A classical CNN is pre-trained on a source dataset (Fashion-MNIST). The final classification layer is removed, leaving a "feature extractor" that outputs 256 values.
  • Data Encoding: These 256 classical features are compressed into the state of 8 qubits using amplitude encoding. This is a highly efficient way to map classical data into Hilbert space.
  • Quantum Processing (QCNN): The 8-qubit state is processed by a QCNN consisting of alternating convolutional and pooling layers.
  • Generalized Pooling: A key technical contribution of this paper is the introduction of a "generalized pooling" operation. Unlike standard pooling that uses simple controlled rotations, this method uses arbitrary single-qubit gates ($SU(2)$) controlled by the qubit being "traced out," allowing for more expressive models.
  • Fine-tuning: Only the parameters within the QCNN are trained (fine-tuned) on the target dataset (MNIST), while the classical feature extractor remains frozen.

Datasets

  • Source Dataset: Fashion-MNIST (60,000 training images). Used to train the initial classical feature extractor.
  • Target Dataset: MNIST (handwritten digits). The model was evaluated on three binary classification tasks: "0 vs 1", "2 vs 3", and "8 vs 9".
  • Benchmarks: The authors compared their C2Q-CNN against 1D and 2D Classical-to-Classical (C2C) transfer learning models, ensuring all models had a similar number of trainable parameters (roughly 64–76) to ensure a fair comparison.

Key Insights and Ideas

  • The Power of Few Parameters: QCNNs show a distinct advantage when the number of trainable parameters is strictly limited. While a classical model might need millions of parameters to reach peak performance, the QCNN achieves high accuracy with fewer than 100.
  • Hybrid Synergy: The paper highlights a "division of labor": classical models are excellent at the heavy lifting of dimensionality reduction, while quantum models are potentially better at identifying subtle, non-local correlations within that reduced feature space.
  • Pooling is a Primitive: The results suggest that how a quantum model discards information (pooling) is just as critical as how it processes it (convolution). Their "generalized pooling" consistently outperformed the standard "ZX pooling" used in previous literature.
  • Quantum Measurement Advantage: The authors speculate that the quantum advantage stems from the ability of quantum measurements to discriminate between non-orthogonal states in ways classical logic cannot easily replicate.

Key Results

  • Superior Accuracy: In almost all tests, the C2Q-CNN outperformed the classical C2C-CNN. For the "0 vs 1" task, most QCNN configurations achieved >95-98% accuracy, significantly higher than the classical baselines.
  • Statistical Significance: Using Welch’s t-test, the authors confirmed that the performance boost wasn't just luck; many QCNN ansatzes showed a statistically significant "quantum advantage" over 1D and 2D classical models.
  • Ansatz Sensitivity: The choice of the convolutional "ansatz" (the specific arrangement of quantum gates) matters. More expressive circuits (like those capable of arbitrary two-qubit operations) generally performed better, though they come at a higher computational cost.

Limitations and Future Work

  • Encoding Bottleneck: While amplitude encoding is space-efficient (256 features into 8 qubits), the circuit depth required to perform that encoding can be high, which might be problematic on actual noisy hardware (as opposed to the simulations used here).
  • Scaling Questions: The study focuses on the "few-parameter regime." It remains an open question whether the QCNN advantage persists as the number of parameters and qubits scales up to match state-of-the-art classical models.
  • Frozen Layers: The authors only replaced the final dense layer. Future work could explore "unfreezing" deeper layers of the classical CNN or using multi-channel QCNNs to handle more complex data structures.

Summary updated

BibTeX
@article{kim2023classical,
  author = {Juhyeon Kim and Joonsuk Huh and Daniel K. Park},
  title = {{Classical-to-quantum convolutional neural network transfer learning}},
  journal = {Neurocomputing},
  year = {2023},
  doi = {10.1016/j.neucom.2023.126643},
}
Figure