Discrete Semantic States and Hamiltonian Dynamics in LLM Embedding Spaces
Not on the map. Why?
Abstract (arXiv)
We investigate the structure of Large Language Model (LLM) embedding spaces using mathematical concepts, particularly linear algebra and the Hamiltonian formalism, drawing inspiration from analogies with quantum mechanical systems. Motivated by the observation that LLM embeddings exhibit distinct states, suggesting discrete semantic representations, we explore the application of these mathematical tools to analyze semantic relationships. We demonstrate that the L2 normalization constraint, a characteristic of many LLM architectures, results in a structured embedding space suitable for analysis using a Hamiltonian formalism. We derive relationships between cosine similarity and perturbations of embedding vectors, and explore direct and indirect semantic transitions. Furthermore, we explore a quantum-inspired perspective, deriving an analogue of zero-point energy and discussing potential connections to Koopman-von Neumann mechanics. While the interpretation warrants careful consideration, our results suggest that this approach offers a promising avenue for gaining deeper insights into LLMs and potentially informing new methods for mitigating hallucinations.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 10 of its 28 references that are in the map. First posted on arXiv 29 Dec 2025.
Builds on
10 of 28 references.
References · 10
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,375
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
- 2016Man is to Computer Programmer as Woman is to Homemaker? Debiasing Word Embeddingscited by 1,312
- 2016Semantics derived automatically from language corpora contain human-like biasescited by 901
- 2018Gender Bias in Coreference Resolution: Evaluation and Debiasing Methodscited by 659
- 2016Linear Algebraic Structure of Word Senses, with Applications to Polysemycited by 165
- 2025Semantic Wave Functions: Exploring Meaning in Large Language Models Through Quantum Formalismcited by 2
- 2025The Quantum LLM: Modeling Semantic Spaces with Quantum Principlescited by 1
Built on by
Not cited yet.