English

A Fast and Easy Regression Technique for k-NN Classification Without Using Negative Pairs

Machine Learning 2020-08-31 v2 Machine Learning

Abstract

This paper proposes an inexpensive way to learn an effective dissimilarity function to be used for kk-nearest neighbor (kk-NN) classification. Unlike Mahalanobis metric learning methods that map both query (unlabeled) objects and labeled objects to new coordinates by a single transformation, our method learns a transformation of labeled objects to new points in the feature space whereas query objects are kept in their original coordinates. This method has several advantages over existing distance metric learning methods: (i) In experiments with large document and image datasets, it achieves kk-NN classification accuracy better than or at least comparable to the state-of-the-art metric learning methods. (ii) The transformation can be learned efficiently by solving a standard ridge regression problem. For document and image datasets, training is often more than two orders of magnitude faster than the fastest metric learning methods tested. This speed-up is also due to the fact that the proposed method eliminates the optimization over "negative" object pairs, i.e., objects whose class labels are different. (iii) The formulation has a theoretical justification in terms of reducing hubness in data.

Keywords

Cite

@article{arxiv.1806.03945,
  title  = {A Fast and Easy Regression Technique for k-NN Classification Without Using Negative Pairs},
  author = {Yutaro Shigeto and Masashi Shimbo and Yuji Matsumoto},
  journal= {arXiv preprint arXiv:1806.03945},
  year   = {2020}
}

Comments

Earlier version of this paper appeared in PAKDD 2017. This version corrects an error in Eq. (6)

R2 v1 2026-06-23T02:25:45.295Z