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

探究预训练语言模型子层中多义词的上下文定位

Probing Context Localization of Polysemous Words in Pre-trained Language Model Sub-Layers

Saarland Informatics Campus(萨尔兰信息学园区)

Soniya Vijayakumar, Josef van Genabith, Simon Ostermann

AI总结:

本研究使用线性探针分析预训练语言模型子层对多义词的上下文化强度,发现BERT在特定短上下文位置的顶部子层表现高度上下文化,但无法系统推广至所有位置和上下文大小。

摘要:

在高性能大型语言模型时代,研究人员已广泛认识到上下文词表示是在下游任务中取得顶级性能的关键驱动因素之一。在本研究中,我们通过使用线性探针的实证实验,调查了预训练语言模型(PLM)细粒度子层表示中编码的上下文化程度。与以往工作不同,我们特别感兴趣的是识别PLM子层表示(即Self-Attention、Feed-Forward Activation和Output子层)之间上下文化的强度。为了识别子层对上下文化的主要贡献,我们首先提取了在最小差异句对中多义词的子层表示,并比较这些表示在PLM网络前向传播过程中如何变化。其次,通过在词义识别分类任务上进行探测,我们试图实证地定位这些子层表示中编码的上下文化信息强度。通过这些探测实验,我们还试图更好地理解上下文长度和上下文丰富度对上下文化程度的影响。我们的主要结论是警示性的:如果所讨论的单词处于句子中的特定位置且具有较短的上下文窗口,BERT在顶部子层中表现出高度的上下文化,但这并不能系统地推广到不同的单词位置和上下文大小。

英文摘要:

In the era of high performing Large Language Models, researchers have widely acknowledged that contextual word representations are one of the key drivers in achieving top performances in downstream tasks. In this work, we investigate the degree of contextualization encoded in the fine-grained sub-layer representations of a Pre-trained Language Model (PLM) by empirical experiments using linear probes. Unlike previous work, we are particularly interested in identifying the strength of contextualization across PLM sub-layer representations (i.e. Self-Attention, Feed-Forward Activation and Output sub-layers). To identify the main contributions of sub-layers to contextualisation, we first extract the sub-layer representations of polysemous words in minimally different sentence pairs, and compare how these representations change through the forward pass of the PLM network. Second, by probing on a sense identification classification task, we try to empirically localize the strength of contextualization information encoded in these sub-layer representations. With these probing experiments, we also try to gain a better understanding of the influence of context length and context richness on the degree of contextualization. Our main conclusion is cautionary: BERT demonstrates a high degree of contextualization in the top sub-layers if the word in question is in a specific position in the sentence with a shorter context window, but this does not systematically generalize across different word positions and context sizes.

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

↑