Abstract
Metaphor detection is a critical task in natural language processing that requires deep contextual reasoning. Traditional approaches have often relied on hand-engineered features or limited linguistic context. This paper demonstrates that end-to-end neural models, specifically Bi-directional Long Short-Term Memory (BiLSTM) networks using full sentential context and contextualized ELMo embeddings, significantly outperform previous state-of-the-art systems. By framing metaphor detection as a sequence labeling task, the proposed models achieve substantial gains across multiple benchmarks, establishing a new standard for the field.
Introduction
Metaphor detection involves identifying words used in a non-literal sense within a given context. For example, while "examining a student" is literal, "examining a country with a microscope" is metaphorical. Historically, researchers attempted to solve this using restricted context—such as Subject-Verb-Object (SVO) triples—or by manually engineering features like concreteness and imageability. However, these methods often fail to capture the subtle cues provided by the broader sentence. This work explores the hypothesis that end-to-end neural models, which process the entire sentence simultaneously, are more effective at capturing these figurative nuances.
Methodology
The authors propose two primary neural architectures based on Bi-directional Long Short-Term Memory (BiLSTM) networks:
- Sequence Labeling (SEQ): This model treats the entire sentence as a sequence, predicting a binary label (metaphorical or literal) for every word in the sentence.
- Classification (CLS): Given a sentence and a specific target verb, this model employs an attention mechanism to focus on relevant sentential components to classify only that specific verb.
A critical component of these models is the use of ELMo (Embeddings from Language Models). Unlike static embeddings like GloVe, ELMo provides contextualized representations where a word's vector shifts based on its surrounding context. This is essential for metaphors, where the meaning of a word is inherently tied to its environment.
Experimental Setup
The models were evaluated on three major metaphor detection benchmarks:
- VUA (VU Amsterdam Metaphor Corpus): The largest and most diverse dataset, spanning academic writing, fiction, news, and conversation.
- MOH-X: A dataset of shorter sentences sourced from WordNet.
- TroFi: A dataset focused on 50 specific verbs used in news articles.
Key Insights and Results
The proposed models established new state-of-the-art (SOTA) records across all evaluated benchmarks. On the VUA sequence labeling task, the SEQ model improved the previous SOTA by 7.5 F1 points, reaching an F1 score of 72.6 and an overall accuracy of 93.1%.
Several key findings emerged from the analysis:
- The Importance of Full Context: Restricting context to SVO triples is insufficient; full sentential context provides the necessary clues to identify physical impossibilities that signal metaphors.
- Sequence Labeling as a Generalizer: The SEQ model often outperformed the CLS model. Training to identify metaphors across the entire sentence helps the model understand the "literalness" of the surrounding context, aiding in the identification of specific target metaphors.
- ELMo's Impact: Ablation studies revealed that ELMo contributed nearly 9 F1 points to the VUA dataset performance, suggesting that pre-training on massive unlabeled text helps models learn "normal" usage, making metaphorical deviations easier to detect.
- POS Sensitivity: Performance varied by Part-of-Speech (POS). Adpositions (prepositions) were the easiest to classify (28% metaphorical frequency), while particles proved more difficult due to their role in multi-word expressions.
Conclusion and Future Work
While the neural approach provides significant gains, challenges remain. Approximately 20% of errors involve subjective "borderline" cases, and 15% of errors occur when metaphorical cues are more than five words away from the target. Additionally, the model still struggles with complex personification and rare literal senses. Future research will focus on handling long-range dependencies and incorporating explicit world knowledge to better resolve abstract figurative language.
Summary updated