k-Nearest Neighbor Augmented Neural Networks for Text Classification
Not on the map. Why?
Abstract (arXiv)
In recent years, many deep-learning based models are proposed for text classification. This kind of models well fits the training set from the statistical point of view. However, it lacks the capacity of utilizing instance-level information from individual instances in the training set. In this work, we propose to enhance neural network models by allowing them to leverage information from k-nearest neighbor (kNN) of the input text. Our model employs a neural network that encodes texts into text embeddings. Moreover, we also utilize k-nearest neighbor of the input text as an external memory, and utilize it to capture instance-level information from the training set. The final prediction is made based on features from both the neural network encoder and the kNN memory. Experimental results on several standard benchmark datasets show that our model outperforms the baseline model on all the datasets, and it even beats a very deep neural network model (with 29 layers) in several datasets. Our model also shows superior performance when training instances are scarce, and when the training set is severely unbalanced. Our model also leverages techniques such as semi-supervised training and transfer learning quite well.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). First posted on arXiv 25 Aug 2017.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 1; 2022: 0; 2023: 2; 2024: 1.
4 papers.
- 2021Nearest Neighbour Few-Shot Learning for Cross-lingual Classificationcited by 8
- 2024Lens: A Knowledge-Guided Foundation Model for Network Trafficcited by 7
- 2023Deep Learning-based Sentiment Classification: A Comparative Surveycited by 4
- 2023Wrapper Boxes: Faithful Attribution of Model Predictions to Training Datacited by 1
- 2024Lens: A Knowledge-Guided Foundation Model for Network Traffic6 Feb 2024
- 2023Deep Learning-based Sentiment Classification: A Comparative Survey12 Dec 2023
- 2023Wrapper Boxes: Faithful Attribution of Model Predictions to Training Data15 Nov 2023
- 2021Nearest Neighbour Few-Shot Learning for Cross-lingual Classification6 Sep 2021