English

Quantifying the Contextualization of Word Representations with Semantic Class Probing

Computation and Language 2020-10-13 v2

Abstract

Pretrained language models have achieved a new state of the art on many NLP tasks, but there are still many open questions about how and why they work so well. We investigate the contextualization of words in BERT. We quantify the amount of contextualization, i.e., how well words are interpreted in context, by studying the extent to which semantic classes of a word can be inferred from its contextualized embeddings. Quantifying contextualization helps in understanding and utilizing pretrained language models. We show that top layer representations achieve high accuracy inferring semantic classes; that the strongest contextualization effects occur in the lower layers; that local context is mostly sufficient for semantic class inference; and that top layer representations are more task-specific after finetuning while lower layer representations are more transferable. Finetuning uncovers task related features, but pretrained knowledge is still largely preserved.

Keywords

Cite

@article{arxiv.2004.12198,
  title  = {Quantifying the Contextualization of Word Representations with Semantic Class Probing},
  author = {Mengjie Zhao and Philipp Dufter and Yadollah Yaghoobzadeh and Hinrich Schütze},
  journal= {arXiv preprint arXiv:2004.12198},
  year   = {2020}
}

Comments

EMNLP Findings 2020

R2 v1 2026-06-23T15:05:47.343Z