跳到正文
arXiv cs.AI· Isaac Touza, Kaladzavi Guidedi, Kolyang·· 12 小时前AI 评分17

EANK:用遗传算法为 k-NN 优化实例级自适应邻居数 k

Evolutionary Adaptive Neighborhood Learning: A Genetic Algorithm for Instance-Dependent k Optimization in Nearest Neighbor Classification

AI 导读

研究者提出 EANK(Evolutionary Adaptive Neighborhood K),用低维策略将密度、标签熵、投票边际和集中度等局部邻域描述映射为实例级自适应 k(x),并以实数编码精英遗传算法结合留一法准确率与邻域平滑惩罚进行优化。在合成数据与 12 个公开数据集上,嵌套交叉验证下 EANK 表现与调优的全局 k 基线相当,并优于默认 k=5。

正文 · 原文

View PDF HTML (experimental)

Abstract:The number of neighbours k is the central hyperparameter of the k-nearest neighbour (k-NN) classifier and is usually selected globally through cross-validation or evolutionary search. However, the bias-variance trade-off is inherently local: dense and noise-free regions may favour small neighbourhoods, whereas sparse or noisy regions may require larger ones. Since global-k optimization is one-dimensional, replacing exhaustive search with a genetic algorithm offers little computational advantage. We therefore optimize an instance-dependent neighbourhood policy instead. We propose EANK (Evolutionary Adaptive Neighborhood K), which uses a low-dimensional policy to map local neighbourhood descriptors, including density, label entropy, vote margin, and concentration, to an adaptive number of neighbours k(x). A real-coded elitist genetic algorithm optimizes this policy using leave-one-out accuracy with a neighbourhood-smoothness penalty. Precomputed neighbour votes reduce fitness evaluation costs. We investigate theoretical properties of the method, including dominance over global-k solutions on the training criterion, evolutionary convergence, policy regularity, and generalization guarantees. Experiments on synthetic data with spatially heterogeneous structure and twelve public datasets evaluate predictive performance, robustness, and computational cost. Under nested cross-validation, EANK achieves competitive performance relative to tuned global-k baselines and improves upon the default k=5. We also examine the gap between training and test performance to assess the practical value of adaptive neighbourhood selection.
Subjects: Machine Learning (cs.LG); Artificial Intelligence (cs.AI)
Cite as: arXiv:2611.07257 [cs.LG]
  (or arXiv:2611.07257v1 [cs.LG] for this version)
  https://doi.org/10.48550/arXiv.2611.07257

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Isaac Touza [view email]
[v1] Thu, 5 Nov 2026 00:14:13 UTC (624 KB)

来源:arXiv cs.AI · arxiv.org