Reproduce “Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inference” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Timo Schick, Hinrich Schütze

Pattern-Exploiting Training (PET) reframes few-shot classification and natural language inference as masked-word prediction, using task-specific prompts and label words to leverage a pretrained language model’s linguistic knowledge. Across English and multilingual benchmarks, PET and its iterative variant iPET substantially outperform ordinary fine-tuning with very small labeled sets, reaching, for example, 57.6% on Yelp, 89.3% on AG’s News, 70.7% on Yahoo Questions, and 43.2% on MNLI with only 10 examples.

Key insights

  • Representing labels with meaningful words lets pretrained language models transfer existing linguistic and world knowledge to few-shot tasks instead of learning arbitrary class indices from scratch.
  • Prompt ensembles are more reliable than individual patterns, while distillation into a standard classifier generally improves on directly using the ensemble.
  • Iterative self-training helps when pseudo-label growth is controlled, but overly aggressive expansion can amplify early prediction errors; manual verbalizers also remain stronger than the tested automatic search method.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.