Prediction Hubs are Context-Informed Frequent Tokens in LLMs

Hubness, the tendency for a few points to be among the nearest neighbours of a disproportionate number of other points, commonly arises when applying standard distance measures to high-dimensional data, often negatively impacting distance-based analysis.As autoregressive large language models (LLMs) operate on high-dimensional representations, we ask whether they are also affected by hubness.We first prove that the only large-scale representation comparison operation performed by LLMs, namely that between context and unembedding vectors to determine continuation probabilities, is not characterized by the concentration of distances phenomenon that typically causes the appearance of nuisance hubness.We then empirically show that this comparison still leads to a high degree of hubness, but the hubs in this case do not constitute a disturbance.They are rather the result of context-modulated frequent tokens often appearing in the pool of likely candidates for next token prediction.However, when other distances are used to compare LLM representations, we do not have the same theoretical guarantees, and, indeed, we see nuisance hubs appear.There are two main takeaways.First, hubness, while omnipresent in high-dimensional spaces, is not a negative property that needs to be mitigated when LLMs are being used for next token prediction.Second, when comparing representations from LLMs using Euclidean or cosine distance, there is a high risk of nuisance hubs and practitioners should use mitigation techniques if relevant.

Authors

Institutions

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.acl-long.1156
Primary Topic
Scientific Computing and Data Management
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Prediction Hubs are Context-Informed Frequent Tokens in LLMs

Brenda Nielsen, Marco Baroni, Iuri Macocco
Scientific Computing and Data Management
article

Prediction Hubs are Context-Informed Frequent Tokens in LLMs

Brenda Nielsen, Marco Baroni, Iuri Macocco
article en

Abstract

Hubness, the tendency for a few points to be among the nearest neighbours of a disproportionate number of other points, commonly arises when applying standard distance measures to high-dimensional data, often negatively impacting distance-based analysis.As autoregressive large language models (LLMs) operate on high-dimensional representations, we ask whether they are also affected by hubness.We first prove that the only large-scale representation comparison operation performed by LLMs, namely that between context and unembedding vectors to determine continuation probabilities, is not characterized by the concentration of distances phenomenon that typically causes the appearance of nuisance hubness.We then empirically show that this comparison still leads to a high degree of hubness, but the hubs in this case do not constitute a disturbance.They are rather the result of context-modulated frequent tokens often appearing in the pool of likely candidates for next token prediction.However, when other distances are used to compare LLM representations, we do not have the same theoretical guarantees, and, indeed, we see nuisance hubs appear.There are two main takeaways.First, hubness, while omnipresent in high-dimensional spaces, is not a negative property that needs to be mitigated when LLMs are being used for next token prediction.Second, when comparing representations from LLMs using Euclidean or cosine distance, there is a high risk of nuisance hubs and practitioners should use mitigation techniques if relevant.

Universitat Pompeu Fabra (ES)
Universitat Pompeu Fabra, European Commission, Danmarks Grundforskningsfond, Agència de Gestió d'Ajuts Universitaris i de Recerca
Openalex Percentile: Top 81%
Scientific Computing and Data Management
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Prediction Hubs are Context-Informed Frequent Tokens in LLMs — Brenda Nielsen, Marco Baroni, et al. · (2025) | TGRS Research Map | TGRS