Skip to main content
QUICK REVIEW

[Paper Review] Entailment as Few-Shot Learner

Sinong Wang, Fang Han|arXiv (Cornell University)|Apr 29, 2021
Topic ModelingComputer Science46 references106 citations
TL;DR

The paper proposes EFL, a method that turns NLP classification tasks into textual entailment problems to enable few-shot learning with small LMs, achieving strong results across 18 tasks and multilingual settings.

ABSTRACT

Large pre-trained language models (LMs) have demonstrated remarkable ability as few-shot learners. However, their success hinges largely on scaling model parameters to a degree that makes it challenging to train and serve. In this paper, we propose a new approach, named as EFL, that can turn small LMs into better few-shot learners. The key idea of this approach is to reformulate potential NLP task into an entailment one, and then fine-tune the model with as little as 8 examples. We further demonstrate our proposed method can be: (i) naturally combined with an unsupervised contrastive learning-based data augmentation method; (ii) easily extended to multilingual few-shot learning. A systematic evaluation on 18 standard NLP tasks demonstrates that this approach improves the various existing SOTA few-shot learning methods by 12\%, and yields competitive few-shot performance with 500 times larger models, such as GPT-3.

Motivation & Objective

  • Demonstrate that reformulating NLP tasks as entailment enables effective few-shot learning with small LMs.
  • Show that EFL can be combined with contrastive data augmentation to improve performance.
  • Extend EFL to multilingual few-shot learning and evaluate cross-language transfer.

Proposed method

  • Reformulate classification/regression tasks as textual entailment by converting class labels into natural language descriptions.
  • Fine-tune pre-trained LMs on the entailment formulation using a small K=8 per class dataset.
  • Optionally pre-train on MNLI (entailment task) before downstream fine-tuning (EFL).
  • Enhance with unsupervised contrastive data augmentation (UCA) to generate new entailment-style training pairs.
  • Evaluate using RoBERTa-large on 18 NLP tasks spanning GLUE, SNLI, BoolQ, and others.
  • Extend evaluation to multilingual scenarios using XLM-R and MNLI/XNLI as data sources.

Experimental results

Research questions

  • RQ1Can small language models be dramatically improved as few-shot learners by recasting tasks as entailment instead of using traditional fine-tuning?
  • RQ2Does entailment-based fine-tuning transfer well across diverse tasks and languages with limited labeled data?
  • RQ3What is the impact of label descriptions on entailment-based few-shot performance?
  • RQ4How does EFL interact with data augmentation techniques and multilingual training regimes?

Key findings

  • EFL significantly improves few-shot performance over standard fine-tuning, LM-BFF, Stilts-NLI, and Stilts-Close, averaging 8.2% gains across 15 tasks.
  • EFL achieves competitive performance with 500x larger models like GPT-3 in few-shot settings.
  • Unsupervised contrastive data augmentation (UCA) further improves results, averaging around 2.7pt across 15 tasks.
  • Multilingual EFL using XLM-R shows substantial improvement over standard fine-tuning, with average gains from 61.9 to 80.7 across 7 tasks.
  • In full-training, EFL yields about 1.9pt average improvement over RoBERTa-large fine-tuning.
  • EFL with 8-shot learning sometimes outperforms traditional methods by large margins, especially on sentence-pair tasks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.