Distribution-Informed Adaptation for kNN Graph Construction

Shaojie Min, Ji Liu
8/4/2023
cs.LGcs.IRcs.SI

Official code: 4AlexMin/knnsotas (4 stars, MIT, last commit 2026-02-13).

Abstract

Graph-based kNN algorithms have garnered widespread popularity for machine learning tasks due to their simplicity and effectiveness. However, as factual data often inherit complex distributions, the conventional kNN graph's reliance on a unified k-value can hinder its performance. A crucial factor behind this challenge is the presence of ambiguous samples along decision boundaries that are inevitably more prone to incorrect classifications. To address the situation, we propose the Distribution-Informed adaptive kNN Graph (DaNNG), which combines adaptive kNN with distribution-aware graph construction. By incorporating an approximation of the distribution with customized k-adaption criteria, DaNNG can significantly improve performance on ambiguous samples, and hence enhance overall accuracy and generalization capability. Through rigorous evaluations on diverse benchmark datasets, DaNNG outperforms state-of-the-art algorithms, showcasing its adaptability and efficacy across various real-world scenarios.

View on arXivView PDF

Code Implementations(1)

MIT

This repository contains implementations of multiple KNN-based (Adaptive kNN and Graph-based kNN) SOTA algorithms.

41Python, DockerfileAug 3, 20238 months agoMIT
graph-based-modelknn-algorithmknn-graph-construction

Similar Papers

Cite this paper

@article{min2023distributioninformed,
  title  = {Distribution-Informed Adaptation for kNN Graph Construction},
  author = {Shaojie Min and Ji Liu},
  year   = {2023},
  eprint = {2308.02442},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.02442v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2308.02442.svg)](https://codeofpaper.com/paper/2308.02442)

Discussion