Lune

NeurIPS2022Top-tier venue

Distributionally robust weighted k-nearest neighbors

Shixiang Zhu, Liyan Xie, Minghe Zhang, Rui Gao, Yao Xie

Abstract

Learning a robust classifier from a few samples remains a key challenge in machine learning. A major thrust of research has been focused on developing kk-nearest neighbor (kk-NN) based algorithms combined with metric learning that captures similarities between samples. When the samples are limited, robustness is especially crucial to ensure the generalization capability of the classifier. In this paper, we study a minimax distributionally robust formulation of weighted kk-nearest neighbors, which aims to find the optimal weighted kk-NN classifiers that hedge against feature uncertainties. We develop an algorithm, Dr.k-NN, that efficiently solves this functional optimization problem and features in assigning minimax optimal weights to training samples when performing classification. These weights are class-dependent, and are determined by the similarities of sample features under the least favorable scenarios. When the size of the uncertainty set is properly tuned, the robust classifier has a smaller Lipschitz norm than the vanilla kk-NN, and thus improves the generalization capability. We also couple our framework with neural-network-based feature embedding. We demonstrate the competitive performance of our algorithm compared to the state-of-the-art in the few-training-sample setting with various real-data experiments.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Outlier-Robust Wasserstein DROSloan Nietert, Ziv Goldfeld, Soroosh ShafieeNeurIPS 2023 · 26 citations
  2. Gen-DFL: Decision-Focused Generative Learning for Robust Decision MakingPrince Zizhuang Wang, Shuyi Chen, Jinhao Liang, Ferdinando Fioretto et al.ICLR 2026 · 20 citations
  3. Distributionally Robust Optimization with Bias and Variance ReductionRonak Mehta, Vincent Roulet, Krishna Pillutla, Zaïd HarchaouiICLR 2024 · 6 citations
  4. Riemannian Optimization on Relaxed Indicator Matrix ManifoldJinghui Yuan, Fangyuan Xie, Feiping Nie, Xuelong LiICLR 2026 · 6 citations
  5. Interpolation and Regularization for Causal LearningLeena Chennuru Vankadara, Luca Rendsburg, Ulrike von Luxburg, Debarghya GhoshdastidarNeurIPS 2022 · 2 citations

Related papers

  1. Adversarial Examples for k-Nearest Neighbor Classifiers Based on Higher-Order Voronoi DiagramsChawin Sitawarin, Evgenios M. Kornaropoulos, Dawn Song, David A. WagnerNeurIPS 2021 · 10 citations
  2. Efficient Generalization with Distributionally Robust LearningSoumyadip Ghosh, Mark S. Squillante, Ebisa D. WollegaNeurIPS 2021 · 4 citations
  3. Cross-Domain Few-Shot Classification via Learned Feature-Wise TransformationHung-Yu Tseng, Hsin-Ying Lee, Jia-Bin Huang, Ming-Hsuan YangICLR 2020 · 467 citations
  4. Structure-informed Risk Minimization for Robust Ensemble LearningFengchun Qiao, Yanlin Chen, Xi PengICML 2025
  5. Exploring Complementary Strengths of Invariant and Equivariant Representations for Few-Shot LearningMamshad Nayeem Rizve, Salman H. Khan, Fahad Shahbaz Khan, Mubarak ShahCVPR 2021
Dusk over the sea between two cliffs drawn in fine vertical lines