mlsanityData to 14 Oct 2026

Metaphor identification using large language models: A comparison of RAG, prompt engineering, and fine-tuning

arXiv 2509.24866 ↗First posted 29 Sep 2025cs.CL cs.AIcited by 3

Not on the map. Why?

Abstract (arXiv)

Metaphor is a pervasive feature of discourse and a powerful lens for examining cognition, emotion, and ideology. Large-scale analysis, however, has been constrained by the need for manual annotation due to the context-sensitive nature of metaphor. This study investigates the potential of large language models (LLMs) to automate metaphor identification in full texts. We compare three methods: (i) retrieval-augmented generation (RAG), where the model is provided with a codebook and instructed to annotate texts based on its rules and examples; (ii) prompt engineering, where we design task-specific verbal instructions; and (iii) fine-tuning, where the model is trained on hand-coded texts to optimize performance. Within prompt engineering, we test zero-shot, few-shot, and chain-of-thought strategies. Our results show that state-of-the-art closed-source LLMs can achieve high accuracy, with fine-tuning yielding a median F1 score of 0.79. A comparison of human and LLM outputs reveals that most discrepancies are systematic, reflecting well-known grey areas and conceptual challenges in metaphor theory. We propose that LLMs can be used to at least partly automate metaphor identification and can serve as a testbed for developing and refining metaphor identification protocols and the theory that underpins them.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 13 of its 56 references that are in the map. First posted on arXiv 29 Sep 2025.

Builds on

13 of 56 references.

References · 13

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  3. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  4. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
  5. 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,565
  6. 2022Is GPT-3 a Good Data Annotator?cited by 208
  7. 2023AnnoLLM: Making Large Language Models to Be Better Crowdsourced Annotatorscited by 172
  8. 2023A Survey on Long Text Modeling with Transformerscited by 47
  9. 2023Identifying and Extracting Rare Disease Phenotypes with Large Language Modelscited by 18
  10. 2023Assessing the potential of LLM-assisted annotation for corpus-based pragmatics and discourse analysis: The case of apologycited by 10
  11. 2024Large corpora and large language models: a replicable method for automating grammatical annotationcited by 5
  12. 2024Science is Exploration: Computational Frontiers for Conceptual Metaphor Theorycited by 4
1 more
  1. 2024Can GPT-4 learn to analyse moves in research article abstracts?cited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2022Psychologically-informed chain-of-thought prompts for metaphor understanding in large language models
  2. 2024A Dual-Perspective Metaphor Detection Framework Using Large Language Models
  3. 2024Automatic Extraction of Metaphoric Analogies from Literary Texts: Task Formulation, Dataset Construction, and Evaluation
  4. 2025Towards Multimodal Metaphor Understanding: A Chinese Dataset and Model for Metaphor Mapping Identification
  5. 2025Probing Semantic Alignment, Lexical Invariance, and Syntactic Influence in LLM Metaphor Processing
  6. 2022MiQA: A Benchmark for Inference on Metaphorical Questions
  7. 2026Metaphors are a Source of Cross-Domain Misalignment of Large Reasoning Models
  8. 2026Fine-Tuning Large Language Models for Codebook-Guided Coding of Students' Mathematics Metaphor Responses ↗