WorksComputer Science
The Geometry of Language Model Logits: Generic Structure and Learned Departures
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.
Introduction
At every prediction step, an autoregressive language model assigns a score to every token in its vocabulary, which governs how probability mass is distributed over possible continuations. Sampling is the last step of generation; the logits are where the real decision is already made. While substantial work has studied the resulting token probabilities, generated text, and hidden representations, the structure of this vocabulary-wide logit vector remains comparatively unexplored.
One natural way to expose this structure is to ignore token identities and examine the logits in rank order. This perspective is also directly relevant to common decoding procedures, such as top- and top- sampling, which operate on the vocabulary head by selecting or truncating the highest-ranked logits. This leads to a simple question: Does the ordered logit vector possess a simple geometric structure?
We empirically find a remarkably regular structure in the vocabulary head: ordered logits follow an approximately log-linear relation across prediction contexts, architectures, and model scales, and this structure emerges during pretraining. This raises the question of how much of this structure is attributable to language models and how much arises generically from order statistics.
Controlled order-statistic baselines show that ranking any finite collection of random variables induces its own structure, and light-tailed distributions can produce approximately log-linear ordered spectra. We therefore focus on the spectral slope , examining how it differs from generic baselines, how it varies across models, and what information it carries about the model’s predictive state.
Our contributions are: (i) We characterize a consistent log-linear geometry in the ordered vocabulary-head logits of autoregressive language models across contexts, architectures, scales, and training. (ii)
Preprint. We distinguish generic order-statistic geometry from learned structure using controlled distributional baselines, identifying the spectral slope as the key empirical distinction between the regimes. (iii) We show that the spectral distribution can be efficiently reconstructed from the vocabulary head and that correlates with pre-hoc predictive uncertainty (entropy) and post-hoc prediction quality, measured by NLL, ground-truth token probability , and ground-truth token rank.
Preliminaries
Autoregressive prediction. At each prediction step, a decoder-only Transformer [14] maps the preceding context to a hidden state and produces a vocabulary-sized logit vector . The autoregressive factorization and conditional next-token distribution are
Here, is the unembedding matrix and is the output bias. Inference-time sampling may further rescale by a temperature before softmax [1].
Rank-space representation. Because token identities are not relevant to the structural question we aim to answer, we study the vocabulary head in rank space by sorting the logits in descending order:
For a chosen head size , we analyze the ordered spectrum .
Relation to Zipfian decoding. Our analysis is closely related to the Zipfian assumption underlying Mirostat [2], but addresses a more fundamental structural question. While Mirostat exploits a power-law next-token distribution for adaptive decoding, we characterize the ordered logit spectrum before softmax, ask whether its structure is generic or learned, and show that its two-parameter law can approximately reconstruct the full next-token distribution from a small exact vocabulary head. A detailed comparison is provided in Appendix § 5.
Results
Log-Linear Logit Geometry
For a prediction context, let denote the vocabulary logits sorted in descending order. We empirically observe that the vocabulary head is well approximated by
where is a context-dependent intercept and is the spectral slope. Across the models and contexts studied, this relation provides an excellent fit over the vocabulary head, with for a broad range of .
Figure 1(a) shows that the log-linear structure persists across substantially different prediction contexts, rather than being tied to a particular sequence. Normalization reveals a strong cross-context spectral collapse (Figure 1(b)), suggesting that much of the vocabulary-wide variation is captured by a low-dimensional rank-space structure. Robustness across , models, and corpora is reported in Appendix § 7.§ 3.

Figure 1. Ordered logit geometry. (a) Ordered logit spectrum for a representative prediction context from Llama-3.2-1B, with logits sorted in descending order and plotted against . The red line shows the least-squares fit of over the top vocabulary ranks. (b) Collapse of normalized ordered logit spectra across 1,000 randomly sampled prediction contexts from ten books for Llama-3.2-1B. Each spectrum is normalized independently as , and the black curve shows the corpus mean. (c) Mean divergence between the true next-token distribution and its spectral reconstruction using exact logits and a two-parameter log-linear approximation of the remaining ranks, averaged over four language models. Experimental details and additional results are provided in Appendix § 6.
Generic vs. Learned Structure
The near-perfect fit of ordered logits does not by itself imply language-model-specific structure. We therefore apply the same fitting procedure to controlled order-statistic baselines spanning bounded, light-tailed, and heavier-tailed distributions.
Figure 2 shows that this separation is not specific to the choice of rank cutoff. Across a broad range of , language models exhibit stable slopes, while the order-statistic baselines display distribution-dependent behavior. Uniform samples fit substantially worse, with average across vocabulary sizes and –, while Gaussian and Exponential samples achieve and , respectively. Lognormal samples achieve but produce much larger slopes, –. Thus, although log-linear structure can arise generically from order statistics, its fit and associated slope depend substantially on the underlying distribution.

