Skip to main content
LawSphereX

Logits Reranking via Semantic Labels for Hard Samples in Text Classification

Subject: Language and Linguistics

Author or source: Peijie Huang, Junbao Huang, Yuhong Xu, Weizhen Li, Xisheng Xiao

Updated:

Pre-trained Language Models (PLMs) have achieved significant success in text classification.

Peijie Huang, Junbao Huang, Yuhong Xu, Weizhen Li, Xisheng Xiao. 2024. Logits Reranking via Semantic Labels for Hard Samples in Text Classification. Findings of the Association for Computational Linguistics: EMNLP 2024. Association for Computational Linguistics. DOI 10.18653/v1/2024.findings-emnlp.657. CC BY 4.0. Original PDF and author abstract are reproduced unchanged apart from whitespace in the abstract. LawSphereX prepared the reading prompt and cover. No endorsement implied.

Publication sources

Authors’ abstract

Source page 1–13

Pre-trained Language Models (PLMs) have achieved significant success in text classification. However, they still face challenges with hard samples, which refer to instances where the model exhibits diminished confidence in distinguishing new samples. Existing research has addressed related issues, but often overlooks the semantic information inherent in the labels, treating them merely as one-hot vectors. In this paper, we propose Logits Reranking via Semantic Labels (LRSL), a model-agnostic post-processing method that leverages label semantics and auto detection of hard samples to improve classification accuracy. LRSL automatically identifies hard samples, which are then jointly processed by MLP-based and Similarity-based approaches. Applied only during inference, LRSL operates solely on classification logits, reranking them based on semantic similarities without interfering with the model’s training process. The experiments demonstrate the effectiveness of our method, showing significant improvements across different PLMs. Our codes are publicly available at https://github.com/SIGSDSscau/LRSL.

Reading guide for language and linguistics

Source page 1–13

Identify the language phenomenon and how the authors annotate or measure it. Check whether the examples support the conclusions for other settings.