atlas

Research map / Large language models / Language, safety and interpretability

Query-Dependent Prompt Evaluation and Optimization with Offline Inverse RL

ICLR 2024 · Large language models › Language, safety and interpretability · approach: LLM pruning and scaling data · 4 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Prompt-OIRL, which learns an offline XGBoost reward model from existing prompt-benchmarking logs to evaluate query-prompt pairs without LLM calls, then selects prompts via best-of-N for query-dependent zero-shot arithmetic reasoning.

Problem

Zero-shot prompt optimization for arithmetic reasoning is usually query-agnostic, and evaluating prompts at inference without gold answers or repeated LLM calls is hard and expensive.

Approach

Treat prompt evaluation as offline inverse RL: reuse offline logs of prompt correctness collected when benchmarking existing prompts to train a proxy reward model on query and prompt embeddings, then pick the prompt with the highest proxy reward via best-of-N, without querying the LLM.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use query-dependent Prompt-OIRL selection instead of the best-of-training strategyArithmetic reasoning prompt selection · Arithmetic reasoning tasks, averaged across tasks and LLMssuccess rate: +24.3%Helped
Use query-dependent Prompt-OIRL instead of a query-agnostic objectiveArithmetic reasoning prompt selection · Rich demonstration settingsuccess rate: +8.8%Helped
Select from held-out prompts using the learned reward modelPrompt-OIRL · Rich demonstration settingsuccess rate: +1.8%Helped
Use Prompt-OIRL instead of LLM confidence-based selectionArithmetic reasoning prompt selection · Scarce demonstration settingsuccess rate: +24.3%Helped
Use Prompt-OIRL instead of LLM confidence-based selectionArithmetic reasoning prompt selection · Rich demonstration settingsuccess rate: +14.7%Helped
Train the reward model with more prompt demonstrations (K=5 rather than K=1) (ablation)Prompt-OIRL reward model · MAWPS and SVAMP held-out promptsaccuracyHelped
Train the reward model with more prompt demonstrations (K=5 rather than K=1) (ablation)Prompt-OIRL reward model · GSM8K held-out queries, LLaMA2-7B-Chataccuracy: 0.773 -> 0.726Hurt
Use the learned reward model instead of LLM self-criticismPrompt evaluation · Held-out queries across MAWPS, SVAMP, and GSM8Kaccuracy and precisionMixed
Use offline reward-model evaluation rather than LLM self-criticismPrompt evaluation at inference · Single query with 110 prompt choicesinference cost: 0.35723 -> 0.00134 GPU hour; 0.09029 -> 0.00056 USD; 0.10237 -> 0.00062 USDHelped

Surprising findings

Limitations

Experimental setup

Datasets: GSM8K SVAMP MAWPS MultiArith

Benchmarks: GSM8K SVAMP MAWPS

Metrics: accuracy precision success rate inference cost (USD, GPU hours)

Baselines: LMSC (language models for self-criticism) LLM Confidence best-of-training prompt

Builds on: chain-of-thought prompting automatic prompt engineer RLHF

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy