Proceedings

k-Nearest Neighbors by Means of Sequence to Sequence Deep Neural Networks and Memory Networks

Download BibTeX Cite

Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence. Main Track. Pages 3214-3220.

https://doi.org/10.24963/ijcai.2021/442

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.

  1. [Blackard and Dean, 1998] Jock A. Blackard and Denis J. Dean. Forest covertype. UCI Machine Learning Repos- itory, 1998.
  2. [Breiman, 2001] Leo Breiman. Random forests. Machine Learning, 2001.
  3. [Carlsson et al., 2008] Gunnar Carlsson, Tigran Ishkhanov, Vin de Silva, and Afra Zomorodian. On the local behav- ior of spaces of natural images. International Journal of Computer Vision, 2008.
  4. [Chawla et al., 2002] Nitesh V. Chawla, Kevin W. Bowyer, Lawrence O. Hall, and W. Philip Kegelmeyer. SMOTE: Synthetic minority over-sampling technique. Journal of Artificial Intelligence Research, 2002.
  5. [Chen and Guestrin, 2016] Tianqi Chen and Carlos Guestrin. Xgboost: A scalable tree boosting system. ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 2016.
  6. [Cho et al., 2014] Kyunghyun Cho, Bart van Merrienboer, C ¸aglar Gülc ¸ehre, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. Learning phrase representations using RNN encoder-decoder for statistical machine translation. Conference on Empirical Methods in Natural Language Processing, 2014.
  7. [Chollet, 2015] Franc ¸ois Chollet. Reuters newswire topics classification. https://keras.io/datasets", 2015. Link
  8. [Cover and Hart, 1967] Thomas M. Cover and Peter E. Hart. Nearest neighbor pattern classification. Institute of Elec- trical and Electronics Engineers Transactions on Informa- tion Theory, 1967.
  9. [Duarte and Hu, 2004] Marco F. Duarte and Yu Hen Hu. Ve- hicle classification in distributed sensor networks. Journal of Parallel and Distributed Computing, 2004.
  10. [Erhan et al., 2010] Dumitru Erhan, Yoshua Bengio, Aaron C. Courville, Pierre-Antoine Manzagol, Pascal Vincent, and Samy Bengio. Why does unsupervised pre-training help deep learning? Journal of Machine Learning Research, 2010.
  11. [He et al., 2008] Haibo He, Yang Bai, Edwardo A. Garcia, and Shutao Li. Adasyn: Adaptive synthetic sampling ap- proach for imbalanced learning. International Joint Con- ference on Neural Networks, 2008.
  12. [He et al., 2016] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. Conference on Computer Vision and Pattern Recognition, 2016.
  13. [Hettich and Bay, 1999] S. Hettich and S. D. Bay. Network intrusion. The UCI KDD Archive, 1999.
  14. [Hinton et al., 2015] Geoffrey Hinton, Oriol Vinyals, and Jeffrey Dean. Distilling the knowledge in a neural net- work. Annual Conference on Neural Information Process- ing Systems, 2015. [Karpathy, 2015] Andrej Karpathy. The unreasonable ef- fectiveness of recurrent neural networks. http://karpathy. github.io/2015/05/21/rnn-effectiveness/, 2015. Link
  15. [Ke et al., 2017] Guolin Ke, Qi Meng, Thomas Finley, Taifeng Wang, Wei Chen, Weidong Ma, Qiwei Ye, and T. M. Liu. Lightgbm: A highly efficient gradient boosting decision tree. Conference on Neural Information Process- ing Systems, 2017.
  16. [Krizhevsky et al., 2009] Alex Krizhevsky, Vinod Nair, and Geoffrey Hinton. Cifar-10 (canadian institute for ad- vanced research). http://www.cs.toronto.edu/ ∼ kriz/cifar. html, 2009. Link
  17. [Lang, 1995] Ken Lang. Newsweeder: Learning to filter net- news. Proceedings of the Twelfth International Conference on Machine Learning, 1995.
  18. [LeCun and Cortes, 1999] Yann LeCun and Corinna Cortes. MNIST handwritten digit database. http://yann.lecun.com/ exdb/mnist/, 1999. Link
  19. [Maas et al., 2011] Andrew L. Maas, Raymond E. Daly, Pe- ter T. Pham, Dan Huang, Andrew Y. Ng, and Christopher Potts. Learning word vectors for sentiment analysis. Pro- ceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technolo- gies, 2011.
  20. [Olah, 2014] Christopher Olah. Neural networks, man- ifolds, and topology. http://colah.github.io/posts/ 2014-03-NN-Manifolds-Topology/", 2014. Link
  21. [Sukhbaatar et al., 2015] Sainbayar Sukhbaatar, Arthur Szlam, Jason Weston, and Rob Fergus. Weakly super- vised memory networks. Annual Conference on Neural Information Processing Systems, 2015.
  22. [Sutskever et al., 2014] Ilya Sutskever, Oriol Vinyals, and Quoc V. Le. Sequence to sequence learning with neural networks. Annual Conference on Neural Information Pro- cessing Systems, 2014.
  23. [Wang et al., 2017] Zhiguo Wang, Wael Hamza, and Linfeng Song. k-nearest neighbor augmented neural networks for text classification. arXiv Repository, 2017.
  24. [Weston et al., 2015] Jason Weston, Sumit Chopra, and An- toine Bordes. Memory networks. International Confer- ence on Learning Representations, 2015.
  25. [Yeh and hui Lien, 2009] I-Cheng Yeh and Che hui Lien. The comparisons of data mining techniques for the predic- tive accuracy of probability of default of credit card clients. Expert Systems with Applications, 2009.
  26. [Zoran et al., 2017] Daniel Zoran, Balaji Lakshmi- narayanan, and Charles Blundell. Learning deep nearest neighbor representations using differentiable boundary trees. arXiv Repository, 2017.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards