StablePrompt: Automatic Prompt Tuning using Reinforcement Learning for Large Language Models
Minchan Kwon, Gaeun Kim, Jongsuk Kim, Haeil Lee, Junmo Kim
TL;DR
StablePrompt tackles the instability of reinforcement-learning–based prompt tuning for large language models by introducing Adaptive Proximal Policy Optimization (APPO) with an anchor model. The method redefines prompt search as an online, on-policy RL problem where an agent LLM generates prompts and a target LLM yields rewards from its responses; APPO stabilizes updates by constraining toward an adaptive anchor rather than a fixed previous policy. It also offers Test-Time Editing StablePrompt (TTE-StablePrompt) to create input-dependent prompts. Empirical results across few-shot classification, induction, and QA demonstrate strong, sometimes state-of-the-art, performance across diverse agent–target model pairs, including models larger than 7B. The work shows RL-based prompt tuning can be both stable and scalable for practical use with large LLMs, with implications for cost-efficient prompting and broader applicability in real-world NLP tasks.
Abstract
Finding appropriate prompts for the specific task has become an important issue as the usage of Large Language Models (LLM) has expanded. Reinforcement Learning (RL) is widely used for prompt tuning, but its inherent instability and environmental dependency make it difficult to use in practice. In this paper, we propose StablePrompt, which strikes a balance between training stability and search space, mitigating the instability of RL and producing high-performance prompts. We formulate prompt tuning as an online RL problem between the agent and target LLM and introduce Adaptive Proximal Policy Optimization (APPO). APPO introduces an LLM anchor model to adaptively adjust the rate of policy updates. This allows for flexible prompt search while preserving the linguistic ability of the pre-trained LLM. StablePrompt outperforms previous methods on various tasks including text classification, question answering, and text generation. Our code can be found in github.
