arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.11855cs.CLcs.AIcs.LG
收藏

基于负数据反模型的语言模型统计恶魔检测与驱除

Detecting and Exorcising Statistical Demons from Language Models with Anti-Models of Negative Data

Oracle Labs(甲骨文实验室);Boston College(波士顿学院);Oracle(甲骨文)

Michael L. Wick, Kate Silverstein, Jean-Baptiste Tristan, Adam Pocock, Mark Johnson

摘要:

有人说“语言模型是无监督的多任务学习器。事实上,在英语文本的“积极”示例上训练的自监督语言模型以理想的方式推广到许多自然语言任务。但是,如果这样的模型可以偏离最初的自我监督目标,那么一个任性的模型也可能以不受欢迎的方式进行推广,比如对非自然语言的无意义的“负面”例子。在这项工作中的一个关键问题是:(正)训练数据上训练的语言模型也推广到(负)测试数据吗?我们使用这个问题作为一种设计来评估语言模型学习文本的不良属性(如n-gram)的程度,这些属性可能会干扰学习更理想的文本属性(如语法)。我们发现,在一个模型家族中,随着参数数量、训练时期和数据集大小的增加,模型推广到负n元数据的能力也会增加,这表明标准的自我监督推广得太远了。我们提出了一种形式的感应偏置,衰减这种不良信号与负数据分布自动学习的积极数据。我们应用该方法从LSTM中删除n元语法信号,并发现这样做会导致它们倾向于句法信号,如句法主语-动词一致性任务上的大错误减少(在最困难的情况下高达46%)所示。

英文摘要:

It's been said that "Language Models are Unsupervised Multitask Learners." Indeed, self-supervised language models trained on "positive" examples of English text generalize in desirable ways to many natural language tasks. But if such models can stray so far from an initial self-supervision objective, a wayward model might generalize in undesirable ways too, say to nonsensical "negative" examples of unnatural language. A key question in this work is: do language models trained on (positive) training data also generalize to (negative) test data? We use this question as a contrivance to assess the extent to which language models learn undesirable properties of text, such as n-grams, that might interfere with the learning of more desirable properties of text, such as syntax. We find that within a model family, as the number of parameters, training epochs, and data set size increase, so does a model's ability to generalize to negative n-gram data, indicating standard self-supervision generalizes too far. We propose a form of inductive bias that attenuates such undesirable signals with negative data distributions automatically learned from positive data. We apply the method to remove n-gram signals from LSTMs and find that doing so causes them to favor syntactic signals, as demonstrated by large error reductions (up to 46% on the hardest cases) on a syntactic subject-verb agreement task.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