Skip to main content
QUICK REVIEW

[论文解读] Generating Training Data with Language Models: Towards Zero-Shot Language Understanding

Meng Yu, Jiaxin Huang|arXiv (Cornell University)|Feb 9, 2022
Topic ModelingComputer Science被引用 80
一句话总结

论文提出了 SuperGen,一种零-shot 学习方法,使用单向语言模型生成面向类别的训练数据以用于双向分类器,在没有任务特定数据的情况下实现了强大的 GLUE 结果。

ABSTRACT

Pretrained language models (PLMs) have demonstrated remarkable performance in various natural language processing tasks: Unidirectional PLMs (e.g., GPT) are well known for their superior text generation capabilities; bidirectional PLMs (e.g., BERT) have been the prominent choice for natural language understanding (NLU) tasks. While both types of models have achieved promising few-shot learning performance, their potential for zero-shot learning has been underexplored. In this paper, we present a simple approach that uses both types of PLMs for fully zero-shot learning of NLU tasks without requiring any task-specific data: A unidirectional PLM generates class-conditioned texts guided by prompts, which are used as the training data for fine-tuning a bidirectional PLM. With quality training data selected based on the generation probability and regularization techniques (label smoothing and temporal ensembling) applied to the fine-tuning stage for better generalization and stability, our approach demonstrates strong performance across seven classification tasks of the GLUE benchmark (e.g., 72.3/73.8 on MNLI-m/mm and 92.8 on SST-2), significantly outperforming zero-shot prompting methods and achieving even comparable results to strong few-shot approaches using 32 training samples per class.

研究动机与目标

  • 展示在没有任何任务特定数据的情况下的零-shot NLU 性能。
  • 利用单向预训练语言模型生成由标签描述提示引导的带标签训练数据。
  • 在生成数据上微调一个双向分类器,并采用稳定性与泛化技巧。
  • 分析数据质量选择与正则化技术对跨任务鲁棒性的提升。

提出的方法

  • 使用生成器 G_theta(单向)通过标签提示生成类别条件文本。
  • 使用提示和采样策略为 GLUE 任务生成单序列和序列对数据样例。
  • 按平均生成概率对生成样本进行排序以选择高质量数据。
  • 在选定数据上对分类器 C_phi(双向)进行微调,并使用标签平滑与时域集成作为正则化。
  • 必要时通过将真实少量数据与生成数据相结合扩展到少量样本设置。
  • 给出消融研究以展示数据选择、标签平滑与时域集成对性能的影响。

实验结果

研究问题

  • RQ1零-shot 框架是否能够生成足够高质量的带标签数据来训练 NLU 分类器而不需要任何任务特定数据?
  • RQ2数据选择和正则化技术是否会在用合成数据训练时提升稳定性和泛化能力?
  • RQ3不同的提示、生成器/分类器大小和数据量如何影响 GLUE 任务上的零-shot 与少量样本性能?
  • RQ4基于生成的数据创建是否比单纯提示在零-shot NLU 中更有效?
  • RQ5将生成数据与少量样本数据结合对性能与稳定性有何影响?

主要发现

  • SuperGen 在七个 GLUE 任务上实现了强劲的零-shot 性能,超越基于提示的零-shot 方法。
  • 基于平均生成概率的数据质量选择显著提升结果,相较随机采样更优。
  • 标签平滑与时域集成在对生成数据进行微调时提升了泛化性与稳定性。
  • 在充足的生成数据条件下,SuperGen 能达到甚至超过某些少量样本结果,在某些设置中每个类别仅需 32 个样本也能表现出竞争力。
  • 消融研究显示每个组件(数据选择、标签平滑、时域集成)都对性能有贡献,特别是在 MNLI 这类具有挑战性的任务上。
  • 使用更大规模的生成器与合适的控制提示能带来更好结果;在零-shot 与少量样本阶段,生成方法整体优于 CTRL 提示和其他基线。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。