Manuscript Offprint
arXiv:2608.29702A Hub of Short Rows Inflates Intrinsic Dimension Estimation of Token Embeddings
Abstract
A token-embedding table holds a hub of short rows near its origin, and we show that this cluster biases what nearest-neighbor intrinsic-dimension (ID) estimators report. Because of the concentration of measure, a token is closer to the central cluster than to any other token, so its first two neighbors are both hub rows at nearly the same distance. As a result, the ID estimators such as TwoNN return a dimension far above the real ID. Measured one token at a time, dimension is a heavy-tailed distribution. Measured on the full vocabulary, it grows with the model's parameter count. However, when we remove the hub, the heavy tail disappears and the measured dimension collapses to a narrow range for eleven models, from GPT-2 to models such as K3 and GLM-4.7. The hub acts as a switch: a few hundred rows are enough to fully inflate the estimate. We reproduced an experiment stating that the intrinsic dimension (ID) of Pythia's token-embedding table grows with the parameter count, from 27 to 122 between 160M and 12B parameters. We show that this result disappears when the hub is removed: the table then reads 10 to 17 at every size. The hub contains a subset of the population that under-trained-token detectors flag, but on Pythia the hub that we detected and removed as a whole was updated during training: what seem to characterize these rows is simply their length, not an absence of updates. Finally, we show that normalizing the rows instead of removing them gives the same lower reading.
Keywords: intrinsic dimension, token embeddings, hubness, under-trained tokens, manifold hypothesis, TwoNN
1. Introduction
The intrinsic dimension of a token-embedding table depends on how it is measured. One token at a time, it is heavy-tailed, with a median near 389 on GPT-2, which Robinson et al. (2025) interpret as a violation of the manifold hypothesis. Taken on the whole vocabulary, it is more modest but grows with the parameter count, from 25 on Pythia-410M to 122 on Pythia-12B (Kataiwa et al., 2025). These numbers are used for instance to assess how redundant a representation is (Kataiwa et al., 2025), how large a subspace is worth training (Aghajanyan et al., 2021), and how models compare (Valeriani et al., 2023; Razzhigaev et al., 2024).
In this paper, we identify a population of tokens that connects this local and global readings. When this hub of tokens is removed, the heavy tail disappears and the intrinsic dimension becomes flat with the parameter count.
This population are rows with short norms, near the origin of the table. We call it a hub, the term of Radovanović et al. (2010) for the few points that enter the nearest-neighbor lists of many others. Across eleven models, from GPT-2 to K3 and GLM-4.7, we show that removing this set of tokens lowers the full-vocabulary estimate by up to 90%, while control
© 2026 A. Quemy.
trims of the same size raise it. Conversely, adding back a few of the removed rows restores the whole effect. In addition, the tail of the ID distribution observed in Robinson et al. (2025) mechanically disappears when the hub is removed.
On Pythia, we reproduce the published values of Kataiwa et al. (2025), ID of 27 to 122 from 160M to 12B, and the trim brings the ID estimate between 10 and 17. What the estimator read was the depth of the norm tail, which deepens with parameter count.
Finally, we found that normalizing every row to unit length agrees with the hub removal on nine tables. The argument is geometric: the normalization means using a cosine distance instead of the Euclidean distance for the ID estimators, which removes the hub's effect on the neighbor ratios.
Dimension as a local, per-token quantity. Local intrinsic dimensionality (Houle, 2017; Amsaleg et al., 2015) and Hidalgo (Allegra et al., 2020) attach a dimension to each point or region. Closest to our work, Robinson et al. (2025) estimate a dimension at every token of GPT-2's table from how the number of neighbors grows with the radius. They report a per-token dimension at small radius that is heterogeneous and heavy-tailed (median 389, interquartile 2 to 531). We discuss this result in Section 6.
Token-table geometry. Token embeddings are known to be anisotropic, i.e., a few directions carry most of the variance between tokens (Mu and Viswanath, 2018; Ethayarajh, 2019; Timkey and van Schijndel, 2021; Rudman et al., 2022). The same concentration persists in the text embeddings of current models, which collapse toward an average token. Wu et al. (2026) trace it to the edges of the unembedding matrix's spectrum, where the most frequent tokens are located. The intrinsic dimension of a table has been measured with a Levina-Bickel estimator and found to grow from 25 on Pythia-410M to 122 on Pythia-12B (Kataiwa et al., 2025). We repeat that protocol before and after removing the hub. Many of these tokens are already known to carry a distinct geometry of short norms (Land and Bartolo, 2024; Rumbelow and Watkins, 2023), itself a face of the frequency-driven degeneration of the embedding space (Gao et al., 2019), though, as far as we know, their link to the table's measured dimension has not been made before.

