arXiv(opens in a new tab)Computer ScienceApr 2022Cited by 9 papers on PaperVantage

Manuscript Offprint

arXiv:2204.07705

Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Tasks

Yizhong Wang, Swaroop Mishra, Pegah Alipoormolabashi, Yeganeh Kordi, Amirreza Mirzaei, Anjana Arunkumar, Arjun Ashok, Arut Selvan Dhanasekaran, Atharva Naik, David Stap, Eshaan Pathak, Giannis Karamanolakis, H. Lai, I. Purohit, Ishani Mondal, Jacob Anderson, Kirby Kuznia, Krima Doshi, Maitreya Patel, Kuntal Kumar Pal, M. Moradshahi, Mihir Parmar, Mirali Purohit, Neeraj Varshney, Phani Rohitha Kaza, Pulkit Verma, Ravsehaj Singh Puri, Rushang Karia, Shailaja Keyur Sampat, Savan Doshi, Siddhartha Mishra, Sujan Reddy, Sumanta Patro, Tanay Dixit, Xudong Shen, Chitta Baral, Yejin Choi, Noah A. Smith, Hannaneh Hajishirzi, Daniel Khashabi

Abstract

How well can NLP models generalize to a variety of unseen tasks when provided with task instructions? To address this question, we first introduce Super-NaturalInstructions, a benchmark of 1,616 diverse NLP tasks and their expert-written instructions. Our collection covers 76 distinct task types, including but not limited to classification, extraction, infilling, sequence tagging, text rewriting, and text composition. This large and diverse collection of tasks enables rigorous benchmarking of cross-task generalization under instructions—training models to follow instructions on a subset of tasks and evaluating them on the remaining unseen ones. Furthermore, we build Tkk-Instruct, a transformer model trained to follow a variety of in-context instructions (plain language task definitions or kk-shot examples). Our experiments show that Tkk-Instruct outperforms existing instruction-following models such as InstructGPT by over 9% on our benchmark despite being an order of magnitude smaller. We further analyze generalization as a function of various scaling parameters, such as the number of observed tasks, the number of instances per task, and model sizes. We hope our dataset and model facilitate future progress towards more general-purpose NLP models.

Figure 1: An example task from Sup-NatInst adopted from Chawla et al. (2021). A successful model is expected to use the provided instructions (including task definition and demonstration examples) to output responses to a pool of evaluation instances.

Resource → Sup-NatInst (this work) NatInst Mishra et al. (2022b) CrossFit Ye et al. (2021) PromptSource Bach et al. (2022) FLAN Wei et al. (2022) InstructGPT Ouyang et al. (2022) Has task instructions? ✓ ✓ ✗ ✓ ✓ ✓ Has negative examples? ✓ ✓ ✗ ✗ ✗ ✗ Has non-English tasks? ✓ ✗ ✗ ✗ ✓ ✓ Is public? ✓ ✓ ✓ ✓ ✓ ✗ Number of tasks 1616 61 269 176 62 – Number of instructions 1616 61 – 2052 620 14378 Number of annotated tasks types 76 6 13 13∗ 12 10 Avg. task definition length (words) 56.6 134.4 – 24.8 8.2 –

Table 1: A comparison of Sup-NatInst to a few notable datasets in the field. We obtain the number of tasks, instructions, and task types of other datasets from their original paper. “–” indicates the fields are not applicable or unknown. Standards for categorizing task types vary across different datasets (see Fig. 2). *PromptSource does not provide task type annotation for all their tasks, for which we report only the 13 task types annotated for training T0 Sanh et al. (2022) instead.

10pt]1 (a) Sup-NatInst (this work)

10pt] 0.22

(b) NatInst

10pt] 0.22

(c) PromptSource (T0 subset)

10pt] 0.22

(d) FLAN

10pt] 0.22

(e) InstructGPT

Figure 2: Compared to other datasets, Sup-NatInst covers a more diverse range of task types. InstructGPT reports a very coarse categorization of their task types. Bubble size represents the number of tasks of each type in log scale.

1 Introduction

The NLP community has witnessed great progress in building models for generalization to unseen tasks via in-context instructions Mishra et al. (2022b); Sanh et al. (2022); Wei et al. (2022) using large pretrained language models Raffel et al. (2020); Brown et al. (2020). As remarkable as models like InstructGPT Ouyang et al. (2022) are, the contribution of various design choices to their success is opaque. In particular, the role of supervised data has remained understudied due to limited data released by the corporate entities behind major models. In addition, it is nearly impossible for the research community to extend and re-train these gigantic models. Addressing these two challenges necessitates the availability of large-scale public benchmarks of a broad range of NLP tasks and their instructions to facilitate developing and evaluating models that can generalize to unseen tasks.

In this paper, we construct a meta-dataset (i.e., dataset of datasets; Triantafillou et al., 2019) that consists of a wide variety of NLP tasks with their instructions, and train a model that can perform a new task given the instruction, outperforming InstructGPT (which uses 16×16\times more parameters).

Our dataset, Super-NaturalInstructions (Sup-NatInst for short), is a large benchmark of 1,616 NLP tasks and their natural language instructions. It brings in a diverse variety of tasks—76 broad task types spanning 55 different languages. Each task is paired up with an instruction that consists of the task definition for mapping an input text to a task output and several examples for demonstrating the desired or undesired output (see Fig.1 as an example task). These tasks and their instructions are contributed by 88 NLP practitioners, in response to our public call. These contributions are consolidated after several rounds of peer-review and crowdsourced feedback to ensure quality. Having this diverse and large-scale data enables us to carefully split the tasks into training and test sets and systematically study how state-of-the-art methods perform on them. Table 1 and Figure 2 highlight properties of Sup-NatInst compared to relevant benchmarks, emphasizing the diversity of tasks and instruction types in our benchmark.

Our model, Tkk-Instruct, is a generative model for transforming task inputs given declarative in-context instructions (task definition or kk-shot examples). It is built by multi-task training of the T5 model Raffel et al. (2020) over all the task instructions in our training set, and is evaluated on unseen tasks in the test set. Interestingly, an 11B-parameter Tkk-Instruct can outperform the 175B-parameter InstructGPT model by 9.9 ROUGE-L points when evaluated on 119 unseen English tasks, and the multilingual variant mTkk-Instruct outperforms InstructGPT by 13.3 points on 35 non-English tasks (§6.1). According to human evaluation, Tkk-Instruct generates responses at least as well as the ground truth for 77% of the testing instances (§6.2), confirming its strong generalization to unseen tasks.

The compelling empirical performance of Tkk-Instruct confirms the importance of super-sized meta datasets such as our Sup-NatInst to facilitate research towards generalizable NLP models. We conduct extensive analysis to understand the important factors for this generalization (§7). Our analysis shows that scaling up the diversity of training tasks and the model size are both important for strong generalization to unseen tasks. Finally, we estimate performance upper bounds, suggesting further room for improvement.

References (13)