mlsanityData to 14 Oct 2026

RLPE: Teaching LLMs to Prompt with Reinforcement Learning

arXiv 2610.19062 ↗First posted 13 Oct 2026cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Prompting is a widely used method for adapting general-purpose LLMs to domain-specific tasks. Effective prompts can be tedious to create manually, so prompt writing is increasingly handed to LLMs, with recent work training LLMs to write prompts for other models. These techniques either write prompts without observing how the task model behaves, blind to the failure modes the prompt should address, or must run alongside the task LLM at inference time, adding overhead to every query. Neither reflects how prompt engineering is often practiced. To close this gap, we introduce Reinforcement Learned Prompt Engineering (RLPE), which trains a model to analyze traces of a separate task model and write a prompt targeting the failures it observes. RLPE rewards the trained model strictly on prompt performance, so it learns the prompting strategies that improve the task model. The prompt is generated once and reused across the task, so inference does not require the trained model. Since RLPE needs only query access to the model it prompts, it is also compatible with closed-source models. We apply RLPE to Enigmata, BIG-Bench Extra Hard, and PlanBench. We train a 9B-parameter model that writes better prompts than state-of-the-art frontier models (gpt-5.6-sol and claude-opus-5) and prompt optimizers (GEPA and TextGrad) on 2/3 benchmarks. Although the model is never explicitly trained to iterate on prompts, this capability emerges at a level that matches or beats frontier models. The learned prompting capability also generalizes, with the trained model improving task models 6x larger than the one it trained with, including ones from entirely different model families, and matching claude-opus-5 on a fourth benchmark held out from training.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 19 of its 25 references that are in the map. First posted on arXiv 13 Oct 2026.

Builds on

19 of 25 references.

References · 19

  1. 2022Training language models to follow instructions with human feedbackcited by 15,971
  2. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
  3. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
  4. 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,386
  5. 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,045
  6. 2023Large Language Models as Optimizerscited by 864
  7. 2025GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learningcited by 542
  8. 2022PlanBench: An Extensible Benchmark for Evaluating Large Language Models on Planning and Reasoning about Changecited by 382
  9. 2022RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learningcited by 366
  10. 2025ToolRL: Reward is All Tool Learning Needscited by 362
  11. 2024TextGrad: Automatic "Differentiation" via Textcited by 273
  12. 2025Enigmata: Scaling Logical Reasoning in Large Language Models with Synthetic Verifiable Puzzlescited by 56
7 more
  1. 2025Teaching Language Models to Critique via Reinforcement Learningcited by 42
  2. 2025How to Train Your Advisor: Steering Black-Box LLMs with Advisor Modelscited by 24
  3. 2025JustLogic: A Comprehensive Benchmark for Evaluating Deductive Reasoning in Large Language Modelscited by 22
  4. 2024Prompting in the Wild: An Empirical Study of Prompt Evolution in Software Repositoriescited by 18
  5. 2025Prompt-R1: Collaborative Automatic Prompting Framework via End-to-end Reinforcement Learningcited by 10
  6. 2025Prompt-MII: Meta-Learning Instruction Induction for LLMscited by 9
  7. 2026PrefPO: Pairwise Preference Prompt Optimizationcited by 2

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2024PRewrite: Prompt Rewriting with Reinforcement Learning
  2. 2025PRL: Prompts from Reinforcement Learning
  3. 2026Prompting Policies for Multi-step Reasoning and Tool-Use in Black-box LLMs with Iterative Distillation of Experience
  4. 2026TAPR: Enhancing LLM Performance with a Task-Aware Prompt Rewriter
  5. 2026LLM-as-a-Tutor: Policy-Aware Prompt Adaptation for Non-Verifiable RL
  6. 2025WST: Weak-to-Strong Knowledge Transfer via Reinforcement Learning
  7. 2024Reinforcement Learning Problem Solving with Large Language Models
  8. 2024GRL-Prompt: Towards Knowledge Graph based Prompt Optimization via Reinforcement Learning