GENIUS:基于草图的语言模型预训练(通过极端和选择性掩蔽进行文本生成和增强)
GENIUS: Sketch-based Language Model Pre-training via Extreme and Selective Masking for Text Generation and Augmentation
摘要:
我们介绍天才:使用草图作为输入的条件文本生成模型,可以填充给定草图的缺失上下文(由文本跨度、短语或单词组成的关键信息,由掩码标记连接)。GENIUS在大规模文本语料库上进行了预训练,使用极端和选择性掩蔽策略从草图目标进行了新颖的重建,使其能够在给定草图的情况下生成多样化和高质量的文本。与其他竞争性条件语言模型(CLM)的比较揭示了GENIUS文本生成质量的优越性。我们进一步表明,GENIUS可以作为一个强大的和现成的数据增强工具,用于各种自然语言处理(NLP)任务。大多数现有的文本数据增强方法要么过于保守,对原始文本进行小的更改,要么过于激进,创建全新的样本。使用GENIUS,我们提出了GeniusAug,它首先从原始训练集中提取目标感知的草图,然后基于草图生成新的样本。在6个文本分类数据集上的实验表明,GeniusAug显著提高了模型在分布内(ID)和分布外(OOD)环境下的性能。我们还证明了GeniusAug在命名实体识别(NER)和机器阅读理解(MRC)任务上的有效性。(Code和模型可在https://github.com/microsoft/SCGLab和https://github.com/beyondguo/genius上公开获得)
英文摘要:
We introduce GENIUS: a conditional text generation model using sketches as input, which can fill in the missing contexts for a given sketch (key information consisting of textual spans, phrases, or words, concatenated by mask tokens). GENIUS is pre-trained on a large-scale textual corpus with a novel reconstruction from sketch objective using an extreme and selective masking strategy, enabling it to generate diverse and high-quality texts given sketches. Comparison with other competitive conditional language models (CLMs) reveals the superiority of GENIUS's text generation quality. We further show that GENIUS can be used as a strong and ready-to-use data augmentation tool for various natural language processing (NLP) tasks. Most existing textual data augmentation methods are either too conservative, by making small changes to the original text, or too aggressive, by creating entirely new samples. With GENIUS, we propose GeniusAug, which first extracts the target-aware sketches from the original training set and then generates new samples based on the sketches. Empirical experiments on 6 text classification datasets show that GeniusAug significantly improves the models' performance in both in-distribution (ID) and out-of-distribution (OOD) settings. We also demonstrate the effectiveness of GeniusAug on named entity recognition (NER) and machine reading comprehension (MRC) tasks. (Code and models are publicly available at https://github.com/microsoft/SCGLab and https://github.com/beyondguo/genius)
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。