TAPR: Enhancing LLM Performance with a Task-Aware Prompt Rewriter
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) often require carefully crafted prompts to unlock their full potential, which can be a barrier for non-expert users. This work addresses the challenge by introducing a Task-Aware Prompt Rewriter (TAPR), a model that reformulates user prompts into task-optimized prompts with the explicit goal of improving downstream LLM performance. We train TAPR using reinforcement learning with Group Relative Policy Optimization (GRPO), where rewards are derived from LLM-as-judge evaluations of both the reformulated prompt and the corresponding task output. Experimental results on diverse tasks, such as question answering, summarization, and arithmetic reasoning, show that our method yields consistent gains over base models in prompt rewriting ability. Fine-tuning Phi-4-mini-instruct (as the base model for TAPR) produces prompts that contain clearer and more instructive language, leading to higher accuracy on established benchmarks such as Natural Questions and GSM8K. Our code is available at: https://github.com/OliverSavolainen/task-specific-prompt-rewriter
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 26 of its 41 references that are in the map. First posted on arXiv 17 Jul 2026.
Builds on
26 of 41 references.
References · 26
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
- 2017Deep reinforcement learning from human preferencescited by 3,912
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 3,050
14 more
- 2022Emergent Abilities of Large Language Modelscited by 2,512
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
- 2025Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learningcited by 1,444
- 2024A Survey on LLM-as-a-Judgecited by 1,423
- 2025Understanding R1-Zero-Like Training: A Critical Perspectivecited by 1,345
- 2015Teaching Machines to Read and Comprehendcited by 1,049
- 2023Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolutioncited by 551
- 2022RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learningcited by 366
- 2017Toward Controlled Generation of Textcited by 272
- 2017Style Transfer from Non-Parallel Text by Cross-Alignmentcited by 248
- 2020TLDR: Extreme Summarization of Scientific Documentscited by 136
- 2025A Survey of Automatic Prompt Engineering: An Optimization Perspectivecited by 41
- 2024LLMs Are Biased Towards Output Formats! Systematically Evaluating and Mitigating Output Format Bias of LLMscited by 25
- 2021BLEU, METEOR, BERTScore: Evaluation of Metrics Performance in Assessing Critical Translation Errors in Sentiment-oriented Textcited by 22
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Prompt-R1: Collaborative Automatic Prompting Framework via End-to-end Reinforcement Learning
- 2024GRL-Prompt: Towards Knowledge Graph based Prompt Optimization via Reinforcement Learning
- 2024GReaTer: Gradients over Reasoning Makes Smaller Language Models Strong Prompt Optimizers
- 2024Rewriting Conversational Utterances with Instructed Large Language Models
- 2026Prompting Policies for Multi-step Reasoning and Tool-Use in Black-box LLMs with Iterative Distillation of Experience
- 2025Prompt reinforcing for long-term planning of large language models
- 2024PRewrite: Prompt Rewriting with Reinforcement Learning
- 2026RLPE: Teaching LLMs to Prompt with Reinforcement Learning