KNN and the Curse of Dimensionality
Q: When does nearest-neighbour search break down?
KNN predicts from the k closest training points (no training, expensive inference). In high dimensions, distances concentrate — all points become almost equally far apart, and the data needed to cover the space grows exponentially. Remedies: dimensionality reduction, learned embeddings, feature selection. At scale, use approximate nearest neighbour indexes (HNSW, IVF-PQ, ScaNN, FAISS).