Knowledgeable Prompt-tuning: Incorporating Knowledge into Prompt Verbalizer for Text Classification
Shengding HuNing DingHuadong WangZhiyuan LiuJingang WangJuanzi LiWei WuMaosong Sun
Proposes Knowledgeable Prompt-tuning (KPT), a framework that integrates external knowledge bases to expand and refine verbalizer label spaces, significantly improving classification accuracy and stability in zero- and few-shot settings.
Prompt-tuning has emerged as a dominant method for applying large pre-trained language models to text classification, especially when labeled training data is scarce. In standard prompt-tuning, an input text is placed inside a template with a blank space, and the model predicts a single target word (the verbalizer) mapped to a category label. However, standard verbalizers rely on handcrafted single words or optimization-based searches, which suffer from narrow semantic coverage, personal bias, and high prediction variance.
The article introduces Knowledgeable Prompt-tuning (KPT), an approach designed to improve the accuracy and stability of text classification in low-data regimes by incorporating external knowledge bases into the verbalizer. The authors evaluated KPT on five benchmark datasets across topic classification and sentiment analysis in zero-shot and few-shot scenarios using a RoBERTa-large language model.
The KPT framework operates in three stages: construction, refinement, and utilization. In the construction stage, external knowledge sources (such as ConceptNet, WordNet, and sentiment dictionaries) generate a rich set of related label words across multiple granularities for each class. To remove noise from this automated expansion, the framework applies four refinement methods: frequency refinement, relevance refinement, contextualized calibration, and learnable weighting. Finally, predictions across the refined label words are combined into category decisions using standard averaging for zero-shot tasks or weighted averaging for few-shot tasks.
The experimental findings show that KPT consistently outperforms traditional fine-tuning, standard manual prompt-tuning, and automated verbalizer baselines. In few-shot settings, KPT reduced classification error rates by an average of 18% in 1-shot, 10% in 5-shot, and 7% in 10-shot tasks compared to the strongest baselines. In zero-shot settings, KPT combined with contextualized calibration reduced error rates by 16% on average, showing gains of up to 11% on complex topic classification tasks. In addition to accuracy gains, the expanded vocabulary stabilized model training, resulting in lower prediction variance across random seeds and templates.
These results indicate that expanding label vocabularies with structured external knowledge significantly enhances sample efficiency, allowing organizations to deploy high-performing classification systems without expensive, manual data annotation. The findings also demonstrate that contextual calibration is critical for zero-shot tasks, whereas supervised training data naturally mitigates the need for calibration in few-shot tasks.
Organizations operating in data-scarce environments should adopt knowledgeable prompt expansion over single-word verbalizers to reduce labeling costs and deployment risk. In zero-shot workflows, contextual calibration using a small pool of unlabeled text should be prioritized. For future implementations, practitioners should explore integrating self-supervised word-mining techniques for domains where structured external knowledge bases are unavailable, while remaining cautious of potential noise or malicious entries introduced from unverified third-party knowledge bases.
- Paper: Making Pre-trained Language Models Better Few-shot Learners, Tianyu Gao et al. (2021). It introduces LM-BFF, establishing the core framework for prompt-based few-shot fine-tuning and automated verbalizer/label-word search that Knowledgeable Prompt-tuning directly critiques and expands.
- Paper: Exploiting Cloze-Questions for Few-Shot Text Classification and Natural Language Inference, Timo Schick et al. (2020). It pioneers Pattern-Exploiting Training (PET), formalizing the formulation of text classification as cloze-style masked language modeling via verbalizers upon which KPT builds.
- Paper: GPT Understands, Too, Xiao Liu et al. (2021). It presents P-Tuning for continuous prompt adaptation, providing essential foundational context for parameter-efficient prompt tuning and verbalizer construction.
- Paper: Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processing, Pengfei Liu et al. (2021). It provides a comprehensive survey and taxonomy of prompt-based learning paradigms, templates, and verbalizer designs in NLP.
- Paper: Calibrate Before Use: Improving Few-Shot Performance of Language Models, Tony Z. Zhao et al. (2021). It analyzes systematic label and verbalizer biases in few-shot prompting, establishing key motivation for KPT's label space refinement.
- Paper: ERNIE: Enhanced Language Representation with Informative Entities, Zhengyan Zhang et al. (2019). It demonstrates how to inject structured external knowledge into pre-trained language representations, laying conceptual groundwork for knowledge-augmented prompt learning.
- Paper: Decoupling Knowledge from Memorization: Retrieval-augmented Prompt Learning, Xiang Chen et al. (2022). It builds on knowledge-enhanced prompt learning by introducing RETROPROMPT, which decouples factual knowledge from parameter memorization via retrieval-augmented prompt mechanisms.
- Paper: Prompt-free and Efficient Few-shot Learning with Language Models, Rabeeh Karimi Mahabadi et al. (2022). It investigates eliminating handcrafted verbalizers entirely through prototype label representations and adapter-based tuning in few-shot scenarios.
- Paper: Noisy Channel Language Model Prompting for Few-Shot Text Classification, Sewon Min et al. (2022). It tackles verbalizer sensitivity and label bias from an alternative architectural angle by evaluating a noisy channel formulation for prompt tuning.
- Paper: RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learning, Mingkai Deng et al. (2022). It explores discrete prompt optimization using reinforcement learning, offering another direction to bypass manual and gradient-based verbalizer limitations.
- Paper: Knowledge-Augmented Reasoning Distillation for Small Language Models in Knowledge-Intensive Tasks, Minki Kang et al. (2023). It extends the paradigm of integrating external knowledge bases into language models by distilling retrieved knowledge for small models in knowledge-intensive reasoning.
