Hypersphere anchor loss for K-Nearest neighbors

被引:0
|
作者
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 条
  • [31] EDITING FOR THE K-NEAREST NEIGHBORS RULE BY A GENETIC ALGORITHM
    KUNCHEVA, LI
    PATTERN RECOGNITION LETTERS, 1995, 16 (08) : 809 - 814
  • [32] A new approach for increasing K-nearest neighbors performance
    Aamer, Youssef
    Benkaouz, Yahya
    Ouzzif, Mohammed
    Bouragba, Khalid
    2020 8TH INTERNATIONAL CONFERENCE ON WIRELESS NETWORKS AND MOBILE COMMUNICATIONS (WINCOM 2020), 2020, : 35 - 39
  • [33] k-Nearest Neighbors for automated classification of celestial objects
    LiLi Li
    YanXia Zhang
    YongHeng Zhao
    Science in China Series G: Physics, Mechanics and Astronomy, 2008, 51 : 916 - 922
  • [34] Conformal transformation of the metric for k-nearest neighbors classification
    Popescu, Marius Claudiu
    Grama, Lacrimioara
    Rusu, Corneliu
    2020 IEEE 16TH INTERNATIONAL CONFERENCE ON INTELLIGENT COMPUTER COMMUNICATION AND PROCESSING (ICCP 2020), 2020, : 229 - 234
  • [35] Robustness verification of k-nearest neighbors by abstract interpretation
    Fassina, Nicolo
    Ranzato, Francesco
    Zanella, Marco
    KNOWLEDGE AND INFORMATION SYSTEMS, 2024, 66 (08) : 4825 - 4859
  • [36] BRANCH AND BOUND ALGORITHM FOR COMPUTING K-NEAREST NEIGHBORS
    FUKUNAGA, K
    NARENDRA, PM
    IEEE TRANSACTIONS ON COMPUTERS, 1975, C 24 (07) : 750 - 753
  • [37] Improving the speed and stability of the k-nearest neighbors method
    Beliakov, Gleb
    Li, Gang
    PATTERN RECOGNITION LETTERS, 2012, 33 (10) : 1296 - 1301
  • [38] Distributed architecture for k-nearest neighbors recommender systems
    Vreixo Formoso
    Diego Fernández
    Fidel Cacheda
    Victor Carneiro
    World Wide Web, 2015, 18 : 997 - 1017
  • [39] Graph Clustering Using Mutual K-Nearest Neighbors
    Sardana, Divya
    Bhatnagar, Raj
    ACTIVE MEDIA TECHNOLOGY, AMT 2014, 2014, 8610 : 35 - 48
  • [40] ADAPTIVE VOTING RULES FOR K-NEAREST NEIGHBORS CLASSIFIERS
    ROVATTI, R
    RAGAZZONI, R
    KOVACS, ZM
    GUERRIERI, R
    NEURAL COMPUTATION, 1995, 7 (03) : 594 - 605