Natural Language Processing Meets Quantum Physics: A Survey and Categorization

Sixuan Wu, Jian Li, Peng Zhang, Yue ZhangEMNLP 2021

Introduction

Quantum Natural Language Processing (QNLP) represents a burgeoning intersection between linguistics and quantum mechanics. As classical NLP models reach certain plateaus in handling the inherent fluidity of human language, researchers have turned to the mathematical framework of quantum physics—specifically linear algebra in high-dimensional Hilbert spaces—to model linguistic phenomena more naturally. This survey categorizes a decade of research, providing a roadmap for how concepts like superposition and entanglement can address long-standing challenges in the field.

Addressing Classical Hurdles

Classical NLP faces two primary obstacles: lexical ambiguity and semantic composition. Standard models often represent words as static vectors, which struggles to capture how a word like "bank" shifts meaning based on context. Furthermore, modeling how the meaning of a sentence emerges from its constituent parts (composition) remains complex. QNLP proposes that language is inherently probabilistic and contextual, making the "language" of quantum mechanics uniquely suited for its description.

Methodological Framework

The survey organizes QNLP research into three main dimensions: algorithm types, modeling targets, and applications.

Types of Algorithms

  1. Quantum Algorithms: Designed for Noisy Intermediate-Scale Quantum (NISQ) devices. A prominent framework is DisCoCat (Distributional Compositional Categorical), which maps grammatical structures directly onto quantum circuits.
  2. Quantum-inspired Algorithms: These run on classical hardware but utilize quantum mathematical machinery, such as density matrices or wave functions, to enhance performance and interpretability.
Mapping linguistic meanings to quantum states and grammar to measurements.

As shown in the figure above, QNLP models often separate the "meanings" of words (represented as quantum states) from the "grammar" (represented as measurements or operations), allowing for a structured interaction between lexical content and syntactic rules.

Key Insights: Grammar and Ambiguity

The core strength of QNLP lies in its conceptual alignment with linguistic properties.

Grammar as Entanglement

Grammatical dependencies function similarly to quantum entanglement. When words are encoded as quantum states, the grammar acts as the "glue" that entangles them, ensuring the meaning of one word is inextricably linked to others in the sentence.

Pregroup grammar diagram illustrating the connections (entanglement) between words in a sentence.

Ambiguity as Superposition

In QNLP, an ambiguous word is treated as being in a superposition of all possible meanings. This state "collapses" into a specific meaning only upon interaction with context, mirroring a quantum measurement. To handle uncertainty more robustly than single vectors, QNLP frequently employs density matrices, which can represent "mixed states" and capture lexical correlations.

Empirical Performance and Results

QNLP is moving beyond theory into competitive empirical results. The survey highlights several benchmarks:

  • Text Classification: The Quantum Minimal Network (QMN) achieved an accuracy of 0.756 on the MELD dataset, outperforming standard CNNs.
  • Hybrid Models: Combining BERT with a Tensor Network (TextTN) yielded 54.8% accuracy on the SST-5 dataset, surpassing standalone BERT performance.
  • Efficiency: Theoretically, quantum algorithms offer a quadratic speedup for tasks like sentence similarity calculation, though this currently depends on the future availability of QRAM.

Limitations and Future Outlook

Despite its promise, QNLP faces significant hurdles. Most successful experiments are currently small-scale (e.g., ~100 sentences), and scaling to the billions of parameters found in models like GPT-4 is a massive challenge. We are currently in the NISQ era, where noisy hardware and limited qubits restrict task complexity.

Future research is expected to move beyond real-valued vectors to fully utilize complex numbers, a fundamental aspect of quantum mechanics that could unlock richer linguistic representations. Additionally, while current research focuses on classification and retrieval, the field is poised to explore generative tasks such as machine translation and summarization.

Summary updated

BibTeX
@inproceedings{wu2021natural,
  author = {Sixuan Wu and Jian Li and Peng Zhang and Yue Zhang},
  title = {{Natural Language Processing Meets Quantum Physics: A Survey and Categorization}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.emnlp-main.254},
}
Figure