paper-with-me

홈 › Papers

$k$-Nearest Neighbor Augmented Neural Networks for Text Classification

2017-08-25 · Zhiguo Wang, Wael Hamza, Linfeng Song

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.

📄 PDF Abstract BibTeX arXiv:1708.07863

Code (0)

등록된 구현이 없습니다.

Tasks

ClassificationGeneral Classificationtext-classificationText ClassificationTransfer Learning

Similar Papers 제목 키워드 기반

N2C2: Nearest Neighbor Enhanced Confidence Calibration for Cross-Lingual In-Context Learning

2025-03-12 · Jie He, Simon Yu, Deyi Xiong, Víctor Gutiérrez-Basulto 외

Recent advancements of in-context learning (ICL) show language models can significantly improve their performance when demonstrations are provided. However, little attention has been paid to model calibration and predict…

Cross-Lingual Sentiment ClassificationIn-Context LearningPredictionSentiment Analysis+1

Retrieval-Augmented Classification with Decoupled Representation

2023-03-23 · Xinnian Liang, Shuangzhi Wu, Hui Huang, Jiaqi Bai 외

Retrieval augmented methods have shown promising results in various classification tasks. However, existing methods focus on retrieving extra context to enrich the input, which is noise sensitive and non-expandable. In t…

ClassificationRetrieval

Explaining the Success of Nearest Neighbor Methods in Prediction

2025-02-21 · George H. Chen, Devavrat Shah

Many modern methods for prediction leverage nearest neighbor search to find past training examples most similar to a test example, an idea that dates back in text to at least the 11th century and has stood the test of ti…

PredictionregressionTime Series Forecasting

Diffusion Decision Making for Adaptive k-Nearest Neighbor Classification

2012-12-01 · NeurIPS 2012 12 · Yung-Kyun Noh, Frank Park, Daniel D. Lee

This paper sheds light on some fundamental connections of the diffusion decision making model of neuroscience and cognitive psychology with k-nearest neighbor classification. We show that conventional k-nearest neighbor…

ClassificationDecision MakingGeneral Classification

K-Nearest Neighbor Classification Using Anatomized Data

2016-10-19 · Koray Mancuhan, Chris Clifton

This paper analyzes k nearest neighbor classification with training data anonymized using anatomy. Anatomy preserves all data values, but introduces uncertainty in the mapping between identifying and sensitive values. We…

AnatomyClassificationGeneral Classification