Learning to Few-Shot Learn Across Diverse Natural Language Classification Tasks

Trapit Bansal, Rishikesh Jha, Andrew McCallum
11/10/2019
cs.CLcs.LG

Official code: iesl/leopard (24 stars, last commit 2020-11-27).

Abstract

Self-supervised pre-training of transformer models has shown enormous success in improving performance on a number of downstream tasks. However, fine-tuning on a new task still requires large amounts of task-specific labelled data to achieve good performance. We consider this problem of learning to generalize to new tasks with few examples as a meta-learning problem. While meta-learning has shown tremendous progress in recent years, its application is still limited to simulated problems or problems with limited diversity across tasks. We develop a novel method, LEOPARD, which enables optimization-based meta-learning across tasks with different number of classes, and evaluate different methods on generalization to diverse NLP classification tasks. LEOPARD is trained with the state-of-the-art transformer architecture and shows better generalization to tasks not seen at all during training, with as few as 4 examples per label. Across 17 NLP tasks, including diverse domains of entity typing, natural language inference, sentiment analysis, and several other text classification tasks, we show that LEOPARD learns better initial parameters for few-shot learning than self-supervised pre-training or multi-task training, outperforming many strong baselines, for example, yielding 14.5% average relative gain in accuracy on unseen tasks with only 4 examples per label.

View on arXivView PDF

Code Implementations(1)

iesl/leopardOfficial100%
244Mar 8, 20205 years ago

Similar Papers

Cite this paper

@article{bansal2019learning,
  title  = {Learning to Few-Shot Learn Across Diverse Natural Language Classification Tasks},
  author = {Trapit Bansal and Rishikesh Jha and Andrew McCallum},
  year   = {2019},
  eprint = {1911.03863},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1911.03863}
}

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/1911.03863.svg)](https://codeofpaper.com/paper/1911.03863)

Discussion