Efficient Nearest Neighbor Emotion Classification with BERT-whitening
Abstract
Retrieval-based methods have been proven effective in many NLP tasks. Previous methods use representations from the pre-trained model for similarity search directly. However, the sentence representations from the pre-trained model like BERT perform poorly in retrieving semantically similar sentences, resulting in poor performance of the retrieval-based methods. In this paper, we propose kNN-EC, a simple and efficient non-parametric emotion classification (EC) method using nearest neighbor retrieval. We use BERT-whitening to get better sentence semantics, ensuring that nearest neighbor retrieval works. Meanwhile, BERT-whitening can also reduce memory storage of datastore and accelerate retrieval speed, solving the efficiency problem of the previous methods. kNN-EC average improves the pre-trained model by 1.17 F1-macro on two emotion classification datasets.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
1 top-tier paper has cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Nearest Neighbor Machine Translation cites Generalization through Memorization: Nearest Neighbor Language Models
- Retrieval Augmented Language Model Pre-Training cites Generalization through Memorization: Nearest Neighbor Language Models
- Training Data is More Valuable than You Think: A Simple and Effective Method by Retrieving from Training Data cites Generalization through Memorization: Nearest Neighbor Language Models
- Training Data is More Valuable than You Think: A Simple and Effective Method by Retrieving from Training Data cites Nearest Neighbor Machine Translation
Cited by top-tier papers1
Builds on7
- Retrieval Augmented Language Model Pre-TrainingKelvin Guu, Kenton Lee, Zora Tung, Panupong Pasupat et al.ICML 2020 · 2,937 citations
- Generalization through Memorization: Nearest Neighbor Language ModelsUrvashi Khandelwal, Omer Levy, Dan Jurafsky, Luke Zettlemoyer et al.ICLR 2020 · 1,038 citations
- On the Sentence Embeddings from Pre-trained Language ModelsBohan Li, Hao Zhou, Junxian He, Mingxuan Wang et al.EMNLP 2020 · 538 citations
- Nearest Neighbor Machine TranslationUrvashi Khandelwal, Angela Fan, Dan Jurafsky, Luke Zettlemoyer et al.ICLR 2021 · 323 citations
- Training Data is More Valuable than You Think: A Simple and Effective Method by Retrieving from Training DataShuohang Wang, Yichong Xu, Yuwei Fang, Yang Liu et al.ACL 2022 · 115 citations
Related papers
- kNN-CM: A Non-parametric Inference-Phase Adaptation of Parametric Text ClassifiersRishabh Bhardwaj, Yingting Li, Navonil Majumder, Bo Cheng et al.EMNLP Findings 2023
- WhiteningBERT: An Easy Unsupervised Sentence Embedding ApproachJunjie Huang, Duyu Tang, Wanjun Zhong, Shuai Lu et al.EMNLP Findings 2021 · 87 citations
- Nearest Neighbor Zero-Shot InferenceWeijia Shi, Julian Michael, Suchin Gururangan, Luke ZettlemoyerEMNLP 2022 · 26 citations
- Retrofitting Light-weight Language Models for Emotions using Supervised Contrastive LearningSapan Shah, Sreedhar Reddy, Pushpak BhattacharyyaEMNLP 2023 · 4 citations
- Fusing Label Embedding into BERT: An Efficient Improvement for Text ClassificationYijin Xiong, Yukun Feng, Hao Wu, Hidetaka Kamigaito et al.ACL Findings 2021 · 56 citations