Figure 1: Per-cell dimension before the trim (violins, medians as blue bars), the median cell after the trim (orange bars), full-vocabulary TwoNN before (filled squares) and after the trim (open squares), and TwoNN on random subsets of one cell's size (grey, median and IQR).
3. Method and sources of dimension inflation
Every geometric quantity in this paper is computed from the input embedding matrix . The unembedding matrix is left for future work. This section defines how we measure the dimension of a table and which rows the trim removes.
The estimators. TwoNN (Facco et al., 2017) forms, for each point, the ratio of its second- to first-neighbor distances. On a locally uniform sample from a single manifold of dimension the ratios follow a Pareto law. Therefore, the maximum-likelihood estimation is . We exclude ratios with (tied or zero distances, as with duplicate rows). However, unlike in Facco et al. (2017), we do not discard the largest ratios, which lower , so our convention reports the smaller inflation.
Additionally, following the protocol of Kataiwa et al. (2025), we report the Levina-Bickel estimate with (Levina and Bickel, 2004), the per-token value aggregated by its harmonic mean. We refer to it as MLE-5.
Why a hub inflates them. Ratios near push up. Let be a hub, a set of points of norm at most , inside a cloud of points of norm near with directions spread over dimensions. By concentration of measure two points of the cloud lie about apart, while a point of lies within about of every point of the cloud. The nearest points of any in the cloud are therefore in , at nearly the same distance, so at is close to 1.
A few hub points are enough to inflate the estimate, since each is the nearest pair of thousands of others. Worse, the effect is strongest where the estimate rests on few neighbors: exactly the case of the ID estimators.
Measuring the dimension of a table. The full-vocabulary reading takes the exact nearest neighbors of every row, giving TwoNN and MLE-5. In addition to the full-vocabulary reading, we report a per-region reading that splits the table into cells and reads
Table 1: Thirteen tables before any trim: TwoNN, MLE-5, and the middle half of the random-projection cells.
| Model | Params | TwoNN | MLE-5 | Cells (IQR) | |
|---|---|---|---|---|---|
| GPT-2 | 0.12B | 768 | 11 | 15 | 11–12 |
| Pythia-160M | 0.16B | 768 | 14 | 27 | 13–16 |
| Pythia-410M | 0.41B | 1024 | 14 | 25 | 12–15 |
| Pythia-1.4B | 1.4B | 2048 | 15 | 32 | 14–17 |
| Pythia-2.8B | 2.8B | 2560 | 16 | 34 | 15–18 |
| Pythia-6.9B | 6.9B | 4096 | 30 | 78 | 28–33 |
| Pythia-12B | 12B | 5120 | 46 | 122 | 41–50 |
| Qwen2.5-0.5B | 0.49B | 896 | 16 | 20 | 15–18 |
| Gemma-4 | 33B | 5376 | 10 | 13 | 9.8–11 |
| K3 | 2.8T | 7168 | 39 | 63 | 36–45 |
| DeepSeek-V4-Pro | 1.6T | 7168 | 15 | 25 | 14–17 |
| Qwen3.8-27B | 28B | 5120 | 294 | 754 | 241–388 |
| GLM-4.7 | 358B | 5120 | 40 | 71 | 36–47 |
each cell separately. We splits the table with a random-projection tree (Dasgupta and Freund, 2008) into cells of at most 800 rows and estimates the dimension per cell. We use cells rather than single tokens because a single token gives one ratio, and one tie or one pair of near-equal neighbors is enough to send that ratio anywhere. A cell is made of hundreds of ratios, so no single token can drastically move its estimate. We tested this method on synthetic mixtures and it reads properly a planted dimension up to and increasingly low above it (Appendix D).
Which rows the trim removes. Tokens are ranked by the norm of their embedding row, and the trim removes the top decile (or the top for in the sweep). Then, we re-runs the ID estimators with the removed rows no longer available as neighbors.
4. Full-vocabulary and per-region readings
Table 1 gives the readings before removing rows for thirteen models, including two larger Pythia tables added to reproduce Kataiwa et al. (2025).
On ten of the eleven the full-vocabulary estimated ID is small: 10 to 40 for TwoNN and 13 to 71 for MLE-5. Qwen3.8-27B is an exception, at 294 and 754, that we explain by the fact that it has the deepest short-norm tail of all models. As we will see in Section 5, the trim brings it to 42 and 74. For Pythia family, MLE-5 climbs with the parameter count: 27 to 122, from 160M to 12B, reproducing the values of Kataiwa et al. (2025) on all six models. Similarly, TwoNN climbs from 14 to 46 with the parameter counts.
Figure 1 shows for each model, the per-cell readings before any trim (violins), the full-vocabulary reading (squares), and TwoNN on random subsets of one cell's size (grey dots). On the inflated tables the whole violin sits high: the inflation is everywhere in the table, not in one region that could be isolated. After the trim, the cells's ID estimation land on the trimmed full-table value for every model, to within about 10% (open squares and orange bars). In other words, once the hub is gone, the table is uniform: every region reads the same dimension.
Table 2: The shortest-norm trim (0→10%) against a random 10%, the untrimmed normalized reading, and the purity of the removed decile.
| Model | TwoNN 0→10% | MLE-5 0→10% | Normalized | Random 0→10% | Purity |
|---|---|---|---|---|---|
| GPT-2 | 11→11 | 15→13 | 12 | 11→12 | 0.80 |
| Pythia-160M | 14→8.8 | 27→10 | 11 | 14→15 | 0.94 |
| Pythia-410M | 14→8.4 | 25→9.5 | 9.8 | 14→14 | 0.97 |
| Pythia-1.4B | 15→8.8 | 32→9.9 | 10 | 15→16 | 0.98 |
| Pythia-2.8B | 16→9.3 | 34→10 | 10 | 16→17 | 0.98 |
| Qwen2.5-0.5B | 16→14 | 20→15 | 15 | 16→17 | 0.90 |
| Gemma-4 | 10→11 | 13→13 | 13 | 10→11 | 0.28 |
| K3 | 39→19 | 63→20 | 17 | 39→41 | 0.99 |
| DeepSeek-V4-Pro | 15→12 | 25→14 | 13 | 15→16 | 0.99 |
| Qwen3.8-27B | 294→42 | 754→74 | 34 | 294→320 | 1.00 |
| GLM-4.7 | 40→17 | 71→18 | 90 | 40→42 | 1.00 |
5. A hub of short rows accounts for the inflation
We removed the shortest-norm decile of each table and re-measured every reading. We added three controls that each remove 10%: a random 10% (median of three seeds), the longest-norm decile, and the farthest-from-centroid decile. We report in Table 2 the results with the median of the three seeds for the random control (every control arm in Table 3). In addition, we report the purity of the removed decile, i.e., the fraction of a removed token's ten nearest neighbors that are also removed. We call a collapse a trim that removes at least 40% of MLE-5.
Eight collapses. On eight of the eleven tables the trim removes 41–90% of the MLE-5 reading and 22–86% of the TwoNN reading, while the controls move the readings the other way: removing a random 10% changes MLE-5 by +6 to +10% and the longest-norm decile by -4 to +39% (Table 3). By removing any 10% the table is sparser, and as one would expect, the estimate drifts up. The opposite happens for the trim of the shortest decile: readings collapse, precisely because it is the hub that inflates them in the first place. The three tables that move less, and the most inflated one, are examined in Appendix B.
We reproduce exactly the published values of Kataiwa et al. (2025) for Pythia, including the rise with the parameter count. However, after the trim, the readings are flat with the parameter count. The rise was a statistical artifact. Our interpretation is that before the trim, the hub inflates the readings due to the geometric effect described in Section 3, but once the hub is gone, a token's neighbors are other trained tokens, and their spacing reflects how training arranged the vocabulary: a characteristic of the model's architecture and the language itself, not the training. The trained rows occupy a low-dimensional set, and that set is embedded in a wider space at 12B than at 160M without becoming wider itself. The extra width is unused, which is the redundancy mentioned in Kataiwa et al. (2025): the redundancy grows with the parameter count, the dimension does not.
The effect is a switch. A few hundred rows are enough to fully inflate the estimate. Removing only the shortest 1% of a table already collapses the reading as shown in Table 4). Furthermore, returning a random quarter of the removed decile restores the untrimmed value in full (Pythia-160M 10 → 26, GLM-4.7 18 → 78, with three subsets giving the same

Figure 2: Pythia across parameter counts: MLE-5 before and after the trim, and the depth of the norm tail.
results within 0.5 (Table 5, Figure 4 in Appendix D). Returning the padding rows alone does the same (Table 8), indicating an artifact of the tokenizer itself.
The norm tail predicts the inflation. We define the norm tail as the 1st percentile of the norms divided by the median norm. The tail deepens at 6.9B and 12B, exactly where the published values from Kataiwa et al. (2025) jump (Figure 2, Table 10). The norms predict the inflation: the further a checkpoint's shortest rows sit below its median norm, the higher a ID estimator will read. Gemma-4 has no short tail and the ID estimation is not inflated, Qwen3.8-27B has the deepest and reads highest. This can possibly be used as a diagnostic during training: a deep tail flags the tokens that never received gradients, and it warns that any neighbor-based reading of that table must be trimmed or normalized before it can be compared to anything. We let this for future work.
Equalizing the norms removes the hub. Because the distortion comes from short rows near the origin, we scaled every row to unit length instead of deleting them. In other words, we replaced the Euclidean distance with the cosine distance. Not only it is standard in the representation-learning literature precisely because of the concentration of measure in high dimensions, but it is also the simplest of the hubness reductions surveyed by Feldbauer and Flexer (2019). As a result, Pythia tables read between 10, and 17 for MLE-5 for all parameter counts, when the raw tables read 27 to 122 (Table 2, Table 9). The dimension estimations are not inflated anymore despite the fact we did not remove any rows.
The normalization works as well on large models: normalized, K3 reads 17 (20 trimmed), DeepSeek-V4-Pro 13 (14 trimmed), and Qwen3.8-27B 34 (74 trimmed). On Qwen3.8-27B no trim reaches the normalized reading (between 754 and 62 at 0 to 20% against 34): on the table with the deepest tail, normalization removes more than deletion does, and why is an open question. GLM-4.7 is the one exception but the explanation is simple: the model has 485 near-zero rows and they all share one direction, so on the unit sphere they become one point that supplies all five neighbors of the tokens near it, which mechanically lowers the ID estimate.

Figure 3: Per-token dimension on GPT-2 before and after the trim. Left: each of 2,000 kept tokens against itself, full table as background (x) and shortest decile removed (y). Right: the distribution of all tokens (log axis). The dashed outline is the deletion bound, the lowest the distribution could sit if the trim had only deleted the highest readers.
6. The per-token tail and the under-trained tokens are the hub
The per-token tail is the hub. Robinson et al. (2025) measure a dimension at every token of GPT-2, find a heavy tail (median 389), and read it as a violation of the manifold hypothesis. We first reproduce a tail using MLE-20 per-token: the median is 52, and 22% of tokens read above 300. Removing the shortest-norm decile ends it: the median falls to 24 and no token stays above 300 (Figure 3, right). The comparison is not circular, because the trim sees only each row's norm. The removed rows themselves have a low ID (median 14), so the hub does not carry the tail, it induces it in the others, and the tokens it inflates most are the longest rows (54% of the longest quarter's ID is above 300, against 4% of the shortest), as the geometry predicts. The tail does not disappear because high dimensional tokens were deleted. It is the mechanism seen one token at a time: 93.5% of the tokens the trim never touches have then a lower ID estimate once the hub is gone, and the higher a token read before, the further its ID falls (Spearman 0.88, Figure 3, left). Normalizing the rows instead of removing any gives the same per-token median (24).
On top of our approach, we then ran their released test on 4,000 tokens before and after the trim. At its small-radius window the median is before the trim and 41 after, and the share of tokens above 300 falls from 82% to none: their heavy tail is the hub. At a large-radius window the reading barely moves (46 to 57), because far neighbors were never hub rows. Note that their formal rejections of the manifold hypothesis do not move either: 3 tokens out of 4,000 are marked as singularities before, 2 after. So at small radius their instrument measures the hub, at large radius it measures the table, and the tail disappears with the hub while the few genuinely rejected tokens remain.
An external detector. Magikarp (Land and Bartolo, 2024) ranks tokens by a per-architecture indicator and verifies its candidates by prompting the model. On GPT-2 its
- Our 507 against their 389 is the sample and the window: tokens drawn from every row read 490, and we used their code's default window rather than the paper's.
indicator is the cosine distance to the mean row, not the norm, so we can fairly compare if the under-trained tokens that they detect are the hub. The lower deciles of their ranking share only 6% with our decile. However, we checked the 97 tokens that they verified by prompting, and 50 of them fall in our decile.
On Pythia-6.9B, its indicator is also the embedding norm itself, therefore, so agreement there proves nothing, but all 36 verified tokens fall in our decile. So the verified under-trained tokens seem to concentrate in the hub.
Are they under-trained? The hub is the population the detectors select, and its extreme members were never trained: the padding rows, GLM-4.7's 128 zero rows, and the verified tokens above. For the decile as a whole the evidence is weaker. Against Pythia's initial checkpoint, the removed rows of Pythia-160M and 410M have moved as far as every other row (cosine 0.02 to where they started), so they were updated during training, and what distinguishes them is that they ended short. On Pythia at least, beyond the extreme members, the hub means less trained rather than untrained. Conversely, short rows are notrare rows in general: norm and corpus count correlate positively on seven tables and negatively on GPT-2 and DeepSeek-V4-Pro (-0.46, -0.29), where the shortest rows are frequent tokens (Table 10).
7. Discussion and conclusion
A token-embedding table holds a hub of short rows near its origin, and in a high-dimensional table that hub is the nearest pair of most trained tokens at nearly equal distances, so nearest-neighbor estimators read a dimension the table does not have. The inflation is an artifact of Euclidean neighbor-ratio estimators on a table whose rows differ in length, not a property of the tables, and reading the table under cosine distance removes it everywhere. What remains is close to one number: the regions of a table read within about 10% of each other, and the full-vocabulary estimate is their harmonic mean.
We reproduced the values of Kataiwa et al. (2025), but the growth with the parameter count did not survive the hub removal: it tracks the depth of the norm tail, and after the trim the six models read 9.5 to 17. For Robinson et al. (2025), the heavy tail comes from the hub as well: after the trim, the median falls from 507 to 41. Their test still rejects the manifold hypothesis on 3 tokens before the trim and 2 after, and we do not explain these tokens.
In practice, we recommend to report the estimate before and after removing the shortest decile, or on normalized rows: if the two disagree, the embedding has a hub. Checking the norm histogram is a cheap way to tell in advance if the raw estimate can be trusted.
Among the remaining open questions, we do not know why a table grows a tail. The three models with tied embeddings are the three without a tail, so our hypothesis is that tied weights update every row at every step, while an untied row is only updated when its token occurs. Also, we could not prove that the hub is under-trained: its extreme members were never trained, but on Pythia the removed rows moved as much as the others during training.
Future work will focus on the unembedding matrix, which we left aside; on following hub tokens through the residual stream to further characterize them, and on whether tied and untied models differ in ID estimation beyond the depth of their tails.
References
Armen Aghajanyan, Sonal Gupta, and Luke Zettlemoyer. Intrinsic dimensionality explains the effectiveness of language model fine-tuning. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics (ACL), 2021. arXiv:2012.13255.
Michele Allegra, Elena Facco, Francesco Denti, Alessandro Laio, and Antonietta Mira. Data segmentation based on the local intrinsic dimension. Scientific Reports, 10:16449, 2020.
Laurent Amsaleg, Oussama Chelly, Teddy Furon, Stéphane Girard, Michael E. Houle, Kenichi Kawarabayashi, and Michael Nett. Estimating local intrinsic dimensionality. In ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD), 2015.
Alessio Ansuini, Alessandro Laio, Jakob H. Macke, and Davide Zoccolan. Intrinsic dimension of data representations in deep neural networks. In Advances in Neural Information Processing Systems (NeurIPS), 2019.
Sanjoy Dasgupta and Yoav Freund. Random projection trees and low dimensional manifolds. In Proceedings of the 40th Annual ACM Symposium on Theory of Computing (STOC), pages 537–546, 2008.
Francesco Denti, Diego Doimo, Alessandro Laio, and Antonietta Mira. The generalized ratios intrinsic dimension estimator. Scientific Reports, 12:20005, 2022.
Georgiana Dinu, Angeliki Lazaridou, and Marco Baroni. Improving zero-shot learning by mitigating the hubness problem. In International Conference on Learning Representations, Workshop Track, 2015. arXiv:1412.6568.
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 (EMNLP-IJCNLP), 2019.
Elena Facco, Maria d'Errico, Alex Rodriguez, and Alessandro Laio. Estimating the intrinsic dimension of datasets by a minimal neighborhood information. Scientific Reports, 7:12140, 2017.
Roman Feldbauer and Arthur Flexer. A comprehensive empirical comparison of hubness reduction in high-dimensional spaces. Knowledge and Information Systems, 59:137–166, 2019.
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 (ICLR), 2019. arXiv:1907.12009.
Michael E. Houle. Local intrinsic dimensionality I: An extreme-value-theoretic foundation for similarity applications. In International Conference on Similarity Search and Applications (SISAP), 2017.
Takuya Kataiwa, Cho Hakaze, and Tetsushi Ohki. Measuring intrinsic dimension of token embeddings. arXiv preprint arXiv:2503.02142, 2025.
Sander Land and Max Bartolo. Fishing for magikarp: Automatically detecting under-trained tokens in large language models. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 11631–11646, 2024.
Elizaveta Levina and Peter J. Bickel. Maximum likelihood estimation of intrinsic dimension. In Advances in Neural Information Processing Systems (NeurIPS), 2004.
David J. C. MacKay and Zoubin Ghahramani. Comments on ‘maximum likelihood estimation of intrinsic dimension’ by E. Levina and P. Bickel. Unpublished note, http://www.inference.org.uk/mackay/dimension/, 2005.
Jiaqi Mu and Pramod Viswanath. All-but-the-top: Simple and effective postprocessing for word representations. In International Conference on Learning Representations (ICLR), 2018. arXiv:1702.01417.
Miloš Radovanović, Alexandros Nanopoulos, and Mirjana Ivanović. Hubs in space: Popular nearest neighbors in high-dimensional data. Journal of Machine Learning Research, 11:2487–2531, 2010.
Anton Razzhigaev, Matvey Mikhailchuk, Elizaveta Goncharova, Ivan Oseledets, Denis Dimitrov, and Andrey Kuznetsov. The shape of learning: Anisotropy and intrinsic dimensions in transformer-based models. In Findings of the Association for Computational Linguistics: EACL 2024, 2024. arXiv:2311.05928.
Michael Robinson, Sourya Dey, and Tony Chiang. Token embeddings violate the manifold hypothesis. In Advances in Neural Information Processing Systems (NeurIPS), 2025. arXiv:2504.01002.
William Rudman, Nate Gillman, Taylor Rayne, and Carsten Eickhoff. Isoscore: Measuring the uniformity of embedding space utilization. In Findings of the Association for Computational Linguistics: ACL 2022, pages 3325–3339, 2022.
Jessica Rumbelow and Matthew Watkins. SolidGoldMagikarp (plus, prompt generation). LessWrong / AI Alignment Forum, technical report, 2023.
Dominik Schnitzer, Arthur Flexer, Markus Schedl, and Gerhard Widmer. Local and global scaling reduce hubs in space. Journal of Machine Learning Research, 13:2871–2902, 2012.
William Timkey and Marten van Schijndel. All bark and no bite: Rogue dimensions in transformer language models obscure representational quality. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing (EMNLP), 2021.
Lucrezia Valeriani, Diego Doimo, Francesca Cuturello, Alessandro Laio, Alessio Ansuini, and Alberto Cazzaniga. The geometry of hidden representations of large transformer models. In Advances in Neural Information Processing Systems (NeurIPS), 2023.
Songhao Wu, Zhongxin Chen, Yuxuan Liu, Heng Cui, Cong Li, and Rui Yan. Your un-embedding matrix is secretly a feature lens for text embeddings. In Proceedings of the 32nd ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD), V.2, 2026. doi: 10.1145/3770855.3818204. arXiv:2606.07502.
Appendix A. Complete trim results
Table 3 reports every arm of the trim design for all eleven tables, on the full vocabulary. For each of the two readings, TwoNN and the Levina–Bickel estimate with neighbors aggregated by harmonic mean (MLE-5), the first column repeats the trim of Table 2 and the next three give the reading after removing a random 10% (median of three seeds), the longest-norm decile, and the farthest-from-centroid decile. In every trimmed arm the removed rows are excluded as neighbors and the estimate is taken over the remaining rows.
Table 8 tests the padding rows alone and the shortest decile with the padding rows left in, and Table 9 repeats the trim on row-normalized embeddings. Table 4 gives both readings after removing the shortest 1, 5, 10, and 20%, Table 5 the re-insertion sweep on the seven collapsing tables, returning a random quarter, half, and three quarters of the removed decile, and Table 6 the TwoNN reading on random subsamples of four tables, the sampling-density effect of Section 4.
Table 3: Every trim arm on the full vocabulary, for both readings. Random is the median of three seeds. Long removes the longest-norm decile. The farthest-from-centroid decile reads within one unit of Long on every table and is omitted.
| Model | TwoNN | MLE-5 | ||||
|---|---|---|---|---|---|---|
| Trim 0→10% | Random | Long | Trim 0→10% | Random | Long | |
| GPT-2 | 11→11 | 12 | 11 | 15→13 | 15 | 14 |
| Pythia-160M | 14→8.8 | 15 | 16 | 27→10 | 29 | 32 |
| Pythia-410M | 14→8.4 | 14 | 15 | 25→9.5 | 27 | 28 |
| Pythia-1.4B | 15→8.8 | 16 | 17 | 32→9.9 | 35 | 37 |
| Pythia-2.8B | 16→9.3 | 17 | 18 | 34→10 | 37 | 39 |
| Qwen2.5-0.5B | 16→14 | 17 | 16 | 20→15 | 20 | 19 |
| Gemma-4 | 10→11 | 11 | 10 | 13→13 | 13 | 13 |
| K3 | 39→19 | 41 | 45 | 63→20 | 67 | 88 |
| DeepSeek-V4-Pro | 15→12 | 16 | 15 | 25→14 | 27 | 24 |
| Qwen3.8-27B | 294→42 | 320 | 466 | 754→74 | 804 | 1004 |
| GLM-4.7 | 40→17 | 42 | 47 | 71→18 | 77 | 88 |
Appendix B. Case studies: the negative controls and the extreme table
The negative controls. Gemma-4 is clean: trimming changes nothing (12.6 → 12.8 for MLE-5), even though its 262k vocabulary is the largest in the survey, because its rows all have the same norm by construction. GPT-2 moves only mildly (14.7 → 12.8), and its shortest rows are frequent tokens rather than rare ones (Section 6). If the procedure
Table 4: Trim sweep on the full vocabulary: MLE-5 and, in parentheses, TwoNN after removing the shortest X%.
| Model | 0% | 1% | 5% | 10% | 20% |
|---|---|---|---|---|---|
| GPT-2 | 15 (11) | 15 (11) | 12 (11) | 13 (11) | 14 (11) |
| Pythia-160M | 27 (14) | 11 (9.1) | 11 (9.0) | 10 (8.8) | 10 (8.6) |
| Pythia-410M | 25 (14) | 9.9 (8.6) | 9.6 (8.5) | 9.5 (8.4) | 9.3 (8.3) |
| Pythia-1.4B | 32 (15) | 10 (9.0) | 10 (8.9) | 9.9 (8.8) | 9.7 (8.7) |
| Pythia-2.8B | 34 (16) | 11 (9.5) | 10 (9.3) | 10 (9.3) | 10 (9.2) |
| Qwen2.5-0.5B | 20 (16) | 20 (16) | 16 (14) | 15 (14) | 15 (14) |
| Gemma-4 | 13 (10) | 12 (10) | 12 (10) | 13 (11) | 13 (11) |
| K3 | 63 (39) | 28 (23) | 22 (20) | 20 (19) | 19 (18) |
| DeepSeek-V4-Pro | 25 (15) | 16 (13) | 15 (12) | 14 (12) | 15 (12) |
| Qwen3.8-27B | 754 (294) | 223 (123) | 90 (50) | 74 (42) | 62 (37) |
| GLM-4.7 | 71 (40) | 31 (24) | 20 (18) | 18 (17) | 17 (16) |
Table 5: The re-insertion sweep on the full vocabulary: MLE-5 and, in parentheses, TwoNN after returning a random fraction of the removed decile to the trimmed table.
| Model | 0% | 25% | 50% | 75% | 100% |
|---|---|---|---|---|---|
| Pythia-160M | 10 (8.8) | 26 (14) | 27 (14) | 27 (14) | 27 (14) |
| Pythia-410M | 9.5 (8.4) | 24 (13) | 24 (13) | 25 (13) | 25 (14) |
| Pythia-1.4B | 9.9 (8.8) | 31 (15) | 32 (15) | 32 (15) | 32 (15) |
| Pythia-2.8B | 10 (9.3) | 33 (16) | 34 (16) | 34 (16) | 34 (16) |
| K3 | 20 (19) | 64 (39) | 64 (39) | 63 (39) | 63 (39) |
| DeepSeek-V4-Pro | 14 (12) | 31 (17) | 28 (16) | 26 (16) | 25 (15) |
| GLM-4.7 | 18 (17) | 78 (40) | 75 (40) | 72 (40) | 71 (40) |
Table 6: TwoNN on random subsamples of the untrimmed table, median over five independent draws with the range in brackets, and on the full vocabulary.
| Model | 1k | 4k | 16k | 64k | Full |
|---|---|---|---|---|---|
| Pythia-160M | 161 [69–210] | 78 [69–94] | 28 [26–28] | – | 14 |
| K3 | 47 [20–134] | 172 [72–186] | 127 [123–135] | 58 [57–58] | 39 |
| DeepSeek-V4-Pro | 334 [48–410] | 148 [133–163] | 49 [48–52] | 20 [20–20] | 15 |
| GLM-4.7 | 339 [16–4,470] | 393 [310–428] | 161 [152–174] | 60 [58–61] | 40 |
manufactured collapses, these two would have collapsed too which is why we consider them as negative controls.
Qwen2.5-0.5B collapses partway. The trim takes the reading from 20 to 15 and normalization gives the same 15, a quarter of the reading against half or more on the collapsing tables. Like the other tied tables it has no row below half the median norm. A shallow tail, a small inflation.
Qwen3.8-27B. Before the trim this is the most inflated table in the survey (294 for TwoNN, 754 for MLE-5), and it has the deepest short tail, with 3,924 rows below half the
Table 7: Partition robustness on all eleven tables, exact neighbors: the untrimmed median cell over five random-projection seeds (cap 800, median and range), the trimmed median cell (seed 0), and the number of cells.
| Model | Seeds 0–4 | Trimmed | Cells |
|---|---|---|---|
| GPT-2 | 11 [11–12] | 11 | 64 |
| Pythia-160M | 14 [14–14] | 8.9 | 64 |
| Pythia-410M | 14 [13–14] | 8.5 | 64 |
| Pythia-1.4B | 15 [15–16] | 8.9 | 64 |
| Pythia-2.8B | 16 [16–17] | 9.2 | 64 |
| Qwen2.5-0.5B | 16 [16–17] | 14 | 256 |
| Gemma-4 | 10 [10–10] | 11 | 512 |
| K3 | 40 [40–40] | 19 | 256 |
| DeepSeek-V4-Pro | 15 [15–15] | 12 | 256 |
| Qwen3.8-27B | 303 [300–312] | 43 | 512 |
| GLM-4.7 | 41 [40–41] | 17 | 256 |
Table 8: The padding test, MLE-5 on the full vocabulary. Rows: the number of rows beyond the tokenizer's vocabulary plus zero-norm rows, then MLE-5 untrimmed, after removing only those rows, after removing the shortest decile but leaving those rows in, and after the full trim.
| Model | Rows | Untrimmed | Rows only | Trim, rows kept | Trim |
|---|---|---|---|---|---|
| Pythia-160M | 27 | 27 | 27 | 26 | 10 |
| Pythia-410M | 27 | 25 | 25 | 24 | 9.5 |
| Pythia-1.4B | 27 | 32 | 32 | 30 | 9.9 |
| Pythia-2.8B | 27 | 34 | 34 | 32 | 10 |
| Pythia-6.9B | 155 | 78 | 76 | 77 | 15 |
| Pythia-12B | 411 | 122 | 116 | 124 | 17 |
| Qwen2.5-0.5B | 271 | 20 | 20 | 20 | 15 |
| Qwen3.8-27B | 243 | 754 | 754 | 475 | 74 |
| GLM-4.7 | 315 | 71 | 71 | 84 | 18 |
median norm and 1,224 below a quarter. The removed decile supplies the nearest neighbor of 99.7% of the other rows. The trim removes 86 and 90% of the two readings, and the median cell falls from 300 to 43, so the regions collapse together with the pooled number. The sweep reads 754, 223, 90, and 74 at 0, 1, 5, and 10%, so most of the hub sits in the shortest few percent, and the decile is the setting of our instrument rather than the size of the hub. The vocabulary has 248k rows, includes multimodal tokens, and the proxy corpus sees a quarter of it, so the frequency numbers mean little on this table. The norms and the neighbors do not depend on the corpus.
Appendix C. Reproducibility
Table 10 lists the embedding tying, stored precision, and the depth of the norm tail of every checkpoint, and Table 11 its row counts. All tables are the input embedding matrix of the
Table 9: The metric control: the trim (0→10%) on raw rows, on row-normalized rows.
| Model | MLE-5 | TwoNN | ||
|---|---|---|---|---|
| Raw | Normalized | Raw | Normalized | |
| GPT-2 | 15→13 | 12→12 | 11→11 | 10→10 |
| Pythia-160M | 27→10 | 11→10 | 14→8.8 | 9.1→8.8 |
| Pythia-410M | 25→9.5 | 9.8→9.5 | 14→8.4 | 8.7→8.4 |
| Pythia-1.4B | 32→9.9 | 10→9.9 | 15→8.8 | 9.0→8.8 |
| Pythia-2.8B | 34→10 | 10→10 | 16→9.3 | 9.4→9.2 |
| Pythia-6.9B | 78→15 | 15→15 | 30→12 | 13→12 |
| Pythia-12B | 122→17 | 17→17 | 46→14 | 14→14 |
| Qwen2.5-0.5B | 20→15 | 15→14 | 16→14 | 14→13 |
| Gemma-4 | 13→13 | 13→13 | 10→11 | 10→11 |
| K3 | 63→20 | 17→16 | 39→19 | 17→16 |
| DeepSeek-V4-Pro | 25→14 | 13→13 | 15→12 | 11→11 |
| Qwen3.8-27B | 754→74 | 34→34 | 294→42 | 25→25 |
| GLM-4.7 | 71→18 | 90→17 | 40→17 | 15→16 |
released checkpoint, analyzed in float32. Nearest neighbors are exact, computed over the full vocabulary, and every trimmed arm removes its rows both as points and as neighbors. Rows whose first neighbor distance is zero are excluded from both readings (GLM-4.7's 128 zero-norm rows and 127 duplicate pairs, two duplicate pairs on Qwen2.5-0.5B). All seeds are fixed and no component is trained. Token frequencies are counted on WikiText-103, tokenized by each model's own tokenizer.
Table 10: Per-checkpoint protocol. Tied: whether input and output embeddings are shared. Dtype: the stored precision (all tables analyzed in float32). Tail: the norm of the shortest percentile of rows as a fraction of the median norm, and the number of rows below half the median. : the Spearman correlation between row norm and log WikiText-103 count. Cov.: the fraction of the vocabulary the corpus sees at least once.
| Model | Embeddings | Dtype | Multimodal | Tail | Cov. | ||
|---|---|---|---|---|---|---|---|
| GPT-2 | tied | fp32 | no | 75% | 0 | -0.46 | 88% |
| Pythia-160M | untied | float16 | no | 84% | 281 | +0.38 | 68% |
| Pythia-410M | untied | float16 | no | 86% | 278 | +0.44 | 68% |
| Pythia-1.4B | untied | float16 | no | 85% | 279 | +0.50 | 68% |
| Pythia-2.8B | untied | float16 | no | 84% | 278 | +0.50 | 68% |
| Pythia-6.9B | untied | float16 | no | 79% | 379 | +0.50 | 68% |
| Pythia-12B | untied | float16 | no | 46% | 634 | +0.51 | 68% |
| Qwen2.5-0.5B | tied | bfloat16 | no | 65% | 0 | -0.08 | 34% |
| Gemma-4 | tied | bfloat16 | yes | 100% | 0 | -0.01 | 33% |
| K3 | untied | bfloat16 | yes | 55% | 1208 | +0.50 | 34% |
| DeepSeek-V4-Pro | untied | bfloat16 | no | 51% | 1235 | -0.29 | 44% |
| Qwen3.8-27B | untied | fp32 | yes | 39% | 3924 | +0.39 | 25% |
| GLM-4.7 | untied | bfloat16 | no | 48% | 1599 | +0.15 | 36% |
Table 11: Checkpoint audit. and are the embedding matrix's rows and width. "Padded" counts rows beyond the tokenizer's vocabulary. "Zero", "tiny", and "dup." count zero-norm rows (norm below ), rows with norm below 1% of the table's median row norm (zero-norm rows are a subset), and exact-duplicate rows.
| Model | Checkpoint | Padded | Zero | Tiny | Dup. | ||
|---|---|---|---|---|---|---|---|
| GPT-2 | gpt2 | 50,257 | 768 | 0 | 0 | 0 | 0 |
| Pythia-160M | EleutherAI/pythia-160m | 50,304 | 768 | 27 | 0 | 238 | 0 |
| Pythia-410M | EleutherAI/pythia-410m | 50,304 | 1024 | 27 | 0 | 0 | 0 |
| Pythia-1.4B | EleutherAI/pythia-1.4b | 50,304 | 2048 | 27 | 0 | 0 | 0 |
| Pythia-2.8B | EleutherAI/pythia-2.8b | 50,304 | 2560 | 27 | 0 | 0 | 0 |
| Qwen2.5-0.5B | Qwen/Qwen2.5-0.5B | 151,936 | 896 | 271 | 0 | 0 | 2 |
| Gemma-4 | google/gemma-4-31B | 262,144 | 5376 | 0 | 0 | 0 | 0 |
| K3 | moonshotai/Kimi-K3 | 163,840 | 7168 | 0 | 0 | 21 | 0 |
| DeepSeek-V4-Pro | deepseek-ai/DeepSeek-V4-Pro | 129,280 | 7168 | 0 | 0 | 0 | 0 |
| Qwen3.8-27B | Qwen/Qwen3.8-27B | 248,320 | 5120 | 243 | 0 | 1 | 0 |
| GLM-4.7 | zai-org/GLM-4.7 | 151,552 | 5120 | 187 | 128 | 485 | 127 |
Appendix D. Supplementary figures
The calibration behind Figure 5: we planted a -dimensional bulk in 768 ambient dimensions, added a hub clump with the geometry measured in the real tables, and re-ran the instrument. With no hub it reads 5/14/28/45 at : accurate at low dimension and increasingly low above , the known compression of neighbor-ratio estimators, so cell readings above that are readings rather than dimensions. With up to 20% hub rows the cell median stays at the planted value.

Figure 4: The re-insertion sweep on Pythia-160M and GLM-4.7 (Table 5).

Figure 5: Synthetic calibration. Each panel plants a d-dimensional bulk in with a hub clump of the measured geometry at the given hub fraction. Dashed line: the planted dimension. The real-data counterpart is the re-insertion sweep of Figure 4.