QPO: Query-dependent Prompt Optimization via Multi-Loop Offline Reinforcement Learning
On the map: Offline RL and imitation learning from data → Decision transformers and sequence modeling
Abstract (arXiv)
Prompt engineering has demonstrated remarkable success in enhancing the performance of large language models (LLMs) across diverse tasks. However, most existing prompt optimization methods only focus on the task-level performance, overlooking the importance of query-preferred prompts, which leads to suboptimal performances. Additionally, these methods rely heavily on frequent interactions with LLMs to obtain feedback for guiding the optimization process, incurring substantial redundant interaction costs. In this paper, we introduce Query-dependent Prompt Optimization (QPO), which leverages multi-loop offline reinforcement learning to iteratively fine-tune a small pretrained language model to generate optimal prompts tailored to the input queries, thus significantly improving the prompting effect on the large target LLM. We derive insights from offline prompting demonstration data, which already exists in large quantities as a by-product of benchmarking diverse prompts on open-sourced tasks, thereby circumventing the expenses of online interactions. Furthermore, we continuously augment the offline dataset with the generated prompts in each loop, as the prompts from the fine-tuned model are supposed to outperform the source prompts in the original dataset. These iterative loops bootstrap the model towards generating optimal prompts. Experiments on various LLM scales and diverse NLP and math tasks demonstrate the efficacy and cost-efficiency of our method in both zero-shot and few-shot scenarios.
Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Placed in Decision transformers and sequence modeling, one of 13 directions in Offline RL and imitation learning from data. Builds on 48 of its 60 references that are in the map. First posted on arXiv 20 Aug 2024.
Builds on
48 of 60 references.
Closest ancestors · 2
Same direction, newest first
- 2021Offline Reinforcement Learning as One Big Sequence Modeling Problem3 Jun
- 2021Decision Transformer: Reinforcement Learning via Sequence Modeling2 Jun
Other references · 46
- 2023GPT-4 Technical Reportcited by 18,132
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2017Deep reinforcement learning from human preferencescited by 3,846
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 2,950
34 more
- 2020Learning to summarize from human feedbackcited by 2,562
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
- 2020Offline Reinforcement Learning: Tutorial, Review, and Perspectives on Open Problemscited by 1,873
- 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,538
- 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,255
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
- 2021Are NLP Models really able to Solve Simple Math Word Problems?cited by 861
- 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 628
- 2023Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolutioncited by 521
- 2018Behavioral Cloning from Observationcited by 482
- 2022RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learningcited by 361
- 2022News Summarization and Evaluation in the Era of GPT-3cited by 324
- 2018Reward learning from human preferences and demonstrations in Ataricited by 314
- 2022PromptSource: An Integrated Development Environment and Repository for Natural Language Promptscited by 288
- 2019Cosmos QA: Machine Reading Comprehension with Contextual Commonsense Reasoningcited by 281
- 2023PromptAgent: Strategic Planning with Language Models Enables Expert-level Prompt Optimizationcited by 226
- 2022Demystifying Prompts in Language Models via Perplexity Estimationcited by 215
- 2022Optimizing Prompts for Text-to-Image Generationcited by 204
- 2021Differentiable Prompt Makes Pre-trained Language Models Better Few-shot Learnerscited by 115
- 2021Imitation Learning: Progress, Taxonomies and Challengescited by 56
- 2023Reprompting: Automated Chain-of-Thought Prompt Inference Through Gibbs Samplingcited by 46
- 2022IDPG: An Instance-Dependent Prompt Generation Methodcited by 43
- 2024PRewrite: Prompt Rewriting with Reinforcement Learningcited by 43
- 2023TPTU-v2: Boosting Task Planning and Tool Usage of Large Language Model-based Agents in Real-world Systemscited by 39
- 2023Query-Dependent Prompt Evaluation and Optimization with Offline Inverse RLcited by 37
- 2023Are Large Language Models Really Robust to Word-Level Perturbations?cited by 32
- 2024Do Generated Data Always Help Contrastive Learning?cited by 25
- 2024One Prompt is not Enough: Automated Construction of a Mixture-of-Expert Promptscited by 16
- 2024Step-On-Feet Tuning: Scaling Self-Alignment of LLMs via Bootstrappingcited by 14
- 2023InstructEval: Systematic Evaluation of Instruction Selection Methodscited by 12
- 2024DEER: A Delay-Resilient Framework for Reinforcement Learning with Variable Delayscited by 6
- 2022Instance-wise Prompt Tuning for Pretrained Language Modelscited by 5
Built on by
Citing papers per year: 2025: 6; 2026: 4.
10 papers.
- 2025Mastering Massive Multi-Task Reinforcement Learning via Mixture-of-Expert Decision Transformercited by 15
- 2025Lifelong Safety Alignment for Language Modelscited by 13
- 2026ACE-Brain-0.5: A Unified Embodied Foundational Model for Physical Agentic AIcited by 5
- 2025YaleNLP @ PerAnsSumm 2025: Multi-Perspective Integration via Mixture-of-Agents for Enhanced Healthcare QA Summarizationcited by 2
- 2025TRPrompt: Bootstrapping Query-Aware Prompt Optimization from Textual Rewardscited by 2
- 2025Prompt and Parameter Co-Optimization for Large Language Modelscited by 2
- 2025Knowing How to Edit: Reliable Evaluation Signals for Diagnosing and Optimizing Prompts at Query Levelcited by 1
- 2026Prompt Codebooks: Discrete Compositional Optimization for Language Model Instruction Refinementcited by 0
- 2026Training Prompt Matters: State-Adaptive Optimization for Robust Fine-Tuningcited by 0
- 2026Beyond Isolation: Unlocking Reinforcement Learning Component Synergy for Sample-Efficient Continuous Controlcited by 0
- 2026Beyond Isolation: Unlocking Reinforcement Learning Component Synergy for Sample-Efficient Continuous Control7 Aug 2026
- 2026ACE-Brain-0.5: A Unified Embodied Foundational Model for Physical Agentic AI5 Jul 2026
- 2026Training Prompt Matters: State-Adaptive Optimization for Robust Fine-Tuning1 Jun 2026
- 2026Prompt Codebooks: Discrete Compositional Optimization for Language Model Instruction Refinement27 May 2026
- 2025Knowing How to Edit: Reliable Evaluation Signals for Diagnosing and Optimizing Prompts at Query Level25 Nov 2025
- 2025Prompt and Parameter Co-Optimization for Large Language Models29 Sep 2025
- 2025TRPrompt: Bootstrapping Query-Aware Prompt Optimization from Textual Rewards24 Jul 2025
- 2025Mastering Massive Multi-Task Reinforcement Learning via Mixture-of-Expert Decision Transformer30 May 2025
- 2025Lifelong Safety Alignment for Language Models26 May 2025
- 2025YaleNLP @ PerAnsSumm 2025: Multi-Perspective Integration via Mixture-of-Agents for Enhanced Healthcare QA Summarization4 Apr 2025
Similar, not cited
Close in wording, no citation either way
- 2025Prompt-R1: Collaborative Automatic Prompting Framework via End-to-end Reinforcement Learning
- 2025Prompt reinforcing for long-term planning of large language models
- 2026Optimizing Prompts for Large Language Models: A Causal Approach
- 2026TAPR: Enhancing LLM Performance with a Task-Aware Prompt Rewriter
- 2026LEEPS: Latent-Guided Explore-Exploit Prompt Sampling for Efficient RLVR in Large Language Models
- 2026P^2O: Joint Policy and Prompt Optimization
- 2025DLPO: Towards a Robust, Efficient, and Generalizable Prompt Optimization Framework from a Deep-Learning Perspective
- 2025GAAPO: Genetic Algorithmic Applied to Prompt Optimization