On the Predictive Power of Representation Dispersion in Language Models

Yanhong Li, Ming Li, Karen Livescu, Jiawei Zhou · DOI

Abstract

This research establishes a direct link between the geometric properties of a language model's internal representations and its predictive performance. By introducing Representation Dispersion ($D$)—a metric measuring the average pairwise distance between hidden vectors—the authors provide a label-free method to assess model quality, optimize retrieval layers, and improve training through a novel "push-away" loss function.

Introduction: The Geometry of LLMs

A persistent challenge in Large Language Model (LLM) development is anisotropy, or "rank collapse," where hidden states occupy a narrow, cone-shaped region of the embedding space. While researchers have long suspected that this crowding limits a model's expressive capacity, the precise relationship between embedding geometry and actual text generation quality has remained difficult to quantify. This paper addresses the need for practical geometric metrics to answer critical questions: Which fine-tuned model will perform best on unlabeled data? And which internal layers are most effective for retrieval-augmented generation?

Methodology: Measuring Dispersion

The authors propose Representation Dispersion ($D$), calculated as the average pairwise cosine distance between hidden vectors for a given set of text segments. This simple, lightweight metric requires as few as 5,000 tokens and can be computed in milliseconds. Building on this, two applications are developed:

  1. Dispersion Gap ($\mathcal{G}$): A metric for model selection that evaluates how effectively a model separates task-specific tokens (e.g., code keywords or mathematical digits) from general language.
  2. Push-Away Objective: An auxiliary training loss that explicitly penalizes representations for being too close together, encouraging the model to utilize the full dimensionality of its embedding space.

The central finding is a strong, consistent negative correlation between dispersion and perplexity. Models that achieve superior prediction (lower perplexity) naturally exhibit higher dispersion.

Conceptual visualization of dispersion in weak vs. better models alongside the empirical correlation with perplexity.

This geometric "spreading out" is not uniform across the network. It emerges and strengthens in deeper, more semantic layers. Interestingly, even within tight semantic clusters—such as different contexts leading to the same conclusion—stronger models maintain greater distance between representations than weaker ones. Furthermore, attention sub-layers were found to be significantly more dispersive than feed-forward (FFN) sub-layers, explaining their superior performance as "keys" in retrieval-augmented models.

Results and Applications

The effectiveness of Representation Dispersion was validated across multiple model families, including LLaMA, Qwen, Mistral, and Gemma, on diverse benchmarks (ARC, MMLU, HumanEval, MATH). Key results include:

  • Zero-Label Prediction: Dispersion served as a near-perfect proxy for downstream accuracy. On benchmarks like ARC, accuracy rose monotonically with dispersion.
  • Model Ranking: The Dispersion Gap metric perfectly ranked nine Qwen model checkpoints for math performance without requiring ground-truth labels.
  • Improved Training: Integrating the "push-away" loss directly reduced perplexity. In cross-domain training (Wiki text and Python code), this loss helped the model develop more specialized features, leading to significant performance gains.

Conclusion

Representation Dispersion offers a robust, label-free framework for understanding and improving language models. By demonstrating that performance is etched into the geometry of hidden states, this work provides researchers with a powerful diagnostic tool for model selection and a new objective for optimizing the next generation of LLMs.

Summary updated

BibTeX
@inproceedings{li2026predictive,
  author = {Yanhong Li and Ming Li and Karen Livescu and Jiawei Zhou},
  title = {{On the Predictive Power of Representation Dispersion in Language Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=qvVrAMdK2F},
}
Figure