Abstract
Hubness is a phenomenon in high-dimensional data where a small number of points (hubs) appear as nearest neighbors to an unexpectedly large portion of the dataset, biasing k-nearest neighbor (kNN) classification. While traditionally attributed to the "curse of dimensionality" and addressed via global centering, recent research reveals that large sample sizes also induce hubness that global methods fail to mitigate. This paper introduces Localized Centering (LCENT), a method that rescales similarity by accounting for local neighborhood structures. LCENT effectively reduces hubness in both high-dimensional and large-sample regimes, significantly improving classification accuracy across synthetic and real-world datasets.
Introduction: The "Popular Kid" Problem
The k-nearest neighbor (kNN) algorithm is a staple of machine learning, yet it suffers from a systemic bias known as hubness. In many datasets, a few "popular" points emerge as neighbors to almost everyone else, regardless of actual semantic similarity. This biases the classifier toward the labels of these hubs.
Historically, hubness was considered strictly a high-dimensional problem. The standard solution, global centering, involves shifting the dataset so the global centroid is at the origin. This works because, in high dimensions, hubs tend to be points close to the global center. However, as datasets grow in size ($n$), a new form of hubness emerges that is independent of dimensionality ($d$).
The Curse of Large Samples
This research identifies that "large-sample hubs" are not necessarily near the global center. Instead, they are points that are highly similar to their own local neighborhoods. Consequently, global centering is ineffective at reducing hubness when the sample size is large relative to the dimensionality.
Localized Centering (LCENT)
To address the limitations of global methods, the authors propose Localized Centering (LCENT). Rather than subtracting the global affinity (similarity to the entire dataset), LCENT subtracts the local affinity.
- Local Centroid: For every point $x$, we calculate the mean of its $\kappa$ nearest neighbors, $c_\kappa(x)$.
- Similarity Formula: The similarity between a sample $x$ and a query $q$ is adjusted as: $$Sim^{LCENT}(x; q) = \langle x, q \rangle - \gamma \langle x, c_\kappa(x) \rangle$$ where $\gamma$ is a parameter controlling the strength of the penalty.
By penalizing points that are "locally popular," LCENT dampens the similarity scores of potential hubs. Notably, LCENT is a generalization of global centering; if $\kappa$ is set to the total number of samples, the two methods become equivalent.
Experimental Evaluation and Results
The researchers tested LCENT on synthetic LogNormal data and four real-world text datasets: WebKB, Reuters-52, TDT2-30, and 20Newsgroups.
Hubness Reduction
LCENT demonstrated a dramatic ability to reduce the skewness of the neighbor distribution ($N_k$). In the Reuters-52 dataset, skewness dropped from 14.82 to 1.76. Heatmap analysis confirms that LCENT maintains low skewness across the entire spectrum of sample sizes and dimensions, whereas global centering fails in the high-sample/low-dimension regime.
Classification Accuracy
LCENT consistently outperformed raw cosine similarity and global centering. In the 20Newsgroups dataset, LCENT improved kNN accuracy from 85.9% to 87.7%. When compared against other hub-reduction techniques like Mutual Proximity (MP) and Local Scaling (LS), LCENT emerged as a top-tier performer, often achieving the highest accuracy.
Conclusion
Localized Centering addresses a critical gap in our understanding of hubness. By recognizing that large datasets create local density gradients, LCENT provides a robust mechanism for improving kNN performance in the era of big data. While it introduces some computational overhead for initial neighborhood calculation, the gains in accuracy and hubness reduction make it a powerful tool for large-scale classification tasks.
Summary updated