arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1909.07521cs.CL
收藏

基于语义片段的自然语言推理模型研究

Probing Natural Language Inference Models through Semantic Fragments

Allen Institute for AI(艾伦人工智能研究所);Indiana University(印第安纳大学)

Kyle Richardson, Hai Hu, Lawrence S. Moss, Ashish Sabharwal

摘要:

最先进的语言理解模型是否已经具有或能够容易地学习布尔协调、量化、条件句、比较句和单调性推理(即,在上下文中进行词替换的推理)?虽然这种现象涉及自然语言推理(NLI),并超出了基本的语言理解,目前还不清楚他们在现有的NLI基准捕捉和有效地学习模型的程度。为了研究这一点,我们建议使用语义片段-系统生成的数据集,每个数据集针对不同的语义现象-用于探测和有效地提高语言模型的这种能力。这种创建挑战数据集的方法允许直接控制目标语言现象的语义多样性和复杂性,并导致模型语言行为的更精确表征。我们的实验,使用8个这样的语义片段的库,揭示了两个显着的发现:(a)国家的最先进的模型,包括BERT,这是预先训练的现有NLI基准数据集在这些新的片段表现不佳,即使这里探讨的现象是NLI任务的核心。(b)另一方面,只需几分钟的额外微调-通过精心选择的学习率和新的“接种”变体-基于BERT的模型可以掌握所有这些逻辑和单调性片段,同时保持其在已建立的NLI基准上的性能。

英文摘要:

Do state-of-the-art models for language understanding already have, or can they easily learn, abilities such as boolean coordination, quantification, conditionals, comparatives, and monotonicity reasoning (i.e., reasoning about word substitutions in sentential contexts)? While such phenomena are involved in natural language inference (NLI) and go beyond basic linguistic understanding, it is unclear the extent to which they are captured in existing NLI benchmarks and effectively learned by models. To investigate this, we propose the use of semantic fragments---systematically generated datasets that each target a different semantic phenomenon---for probing, and efficiently improving, such capabilities of linguistic models. This approach to creating challenge datasets allows direct control over the semantic diversity and complexity of the targeted linguistic phenomena, and results in a more precise characterization of a model's linguistic behavior. Our experiments, using a library of 8 such semantic fragments, reveal two remarkable findings: (a) State-of-the-art models, including BERT, that are pre-trained on existing NLI benchmark datasets perform poorly on these new fragments, even though the phenomena probed here are central to the NLI task. (b) On the other hand, with only a few minutes of additional fine-tuning---with a carefully selected learning rate and a novel variation of "inoculation"---a BERT-based model can master all of these logic and monotonicity fragments while retaining its performance on established NLI benchmarks.

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

↑