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

Reliable Measures of Spread in High Dimensional Latent Spaces

Anna C. Marbut, Katy McKinney-Bock, Travis J. Wheeler

Abstract

Understanding geometric properties of natural language processing models' latent spaces allows the manipulation of these properties for improved performance on downstream tasks. One such property is the amount of data spread in a model's latent space, or how fully the available latent space is being used. In this work, we define data spread and demonstrate that the commonly used measures of data spread, Average Cosine Similarity and a partition function min/max ratio I(V), do not provide reliable metrics to compare the use of latent space across models. We propose and examine eight alternative measures of data spread, all but one of which improve over these current metrics when applied to seven synthetic data distributions. Of our proposed measures, we recommend one principal component-based measure and one entropy-based measure that provide reliable, relative measures of spread and can be used to compare models of different sizes and dimensionalities.

Introduction

In modern artificial intelligence, models represent data—such as words or images—as vectors within a high-dimensional "latent space." Ideally, a model should utilize this space efficiently, spreading data out to maximize its expressive capacity. However, many models suffer from anisotropy, where data occupies only a narrow cone or a few dense clusters, leaving the majority of the space unused.

To address this, researchers must first be able to measure it accurately. Currently, the field relies heavily on two metrics: Average Cosine Similarity (ACS) and a partition function ratio denoted as $I(V)$. This research demonstrates that these metrics are fundamentally flawed. For example, ACS cannot distinguish between a perfectly uniform sphere of data and a set of tight, poorly-spread clusters if those clusters are symmetric around the origin. Furthermore, $I(V)$ is mathematically unstable, sensitive to the arbitrary signs of principal components, and fails to scale consistently as dimensionality increases.

Methods

The authors propose shifting the focus from "isotropy" (uniformity in all directions) to "spread" (how evenly data fills the available volume). They evaluate alternative measures based on two mathematical frameworks:

  1. Principal Component Analysis (PCA) Measures: Instead of focusing solely on min/max variance, these metrics examine the distribution of variance across all dimensions. A key recommendation is Eigenvalue Early Enrichment (EEE), which calculates the area under the cumulative sum curve of eigenvalues. A steep early spike indicates poor spread (variance concentrated in few dimensions), while a diagonal line indicates optimal spread.
  2. Entropy-Based Measures: These utilize information theory to quantify the order or predictability of the data. The authors recommend Vasicek Ratio MSE (VRM), which compares the entropy of the data to that of a multivariate normal distribution—the theoretical ideal for spread given a fixed variance.

Experimental Setup

To validate these metrics, the researchers developed a "stress test" consisting of seven synthetic data distributions designed to expose the weaknesses of existing measures. These include spherical models (Shell, Nested Shell, and Sphere) representing high spread, a Cone model representing directional restriction, and various cluster models (Symmetric, Shifted, and Uneven) representing poor spread.

The seven synthetic data distributions used to evaluate measures of spread, ranging from high-spread spherical models to low-spread cluster models.

These distributions were tested across 2, 10, 50, and 100 dimensions. The findings were further validated using a real-world dataset of 75,000 word embeddings from a pre-trained Word2Vec model.

Key Insights: The Isotropy Trap

A critical insight of this work is that a distribution can be "isotropic" while still exhibiting poor spread. For instance, data points located only on the outer "crust" of a sphere (the Shell distribution) are isotropic from the origin but leave the interior volume empty.

Cluster distributions (Symmetric, Uneven, Shifted) demonstrate how standard metrics like ACS can fail to detect poor data spread when points are symmetrically arranged.

Additionally, the "curse of dimensionality" means that in high-dimensional spaces, points naturally migrate toward the surface of a sphere. Consequently, the authors argue that a multivariate normal distribution is a more realistic reference for "ideal" spread than a perfectly uniform distribution. The paper also reveals that $I(V)$ is mathematically unreliable because its exponentiation down-weights negative projections, effectively ignoring half of the latent space.

Results

Experimental results show that EEE and VRM are the most robust metrics, consistently ranking the synthetic distributions correctly across all tested dimensionalities. Unlike ACS, they correctly identify that symmetric clusters represent poor spread. When applied to Word2Vec embeddings, these metrics successfully tracked a gradual increase in spread as random noise was added, whereas ACS and $I(V)$ behaved inconsistently. Crucially, these proposed measures remain reliable as they scale from 2D visualizations to high-dimensional latent spaces.

Conclusion

While EEE and VRM provide reliable relative measures of spread, the authors note that the definition of an "ideal" geometry may vary depending on the specific downstream task. The most promising future application is the integration of these metrics directly into model training as loss functions. By forcing models to utilize their latent spaces more effectively during training, researchers may achieve significant performance gains in tasks such as translation, clustering, and text generation.

Summary updated

BibTeX
@inproceedings{marbut2023reliable,
  author = {Anna C. Marbut and Katy McKinney-Bock and Travis J. Wheeler},
  title = {{Reliable Measures of Spread in High Dimensional Latent Spaces}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=sGvHRYUPeA},
}
Figure