A quantum semantic framework for natural language processing

Christopher J. Agostino, Quan Le Thien, Molly Apsel, Denizhan Pak, Elina Lesyk +1 more
6/11/2025
cs.CLcs.AIcs.IR

No official code found. Best implementation: NPC-Worldwide/npcpy (1,450 stars, MIT, last commit 2026-05-03).

Abstract

Semantic degeneracy represents a fundamental property of natural language that extends beyond simple polysemy to encompass the combinatorial explosion of potential interpretations that emerges as semantic expressions increase in complexity. In this work, we argue this property imposes fundamental limitations on Large Language Models (LLMs) and other modern NLP systems, precisely because they operate within natural language itself. Using Kolmogorov complexity, we demonstrate that as an expression's complexity grows, the amount of contextual information required to reliably resolve its ambiguity explodes combinatorially. The computational intractability of recovering a single intended meaning for complex or ambiguous text therefore suggests that the classical view that linguistic forms possess intrinsic meaning in and of themselves is conceptually inadequate. We argue instead that meaning is dynamically actualized through an observer-dependent interpretive act, a process whose non-deterministic nature is most appropriately described by a non-classical, quantum-like logic. To test this hypothesis, we conducted a semantic Bell inequality test using diverse LLM agents. Our experiments yielded average CHSH expectation values from 1.2 to 2.8, with several runs producing values (e.g., 2.3-2.4) in significant violation of the classical boundary ($|S|\leq2$), demonstrating that linguistic interpretation under ambiguity can exhibit non-classical contextuality, consistent with results from human cognition experiments. These results inherently imply that classical frequentist-based analytical approaches for natural language are necessarily lossy. Instead, we propose that Bayesian-style repeated sampling approaches can provide more practically useful and appropriate characterizations of linguistic meaning in context.

View on arXivView PDF

Code Implementations(1)

NPC-Worldwide/npcpyCommunity100%
MIT

The python library for research and development in NLP, multimodal LLMs, Agents, ML, Knowledge Graphs, and more.

1,450109Shell, PythonSep 27, 20245 months agoMIT
agentsaillmmcpmcp-client+6 more

Similar Papers

Cite this paper

@article{agostino2025quantum,
  title  = {A quantum semantic framework for natural language processing},
  author = {Christopher J. Agostino and Quan Le Thien and Molly Apsel and Denizhan Pak and Elina Lesyk and Ashabari Majumdar},
  year   = {2025},
  eprint = {2506.10077},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.10077v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.10077.svg)](https://codeofpaper.com/paper/2506.10077)

Discussion