TL;DR
While Large Language Models (LLMs) excel at single-turn responses, their performance often falls apart in multi-turn interactions where early mistakes cascade. Reinforced Prompt Optimisation (RPO) is a parameter-free meta-prompting framework inspired by reinforcement learning that iteratively tunes task instructions using turn-by-turn "Temporal Difference" (TD)-style textual feedback and experience replay. By modifying only the system prompt rather than updating weights or running expensive test-time reflection loops, RPO delivers up to a 54% relative boost in multi-turn success across models and tasks.
What Problem Does This Paper Address?
Most post-training methods (like RLHF) reward LLMs based on single-turn completions rather than long-horizon conversational success. Consequently, in multi-turn settings where tasks are underspecified and clarified across several steps, models suffer from cascading errors, struggle to track user goals, and get trapped in conversational loops.
Direct fine-tuning or continuous soft-prompting for multi-turn interactions is computationally expensive and incompatible with proprietary, API-only models. Conversely, test-time self-refinement pipelines (e.g., Reflexion) make repetitive inference API calls, introducing massive latency and operational costs. Existing automated prompt optimizers (such as APO or TextGrad) bridge some of this gap, but almost exclusively optimize for single-turn input-output tasks.
Methods
RPO treats the agent’s system instruction prompt as a textual parameter that is iteratively updated across epochs without modifying model weights. It adopts two key RL-inspired mechanisms:
-
Temporal Difference (TD)-Style Textual Feedback:
Standard prompt optimizers evaluate an entire interaction at the very end—akin to Monte Carlo (MC) sampling—which collapses nuanced multi-turn trajectories into a single coarse score. In contrast, RPO’s LLM-based Feedbacker evaluates interactions turn-by-turn. For each step $t_i$, it predicts the immediate user sentiment (analogous to the short-term reward $r_t$), forecasts eventual dialogue success ($V(s_{t+1})$), and suggests actionable improvements. These turn-level critiques are then summarized into dialogue-level and epoch-level guidance. -
Experience Replay Prompt Rewriter:
Instead of updating prompts using only the latest feedback, the Rewriter LLM has access to a history of past prompts paired with their respective feedback (reminiscent of an RL replay buffer). This prevents the rewriter from oscillating or forgetting earlier corrections.
Trajectory Collection ──► Turn-by-Turn (TD) Evaluation ──► Experience Replay Rewriter ──► Evaluated Candidate Prompt
Datasets
The authors evaluated RPO across three multi-turn domains:
- Spider ("Lost in Conversation" benchmark): A multi-turn Text-to-SQL benchmark where fully specified queries are sharded into incremental conversational turns. Evaluated using exact-match functional accuracy across databases.
- MultiWOZ 2.1: A multi-domain task-oriented dialogue benchmark evaluated using the ConvLab-3 framework and an FnCTOD agent across attraction, hotel, restaurant, and train domains. Evaluated on goal success rate.
- Huatuo-26M & ShenNong-TCM: Medical question-answering covering general medicine and traditional Chinese medicine (TCM). Evaluated via blind human expert judgments on safety, professionalism, and fluency.
Key Insights and Ideas
- TD Feedback Stabilizes Prompt Dynamics: Just as in classical RL, Monte Carlo–style prompt feedback exhibits high variance early in training. TD-style feedback evaluates localized decisions incrementally, yielding faster, lower-variance convergence.
- Instruction Tuning Beats Agentic Inference Overhead: Rather than spinning up a multi-agent critique loop at test time, baking procedural guidelines (e.g., domain-switching tracking, slot validation, loop prevention) directly into the system prompt saves latency and cost while preserving accuracy.
- Robustness to Noisy Rewards: Because turn-level qualitative assessments are grounded in the conversational trajectory rather than just the final binary outcome, RPO remains resilient even when the external evaluation signal has up to 40% added noise.
Key Results
- Text-to-SQL: On the sharded multi-turn Spider benchmark, baseline models averaged an accuracy of 0.333. Standard RPO ($\text{RPO}_{\text{TD}}$) raised this to 0.408 (+28.9%), and adding experience replay ($\text{RPO}_{\text{TD+replay}}$) reached 0.477 (+54.2%). For Llama-3.1-8B, the score surged from 0.224 to 0.467—nearly closing the gap to the single-turn oracle upper bound (0.505).
- Task-Oriented Dialogue (MultiWOZ): FnCTOD's baseline success rate was 0.420. Prior optimizers (APO, GPO, TextGrad/MC-style) peaked around 0.552–0.565. $\text{RPO}_{\text{TD+replay}}$ reached an average success rate of 0.619 (+47.3% relative improvement) across five LLM backbones (GPT-4o-mini, Gemini-2.0-flash, Llama-4-scout, Llama-3.1-8B/70B).
- Medical QA: Prompt-optimized GPT-4o-mini outperformed the fully fine-tuned 7B medical model HuatuoGPT-II with an 86.7% win rate in general medicine.
Limitations and Future Work
- The Multi-Turn Ceiling: Despite substantial improvements over sharded baselines, a noticeable performance gap remains compared to single-turn oracle settings where user intents are fully specified up front (e.g., 0.477 vs. 0.743 on Text-to-SQL).
- Underrepresented Knowledge: Prompting can only steer behavior; it cannot invent facts not present in pre-training data. On Traditional Chinese Medicine benchmarks, RPO's expert preference dropped sharply compared to general medicine, showing that underrepresented domains still require retrieval augmentation (RAG) or parametric fine-tuning.
- Fixed Meta-Prompts: The feedbacker and rewriter models operate with hand-engineered, static instructions. Automatically optimizing the meta-prompters themselves remains an open research direction.
Summary updated