K-Nearest Neighbors by Means of Sequence to Sequence Deep Neural Networks and Memory Networks
Abstract
k-Nearest Neighbors is one of the most fundamental but effective classification models. In this paper, we propose two families of models built on a sequence to sequence model and a memory network model to mimic the k-Nearest Neighbors model, which generate a sequence of labels, a sequence of out-of-sample feature vectors and a final label for classification, and thus they could also function as oversamplers. We also propose 'out-of-core' versions of our models which assume that only a small portion of data can be loaded into memory. Computational experiments show that our models on structured datasets outperform k-Nearest Neighbors, a feed-forward neural network, XGBoost, lightGBM, random forest and a memory network, due to the fact that our models must produce additional output and not just the label. On image and text datasets, the performance of our model is close to many state-of-the-art deep models. As an oversampler on imbalanced datasets, the sequence to sequence kNN model often outperforms Synthetic Minority Over-sampling Technique and Adaptive Synthetic Sampling.
Cite
Text
Xu and Klabjan. "K-Nearest Neighbors by Means of Sequence to Sequence Deep Neural Networks and Memory Networks." International Joint Conference on Artificial Intelligence, 2021. doi:10.24963/IJCAI.2021/442Markdown
[Xu and Klabjan. "K-Nearest Neighbors by Means of Sequence to Sequence Deep Neural Networks and Memory Networks." International Joint Conference on Artificial Intelligence, 2021.](https://mlanthology.org/ijcai/2021/xu2021ijcai-k/) doi:10.24963/IJCAI.2021/442BibTeX
@inproceedings{xu2021ijcai-k,
title = {{K-Nearest Neighbors by Means of Sequence to Sequence Deep Neural Networks and Memory Networks}},
author = {Xu, Yiming and Klabjan, Diego},
booktitle = {International Joint Conference on Artificial Intelligence},
year = {2021},
pages = {3214-3220},
doi = {10.24963/IJCAI.2021/442},
url = {https://mlanthology.org/ijcai/2021/xu2021ijcai-k/}
}