Metaphors in Pre-Trained Language Models: Probing and Generalization Across Datasets and Languages

Ehsan Aghazadeh, Mohsen Fayyaz, Yadollah Yaghoobzadeh
3/26/2022
cs.CL

Official code: EhsanAghazadeh/Metaphors_in_PLMs (23 stars, Python, last commit 2022-05-15).

Abstract

Human languages are full of metaphorical expressions. Metaphors help people understand the world by connecting new concepts and domains to more familiar ones.

Show full abstract

Large pre-trained language models (PLMs) are therefore assumed to encode metaphorical knowledge useful for NLP systems. In this paper, we investigate this hypothesis for PLMs, by probing metaphoricity information in their encodings, and by measuring the cross-lingual and cross-dataset generalization of this information. We present studies in multiple metaphor detection datasets and in four languages (i.e., English, Spanish, Russian, and Farsi). Our extensive experiments suggest that contextual representations in PLMs do encode metaphorical knowledge, and mostly in their middle layers. The knowledge is transferable between languages and datasets, especially when the annotation is consistent across training and testing sets. Our findings give helpful insights for both cognitive and NLP scientists.

View on arXivView PDF

Code Implementations(1)

Probing and Generalization of Metaphorical Knowledge in Pre-Trained Language Modelss[ACL 2022]

234Python, Jupyter NotebookNov 11, 20214 years ago

Similar Papers

Cite this paper

@article{aghazadeh2022metaphors,
  title  = {Metaphors in Pre-Trained Language Models: Probing and Generalization Across Datasets and Languages},
  author = {Ehsan Aghazadeh and Mohsen Fayyaz and Yadollah Yaghoobzadeh},
  year   = {2022},
  eprint = {2203.14139},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.14139}
}

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/2203.14139.svg)](https://codeofpaper.com/paper/2203.14139)

Discussion