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

Soniya Vijayakumar, Josef van Genabith, Simon Ostermann
9/21/2024
cs.CL

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{vijayakumar2024probing,
  title  = {Probing Context Localization of Polysemous Words in Pre-trained Language Model Sub-Layers},
  author = {Soniya Vijayakumar and Josef van Genabith and Simon Ostermann},
  year   = {2024},
  eprint = {2409.14097},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.14097v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.14097.svg)](https://codeofpaper.com/paper/2409.14097)

Discussion