The Geometry of Language Model Logits: Generic Structure and Learned Departures
Organizations: Stanford University · Indian Institute of Technology Madras · University of California San Diego (UCSD)
Abstract
Autoregressive language models produce, at every prediction step, a vocabulary-sized logit vector whose structure determines the conditional next-token distribution. We empirically identify that the ordered vocabulary-head logits follow a remarkably consistent log-linear relation
across prediction contexts, architectures, and scales, emerging progressively during pretraining. To our knowledge, this is the first systematic analysis of the logit geometry underlying the distributional assumptions used in the prior decoding work. While controlled order-statistic baselines spanning bounded, light-tailed, and heavier-tailed distributions can largely explain the observed log-linear geometry, they do not explain the systematic shift in the slope : trained language models exhibit --, sitting well above the initialization baseline () . Moreover, correlates with predictive performance, suggesting that it captures learned structure beyond generic extreme-value effects.
Figures & tables
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
| Form | # | RMSE | |
|---|---|---|---|
| Logarithmic | 2 | ||
| Power | 3 | ||
| Exponential | 2 | ||
| Square-root | 2 | ||
| Linear | 2 | ||
| Inverse | 2 |
| Family | Model | ||
| GPT-2 | 124M | 0.9910 | |
| 355M | 0.9914 | ||
| 774M | 0.9905 | ||
| 1.5B | 0.9898 | ||
| Pythia | 410M | 0.9889 | |
| 1.0B | 0.9889 |
| Pythia-410M | Pythia-1B | ||||
|---|---|---|---|---|---|
| Checkpoint | Training stage | ||||
| Step 0 | Initialization | 0.203 | 0.992 | 0.199 | 0.991 |
| Step 8 | Early | 0.258 | 0.881 | 0.241 | 0.909 |
| Step 64 | Early | 0.507 | 0.680 | 0.779 | 0.805 |
| Step 512 | Intermediate | 1.128 | 0.990 | 1.164 | 0.988 |
| Step 8000 | Late | 1.485 | 0.987 | 1.498 | 0.987 |
| Model | Mean | Mean KL | Mean JS | Mean TV | ||
|---|---|---|---|---|---|---|
| Pythia-1B | 100 | 9880 | 0.9689 | 0.0805 | 0.0238 | 0.0772 |
| 200 | 9880 | 0.9781 | 0.0536 | 0.0163 | 0.0566 | |
| 500 | 9880 | 0.9860 | 0.0292 | 0.0091 | 0.0348 | |
| Qwen2.5-1.5B | 100 | 9880 | 0.9721 | 0.0848 | 0.0249 | 0.0786 |
| 200 | 9880 | 0.9803 | 0.0548 | 0.0167 | 0.0562 | |
| 500 | 9880 | 0.9874 | 0.0300 | 0.0094 | 0.0347 |
| Mean KL | Mean JS | Mean TV | Mean | |
|---|---|---|---|---|
| 100 | 0.0731 | 0.0215 | 0.0715 | 0.9661 |
| 200 | 0.0479 | 0.0145 | 0.0518 | 0.9758 |
| 500 | 0.0266 | 0.0083 | 0.0325 | 0.9848 |
| Statistic | Pearson | Sign | Spearman | |||
|---|---|---|---|---|---|---|
| 95% CI | 95% CI | |||||
| Entropy | ||||||
| NLL | ||||||
| Log-rank | ||||||
| Entropy | ||||||
| filter | Entropy | NLL | Log-rank | |
|---|---|---|---|---|
| Statistic | ||
|---|---|---|
| Entropy | ||
| NLL | ||
| Log-rank |
Autoregressive Language Modeling
Autoregressive language modeling predicts sequences one step at a time, using prior tokens to generate text, speech, code, and other data.
See all 131 papers