Hypersphere anchor loss for K-Nearest neighbors

被引:1
|
作者
Ye, Xiang [1 ]
He, Zihang [1 ]
Wang, Heng [1 ]
Li, Yong [1 ]
机构
[1] Beijing Univ Posts & Commun, Sch Elect Engn, Beijing 100876, Peoples R China
基金
中国国家自然科学基金;
关键词
K-Nearest neighbors; Convolutional neural network; Image classification; Loss function; CLASSIFICATION;
D O I
10.1007/s10489-023-05148-5
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Learning effective feature spaces for KNN (K-Nearest Neighbor) classifiers is critical for their performance. Existing KNN loss functions designed to optimize CNNs in R-n feature spaces for specific KNN classifiers greatly boost the performance. However, these loss functions need to compute the pairwise distances within each batch, which requires large computational resource, GPU and memory. This paper aims to exploit lightweight KNN loss functions in order to reduce the computational cost while achieving comparable to or even better performance than existing KNN loss functions. To this end, an anchor loss function is proposed that assigns each category an anchor vector in KNN feature spaces and introduces the distances between training samples and anchor vectors in the NCA (Neighborhood Component Analysis) function. The proposed anchor loss function largely reduces the required computation by existing KNN loss functions. In addition, instead of optimizing CNNs in R-n feature spaces, this paper proposed to optimize them in hypersphere feature spaces for faster convergence and better performance. The proposed anchor loss optimized in the hypersphere feature space is called HAL (Hypersphere Anchor Loss). Experiments on various image classification benchmarks show that HAL reduces the computational cost and achieves better performance: on CIFAR-10 and Fashion-MNIST datasets, compared with existing KNN loss functions, HAL improves the accuracy by over 1%, and the computational cost decreases to less than 10%.
引用
收藏
页码:30319 / 30328
页数:10
相关论文
共 50 条
  • [41] Graph Clustering Using Mutual K-Nearest Neighbors
    Sardana, Divya
    Bhatnagar, Raj
    ACTIVE MEDIA TECHNOLOGY, AMT 2014, 2014, 8610 : 35 - 48
  • [42] Dynamic K-Nearest Neighbors For The Monitoring Of Evolving Systems
    Hartert, L.
    Mouchaweh, M. Sayed
    Billaudel, P.
    2010 IEEE INTERNATIONAL CONFERENCE ON FUZZY SYSTEMS (FUZZ-IEEE 2010), 2010,
  • [43] PERFORMANCE OF K-NEAREST NEIGHBORS ALGORITHM IN OPINION CLASSIFICATION
    Jedrzejewski, Krzysztof
    Zamorski, Maurycy
    FOUNDATIONS OF COMPUTING AND DECISION SCIENCES, 2013, 38 (02) : 97 - 110
  • [44] Consistency of the k-nearest neighbors rule for functional data
    Younso, Ahmad
    COMPTES RENDUS MATHEMATIQUE, 2023, 361 (01) : 237 - 242
  • [45] Ensemble k-nearest neighbors based on centroid displacement
    Wang, Alex X.
    Chukova, Stefanka S.
    Nguyen, Binh P.
    INFORMATION SCIENCES, 2023, 629 : 313 - 323
  • [46] Efficient k-nearest neighbors search in graph space
    Abu-Aisheh, Zeina
    Raveaux, Romain
    Ramel, Jean-Yves
    PATTERN RECOGNITION LETTERS, 2020, 134 (134) : 77 - 86
  • [47] A K-nearest neighbors survival probability prediction method
    Lowsky, D. J.
    Ding, Y.
    Lee, D. K. K.
    McCulloch, C. E.
    Ross, L. F.
    Thistlethwaite, J. R.
    Zenios, S. A.
    STATISTICS IN MEDICINE, 2013, 32 (12) : 2062 - 2069
  • [48] A k-nearest neighbors approach to the design of radar detectors
    Coluccia, Angelo
    Fascista, Alessio
    Ricci, Giuseppe
    SIGNAL PROCESSING, 2020, 174 (174)
  • [49] Residual k-Nearest Neighbors Label Distribution Learning
    Wang, Jing
    Feng, Fu
    Lv, Jianhui
    Geng, Xin
    PATTERN RECOGNITION, 2025, 158
  • [50] A new k-nearest neighbors classifier for functional data
    Zhu, Tianming
    Zhang, Jin-ting
    STATISTICS AND ITS INTERFACE, 2022, 15 (02) : 247 - 260