Zero-Shot Text Classification with Self-Training

Ariel Gera, Alon Halfon, Eyal Shnarch, Yotam Perlitz, Liat Ein-Dor +1 more
10/31/2022
cs.CLcs.LG

Official code: IBM/zero-shot-classification-boost-with-self-training (50 stars, Python, Apache-2.0, last commit 2026-10-10).

Abstract

Recent advances in large pretrained language models have increased attention to zero-shot text classification. In particular, models finetuned on natural language inference datasets have been widely adopted as zero-shot classifiers due to their promising results and off-the-shelf availability.

Show full abstract

However, the fact that such models are unfamiliar with the target task can lead to instability and performance issues. We propose a plug-and-play method to bridge this gap using a simple self-training approach, requiring only the class names along with an unlabeled dataset, and without the need for domain expertise or trial and error. We show that fine-tuning the zero-shot classifier on its most confident predictions leads to significant performance gains across a wide range of text classification tasks, presumably since self-training adapts the zero-shot model to the task at hand.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

code for the paper "Zero-Shot Text Classification with Self-Training" for EMNLP 2022

5010PythonOct 12, 20221 months agoApache-2.0

Similar Papers

Cite this paper

@article{gera2022zeroshot,
  title  = {Zero-Shot Text Classification with Self-Training},
  author = {Ariel Gera and Alon Halfon and Eyal Shnarch and Yotam Perlitz and Liat Ein-Dor and Noam Slonim},
  year   = {2022},
  eprint = {2210.17541},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.17541}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.17541.svg)](https://codeofpaper.com/paper/2210.17541)

Discussion