Online Consistency of the Nearest Neighbor Rule
Geelon So, Sanjoy Dasgupta
Abstract
In the realizable online setting, a learner is tasked with making predictions for a stream of instances, where the correct answer is revealed after each prediction. A learning rule is online consistent if its mistake rate eventually vanishes. The nearest neighbor rule (Fix and Hodges, 1951) is a fundamental prediction strategy, but it is only known to be consistent under strong statistical or geometric assumptions: the instances come i.i.d. or the label classes are well-separated. We prove online consistency for all measurable functions in doubling metric spaces under the mild assumption that the instances are generated by a process that is uniformly absolutely continuous with respect to a finite, upper doubling measure.
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.
Cited by top-tier papers1
Ask how each one uses itBuilds on2
Related papers
- Fast rates for nonparametric online learning: from realizability to learning in gamesConstantinos Daskalakis, Noah GolowichSTOC 2022 · 8 citations
- Tradeoffs between Mistakes and ERM Oracle Calls in Online and Transductive Online LearningIdan Attias, Steve Hanneke, Arvind RamaswamiNeurIPS 2025 · 1 citation
- Computable universal online learningDariusz Kalocinski, Tomasz SteiferNeurIPS 2025 · 1 citation
- Realizable Bayes-Consistency for General Metric LossesDan Tsir Cohen, Steve Hanneke, Aryeh KontorovichICML 2026
- Private Online Learning against an Adaptive Adversary: Realizable and Agnostic SettingsBo Li, Wei Wang, Peng YeNeurIPS 2025 · 2 citations
