Adaptive k Nearest Neighbors Classifier via Granular Ball Computing

Xiaoyu Lian, Shuyin Xia, Hongxuan He, Lifeng Shen, Guoyin Wang +1 more
8/13/2026
cs.LG

Official code: lianxiaoyu724/Adaptive-GBKNN (2 stars, last commit 2025-04-27).

Abstract

The $k$-Nearest Neighbor~(KNN) algorithm is widely used across various tasks. The selection of the $k$ value is a key issue because it significantly impacts performance.

Show full abstract

In this paper, an adaptive and efficient KNN approach via granular-ball computing is proposed. The method consists of two stages. \textcolor{black}{In the training stage, the dataset is first coarsely partitioned to reduce the complexity of data distributions within a granular ball, and then the Fisher criterion is introduced to control ball splitting and stopping, yielding a multi-granularity granular ball representation. In the prediction stage, the nearest granular ball is first located through a weighted distance mechanism, and an adaptive neighborhood is then constructed around the test sample. The effective $k$ value is dynamically determined by the actual number of samples contained in this neighborhood. The neighborhood induced by the nearest granular ball provides more stable local group information, thereby improving robustness against noise and local perturbations.} Experimental results demonstrate that the proposed method outperforms existing KNN variants across multiple datasets in terms of both accuracy and efficiency. The code has been open-sourced for reproducibility: https://github.com/lianxiaoyu724/Adaptive-GBKNN.

View on arXivView PDF

Code Implementations(1)

Adaptive $k$ Nearest Neighbors Classifier via Granular-ball Computing

20Apr 27, 20251 years ago

Similar Papers

Cite this paper

@article{lian2026adaptive,
  title  = {Adaptive k Nearest Neighbors Classifier via Granular Ball Computing},
  author = {Xiaoyu Lian and Shuyin Xia and Hongxuan He and Lifeng Shen and Guoyin Wang and Xinbo Gao},
  year   = {2026},
  eprint = {2608.12903},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.12903v1}
}

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/2608.12903.svg)](https://codeofpaper.com/paper/2608.12903)

Discussion