mlsanityData to 14 Oct 2026

Visualizing LLM Latent Space Geometry Through Dimensionality Reduction

arXiv 2511.21594 ↗First posted 26 Nov 2025cs.LGcited by 4

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) achieve state-of-the-art results across many natural language tasks, but their internal mechanisms remain difficult to interpret. In this work, we extract, process, and visualize latent state geometries in Transformer-based language models through dimensionality reduction. We capture layerwise activations at multiple points within Transformer blocks and enable systematic analysis through Principal Component Analysis (PCA) and Uniform Manifold Approximation and Projection (UMAP). We demonstrate experiments on GPT-2 and LLaMa models, where we uncover interesting geometric patterns in latent space. Notably, we identify a clear separation between attention and MLP component outputs across intermediate layers, a pattern not documented in prior work to our knowledge. We also characterize the high norm of latent states at the initial sequence position and visualize the layerwise evolution of latent states. Additionally, we demonstrate the high-dimensional helical structure of GPT-2's positional embeddings and the sequence-wise geometric patterns in LLaMa. We make our code available at https://github.com/Vainateya/Feature_Geometry_Visualization. A better formatted blog-post with identical content is available at https://iclr-blogposts.github.io/2026/blog/2026/vis-llm-latent-geometry/.

Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 8 of its 17 references that are in the map. First posted on arXiv 26 Nov 2025.

Builds on

8 of 17 references.

References · 8

  1. 2018UMAP: Uniform Manifold Approximation and Projection for Dimension Reductioncited by 2,898
  2. 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,989
  3. 2022Toy Models of Superpositioncited by 971
  4. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 726
  5. 2024Not All Language Model Features Are One-Dimensionally Linearcited by 212
  6. 2024The Remarkable Robustness of LLMs: Stages of Inference?cited by 146
  7. 2014A Tutorial on Principal Component Analysiscited by 141
  8. 2020Machine Learning in Python: Main developments and technology trends in data science, machine learning, and artificial intelligencecited by 82

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 4.

4 papers.