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 -nearest neighbor (-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 -nearest neighbors, which aims to find the optimal weighted -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 -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 about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext d2ba4db9-e2c5-4b00-b08f-d10280d67151Cited by top-tier papers5
- Outlier-Robust Wasserstein DROSloan Nietert, Ziv Goldfeld, Soroosh ShafieeNeurIPS 2023 · 26 citations
- Gen-DFL: Decision-Focused Generative Learning for Robust Decision MakingPrince Zizhuang Wang, Shuyi Chen, Jinhao Liang, Ferdinando Fioretto et al.ICLR 2026 · 20 citations
- Distributionally Robust Optimization with Bias and Variance ReductionRonak Mehta, Vincent Roulet, Krishna Pillutla, Zaïd HarchaouiICLR 2024 · 6 citations
- Riemannian Optimization on Relaxed Indicator Matrix ManifoldJinghui Yuan, Fangyuan Xie, Feiping Nie, Xuelong LiICLR 2026 · 6 citations
- Interpolation and Regularization for Causal LearningLeena Chennuru Vankadara, Luca Rendsburg, Ulrike von Luxburg, Debarghya GhoshdastidarNeurIPS 2022 · 2 citations
Related papers
- 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
- Efficient Generalization with Distributionally Robust LearningSoumyadip Ghosh, Mark S. Squillante, Ebisa D. WollegaNeurIPS 2021 · 4 citations
- Cross-Domain Few-Shot Classification via Learned Feature-Wise TransformationHung-Yu Tseng, Hsin-Ying Lee, Jia-Bin Huang, Ming-Hsuan YangICLR 2020 · 467 citations
- Structure-informed Risk Minimization for Robust Ensemble LearningFengchun Qiao, Yanlin Chen, Xi PengICML 2025
- Exploring Complementary Strengths of Invariant and Equivariant Representations for Few-Shot LearningMamshad Nayeem Rizve, Salman H. Khan, Fahad Shahbaz Khan, Mubarak ShahCVPR 2021
