arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1808.08609cs.LGcs.AIcs.CLstat.ML
收藏

集成逻辑背景知识的逆向正则化神经NLI模型

Adversarially Regularising Neural NLI Models to Integrate Logical Background Knowledge

University College London(伦敦大学学院)

Pasquale Minervini, Sebastian Riedel

摘要:

对抗性示例是机器学习模型的输入,旨在导致模型出错。它们对于理解机器学习模型的缺点、解释其结果以及正则化都很有用。然而,在NLP中,大多数示例生成策略通过使用已知的、预先指定的语义转换来生成输入文本,这需要大量的手动工作以及对问题和领域的深入理解。本文研究了在自然语言推理(NLI)中自动生成违反给定一阶逻辑约束的对抗性实例的问题。我们减少了识别这种对抗性的例子的问题,一个组合优化问题,通过最大化的数量测量违反这些约束的程度,并通过使用一个语言模型生成语言上合理的例子。此外,我们提出了一种方法,逆向正则化神经NLI模型,将背景知识。我们的研究结果表明,虽然所提出的方法并不总是改善SNLI和MultiNLI数据集的结果,但它显着且一致地提高了对恶意数据集的预测准确性-相对提高高达79.6%-同时大大减少了背景知识违规的数量。此外,我们表明,对抗性的例子之间的模型架构的转移,并提出的对抗性训练过程提高了NLI模型的对抗性的例子的鲁棒性。

英文摘要:

Adversarial examples are inputs to machine learning models designed to cause the model to make a mistake. They are useful for understanding the shortcomings of machine learning models, interpreting their results, and for regularisation. In NLP, however, most example generation strategies produce input text by using known, pre-specified semantic transformations, requiring significant manual effort and in-depth understanding of the problem and domain. In this paper, we investigate the problem of automatically generating adversarial examples that violate a set of given First-Order Logic constraints in Natural Language Inference (NLI). We reduce the problem of identifying such adversarial examples to a combinatorial optimisation problem, by maximising a quantity measuring the degree of violation of such constraints and by using a language model for generating linguistically-plausible examples. Furthermore, we propose a method for adversarially regularising neural NLI models for incorporating background knowledge. Our results show that, while the proposed method does not always improve results on the SNLI and MultiNLI datasets, it significantly and consistently increases the predictive accuracy on adversarially-crafted datasets -- up to a 79.6% relative improvement -- while drastically reducing the number of background knowledge violations. Furthermore, we show that adversarial examples transfer among model architectures, and that the proposed adversarial training procedure improves the robustness of NLI models to adversarial examples.

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

↑