Prompt-R1: Collaborative Automatic Prompting Framework via End-to-end Reinforcement Learning
Abstract
Recently, various excellent and powerful large language models (LLMs) have been utilized to solve a wide range of human problems.However, when faced with complex problems, most users are often unable to provide accurate and effective prompts to interact with LLMs, thus limiting their performance.To address this challenge, we propose Prompt-R1, an endto-end reinforcement learning framework that utilizes a small-scale LLM (as agent) to collaborate with large-scale LLMs (as environment), replacing users to interact better.This collaboration is presented as a multi-turn interaction, where the small-scale LLM thinks and generates prompts, and the large-scale LLM performs complex reasoning.A doubleconstrained reward is designed to optimize correctness and quality of generation.Prompt-R1 provides a plug-and-play framework that supports both inference and training with various large-scale LLMs.Experimental results on twelve datasets show that Prompt-R1 significantly outperforms baseline LLMs across various tasks.Our code is available at https: //github.com/QwenQKing/Prompt-R1.
Fields of Study & Subjects
Topic Modeling
Multimodal Machine Learning Applications
Text Readability and Simplification
Publication details
- Journal / source
- Findings of the Association for Computational Linguistics: ACL 2026
- Publisher
- Association for Computational Linguistics
- Pages
- 16260–16280
- Publication date
- 1 January 2026