# How Language Models Compress and Compare: Understanding Selection with Token Covariance Maps

*Moshe Eliasof*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/154841) · [OpenReview](https://openreview.net/forum?id=AW5VdyuenU) · [Open on the map](../papers.html#p154841)

Category: [Interpretability & Model Adaptation](../pcat/15.md) › [Language Model Interpretability](../pgroup/624.md) · Type: new method · Keywords: token covariance maps, structured selection, language model interpretation, compress-then-compare, transformer analysis

Areas: [LLM Reasoning](../areas/reasoning.md) › Efficient Reasoning › In-Context Learning; [Evaluation & Benchmarks](../areas/evaluation.md) › Language Model and Agent Benchmarks › LLM Internal Representations; [Interpretability](../areas/interpretability.md) › Mechanistic Interpretability › Geometric Mechanistic Interpretability

## Summary
Token covariance maps provide a prompt-level geometric view that reveals a compress-then-compare organization in decoder-only language models across many tasks and model families.

## Explained to a 5-year-old
Language models sometimes have to pick the right answer from a list. The researchers made a picture that shows how the model changes its thoughts as it looks at the problem. They saw that early on the model’s thoughts are spread out everywhere. Then, in the middle, the model gathers its thoughts into a small, tight space. Finally, the model spreads the thoughts out again to compare the choices. This helps us understand how the model decides, like watching a movie of its thinking. The picture can be used to compare different models and see how they work.

## Explained to a 5-year-old, longer
Language models are computer programs that can write and understand words. Sometimes they need to choose the best answer from several options, like picking a color. The researchers wanted to see how the model thinks while it makes these choices. They created a visual tool that watches how different parts of the model talk to each other as the problem goes on. The tool shows that at the beginning the model’s ideas are spread out everywhere. Then, in the middle, the model gathers its ideas into a small, tight space, like putting many toys into a small box. Finally, the model spreads the ideas out again to compare the options, like laying the toys out to see which fits best. This pattern of spreading, gathering, and spreading again happens in many different language models. It also stays the same even when the problem is changed a little or when the answer choices are altered. The researchers saw that when they interfered with the middle gathering step, the model’s ability to compare got worse. This tells us that the middle step is important for making the right choice. The visual tool can be used to look at how different models think and to help improve them.

## For a technical reader
The paper introduces token covariance maps, a visual diagnostic that tracks how tokens co-vary in a transformer’s hidden space across layers. Using these maps, the authors discover a consistent compress-then-compare pattern: early layers spread representations, middle layers collapse them into a low-rank bottleneck, and later layers expand them to compare context and options. The pattern holds across 14 models from four families and 12 structured-selection benchmarks, and it remains stable under various prompt transformations. Interventions around the bottleneck disrupt the later comparison geometry, confirming the causal role of the bottleneck in selection behavior.

## Problem
We lack a simple picture of how decoder-only transformers organize selection prompts across layers, making it hard to understand the internal mechanisms of structured selection.

## Method
The approach tracks token position co-variation in hidden-state space across layers, producing depth-indexed covariance maps whose spectral and block structure are analyzed to identify compression and comparison phases.

## Results
The approach reveals a consistent compress-then-compare organization across models and benchmarks, with early diffuse representation, mid-layer low-rank bottleneck, and late expansion into comparison geometry, and low-rank interventions disrupt comparison.

## Contributions
A layerwise geometric account of structured selection in decoder-only transformers and a reusable diagnostic tool for comparing prompts, checkpoints, and model families.

## Practical relevance
It offers a diagnostic tool to compare and understand model behavior, aiding model analysis and development.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/154841)
