paper-with-me

Papers

Visualizing LLM Latent Space Geometry Through Dimensionality Reduction

2025-11-26 · Alex Ning, Vainateya Rangaraju, Yen-Ling Kuo 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/.

📄 PDF Abstract BibTeX arXiv:2511.21594

Code (0)

등록된 구현이 없습니다.

Tasks

Dimensionality Reduction

Similar Papers 제목 키워드 기반

Cluster and then Embed: A Modular Approach for Visualization

2025-08-27 · Elizabeth Coda, Ery Arias-Castro, Gal Mishne arxiv

Dimensionality reduction methods such as t-SNE and UMAP are popular methods for visualizing data with a potential (latent) clustered structure. They are known to group data points at the same time as they embed them, res…

Dimensionality Reduction

A nonlinear extension of parametric model embedding for dimensionality reduction in parametric shape design

2026-05-12 · Andrea Serani, Giorgio Palma, Matteo Diez arxiv

Dimensionality reduction is essential in simulation-based shape design, where high-dimensional parameterizations hinder optimization, surrogate modeling, and systematic design-space exploration. Parametric Model Embeddin…

Dimensionality Reduction

Generative Modeling of Discrete Data Using Geometric Latent Subspaces

2026-01-29 · Daniel Gonzalez-Alvarado, Jonas Cassel, Stefania Petra, Christoph Schnörr arxiv

We propose a geometric latent-subspace framework for generative modeling of discrete data. Specifically, we introduce latent subspaces in the exponential parameter space of product manifolds of categorical distributions …

Dimensionality Reduction

Visualizing Missing Surfaces In Colonoscopy Videos using Shared Latent Space Representations

2021-01-18 · Shawn Mathew, Saad Nadeem, Arie Kaufman

Optical colonoscopy (OC), the most prevalent colon cancer screening tool, has a high miss rate due to a number of factors, including the geometry of the colon (haustral fold and sharp bends occlusions), endoscopist inexp…

Image-to-Image TranslationTranslation

Gromov-Hausdorff Distances for Comparing Product Manifolds of Model Spaces

2023-09-09 · Haitz Saez de Ocariz Borde, Alvaro Arroyo, Ismael Morales, Ingmar Posner 외

Recent studies propose enhancing machine learning models by aligning the geometric characteristics of the latent space with the underlying data structure. Instead of relying solely on Euclidean space, researchers have su…