Reproduce “Do Large Language Models Play Six Degrees of Separation? Measuring Topological Compression in Long-Context Manifolds” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Md. Faiyaz Abdullah Sayeedi

Deep layers of large language models (LLMs) organize their latent spaces into "Small-World" networks, enabling efficient multi-hop reasoning over long textual contexts with an average of 3-5 semantic hops. This topological property provides a zero-shot, mechanistic signature for detecting factual inconsistencies or hallucinations in Retrieval-Augmented Generation (RAG) systems, achieving an AUROC of 0.89.

Key insights

  • Deep layers of transformer architectures undergo a topological phase transition, actively transforming physical distances within long contexts into efficient Small-World networks.
  • LLMs dynamically compress semantically distant concepts into a limited number of "semantic hops" (typically 3-5 hops, consistently below 6), validating the "Six Degrees of Separation" phenomenon in their latent spaces.
  • The structural integrity of these latent Small-World networks acts as a mechanistic signature for factual reliability; a topological collapse indicates ungrounded or hallucinated generations.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.