mlsanityData to 14 Oct 2026

Automatic Prompt Optimization for Knowledge Graph Construction: Insights from an Empirical Study

arXiv 2506.19773 ↗First posted 24 Jun 2025cs.AIcited by 6

Not on the map. Why?

Abstract (arXiv)

A KG represents a network of entities and illustrates relationships between them. KGs are used for various applications, including semantic search and discovery, reasoning, decision-making, natural language processing, machine learning, and recommendation systems. Triple (subject-relation-object) extraction from text is the fundamental building block of KG construction and has been widely studied, for example, in early benchmarks such as ACE 2002 to more recent ones, such as WebNLG 2020, REBEL and SynthIE. While the use of LLMs is explored for KG construction, handcrafting reasonable task-specific prompts for LLMs is a labour-intensive exercise and can be brittle due to subtle changes in the LLM models employed. Recent work in NLP tasks (e.g. autonomy generation) uses automatic prompt optimization/engineering to address this challenge by generating optimal or near-optimal task-specific prompts given input-output examples. This empirical study explores the application of automatic prompt optimization for the triple extraction task using experimental benchmarking. We evaluate different settings by changing (a) the prompting strategy, (b) the LLM being used for prompt optimization and task execution, (c) the number of canonical relations in the schema (schema complexity), (d) the length and diversity of input text, (e) the metric used to drive the prompt optimization, and (f) the dataset being used for training and testing. We evaluate three different automatic prompt optimizers, namely, DSPy, APE, and TextGrad and use two different triple extraction datasets, SynthIE and REBEL. Through rigorous empirical evaluation, our main contribution highlights that automatic prompt optimization techniques can generate reasonable prompts similar to humans for triple extraction. In turn, these optimized prompts achieve improved results, particularly with increasing schema complexity and text size.

Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 39 of its 48 references that are in the map. First posted on arXiv 24 Jun 2025.

Builds on

39 of 48 references.

References · 39

  1. 2022Training language models to follow instructions with human feedbackcited by 15,971
  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. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
  5. 2017Deep reinforcement learning from human preferencescited by 3,912
  6. 2020Learning to summarize from human feedbackcited by 2,588
  7. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
  8. 2019Language Models as Knowledge Bases?cited by 1,936
  9. 2024From Local to Global: A Graph RAG Approach to Query-Focused Summarizationcited by 1,453
  10. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
  11. 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,045
  12. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
27 more
  1. 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 832
  2. 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 653
  3. 2020Knowledge Graphscited by 621
  4. 2023Hard Prompts Made Easy: Gradient-Based Discrete Optimization for Prompt Tuning and Discoverycited by 336
  5. 2024Optimizing Instructions and Demonstrations for Multi-Stage Language Model Programscited by 291
  6. 2023PromptRobust: Towards Evaluating the Robustness of Large Language Models on Adversarial Promptscited by 226
  7. 2023EvoPrompt: Connecting LLMs with Evolutionary Algorithms Yields Powerful Prompt Optimizerscited by 193
  8. 2022Ask Me Anything: A simple strategy for prompting language modelscited by 155
  9. 2024Meta-Prompting: Enhancing Language Models with Task-Agnostic Scaffoldingcited by 117
  10. 2022Re2G: Retrieve, Rerank, Generatecited by 102
  11. 2023Cross-lingual Prompting: Improving Zero-shot Chain-of-Thought Reasoning across Languagescited by 97
  12. 2023Exploiting Asymmetry for Synthetic Training Data Generation: SynthIE and the Case of Information Extractioncited by 89
  13. 2023InstructZero: Efficient Instruction Optimization for Black-Box Large Language Modelscited by 68
  14. 2023A Comprehensive Survey on Automatic Knowledge Graph Constructioncited by 63
  15. 2025A Systematic Survey of Automatic Prompt Optimization Techniquescited by 63
  16. 2023Fairness-guided Few-shot Prompting for Large Language Modelscited by 53
  17. 2023Text2KGBench: A Benchmark for Ontology-Driven Knowledge Graph Generation from Textcited by 48
  18. 2025A Survey of Automatic Prompt Engineering: An Optimization Perspectivecited by 41
  19. 2023Query-Dependent Prompt Evaluation and Optimization with Offline Inverse RLcited by 37
  20. 2025Beyond English: The Impact of Prompt Translation Strategies across Languages and Tasks in Multilingual LLMscited by 22
  21. 2023Exploring In-Context Learning Capabilities of Foundation Models for Generating Knowledge Graphs from Textcited by 19
  22. 2022Knowledge Graph Generation From Textcited by 15
  23. 2024Research Trends for the Interplay between Large Language Models and Knowledge Graphscited by 15
  24. 2021Generative Relation Linking for Question Answering over Knowledge Basescited by 14
  25. 2022KnowGL: Knowledge Generation and Linking from Textcited by 13
  26. 2020Open Knowledge Graphs Canonicalization using Variational Autoencoderscited by 9
  27. 2024Introducing MAPO: Momentum-Aided Gradient Descent Prompt Optimizationcited by 9

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 6.

6 papers.