Enhancing Metaphor Detection by Gloss-based Interpretations

Hai Wan, Jinxia Lin, Jianfeng Du, Dawei Shen, Manrong Zhang

Abstract

Metaphor detection is a critical task in natural language processing, yet it remains challenging due to the inherent ambiguity of figurative language. This paper introduces MDGI-Joint (Metaphor Detection and Gloss-based Interpretation), a novel framework that leverages dictionary definitions (glosses) to disambiguate word meanings in context. By jointly training for metaphor detection and word sense disambiguation, the model effectively bridges the gap between a word's basic and contextual meanings. Experimental results across English and Chinese datasets demonstrate that gloss-based interpretation significantly enhances detection performance, achieving state-of-the-art results.

Introduction

Metaphors are pervasive in human communication, appearing in approximately one-third of natural language sentences. Distinguishing between literal uses (e.g., "the sky is clouded") and metaphorical ones (e.g., "memories were clouded") is essential for downstream tasks like machine translation and sentiment analysis. Traditional methods often rely on literal word substitution, which suffers from the "ambiguity of the substitute"—where the replacement word itself has multiple meanings. To address this, we propose using unambiguous dictionary glosses as a cleaner signal for contextual interpretation.

Methodology: The MDGI-Joint Model

The MDGI-Joint architecture integrates metaphor detection with gloss-based interpretation through a dual-encoder system.

The MDGI-Joint architecture combines a Context Encoder and a Gloss Encoder to perform joint metaphor detection and interpretation.

The model consists of two primary components:

  1. Context Encoder: A fine-tuned BERT model that generates a representation of the target word based on its surrounding sentence.
  2. Gloss Encoder: A second BERT model that encodes all potential dictionary definitions (candidate glosses) for the target word.

An attention mechanism compares the context representation against the candidate glosses to predict the most appropriate definition for the given context. The final classification is made by concatenating the context representation with a weighted sum of the gloss representations, allowing the model to explicitly evaluate the "Basic vs. Contextual" meaning gap.

Data Enhancement and Benchmarking

To evaluate the model, we enhanced three major metaphor datasets with gloss annotations: TroFi (English verbs), VUA (multi-POS English), and PSUCMC (Chinese). Human annotators mapped metaphorical words to specific definitions in Merriam-Webster and Baidu dictionaries, achieving high inter-annotator agreement (Kappa scores of 0.82–0.89).

Statistics for the enhanced TroFi, VUA, and PSUCMC datasets used for training and evaluation.

Results and Discussion

MDGI-Joint demonstrates superior performance over existing state-of-the-art models like DeepMet and RNN_HG. On the VUA ALL POS track, the model achieved an F1-score of 77.2%, while on the TroFi dataset, it reached 89.3%.

Key insights include:

  • Glosses as Disambiguators: Dictionary definitions provide a more stable and descriptive signal than single-word substitutes, reducing noise in the interpretation process.
  • Joint Learning Synergy: Training the model to explain why a word is metaphorical (interpretation) directly improves its ability to detect metaphors.
  • Cross-Lingual Robustness: The consistent success across English and Chinese suggests that gloss-based interpretation leverages fundamental linguistic properties.

Conclusion and Future Work

While MDGI-Joint sets a new benchmark for word-level metaphor detection, challenges remain in handling phrase-level metaphors (e.g., "carry out") and out-of-vocabulary words. Future research will focus on expanding gloss resources and exploring the applicability of this joint learning framework to other figurative language forms, such as irony and sarcasm.

Summary updated

BibTeX
@inproceedings{wan2021enhancing,
  author = {Hai Wan and Jinxia Lin and Jianfeng Du and Dawei Shen and Manrong Zhang},
  title = {{Enhancing Metaphor Detection by Gloss-based Interpretations}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.findings-acl.173},
}
Figure