Prompt-Learning for Short Text Classification

Xindong Wu (吴信东), Yi Zhu, Ye Wang, Jipeng Qiang, Xindong WuIEEE TKDE 2022

TL;DR

This paper introduces PLST, a novel prompt-learning approach for short text classification that leverages external knowledge graphs to enrich label word expansion. By considering both the short text content and class names, PLST generates more accurate and relevant label words, leading to significant performance improvements over existing methods, especially in few-shot learning scenarios.

What Problem Does This Paper Address?

Short text classification presents a significant challenge due to the inherent brevity of the text, leading to feature sparsity and high ambiguity. Traditional methods often struggle to capture sufficient meaning from such limited data. While prompt-learning has emerged as a powerful technique to adapt pre-trained language models (PLMs) for downstream tasks by framing them as cloze-style questions, existing prompt-learning methods often rely on manual label word expansion or solely consider the class name. This can lead to omissions and biases, particularly for short texts where contextual information is crucial. The paper aims to bridge this gap by developing a more effective prompt-learning strategy that intelligently incorporates external knowledge to create richer, more contextually relevant label word spaces for short text classification.

Methods

The core of the proposed method, PLST (Prompt-Learning for Short Text Classification), lies in its enhanced label word expansion strategy. Instead of relying solely on class names or manual selection, PLST leverages an external knowledge graph (Probase) to expand the label word space. The process involves:

  1. Knowledgeable Expansion: For a given short text and its corresponding class label, the top N concepts related to entities within the short text are retrieved from Probase.
  2. Label Word Refinement: The retrieved concepts are then refined by calculating their distance in an embedding space to the class labels. This step helps to filter out irrelevant concepts and select those that are most semantically aligned with the target class.
  3. Prompt-Learning Framework: The refined label words are used to construct a verbalizer for the prompt-learning framework. The input text is embedded into a template, and the PLM predicts the probability of each refined label word filling the masked token. The class with the highest probability is selected.

This approach aims to create a more accurate and reliable label word space by considering both the specific content of the short text and the broader semantic context provided by the knowledge graph.

Datasets

The paper evaluates PLST on three well-known short text classification datasets:

  • AG's News: Experiments utilize only the news titles from this dataset.
  • Snippets: This dataset consists of short text snippets.
  • News Title: This dataset comprises news headlines.

The authors do not introduce any new datasets but focus on demonstrating the effectiveness of their method on existing benchmarks.

Key Insights and Ideas

  • Leveraging External Knowledge for Label Expansion is Crucial for Short Texts: The paper strongly advocates for the use of external knowledge graphs to enrich label word spaces, especially when dealing with the inherent limitations of short texts.
  • Contextualizing Label Words with Text Content: By retrieving concepts related to entities within the short text, PLST moves beyond simply using the class name, leading to more nuanced and accurate label representations.
  • Distance-Based Refinement Improves Label Word Quality: The use of embedding space distance to refine retrieved concepts is a key innovation that helps to filter noise and select the most relevant words for classification.
  • Prompt-Learning's Adaptability: The study highlights the effectiveness of prompt-learning as a paradigm for adapting PLMs to short text classification, particularly in few-shot scenarios.

Key Results

PLST demonstrates significant improvements over existing methods, including fine-tuning, regular prompt-learning, and knowledgeable prompt-tuning.

  • Accuracy Gains: PLST achieves state-of-the-art results, outperforming baselines by up to 6 Accuracy points on the tested datasets. For instance, in the 20-shot setting, PLST achieves 83.35% accuracy on AG's News, 86.33% on Snippets, and 75.87% on News Title, surpassing other methods.
  • Stability: The proposed method shows stable performance across different datasets and template variations, indicating its robustness.
  • Effectiveness in Few-Shot Learning: PLST is particularly effective in few-shot learning scenarios, where data is scarce, showcasing its ability to leverage limited examples efficiently.
  • Parameter Sensitivity: The paper investigates the impact of parameters like N (number of concepts retrieved) and M (number of refined label words). Optimal performance was found with N=5 and M=50, suggesting that too many or too few words can degrade performance.

Limitations and Future Work

  • Template Dependency: While the paper explores different templates, the effectiveness of prompt-learning methods is still influenced by the choice of template.
  • Manual Template Design: The current implementation uses manually designed templates, which can be time-consuming.
  • Future Directions: The authors suggest exploring better methods for automatic template construction and verbalizer design. They also aim to incorporate more auxiliary information from external knowledge sources for other NLP tasks.

Summary updated

BibTeX
@article{2022prompt,
  author = {Xindong Wu (吴信东) and Yi Zhu and Ye Wang and Jipeng Qiang and Xindong Wu},
  title = {{Prompt-Learning for Short Text Classification}},
  journal = {IEEE TKDE},
  year = {2022},
  doi = {10.1109/tkde.2023.3332787},
}
Figure