Adapting Language Models for Zero-shot Learning by Meta-tuning on Dataset and Prompt Collections

TL;DR

Meta-tuning on combined datasets boosts large model zero-shot classification by 6.3% (220M to 770M params), surpassing prior SOTA.

cs.CL 🔴 Advanced 2021-04-10 48 views
Ruiqi Zhong Kristy Lee Zheng Zhang Dan Klein
zero-shot learning meta-tuning large models dataset aggregation question-answer format

Key Findings

Methodology

This paper introduces a meta-tuning approach that leverages a curated collection of 43 datasets and 441 label descriptions, unified into a question-answering format. The model, based on T5-Large (770M parameters), is trained through stochastic sampling of datasets and labels, optimizing directly for zero-shot classification. The training involves multi-round fine-tuning with early stopping, incorporating data similarity, label description ensembling, and initialization strategies. The evaluation uses AUC-ROC scores on unseen tasks, demonstrating that larger models and targeted training significantly improve zero-shot performance, with parameter scaling from 220M to 770M yielding a 6.3% increase.

Key Results

  • Meta-tuned models outperform baseline UnifiedQA by 3.3% in average AUC-ROC on unseen tasks, with larger models (770M) outperforming smaller ones (220M) by 6.3%.
  • Across datasets like IMDB sentiment, AG News topic, and Yin et al.'s emotion and situation classification, the approach surpasses previous SOTA, with performance gains of 2-4%.
  • Training on similar datasets, ensembling multiple label descriptions, and initializing from pre-trained QA models each contribute incremental improvements, while early stopping prevents overfitting and maintains generalization.

Significance

This work addresses the misalignment between traditional language model training objectives and zero-shot classification goals. By constructing a multi-task, unified dataset and optimizing directly for classification, it significantly enhances the generalization ability of large models. The approach demonstrates that with proper data aggregation and format standardization, the zero-shot capabilities of models like T5 can be substantially improved, setting a new benchmark for future research and practical deployment in industry applications such as content filtering, customer service, and real-time analytics. It also emphasizes the importance of community efforts in dataset unification for scalable AI development.

Technical Contribution

The key technical innovations include: 1) creating a large, diverse, multi-task dataset in a unified QA format; 2) designing a meta-tuning framework that directly optimizes zero-shot classification performance; 3) systematically analyzing the effects of model size, data similarity, label description ensembling, and initialization strategies. This contrasts with prior methods that relied heavily on prompt engineering or task-specific fine-tuning, offering a more scalable and principled approach to zero-shot learning. The framework also facilitates transferability across tasks and datasets.

Novelty

This research is pioneering in integrating multiple datasets into a single meta-training process aimed explicitly at zero-shot classification, moving beyond prompt engineering and natural language inference-based methods. The unified question-answer format and the explicit focus on optimizing for classification metrics represent a significant departure from previous work, establishing a new paradigm for leveraging large pre-trained models for unseen tasks.

Limitations

  • The approach relies heavily on manually annotated label descriptions, which are costly and time-consuming to produce, potentially limiting scalability.
  • Task similarity definitions are subjective, and the current grouping may not fully capture task relatedness, affecting the robustness of unseen task evaluation.
  • Model size and training cost remain high; the approach's effectiveness on models larger than 770M parameters remains to be validated, and computational resources required are substantial.

Future Work

Future directions include automating label description generation to reduce manual effort, scaling to larger models such as GPT-3, exploring multi-modal data integration, and establishing standardized datasets and evaluation protocols for community-wide progress. Additionally, refining task similarity metrics and developing more efficient training algorithms will be crucial for broader adoption and deployment.

AI Executive Summary

Large pre-trained language models like GPT-3 have demonstrated remarkable zero-shot learning abilities, yet their training objectives—predicting the next word—are not directly aligned with classification tasks. This misalignment limits their performance when faced with unseen tasks. To overcome this, the authors propose a novel meta-tuning strategy that consolidates 43 diverse datasets and 441 label descriptions into a unified question-answer format, enabling models to learn a direct zero-shot classification objective.

