End-to-End Sequential Metaphor Identification Inspired by Linguistic Theories

Rui Mao, Chenghua Lin, Frank Guerin

Abstract

Metaphor identification is a critical task in natural language processing, traditionally approached as a sequence tagging problem. This paper proposes two novel neural architectures, RNN_HG and RNN_MHCA, inspired by the Metaphor Identification Procedure (MIP) and Selectional Preference Violation (SPV) linguistic theories. By explicitly modeling the semantic contrast between literal and contextual meanings, these models achieve state-of-the-art performance on benchmark datasets including VUA, MOH-X, and TroFi. Our findings highlight the importance of theory-driven design and local context in identifying metaphorical language.

Introduction

Metaphors are more than just poetic flourishes; they are fundamental to how we communicate complex ideas. However, for Natural Language Processing (NLP) systems, identifying metaphors in a stream of text remains a significant challenge. Traditionally, metaphor identification was treated as a classification task for specific word pairs (e.g., "Is 'drinks' a metaphor in 'the car drinks gasoline'?"). Real-world applications, however, require sequential metaphor identification, where a system must scan a sentence and identify metaphorical words without being told where to look.

While recent models have used BiLSTMs for this task, they often treat it as a generic sequence tagging problem. The authors argue that these "theory-blind" models miss out on the fundamental nature of metaphors: they are identified by humans through semantic contrast. This paper bridges the gap by translating linguistic theories into neural architectures that look for semantic "clashes."

Methods

The authors propose two models that translate linguistic theories into neural architectures:

RNN_HG (Inspired by MIP)

The Metaphor Identification Procedure (MIP) suggests that a metaphor occurs when a word's contextual meaning contrasts with its basic literal meaning. The RNN_HG model uses a BiLSTM to represent the contextual meaning and a pre-trained GloVe embedding to represent the literal meaning. Since GloVe is trained on massive corpora where the most frequent, "literal" sense usually dominates, the model concatenates these two vectors, forcing the classifier to learn the contrast between them.

RNN_MHCA (Inspired by SPV)

Selectional Preference Violation (SPV) posits that metaphors are identified by an incongruity between a word and its surrounding context (e.g., a "car" cannot "drink"). The RNN_MHCA model introduces a novel Multi-Head Contextual Attention (MHCA) mechanism. It compares the target word's representation against an "attentive context" representation derived from a local window of surrounding words, allowing the model to specifically attend to the words that create the semantic violation.

Conceptual overview of the RNN_HG (MIP) and RNN_MHCA (SPV) architectures.

Experimental Results

The models were evaluated on three widely recognized metaphor benchmarks: the VU Amsterdam Metaphor Corpus (VUA), MOH-X, and TroFi. Both models use a combination of GloVe and ELMo embeddings as inputs to capture both static and dynamic word meanings.

Performance and Context Sensitivity

The proposed models achieved state-of-the-art (SOTA) results across the board. Notably, RNN_MHCA reached an F1 score of 74.3% on VUA All POS and 80.0% on MOH-X. A key finding was the impact of the context window size on the SPV-based model. As shown in the experimental analysis, a window size of 3 to 5 words was found to be optimal; too much context introduces noise, while too little misses the words that actually trigger the metaphorical interpretation.

F1 scores across different datasets and window sizes, showing the performance of MHCA vs. baselines.

Conclusion

This work demonstrates that explicitly designing neural networks to look for "semantic clashes" based on linguistic theory outperforms generic sequence models. The success of RNN_HG suggests that the gap between static word embeddings and contextual hidden states is a highly effective feature for metaphor detection. Future research will explore ensemble methods and more sophisticated semantic similarity measures to better quantify the "clash" between literal and contextual meanings.

Summary updated

BibTeX
@inproceedings{mao2019end,
  author = {Rui Mao and Chenghua Lin and Frank Guerin},
  title = {{End-to-End Sequential Metaphor Identification Inspired by Linguistic Theories}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/p19-1378},
}
Figure