Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Don't Prompt, Search! Mining-based Zero-Shot Learning with Language Models

About

Masked language models like BERT can perform text classification in a zero-shot fashion by reformulating downstream tasks as text infilling. However, this approach is highly sensitive to the template used to prompt the model, yet practitioners are blind when designing them in strict zero-shot settings. In this paper, we propose an alternative mining-based approach for zero-shot learning. Instead of prompting language models, we use regular expressions to mine labeled examples from unlabeled corpora, which can optionally be filtered through prompting, and used to finetune a pretrained model. Our method is more flexible and interpretable than prompting, and outperforms it on a wide range of tasks when using comparable templates. Our results suggest that the success of prompting can partly be explained by the model being exposed to similar examples during pretraining, which can be directly retrieved through regular expressions.

Mozes van de Kar, Mengzhou Xia, Danqi Chen, Mikel Artetxe• 2022

Related benchmarks

TaskDatasetResultRank
Sentiment AnalysisIMDB (test)
Accuracy86.7
248
Sentiment AnalysisSST-2
Accuracy80.73
156
Topic ClassificationAG News (test)
Accuracy79.7
98
Topic ClassificationDBPedia (test)
Accuracy82.1
64
Sentiment AnalysisIMDB
Accuracy77.36
57
Sentiment ClassificationYelp (test)
Accuracy92.3
46
Topic ClassificationYahoo (test)
Accuracy57
36
Sentiment AnalysisYelp
Accuracy90.36
30
Sentiment AnalysisRotten Tomato
Accuracy76.73
25
Topic ClassificationNYT (test)
Accuracy68.6
18
Showing 10 of 18 rows

Other info

Follow for update