English

DNNR: Differential Nearest Neighbors Regression

Machine Learning 2022-05-18 v1

Abstract

K-nearest neighbors (KNN) is one of the earliest and most established algorithms in machine learning. For regression tasks, KNN averages the targets within a neighborhood which poses a number of challenges: the neighborhood definition is crucial for the predictive performance as neighbors might be selected based on uninformative features, and averaging does not account for how the function changes locally. We propose a novel method called Differential Nearest Neighbors Regression (DNNR) that addresses both issues simultaneously: during training, DNNR estimates local gradients to scale the features; during inference, it performs an n-th order Taylor approximation using estimated gradients. In a large-scale evaluation on over 250 datasets, we find that DNNR performs comparably to state-of-the-art gradient boosting methods and MLPs while maintaining the simplicity and transparency of KNN. This allows us to derive theoretical error bounds and inspect failures. In times that call for transparency of ML models, DNNR provides a good balance between performance and interpretability.

Keywords

Cite

@article{arxiv.2205.08434,
  title  = {DNNR: Differential Nearest Neighbors Regression},
  author = {Youssef Nader and Leon Sixt and Tim Landgraf},
  journal= {arXiv preprint arXiv:2205.08434},
  year   = {2022}
}

Comments

published at ICML 2022

R2 v1 2026-06-24T11:20:05.348Z