Figure 2. Rank-cutoff robustness of the learned spectral regime. Spectral slope as a function of rank cutoff for representative models from four model families. Each language model is compared with Gaussian and Exponential order-statistic baselines matched to its vocabulary size. Error bars denote standard deviations across the 10 books for language models and across synthetic samples for the null distributions. The corresponding dependence of goodness of fit on is reported in Figure 5 (Appendix § 7).

Figure 5. Dependence of goodness of fit on rank cutoff. Coefficient of determination as a function of rank cutoff for the same representative language models and vocabulary-matched Gaussian and Exponential order-statistic baselines as in Figure 2. Error bars denote standard deviations across the 10 books for language models and across synthetic samples for the null distributions.
What shapes the spectral slope ? The cross-entropy objective provides a partial answer. At the population optimum, , making the log-linear logit law equivalent to an approximately Zipfian conditional distribution - the same regularity estimated online by Mirostat [2]. This equivalence does not itself explain why language-model distributions should be Zipfian: it holds exactly only at the unconstrained population optimum. Rather, we view the empirical tightness and stability of across architectures and scales as the phenomenon requiring explanation. Further equivalences and consequences are given in Appendix § 11.
Evolution during pretraining. Publicly available Pythia checkpoints show that the spectral regime develops during training: increases from approximately 0.2 at initialization, while normalized spectra progressively approach the final-model shape, with most changes occurring early and the structure clearly established by step 512 (Figure 3). Training therefore systematically shapes the spectral parameters within an ordered-logit structure. Additional analyses of the training dynamics are provided in Appendix § 8.
Figure 3. Evolution of ordered logit geometry during pretraining. Mean normalized ordered-logit spectra for Pythia-410M (solid) and Pythia-1B (dashed) across representative training checkpoints. Shaded regions denote the interquartile range across prediction contexts.
Spectral Reconstruction of Next-Token Distributions
The log-linear structure also provides a compact approximation of the next-token distribution. Given only the top- ordered logits, we retain their exact values and fit the spectral parameters by least squares. The remaining vocabulary logits are then reconstructed according to , yielding an approximate distribution after softmax.
Distribution reconstruction. Despite reconstructing the majority of vocabulary logits using only the two fitted spectral parameters, the resulting distributions remain close to the exact softmax distribution, with divergence consistently decreasing as the number of retained exact logits increases Figure 1(c). At ( of the vocabulary), the reconstruction achieves a mean Jensen–Shannon divergence of only 0.008 across four model families. Thus, a small exact head together with a two-parameter spectral description of the remaining tail approximately recovers the full rank-space next token distribution (see Appendix § 9).
Relation to predictive state. The spectral slope also varies systematically with the model’s predictive state. Across 40 model-book pairs, larger is associated with lower uncertainty and better prediction of the realized next token: entropy correlates at , NLL and ground-truth log-rank at and , and at . These associations are highly consistent across pairs and persist without filtering and under Spearman correlations, suggesting that captures variation in the predictive state beyond ordered logit geometry (see Appendix § 10).
Discussion
Our results reveal two complementary aspects of the ordered logit spectrum. Approximately log-linear geometry can arise generically from order statistics, while training systematically shapes the spectrum through . This yields a compact rank-space representation of vocabulary-sized predictions: a small exact head and two fitted parameters can approximately reconstruct the ranked probability spectrum. This compact structure may provide a basis for approximating vocabulary-sized predictive distributions without retaining the full spectrum. Moreover, systematically tracks aspects of the model’s predictive state, providing a compact summary of variation in next-token predictions.
Limitations and future work. Our analysis focuses on pretrained decoder-only language models and provides sufficient rather than necessary theoretical conditions. The origin of the learned spectral regime, and in particular why optimization drives the spectrum toward its observed parameter range, remains an open question. Moreover, our reconstruction concerns the ranked probability spectrum rather than token identities in the tail. Future work should examine whether these dynamics extend to other model architectures and whether the spectral functional can support uncertainty estimation, generation-state tracking, distribution approximation or decoding control.
Related Work
Statistical laws of language and generated text. Zipf’s law describes corpus-level token frequencies aggregated over natural language [16, 8, 10]. More recently, several works have investigated whether neural language models reproduce such statistical laws in generated text [13, 9]. Our object of study is different: we analyze the model’s predicted logit vector for each individual prediction context, before any token is sampled. The resulting log-linear law is therefore a pre-hoc property of conditional predictions rather than a post-hoc property of natural or generated text.
Structure of the conditional next-token distribution. Several works exploit regularities in the conditional next-token distribution to design decoding algorithms. Most closely related is Mirostat [2], which assumes Zipfian statistics of the predicted distribution and estimates the corresponding exponent online to adapt the sampling cutoff and control perplexity. Our work asks a prior structural question: why and how does such a power-law form arise in the first place? Rather than positing Zipfian structure at the probability level for decoding, we directly study the ordered logits before softmax and find that they follow a remarkably tight log-linear law across individual prediction contexts, architectures, and scales.
This perspective also separates generic structure induced by sorting from structure learned by the language model. We characterize the observed spectral slope , study its variation across predictive states, show that the geometry emerges progressively during pretraining, and demonstrate that a small exact vocabulary head together with the fitted spectral tail can approximately reconstruct the full next-token distribution. At the cross-entropy optimum, our logit law is exactly equivalent to a Zipfian conditional distribution, establishing a direct theoretical connection to the probability-level assumption used by Mirostat.
Geometry of the output layer. A separate line of work studies geometric properties of transformer outputs, including the softmax bottleneck [15], stolen probability [4], representation degeneration [6], anisotropy [5], and low-rank structure in collections of logit vectors across prompts. These perspectives are complementary: while prior work primarily studies structure across contexts or representations, we identify an interpretable within-context geometry of the vocabulary-sized output itself. The resulting two-parameter description provides a compact descriptor of each prediction step.
Training dynamics and theoretical characterization. Prior work has largely focused on analyzing trained models. We additionally study the emergence of ordered logit geometry during pretraining using intermediate checkpoints from the Pythia suite [3], showing that the law develops progressively through optimization. On the theoretical side, rather than assuming a particular generative model for the observed spectrum, we characterize its relation to conditional Zipfian structure at the cross-entropy optimum, give an equivalent distance-based reparametrization, and establish deterministic consequences for tail counts and the softmax distribution.
Experimental Setup
Models
We evaluate four families of decoder-only autoregressive language models spanning a range of model scales, vocabularies, and training procedures: GPT-2 (124M, 355M, 774M, 1.5B) [12], Pythia (410M, 1B) [3], Llama 3.2 (1B, 3B) [7], and Qwen 2.5 (0.5B, 1.5B) [7]. To study the emergence of the ordered logit geometry during training, we additionally evaluate intermediate checkpoints of the Pythia models at optimization steps . All models are evaluated in inference mode without gradient computation.
Corpora
Experiments are conducted on ten books from Project Gutenberg 2 covering diverse genres including realism, science fiction, mystery and adventure. Each text is tokenized using the model’s native tokenizer. We use the first 20,000 tokens of each book with a context length of 128 tokens and stride 1, yielding approximately prediction contexts per book. For every prediction context, we store the top- sorted logits (). The experimental code is available.3 As an ablation, we additionally verify this collapse on a different model and corpus (GPT-2 on WikiText-2), reported in Appendix C.
Fitting Procedure
For each prediction context, we fit the log-linear model
using ordinary least squares. We report the fitted slope , intercept , coefficient of determination (), and root mean squared error (RMSE). Per-model statistics are reported as the mean of per-book means, with standard deviation across books as a measure of corpus stability. For the normalized spectrum analysis, each logit spectrum is standardized as
before averaging across contexts.
Additional Experiments
Functional Form Selection
We compare the log-linear form against five alternatives on prediction contexts from Llama-3.2 (1B); results are in Table 1.
| Form | # | RMSE | |
| Logarithmic | 2 | ||
| Power | 3 | ||
| Exponential | 2 | ||
| Square-root | 2 | ||
| Linear | 2 | ||
| Inverse | 2 |
Table 1. Comparison of functional forms fitted to ordered logit spectra (Llama-3.2 1B, ). # is the number of free parameters.
The three-parameter power law is essentially matched by the two-parameter log-linear form, with its small residual gain in fit attributable to the extra parameter rather than a qualitatively better description. We adopt the log-linear form for two reasons: (1) parsimony: it reaches with two parameters, one fewer than the power law; and (2) softmax tractability: it yields a closed-form Zipf law , whereas the power law admits no comparably tractable softmax expression. We do not claim log-linear is uniquely correct, only that it is the simplest form consistent with the data and better suited to the softmax-based results in § 3.
Ablations
To verify that the rank-logit collapse is not specific to the primary model or corpus, we repeat the analysis with GPT-2 on WikiText-2 and French Wikipedia. As shown in Figure 4, the normalized logit curves collapse onto a shared trajectory across contexts in both corpora, consistent with the pattern observed in our primary experiments.
Figure 4. Cross-corpus normalized logit collapse for GPT-2. Left: GPT-2 evaluated on WikiText-2. Right: GPT-2 evaluated on French Wikipedia. In both panels, blue curves show individual prediction contexts and the black curve shows the corpus mean. The normalized ordered-logit spectra exhibit a shared trajectory across contexts in both corpora.
Additional Results
Consistency Across Model Families. Table 2 summarizes the fitted log-linear parameters across all evaluated models. Despite substantial differences in architecture, tokenizer, training corpus, and more than an order-of-magnitude variation in model size, the ordered logit spectrum is consistently well approximated by a log-linear law (). More strikingly, the fitted slope remains confined to a narrow range (), indicating that modern autoregressive language models exhibit remarkably similar ordered logit geometry despite their diverse training procedures and scales.
| Family | Model | ||
| GPT-2 | 124M | 0.9910 | |
| GPT-2 | 355M | 0.9914 | |
| GPT-2 | 774M | 0.9905 | |
| GPT-2 | 1.5B | 0.9898 | |
| Pythia | 410M | 0.9889 | |
| Pythia | 1.0B | 0.9889 | |
| Llama-3.2 | 1.0B | 0.9915 | |
| Llama-3.2 | 3.0B | 0.9908 | |
| Qwen-2.5 | 0.5B | 0.9918 | |
| Qwen-2.5 | 1.5B | 0.9917 |
Table 2. Log-linear fit statistics across autoregressive language model families, averaged over 10 books (). Reported is mean standard deviation across books; is the mean per-context coefficient of determination, averaged across books.
Dependence of goodness of fit on . The goodness of fit generally improves as the rank cutoff increases for both language models and order-statistic baselines. Language-model fits approach at larger , but Gaussian and Exponential baselines attain similarly high or higher over the same range. Thus, the improvement in with is not specific to language models and should not itself be interpreted as evidence of learned structure. Instead, we use the spectral slope to distinguish the language-model spectra from generic order-statistic geometry.
Additional Training Dynamics
Evolution of the spectral regime. We further quantify the evolution of the ordered-logit law throughout pretraining using intermediate checkpoints from the Pythia-410M and Pythia-1B suites. Table 3 reports the fitted spectral exponent and goodness of fit at different training stages.
| Checkpoint | Training stage | Pythia-410M | Pythia-410M | Pythia-1B | Pythia-1B |
| 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 |
| Final | Trained | 1.571 | 0.987 | 1.618 | 0.986 |
Table 3. Evolution of the ordered-logit spectral regime during pretraining. We report the mean fitted exponent and at across evaluation contexts for Pythia-410M and Pythia-1B.
Both models exhibit a substantial change in the spectral regime during the early stages of optimization. At initialization (Step 0), the ordered spectra already admit a highly linear fit, but occupy a shallow regime, with at , closer to the Gaussian synthetic baseline () than to the trained models. This exponent is substantially smaller than that of the trained models, whose final values reach – at the same cutoff.
In the earliest stages of training, the log-linear structure itself undergoes a substantial departure from the final regime Figure 3. For example, at Step 64, the fit reaches only and 0.81 for Pythia-410M and Pythia-1B, respectively. As training progresses, both the exponent and goodness of fit move toward their final values. By Step 512, the exponent reaches 1.13 for Pythia-410M and 1.16 for Pythia-1B, with . At Step 8000, both models are already close to their final spectral regime, with – and . The final checkpoints further sharpen this regime, reaching for Pythia-410M and 1.62 for Pythia-1B.
These dynamics indicate that training does not merely preserve or amplify a generic consequence of ordering. Rather, optimization transforms the initial shallow spectrum through a transient non-log-linear phase into a distinct spectral regime characterized by a substantially larger and increasingly stable exponent. The learned phenomenon is therefore characterized jointly by the emergence of strong log-linearity and a nontrivial spectral scale that is not present in either synthetic or untrained baselines.
Spectral Approximation of Next-Token Distributions
We provide additional details and model-wise results for the spectral reconstruction experiment in § 3.3. The experiment evaluates whether the ordered logit spectrum can be used to approximately recover the full next-token distribution from a small exact head and a two-parameter description of the remaining ranks.
Spectral Reconstruction
For each prediction context, let denote the vocabulary logits sorted in descending order. Given the first exact ordered logits, we fit
by ordinary least squares over . We retain the first logits exactly and reconstruct the remaining ranks as
Applying softmax to the reconstructed spectrum yields the approximate distribution , which is compared with the exact distribution .
We evaluate reconstruction using Kullback–Leibler (KL) divergence, Jensen–Shannon (JS) divergence, and total variation (TV) distance:
Results are aggregated over 39,520 prediction contexts sampled from ten books across four language models. We consider .
Model-wise Results
Table 4 reports the complete model-wise reconstruction results. Divergence decreases consistently as more exact logits are retained. At , mean JS divergence ranges from 0.0058 to 0.0094 across models, while mean TV ranges from 0.0235 to 0.0369.
| 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 | |
| GPT-2 XL | 100 | 9880 | 0.9568 | 0.0675 | 0.0197 | 0.0717 |
| 200 | 9880 | 0.9686 | 0.0468 | 0.0141 | 0.0543 | |
| 500 | 9880 | 0.9811 | 0.0285 | 0.0088 | 0.0369 | |
| Llama-3.2-3B | 100 | 9880 | 0.9666 | 0.0595 | 0.0175 | 0.0587 |
| 200 | 9880 | 0.9760 | 0.0363 | 0.0110 | 0.0400 | |
| 500 | 9880 | 0.9847 | 0.0189 | 0.0058 | 0.0235 |
Table 4. Model-wise spectral reconstruction results. Divergences compare the exact next-token distribution with the distribution reconstructed from the top- exact ordered logits and a log-linear approximation of the remaining ranks.
Aggregate Results
Across all four models, reconstruction quality improves consistently with . The mean KL divergence decreases from 0.0731 at to 0.0479 at and 0.0266 at . Mean JS divergence decreases from 0.0215 to 0.0145 and 0.0083, while mean TV decreases from 0.0715 to 0.0518 and 0.0325, respectively.
| 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 |
Table 5. Aggregate spectral reconstruction results across 39,520 contexts and four language models.
Predictive-Behavior Analysis
Setup. For each prediction context, we sort the vocabulary logits and fit
with by ordinary least squares. We evaluate GPT-2 XL, Pythia-1B, Llama-3.2-3B, and Qwen-2.5-1.5B on ten Project Gutenberg books per model. Contexts have length 128 and are sampled every 128 tokens, yielding non-overlapping windows. For each context, we record , , NLL, , true-token rank, and full-vocabulary entropy
We use log(true rank) for the rank analysis. Pearson and Spearman correlations between and each statistic are computed separately within each of the 40 model–book pairs, then pooled with a DerSimonian-Laird random-effects meta-analysis on Fisher- transformed correlations (sampling variance ), giving pooled correlations, 95% confidence intervals, two-sided -values, and heterogeneity . An exact two-sided binomial sign test over the 40 book-level correlations is included as a distribution-free check, and we also repeat the sign test at the level of the four model-family averages. We report results both with a fit-quality filter () and without one ().
Correlation results. Table 6 reports the pooled Pearson and Spearman correlations between and each predictive statistic, together with the sign-test summary.
| Statistic | Pearson | 95% CI | Sign | Spearman | 95% CI | |
| Entropy | (1.82e−12) | |||||
| NLL | (7.46e−11) | |||||
| (1.38e−06) | ||||||
| Log-rank | (7.46e−11) | |||||
| Entropy | (1.82e−12) | |||||
| NLL | (7.46e−11) | |||||
| Log-rank | (7.46e−11) |
Table 6. Predictive-behavior analysis across 40 model–book pairs. Entries are random-effects pooled Pearson and Spearman correlations with 95% confidence intervals. The Sign column reports the percentage of book-level correlations with negative/positive sign. For the Pearson meta-analysis, for all statistics except , for which at and at . Exact two-sided binomial sign-test -values are given in parentheses.
Heterogeneity across model–book pairs. Table 7 reports the heterogeneity statistic for each pooled Pearson correlation in Table 6. is moderate for NLL and and higher for entropy, indicating that the correlation with entropy varies more across model–book pairs in magnitude, even though Table 6 shows its sign is consistent for all 40 pairs.
| filter | Entropy | NLL | Log-rank | |
| 66.6% | 37.3% | 40.3% | 24.7% | |
| 73.7% | 69.7% | 39.5% | 48.9% |
Table 7. Heterogeneity () of the pooled Pearson correlations reported in Table 6, by fit-quality filter.
Robustness to the fit-quality filter. The filter excludes a different fraction of contexts in each model–book pair; we call this the pair’s rejection fraction and ask whether it is itself associated with that pair’s average predictive statistics, which would indicate the filter systematically selects easier or harder contexts. Table 8 shows none of the four correlations is significant, so we find no evidence of such a bias.
| Statistic | ||
| Entropy | 0.227 | 0.159 |
| NLL | 0.210 | 0.194 |
| −0.066 | 0.684 | |
| Log-rank | 0.189 | 0.244 |
Table 8. Pearson correlation between each model–book pair’s rejection fraction and its mean predictive statistics ( pairs). None of the four associations is significant at .
Theoretical Characterization
This appendix collects the formal statements referenced in § 3. Section G.1 characterizes the relationship between the log-linear logit law and an approximately Zipfian conditional next-token distribution and clarifies what this relationship does and does not establish. Sections G.2 and G.3 derive two exact consequences of the empirical law, once it holds for a given context: an equivalent exponential tail count (Prop. 1) and a conditional Zipf distribution with exact temperature rescaling (Prop. 2), which together formalize the assumption underlying Mirostat [2]. Section G.4 formalizes the normalized-collapse behavior shown in Figure 1(b) (Prop. 3) and bounds its robustness to residual fit error.
We distinguish two questions. The first concerns the consequences of the vocabulary head being approximately log-linear in log-rank. These consequences follow algebraically and do not depend on the origin of the observed law. The second concerns why a language model’s logits exhibit this form in the first place. Our analysis provides only a partial account of this second question.
Fix a prediction context and write the vocabulary logits as
where is the output embedding row for token , is an output bias when present, and .
We suppress the dependence on when clear, and write
for the logits sorted in descending order.
Relation to a Zipfian conditional distribution
An exact equivalence at the cross-entropy optimum. At the population optimum of the cross-entropy objective, the softmax probabilities for a fixed context equal the true conditional distribution , so the logits satisfy
for an arbitrary context-dependent constant (adding a constant to every logit of a context leaves the softmax unchanged). Sorting both sides by rank,
where is the -th largest value of . Thus, on the vocabulary head, the empirical law holds exactly when the conditional next-token distribution is approximately Zipfian in rank, . This is a change of variables rather than a new assumption: log-linear logits and an approximately Zipfian express the same claim, provided the model is near its cross-entropy optimum.
What this equivalence does, and does not, explain. This identity does not by itself explain why should be close to Zipfian; it instead transfers the same regularity from logits to probabilities, where related structure has been conjectured and used previously, most directly in Mirostat’s online Zipf-exponent estimate [2]. Two points distinguish this from a purely definitional restatement of what we measure. First, the identity above is exact only at the unconstrained population optimum, while a finite model trained on finite data with a fixed architecture and a low-rank output embedding is not guaranteed to attain that optimum. The observation that trained models realize this structure with , with confined to a narrow band across four model families and an order of magnitude of scale (§ 3), is therefore an empirical property of trained models rather than a consequence of the training objective alone. It is this tightness and stability, rather than the identity itself, that requires explanation. Second, we measure the structure directly in logit space, before any token is sampled and independently of any decoding rule, which differs from the post-hoc statistics of generated text studied in prior work on statistical laws of language (Appendix § 5).
An equivalent distance-based parameterization. We provide an equivalent representation not necessarily a real-world representation, but in terms of a context-dependent mismatch, or distance, between the context and a candidate token, rather than directly in terms of . The two descriptions are equivalent by construction: for any , writing
simply defines
Under this definition, the exponential-volume condition
is exactly the statement that is approximately Zipfian in rank. We consider the resulting rank-distance relation as an alternative interpretation of the observed log-linear law and to express temperature rescaling and tail counts (Sections G.2 and G.3) in distance language as well. It is not intended as an additional result beyond the equivalence above. Neither the exponential-volume condition nor the linear-penalty form below is independently verified in our data.
Theorem 1 (rank-distance form of the log-linear law). Fix a context , and let denote the -th smallest value of . Suppose that for ranks ,
and that the logits are uniformly close to a linear penalty in distance:
.*
Then, for ,
where
Proof. Define the ideal score
Because , the ordering of is the reverse of the ordering of . Therefore, the -th largest ideal score is
Using the assumed rank-distance bound,
With and , this becomes
It remains to compare the order statistics of and . The uniform perturbation assumption gives
Order statistics are 1-Lipschitz under the sup norm: if , then for every rank . Hence,
Combining the two inequalities yields
The rank–distance bound in Theorem 1 is the exponential-volume condition expressed in rank form. Define
If, over the relevant head range,
then solving gives
which is the hypothesis of Theorem 1. The next paragraph establishes this implication directly. Under this parameterization, the fitted slope decomposes as
which is the same Zipf exponent already defined in the main text, expressed in terms of a penalty and a growth rate rather than as two separately measurable quantities. Intuitively, can be viewed as how well a candidate token fits what the preceding context calls for. Within this parameterization, a larger corresponds to a more selective context, concentrating probability on a smaller set of plausible continuations and naturally yielding a sharper candidate set under nucleus truncation.
Checking the relabeling. Let and . Assume that over the relevant distance range,
For
we have
so and therefore . Similarly, for any
we have
so and hence . Letting gives . Combining the two bounds,
Tail-count form of the rank law
The preceding section concerns the possible origin of the empirical law. Here we characterize its consequences for a fixed logit vector, independently of its origin. Define the empirical upper-tail count
For distinct top- logits, .
Proposition 1 (tail-count characterization). Assume the top- logits are distinct and
Then, at ,
Conversely, if for all ,
then
Proof. For distinct top- logits, . If , then
Substituting gives
Conversely, if , then using gives
Multiplying by and rearranging gives
Thus, on the vocabulary head, the log-linear law is equivalent to an approximately exponential empirical upper tail:
This statement is deterministic for each context and does not require treating the logits as independent random variables.
Softmax consequence: a conditional Zipf law
The log-linear law has a direct consequence for the model’s predictive distribution. Let
be the full softmax probability of the token at rank . Since the empirical law is fitted over the top logits, define the top- probability mass
and the conditional distribution within the vocabulary head
Proposition 2 (conditional Zipf law). Suppose
Let
Then
Equivalently,
:::`
Proof. For each ,
Since ,
Summing over gives
Dividing the pointwise bounds by the denominator bounds yields
The bound for follows from .
Therefore, the log-linear logit law implies an approximate Zipf distribution for the model’s context-dependent next-token probabilities, restricted to the vocabulary head. This differs from corpus-level Zipf laws: here the distribution is produced by the model before sampling and varies with the context.
Temperature scaling follows directly. At temperature ,
Thus, in the exact case, temperature rescales the exponent as
Lower temperatures sharpen the head distribution, while higher temperatures flatten it.
Normalized spectrum collapse
Figure 1(b) shows this collapse, and § 3 describes it empirically; here we state it formally. The collapse is a direct algebraic consequence of -scoring an affine function of : any two exactly log-linear spectra collapse onto the same normalized curve regardless of their and . Thus, the collapse itself provides no evidence for cross-context universality beyond the quality of the affine fit in each context. The empirical claim is instead that individual contexts are well described by that affine form with a stable slope (§ 3). The stability result below quantifies how far the normalized collapse can deviate from its idealized form when the log-linear fit is approximate.
Proposition 3 (normalized spectrum collapse). If for , then the standardized spectrum satisfies
where , and , are the mean and standard deviation of , independent of and .
Proof. Let . If
then
Therefore
Also,
Since , . Hence
Stability of the normalized collapse In real contexts, the log-linear law is only approximate, so we consider the effect of residual fit error on the normalized spectrum. Let
and define the empirical norm
Let
so . Centering removes and the mean residual. With
the centered spectrum is
If
then by the reverse triangle inequality,
Using
with and gives
If for all , then , so whenever ,
References
- [1]David H. Ackley, Geoffrey E. Hinton, and Terrence J. Sejnowski. A learning algorithm for Boltzmann machines. Cognitive Science, 9(1):147–169, 1985.
- [2]Sourya Basu, Govardana Sachitanandam Ramachandran, Nitish Shirish Keskar, and Lav R. Varshney. Mirostat: A neural text decoding algorithm that directly controls perplexity. In International Conference on Learning Representations, 2021.
- [3]Stella Biderman, Hailey Schoelkopf, Quentin Anthony, Herbie Bradley, Kyle O’Brien, Eric Hallahan, Mohammad Afia Khan, Shivanshu Purohit, USVSN Sai Prashanth, Edward Raff, Aviya Skowron, Lintang Sutawika, and Oskar van der Wal. Pythia: A suite for analyzing large language models across training and scaling. In Proceedings of the 40th International Conference on Machine Learning, volume 202, pages 2397–2430. PMLR, 2023.arxiv.org/abs/2304.01373
- [4]David Demeter, Gregory Kimmel, and Doug Downey. Stolen probability: A structural weakness of neural language models. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 2191–2197, 2020.arxiv.org/abs/2005.02433
- [5]Kawin Ethayarajh. How contextual are contextualized word representations? Comparing the geometry of BERT, ELMo, and GPT-2 embeddings. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 55–65, 2019.arxiv.org/abs/1909.00512
- [6]Jun Gao, Di He, Xu Tan, Tao Qin, Liwei Wang, and Tie-Yan Liu. Representation degeneration problem in training natural language generation models. In International Conference on Learning Representations, 2019.arxiv.org/abs/1907.12009
- [7]Llama Team, AI @ Meta. The Llama 3 herd of models. arXiv preprint arXiv:2407.21783, 2024.
- [8]Benoit Mandelbrot. An informational theory of the statistical structure of language. In Willis Jackson, editor, Communication Theory, pages 486–502. Butterworths, 1953.
- [9]Clara Meister and Ryan Cotterell. Language model evaluation beyond perplexity. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 5328–5339, 2021.
- [10]Steven T. Piantadosi. Zipf’s word frequency law in natural language: A critical review and future directions. Psychonomic Bulletin & Review, 21(5):1112–1130, 2014.DOI
- [12]Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. OpenAI blog, 2019.
- [13]Shuntaro Takahashi and Kumiko Tanaka-Ishii. Evaluating computational language models with scaling properties of natural language. Computational Linguistics, 45(3):481–513, 2019.arxiv.org/abs/1906.09379
- [14]Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, volume 30, 2017.arxiv.org/abs/1706.03762
- [15]Zhiliang Yang, Zihang Dai, Ruslan Salakhutdinov, and William W. Cohen. Breaking the softmax bottleneck: A high-rank RNN language model. In International Conference on Learning Representations, 2018.arxiv.org/abs/1711.03953
- [16]George Kingsley Zipf. Human Behavior and the Principle of Least Effort. Addison-Wesley, 1949.

