Enhancing Metaphor Detection through Soft Labels and Target Word Prediction

Kaidi Jia, Rongsheng Li
3/27/2024
cs.CL

No confident code implementation found for this paper.

Abstract

Metaphors play a significant role in our everyday communication, yet detecting them presents a challenge. Traditional methods often struggle with improper application of language rules and a tendency to overlook data sparsity. To address these issues, we integrate knowledge distillation and prompt learning into metaphor detection. Our approach revolves around a tailored prompt learning framework specifically designed for metaphor detection. By strategically masking target words and providing relevant prompt data, we guide the model to accurately predict the contextual meanings of these words. This approach not only mitigates confusion stemming from the literal meanings of the words but also ensures effective application of language rules for metaphor detection. Furthermore, we've introduced a teacher model to generate valuable soft labels. These soft labels provide a similar effect to label smoothing and help prevent the model from becoming over confident and effectively addresses the challenge of data sparsity. Experimental results demonstrate that our model has achieved state-of-the-art performance, as evidenced by its remarkable results across various datasets.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{jia2024enhancing,
  title  = {Enhancing Metaphor Detection through Soft Labels and Target Word Prediction},
  author = {Kaidi Jia and Rongsheng Li},
  year   = {2024},
  eprint = {2403.18253},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.18253v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.18253.svg)](https://codeofpaper.com/paper/2403.18253)

Discussion