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

上下文失真揭示句法成分:掩码语言模型是隐式解析器

Contextual Distortion Reveals Constituency: Masked Language Models are Implicit Parsers

Singapore University of Technology and Design(新加坡科技设计大学)

Jiaxi Li, Wei Lu

AI总结:

提出一种无需训练解析器的图表方法,通过成分测试式扰动造成的上下文表示失真为跨度评分并解析最小得分树,在英语及多语言无监督句法分析上取得先进结果。

摘要:

预训练语言模型(PLM)的最新进展表明,这些模型具备一定程度的句法意识。为利用这种知识,我们提出了一种新颖的、基于图表的方法,用于从掩码语言模型(LM)中提取解析树,而无需训练单独的解析器。我们的方法根据语言扰动所导致的上下文表示失真,为每个跨度计算一个分数。我们受语言学中“成分测试”概念的启发设计了一组扰动,并通过聚合失真分数来为每个跨度评分。为生成解析树,我们使用图表解析来寻找得分最低的树。在英语上,我们的方法使用掩码 LM 时持续优于以往的最先进方法;在多语言环境中也表现出优越性能,在 8 种语言中的 6 种上超过最先进水平。值得注意的是,尽管我们的方法不涉及参数更新或大量超参数搜索,其性能甚至可以超过一些需要微调的无监督解析方法。我们的分析强调,句法扰动导致的上下文表示失真可作为跨语言判断句法成分的有效指标。

英文摘要:

Recent advancements in pre-trained language models (PLMs) have demonstrated that these models possess some degree of syntactic awareness. To leverage this knowledge, we propose a novel chart-based method for extracting parse trees from masked language models (LMs) without the need to train separate parsers. Our method computes a score for each span based on the distortion of contextual representations resulting from linguistic perturbations. We design a set of perturbations motivated by the linguistic concept of constituency tests, and use these to score each span by aggregating the distortion scores. To produce a parse tree, we use chart parsing to find the tree with the minimum score. Our method consistently outperforms previous state-of-the-art methods on English with masked LMs, and also demonstrates superior performance in a multilingual setting, outperforming the state of the art in 6 out of 8 languages. Notably, although our method does not involve parameter updates or extensive hyperparameter search, its performance can even surpass some unsupervised parsing methods that require fine-tuning. Our analysis highlights that the distortion of contextual representation resulting from syntactic perturbation can serve as an effective indicator of constituency across languages.

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

↑