NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Statistical Mechanics of Semantic Compression

Tankut Can · DOI

TL;DR

This paper applies the tools of theoretical physics—specifically spin glass theory and replica symmetry—to understand how we compress information based on meaning rather than just bits. The author discovers that semantic compression behaves like a physical system with distinct "phases," revealing that while finding the perfect summary is mathematically "hard," simple greedy algorithms are surprisingly effective at capturing the essence of a message.

What Problem Does This Paper Address?

When you retell a story, you rarely use the exact same words, yet the "meaning" remains intact. Classical information theory (Shannon's legacy) focuses on "lossless" bit-by-bit reconstruction. However, human memory and modern AI operate in semantic space. We often sacrifice the "surface structure" (the specific words) to preserve the "gist."

The challenge is: how do we quantify this? If we represent meanings as vectors in a high-dimensional space (a common practice in machine learning), how does the dimensionality of that space and the size of our vocabulary limit our ability to compress? The author seeks to move beyond general communication theories to find the specific "phase transitions" that occur when we try to squeeze meaning into shorter messages.

Methods

The author builds a bridge between cognitive science and statistical mechanics using several key assumptions:

  • Semantic Vector Space: Meaning is modeled as a continuous Euclidean vector space where distance equals dissimilarity.
  • Bag-of-Words Embedding: The meaning of a message is simply the linear sum of the vectors of its individual words.
  • The Hamiltonian Mapping: The problem of finding the shortest message that stays "close" to the original meaning is mapped onto a spin glass Hamiltonian. This allows the author to treat "words" like particles in a complex energy landscape.
  • Replica Theory: To solve this complex optimization problem, the author uses the "replica symmetric ansatz"—a sophisticated mathematical technique from the physics of disordered systems—to predict the behavior of the system in the "limit" of infinite vocabulary size.
  • Algorithmic Comparison: The theoretical predictions are tested against two computational approaches: Simulated Annealing (a slow, thorough search) and a Greedy Algorithm (a fast, "best-next-step" approach).

Datasets

The paper primarily uses synthetic datasets to establish a baseline theory.

  • Random Gaussian Embeddings: Word meanings are modeled as high-dimensional random vectors. This is justified by the observation that many pre-trained AI embeddings (like word2vec or GloVe) follow approximately Gaussian distributions.
  • The study varies parameters like the relative embedding dimension ($\alpha$), message length ($L$), and lexicon size ($N$) to explore different regimes of compression.

Key Insights and Ideas

  • Compression has "Phases": Much like water turning to ice, semantic compression undergoes a first-order phase transition. There is a "Lossless" phase where meaning can be perfectly preserved even with fewer words, and a "Lossy" phase where some meaning must be sacrificed.
  • Extractive vs. Abstractive: The model identifies a crossover between two types of summarization. Extractive compression uses a subset of the original words. Abstractive compression (paraphrasing) uses entirely new words to represent the same idea more efficiently.
  • The "Easiness" of NP-Hardness: Finding the absolute best compression is technically NP-hard (specifically, it's a variation of the "partition problem"). However, the paper shows that for "typical" cases, the problem isn't actually that difficult for practical algorithms.
  • The Alignment Requirement: For a compressed message to be understood, the sender and receiver must have "aligned" semantic spaces. The author argues that the existence of successful human communication implies our internal mental "maps" of word meanings are mathematically isomorphic.

Key Results

  • The Critical Limit: The author identifies a maximum relative embedding dimension ($\alpha^* \approx 0.4049$) above which lossless compression becomes impossible.
  • Greedy is Good: Remarkably, the simple Greedy Algorithm—which just picks the next best word one at a time—performs nearly as well as the much more computationally expensive Simulated Annealing and matches the theoretical predictions of the physics model.
  • Phase Diagram: The paper maps out a complete phase diagram (Fig 1A) showing exactly when a language system will transition from being able to paraphrase perfectly to being forced into lossy summaries.

Limitations and Future Work

  • Context Blindness: The "bag-of-words" assumption means the model can't distinguish between "Dog bites man" and "Man bites dog." Future work would need to incorporate syntax and word order.
  • Uncorrelated Meanings: The current model assumes word meanings are random and uncorrelated. In real languages, words like "doctor" and "hospital" are highly correlated. The author notes that accounting for these correlations is a primary goal for future research.
  • Replica Symmetry Breaking: The theoretical model (RS MFT) fails to capture some nuances near the transition to lossless compression, suggesting that "replica symmetry breaking"—a more complex physics phenomenon—might be at play in those specific regions.

Summary updated

BibTeX
@misc{can2025statistical,
  author = {Tankut Can},
  title = {{Statistical Mechanics of Semantic Compression}},
  year = {2025},
  eprint = {2503.00612},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.00612},
}
Figure