cs.LGNov 22, 2026

Randomized Weighted Distance Nearest Neighbor Classification

Authors: Shayan Shafaei, Naeem Shahabi Sani, Chao Lan

Organizations: School of Computer Science, University of Oklahoma

Abstract

The nearest neighbor classifier is known to be memory-inefficient, and a popular solution is to compress its training data. Recently, a compression algorithm based on weighted distance nearest neighbor (WNN) was proposed, which has elegant theoretical properties and effective classification performance. However, its compression process is computationally expensive, for it performs a greedy search of the densest homogeneous balls in data space. In this paper, we propose a randomized variant RWNN. It simply randomizes the ball search process, and results in substantially reduced compression time (often 0.1%--1% of WNN's) and similar classification accuracy. RWNN also inherits several theoretical properties of WNN including consistency and a generalization bound. Experimental results on multiple datasets demonstrate its efficacy.

Figures & tables

Explore similar work

CardsList
  1. Random Voronoi Networks

    Nov 25, 2026Ray Verma, Pau Mateo-Bernardó, Daniel Mas Montserrat +3k-Nearest NeighborsRandom Feature Methods

  2. kk-Nearest Neighbors in Gromov--Wasserstein Space

    Jun 9, 2026Kaitlyn Hohmeier, Nicolas Fraiman, Caroline MoosmuellerGraph Classificationk-Nearest Neighbors

  3. Curvature-Aware Radius Shrinkage for Adaptive Nearest Neighbor Classification

    Aug 27, 2026Alexandre L. M. Levadak-Nearest Neighbors