The Research Report
Prompt-R1: A Small LLM Trained by RL to Write Prompts for Bigger Models
Most people write bad prompts. They do not know how to phrase questions for large language models. A team from Nanyang Technological University and Hithink Research built a solution. They trained a small LLM using reinforcement learning to generate effective prompts for larger models. They call it Prompt-R1.
The paper appeared in ACL 2026 Findings. The code has 60 GitHub stars at github.com/QwenQKing/Prompt-R1. The arXiv paper is at 2511.01016.
How It Works
Prompt-R1 flips the usual setup. A small LLM acts as the agent. A large LLM acts as the environment. The small LLM thinks and generates prompts. The large LLM performs the actual reasoning. They interact over multiple turns.
The small LLM is trained with end-to-end reinforcement learning. A double-constrained reward drives the training. One constraint targets correctness of the final answer. The other targets quality of the generated prompts. Both constraints must be satisfied for the model to receive a positive reward.
The framework is plug-and-play. It supports different large LLMs for both inference and training. You can swap the large model without retraining the small one. The small model learns to generate prompts that work across different large models.
Why It Exists
Users struggle with prompt engineering. Complex reasoning tasks need precise instructions. Most people cannot construct effective prompts for multi-hop reasoning, math, or multi-turn interaction. The gap between what users write and what models need limits performance.
Existing solutions have problems. Fine-tuning large models is expensive. Prompt engineering tools require expertise. API-based approaches lack adaptive dynamic adjustment. Collaboration between small and large models has relied on cumbersome API layers.
Prompt-R1 addresses these issues directly. The small model learns to write good prompts through trial and error. It discovers what works by receiving rewards from the large model's responses. No human prompt engineering needed.
Results
The team evaluated Prompt-R1 on four task types: multi-hop reasoning, standard question answering, mathematical computation, and text generation. They tested across twelve datasets.
Prompt-R1 outperforms baseline LLMs across all twelve datasets. The double-constrained reward produces better prompts than single-objective approaches. The small model learns to generate prompts that are both correct and well-structured.
The plug-and-play architecture means you can use Prompt-R1 with your preferred large model. The team published model weights on Hugging Face at huggingface.co/QwenQKing/Prompt-R1. A dataset is also available for reproduction.
Why It Matters
Prompt engineering is a barrier to LLM adoption. Most users do not have the time or skill to craft optimal prompts. Prompt-R1 automates this step with a small model that can run locally. The large model does the heavy reasoning. The small model handles the interface.
This is a practical tool for anyone who uses LLMs but struggles with prompt design. The small model is cheap to run. The large model does the expensive work. The combination produces better results than a human writing prompts directly.
What You Should Do
Clone the repository at github.com/QwenQKing/Prompt-R1. Read the paper at arXiv:2511.01016 or the ACL Anthology page at aclanthology.org/2026.findings-acl.799. Download the model from Hugging Face and test it with your preferred large LLM.
The project page at qwenqking.github.io/Prompt-R1 has examples of the agent working with large models step by step.
References
- Paper: Prompt-R1: Collaborative Automatic Prompting Framework via End-to-end Reinforcement Learning, ACL 2026 Findings
- Authors: Wenjin Liu, Haoran Luo, Xueyuan Lin, Haoming Liu, Tiesunlong Shen, Jiapu Wang, Rui Mao, Erik Cambria
- Institutions: Hainan University, Nanyang Technological University, Hithink Research, HKUST Guangzhou, IDEA Research, Tsinghua University, NUS, NJUST
- Code: github.com/QwenQKing/Prompt-R1
- Models: huggingface.co/QwenQKing/Prompt-R1
- arXiv: 2511.01016