StablePrompt: Automatic Prompt Tuning using Reinforcement Learning for Large Language Models

Minchan Kwon, Gaeun Kim, Jongsuk Kim, Haeil Lee, Junmo Kim
10/10/2024
cs.CL

No official code found. Best implementation: kmc0207/Stableprompt (42 stars, last commit 2025-02-11).

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.

View on arXivView PDF

Code Implementations(1)

Official repository of StablePrompt: Automatic Prompt Tuning using Reinforcement Learning for Large Language Model (EMNLP 2024)

423Shell, PythonSep 30, 20241 years ago

Similar Papers

Cite this paper

@article{kwon2024stableprompt,
  title  = {StablePrompt: Automatic Prompt Tuning using Reinforcement Learning for Large Language Models},
  author = {Minchan Kwon and Gaeun Kim and Jongsuk Kim and Haeil Lee and Junmo Kim},
  year   = {2024},
  eprint = {2410.07652},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.07652v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.07652.svg)](https://codeofpaper.com/paper/2410.07652)

Discussion