Beyond Prompting: Making Pre-trained Language Models Better Zero-shot Learners by Clustering Representations
Not on the map. Why?
Abstract (arXiv)
Recent work has demonstrated that pre-trained language models (PLMs) are zero-shot learners. However, most existing zero-shot methods involve heavy human engineering or complicated self-training pipelines, hindering their application to new situations. In this work, we show that zero-shot text classification can be improved simply by clustering texts in the embedding spaces of PLMs. Specifically, we fit the unlabeled texts with a Bayesian Gaussian Mixture Model after initializing cluster positions and shapes using class names. Despite its simplicity, this approach achieves superior or comparable performance on both topic and sentiment classification datasets and outperforms prior works significantly on unbalanced datasets. We further explore the applicability of our clustering approach by evaluating it on 14 datasets with more diverse topics, text lengths, and numbers of classes. Our approach achieves an average of 20% absolute improvement over prompt-based zero-shot learning. Finally, we compare different PLM embedding spaces and find that texts are well-clustered by topics even if the PLM is not explicitly pre-trained to generate meaningful sentence embeddings. This work indicates that PLM embeddings can categorize texts without task-specific fine-tuning, thus providing a new way to analyze and utilize their knowledge and zero-shot learning ability.
Key facts. Cited by 11 papers in the map (data through 13 Oct 2026). Builds on 31 of its 55 references that are in the map. First posted on arXiv 29 Oct 2022.
Builds on
31 of 55 references.
References · 31
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,304
- 2020Language Models are Few-Shot Learnerscited by 32,320
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,549
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,322
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,107
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,317
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,360
- 2021Convex optimizationcited by 2,488
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,319
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,229
- 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,170
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,376
19 more
- 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,255
- 2016ConceptNet 5.5: An Open Multilingual Graph of General Knowledgecited by 1,065
- 2020Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inferencecited by 935
- 2020Efficient Intent Detection with Dual Sentence Encoderscited by 425
- 2021Learning How to Ask: Querying LMs with Mixtures of Soft Promptscited by 376
- 2021Knowledgeable Prompt-tuning: Incorporating Knowledge into Prompt Verbalizer for Text Classificationcited by 183
- 2020Unsupervised Domain Clusters in Pretrained Language Modelscited by 160
- 2021OpenPrompt: An Open-source Framework for Prompt-learningcited by 148
- 2021Supporting Clustering with Contrastive Learningcited by 90
- 2018Weakly-Supervised Neural Text Classificationcited by 66
- 2022Prototypical Verbalizer for Prompt-based Few-shot Tuningcited by 53
- 2020X-Class: Text Classification with Extremely Weak Supervisioncited by 45
- 2021RAFT: A Real-World Few-Shot Text Classification Benchmarkcited by 44
- 2017Self-Taught Convolutional Neural Networks for Short Text Clusteringcited by 34
- 2022AdaPrompt: Adaptive Model Training for Prompt-based NLPcited by 30
- 2019Discriminative Topic Mining via Category-Name Guided Text Embeddingcited by 29
- 2021Weakly-supervised Text Classification Based on Keyword Graphcited by 25
- 2020Unsupervised Label Refinement Improves Dataless Text Classificationcited by 9
- 2020Deep Clustering of Text Representations for Supervision-free Probing of Syntaxcited by 7
Built on by
Citing papers per year: 2022: 2; 2023: 4; 2024: 5.
11 papers.
- 2022Pre-trained Language Models Can be Fully Zero-Shot Learnerscited by 22
- 2024Small Language Models are Good Too: An Empirical Study of Zero-Shot Classificationcited by 18
- 2023Generation-driven Contrastive Self-training for Zero-shot Text Classification with Instruction-following LLMcited by 12
- 2023Scaling up Discovery of Latent Concepts in Deep NLP Modelscited by 9
- 2023The Benefits of Label-Description Training for Zero-Shot Text Classificationcited by 4
- 2024SciPrompt: Knowledge-augmented Prompting for Fine-grained Categorization of Scientific Topicscited by 4
- 2022Empowering Sentence Encoders with Prompting and Label Retrieval for Zero-shot Text Classificationcited by 2
- 2023CELDA: Leveraging Black-box Language Model as Enhanced Classifier without Labelscited by 2
- 2024RulePrompt: Weakly Supervised Text Classification with Prompting PLMs and Self-Iterative Logical Rulescited by 2
- 2024Interactive Topic Models with Optimal Transportcited by 1
- 2024CrossTune: Black-Box Few-Shot Classification with Label Enhancementcited by 0
- 2024SciPrompt: Knowledge-augmented Prompting for Fine-grained Categorization of Scientific Topics2 Oct 2024
- 2024Interactive Topic Models with Optimal Transport28 Jun 2024
- 2024Small Language Models are Good Too: An Empirical Study of Zero-Shot Classification17 Apr 2024
- 2024CrossTune: Black-Box Few-Shot Classification with Label Enhancement19 Mar 2024
- 2024RulePrompt: Weakly Supervised Text Classification with Prompting PLMs and Self-Iterative Logical Rules5 Mar 2024
- 2023Scaling up Discovery of Latent Concepts in Deep NLP Models20 Aug 2023
- 2023CELDA: Leveraging Black-box Language Model as Enhanced Classifier without Labels5 Jun 2023
- 2023The Benefits of Label-Description Training for Zero-Shot Text Classification3 May 2023
- 2023Generation-driven Contrastive Self-training for Zero-shot Text Classification with Instruction-following LLM24 Apr 2023
- 2022Empowering Sentence Encoders with Prompting and Label Retrieval for Zero-shot Text Classification20 Dec 2022
- 2022Pre-trained Language Models Can be Fully Zero-Shot Learners14 Dec 2022