Tailor:用语义控制生成和扰动文本
Tailor: Generating and Perturbing Text with Semantic Controls
摘要:
受控的文本扰动对于评估和改进模型的泛化能力是有用的。然而,目前的技术依赖于为每个目标扰动训练模型,这是昂贵的并且难以推广。我们提出了裁缝,语义控制的文本生成系统。Tailor建立在预先训练的seq2seq模型上,并根据从语义表示中获得的控制代码生成文本输出。我们设计了一组操作来修改控制代码,这反过来又将生成转向目标属性。这些操作可以进一步组合成更高级别的操作,从而允许灵活的扰动策略。我们证明了这些扰动在多个应用程序中的有效性。首先,我们使用Tailor为四个不同的自然语言处理(NLP)任务自动创建高质量的对比集。这些对比集包含更少的虚假工件,并补充手动注释的词汇多样性。其次,我们表明,Tailor扰动可以提高模型的泛化通过数据增强。仅扰动2%的训练数据,就可以在NLI挑战集上获得5.8分,该挑战集测量了对句法分析的依赖性。
英文摘要:
Controlled text perturbation is useful for evaluating and improving model generalizability. However, current techniques rely on training a model for every target perturbation, which is expensive and hard to generalize. We present Tailor, a semantically-controlled text generation system. Tailor builds on a pretrained seq2seq model and produces textual outputs conditioned on control codes derived from semantic representations. We craft a set of operations to modify the control codes, which in turn steer generation towards targeted attributes. These operations can be further composed into higher-level ones, allowing for flexible perturbation strategies. We demonstrate the effectiveness of these perturbations in multiple applications. First, we use Tailor to automatically create high-quality contrast sets for four distinct natural language processing (NLP) tasks. These contrast sets contain fewer spurious artifacts and are complementary to manually annotated ones in their lexical diversity. Second, we show that Tailor perturbations can improve model generalization through data augmentation. Perturbing just 2% of training data leads to a 5.8-point gain on an NLI challenge set measuring reliance on syntactic heuristics.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。