What is hubness in high-dimensional nearest-neighbour search, and why does it hurt KNN?

Quick Overview

Asks what hubness is in high-dimensional nearest-neighbor search and why it degrades KNN. It tests how hubness is measured, why it emerges as dimension grows, how it affects classification and retrieval, and which fixes apply.

What is hubness in high-dimensional nearest-neighbour search, and why does it hurt KNN?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: hard

Interview Round: Other

What is hubness in high-dimensional nearest-neighbour search, and why does it hurt KNN? ```hint Count appearances For each point, count how many other points list it among their k nearest neighbors. Think about what the distribution of that count looks like as the dimension grows. ``` ```hint Look at the distances Look at how pairwise distances behave as the dimension grows, and what that does to small differences between points. ``` ### What a Strong Answer Covers - A definition of hubs and anti-hubs, and how the k-occurrence count measures them - The mechanism that makes some points hubs as dimension grows - The concrete ways it degrades KNN classification and nearest-neighbor retrieval - Mitigations that change the data or the similarity measure, and when each applies ### Follow-up Questions - Why does centering the data reduce hubness under cosine similarity? - How does CSLS change nearest-neighbor retrieval when aligning word embeddings across languages? - Does hubness depend on the number of features or on the intrinsic dimensionality of the data? - How would you detect hubness in a production vector search system?

Overview: Asks what hubness is in high-dimensional nearest-neighbor search and why it degrades KNN. It tests how hubness is measured, why it emerges as dimension grows, how it affects classification and retrieval, and which fixes apply.

General logo
General
Nov 25, 2026
hardMachine Learning EngineerOtherMachine Learning
0
0

What is hubness in high-dimensional nearest-neighbour search, and why does it hurt KNN?

What a Strong Answer Covers Guidance

  • A definition of hubs and anti-hubs, and how the k-occurrence count measures them
  • The mechanism that makes some points hubs as dimension grows
  • The concrete ways it degrades KNN classification and nearest-neighbor retrieval
  • Mitigations that change the data or the similarity measure, and when each applies

Follow-up Questions Guidance

  • Why does centering the data reduce hubness under cosine similarity?
  • How does CSLS change nearest-neighbor retrieval when aligning word embeddings across languages?
  • Does hubness depend on the number of features or on the intrinsic dimensionality of the data?
  • How would you detect hubness in a production vector search system?