GRL-Prompt: Towards Knowledge Graph based Prompt Optimization via Reinforcement Learning
On the map: Deep reinforcement learning methods → RL training of language and agent models
Abstract (arXiv)
Large language models (LLMs) have demonstrated impressive success in a wide range of natural language processing (NLP) tasks due to their extensive general knowledge of the world. Recent works discovered that the performance of LLMs is heavily dependent on the input prompt. However, prompt engineering is usually done manually in a trial-and-error fashion, which can be labor-intensive and challenging in order to find the optimal prompts. To address these problems and unleash the utmost potential of LLMs, we propose a novel LLMs-agnostic framework for prompt optimization, namely GRL-Prompt, which aims to automatically construct optimal prompts via reinforcement learning (RL) in an end-to-end manner. To provide structured action/state representation for optimizing prompts, we construct a knowledge graph (KG) that better encodes the correlation between the user query and candidate in-context examples. Furthermore, a policy network is formulated to generate the optimal action by selecting a set of in-context examples in a rewardable order to construct the prompt. Additionally, the embedding-based reward shaping is utilized to stabilize the RL training process. The experimental results show that GRL-Prompt outperforms recent state-of-the-art methods, achieving an average increase of 0.10 in ROUGE-1, 0.07 in ROUGE-2, 0.07 in ROUGE-L, and 0.05 in BLEU.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in RL training of language and agent models, one of 15 directions in Deep reinforcement learning methods. Builds on 21 of its 34 references that are in the map. First posted on arXiv 19 Nov 2024.
Builds on
21 of 34 references.
References · 21
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
- 2022A Survey on In-context Learningcited by 721
- 2020Heterogeneous Graph Transformercited by 582
- 2022RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learningcited by 366
- 2022PromptSource: An Integrated Development Environment and Repository for Natural Language Promptscited by 289
9 more
- 2023Compositional Exemplars for In-context Learningcited by 144
- 2023Unified Demonstration Retriever for In-Context Learningcited by 142
- 2023Boosting Language Models Reasoning with Chain-of-Knowledge Promptingcited by 77
- 2024In-context Learning with Retrieved Demonstrations for Language Models: A Surveycited by 70
- 2022Improving Few-Shot Performance of Language Models via Nearest Neighbor Calibrationcited by 24
- 2024An Enhanced Prompt-Based LLM Reasoning Scheme via Knowledge Graph-Integrated Collaborationcited by 16
- 2021STaCK: Sentence Ordering with Temporal Commonsense Knowledgecited by 7
- 2024Unlocking Instructive In-Context Learning with Tabular Prompting for Relational Triple Extractioncited by 7
- 2023PILLOW: Enhancing Efficient Instruction Fine-tuning via Prompt Matchingcited by 6
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025PRL: Prompts from Reinforcement Learning
- 2025Prompt-R1: Collaborative Automatic Prompting Framework via End-to-end Reinforcement Learning
- 2026TAPR: Enhancing LLM Performance with a Task-Aware Prompt Rewriter
- 2024Reinforcement Learning Problem Solving with Large Language Models
- 2026Prompting Policies for Multi-step Reasoning and Tool-Use in Black-box LLMs with Iterative Distillation of Experience
- 2025PARL: Prompt-based Agents for Reinforcement Learning
- 2024StablePrompt: Automatic Prompt Tuning using Reinforcement Learning for Large Language Models
- 2024Survey on Large Language Model-Enhanced Reinforcement Learning: Concept, Taxonomy, and Methods