Meta-training with Demonstration Retrieval for Efficient Few-shot Learning
Preprint
Abstract
Large language models show impressive results on few-shot NLP tasks. However, these models are memory and computation-intensive. Meta-training allows one to leverage smaller models for few-shot generalization in a domain-general and task-agnostic manner; however, these methods alone results in models that may not have sufficient parameterization or knowledge to adapt quickly to a large variety of tasks. To overcome this issue, we propose meta-training with demonstration retrieval, where we use a dense passage retriever to retrieve semantically similar labeled demonstrations to each example for more varied supervision. By separating external knowledge from model parameters, we can use meta-training to train parameter-efficient models that generalize well on a larger variety of tasks. We construct a meta-training set from UnifiedQA and CrossFit, and propose a demonstration bank based on UnifiedQA tasks. To our knowledge, our work is the first to combine retrieval with meta-training, to use DPR models to retrieve demonstrations, and to leverage demonstrations from many tasks simultaneously, rather than randomly sampling demonstrations from the training set of the target task. Our approach outperforms a variety of targeted parameter-efficient and retrieval-augmented few-shot methods on QA, NLI, and text classification tasks (including SQuAD, QNLI, and TREC). Our approach can be meta-trained and fine-tuned quickly on a single GPU.Keywords
All Related Versions
This publication has 30 references indexed in Scilit:
- PAQ: 65 Million Probably-Asked Questions and What You Can Do With ThemTransactions of the Association for Computational Linguistics, 2021
- QASC: A Dataset for Question Answering via Sentence CompositionProceedings of the AAAI Conference on Artificial Intelligence, 2020
- Self-Supervised Meta-Learning for Few-Shot Natural Language Classification Tasks2020
- UNIFIEDQA: Crossing Format Boundaries with a Single QA System2020
- Dense Passage Retrieval for Open-Domain Question Answering2020
- Billion-Scale Similarity Search with GPUsIEEE Transactions on Big Data, 2019
- Are You Smarter Than a Sixth Grader? Textbook Question Answering for Multimodal Machine Comprehension2017
- An overview of the BIOASQ large-scale biomedical semantic indexing and question answering competitionBMC Bioinformatics, 2015
- A Perspective View and Survey of Meta-LearningArtificial Intelligence Review, 2002
- Building a question answering test collection2000