Using T5-Large (770M parameters), the model undergoes multi-task fine-tuning with stochastic sampling, optimizing for the probability of a “yes” answer to task-specific questions. The training process incorporates data similarity, label description ensembling, and initialization strategies, with early stopping to prevent overfitting. Extensive experiments across multiple datasets—including sentiment, topic, and stance classification—show that meta-tuning significantly boosts performance, with the larger model (770M) outperforming the smaller (220M) by 6.3%. The results surpass prior state-of-the-art systems based on natural language inference, demonstrating the effectiveness of task format standardization and multi-source data integration.

This approach fundamentally shifts the paradigm of zero-shot learning, emphasizing the importance of task-specific training on diverse datasets rather than solely relying on prompt engineering. It underscores the potential of community efforts to aggregate and unify datasets, which can scale up training and evaluation, ultimately leading to more adaptable and intelligent language models. The findings suggest that current benchmarks may underestimate models’ true zero-shot capabilities, especially as models grow larger and more sophisticated.

Looking ahead, automating label description generation, extending to larger models like GPT-3, and incorporating multi-modal data are promising directions. The work paves the way for more scalable, robust, and generalizable AI systems capable of tackling an ever-expanding array of tasks with minimal supervision.

Deep Analysis

Background

近年来,大规模预训练模型如GPT-3、T5等在自然语言处理领域取得突破性进展,展现出强大的迁移学习和少样本学习能力。早期工作如GPT-3的prompt调优和Few-shot学习,虽然取得一定效果,但受限于prompt设计的复杂性和泛化能力。自然语言推理(NLI)模型曾被用作零样本分类的基础,但其偏向于推理任务,难以直接应用于多样化的分类任务。Yin等2019提出的多任务训练和UnifiedQA模型在问答任务中表现优异,但未充分利用多源、多任务数据的潜力。近年来,研究者开始尝试多任务数据集整合,旨在通过统一格式提升模型泛化能力。本文在此基础上,提出将多任务数据集整合为统一的问答格式,并通过元调优策略,直接优化零样本分类目标,旨在突破现有方法的局限。

Core Problem

现有预训练模型在零样本分类任务中的表现仍有限,主要原因在于训练目标与任务需求不一致,prompt设计繁琐且效果不稳定。此外,缺乏多源、多任务数据的有效整合,导致模型泛化能力不足。如何构建一个统一、多样化的训练框架,充分利用不同任务和数据源,是提升零样本能力的关键。同时,模型参数规模不断扩大,但其在未见任务上的性能提升仍未充分挖掘,存在潜在的优化空间。解决这些问题,需从数据整合、任务格式统一和目标优化等方面入手。

Innovation

创新点主要体现在:1) 构建多源、多任务的分类数据集,统一转化为问答格式,便于模型学习任务的共同特征;2) 设计基于T5架构的元调优流程,直接针对零样本分类目标进行优化,区别于传统微调和prompt工程;3) 通过参数扩展、数据相似性训练和标签描述集成,系统性提升模型性能。这些创新突破了以往只依赖prompt或单任务微调的局限,强调任务格式的标准化和目标导向的优化,极大增强模型在未知任务上的泛化能力。

Methodology

  • �� 数据集整合:收集43个不同来源的分类数据集,手工标注441个标签描述,将其统一转化为“是/否”问答格式。
  • �� 任务转化:每个标签对应1-3个问题,作为模型训练的输入,确保多样性和覆盖性。
  • �� 元调优流程:随机抽取数据集和标签描述,生成训练样本,采用批量训练,优化模型对零样本任务的识别能力。
  • �� 模型架构:以T5-Large为基础,输入为拼接的上下文和问题,输出“是/否”概率。
  • �� 训练策略:多轮微调,采用早停策略避免过拟合,结合模型初始化、数据集相似性和标签描述集成等技巧。
  • �� 评估指标:使用AUC-ROC衡量模型在未见任务上的性能,进行多角度性能分析。

Experiments

