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

$\textit{交换与预测}$ -- 通过上下文交换预测跨语料库词语的语义变化

$\textit{Swap and Predict}$ -- Predicting the Semantic Changes in Words across Corpora by Context Swapping

Tokyo Metropolitan University(东京都立大学);Amazon(亚马逊);University of Liverpool(利物浦大学)

Taichi Aida, Danushka Bollegala

AI总结:

提出基于上下文交换的无监督方法SSCD,利用预训练掩码语言模型预测词语在两个语料库间的语义变化,在四种语言和时间跨度上取得准确预测,并优于强基线。

摘要:

词语的含义会随时间变化并因领域而异。检测词语的语义变化对于各种需要做出时间敏感预测的自然语言处理应用来说是一项重要任务。我们考虑这样一个问题:预测一个给定的目标词 $w$ 在两个不同的文本语料库 $\mathcal{C}_1$ 和 $\mathcal{C}_2$ 之间是否改变了其含义。为此,我们提出了基于交换的语义变化检测(SSCD),这是一种无监督方法,它随机交换 $w$ 出现的 $\mathcal{C}_1$ 和 $\mathcal{C}_2$ 中的上下文。然后,我们观察从预训练的掩码语言模型(MLM)中获得的 $w$ 的上下文词嵌入分布,这些嵌入表示 $w$ 在 $\mathcal{C}_1$ 和 $\mathcal{C}_2$ 中出现的上下文中的含义。直观地说,如果 $w$ 的含义在 $\mathcal{C}_1$ 和 $\mathcal{C}_2$ 之间没有改变,我们期望 $w$ 的上下文词嵌入分布在随机交换过程前后保持不变。尽管方法简单,但我们证明,即使使用预训练的 MLM 而不进行任何微调,我们提出的上下文交换方法也能准确预测四种语言(英语、德语、瑞典语和拉丁语)以及不同时间跨度(超过 50 年和大约 5 年)中词语的语义变化。此外,与强基线相比,我们的方法在英语语义变化预测任务上取得了显著的性能提升。源代码可在 https://github.com/a1da4/svp-swap 获取。

英文摘要:

Meanings of words change over time and across domains. Detecting the semantic changes of words is an important task for various NLP applications that must make time-sensitive predictions. We consider the problem of predicting whether a given target word, $w$, changes its meaning between two different text corpora, $\mathcal{C}_1$ and $\mathcal{C}_2$. For this purpose, we propose $\textit{Swapping-based Semantic Change Detection}$ (SSCD), an unsupervised method that randomly swaps contexts between $\mathcal{C}_1$ and $\mathcal{C}_2$ where $w$ occurs. We then look at the distribution of contextualised word embeddings of $w$, obtained from a pretrained masked language model (MLM), representing the meaning of $w$ in its occurrence contexts in $\mathcal{C}_1$ and $\mathcal{C}_2$. Intuitively, if the meaning of $w$ does not change between $\mathcal{C}_1$ and $\mathcal{C}_2$, we would expect the distributions of contextualised word embeddings of $w$ to remain the same before and after this random swapping process. Despite its simplicity, we demonstrate that even by using pretrained MLMs without any fine-tuning, our proposed context swapping method accurately predicts the semantic changes of words in four languages (English, German, Swedish, and Latin) and across different time spans (over 50 years and about five years). Moreover, our method achieves significant performance improvements compared to strong baselines for the English semantic change prediction task. Source code is available at https://github.com/a1da4/svp-swap .

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

↑