Papers › A quantum semantic framework for natural language processing

A quantum semantic framework for natural language processing

11 Jun 2025arXiv:2506.10077archive 2025-07-28

Christopher J. Agostino, Quan Le Thien, Molly Apsel, Denizhan Pak, Elina Lesyk, Ashabari Majumdar

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. Large Language Models (LLMs) and other modern NLP systems face inherent limitations precisely because they operate within natural language itself, making them subject to the same interpretive constraints imposed by semantic degeneracy. In this work, we argue using Kolmogorov complexity that as an expression's complexity grows, the likelihood of any interpreting agent (human or LLM-powered AI) recovering the single intended meaning vanishes. This computational intractability suggests the classical view that linguistic forms possess meaning in and of themselves is flawed. We alternatively posit that meaning is instead actualized through an observer-dependent interpretive act. To test this, we conducted a semantic Bell inequality test using diverse LLM agents as ``computational cognitive systems'' to interpret ambiguous word pairs under varied contextual settings. Across several independent experiments, we found average CHSH expectation values ranging from 1.2 to 2.8, with several runs yielding values (e.g., 2.3-2.4) that significantly violate the classical boundary (|S|≤2). This demonstrates 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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2506.10077")

Code

Syntology Ran 0 of 22 code samples harvested from 1 repository linked to this paper; 22 have no recorded run.

By repository: official repository: 22 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

npc-worldwide/npcpy officialmentioned in papermentioned on GitHubMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

22 samples harvested; 0 ran; 0 honoured the contract we drafted; 22 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

22unverified

Licence: 0 of the 22 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from npc-worldwide/npcpy. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

agent_pass_handler npc-worldwide/npcpy/npcpy/npc_compiler.py official repository unverified MIT (permissive) · 6bf1b81aee20da6c · report
agents_to_npc npc-worldwide/npcpy/npcpy/convert.py official repository unverified MIT (permissive) · 2c49af830e973cdf · report
build_server npc-worldwide/npcpy/npcpy/mcp_server.py official repository unverified MIT (permissive) · 5523f8e99c99b90e · report
check_internet_connection npc-worldwide/npcpy/npcpy/npc_sysenv.py official repository unverified MIT (permissive) · fbaa0111f3bcded7 · report
create_model_genome npc-worldwide/npcpy/npcpy/ft/model_ensembler.py official repository unverified MIT (permissive) · dcce9ec0ef40fcea · report
create_or_replace_table npc-worldwide/npcpy/npcpy/npc_compiler.py official repository unverified MIT (permissive) · 23123d55db2c128f · report
deep_to_dict npc-worldwide/npcpy/npcpy/db.py official repository unverified MIT (permissive) · c59cdabeb1e36349 · report
discover_team_path npc-worldwide/npcpy/npcpy/mcp_server.py official repository unverified MIT (permissive) · 2e51a3e5f05db351 · report
ensemble_vote npc-worldwide/npcpy/npcpy/npc_array.py official repository unverified MIT (permissive) · 38245c4d32f43205 · report
ensure_engine npc-worldwide/npcpy/npcpy/db.py official repository unverified MIT (permissive) · 3d4a6cd6dc9565d2 · report
find_file_path npc-worldwide/npcpy/npcpy/npc_compiler.py official repository unverified MIT (permissive) · f870dadfa59bd668 · report
fit_model npc-worldwide/npcpy/npcpy/ml_funcs.py official repository unverified MIT (permissive) · f478d181a9352803 · report
generate_trigger_patterns npc-worldwide/npcpy/npcpy/ft/model_ensembler.py official repository unverified MIT (permissive) · 986a0476abbe5ebc · report
get_locally_available_models npc-worldwide/npcpy/npcpy/npc_sysenv.py official repository unverified MIT (permissive) · 6b18d725a9a080c4 · report
infer_matrix npc-worldwide/npcpy/npcpy/npc_array.py official repository unverified MIT (permissive) · 04c0ca73d7e0c996 · report
mutate_model_genome npc-worldwide/npcpy/npcpy/ft/model_ensembler.py official repository unverified MIT (permissive) · 82be464560deb08f · report
normalize_path_for_db npc-worldwide/npcpy/npcpy/db.py official repository unverified MIT (permissive) · 4216e682e01ce361 · report
npc_udf npc-worldwide/npcpy/npcpy/npc_array.py official repository unverified MIT (permissive) · e45111481f74a143 · report
predict_model npc-worldwide/npcpy/npcpy/ml_funcs.py official repository unverified MIT (permissive) · e40738e766337909 · report
preprocess_code_block npc-worldwide/npcpy/npcpy/npc_sysenv.py official repository unverified MIT (permissive) · 1f56682cc0c1c17d · report
score_model npc-worldwide/npcpy/npcpy/ml_funcs.py official repository unverified MIT (permissive) · 9a51adc831b11eac · report
skill_to_jinx npc-worldwide/npcpy/npcpy/convert.py official repository unverified MIT (permissive) · c18577e90b0f9d7c · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections