Skip to main content
LawSphereX

Semantics or spelling? Probing contextual word embeddings with orthographic noise

Subject: Language and Linguistics

Author or source: Jacob A. Matthews, John R. Starr, Marten van Schijndel

Updated:

We investigate this practice by probing PLM representations using minimal orthographic noise.

Jacob A. Matthews, John R. Starr, Marten van Schijndel. 2024. Semantics or spelling? Probing contextual word embeddings with orthographic noise. Findings of the Association for Computational Linguistics: ACL 2024. Association for Computational Linguistics. DOI 10.18653/v1/2024.findings-acl.266. CC BY 4.0. Original PDF and author abstract are reproduced unchanged apart from whitespace in the abstract. LawSphereX prepared the reading prompt and cover. No endorsement implied.

Publication sources

Authors’ abstract

Source page 1–10

Pretrained language model (PLM) hidden states are frequently employed as contextual word embeddings (CWE): high-dimensional representations that encode semantic information given linguistic context. Across many areas of computational linguistics research, similarity between CWEs is interpreted as semantic similarity. However, it remains unclear exactly what information is encoded in PLM hidden states. We investigate this practice by probing PLM representations using minimal orthographic noise. We expect that if CWEs primarily encode semantic information, a single character swap in the input word will not drastically affect the resulting representation, given sufficient linguistic context. Surprisingly, we find that CWEs generated by popular PLMs are highly sensitive to noise in input data, and that this sensitivity is related to subword tokenization: the fewer tokens used to represent a word at input, the more sensitive its corresponding CWE. This suggests that CWEs capture information unrelated to word-level meaning and can be manipulated through trivial modifications of input data. We conclude that these PLM-derived CWEs may not be reliable semantic proxies, and that caution is warranted when interpreting representational similarity.

Reading guide for language and linguistics

Source page 1–10

Identify the language phenomenon and how the authors annotate or measure it. Check whether the examples support the conclusions for other settings.