paper-with-me

Papers

Query-Dependent Prompt Evaluation and Optimization with Offline Inverse RL

2023-09-13 · Hao Sun, Alihan Hüyük, Mihaela van der Schaar

In this study, we aim to enhance the arithmetic reasoning ability of Large Language Models (LLMs) through zero-shot prompt optimization. We identify a previously overlooked objective of query dependency in such optimization and elucidate two ensuing challenges that impede the successful and economical design of prompt optimization techniques. One primary issue is the absence of an effective method to evaluate prompts during inference when the golden answer is unavailable. Concurrently, learning via interactions with the LLMs to navigate the expansive natural language prompting space proves to be resource-intensive. To address this, we introduce Prompt-OIRL, which harnesses offline inverse reinforcement learning to draw insights from offline prompting demonstration data. Such data exists as by-products when diverse prompts are benchmarked on open-accessible datasets. With Prompt-OIRL, the query-dependent prompt optimization objective is achieved by first learning an offline reward model. This model can evaluate any query-prompt pairs without accessing LLMs. Subsequently, a best-of-N strategy is deployed to recommend the optimal prompt. Our experimental evaluations across various LLM scales and arithmetic reasoning datasets underscore both the efficacy and economic viability of the proposed approach.

📄 PDF Abstract BibTeX arXiv:2309.06553

Code (2)

holarissun/prompt-oirl 공식 구현
vanderschaarlab/prompt-oirl 공식 구현

Tasks

Arithmetic ReasoningNavigatePrompt Engineeringreinforcement-learning

Similar Papers 제목 키워드 기반

QPO: Query-dependent Prompt Optimization via Multi-Loop Offline Reinforcement Learning

2024-08-20 · Yilun Kong, Hangyu Mao, Qi Zhao, Bin Zhang 외

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 pe…

BenchmarkingLanguage ModellingMathPrompt Engineering

Optimizing Prompts for Large Language Models: A Causal Approach

2026-02-02 · Wei Chen, Yanbin Fang, Shuran Fu, Fasheng Xu 외 arxiv

Large Language Models (LLMs) are increasingly embedded in enterprise workflows, yet their performance remains highly sensitive to prompt design. Automatic Prompt Optimization (APO) seeks to mitigate this instability, but…

Mathematical ReasoningCausal Inference

P3: Prompts Promote Prompting

2025-07-21 · Xinyu Zhang, Yuanquan Hu, Fangchao Liu, Zhicheng Dou arxiv

Current large language model (LLM) applications often employ multi-component prompts, comprising both system and user prompts, to guide model behaviors. While recent advancements have demonstrated the efficacy of automat…

Knowing How to Edit: Reliable Evaluation Signals for Diagnosing and Optimizing Prompts at Query Level

2025-11-25 · Ke Chen, Yifeng Wang, Hassan Almosapeeh, Haohan Wang arxiv

Prompt optimization has become a central mechanism for eliciting strong performance from LLMs, and recent work has made substantial progress by proposing diverse prompt evaluation metrics and optimization strategies. Des…

LLM4Hint: Leveraging Large Language Models for Hint Recommendation in Offline Query Optimization

2025-07-04 · Suchen Liu, Jun Gao, Yinjun Han, Yang Lin arxiv

Query optimization is essential for efficient SQL query execution in DBMS, and remains attractive over time due to the growth of data volumes and advances in hardware. Existing traditional optimizers struggle with the cu…