NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Quantum Relational Knowledge Distillation

Chen-Yu Liu, Kuan-Cheng Chen, Keisuke Murota, Samuel Yen-Chi Chen, Enrico Rinaldi

TL;DR

Quantum Relational Knowledge Distillation (QRKD) leverages quantum kernel alignment during training to transfer relational feature representations from a classical teacher network to a compact classical student network. By mapping feature representations into high-dimensional quantum Hilbert spaces, QRKD extracts richer relational geometry while requiring quantum computation strictly during training—allowing the compressed student model to run entirely on standard classical hardware at inference time.

What Problem Does This Paper Address?

Deploying large deep neural networks (like modern vision models and LLMs) on edge devices requires aggressive model compression. Knowledge Distillation (KD) accomplishes this by training a smaller student model to mimic a larger teacher model. While standard KD matches output logits, Relational Knowledge Distillation (RKD) transfers knowledge by aligning the geometric relationships (distances and angles) between sample embeddings in intermediate feature spaces.

However, classical RKD is bottlenecked by the expressive capacity of classical Euclidean feature spaces. Increasing feature dimensionality classically requires substantial parameter overhead (e.g., $O(d \cdot D)$ for linear projections). Meanwhile, most existing Quantum Machine Learning (QML) approaches require quantum hardware at both training and inference time, making practical deployment unfeasible. QRKD tackles this by using quantum circuits as geometric regularizers strictly during training.

Methods

QRKD introduces a hybrid training pipeline (termed "Classical-to-Classical with Quantum Processing"):

  1. Quantum State Embedding: Intermediate features from both the teacher and student models, $h_t(x)$ and $h_s(x)$, are mapped into quantum states $|\phi(h(x))\rangle$ in a $2^n$-dimensional Hilbert space using an $n$-qubit parameterized circuit (angle encoding with parameterized $R_y$ rotations followed by CNOT entangling chains).
  2. Quantum Kernel Evaluation: The similarity between data samples is computed using quantum kernels—either Fidelity Quantum Kernels (FQK) measuring quantum state overlap $|\langle \phi(x_i) | \phi(x_j) \rangle|^2$, or Projected Quantum Kernels (PQK) measuring subsystem state overlaps via reduced one-qubit density matrices.
  3. Relational Alignment Loss: A Huber loss penalizes discrepancies between the teacher’s and student's pairwise quantum kernel matrices: $$\mathcal{L}_{qr} = \sum_{i,j} \ell_\delta(k_s(x_i, x_j) - k_t(x_i, x_j))$$
  4. Unified Objective: The total loss combines task-specific loss, standard logit-based KD loss, classical RKD distance/angle losses, and the quantum kernel loss $\mathcal{L}_{qr}$. The authors also evaluate ablations: QRKD-A (quantum + angle), QRKD-D (quantum + distance), and QRKD-Q (quantum loss only).
[Classical Inputs] 
       │
       ├──> [Teacher CNN / LLM] ──> Features ht(x) ──> Quantum Circuit U(ht) ──┐
       │                                                                       ├──> [Quantum Kernel Alignment Lqr]
       └──> [Student CNN / LLM] ──> Features hs(x) ──> Quantum Circuit U(hs) ──┘

Datasets

The authors evaluated QRKD across vision and language benchmarks:

  • Computer Vision: MNIST (teacher: 6,690 params; student: 1,725 params) and CIFAR-10 (teacher: 277,610 params; student: 79,946 params) using VGG-style CNNs.
  • Natural Language Processing: WikiText-2, Penn Treebank (PTB), and IMDB text generation using GPT-2 (teacher: 124M parameters; student: ~30M parameters).

All datasets are standard public benchmarks; no new datasets were introduced.

Key Insights and Ideas

  • Parameter Efficiency via Hilbert Spaces: An $n$-qubit circuit encodes data into a $2^n$-dimensional Hilbert space using only $O(d)$ rotation parameters, avoiding the $O(d \cdot D)$ parameter explosion of classical high-dimensional projections.
  • Zero Quantum Overhead at Inference: Quantum processing occurs exclusively during backpropagation to regularize representations. Once trained, the student model is purely classical.
  • Sparse Sampling is Sufficient: Evaluating quantum kernels on just a tiny subset of pairwise feature combinations (e.g., as few as 4 randomly sampled pairs per batch) provides effective regularization without overwhelming simulation costs.
  • Superiority over Classical Kernels: Comparing QRKD to classical Radial Basis Function (Gaussian RBF) kernels demonstrated that quantum-induced Hilbert space geometries provide superior relational regularization compared to classical kernel distillation.
  • Theoretical Functional Closeness: The authors proved that under injectivity and Lipschitz continuity assumptions, minimizing pairwise quantum kernel discrepancy bounds the output functional discrepancy between teacher and student: $\mathbb{E}[\|f_s(x) - f_t(x)\|^2] \le \mathcal{O}(\mathcal{L}_{qr})$.

Key Results

  • MNIST: QRKD attained the highest test accuracy (95.46%), outperforming classical RKD (95.07%), KD (89.24%), and training from scratch (94.91%), while reducing the teacher-student gap from 3.79% to 3.24%.
  • CIFAR-10: QRKD-A achieved the top student test accuracy (65.72%) and lowest teacher-student gap (0.96%), beating both classical KD (65.66%) and RKD (65.47%).
  • Language Modeling (GPT-2): Across WikiText-2, PTB, and IMDB, QRKD-Q achieved the best overall normalized average perplexity (1.4007 using FQK), outperforming KD (1.4026) and RKD (1.4760). On IMDB, QRKD-Q reached 11.0886 perplexity compared to KD's 11.0990 and RKD's 12.1082.

Limitations and Future Work

  • Classical Simulation Regime: Experiments used 4 to 12 qubits simulated on a GPU via TorchQuantum. In this regime, the circuits are classically simulatable ("quantum-inspired"); true computational quantum advantage will require scaling to deeper, classically intractable circuits.
  • Hardware Noise and Sampling Variance: The study used idealized, noiseless state-vector simulations. On physical NISQ devices, quantum shot noise and gate infidelity will affect kernel evaluation.
  • Kernel Concentration: In fidelity kernels (FQK), kernel variance vanishes rapidly as the number of qubits increases (exponential concentration). While Projected Quantum Kernels (PQK) substantially alleviate this issue, scaling circuit width and depth remains delicate.

Summary updated

BibTeX
@inproceedings{liu2025quantum,
  author = {Chen-Yu Liu and Kuan-Cheng Chen and Keisuke Murota and Samuel Yen-Chi Chen and Enrico Rinaldi},
  title = {{Quantum Relational Knowledge Distillation}},
  booktitle = {UniReps @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=SZZPszqRiU},
}

Loading related content...

Figure