Learning Outside the Box: Discourse-level Features Improve Metaphor Identification

Jesse Mu, Helen Yannakoudakis, Ekaterina Shutova

Abstract: Jesse Mu, Helen Yannakoudakis, Ekaterina Shutova. Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers). 2019.

Introduction

Metaphor identification—the task of determining if a word is being used literally or figuratively—is a foundational challenge in Natural Language Processing (NLP). Historically, models have operated in a "box," looking only at a verb and its immediate arguments (e.g., "extinguish a flame" vs. "extinguish a hope") or, at most, the single sentence containing the word.

However, language is often ambiguous; for example, the phrase "drowning students" is literal in the context of a swimming accident but metaphorical in the context of a heavy homework load. To resolve these ambiguities, a system needs to understand the broader discourse—the sentences that come before and after. This paper demonstrates that "zooming out" to the surrounding paragraph significantly boosts performance, proving that context is critical when language gets figurative.

Methodology

The researchers developed a pipeline that moves beyond simple word lookups by extracting three levels of features for a given verb:

  1. Lemma (L): The base form of the verb itself.
  2. Arguments (LA): The syntactic subjects and direct objects of the verb.
  3. Context (LAC): The broader discourse, defined as the surrounding paragraph (averaging about 97 tokens).
The metaphor identification pipeline extracting lemma, argument, and paragraph context features for an XGBoost classifier.

To represent these features numerically, they tested four embedding methods: GloVe (static word vectors), doc2vec (paragraph-level vectors), Skip-thought (sentence-to-context vectors), and ELMo (deep contextualized word representations). Instead of a complex end-to-end deep learning architecture, they used a Gradient Boosting Decision Tree (XGBoost) classifier to isolate the impact of the features themselves.

Datasets

The study utilized the VU Amsterdam (VUA) metaphor corpus (Verbs subset), a standard benchmark containing over 23,000 examples across four genres: Academic, News, Fiction, and Conversation. The researchers used the standard 2018 VUA shared task split to ensure comparability with existing state-of-the-art systems.

Key Results

The quantitative results showed a steady climb in performance as more context was added. Adding paragraph-level context (LAC) consistently improved the F1 score by 2 to 3 points across all embedding types compared to sentence-level arguments.

Performance comparison of different embedding models across Lemma (L), Arguments (LA), and Context (LAC) features.
  • ELMo Performance: The F1 score jumped from 60.9 (Lemma only) to 63.6 (with Arguments) and finally to 66.8 (with Paragraph Context).
  • Statistical Significance: The improvements from adding context were statistically significant ($p < 0.001$) for almost every embedding method tested.
  • Efficiency: By using simple discourse features and a standard classifier, the authors achieved results (66.8 F1) within 0.4 points of the complex, ensemble-based deep learning systems that won the 2018 VUA competition.

Analysis and Discussion

A qualitative analysis revealed that 35% of metaphors requiring broader context did so because of coreference issues. For example, a model might see the phrase "steal them," but it cannot determine if "steal" is metaphorical without looking back at the previous sentence to see that "them" refers to "ideas."

Furthermore, metaphors in "Conversation" and "Fiction" were significantly harder to identify than those in "Academic" or "News" text, likely due to fragmented context and implicit information. In a manual analysis of 100 examples, the researchers found that 11% of metaphors required paragraph-level context to be understood. For these cases, the error rate was halved when discourse features were included.

Conclusion

While the current representation of context is relatively simple, this work serves as a compelling argument that to truly understand the nuances of human language, AI must stop looking at words in isolation and start reading between the lines. Future work may involve more sophisticated discourse modeling, such as explicit discourse relations or dialogue state tracking for conversational data.

Summary updated

BibTeX
@inproceedings{mu2019learning,
  author = {Jesse Mu and Helen Yannakoudakis and Ekaterina Shutova},
  title = {{Learning Outside the Box: Discourse-level Features Improve Metaphor Identification}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2019},
  url = {https://openreview.net/forum?id=BJVKymZObS},
}
Figure