Domain Lexical Knowledge-based Word Embedding Learning for Text Classification under Small Data

Zixiao Zhu, Kezhi Mao
6/2/2025
cs.CL

Official code: MidiyaZhu/KVWEFFER (1 star, last commit 2025-06-03).

Abstract

Pre-trained language models such as BERT have been proved to be powerful in many natural language processing tasks. But in some text classification applications such as emotion recognition and sentiment analysis, BERT may not lead to satisfactory performance. This often happens in applications where keywords play critical roles in the prediction of class labels. Our investigation found that the root cause of the problem is that the context-based BERT embedding of the keywords may not be discriminative enough to produce discriminative text representation for classification. Motivated by this finding, we develop a method to enhance word embeddings using domain-specific lexical knowledge. The knowledge-based embedding enhancement model projects the BERT embedding into a new space where within-class similarity and between-class difference are maximized. To implement the knowledge-based word embedding enhancement model, we also develop a knowledge acquisition algorithm for automatically collecting lexical knowledge from online open sources. Experiment results on three classification tasks, including sentiment analysis, emotion recognition and question answering, have shown the effectiveness of our proposed word embedding enhancing model. The codes and datasets are in https://github.com/MidiyaZhu/KVWEFFER.

View on arXivView PDF

Code Implementations(1)

MidiyaZhu/KVWEFFEROfficial100%

knowledge-enhanced text classification

10PythonDec 5, 20221 years ago
knowledge-basetext-classification

Similar Papers

Cite this paper

@article{zhu2025domain,
  title  = {Domain Lexical Knowledge-based Word Embedding Learning for Text Classification under Small Data},
  author = {Zixiao Zhu and Kezhi Mao},
  year   = {2025},
  eprint = {2506.01621},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.01621v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.01621.svg)](https://codeofpaper.com/paper/2506.01621)

Discussion