Lune

EMNLP2022Top-tier venue

Beyond prompting: Making Pre-trained Language Models Better Zero-shot Learners by Clustering Representations

Yu Fei, Zhao Meng, Ping Nie, Roger Wattenhofer, Mrinmaya Sachan

Abstract

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 1 .

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • RulePrompt: Weakly Supervised Text Classification with Prompting PLMs and Self-Iterative Logical Rules cites Contextualized Weak Supervision for Text Classification
  • RulePrompt: Weakly Supervised Text Classification with Prompting PLMs and Self-Iterative Logical Rules cites Pre-trained Language Models Can be Fully Zero-Shot Learners
  • RulePrompt: Weakly Supervised Text Classification with Prompting PLMs and Self-Iterative Logical Rules cites SimCSE: Simple Contrastive Learning of Sentence Embeddings
  • RulePrompt: Weakly Supervised Text Classification with Prompting PLMs and Self-Iterative Logical Rules cites Text Classification Using Label Names Only: A Language Model Self-Training Approach
  • The Benefits of Label-Description Training for Zero-Shot Text Classification cites Text Classification Using Label Names Only: A Language Model Self-Training Approach
  • Pre-trained Language Models Can be Fully Zero-Shot Learners cites Text Classification Using Label Names Only: A Language Model Self-Training Approach
  • Text Classification Using Label Names Only: A Language Model Self-Training Approach cites Contextualized Weak Supervision for Text Classification
  • Text Classification Using Label Names Only: A Language Model Self-Training Approach cites Discriminative Topic Mining via Category-Name Guided Text Embedding
  • SciPrompt: Knowledge-augmented Prompting for Fine-grained Categorization of Scientific Topics cites Pre-trained Language Models Can be Fully Zero-Shot Learners
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. Pre-trained Language Models Can be Fully Zero-Shot LearnersXuandong Zhao, Siqi Ouyang, Zhiguo Yu, Ming Wu et al.ACL 2023 · 22 citations
  2. The Benefits of Label-Description Training for Zero-Shot Text ClassificationLingyu Gao, Debanjan Ghosh, Kevin GimpelEMNLP 2023 · 6 citations
  3. RulePrompt: Weakly Supervised Text Classification with Prompting PLMs and Self-Iterative Logical RulesMiaomiao Li, Jiaqi Zhu, Yang Wang, Yi Yang et al.WWW 2024 · 5 citations
  4. SciPrompt: Knowledge-augmented Prompting for Fine-grained Categorization of Scientific TopicsZhiwen You, Kanyao Han, Haotian Zhu, Bertram Ludäscher et al.EMNLP 2024

Builds on13

  1. SimCSE: Simple Contrastive Learning of Sentence EmbeddingsTianyu Gao, Xingcheng Yao, Danqi ChenEMNLP 2021 · 2,496 citations
  2. Calibrate Before Use: Improving Few-shot Performance of Language ModelsZihao Zhao, Eric Wallace, Shi Feng, Dan Klein et al.ICML 2021 · 1,843 citations
  3. Text Classification Using Label Names Only: A Language Model Self-Training ApproachYu Meng, Yunyi Zhang, Jiaxin Huang, Chenyan Xiong et al.EMNLP 2020 · 203 citations
  4. Contextualized Weak Supervision for Text ClassificationDheeraj Mekala, Jingbo ShangACL 2020 · 121 citations
  5. Discriminative Topic Mining via Category-Name Guided Text EmbeddingYu Meng, Jiaxin Huang, Guangyuan Wang, Zihan Wang et al.WWW 2020 · 80 citations

Related papers

  1. Zero-Shot Text Classification with Self-TrainingAriel Gera, Alon Halfon, Eyal Shnarch, Yotam Perlitz et al.EMNLP 2022 · 48 citations
  2. Zero-Shot Text Classification via Self-Supervised TuningChaoqun Liu, Wenxuan Zhang, Guizhen Chen, Xiaobao Wu et al.ACL Findings 2023 · 13 citations
  3. Label Agnostic Pre-training for Zero-shot Text ClassificationChristopher Clarke, Yuzhao Heng, Yiping Kang, Krisztián Flautner et al.ACL Findings 2023 · 5 citations
  4. Liberating Seen Classes: Boosting Few-Shot and Zero-Shot Text Classification via Anchor Generation and Classification ReframingHan Liu, Siyang Zhao, Xiaotong Zhang, Feng Zhang et al.AAAI 2024 · 7 citations
  5. PIEClass: Weakly-Supervised Text Classification with Prompting and Noise-Robust Iterative Ensemble TrainingYunyi Zhang, Minhao Jiang, Yu Meng, Yu Zhang et al.EMNLP 2023 · 16 citations
Dusk over the sea between two cliffs drawn in fine vertical lines