实验采用多样化的分类任务,包括情感、话题、语境等,数据源涵盖IMDB、AG News、Yin等公开数据集。模型对比包括未调优模型、不同参数规模模型(220M、770M)和先前SOTA系统。训练过程中调节超参数,采用交叉验证和早停策略,确保模型泛化。通过系统性消融实验验证数据相似性、标签描述集成和初始化策略的影响。评估指标主要为AUC-ROC,统计模型在不同任务上的性能变化,确保结果的稳健性。

Results

元调优模型在未见任务上平均AUC-ROC提升3.3%,参数从220M到770M提升6.3%,显著优于未调模型和Yin等2019年的系统。模型在IMDB、AG News等任务中表现优异,超越基线,验证了多源数据整合和目标优化的有效性。标签描述集成和模型初始化策略带来微弱提升,早停策略确保模型不过拟合。结果显示,参数规模和任务格式优化是提升零样本性能的关键因素,验证了本文提出方法的有效性。

Applications

该方法可直接应用于多任务、多领域的自然语言理解任务,尤其适合需要快速适应新任务的场景,如智能客服、内容过滤、舆情分析等。通过统一格式和元调优,模型能在无需大量标注的情况下,快速适应新任务,提高效率和准确性。未来可结合自动标签生成和多模态数据,推动行业智能化升级。

Limitations & Outlook

模型依赖大量高质量标签描述,人工标注成本较高;任务相似性定义具有主观性,可能影响评估的严谨性;模型参数规模有限,尚未验证超大模型(如GPT-3)在此策略下的极限性能,训练成本较高,未来需优化数据采集和训练效率。

Plain Language Accessible to non-experts

想象你在一家工厂工作,工厂里有很多不同的生产线,每条线负责不同的产品。有些生产线专门生产玩具,有些生产线做食品。以前,工厂的机器只能按照特定的产品说明书来工作,遇到新产品就得重新调试。现在,研究人员设计了一套新方法,把所有的生产线都改造成能理解一套通用的说明书,无论生产什么,都用同样的语言描述。这样,工厂就能更快地适应新产品,只要给出简单的“是/否”问题,机器就能判断。这个方法让工厂变得更聪明、更灵活,能应对各种新任务。就像给工厂装上了会学习的“智能大脑”,不用每次都重新调试,节省时间又省钱。

ELI14 Explained like you're 14

想象你在学校里,有很多不同的科目,比如数学、英语、科学。以前,如果你想让一个机器人帮你做题,你得教它每个科目的特别规则。可是现在,科学家发明了一种新方法,把所有科目的题目都变成一样的格式,比如问“这是数学题吗?”或者“这是科学题吗?”,机器人只要听到这个问题,就能帮你判断。这个机器人还学会了从很多不同的题库里学习,不管是哪一科,只要用一样的问法,它都能帮你答出来。这样一来,机器人就变得更聪明了,可以帮你应付各种新题目,不用每次都重新教它规则,就像给它装上了一个超级大脑一样。未来,这样的机器人可以帮老师、学生、甚至在工作中解决很多问题,让我们的生活变得更方便。

Abstract

Large pre-trained language models (LMs) such as GPT-3 have acquired a surprising ability to perform zero-shot learning. For example, to classify sentiment without any training examples, we can "prompt" the LM with the review and the label description "Does the user like this movie?", and ask whether the next word is "yes" or "no". However, the next word prediction training objective is still misaligned with the target zero-shot learning objective. To address this weakness, we propose meta-tuning, which directly optimizes the zero-shot learning objective by fine-tuning pre-trained language models on a collection of datasets. We focus on classification tasks, and construct the meta-dataset by aggregating 43 existing datasets and annotating 441 label descriptions in a question-answering (QA) format. When evaluated on unseen tasks, meta-tuned models outperform a same-sized QA model and the previous SOTA zero-shot learning system based on natural language inference. Additionally, increasing parameter count from 220M to 770M improves AUC-ROC scores by 6.3%, and we forecast that even larger models would perform better. Therefore, measuring zero-shot learning performance on language models out-of-the-box might underestimate their true potential, and community-wide efforts on aggregating datasets and unifying their formats can help build models that answer prompts better.

cs.CL cs.AI