[Paper Review] Metaphors in Pre-Trained Language Models: Probing and Generalization Across Datasets and Languages
This paper investigates whether pre-trained language models (PLMs) encode metaphorical knowledge by probing their contextual representations across four languages (English, Spanish, Russian, Farsi) and four metaphor detection datasets. Results show that metaphorical knowledge is primarily encoded in middle layers and generalizes effectively across languages when annotations are consistent, but less so across datasets with differing annotation guidelines.
Human languages are full of metaphorical expressions. Metaphors help people understand the world by connecting new concepts and domains to more familiar ones. 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.
Motivation & Objective
- To determine whether pre-trained language models (PLMs) encode metaphorical knowledge in their contextual representations.
- To assess the generalization of metaphorical knowledge across different languages and datasets.
- To investigate the layer-wise distribution of metaphorical information in PLMs.
- To evaluate the impact of annotation consistency on cross-lingual and cross-dataset transfer performance.
- To provide insights into the cognitive plausibility of PLMs for metaphor understanding.
Proposed method
- Probing PLM representations using two methods: edge probing and minimum description length (MDL).
- Training binary classifiers on contextual representations to predict metaphoricality, measuring accuracy and extractability.
- Conducting cross-lingual probing by training on one language and testing on others (e.g., English → Spanish, Russian, Farsi).
- Performing cross-dataset probing by training on one dataset and testing on others (e.g., LCC → TroFi, VUA POS/Verbs), with fixed training size (3,838).
- Using multilingual PLMs (XLM-R) and monolingual BERT for zero-shot transfer evaluation.
- Analyzing layer-wise performance to identify which layers encode metaphorical knowledge most effectively.
Experimental results
Research questions
- RQ1Do pre-trained language models encode metaphorical knowledge in their contextual representations?
- RQ2In which layers of the transformer architecture is metaphorical knowledge most prominently encoded?
- RQ3How well does metaphorical knowledge transfer across different languages, especially in zero-shot settings?
- RQ4How does annotation consistency affect cross-dataset generalization of metaphor detection in PLMs?
- RQ5To what extent does the distribution shift between training and testing data impact performance?
Key findings
- Metaphorical knowledge is encoded in the middle layers of pre-trained language models, with peak performance observed in these layers.
- Cross-lingual transfer of metaphor detection achieves high accuracy (e.g., 78.02% from English to Spanish, 77.3% to Farsi, 78.04% to Russian), indicating strong generalization when annotation is consistent.
- Cross-dataset transfer is significantly lower than in-distribution performance, with absolute drops exceeding 13% in most cases, especially when annotation guidelines differ.
- The best cross-dataset transfer occurs between VUA POS and VUA Verbs (68.61% and 67.15%), which share similar annotation procedures and part-of-speech coverage.
- Random baseline models achieve 54–64% accuracy in out-of-distribution settings, suggesting that observed performance gains are due to learned metaphorical knowledge, not annotation bias.
- The gap between cross-lingual and cross-dataset performance is substantial, with cross-lingual results outperforming cross-dataset by over 10% in some cases, highlighting the role of annotation consistency.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.