Quantum NLP models on Natural Language Inference

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Sun, Ling, Sullivan, Peter, Martin, Michael, Zhou, Yun
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909854130503680
author Sun, Ling
Sullivan, Peter
Martin, Michael
Zhou, Yun
author_facet Sun, Ling
Sullivan, Peter
Martin, Michael
Zhou, Yun
contents Quantum natural language processing (QNLP) offers a novel approach to semantic modeling by embedding compositional structure directly into quantum circuits. This paper investigates the application of QNLP models to the task of Natural Language Inference (NLI), comparing quantum, hybrid, and classical transformer-based models under a constrained few-shot setting. Using the lambeq library and the DisCoCat framework, we construct parameterized quantum circuits for sentence pairs and train them for both semantic relatedness and inference classification. To assess efficiency, we introduce a novel information-theoretic metric, Information Gain per Parameter (IGPP), which quantifies learning dynamics independent of model size. Our results demonstrate that quantum models achieve performance comparable to classical baselines while operating with dramatically fewer parameters. The Quantum-based models outperform randomly initialized transformers in inference and achieve lower test error on relatedness tasks. Moreover, quantum models exhibit significantly higher per-parameter learning efficiency (up to five orders of magnitude more than classical counterparts), highlighting the promise of QNLP in low-resource, structure-sensitive settings. To address circuit-level isolation and promote parameter sharing, we also propose a novel cluster-based architecture that improves generalization by tying gate parameters to learned word clusters rather than individual tokens.
format Preprint
id arxiv_https___arxiv_org_abs_2510_15972
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Quantum NLP models on Natural Language Inference
Sun, Ling
Sullivan, Peter
Martin, Michael
Zhou, Yun
Computation and Language
Artificial Intelligence
81P68 (Primary), 68T50, 68T07 (Secondary)
I.2.7; F.1.2
Quantum natural language processing (QNLP) offers a novel approach to semantic modeling by embedding compositional structure directly into quantum circuits. This paper investigates the application of QNLP models to the task of Natural Language Inference (NLI), comparing quantum, hybrid, and classical transformer-based models under a constrained few-shot setting. Using the lambeq library and the DisCoCat framework, we construct parameterized quantum circuits for sentence pairs and train them for both semantic relatedness and inference classification. To assess efficiency, we introduce a novel information-theoretic metric, Information Gain per Parameter (IGPP), which quantifies learning dynamics independent of model size. Our results demonstrate that quantum models achieve performance comparable to classical baselines while operating with dramatically fewer parameters. The Quantum-based models outperform randomly initialized transformers in inference and achieve lower test error on relatedness tasks. Moreover, quantum models exhibit significantly higher per-parameter learning efficiency (up to five orders of magnitude more than classical counterparts), highlighting the promise of QNLP in low-resource, structure-sensitive settings. To address circuit-level isolation and promote parameter sharing, we also propose a novel cluster-based architecture that improves generalization by tying gate parameters to learned word clusters rather than individual tokens.
title Quantum NLP models on Natural Language Inference
topic Computation and Language
Artificial Intelligence
81P68 (Primary), 68T50, 68T07 (Secondary)
I.2.7; F.1.2
url https://arxiv.org/abs/2510.15972