Papers
qcr:2606.51613.1

Quantum Knowledge Distillation for Large Language Models

arXiv

Lingxiao Li, Yihao Wang, Jiacheng Fan, +4 more

As foundational tools in natural language processing, Large Language Models (LLMs) have immense parameter scales, which makes deployment and inference increasingly prohibitive, especially in resource-constrained devices. Therefore, knowledge distillation for LLMs, i.e., compressing the LLM to a smaller model, is meaningful. With strong parameter representation capacity, quantum computing is regarded as a promising solution. Here, we propose a Quantum knowledge Distillation model for LLMs (QD-LLM) that leverages variational quantum circuits to learn from LLMs. In classical simulation, QD-LLM outperforms several mainstream distillation methods on multiple text classification tasks in terms of both accuracy and efficiency using only 11 qubits. The results reveal an interesting phenomenon that the simulation of quantum student models may be regarded as a new class of quantum-inspired classical algorithms. Remarkably, we deploy the obtained circuits on the Baihua superconducting quantum processor via the Quafu platform to assess practical feasibility. The model maintains stable inference performance despite hardware constraints such as decoherence and finite sampling. In summary, QD-LLM marks a foundational step in connecting quantum computing with LLMs, demonstrating the feasibility of quantum-native approaches that aim to compress and deploy models of increasingly larger scales. The code of this article has been open-sourced at https://github.com/Lilingxiao-bupt/QD-LLM.
10.48550/arxiv.2505.13205
Published 2025
Uploaded 2 days ago
3
Views
View Publication
Citing this entry? Use this QCR ID
Uploaded by
QL
QCR Librarian

Overview

Join the Discussion

Comments (0)

No comments yet. Be the first to share your thoughts!

Indexed by QCR Librarian

This entry was created automatically from publicly available records. QCR links to public sources and only stores repository content where the license permits redistribution.

Related Code1

Related Tutorials0

No tutorials cover this paper yet. Add a tutorial →

Versions

v1 Latest
Jun 17, 2026
qcr:2606.51613.1

Cite all versions? Use the base QCR ID to always reference the latest version of this entry.