QNet: A Quantum-native Sequence Encoder Architecture
Wei Day, Hao-Sheng Chen, Min-Te Sun

TL;DR
QNet introduces a quantum-native sequence encoder that operates efficiently on quantum computers, achieving comparable NLP task performance with significantly fewer parameters and circuit depth than classical models.
Contribution
This paper presents QNet, a novel quantum sequence encoder architecture, and ResQNet, a hybrid model, demonstrating quantum advantage in NLP tasks with minimal quantum resources.
Findings
QNet achieves competitive NLP performance with fewer parameters.
ResQNet effectively combines quantum and classical components.
Quantum models show promise for near-term NLP applications.
Abstract
This work proposes QNet, a novel sequence encoder model that entirely inferences on the quantum computer using a minimum number of qubits. Let and represent the length of the sequence and the embedding size, respectively. The dot-product attention mechanism requires a time complexity of , while QNet has merely quantum circuit depth. In addition, we introduce ResQNet, a quantum-classical hybrid model composed of several QNet blocks linked by residual connections, as an isomorph Transformer Encoder. We evaluated our work on various natural language processing tasks, including text classification, rating score prediction, and named entity recognition. Our models exhibit compelling performance over classical state-of-the-art models with a thousand times fewer parameters. In summary, this work investigates the advantage of machine learning on near-term…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsQuantum Computing Algorithms and Architecture · Quantum Information and Cryptography · Neural Networks and Applications
MethodsMulti-Head Attention · Attention Is All You Need · Linear Layer · Softmax · Adam · Position-Wise Feed-Forward Layer · Dense Connections · Label Smoothing · Absolute Position Encodings · Layer Normalization
